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
41,900
bitmap_copy
eloqsql/mysys/my_bitmap.c
void bitmap_copy(MY_BITMAP *map, const MY_BITMAP *map2) { my_bitmap_map *to= map->bitmap, *from= map2->bitmap, *end; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(map2->bitmap); DBUG_ASSERT(map->n_bits == map2->n_bits); end= map->last_word_ptr; while (to <= end) *to++ = *from++; }
O0
c
bitmap_copy: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) jmp 0xf6b54 jmp 0xf6b56 jmp 0xf6b58 jmp 0xf6b5a jmp 0xf6b5c movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax cmpq -0x28(%rbp), %rax ja 0xf6b96 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x4, %rcx movq %rcx, -0x20(%rbp) movl (%rax), %ecx movq -0x18(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x18(%rbp) movl %ecx, (%rax) jmp 0xf6b68 popq %rbp retq nopl (%rax,%rax)
bitmap_copy: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax jmp short $+2 loc_F6B54: jmp short $+2 loc_F6B56: jmp short $+2 loc_F6B58: jmp short $+2 loc_F6B5A: jmp short $+2 loc_F6B5C: mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_28], rax loc_F6B68: mov rax, [rbp+var_18] cmp rax, [rbp+var_28] ja short loc_F6B96 mov rax, [rbp+var_20] mov rcx, rax add rcx, 4 mov [rbp+var_20], rcx mov ecx, [rax] mov rax, [rbp+var_18] mov rdx, rax add rdx, 4 mov [rbp+var_18], rdx mov [rax], ecx jmp short loc_F6B68 loc_F6B96: pop rbp retn
_DWORD * bitmap_copy(_QWORD *a1, int **a2) { _DWORD *result; // rax int *v3; // rax int v4; // ecx _DWORD *v5; // rax unsigned long long v6; // [rsp+0h] [rbp-28h] int *v7; // [rsp+8h] [rbp-20h] _DWORD *v8; // [rsp+10h] [rbp-18h] v8 = (_DWORD *)*a1; v7 = *a2; v6 = a1[1]; while ( 1 ) { result = v8; if ( (unsigned long long)v8 > v6 ) break; v3 = v7++; v4 = *v3; v5 = v8++; *v5 = v4; } return result; }
bitmap_copy: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX JMP 0x001f6b54 LAB_001f6b54: JMP 0x001f6b56 LAB_001f6b56: JMP 0x001f6b58 LAB_001f6b58: JMP 0x001f6b5a LAB_001f6b5a: JMP 0x001f6b5c LAB_001f6b5c: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX LAB_001f6b68: MOV RAX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RBP + -0x28] JA 0x001f6b96 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x4 MOV qword ptr [RBP + -0x20],RCX MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RAX],ECX JMP 0x001f6b68 LAB_001f6b96: POP RBP RET
void bitmap_copy(int8 *param_1,int8 *param_2) { int4 *puVar1; int4 *local_28; int4 *local_20; puVar1 = (int4 *)param_1[1]; local_28 = (int4 *)*param_2; local_20 = (int4 *)*param_1; while (local_20 <= puVar1) { *local_20 = *local_28; local_28 = local_28 + 1; local_20 = local_20 + 1; } return; }
41,901
allocate_dynamic
eloqsql/mysys/array.c
my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements) { DBUG_ENTER("allocate_dynamic"); if (max_elements >= array->max_element) { uint size; uchar *new_ptr; size= (max_elements + array->alloc_increment)/array->alloc_increment; size*= array->alloc_increment; if (array->malloc_flags & MY_INIT_BUFFER_USED) { /* In this senerio, the buffer is statically preallocated, so we have to create an all-new malloc since we overflowed */ if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size * array->size_of_element, MYF(array->malloc_flags | MY_WME)))) DBUG_RETURN(0); memcpy(new_ptr, array->buffer, array->elements * array->size_of_element); array->malloc_flags&= ~MY_INIT_BUFFER_USED; } else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key, array->buffer,size * array->size_of_element, MYF(MY_WME | MY_ALLOW_ZERO_PTR | array->malloc_flags)))) DBUG_RETURN(TRUE); array->buffer= new_ptr; array->max_element= size; } DBUG_RETURN(FALSE); }
O0
c
allocate_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx cmpl 0xc(%rcx), %eax jb 0x35d25 movl -0x14(%rbp), %eax movq -0x10(%rbp), %rcx addl 0x10(%rcx), %eax movq -0x10(%rbp), %rcx xorl %edx, %edx divl 0x10(%rcx) movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %eax imull -0x18(%rbp), %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax andq $0x100, %rax # imm = 0x100 cmpq $0x0, %rax je 0x35cce movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movl -0x18(%rbp), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %esi movq -0x10(%rbp), %rax movq 0x20(%rax), %rdx orq $0x10, %rdx callq 0x31010 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x35c93 jmp 0x35c8a movb $0x0, -0x1(%rbp) jmp 0x35d2b movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx callq 0x25270 movq -0x10(%rbp), %rax movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF andq 0x20(%rax), %rcx movq %rcx, 0x20(%rax) jmp 0x35d10 movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movq -0x10(%rbp), %rax movq (%rax), %rsi movl -0x18(%rbp), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx orq $0x50, %rcx callq 0x311e0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x35d0e jmp 0x35d08 movb $0x1, -0x1(%rbp) jmp 0x35d2b jmp 0x35d10 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movl -0x18(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0xc(%rax) jmp 0x35d27 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
allocate_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov eax, [rbp+var_14] mov rcx, [rbp+var_10] cmp eax, [rcx+0Ch] jb loc_35D25 mov eax, [rbp+var_14] mov rcx, [rbp+var_10] add eax, [rcx+10h] mov rcx, [rbp+var_10] xor edx, edx div dword ptr [rcx+10h] mov [rbp+var_18], eax mov rax, [rbp+var_10] mov eax, [rax+10h] imul eax, [rbp+var_18] mov [rbp+var_18], eax mov rax, [rbp+var_10] mov rax, [rax+20h] and rax, 100h cmp rax, 0 jz short loc_35CCE mov rax, [rbp+var_10] mov edi, [rax+18h] mov eax, [rbp+var_18] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov esi, eax mov rax, [rbp+var_10] mov rdx, [rax+20h] or rdx, 10h call my_malloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_35C93 jmp short $+2 loc_35C8A: mov [rbp+var_1], 0 jmp loc_35D2B loc_35C93: mov rdi, [rbp+var_20] mov rax, [rbp+var_10] mov rsi, [rax] mov rax, [rbp+var_10] mov eax, [rax+8] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax call _memcpy mov rax, [rbp+var_10] mov rcx, 0FFFFFEFFh and rcx, [rax+20h] mov [rax+20h], rcx jmp short loc_35D10 loc_35CCE: mov rax, [rbp+var_10] mov edi, [rax+18h] mov rax, [rbp+var_10] mov rsi, [rax] mov eax, [rbp+var_18] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax mov rax, [rbp+var_10] mov rcx, [rax+20h] or rcx, 50h call my_realloc mov [rbp+var_20], rax cmp rax, 0 jnz short loc_35D0E jmp short $+2 loc_35D08: mov [rbp+var_1], 1 jmp short loc_35D2B loc_35D0E: jmp short $+2 loc_35D10: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax], rcx mov ecx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax+0Ch], ecx loc_35D25: jmp short $+2 loc_35D27: mov [rbp+var_1], 0 loc_35D2B: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char allocate_dynamic(long long *a1, unsigned int a2) { long long v3; // [rsp+0h] [rbp-20h] unsigned int v4; // [rsp+8h] [rbp-18h] if ( a2 < *((_DWORD *)a1 + 3) ) return 0; v4 = (*((_DWORD *)a1 + 4) + a2) / *((_DWORD *)a1 + 4) * *((_DWORD *)a1 + 4); if ( (a1[4] & 0x100) == 0 ) { v3 = my_realloc(*((_DWORD *)a1 + 6), *a1, *((_DWORD *)a1 + 5) * v4, *((_BYTE *)a1 + 32) | 0x50u); if ( !v3 ) return 1; goto LABEL_8; } v3 = my_malloc(*((_DWORD *)a1 + 6), *((_DWORD *)a1 + 5) * v4, *((_DWORD *)a1 + 8) | 0x10u); if ( v3 ) { memcpy(v3, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2))); a1[4] &= 0xFFFFFEFFuLL; LABEL_8: *a1 = v3; *((_DWORD *)a1 + 3) = v4; return 0; } return 0; }
allocate_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0xc] JC 0x00135d25 MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x10] XOR EDX,EDX DIV dword ptr [RCX + 0x10] MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x10] IMUL EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] AND RAX,0x100 CMP RAX,0x0 JZ 0x00135cce MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV EAX,dword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x20] OR RDX,0x10 CALL 0x00131010 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x00135c93 JMP 0x00135c8a LAB_00135c8a: MOV byte ptr [RBP + -0x1],0x0 JMP 0x00135d2b LAB_00135c93: MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX CALL 0x00125270 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,0xfffffeff AND RCX,qword ptr [RAX + 0x20] MOV qword ptr [RAX + 0x20],RCX JMP 0x00135d10 LAB_00135cce: MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] OR RCX,0x50 CALL 0x001311e0 MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x00135d0e JMP 0x00135d08 LAB_00135d08: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00135d2b LAB_00135d0e: JMP 0x00135d10 LAB_00135d10: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xc],ECX LAB_00135d25: JMP 0x00135d27 LAB_00135d27: MOV byte ptr [RBP + -0x1],0x0 LAB_00135d2b: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 allocate_dynamic(int8 *param_1,uint param_2) { int iVar1; void *local_28; if (*(uint *)((long)param_1 + 0xc) <= param_2) { iVar1 = *(int *)(param_1 + 2) * ((param_2 + *(int *)(param_1 + 2)) / *(uint *)(param_1 + 2)); if ((param_1[4] & 0x100) == 0) { local_28 = (void *)my_realloc(*(int4 *)(param_1 + 3),*param_1, iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x50); if (local_28 == (void *)0x0) { return 1; } } else { local_28 = (void *)my_malloc(*(int4 *)(param_1 + 3), iVar1 * *(int *)((long)param_1 + 0x14),param_1[4] | 0x10); if (local_28 == (void *)0x0) { return 0; } memcpy(local_28,(void *)*param_1, (ulong)(uint)(*(int *)(param_1 + 1) * *(int *)((long)param_1 + 0x14))); param_1[4] = param_1[4] & 0xfffffeff; } *param_1 = local_28; *(int *)((long)param_1 + 0xc) = iVar1; } return 0; }
41,902
allocate_dynamic
eloqsql/mysys/array.c
my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements) { DBUG_ENTER("allocate_dynamic"); if (max_elements >= array->max_element) { uint size; uchar *new_ptr; size= (max_elements + array->alloc_increment)/array->alloc_increment; size*= array->alloc_increment; if (array->malloc_flags & MY_INIT_BUFFER_USED) { /* In this senerio, the buffer is statically preallocated, so we have to create an all-new malloc since we overflowed */ if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size * array->size_of_element, MYF(array->malloc_flags | MY_WME)))) DBUG_RETURN(0); memcpy(new_ptr, array->buffer, array->elements * array->size_of_element); array->malloc_flags&= ~MY_INIT_BUFFER_USED; } else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key, array->buffer,size * array->size_of_element, MYF(MY_WME | MY_ALLOW_ZERO_PTR | array->malloc_flags)))) DBUG_RETURN(TRUE); array->buffer= new_ptr; array->max_element= size; } DBUG_RETURN(FALSE); }
O3
c
allocate_dynamic: cmpl %esi, 0xc(%rdi) jbe 0x2f45d xorl %eax, %eax retq pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl 0x10(%rdi), %ecx movl 0x18(%rdi), %edi addl %ecx, %ebx movl %ebx, %eax xorl %edx, %edx divl %ecx subl %edx, %ebx movq 0x20(%r14), %rcx btl $0x8, %ecx jb 0x2f4a5 movq (%r14), %rsi movl 0x14(%r14), %edx imull %ebx, %edx orq $0x50, %rcx callq 0x2cb14 movq %rax, %r15 testq %rax, %rax jne 0x2f4dd movb $0x1, %al jmp 0x2f4e6 movl 0x14(%r14), %esi imull %ebx, %esi orq $0x10, %rcx movq %rcx, %rdx callq 0x2c9f1 testq %rax, %rax je 0x2f4e4 movq %rax, %r15 movq (%r14), %rsi movl 0x14(%r14), %edx imull 0x8(%r14), %edx movq %rax, %rdi callq 0x242a0 movl $0xfffffeff, %eax # imm = 0xFFFFFEFF andq %rax, 0x20(%r14) movq %r15, (%r14) movl %ebx, 0xc(%r14) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
allocate_dynamic: cmp [rdi+0Ch], esi jbe short loc_2F45D xor eax, eax retn loc_2F45D: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov r14, rdi mov ecx, [rdi+10h] mov edi, [rdi+18h] add ebx, ecx mov eax, ebx xor edx, edx div ecx sub ebx, edx mov rcx, [r14+20h] bt ecx, 8 jb short loc_2F4A5 mov rsi, [r14] mov edx, [r14+14h] imul edx, ebx or rcx, 50h call my_realloc mov r15, rax test rax, rax jnz short loc_2F4DD mov al, 1 jmp short loc_2F4E6 loc_2F4A5: mov esi, [r14+14h] imul esi, ebx or rcx, 10h mov rdx, rcx call my_malloc test rax, rax jz short loc_2F4E4 mov r15, rax mov rsi, [r14] mov edx, [r14+14h] imul edx, [r14+8] mov rdi, rax call _memcpy mov eax, 0FFFFFEFFh and [r14+20h], rax loc_2F4DD: mov [r14], r15 mov [r14+0Ch], ebx loc_2F4E4: xor eax, eax loc_2F4E6: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long allocate_dynamic(long long *a1, unsigned int a2) { unsigned int v4; // ecx unsigned int v5; // edi unsigned int v6; // ebx long long v7; // rcx long long v8; // r15 long long v9; // rax if ( *((_DWORD *)a1 + 3) > a2 ) return 0LL; v4 = *((_DWORD *)a1 + 4); v5 = *((_DWORD *)a1 + 6); v6 = v4 + a2 - (v4 + a2) % v4; v7 = a1[4]; if ( (v7 & 0x100) == 0 ) { v8 = my_realloc(v5, *a1, v6 * *((_DWORD *)a1 + 5), (unsigned __int8)v7 | 0x50u); if ( !v8 ) return 1LL; goto LABEL_8; } v9 = my_malloc(v5, v6 * *((_DWORD *)a1 + 5), (unsigned int)v7 | 0x10); if ( v9 ) { v8 = v9; memcpy(v9, *a1, (unsigned int)(*((_DWORD *)a1 + 2) * *((_DWORD *)a1 + 5))); a1[4] &= 0xFFFFFEFFuLL; LABEL_8: *a1 = v8; *((_DWORD *)a1 + 3) = v6; } return 0LL; }
allocate_dynamic: CMP dword ptr [RDI + 0xc],ESI JBE 0x0012f45d XOR EAX,EAX RET LAB_0012f45d: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI MOV ECX,dword ptr [RDI + 0x10] MOV EDI,dword ptr [RDI + 0x18] ADD EBX,ECX MOV EAX,EBX XOR EDX,EDX DIV ECX SUB EBX,EDX MOV RCX,qword ptr [R14 + 0x20] BT ECX,0x8 JC 0x0012f4a5 MOV RSI,qword ptr [R14] MOV EDX,dword ptr [R14 + 0x14] IMUL EDX,EBX OR RCX,0x50 CALL 0x0012cb14 MOV R15,RAX TEST RAX,RAX JNZ 0x0012f4dd MOV AL,0x1 JMP 0x0012f4e6 LAB_0012f4a5: MOV ESI,dword ptr [R14 + 0x14] IMUL ESI,EBX OR RCX,0x10 MOV RDX,RCX CALL 0x0012c9f1 TEST RAX,RAX JZ 0x0012f4e4 MOV R15,RAX MOV RSI,qword ptr [R14] MOV EDX,dword ptr [R14 + 0x14] IMUL EDX,dword ptr [R14 + 0x8] MOV RDI,RAX CALL 0x001242a0 MOV EAX,0xfffffeff AND qword ptr [R14 + 0x20],RAX LAB_0012f4dd: MOV qword ptr [R14],R15 MOV dword ptr [R14 + 0xc],EBX LAB_0012f4e4: XOR EAX,EAX LAB_0012f4e6: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 allocate_dynamic(long *param_1,uint param_2) { ulong uVar1; void *__dest; int iVar2; if (param_2 < *(uint *)((long)param_1 + 0xc)) { return 0; } param_2 = param_2 + *(uint *)(param_1 + 2); iVar2 = param_2 - param_2 % *(uint *)(param_1 + 2); uVar1 = param_1[4]; if (((uint)uVar1 >> 8 & 1) == 0) { __dest = (void *)my_realloc((int)param_1[3],*param_1,*(int *)((long)param_1 + 0x14) * iVar2, uVar1 | 0x50); if (__dest == (void *)0x0) { return 1; } } else { __dest = (void *)my_malloc((int)param_1[3],*(int *)((long)param_1 + 0x14) * iVar2,uVar1 | 0x10); if (__dest == (void *)0x0) { return 0; } memcpy(__dest,(void *)*param_1,(ulong)(uint)(*(int *)((long)param_1 + 0x14) * (int)param_1[1])); param_1[4] = param_1[4] & 0xfffffeff; } *param_1 = (long)__dest; *(int *)((long)param_1 + 0xc) = iVar2; return 0; }
41,903
string_table_intern_n
tsotchke[P]eshkol/src/core/utils/string_table.c
const char* string_table_intern_n(StringTable* table, const char* string, size_t length) { assert(table != NULL); assert(string != NULL); // Compute hash uint32_t hash = hash_string(string, length); // Compute bucket index size_t bucket = hash & (table->bucket_count - 1); // Look for existing entry Entry* entry = table->buckets[bucket]; while (entry) { if (entry->hash == hash && entry->length == length && memcmp(entry->string, string, length) == 0) { return entry->string; } entry = entry->next; } // String not found, create new entry // Check if resize needed if (table->count >= table->resize_threshold) { string_table_resize(table); // Recompute bucket after resize bucket = hash & (table->bucket_count - 1); } // Allocate string char* new_string = arena_alloc(table->arena, length + 1); if (!new_string) return NULL; // Copy string memcpy(new_string, string, length); new_string[length] = '\0'; // Allocate entry entry = arena_alloc(table->arena, sizeof(Entry)); if (!entry) return NULL; // Initialize entry entry->string = new_string; entry->length = length; entry->hash = hash; entry->next = table->buckets[bucket]; // Add to bucket table->buckets[bucket] = entry; table->count++; return new_string; }
O2
c
string_table_intern_n: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp testq %rdi, %rdi je 0x42d5 testq %rsi, %rsi je 0x42ee movq %rdx, %r14 movq %rdi, %rbx movl $0xffffffff, %r13d # imm = 0xFFFFFFFF movq %rsi, 0x10(%rsp) movq %rsi, %rdi movq %rdx, %rsi callq 0x430b movl %eax, %ebp movl %eax, %eax movq %rax, 0x20(%rsp) movq 0x10(%rbx), %rax movq %rax, 0x8(%rsp) addl %r13d, %eax andl %ebp, %eax movq %rax, (%rsp) leaq (,%rax,8), %r15 addq 0x8(%rbx), %r15 movq (%r15), %r15 testq %r15, %r15 je 0x41b8 cmpl %ebp, 0x10(%r15) jne 0x41b2 cmpq %r14, 0x8(%r15) jne 0x41b2 movq (%r15), %r12 movq %r12, %rdi movq 0x10(%rsp), %rsi movq %r14, %rdx callq 0x10e0 testl %eax, %eax je 0x42c3 addq $0x18, %r15 jmp 0x4183 movq 0x18(%rbx), %rax cmpq 0x20(%rbx), %rax jb 0x4263 movq 0x8(%rsp), %r15 movq %r15, %rsi shlq $0x4, %rsi movq (%rbx), %rdi movq %rsi, (%rsp) callq 0x3d6d testq %rax, %rax je 0x4256 movq %rax, %r12 leaq (%r15,%r15), %rax movq %rax, 0x18(%rsp) xorl %r15d, %r15d movq %r12, %rdi xorl %esi, %esi movq (%rsp), %rdx callq 0x10a0 movq 0x18(%rsp), %r8 movq 0x10(%rbx), %rax addq %r8, %r13 cmpq %rax, %r15 je 0x423e movq 0x8(%rbx), %rcx movq (%rcx,%r15,8), %rcx testq %rcx, %rcx je 0x4239 movq 0x18(%rcx), %rdx movl 0x10(%rcx), %esi andl %r13d, %esi movq (%r12,%rsi,8), %rdi movq %rdi, 0x18(%rcx) movq %rcx, (%r12,%rsi,8) movq %rdx, %rcx jmp 0x4219 incq %r15 jmp 0x420c movq %r12, 0x8(%rbx) movq %r8, 0x10(%rbx) imulq $0x6, 0x8(%rsp), %rax shrq $0x2, %rax movq %rax, 0x20(%rbx) jmp 0x425a addq 0x10(%rbx), %r13 andl 0x20(%rsp), %r13d movq %r13, (%rsp) movq (%rbx), %rdi leaq 0x1(%r14), %rsi callq 0x3d6d testq %rax, %rax je 0x42c0 movq %rax, %r12 movq %rax, %rdi movq 0x10(%rsp), %rsi movq %r14, %rdx callq 0x10c0 movb $0x0, (%r12,%r14) movq (%rbx), %rdi pushq $0x20 popq %rsi callq 0x3d6d testq %rax, %rax je 0x42c0 movq %r12, (%rax) movq %r14, 0x8(%rax) movl %ebp, 0x10(%rax) movq 0x8(%rbx), %rcx movq (%rsp), %rsi movq (%rcx,%rsi,8), %rdx movq %rdx, 0x18(%rax) movq %rax, (%rcx,%rsi,8) incq 0x18(%rbx) jmp 0x42c3 xorl %r12d, %r12d movq %r12, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x3758(%rip), %rdi # 0x7a34 leaq 0x36c7(%rip), %rsi # 0x79aa leaq 0x3758(%rip), %rcx # 0x7a42 pushq $0x7b jmp 0x4305 leaq 0x3794(%rip), %rdi # 0x7a89 leaq 0x36ae(%rip), %rsi # 0x79aa leaq 0x373f(%rip), %rcx # 0x7a42 pushq $0x7c popq %rdx callq 0x1090
string_table_intern_n: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h test rdi, rdi jz loc_42D5 test rsi, rsi jz loc_42EE mov r14, rdx mov rbx, rdi mov r13d, 0FFFFFFFFh mov [rsp+58h+var_48], rsi mov rdi, rsi mov rsi, rdx call hash_string mov ebp, eax mov eax, eax mov [rsp+58h+var_38], rax mov rax, [rbx+10h] mov [rsp+58h+var_50], rax add eax, r13d and eax, ebp mov [rsp+58h+var_58], rax lea r15, ds:0[rax*8] add r15, [rbx+8] loc_4183: mov r15, [r15] test r15, r15 jz short loc_41B8 cmp [r15+10h], ebp jnz short loc_41B2 cmp [r15+8], r14 jnz short loc_41B2 mov r12, [r15] mov rdi, r12 mov rsi, [rsp+58h+var_48] mov rdx, r14 call _bcmp test eax, eax jz loc_42C3 loc_41B2: add r15, 18h jmp short loc_4183 loc_41B8: mov rax, [rbx+18h] cmp rax, [rbx+20h] jb loc_4263 mov r15, [rsp+58h+var_50] mov rsi, r15 shl rsi, 4 mov rdi, [rbx] mov [rsp+58h+var_58], rsi call arena_alloc test rax, rax jz short loc_4256 mov r12, rax lea rax, [r15+r15] mov [rsp+58h+var_40], rax xor r15d, r15d mov rdi, r12 xor esi, esi mov rdx, [rsp+58h+var_58] call _memset mov r8, [rsp+58h+var_40] mov rax, [rbx+10h] add r13, r8 loc_420C: cmp r15, rax jz short loc_423E mov rcx, [rbx+8] mov rcx, [rcx+r15*8] loc_4219: test rcx, rcx jz short loc_4239 mov rdx, [rcx+18h] mov esi, [rcx+10h] and esi, r13d mov rdi, [r12+rsi*8] mov [rcx+18h], rdi mov [r12+rsi*8], rcx mov rcx, rdx jmp short loc_4219 loc_4239: inc r15 jmp short loc_420C loc_423E: mov [rbx+8], r12 mov [rbx+10h], r8 imul rax, [rsp+58h+var_50], 6 shr rax, 2 mov [rbx+20h], rax jmp short loc_425A loc_4256: add r13, [rbx+10h] loc_425A: and r13d, dword ptr [rsp+58h+var_38] mov [rsp+58h+var_58], r13 loc_4263: mov rdi, [rbx] lea rsi, [r14+1] call arena_alloc test rax, rax jz short loc_42C0 mov r12, rax mov rdi, rax mov rsi, [rsp+58h+var_48] mov rdx, r14 call _memcpy mov byte ptr [r12+r14], 0 mov rdi, [rbx] push 20h ; ' ' pop rsi call arena_alloc test rax, rax jz short loc_42C0 mov [rax], r12 mov [rax+8], r14 mov [rax+10h], ebp mov rcx, [rbx+8] mov rsi, [rsp+58h+var_58] mov rdx, [rcx+rsi*8] mov [rax+18h], rdx mov [rcx+rsi*8], rax inc qword ptr [rbx+18h] jmp short loc_42C3 loc_42C0: xor r12d, r12d loc_42C3: mov rax, r12 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_42D5: lea rdi, aTableNull; "table != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstCharStrin; "const char *string_table_intern_n(Strin"... push 7Bh ; '{' jmp short loc_4305 loc_42EE: lea rdi, aStringNull; "string != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstCharStrin; "const char *string_table_intern_n(Strin"... push 7Ch ; '|' loc_4305: pop rdx call ___assert_fail
long long string_table_intern_n(long long *a1, long long a2, long long a3) { int v4; // ebp long long **i; // r15 long long *v6; // r15 long long v7; // r12 long long v8; // rax long long v9; // r12 long long v10; // r15 long long v11; // rax long long v12; // r13 long long j; // rcx long long v14; // rdx long long v15; // rsi long long v16; // rax long long v17; // rax long long v18; // rcx long long v20; // [rsp+0h] [rbp-58h] long long v21; // [rsp+8h] [rbp-50h] if ( !a1 ) __assert_fail( "table != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/string_table.c", 123LL, "const char *string_table_intern_n(StringTable *, const char *, size_t)"); if ( !a2 ) __assert_fail( "string != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/string_table.c", 124LL, "const char *string_table_intern_n(StringTable *, const char *, size_t)"); v4 = hash_string(a2, a3); v21 = a1[2]; v20 = v4 & (unsigned int)(v21 - 1); for ( i = (long long **)(a1[1] + 8 * v20); ; i = (long long **)(v6 + 3) ) { v6 = *i; if ( !v6 ) break; if ( *((_DWORD *)v6 + 4) == v4 && v6[1] == a3 ) { v7 = *v6; if ( !(unsigned int)bcmp(*v6, a2, a3) ) return v7; } } if ( a1[3] >= (unsigned long long)a1[4] ) { v8 = arena_alloc(*a1, 16 * v21); if ( v8 ) { v9 = v8; v10 = 0LL; memset(v8, 0LL, 16 * v21); v11 = a1[2]; LODWORD(v12) = 2 * v21 - 1; while ( v10 != v11 ) { for ( j = *(_QWORD *)(a1[1] + 8 * v10); j; j = v14 ) { v14 = *(_QWORD *)(j + 24); v15 = (unsigned int)v12 & *(_DWORD *)(j + 16); *(_QWORD *)(j + 24) = *(_QWORD *)(v9 + 8 * v15); *(_QWORD *)(v9 + 8 * v15) = j; } ++v10; } a1[1] = v9; a1[2] = 2 * v21; a1[4] = (unsigned long long)(6 * v21) >> 2; } else { v12 = a1[2] + 0xFFFFFFFFLL; } v20 = v4 & (unsigned int)v12; } v16 = arena_alloc(*a1, a3 + 1); if ( !v16 ) return 0LL; v7 = v16; memcpy(v16, a2, a3); *(_BYTE *)(v7 + a3) = 0; v17 = arena_alloc(*a1, 32LL); if ( !v17 ) return 0LL; *(_QWORD *)v17 = v7; *(_QWORD *)(v17 + 8) = a3; *(_DWORD *)(v17 + 16) = v4; v18 = a1[1]; *(_QWORD *)(v17 + 24) = *(_QWORD *)(v18 + 8 * v20); *(_QWORD *)(v18 + 8 * v20) = v17; ++a1[3]; return v7; }
string_table_intern_n: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 TEST RDI,RDI JZ 0x001042d5 TEST RSI,RSI JZ 0x001042ee MOV R14,RDX MOV RBX,RDI MOV R13D,0xffffffff MOV qword ptr [RSP + 0x10],RSI MOV RDI,RSI MOV RSI,RDX CALL 0x0010430b MOV EBP,EAX MOV EAX,EAX MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RBX + 0x10] MOV qword ptr [RSP + 0x8],RAX ADD EAX,R13D AND EAX,EBP MOV qword ptr [RSP],RAX LEA R15,[RAX*0x8] ADD R15,qword ptr [RBX + 0x8] LAB_00104183: MOV R15,qword ptr [R15] TEST R15,R15 JZ 0x001041b8 CMP dword ptr [R15 + 0x10],EBP JNZ 0x001041b2 CMP qword ptr [R15 + 0x8],R14 JNZ 0x001041b2 MOV R12,qword ptr [R15] MOV RDI,R12 MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R14 CALL 0x001010e0 TEST EAX,EAX JZ 0x001042c3 LAB_001041b2: ADD R15,0x18 JMP 0x00104183 LAB_001041b8: MOV RAX,qword ptr [RBX + 0x18] CMP RAX,qword ptr [RBX + 0x20] JC 0x00104263 MOV R15,qword ptr [RSP + 0x8] MOV RSI,R15 SHL RSI,0x4 MOV RDI,qword ptr [RBX] MOV qword ptr [RSP],RSI CALL 0x00103d6d TEST RAX,RAX JZ 0x00104256 MOV R12,RAX LEA RAX,[R15 + R15*0x1] MOV qword ptr [RSP + 0x18],RAX XOR R15D,R15D MOV RDI,R12 XOR ESI,ESI MOV RDX,qword ptr [RSP] CALL 0x001010a0 MOV R8,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RBX + 0x10] ADD R13,R8 LAB_0010420c: CMP R15,RAX JZ 0x0010423e MOV RCX,qword ptr [RBX + 0x8] MOV RCX,qword ptr [RCX + R15*0x8] LAB_00104219: TEST RCX,RCX JZ 0x00104239 MOV RDX,qword ptr [RCX + 0x18] MOV ESI,dword ptr [RCX + 0x10] AND ESI,R13D MOV RDI,qword ptr [R12 + RSI*0x8] MOV qword ptr [RCX + 0x18],RDI MOV qword ptr [R12 + RSI*0x8],RCX MOV RCX,RDX JMP 0x00104219 LAB_00104239: INC R15 JMP 0x0010420c LAB_0010423e: MOV qword ptr [RBX + 0x8],R12 MOV qword ptr [RBX + 0x10],R8 IMUL RAX,qword ptr [RSP + 0x8],0x6 SHR RAX,0x2 MOV qword ptr [RBX + 0x20],RAX JMP 0x0010425a LAB_00104256: ADD R13,qword ptr [RBX + 0x10] LAB_0010425a: AND R13D,dword ptr [RSP + 0x20] MOV qword ptr [RSP],R13 LAB_00104263: MOV RDI,qword ptr [RBX] LEA RSI,[R14 + 0x1] CALL 0x00103d6d TEST RAX,RAX JZ 0x001042c0 MOV R12,RAX MOV RDI,RAX MOV RSI,qword ptr [RSP + 0x10] MOV RDX,R14 CALL 0x001010c0 MOV byte ptr [R12 + R14*0x1],0x0 MOV RDI,qword ptr [RBX] PUSH 0x20 POP RSI CALL 0x00103d6d TEST RAX,RAX JZ 0x001042c0 MOV qword ptr [RAX],R12 MOV qword ptr [RAX + 0x8],R14 MOV dword ptr [RAX + 0x10],EBP MOV RCX,qword ptr [RBX + 0x8] MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RCX + RSI*0x8] MOV qword ptr [RAX + 0x18],RDX MOV qword ptr [RCX + RSI*0x8],RAX INC qword ptr [RBX + 0x18] JMP 0x001042c3 LAB_001042c0: XOR R12D,R12D LAB_001042c3: MOV RAX,R12 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001042d5: LEA RDI,[0x107a34] LEA RSI,[0x1079aa] LEA RCX,[0x107a42] PUSH 0x7b JMP 0x00104305 LAB_001042ee: LEA RDI,[0x107a89] LEA RSI,[0x1079aa] LEA RCX,[0x107a42] PUSH 0x7c LAB_00104305: POP RDX CALL 0x00101090
void * string_table_intern_n(int8 *param_1,void *param_2,size_t param_3) { long lVar1; long lVar2; long lVar3; uint uVar4; int iVar5; void *pvVar6; int8 *puVar7; long lVar8; ulong uVar9; char *__assertion; uint uVar10; long *plVar11; long lVar12; ulong local_58; if (param_1 == (int8 *)0x0) { __assertion = "table != NULL"; uVar4 = 0x7b; } else { if (param_2 != (void *)0x0) { uVar4 = hash_string(param_2,param_3); lVar1 = param_1[2]; local_58 = (ulong)((int)lVar1 - 1U & uVar4); plVar11 = (long *)(local_58 * 8 + param_1[1]); while (puVar7 = (int8 *)*plVar11, puVar7 != (int8 *)0x0) { if ((*(uint *)(puVar7 + 2) == uVar4) && (puVar7[1] == param_3)) { pvVar6 = (void *)*puVar7; iVar5 = bcmp(pvVar6,param_2,param_3); if (iVar5 == 0) { return pvVar6; } } plVar11 = puVar7 + 3; } if ((ulong)param_1[4] <= (ulong)param_1[3]) { pvVar6 = (void *)arena_alloc(*param_1); if (pvVar6 == (void *)0x0) { uVar10 = (int)param_1[2] - 1; } else { memset(pvVar6,0,lVar1 << 4); lVar2 = param_1[2]; uVar10 = (int)(lVar1 * 2) - 1; for (lVar12 = 0; lVar12 != lVar2; lVar12 = lVar12 + 1) { lVar8 = *(long *)(param_1[1] + lVar12 * 8); while (lVar8 != 0) { lVar3 = *(long *)(lVar8 + 0x18); uVar9 = (ulong)(*(uint *)(lVar8 + 0x10) & uVar10); *(int8 *)(lVar8 + 0x18) = *(int8 *)((long)pvVar6 + uVar9 * 8); *(long *)((long)pvVar6 + uVar9 * 8) = lVar8; lVar8 = lVar3; } } param_1[1] = pvVar6; param_1[2] = lVar1 * 2; param_1[4] = (ulong)(lVar1 * 6) >> 2; } local_58 = (ulong)(uVar10 & uVar4); } pvVar6 = (void *)arena_alloc(*param_1,param_3 + 1); if (pvVar6 != (void *)0x0) { memcpy(pvVar6,param_2,param_3); *(int1 *)((long)pvVar6 + param_3) = 0; puVar7 = (int8 *)arena_alloc(*param_1,0x20); if (puVar7 != (int8 *)0x0) { *puVar7 = pvVar6; puVar7[1] = param_3; *(uint *)(puVar7 + 2) = uVar4; lVar1 = param_1[1]; puVar7[3] = *(int8 *)(lVar1 + local_58 * 8); *(int8 **)(lVar1 + local_58 * 8) = puVar7; param_1[3] = param_1[3] + 1; return pvVar6; } } return (void *)0x0; } __assertion = "string != NULL"; uVar4 = 0x7c; } /* WARNING: Subroutine does not return */ __assert_fail(__assertion, "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/string_table.c" ,uVar4,"const char *string_table_intern_n(StringTable *, const char *, size_t)"); }
41,904
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>>>>::erase<char const (&) [11], 0>(char const (&) [11])
monkey531[P]llama/common/json.hpp
size_type erase(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { // Since we cannot move const Keys, re-construct them in place for (auto next = it; ++next != this->end(); ++it) { it->~value_type(); // Destroy but keep allocation new (&*it) value_type{std::move(*next)}; } Container::pop_back(); return 1; } } return 0; }
O0
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>>>>::erase<char const (&) [11], 0>(char const (&) [11]): subq $0x58, %rsp movq %rdi, 0x48(%rsp) movq %rsi, 0x40(%rsp) movq 0x48(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xb3e60 movq %rax, 0x38(%rsp) movq 0x18(%rsp), %rdi callq 0xb3e90 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0xb3ec0 testb $0x1, %al jne 0x16cb69 jmp 0x16cc41 movq 0x18(%rsp), %rax addq $0x18, %rax movq %rax, 0x10(%rsp) leaq 0x38(%rsp), %rdi callq 0xb5030 movq 0x10(%rsp), %rdi movq %rax, %rsi movq 0x40(%rsp), %rdx callq 0x16b8e0 testb $0x1, %al jne 0x16cb9c jmp 0x16cc30 movq 0x38(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x28(%rsp), %rdi callq 0xb3f40 movq 0x18(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0xb3e90 movq 0x8(%rsp), %rdi movq %rax, 0x20(%rsp) leaq 0x20(%rsp), %rsi callq 0xb3ec0 testb $0x1, %al jne 0x16cbd9 jmp 0x16cc1b leaq 0x38(%rsp), %rdi callq 0xb5030 movq %rax, %rdi callq 0xb1540 leaq 0x38(%rsp), %rdi callq 0xb3f00 movq %rax, (%rsp) leaq 0x28(%rsp), %rdi callq 0xb3f00 movq (%rsp), %rdi movq %rax, %rsi callq 0xb5750 leaq 0x38(%rsp), %rdi callq 0xb3f40 jmp 0x16cba6 movq 0x18(%rsp), %rdi callq 0x16cc60 movq $0x1, 0x50(%rsp) jmp 0x16cc4a jmp 0x16cc32 leaq 0x38(%rsp), %rdi callq 0xb3f40 jmp 0x16cb42 movq $0x0, 0x50(%rsp) movq 0x50(%rsp), %rax addq $0x58, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: sub rsp, 58h mov [rsp+58h+var_10], rdi mov [rsp+58h+var_18], rsi mov rdi, [rsp+58h+var_10] mov [rsp+58h+var_40], rdi call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+58h+var_20], rax loc_16CB42: mov rdi, [rsp+58h+var_40] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+58h+var_28], rax lea rdi, [rsp+58h+var_20] lea rsi, [rsp+58h+var_28] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_16CB69 jmp loc_16CC41 loc_16CB69: mov rax, [rsp+58h+var_40] add rax, 18h mov [rsp+58h+var_48], rax lea rdi, [rsp+58h+var_20] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) mov rdi, [rsp+58h+var_48] mov rsi, rax mov rdx, [rsp+58h+var_18] call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA11_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_ test al, 1 jnz short loc_16CB9C jmp loc_16CC30 loc_16CB9C: mov rax, [rsp+58h+var_20] mov [rsp+58h+var_30], rax loc_16CBA6: lea rdi, [rsp+58h+var_30] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) mov rdi, [rsp+58h+var_40] mov [rsp+58h+var_50], rax call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov rdi, [rsp+58h+var_50] mov [rsp+58h+var_38], rax lea rsi, [rsp+58h+var_38] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_16CBD9 jmp short loc_16CC1B loc_16CBD9: lea rdi, [rsp+58h+var_20] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void) mov rdi, rax call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() lea rdi, [rsp+58h+var_20] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+58h+var_58], rax lea rdi, [rsp+58h+var_30] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov rdi, [rsp+58h+var_58] mov rsi, rax call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) lea rdi, [rsp+58h+var_20] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_16CBA6 loc_16CC1B: mov rdi, [rsp+58h+var_40] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE8pop_backEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::pop_back(void) mov [rsp+58h+var_8], 1 jmp short loc_16CC4A loc_16CC30: jmp short $+2 loc_16CC32: lea rdi, [rsp+58h+var_20] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp loc_16CB42 loc_16CC41: mov [rsp+58h+var_8], 0 loc_16CC4A: mov rax, [rsp+58h+var_8] add rsp, 58h retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long a1, long long a2) { long long v2; // rax void *v3; // rax long long v4; // rax long long v6; // [rsp+0h] [rbp-58h] _QWORD *v7; // [rsp+8h] [rbp-50h] long long v8; // [rsp+20h] [rbp-38h] BYREF long long v9; // [rsp+28h] [rbp-30h] BYREF long long v10; // [rsp+30h] [rbp-28h] BYREF long long i; // [rsp+38h] [rbp-20h] BYREF long long v12; // [rsp+40h] [rbp-18h] long long v13; // [rsp+48h] [rbp-10h] v13 = a1; v12 = a2; for ( i = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(a1); ; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i) ) { v10 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)&i, (long long)&v10) ) return 0LL; v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i); if ( std::equal_to<void>::operator()<std::string const&,char const(&)[11]>(a1 + 24, v2, v12) ) break; } v9 = i; while ( 1 ) { v7 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&v9); v8 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>( (long long)v7, (long long)&v8) ) break; v3 = (void *)__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)&i); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(v3); v6 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*((long long)&i); v4 = __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator*((long long)&v9); std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( v6, v4); __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator++(&i); } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::pop_back(a1); return 1LL; }
41,905
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>>>>::erase<char const (&) [11], 0>(char const (&) [11])
monkey531[P]llama/common/json.hpp
size_type erase(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { // Since we cannot move const Keys, re-construct them in place for (auto next = it; ++next != this->end(); ++it) { it->~value_type(); // Destroy but keep allocation new (&*it) value_type{std::move(*next)}; } Container::pop_back(); 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>>>>::erase<char const (&) [11], 0>(char const (&) [11]): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r15 movq %rdi, %r14 movq (%rdi), %rbx movq 0x8(%r14), %r13 cmpq %r13, %rbx je 0x7eae5 movq %rbx, %rdi movq %r15, %rsi callq 0x3963b testb %al, %al jne 0x7eab8 addq $0x30, %rbx jmp 0x7ea9a movq %rbx, %r15 leaq 0x30(%r15), %r12 cmpq 0x8(%r14), %r12 je 0x7eadd movq %r15, %rdi callq 0x427ca movq %r15, %rdi movq %r12, %rsi callq 0x4342e movq %r12, %r15 jmp 0x7eabb movq %r14, %rdi callq 0x7eaf8 xorl %eax, %eax cmpq %r13, %rbx setne %al popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: push r15 push r14 push r13 push r12 push rbx mov r15, rsi mov r14, rdi mov rbx, [rdi] loc_7EA9A: mov r13, [r14+8] cmp rbx, r13 jz short loc_7EAE5 mov rdi, rbx mov rsi, r15 call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_7EAB8 add rbx, 30h ; '0' jmp short loc_7EA9A loc_7EAB8: mov r15, rbx loc_7EABB: lea r12, [r15+30h] cmp r12, [r14+8] jz short loc_7EADD mov rdi, r15; void * call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() mov rdi, r15 mov rsi, r12 call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) mov r15, r12 jmp short loc_7EABB loc_7EADD: mov rdi, r14 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE8pop_backEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::pop_back(void) loc_7EAE5: xor eax, eax cmp rbx, r13 setnz al pop rbx pop r12 pop r13 pop r14 pop r15 retn
_BOOL8 ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long *a1, char *a2) { long long i; // rbx long long v4; // r13 char *v5; // rsi char *j; // r15 for ( i = *a1; ; i += 48LL ) { v4 = a1[1]; if ( i == v4 ) break; v5 = a2; if ( std::operator==<char>(i) ) { for ( j = (char *)i; j + 48 != (char *)a1[1]; j += 48 ) { std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(j); v5 = j + 48; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( (long long)j, (long long)(j + 48)); } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::pop_back( a1, v5); return i != v4; } } return i != v4; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LAB_0017ea9a: MOV R13,qword ptr [R14 + 0x8] CMP RBX,R13 JZ 0x0017eae5 MOV RDI,RBX MOV RSI,R15 CALL 0x0013963b TEST AL,AL JNZ 0x0017eab8 ADD RBX,0x30 JMP 0x0017ea9a LAB_0017eab8: MOV R15,RBX LAB_0017eabb: LEA R12,[R15 + 0x30] CMP R12,qword ptr [R14 + 0x8] JZ 0x0017eadd MOV RDI,R15 CALL 0x001427ca MOV RDI,R15 MOV RSI,R12 CALL 0x0014342e MOV R15,R12 JMP 0x0017eabb LAB_0017eadd: MOV RDI,R14 CALL 0x0017eaf8 LAB_0017eae5: XOR EAX,EAX CMP RBX,R13 SETNZ AL POP RBX POP R12 POP R13 POP R14 POP R15 RET
bool _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_ (vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *param_1,char *param_2) { pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *ppVar1; string *psVar2; bool bVar3; string *psVar4; pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this; for (psVar4 = *(string **)param_1; psVar2 = *(string **)(param_1 + 8), psVar4 != psVar2; psVar4 = psVar4 + 0x30) { bVar3 = std::operator==(psVar4,param_2); this = (pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)psVar4; if (bVar3) goto LAB_0017eabb; } LAB_0017eae5: return psVar4 != psVar2; LAB_0017eabb: while (ppVar1 = this + 0x30, ppVar1 != *(pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> **)(param_1 + 8)) { std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~pair(this); std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::pair(this,ppVar1); this = ppVar1; } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::pop_back(param_1); goto LAB_0017eae5; }
41,906
isURIUnescaped
bluesky950520[P]quickjs/quickjs.c
static int isURIUnescaped(int c, int isComponent) { return c < 0x100 && ((c >= 0x61 && c <= 0x7a) || (c >= 0x41 && c <= 0x5a) || (c >= 0x30 && c <= 0x39) || memchr("-_.!~*'()", c, sizeof("-_.!~*'()") - 1) != NULL || (!isComponent && isURIReserved(c))); }
O0
c
isURIUnescaped: subq $0x18, %rsp movl %edi, 0x14(%rsp) movl %esi, 0x10(%rsp) xorl %eax, %eax cmpl $0x100, 0x14(%rsp) # imm = 0x100 movb %al, 0xf(%rsp) jge 0xd74a0 cmpl $0x61, 0x14(%rsp) jl 0xd7424 movb $0x1, %al cmpl $0x7a, 0x14(%rsp) movb %al, 0xe(%rsp) jle 0xd7498 cmpl $0x41, 0x14(%rsp) jl 0xd7438 movb $0x1, %al cmpl $0x5a, 0x14(%rsp) movb %al, 0xe(%rsp) jle 0xd7498 cmpl $0x30, 0x14(%rsp) jl 0xd744c movb $0x1, %al cmpl $0x39, 0x14(%rsp) movb %al, 0xe(%rsp) jle 0xd7498 movl 0x14(%rsp), %esi leaq 0x3fcd5(%rip), %rdi # 0x11712c movl $0x9, %edx callq 0xe480 movq %rax, %rcx movb $0x1, %al cmpq $0x0, %rcx movb %al, 0xe(%rsp) jne 0xd7498 xorl %eax, %eax cmpl $0x0, 0x10(%rsp) movb %al, 0xd(%rsp) jne 0xd7490 movl 0x14(%rsp), %edi callq 0xd7260 cmpl $0x0, %eax setne %al movb %al, 0xd(%rsp) movb 0xd(%rsp), %al movb %al, 0xe(%rsp) movb 0xe(%rsp), %al movb %al, 0xf(%rsp) movb 0xf(%rsp), %al andb $0x1, %al movzbl %al, %eax addq $0x18, %rsp retq nop
isURIUnescaped: sub rsp, 18h mov [rsp+18h+var_4], edi mov [rsp+18h+var_8], esi xor eax, eax cmp [rsp+18h+var_4], 100h mov [rsp+18h+var_9], al jge loc_D74A0 cmp [rsp+18h+var_4], 61h ; 'a' jl short loc_D7424 mov al, 1 cmp [rsp+18h+var_4], 7Ah ; 'z' mov [rsp+18h+var_A], al jle short loc_D7498 loc_D7424: cmp [rsp+18h+var_4], 41h ; 'A' jl short loc_D7438 mov al, 1 cmp [rsp+18h+var_4], 5Ah ; 'Z' mov [rsp+18h+var_A], al jle short loc_D7498 loc_D7438: cmp [rsp+18h+var_4], 30h ; '0' jl short loc_D744C mov al, 1 cmp [rsp+18h+var_4], 39h ; '9' mov [rsp+18h+var_A], al jle short loc_D7498 loc_D744C: mov esi, [rsp+18h+var_4] lea rdi, asc_11712C; "-_.!~*'()" mov edx, 9 call _memchr mov rcx, rax mov al, 1 cmp rcx, 0 mov [rsp+18h+var_A], al jnz short loc_D7498 xor eax, eax cmp [rsp+18h+var_8], 0 mov [rsp+18h+var_B], al jnz short loc_D7490 mov edi, [rsp+18h+var_4] call isURIReserved cmp eax, 0 setnz al mov [rsp+18h+var_B], al loc_D7490: mov al, [rsp+18h+var_B] mov [rsp+18h+var_A], al loc_D7498: mov al, [rsp+18h+var_A] mov [rsp+18h+var_9], al loc_D74A0: mov al, [rsp+18h+var_9] and al, 1 movzx eax, al add rsp, 18h retn
long long isURIUnescaped(int a1, int a2) { bool v3; // [rsp+Dh] [rbp-Bh] char v4; // [rsp+Eh] [rbp-Ah] char v5; // [rsp+Fh] [rbp-9h] v5 = 0; if ( a1 < 256 ) { if ( a1 < 97 || (v4 = 1, a1 > 122) ) { if ( a1 < 65 || (v4 = 1, a1 > 90) ) { if ( a1 < 48 || (v4 = 1, a1 > 57) ) { v4 = 1; if ( !memchr("-_.!~*'()", (unsigned int)a1, 9LL) ) { v3 = 0; if ( !a2 ) v3 = isURIReserved(a1); v4 = v3; } } } } v5 = v4; } return v5 & 1; }
isURIUnescaped: SUB RSP,0x18 MOV dword ptr [RSP + 0x14],EDI MOV dword ptr [RSP + 0x10],ESI XOR EAX,EAX CMP dword ptr [RSP + 0x14],0x100 MOV byte ptr [RSP + 0xf],AL JGE 0x001d74a0 CMP dword ptr [RSP + 0x14],0x61 JL 0x001d7424 MOV AL,0x1 CMP dword ptr [RSP + 0x14],0x7a MOV byte ptr [RSP + 0xe],AL JLE 0x001d7498 LAB_001d7424: CMP dword ptr [RSP + 0x14],0x41 JL 0x001d7438 MOV AL,0x1 CMP dword ptr [RSP + 0x14],0x5a MOV byte ptr [RSP + 0xe],AL JLE 0x001d7498 LAB_001d7438: CMP dword ptr [RSP + 0x14],0x30 JL 0x001d744c MOV AL,0x1 CMP dword ptr [RSP + 0x14],0x39 MOV byte ptr [RSP + 0xe],AL JLE 0x001d7498 LAB_001d744c: MOV ESI,dword ptr [RSP + 0x14] LEA RDI,[0x21712c] MOV EDX,0x9 CALL 0x0010e480 MOV RCX,RAX MOV AL,0x1 CMP RCX,0x0 MOV byte ptr [RSP + 0xe],AL JNZ 0x001d7498 XOR EAX,EAX CMP dword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0xd],AL JNZ 0x001d7490 MOV EDI,dword ptr [RSP + 0x14] CALL 0x001d7260 CMP EAX,0x0 SETNZ AL MOV byte ptr [RSP + 0xd],AL LAB_001d7490: MOV AL,byte ptr [RSP + 0xd] MOV byte ptr [RSP + 0xe],AL LAB_001d7498: MOV AL,byte ptr [RSP + 0xe] MOV byte ptr [RSP + 0xf],AL LAB_001d74a0: MOV AL,byte ptr [RSP + 0xf] AND AL,0x1 MOVZX EAX,AL ADD RSP,0x18 RET
bool isURIUnescaped(int param_1,int param_2) { int iVar1; void *pvVar2; bool local_b; bool local_a; bool local_9; local_9 = false; if (param_1 < 0x100) { if ((((param_1 < 0x61) || (local_a = true, 0x7a < param_1)) && ((param_1 < 0x41 || (local_a = true, 0x5a < param_1)))) && ((param_1 < 0x30 || (local_a = true, 0x39 < param_1)))) { pvVar2 = memchr(&DAT_0021712c,param_1,9); local_a = true; if (pvVar2 == (void *)0x0) { local_b = false; if (param_2 == 0) { iVar1 = isURIReserved(param_1); local_b = iVar1 != 0; } local_a = local_b; } } local_9 = local_a; } return local_9; }
41,907
chooseGLXFBConfig
untodesu[P]riteg/build_O0/_deps/glfw-src/src/glx_context.c
static GLFWbool chooseGLXFBConfig(const _GLFWfbconfig* desired, GLXFBConfig* result) { GLXFBConfig* nativeConfigs; _GLFWfbconfig* usableConfigs; const _GLFWfbconfig* closest; int i, nativeCount, usableCount; const char* vendor; GLFWbool trustWindowBit = GLFW_TRUE; // HACK: This is a (hopefully temporary) workaround for Chromium // (VirtualBox GL) not setting the window bit on any GLXFBConfigs vendor = glXGetClientString(_glfw.x11.display, GLX_VENDOR); if (vendor && strcmp(vendor, "Chromium") == 0) trustWindowBit = GLFW_FALSE; nativeConfigs = glXGetFBConfigs(_glfw.x11.display, _glfw.x11.screen, &nativeCount); if (!nativeConfigs || !nativeCount) { _glfwInputError(GLFW_API_UNAVAILABLE, "GLX: No GLXFBConfigs returned"); return GLFW_FALSE; } usableConfigs = calloc(nativeCount, sizeof(_GLFWfbconfig)); usableCount = 0; for (i = 0; i < nativeCount; i++) { const GLXFBConfig n = nativeConfigs[i]; _GLFWfbconfig* u = usableConfigs + usableCount; // Only consider RGBA GLXFBConfigs if (!(getGLXFBConfigAttrib(n, GLX_RENDER_TYPE) & GLX_RGBA_BIT)) continue; // Only consider window GLXFBConfigs if (!(getGLXFBConfigAttrib(n, GLX_DRAWABLE_TYPE) & GLX_WINDOW_BIT)) { if (trustWindowBit) continue; } if (desired->transparent) { XVisualInfo* vi = glXGetVisualFromFBConfig(_glfw.x11.display, n); if (vi) { u->transparent = _glfwIsVisualTransparentX11(vi->visual); XFree(vi); } } u->redBits = getGLXFBConfigAttrib(n, GLX_RED_SIZE); u->greenBits = getGLXFBConfigAttrib(n, GLX_GREEN_SIZE); u->blueBits = getGLXFBConfigAttrib(n, GLX_BLUE_SIZE); u->alphaBits = getGLXFBConfigAttrib(n, GLX_ALPHA_SIZE); u->depthBits = getGLXFBConfigAttrib(n, GLX_DEPTH_SIZE); u->stencilBits = getGLXFBConfigAttrib(n, GLX_STENCIL_SIZE); u->accumRedBits = getGLXFBConfigAttrib(n, GLX_ACCUM_RED_SIZE); u->accumGreenBits = getGLXFBConfigAttrib(n, GLX_ACCUM_GREEN_SIZE); u->accumBlueBits = getGLXFBConfigAttrib(n, GLX_ACCUM_BLUE_SIZE); u->accumAlphaBits = getGLXFBConfigAttrib(n, GLX_ACCUM_ALPHA_SIZE); u->auxBuffers = getGLXFBConfigAttrib(n, GLX_AUX_BUFFERS); if (getGLXFBConfigAttrib(n, GLX_STEREO)) u->stereo = GLFW_TRUE; if (getGLXFBConfigAttrib(n, GLX_DOUBLEBUFFER)) u->doublebuffer = GLFW_TRUE; if (_glfw.glx.ARB_multisample) u->samples = getGLXFBConfigAttrib(n, GLX_SAMPLES); if (_glfw.glx.ARB_framebuffer_sRGB || _glfw.glx.EXT_framebuffer_sRGB) u->sRGB = getGLXFBConfigAttrib(n, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB); u->handle = (uintptr_t) n; usableCount++; } closest = _glfwChooseFBConfig(desired, usableConfigs, usableCount); if (closest) *result = (GLXFBConfig) closest->handle; XFree(nativeConfigs); free(usableConfigs); return closest != NULL; }
O0
c
chooseGLXFBConfig: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl $0x1, -0x4c(%rbp) leaq 0xa901a(%rip), %rax # 0xe0c68 movq 0x20798(%rax), %rax leaq 0xa900c(%rip), %rcx # 0xe0c68 movq 0x1fec0(%rcx), %rdi movl $0x1, %esi callq *%rax movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%rbp) je 0x37c91 movq -0x48(%rbp), %rdi leaq 0x84234(%rip), %rsi # 0xbbeb4 callq 0xcc60 cmpl $0x0, %eax jne 0x37c91 movl $0x0, -0x4c(%rbp) leaq 0xa8fd0(%rip), %rax # 0xe0c68 movq 0x20788(%rax), %rax leaq 0xa8fc2(%rip), %rcx # 0xe0c68 movq 0x1fec0(%rcx), %rdi leaq 0xa8fb4(%rip), %rcx # 0xe0c68 movl 0x1fec8(%rcx), %esi leaq -0x38(%rbp), %rdx callq *%rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x37cd1 cmpl $0x0, -0x38(%rbp) jne 0x37cf0 movl $0x10006, %edi # imm = 0x10006 leaq 0x841e0(%rip), %rsi # 0xbbebd movb $0x0, %al callq 0x221a0 movl $0x0, -0x4(%rbp) jmp 0x37fd9 movslq -0x38(%rbp), %rdi movl $0x48, %esi callq 0xc5b0 movq %rax, -0x28(%rbp) movl $0x0, -0x3c(%rbp) movl $0x0, -0x34(%rbp) movl -0x34(%rbp), %eax cmpl -0x38(%rbp), %eax jge 0x37f8d movq -0x20(%rbp), %rax movslq -0x34(%rbp), %rcx movq (%rax,%rcx,8), %rax movq %rax, -0x58(%rbp) movq -0x28(%rbp), %rax movslq -0x3c(%rbp), %rcx imulq $0x48, %rcx, %rcx addq %rcx, %rax movq %rax, -0x60(%rbp) movq -0x58(%rbp), %rdi movl $0x8011, %esi # imm = 0x8011 callq 0x38480 andl $0x1, %eax cmpl $0x0, %eax jne 0x37d5a jmp 0x37f7f movq -0x58(%rbp), %rdi movl $0x8010, %esi # imm = 0x8010 callq 0x38480 andl $0x1, %eax cmpl $0x0, %eax jne 0x37d7d cmpl $0x0, -0x4c(%rbp) je 0x37d7b jmp 0x37f7f jmp 0x37d7d movq -0x10(%rbp), %rax cmpl $0x0, 0x3c(%rax) je 0x37dd4 leaq 0xa8eda(%rip), %rax # 0xe0c68 movq 0x207d8(%rax), %rax leaq 0xa8ecc(%rip), %rcx # 0xe0c68 movq 0x1fec0(%rcx), %rdi movq -0x58(%rbp), %rsi callq *%rax movq %rax, -0x68(%rbp) cmpq $0x0, -0x68(%rbp) je 0x37dd2 movq -0x68(%rbp), %rax movq (%rax), %rdi callq 0x2ffe0 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x3c(%rax) movq -0x68(%rbp), %rdi callq 0xcb90 jmp 0x37dd4 movq -0x58(%rbp), %rdi movl $0x8, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, (%rax) movq -0x58(%rbp), %rdi movl $0x9, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x58(%rbp), %rdi movl $0xa, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x58(%rbp), %rdi movl $0xb, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x58(%rbp), %rdi movl $0xc, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x58(%rbp), %rdi movl $0xd, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x58(%rbp), %rdi movl $0xe, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x18(%rax) movq -0x58(%rbp), %rdi movl $0xf, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x1c(%rax) movq -0x58(%rbp), %rdi movl $0x10, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x20(%rax) movq -0x58(%rbp), %rdi movl $0x11, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x58(%rbp), %rdi movl $0x7, %esi callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x28(%rax) movq -0x58(%rbp), %rdi movl $0x6, %esi callq 0x38480 cmpl $0x0, %eax je 0x37eee movq -0x60(%rbp), %rax movl $0x1, 0x2c(%rax) movq -0x58(%rbp), %rdi movl $0x5, %esi callq 0x38480 cmpl $0x0, %eax je 0x37f0c movq -0x60(%rbp), %rax movl $0x1, 0x38(%rax) leaq 0xa8d55(%rip), %rax # 0xe0c68 cmpl $0x0, 0x2082c(%rax) je 0x37f33 movq -0x58(%rbp), %rdi movl $0x186a1, %esi # imm = 0x186A1 callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x30(%rax) leaq 0xa8d2e(%rip), %rax # 0xe0c68 cmpl $0x0, 0x20830(%rax) jne 0x37f53 leaq 0xa8d1e(%rip), %rax # 0xe0c68 cmpl $0x0, 0x20834(%rax) je 0x37f6a movq -0x58(%rbp), %rdi movl $0x20b2, %esi # imm = 0x20B2 callq 0x38480 movl %eax, %ecx movq -0x60(%rbp), %rax movl %ecx, 0x34(%rax) movq -0x58(%rbp), %rcx movq -0x60(%rbp), %rax movq %rcx, 0x40(%rax) movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) movl -0x34(%rbp), %eax addl $0x1, %eax movl %eax, -0x34(%rbp) jmp 0x37d10 movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movl -0x3c(%rbp), %edx callq 0x210d0 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x37fb7 movq -0x30(%rbp), %rax movq 0x40(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rdi callq 0xcb90 movq -0x28(%rbp), %rdi callq 0xcb20 cmpq $0x0, -0x30(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
chooseGLXFBConfig: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_4C], 1 lea rax, _glfw mov rax, qword ptr ds:loc_20798[rax] lea rcx, _glfw mov rdi, qword ptr ds:loc_1FEC0[rcx] mov esi, 1 call rax mov [rbp+var_48], rax cmp [rbp+var_48], 0 jz short loc_37C91 mov rdi, [rbp+var_48] lea rsi, aChromium; "Chromium" call _strcmp cmp eax, 0 jnz short loc_37C91 mov [rbp+var_4C], 0 loc_37C91: lea rax, _glfw mov rax, [rax+20788h] lea rcx, _glfw mov rdi, qword ptr ds:loc_1FEC0[rcx] lea rcx, _glfw mov esi, [rcx+1FEC8h] lea rdx, [rbp+var_38] call rax mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_37CD1 cmp [rbp+var_38], 0 jnz short loc_37CF0 loc_37CD1: mov edi, 10006h lea rsi, aGlxNoGlxfbconf; "GLX: No GLXFBConfigs returned" mov al, 0 call _glfwInputError mov [rbp+var_4], 0 jmp loc_37FD9 loc_37CF0: movsxd rdi, [rbp+var_38] mov esi, 48h ; 'H' call _calloc mov [rbp+var_28], rax mov [rbp+var_3C], 0 mov [rbp+var_34], 0 loc_37D10: mov eax, [rbp+var_34] cmp eax, [rbp+var_38] jge loc_37F8D mov rax, [rbp+var_20] movsxd rcx, [rbp+var_34] mov rax, [rax+rcx*8] mov [rbp+var_58], rax mov rax, [rbp+var_28] movsxd rcx, [rbp+var_3C] imul rcx, 48h ; 'H' add rax, rcx mov [rbp+var_60], rax mov rdi, [rbp+var_58] mov esi, 8011h call getGLXFBConfigAttrib and eax, 1 cmp eax, 0 jnz short loc_37D5A jmp loc_37F7F loc_37D5A: mov rdi, [rbp+var_58] mov esi, 8010h call getGLXFBConfigAttrib and eax, 1 cmp eax, 0 jnz short loc_37D7D cmp [rbp+var_4C], 0 jz short loc_37D7B jmp loc_37F7F loc_37D7B: jmp short $+2 loc_37D7D: mov rax, [rbp+var_10] cmp dword ptr [rax+3Ch], 0 jz short loc_37DD4 lea rax, _glfw mov rax, ds:qword_207D8[rax] lea rcx, _glfw mov rdi, qword ptr ds:loc_1FEC0[rcx] mov rsi, [rbp+var_58] call rax mov [rbp+var_68], rax cmp [rbp+var_68], 0 jz short loc_37DD2 mov rax, [rbp+var_68] mov rdi, [rax] call _glfwIsVisualTransparentX11 mov ecx, eax mov rax, [rbp+var_60] mov [rax+3Ch], ecx mov rdi, [rbp+var_68] call _XFree loc_37DD2: jmp short $+2 loc_37DD4: mov rdi, [rbp+var_58] mov esi, 8 call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax], ecx mov rdi, [rbp+var_58] mov esi, 9 call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+4], ecx mov rdi, [rbp+var_58] mov esi, 0Ah call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+8], ecx mov rdi, [rbp+var_58] mov esi, 0Bh call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+0Ch], ecx mov rdi, [rbp+var_58] mov esi, 0Ch call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+10h], ecx mov rdi, [rbp+var_58] mov esi, 0Dh call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+14h], ecx mov rdi, [rbp+var_58] mov esi, 0Eh call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+18h], ecx mov rdi, [rbp+var_58] mov esi, 0Fh call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+1Ch], ecx mov rdi, [rbp+var_58] mov esi, 10h call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+20h], ecx mov rdi, [rbp+var_58] mov esi, 11h call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+24h], ecx mov rdi, [rbp+var_58] mov esi, 7 call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+28h], ecx mov rdi, [rbp+var_58] mov esi, 6 call getGLXFBConfigAttrib cmp eax, 0 jz short loc_37EEE mov rax, [rbp+var_60] mov dword ptr [rax+2Ch], 1 loc_37EEE: mov rdi, [rbp+var_58] mov esi, 5 call getGLXFBConfigAttrib cmp eax, 0 jz short loc_37F0C mov rax, [rbp+var_60] mov dword ptr [rax+38h], 1 loc_37F0C: lea rax, _glfw cmp dword ptr [rax+2082Ch], 0 jz short loc_37F33 mov rdi, [rbp+var_58] mov esi, 186A1h call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+30h], ecx loc_37F33: lea rax, _glfw cmp dword ptr [rax+20830h], 0 jnz short loc_37F53 lea rax, _glfw cmp dword ptr ds:loc_20834[rax], 0 jz short loc_37F6A loc_37F53: mov rdi, [rbp+var_58] mov esi, 20B2h call getGLXFBConfigAttrib mov ecx, eax mov rax, [rbp+var_60] mov [rax+34h], ecx loc_37F6A: mov rcx, [rbp+var_58] mov rax, [rbp+var_60] mov [rax+40h], rcx mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax loc_37F7F: mov eax, [rbp+var_34] add eax, 1 mov [rbp+var_34], eax jmp loc_37D10 loc_37F8D: mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov edx, [rbp+var_3C] call _glfwChooseFBConfig mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_37FB7 mov rax, [rbp+var_30] mov rcx, [rax+40h] mov rax, [rbp+var_18] mov [rax], rcx loc_37FB7: mov rdi, [rbp+var_20] call _XFree mov rdi, [rbp+var_28] call _free cmp [rbp+var_30], 0 setnz al and al, 1 movzx eax, al mov [rbp+var_4], eax loc_37FD9: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
_BOOL8 chooseGLXFBConfig(_DWORD *a1, _QWORD *a2) { long long *v3; // [rsp+8h] [rbp-68h] long long v4; // [rsp+10h] [rbp-60h] long long v5; // [rsp+18h] [rbp-58h] BOOL v6; // [rsp+24h] [rbp-4Ch] long long v7; // [rsp+28h] [rbp-48h] signed int v8; // [rsp+34h] [rbp-3Ch] int v9; // [rsp+38h] [rbp-38h] BYREF int i; // [rsp+3Ch] [rbp-34h] _DWORD *v11; // [rsp+40h] [rbp-30h] long long v12; // [rsp+48h] [rbp-28h] long long v13; // [rsp+50h] [rbp-20h] _QWORD *v14; // [rsp+58h] [rbp-18h] _DWORD *v15; // [rsp+60h] [rbp-10h] v15 = a1; v14 = a2; v6 = 1; v7 = (*(long long ( **)(_QWORD, long long))((char *)&loc_20798 + (_QWORD)glfw))( *(_QWORD *)((char *)&loc_1FEC0 + (_QWORD)glfw), 1LL); if ( v7 ) v6 = strcmp(v7, "Chromium") != 0; v13 = (*(long long ( **)(_QWORD, _QWORD, int *))&glfw[33250])( *(_QWORD *)((char *)&loc_1FEC0 + (_QWORD)glfw), (unsigned int)glfw[32690], &v9); if ( v13 && v9 ) { v12 = calloc(v9, 72LL); v8 = 0; for ( i = 0; i < v9; ++i ) { v5 = *(_QWORD *)(v13 + 8LL * i); v4 = 72LL * v8 + v12; if ( (getGLXFBConfigAttrib(v5, 32785LL) & 1) != 0 && ((getGLXFBConfigAttrib(v5, 32784LL) & 1) != 0 || !v6) ) { if ( v15[15] ) { v3 = (long long *)(*(long long ( **)(_QWORD, long long))((char *)&qword_207D8 + (_QWORD)glfw))( *(_QWORD *)((char *)&loc_1FEC0 + (_QWORD)glfw), v5); if ( v3 ) { *(_DWORD *)(v4 + 60) = glfwIsVisualTransparentX11(*v3); XFree(v3); } } *(_DWORD *)v4 = getGLXFBConfigAttrib(v5, 8LL); *(_DWORD *)(v4 + 4) = getGLXFBConfigAttrib(v5, 9LL); *(_DWORD *)(v4 + 8) = getGLXFBConfigAttrib(v5, 10LL); *(_DWORD *)(v4 + 12) = getGLXFBConfigAttrib(v5, 11LL); *(_DWORD *)(v4 + 16) = getGLXFBConfigAttrib(v5, 12LL); *(_DWORD *)(v4 + 20) = getGLXFBConfigAttrib(v5, 13LL); *(_DWORD *)(v4 + 24) = getGLXFBConfigAttrib(v5, 14LL); *(_DWORD *)(v4 + 28) = getGLXFBConfigAttrib(v5, 15LL); *(_DWORD *)(v4 + 32) = getGLXFBConfigAttrib(v5, 16LL); *(_DWORD *)(v4 + 36) = getGLXFBConfigAttrib(v5, 17LL); *(_DWORD *)(v4 + 40) = getGLXFBConfigAttrib(v5, 7LL); if ( (unsigned int)getGLXFBConfigAttrib(v5, 6LL) ) *(_DWORD *)(v4 + 44) = 1; if ( (unsigned int)getGLXFBConfigAttrib(v5, 5LL) ) *(_DWORD *)(v4 + 56) = 1; if ( glfw[33291] ) *(_DWORD *)(v4 + 48) = getGLXFBConfigAttrib(v5, 100001LL); if ( glfw[33292] || *(_DWORD *)((char *)&loc_20834 + (_QWORD)glfw) ) *(_DWORD *)(v4 + 52) = getGLXFBConfigAttrib(v5, 8370LL); *(_QWORD *)(v4 + 64) = v5; ++v8; } } v11 = glfwChooseFBConfig(v15, v12, v8); if ( v11 ) *v14 = *((_QWORD *)v11 + 8); XFree(v13); free(v12); return v11 != 0LL; } else { glfwInputError(0x10006u, (long long)"GLX: No GLXFBConfigs returned"); return 0; } }
chooseGLXFBConfig: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x4c],0x1 LEA RAX,[0x1e0c68] MOV RAX,qword ptr [RAX + 0x20798] LEA RCX,[0x1e0c68] MOV RDI,qword ptr [RCX + 0x1fec0] MOV ESI,0x1 CALL RAX MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],0x0 JZ 0x00137c91 MOV RDI,qword ptr [RBP + -0x48] LEA RSI,[0x1bbeb4] CALL 0x0010cc60 CMP EAX,0x0 JNZ 0x00137c91 MOV dword ptr [RBP + -0x4c],0x0 LAB_00137c91: LEA RAX,[0x1e0c68] MOV RAX,qword ptr [RAX + 0x20788] LEA RCX,[0x1e0c68] MOV RDI,qword ptr [RCX + 0x1fec0] LEA RCX,[0x1e0c68] MOV ESI,dword ptr [RCX + 0x1fec8] LEA RDX,[RBP + -0x38] CALL RAX MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JZ 0x00137cd1 CMP dword ptr [RBP + -0x38],0x0 JNZ 0x00137cf0 LAB_00137cd1: MOV EDI,0x10006 LEA RSI,[0x1bbebd] MOV AL,0x0 CALL 0x001221a0 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00137fd9 LAB_00137cf0: MOVSXD RDI,dword ptr [RBP + -0x38] MOV ESI,0x48 CALL 0x0010c5b0 MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [RBP + -0x3c],0x0 MOV dword ptr [RBP + -0x34],0x0 LAB_00137d10: MOV EAX,dword ptr [RBP + -0x34] CMP EAX,dword ptr [RBP + -0x38] JGE 0x00137f8d MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x3c] IMUL RCX,RCX,0x48 ADD RAX,RCX MOV qword ptr [RBP + -0x60],RAX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x8011 CALL 0x00138480 AND EAX,0x1 CMP EAX,0x0 JNZ 0x00137d5a JMP 0x00137f7f LAB_00137d5a: MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x8010 CALL 0x00138480 AND EAX,0x1 CMP EAX,0x0 JNZ 0x00137d7d CMP dword ptr [RBP + -0x4c],0x0 JZ 0x00137d7b JMP 0x00137f7f LAB_00137d7b: JMP 0x00137d7d LAB_00137d7d: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x3c],0x0 JZ 0x00137dd4 LEA RAX,[0x1e0c68] MOV RAX,qword ptr [RAX + 0x207d8] LEA RCX,[0x1e0c68] MOV RDI,qword ptr [RCX + 0x1fec0] MOV RSI,qword ptr [RBP + -0x58] CALL RAX MOV qword ptr [RBP + -0x68],RAX CMP qword ptr [RBP + -0x68],0x0 JZ 0x00137dd2 MOV RAX,qword ptr [RBP + -0x68] MOV RDI,qword ptr [RAX] CALL 0x0012ffe0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x3c],ECX MOV RDI,qword ptr [RBP + -0x68] CALL 0x0010cb90 LAB_00137dd2: JMP 0x00137dd4 LAB_00137dd4: MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x8 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x9 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x4],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xa CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x8],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xb CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0xc],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xc CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x10],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xd CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x14],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xe CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x18],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0xf CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x1c],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x10 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x20],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x11 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x24],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x7 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x28],ECX MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x6 CALL 0x00138480 CMP EAX,0x0 JZ 0x00137eee MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x2c],0x1 LAB_00137eee: MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x5 CALL 0x00138480 CMP EAX,0x0 JZ 0x00137f0c MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x38],0x1 LAB_00137f0c: LEA RAX,[0x1e0c68] CMP dword ptr [RAX + 0x2082c],0x0 JZ 0x00137f33 MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x186a1 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x30],ECX LAB_00137f33: LEA RAX,[0x1e0c68] CMP dword ptr [RAX + 0x20830],0x0 JNZ 0x00137f53 LEA RAX,[0x1e0c68] CMP dword ptr [RAX + 0x20834],0x0 JZ 0x00137f6a LAB_00137f53: MOV RDI,qword ptr [RBP + -0x58] MOV ESI,0x20b2 CALL 0x00138480 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x60] MOV dword ptr [RAX + 0x34],ECX LAB_00137f6a: MOV RCX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x60] MOV qword ptr [RAX + 0x40],RCX MOV EAX,dword ptr [RBP + -0x3c] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX LAB_00137f7f: MOV EAX,dword ptr [RBP + -0x34] ADD EAX,0x1 MOV dword ptr [RBP + -0x34],EAX JMP 0x00137d10 LAB_00137f8d: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RBP + -0x3c] CALL 0x001210d0 MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x00137fb7 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX LAB_00137fb7: MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010cb90 MOV RDI,qword ptr [RBP + -0x28] CALL 0x0010cb20 CMP qword ptr [RBP + -0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RBP + -0x4],EAX LAB_00137fd9: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
bool chooseGLXFBConfig(long param_1,int8 *param_2) { int8 uVar1; int iVar2; uint uVar3; int4 uVar4; char *__s1; int4 *puVar5; int8 *puVar6; bool bVar7; int local_44; int local_40; int local_3c; long local_38; void *local_30; long local_28; int8 *local_20; long local_18; bVar7 = true; local_20 = param_2; local_18 = param_1; __s1 = (char *)(*DAT_00201400)(DAT_00200b28,1); if ((__s1 != (char *)0x0) && (iVar2 = strcmp(__s1,"Chromium"), iVar2 == 0)) { bVar7 = false; } local_28 = (*DAT_002013f0)(DAT_00200b28,DAT_00200b30,&local_40); if ((local_28 == 0) || (local_40 == 0)) { _glfwInputError(0x10006,"GLX: No GLXFBConfigs returned"); bVar7 = false; } else { local_30 = calloc((long)local_40,0x48); local_44 = 0; for (local_3c = 0; local_3c < local_40; local_3c = local_3c + 1) { uVar1 = *(int8 *)(local_28 + (long)local_3c * 8); puVar5 = (int4 *)((long)local_30 + (long)local_44 * 0x48); uVar3 = getGLXFBConfigAttrib(uVar1,0x8011); if (((uVar3 & 1) != 0) && ((uVar3 = getGLXFBConfigAttrib(uVar1,0x8010), (uVar3 & 1) != 0 || (!bVar7)))) { if ((*(int *)(local_18 + 0x3c) != 0) && (puVar6 = (int8 *)(*DAT_00201440)(DAT_00200b28,uVar1), puVar6 != (int8 *)0x0) ) { uVar4 = _glfwIsVisualTransparentX11(*puVar6); puVar5[0xf] = uVar4; XFree(puVar6); } uVar4 = getGLXFBConfigAttrib(uVar1,8); *puVar5 = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,9); puVar5[1] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,10); puVar5[2] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0xb); puVar5[3] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0xc); puVar5[4] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0xd); puVar5[5] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0xe); puVar5[6] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0xf); puVar5[7] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0x10); puVar5[8] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,0x11); puVar5[9] = uVar4; uVar4 = getGLXFBConfigAttrib(uVar1,7); puVar5[10] = uVar4; iVar2 = getGLXFBConfigAttrib(uVar1,6); if (iVar2 != 0) { puVar5[0xb] = 1; } iVar2 = getGLXFBConfigAttrib(uVar1,5); if (iVar2 != 0) { puVar5[0xe] = 1; } if (DAT_00201494 != 0) { uVar4 = getGLXFBConfigAttrib(uVar1,0x186a1); puVar5[0xc] = uVar4; } if ((DAT_00201498 != 0) || (DAT_0020149c != 0)) { uVar4 = getGLXFBConfigAttrib(uVar1,0x20b2); puVar5[0xd] = uVar4; } *(int8 *)(puVar5 + 0x10) = uVar1; local_44 = local_44 + 1; } } local_38 = _glfwChooseFBConfig(local_18,local_30,local_44); if (local_38 != 0) { *local_20 = *(int8 *)(local_38 + 0x40); } XFree(local_28); free(local_30); bVar7 = local_38 != 0; } return bVar7; }
41,908
my_strnncoll_latin1_de
eloqsql/strings/ctype-latin1.c
static int my_strnncoll_latin1_de(CHARSET_INFO *cs __attribute__((unused)), const uchar *a, size_t a_length, const uchar *b, size_t b_length, my_bool b_is_prefix) { const uchar *a_end= a + a_length; const uchar *b_end= b + b_length; uchar a_char, a_extend= 0, b_char, b_extend= 0; while ((a < a_end || a_extend) && (b < b_end || b_extend)) { if (a_extend) { a_char=a_extend; a_extend=0; } else { a_extend=combo2map[*a]; a_char=combo1map[*a++]; } if (b_extend) { b_char=b_extend; b_extend=0; } else { b_extend=combo2map[*b]; b_char=combo1map[*b++]; } if (a_char != b_char) return (int) a_char - (int) b_char; } /* A simple test of string lengths won't work -- we test to see which string ran out first */ return ((a < a_end || a_extend) ? (b_is_prefix ? 0 : 1) : (b < b_end || b_extend) ? -1 : 0); }
O3
c
my_strnncoll_latin1_de: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx addq %rsi, %rdx addq %rcx, %r8 xorl %r10d, %r10d leaq 0x16bae0(%rip), %rax # 0x1a1a90 leaq 0x16b9d9(%rip), %rdi # 0x1a1990 xorl %r11d, %r11d cmpq %r8, %rcx setb %r14b testb %r11b, %r11b setne %bl orb %r14b, %bl cmpq %rdx, %rsi jb 0x35fd4 testb %r10b, %r10b je 0x3601e testb %bl, %bl je 0x36025 testb %r10b, %r10b je 0x35fe5 movl %r10d, %ebx xorl %r10d, %r10d jmp 0x35ff2 movzbl (%rsi), %ebx movb (%rbx,%rax), %r10b incq %rsi movb (%rbx,%rdi), %bl testb %r11b, %r11b je 0x35fff movl %r11d, %r14d xorl %r11d, %r11d jmp 0x3600e movzbl (%rcx), %r14d movb (%r14,%rax), %r11b incq %rcx movb (%r14,%rdi), %r14b cmpb %r14b, %bl je 0x35fba movzbl %r14b, %ecx movzbl %bl, %eax subl %ecx, %eax jmp 0x3602d movzbl %bl, %eax negl %eax jmp 0x3602d xorl %eax, %eax testb %r9b, %r9b sete %al popq %rbx popq %r14 popq %rbp retq
my_strnncoll_latin1_de: push rbp mov rbp, rsp push r14 push rbx add rdx, rsi add r8, rcx xor r10d, r10d lea rax, combo2map lea rdi, combo1map xor r11d, r11d loc_35FBA: cmp rcx, r8 setb r14b test r11b, r11b setnz bl or bl, r14b cmp rsi, rdx jb short loc_35FD4 test r10b, r10b jz short loc_3601E loc_35FD4: test bl, bl jz short loc_36025 test r10b, r10b jz short loc_35FE5 mov ebx, r10d xor r10d, r10d jmp short loc_35FF2 loc_35FE5: movzx ebx, byte ptr [rsi] mov r10b, [rbx+rax] inc rsi mov bl, [rbx+rdi] loc_35FF2: test r11b, r11b jz short loc_35FFF mov r14d, r11d xor r11d, r11d jmp short loc_3600E loc_35FFF: movzx r14d, byte ptr [rcx] mov r11b, [r14+rax] inc rcx mov r14b, [r14+rdi] loc_3600E: cmp bl, r14b jz short loc_35FBA movzx ecx, r14b movzx eax, bl sub eax, ecx jmp short loc_3602D loc_3601E: movzx eax, bl neg eax jmp short loc_3602D loc_36025: xor eax, eax test r9b, r9b setz al loc_3602D: pop rbx pop r14 pop rbp retn
long long my_strnncoll_latin1_de( long long a1, unsigned __int8 *a2, long long a3, unsigned __int8 *a4, long long a5, char a6) { unsigned __int8 *v6; // rdx unsigned __int8 *v7; // r8 unsigned __int8 v8; // r10 unsigned __int8 v9; // r11 bool v10; // bl unsigned __int8 v11; // bl long long v12; // rbx unsigned __int8 v13; // r14 long long v14; // r14 v6 = &a2[a3]; v7 = &a4[a5]; v8 = 0; v9 = 0; while ( 1 ) { v10 = a4 < v7 || v9 != 0; if ( a2 >= v6 && !v8 ) return (unsigned int)-v10; if ( !v10 ) break; if ( v8 ) { v11 = v8; v8 = 0; } else { v12 = *a2; v8 = combo2map[v12]; ++a2; v11 = combo1map[v12]; } if ( v9 ) { v13 = v9; v9 = 0; } else { v14 = *a4; v9 = combo2map[v14]; ++a4; v13 = combo1map[v14]; } if ( v11 != v13 ) return v11 - (unsigned int)v13; } return a6 == 0; }
my_strnncoll_latin1_de: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX ADD RDX,RSI ADD R8,RCX XOR R10D,R10D LEA RAX,[0x2a1a90] LEA RDI,[0x2a1990] XOR R11D,R11D LAB_00135fba: CMP RCX,R8 SETC R14B TEST R11B,R11B SETNZ BL OR BL,R14B CMP RSI,RDX JC 0x00135fd4 TEST R10B,R10B JZ 0x0013601e LAB_00135fd4: TEST BL,BL JZ 0x00136025 TEST R10B,R10B JZ 0x00135fe5 MOV EBX,R10D XOR R10D,R10D JMP 0x00135ff2 LAB_00135fe5: MOVZX EBX,byte ptr [RSI] MOV R10B,byte ptr [RBX + RAX*0x1] INC RSI MOV BL,byte ptr [RBX + RDI*0x1] LAB_00135ff2: TEST R11B,R11B JZ 0x00135fff MOV R14D,R11D XOR R11D,R11D JMP 0x0013600e LAB_00135fff: MOVZX R14D,byte ptr [RCX] MOV R11B,byte ptr [R14 + RAX*0x1] INC RCX MOV R14B,byte ptr [R14 + RDI*0x1] LAB_0013600e: CMP BL,R14B JZ 0x00135fba MOVZX ECX,R14B MOVZX EAX,BL SUB EAX,ECX JMP 0x0013602d LAB_0013601e: MOVZX EAX,BL NEG EAX JMP 0x0013602d LAB_00136025: XOR EAX,EAX TEST R9B,R9B SETZ AL LAB_0013602d: POP RBX POP R14 POP RBP RET
uint my_strnncoll_latin1_de (int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5, char param_6) { byte *pbVar1; byte bVar2; byte *pbVar3; byte bVar4; byte bVar5; byte bVar6; pbVar1 = param_2 + param_3; pbVar3 = param_4 + param_5; bVar4 = 0; bVar5 = 0; do { if ((pbVar1 <= param_2) && (bVar4 == 0)) { return -(uint)(bVar5 != 0 || param_4 < pbVar3); } if (bVar5 == 0 && param_4 >= pbVar3) { return (uint)(param_6 == '\0'); } if (bVar4 == 0) { bVar2 = *param_2; bVar4 = combo2map[bVar2]; param_2 = param_2 + 1; bVar2 = combo1map[bVar2]; } else { bVar2 = bVar4; bVar4 = 0; } if (bVar5 == 0) { bVar6 = *param_4; bVar5 = combo2map[bVar6]; param_4 = param_4 + 1; bVar6 = combo1map[bVar6]; } else { bVar6 = bVar5; bVar5 = 0; } } while (bVar2 == bVar6); return (uint)bVar2 - (uint)bVar6; }
41,909
void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t)
monkey531[P]llama/common/./json.hpp
static void construct(BasicJsonType& j, typename BasicJsonType::number_float_t val) noexcept { j.m_data.m_value.destroy(j.m_data.m_type); j.m_data.m_type = value_t::number_float; j.m_data.m_value = val; j.assert_invariant(); }
O1
cpp
void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, 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>::number_float_t): pushq %rbx subq $0x10, %rsp movsd %xmm0, (%rsp) movq %rdi, %rbx addq $0x8, %rdi movzbl (%rbx), %esi callq 0x2ec66 movb $0x7, (%rbx) movsd (%rsp), %xmm0 movsd %xmm0, 0x8(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x8(%rbx) movq %rbx, %rdi movl $0x1, %esi addq $0x10, %rsp popq %rbx jmp 0x28fd0 movq %rax, %rdi callq 0x28537
_ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_14number_float_tE: push rbx sub rsp, 10h movsd [rsp+18h+var_18], xmm0 mov rbx, rdi add rdi, 8 movzx esi, byte ptr [rbx] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) mov byte ptr [rbx], 7 movsd xmm0, [rsp+18h+var_18] movsd [rsp+18h+var_10], xmm0 mov rax, [rsp+18h+var_10] mov [rbx+8], rax mov rdi, rbx mov esi, 1 add rsp, 10h pop rbx jmp _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, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( unsigned __int8 *a1, double a2) { long long result; // rax nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy( (long long **)a1 + 1, *a1); *a1 = 7; result = *(_QWORD *)&a2; *((double *)a1 + 1) = a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); return result; }
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>: PUSH RBX SUB RSP,0x10 MOVSD qword ptr [RSP],XMM0 MOV RBX,RDI ADD RDI,0x8 MOVZX ESI,byte ptr [RBX] LAB_0013055e: CALL 0x0012ec66 MOV byte ptr [RBX],0x7 MOVSD XMM0,qword ptr [RSP] MOVSD qword ptr [RSP + 0x8],XMM0 MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0x8],RAX MOV RDI,RBX MOV ESI,0x1 ADD RSP,0x10 POP RBX JMP 0x00128fd0
/* void nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::number_float_t) */ void nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)7>:: construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> (int8 param_1_00,int1 *param_1) { /* try { // try from 0013055e to 00130562 has its CatchHandler @ 0013058c */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::destroy((json_value *)(param_1 + 8),*param_1); *param_1 = 7; *(int8 *)(param_1 + 8) = param_1_00; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_1,0)); return; }
41,910
pow5mult
eloqsql/strings/dtoa.c
static Bigint *pow5mult(Bigint *b, int k, Stack_alloc *alloc) { Bigint *b1, *p5, *p51=NULL; int i; static int p05[3]= { 5, 25, 125 }; my_bool overflow= FALSE; if ((i= k & 3)) b= multadd(b, p05[i-1], 0, alloc); if (!(k>>= 2)) return b; p5= p5_a; for (;;) { if (k & 1) { b1= mult(b, p5, alloc); Bfree(b, alloc); b= b1; } if (!(k>>= 1)) break; /* Calculate next power of 5 */ if (overflow) { p51= mult(p5, p5, alloc); Bfree(p5, alloc); p5= p51; } else if (p5 < p5_a + P5A_MAX) ++p5; else if (p5 == p5_a + P5A_MAX) { p5= mult(p5, p5, alloc); overflow= TRUE; } } if (p51) Bfree(p51, alloc); return b; }
O3
c
pow5mult: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movl %esi, %r15d movq %rdi, %r13 movl %esi, %eax andl $0x3, %eax je 0xec569 decl %eax leaq 0x2c2d62(%rip), %rcx # 0x3af2b8 movl (%rcx,%rax,4), %esi movq %r13, %rdi xorl %edx, %edx movq %rbx, %rcx callq 0xec9b6 movq %rax, %r13 cmpl $0x4, %r15d jb 0xec651 movq %rbx, -0x38(%rbp) shrl $0x2, %r15d movb $0x1, %cl leaq 0x36f73c(%rip), %rbx # 0x45bcc0 movq $0x0, -0x40(%rbp) leaq 0x36f7bd(%rip), %r12 # 0x45bd50 movl %ecx, %r14d cmpq %r12, %rbx setb %cl movl %ecx, -0x2c(%rbp) testb $0x1, %r15b je 0xec5d4 movq %r13, %rdi movq %rbx, %rsi movq %r13, %r12 movq -0x38(%rbp), %r13 movq %r13, %rdx callq 0xec663 movq %rax, -0x48(%rbp) movq %r12, %rdi leaq 0x36f788(%rip), %r12 # 0x45bd50 movq %r13, %rsi callq 0xec785 movq -0x48(%rbp), %r13 cmpl $0x2, %r15d jb 0xec63f shrl %r15d testb $0x1, %r14b je 0xec604 cmpq %r12, %rbx jb 0xec633 movb $0x1, %r14b jne 0xec59f movq %r12, %rdi movq %r12, %rsi movq -0x38(%rbp), %rdx callq 0xec663 movq %rax, %rbx movl -0x2c(%rbp), %ecx jmp 0xec593 movq %rbx, %rdi movq %rbx, %r14 movq %rbx, %rsi movq -0x38(%rbp), %rbx movq %rbx, %rdx callq 0xec663 movq %rax, -0x40(%rbp) movq %r14, %rdi movq %rbx, %rsi callq 0xec785 xorl %ecx, %ecx movq -0x40(%rbp), %rbx jmp 0xec593 addq $0x18, %rbx movl -0x2c(%rbp), %ecx jmp 0xec593 movq -0x40(%rbp), %rdi testq %rdi, %rdi je 0xec651 movq -0x38(%rbp), %rsi callq 0xec785 movq %r13, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
pow5mult_0: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r15d, esi mov r13, rdi mov eax, esi and eax, 3 jz short loc_EC569 dec eax lea rcx, pow5mult_p05_0 mov esi, [rcx+rax*4] mov rdi, r13 xor edx, edx mov rcx, rbx call multadd_0 mov r13, rax loc_EC569: cmp r15d, 4 jb loc_EC651 mov [rbp+var_38], rbx shr r15d, 2 mov cl, 1 lea rbx, p5_a_0 mov [rbp+var_40], 0 lea r12, off_45BD50 loc_EC593: mov r14d, ecx cmp rbx, r12 setb cl mov [rbp+var_2C], ecx loc_EC59F: test r15b, 1 jz short loc_EC5D4 mov rdi, r13 mov rsi, rbx mov r12, r13 mov r13, [rbp+var_38] mov rdx, r13 call mult_0 mov [rbp+var_48], rax mov rdi, r12 lea r12, off_45BD50 mov rsi, r13 call Bfree_0 mov r13, [rbp+var_48] loc_EC5D4: cmp r15d, 2 jb short loc_EC63F shr r15d, 1 test r14b, 1 jz short loc_EC604 cmp rbx, r12 jb short loc_EC633 mov r14b, 1 jnz short loc_EC59F mov rdi, r12 mov rsi, r12 mov rdx, [rbp+var_38] call mult_0 mov rbx, rax mov ecx, [rbp+var_2C] jmp short loc_EC593 loc_EC604: mov rdi, rbx mov r14, rbx mov rsi, rbx mov rbx, [rbp+var_38] mov rdx, rbx call mult_0 mov [rbp+var_40], rax mov rdi, r14 mov rsi, rbx call Bfree_0 xor ecx, ecx mov rbx, [rbp+var_40] jmp loc_EC593 loc_EC633: add rbx, 18h mov ecx, [rbp+var_2C] jmp loc_EC593 loc_EC63F: mov rdi, [rbp+var_40] test rdi, rdi jz short loc_EC651 mov rsi, [rbp+var_38] call Bfree_0 loc_EC651: mov rax, r13 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long pow5mult_0(long long a1, unsigned int a2, long long a3, int a4) { long long v5; // r13 unsigned int v6; // r15d _UNKNOWN **v7; // rbx char v8; // r14 long long v10; // [rsp+8h] [rbp-48h] long long v11; // [rsp+10h] [rbp-40h] long long v12; // [rsp+18h] [rbp-38h] int v13; // [rsp+24h] [rbp-2Ch] v5 = a1; if ( (a2 & 3) != 0 ) v5 = multadd_0(a1, pow5mult_p05_0[(a2 & 3) - 1], 0LL, a3); if ( a2 >= 4 ) { v12 = a3; v6 = a2 >> 2; LOBYTE(a4) = 1; v7 = &p5_a_0; v11 = 0LL; LABEL_5: v8 = a4; LOBYTE(a4) = v7 < &off_45BD50; v13 = a4; while ( 1 ) { if ( (v6 & 1) != 0 ) { v10 = mult_0(v5, v7, v12); Bfree_0(v5, v12); v5 = v10; } if ( v6 < 2 ) break; v6 >>= 1; if ( (v8 & 1) == 0 ) { v11 = mult_0(v7, v7, v12); Bfree_0(v7, v12); a4 = 0; v7 = (_UNKNOWN **)v11; goto LABEL_5; } if ( v7 < &off_45BD50 ) { v7 += 3; a4 = v13; goto LABEL_5; } v8 = 1; if ( v7 == &off_45BD50 ) { v7 = (_UNKNOWN **)mult_0(&off_45BD50, &off_45BD50, v12); a4 = v13; goto LABEL_5; } } if ( v11 ) Bfree_0(v11, v12); } return v5; }
pow5mult: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R15D,ESI MOV R13,RDI MOV EAX,ESI AND EAX,0x3 JZ 0x001ec569 DEC EAX LEA RCX,[0x4af2b8] MOV ESI,dword ptr [RCX + RAX*0x4] MOV RDI,R13 XOR EDX,EDX MOV RCX,RBX CALL 0x001ec9b6 MOV R13,RAX LAB_001ec569: CMP R15D,0x4 JC 0x001ec651 MOV qword ptr [RBP + -0x38],RBX SHR R15D,0x2 MOV CL,0x1 LEA RBX,[0x55bcc0] MOV qword ptr [RBP + -0x40],0x0 LEA R12,[0x55bd50] LAB_001ec593: MOV R14D,ECX CMP RBX,R12 SETC CL MOV dword ptr [RBP + -0x2c],ECX LAB_001ec59f: TEST R15B,0x1 JZ 0x001ec5d4 MOV RDI,R13 MOV RSI,RBX MOV R12,R13 MOV R13,qword ptr [RBP + -0x38] MOV RDX,R13 CALL 0x001ec663 MOV qword ptr [RBP + -0x48],RAX MOV RDI,R12 LEA R12,[0x55bd50] MOV RSI,R13 CALL 0x001ec785 MOV R13,qword ptr [RBP + -0x48] LAB_001ec5d4: CMP R15D,0x2 JC 0x001ec63f SHR R15D,0x1 TEST R14B,0x1 JZ 0x001ec604 CMP RBX,R12 JC 0x001ec633 MOV R14B,0x1 JNZ 0x001ec59f MOV RDI,R12 MOV RSI,R12 MOV RDX,qword ptr [RBP + -0x38] CALL 0x001ec663 MOV RBX,RAX MOV ECX,dword ptr [RBP + -0x2c] JMP 0x001ec593 LAB_001ec604: MOV RDI,RBX MOV R14,RBX MOV RSI,RBX MOV RBX,qword ptr [RBP + -0x38] MOV RDX,RBX CALL 0x001ec663 MOV qword ptr [RBP + -0x40],RAX MOV RDI,R14 MOV RSI,RBX CALL 0x001ec785 XOR ECX,ECX MOV RBX,qword ptr [RBP + -0x40] JMP 0x001ec593 LAB_001ec633: ADD RBX,0x18 MOV ECX,dword ptr [RBP + -0x2c] JMP 0x001ec593 LAB_001ec63f: MOV RDI,qword ptr [RBP + -0x40] TEST RDI,RDI JZ 0x001ec651 MOV RSI,qword ptr [RBP + -0x38] CALL 0x001ec785 LAB_001ec651: MOV RAX,R13 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 pow5mult(int8 param_1,uint param_2,int8 param_3) { int1 *puVar1; int8 uVar2; bool bVar3; bool bVar4; int1 *local_48; if ((param_2 & 3) != 0) { param_1 = multadd(param_1,*(int4 *)(pow5mult_p05 + (ulong)((param_2 & 3) - 1) * 4),0, param_3); } if (param_2 < 4) { return param_1; } param_2 = param_2 >> 2; local_48 = (int1 *)0x0; puVar1 = p5_a; bVar3 = true; LAB_001ec593: do { bVar4 = puVar1 < (int1 *)0x55bd50; uVar2 = param_1; do { param_1 = uVar2; if ((param_2 & 1) != 0) { param_1 = mult(uVar2,puVar1,param_3); Bfree(uVar2,param_3); } if (param_2 < 2) { if (local_48 == (int1 *)0x0) { return param_1; } Bfree(local_48,param_3); return param_1; } param_2 = param_2 >> 1; if (!bVar3) { local_48 = (int1 *)mult(puVar1,puVar1,param_3); Bfree(puVar1,param_3); bVar3 = false; puVar1 = local_48; goto LAB_001ec593; } if (puVar1 < (int1 *)0x55bd50) { puVar1 = puVar1 + 0x18; bVar3 = bVar4; goto LAB_001ec593; } bVar3 = true; uVar2 = param_1; } while (puVar1 != (int1 *)0x55bd50); puVar1 = (int1 *)mult(0x55bd50,0x55bd50,param_3); bVar3 = bVar4; } while( true ); }
41,911
my_wc_mb_tis620
eloqsql/strings/ctype-tis620.c
static int my_wc_mb_tis620(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *str, uchar *end __attribute__((unused))) { const uchar *pl; if (str >= end) return MY_CS_TOOSMALL; pl= uni_to_cs[(wc>>8) & 0xFF]; str[0]= pl ? pl[wc & 0xFF] : '\0'; return (!str[0] && wc) ? MY_CS_ILUNI : 1; }
O0
c
my_wc_mb_tis620: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x4e167 movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x4e1e2 movq -0x18(%rbp), %rcx shrq $0x8, %rcx andq $0xff, %rcx leaq 0x182023(%rip), %rax # 0x1d01a0 movq (%rax,%rcx,8), %rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x4e1a4 movq -0x30(%rbp), %rax movq -0x18(%rbp), %rcx andq $0xff, %rcx movzbl (%rax,%rcx), %eax movl %eax, -0x34(%rbp) jmp 0x4e1ab xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0x4e1ab movl -0x34(%rbp), %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movq -0x20(%rbp), %rcx xorl %eax, %eax cmpb $0x0, (%rcx) movb %al, -0x35(%rbp) jne 0x4e1cf cmpq $0x0, -0x18(%rbp) setne %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %dl movl $0x1, %eax xorl %ecx, %ecx testb $0x1, %dl cmovnel %ecx, %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_wc_mb_tis620: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_4E167 mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_4E1E2 loc_4E167: mov rcx, [rbp+var_18] shr rcx, 8 and rcx, 0FFh lea rax, uni_to_cs_0 mov rax, [rax+rcx*8] mov [rbp+var_30], rax cmp [rbp+var_30], 0 jz short loc_4E1A4 mov rax, [rbp+var_30] mov rcx, [rbp+var_18] and rcx, 0FFh movzx eax, byte ptr [rax+rcx] mov [rbp+var_34], eax jmp short loc_4E1AB loc_4E1A4: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_4E1AB: mov eax, [rbp+var_34] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov rcx, [rbp+var_20] xor eax, eax cmp byte ptr [rcx], 0 mov [rbp+var_35], al jnz short loc_4E1CF cmp [rbp+var_18], 0 setnz al mov [rbp+var_35], al loc_4E1CF: mov dl, [rbp+var_35] mov eax, 1 xor ecx, ecx test dl, 1 cmovnz eax, ecx mov [rbp+var_4], eax loc_4E1E2: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_tis620(long long a1, long long a2, _BYTE *a3, unsigned long long a4) { bool v5; // [rsp+1h] [rbp-35h] char v6; // [rsp+2h] [rbp-34h] long long v7; // [rsp+6h] [rbp-30h] if ( (unsigned long long)a3 < a4 ) { v7 = (long long)*(&uni_to_cs_0 + BYTE1(a2)); if ( v7 ) v6 = *(_BYTE *)(v7 + (unsigned __int8)a2); else v6 = 0; *a3 = v6; v5 = 0; if ( !*a3 ) v5 = a2 != 0; return !v5; } else { return (unsigned int)-101; } }
my_wc_mb_tis620: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0014e167 MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0014e1e2 LAB_0014e167: MOV RCX,qword ptr [RBP + -0x18] SHR RCX,0x8 AND RCX,0xff LEA RAX,[0x2d01a0] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -0x30],0x0 JZ 0x0014e1a4 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x18] AND RCX,0xff MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RBP + -0x34],EAX JMP 0x0014e1ab LAB_0014e1a4: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x0014e1ab LAB_0014e1ab: MOV EAX,dword ptr [RBP + -0x34] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV RCX,qword ptr [RBP + -0x20] XOR EAX,EAX CMP byte ptr [RCX],0x0 MOV byte ptr [RBP + -0x35],AL JNZ 0x0014e1cf CMP qword ptr [RBP + -0x18],0x0 SETNZ AL MOV byte ptr [RBP + -0x35],AL LAB_0014e1cf: MOV DL,byte ptr [RBP + -0x35] MOV EAX,0x1 XOR ECX,ECX TEST DL,0x1 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x4],EAX LAB_0014e1e2: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint my_wc_mb_tis620(int8 param_1,ulong param_2,char *param_3,char *param_4) { char cVar1; uint local_c; if (param_3 < param_4) { if (*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) == 0) { cVar1 = '\0'; } else { cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8 & 0xff) * 8) + (param_2 & 0xff)); } *param_3 = cVar1; local_c = (uint)(*param_3 != '\0' || param_2 == 0); } else { local_c = 0xffffff9b; } return local_c; }
41,912
coro::thread_pool::shutdown()
AlayaLite/build_O3/_deps/libcoro-src/src/thread_pool.cpp
auto thread_pool::shutdown() noexcept -> void { // Only allow shutdown to occur once. if (m_shutdown_requested.exchange(true, std::memory_order::acq_rel) == false) { { // There is a race condition if we are not holding the lock with the executors // to always receive this. std::jthread stop token works without this properly. std::unique_lock<std::mutex> lk{m_wait_mutex}; m_wait_cv.notify_all(); } for (auto& thread : m_threads) { if (thread.joinable()) { thread.join(); } } } }
O3
cpp
coro::thread_pool::shutdown(): pushq %r14 pushq %rbx subq $0x18, %rsp movb $0x1, %al xchgb %al, 0x128(%rdi) testb $0x1, %al je 0xc8f09 addq $0x18, %rsp popq %rbx popq %r14 retq movq %rdi, %rbx leaq 0x68(%rdi), %rax leaq 0x8(%rsp), %rdi movq %rax, (%rdi) movb $0x0, 0x8(%rdi) callq 0x2e99c leaq 0x8(%rsp), %r14 movb $0x1, 0x8(%r14) leaq 0x90(%rbx), %rdi callq 0xc9448 movq %r14, %rdi callq 0x2e986 movq 0x50(%rbx), %r14 movq 0x58(%rbx), %rbx cmpq %rbx, %r14 je 0xc8f01 cmpq $0x0, (%r14) je 0xc8f5a movq %r14, %rdi callq 0x173a0 addq $0x8, %r14 jmp 0xc8f47 jmp 0xc8f62 movq %rax, %rdi callq 0x1f2c3
_ZN4coro11thread_pool8shutdownEv: push r14 push rbx sub rsp, 18h mov al, 1 xchg al, [rdi+128h] test al, 1 jz short loc_C8F09 loc_C8F01: add rsp, 18h pop rbx pop r14 retn loc_C8F09: mov rbx, rdi lea rax, [rdi+68h] lea rdi, [rsp+28h+var_20] mov [rdi], rax mov byte ptr [rdi+8], 0 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) lea r14, [rsp+28h+var_20] mov byte ptr [r14+8], 1 lea rdi, [rbx+90h]; this call _ZNSt3_V222condition_variable_any10notify_allEv; std::_V2::condition_variable_any::notify_all(void) mov rdi, r14 call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov r14, [rbx+50h] mov rbx, [rbx+58h] loc_C8F47: cmp r14, rbx jz short loc_C8F01 cmp qword ptr [r14], 0 jz short loc_C8F5A mov rdi, r14; this call __ZNSt6thread4joinEv; std::thread::join(void) loc_C8F5A: add r14, 8 jmp short loc_C8F47 jmp short $+2 loc_C8F62: mov rdi, rax call __clang_call_terminate
char coro::thread_pool::shutdown(coro::thread_pool *this) { char result; // al std::thread *v2; // r14 std::thread *v3; // rbx long long v4; // [rsp+8h] [rbp-20h] BYREF char v5; // [rsp+10h] [rbp-18h] result = *((_BYTE *)this + 296); *((_BYTE *)this + 296) = 1; if ( (result & 1) == 0 ) { v4 = (long long)this + 104; v5 = 0; std::unique_lock<std::mutex>::lock(&v4); v5 = 1; result = std::_V2::condition_variable_any::notify_all((coro::thread_pool *)((char *)this + 144)); std::unique_lock<std::mutex>::~unique_lock((long long)&v4); v2 = (std::thread *)*((_QWORD *)this + 10); v3 = (std::thread *)*((_QWORD *)this + 11); while ( v2 != v3 ) { if ( *(_QWORD *)v2 ) result = std::thread::join(v2); v2 = (std::thread *)((char *)v2 + 8); } } return result; }
shutdown: PUSH R14 PUSH RBX SUB RSP,0x18 MOV AL,0x1 XCHG byte ptr [RDI + 0x128],AL TEST AL,0x1 JZ 0x001c8f09 LAB_001c8f01: ADD RSP,0x18 POP RBX POP R14 RET LAB_001c8f09: MOV RBX,RDI LEA RAX,[RDI + 0x68] LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RAX MOV byte ptr [RDI + 0x8],0x0 LAB_001c8f1c: CALL 0x0012e99c LEA R14,[RSP + 0x8] MOV byte ptr [R14 + 0x8],0x1 LEA RDI,[RBX + 0x90] CALL 0x001c9448 MOV RDI,R14 CALL 0x0012e986 MOV R14,qword ptr [RBX + 0x50] MOV RBX,qword ptr [RBX + 0x58] LAB_001c8f47: CMP R14,RBX JZ 0x001c8f01 CMP qword ptr [R14],0x0 JZ 0x001c8f5a LAB_001c8f52: MOV RDI,R14 CALL 0x001173a0 LAB_001c8f5a: ADD R14,0x8 JMP 0x001c8f47
/* coro::thread_pool::shutdown() */ void __thiscall coro::thread_pool::shutdown(thread_pool *this) { thread_pool tVar1; long *plVar2; long *plVar3; thread_pool *local_20; int1 local_18; LOCK(); tVar1 = this[0x128]; this[0x128] = (thread_pool)0x1; UNLOCK(); if (((byte)tVar1 & 1) == 0) { local_20 = this + 0x68; local_18 = 0; /* try { // try from 001c8f1c to 001c8f20 has its CatchHandler @ 001c8f60 */ std::unique_lock<std::mutex>::lock((unique_lock<std::mutex> *)&local_20); local_18 = 1; std::_V2::condition_variable_any::notify_all((condition_variable_any *)(this + 0x90)); std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20); plVar2 = *(long **)(this + 0x58); for (plVar3 = *(long **)(this + 0x50); plVar3 != plVar2; plVar3 = plVar3 + 1) { if (*plVar3 != 0) { /* try { // try from 001c8f52 to 001c8f59 has its CatchHandler @ 001c8f62 */ std::thread::join(); } } } return; }
41,913
my_interval_timer
eloqsql/mysys/my_getsystime.c
ulonglong my_interval_timer() { #ifdef HAVE_CLOCK_GETTIME struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp); return tp.tv_sec*1000000000ULL+tp.tv_nsec; #elif defined(HAVE_GETHRTIME) return gethrtime(); #elif defined(_WIN32) DBUG_ASSERT(query_performance_frequency); LARGE_INTEGER t_cnt; QueryPerformanceCounter(&t_cnt); return (t_cnt.QuadPart / query_performance_frequency * 1000000000ULL) + ((t_cnt.QuadPart % query_performance_frequency) * 1000000000ULL / query_performance_frequency); #else /* TODO: check for other possibilities for hi-res timestamping */ struct timeval tv; gettimeofday(&tv,NULL); return tv.tv_sec*1000000000ULL+tv.tv_usec*1000ULL; #endif }
O3
c
my_interval_timer: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp leaq -0x18(%rbp), %rbx movl $0x1, %edi movq %rbx, %rsi callq 0x2a320 imulq $0x3b9aca00, (%rbx), %rax # imm = 0x3B9ACA00 addq 0x8(%rbx), %rax addq $0x18, %rsp popq %rbx popq %rbp retq
my_interval_timer: push rbp mov rbp, rsp push rbx sub rsp, 18h lea rbx, [rbp+var_18] mov edi, 1 mov rsi, rbx call _clock_gettime imul rax, [rbx], 3B9ACA00h add rax, [rbx+8] add rsp, 18h pop rbx pop rbp retn
long long my_interval_timer() { _QWORD v1[3]; // [rsp+8h] [rbp-18h] BYREF clock_gettime(1LL, v1); return v1[1] + 1000000000LL * v1[0]; }
my_interval_timer: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 LEA RBX,[RBP + -0x18] MOV EDI,0x1 MOV RSI,RBX CALL 0x0012a320 IMUL RAX,qword ptr [RBX],0x3b9aca00 ADD RAX,qword ptr [RBX + 0x8] ADD RSP,0x18 POP RBX POP RBP RET
long my_interval_timer(void) { timespec local_20; clock_gettime(1,&local_20); return local_20.tv_sec * 1000000000 + local_20.tv_nsec; }
41,914
my_uca_init_one_contraction
eloqsql/strings/ctype-uca.c
static uint16 * my_uca_init_one_contraction(MY_CONTRACTIONS *contractions, my_wc_t *str, uint length, my_bool with_context) { int flag; uint i; my_uca_add_contraction_flag(contractions, str[0], with_context ? MY_UCA_PREVIOUS_CONTEXT_HEAD : MY_UCA_CNT_HEAD); for (i= 1, flag= MY_UCA_CNT_MID1; i < length - 1; i++, flag<<= 1) my_uca_add_contraction_flag(contractions, str[i], flag); my_uca_add_contraction_flag(contractions, str[i], with_context ? MY_UCA_PREVIOUS_CONTEXT_TAIL : MY_UCA_CNT_TAIL); /* Add new contraction to the contraction list */ return my_uca_add_contraction(contractions, str, length, with_context)->weight; }
O0
c
my_uca_init_one_contraction: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movb %al, -0x15(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi movsbl -0x15(%rbp), %ecx movl $0x1, %edx movl $0x40, %eax cmpl $0x0, %ecx cmovnel %eax, %edx callq 0xb3050 movl $0x1, -0x20(%rbp) movl $0x4, -0x1c(%rbp) movl -0x20(%rbp), %eax movl -0x14(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jae 0xb25b1 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movl -0x20(%rbp), %ecx movq (%rax,%rcx,8), %rsi movl -0x1c(%rbp), %edx callq 0xb3050 movl -0x20(%rbp), %eax addl $0x1, %eax movl %eax, -0x20(%rbp) movl -0x1c(%rbp), %eax shll %eax movl %eax, -0x1c(%rbp) jmp 0xb257a movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movl -0x20(%rbp), %ecx movq (%rax,%rcx,8), %rsi movsbl -0x15(%rbp), %ecx movl $0x2, %edx movl $0x80, %eax cmpl $0x0, %ecx cmovnel %eax, %edx callq 0xb3050 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %eax movl %eax, %edx movsbl -0x15(%rbp), %ecx callq 0xb3080 addq $0x30, %rax addq $0x20, %rsp popq %rbp retq nopl (%rax)
my_uca_init_one_contraction: push rbp mov rbp, rsp sub rsp, 20h mov al, cl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_15], al mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov rsi, [rax] movsx ecx, [rbp+var_15] mov edx, 1 mov eax, 40h ; '@' cmp ecx, 0 cmovnz edx, eax call my_uca_add_contraction_flag mov [rbp+var_20], 1 mov [rbp+var_1C], 4 loc_B257A: mov eax, [rbp+var_20] mov ecx, [rbp+var_14] sub ecx, 1 cmp eax, ecx jnb short loc_B25B1 mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov ecx, [rbp+var_20] mov rsi, [rax+rcx*8] mov edx, [rbp+var_1C] call my_uca_add_contraction_flag mov eax, [rbp+var_20] add eax, 1 mov [rbp+var_20], eax mov eax, [rbp+var_1C] shl eax, 1 mov [rbp+var_1C], eax jmp short loc_B257A loc_B25B1: mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov ecx, [rbp+var_20] mov rsi, [rax+rcx*8] movsx ecx, [rbp+var_15] mov edx, 2 mov eax, 80h cmp ecx, 0 cmovnz edx, eax call my_uca_add_contraction_flag mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov eax, [rbp+var_14] mov edx, eax movsx ecx, [rbp+var_15] call my_uca_add_contraction add rax, 30h ; '0' add rsp, 20h pop rbp retn
long long my_uca_init_one_contraction(long long a1, long long *a2, unsigned int a3, char a4) { long long v4; // rsi long long v5; // rdx long long v6; // rdx unsigned int v8; // [rsp+0h] [rbp-20h] unsigned int v9; // [rsp+4h] [rbp-1Ch] v4 = *a2; v5 = 1LL; if ( a4 ) v5 = 64LL; my_uca_add_contraction_flag(a1, v4, v5); v8 = 1; v9 = 4; while ( v8 < a3 - 1 ) { my_uca_add_contraction_flag(a1, a2[v8++], v9); v9 *= 2; } v6 = 2LL; if ( a4 ) v6 = 128LL; my_uca_add_contraction_flag(a1, a2[v8], v6); return my_uca_add_contraction(a1, a2, a3, (unsigned int)a4) + 48; }
my_uca_init_one_contraction: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,CL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV byte ptr [RBP + -0x15],AL MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOVSX ECX,byte ptr [RBP + -0x15] MOV EDX,0x1 MOV EAX,0x40 CMP ECX,0x0 CMOVNZ EDX,EAX CALL 0x001b3050 MOV dword ptr [RBP + -0x20],0x1 MOV dword ptr [RBP + -0x1c],0x4 LAB_001b257a: MOV EAX,dword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x14] SUB ECX,0x1 CMP EAX,ECX JNC 0x001b25b1 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX + RCX*0x8] MOV EDX,dword ptr [RBP + -0x1c] CALL 0x001b3050 MOV EAX,dword ptr [RBP + -0x20] ADD EAX,0x1 MOV dword ptr [RBP + -0x20],EAX MOV EAX,dword ptr [RBP + -0x1c] SHL EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX JMP 0x001b257a LAB_001b25b1: MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX + RCX*0x8] MOVSX ECX,byte ptr [RBP + -0x15] MOV EDX,0x2 MOV EAX,0x80 CMP ECX,0x0 CMOVNZ EDX,EAX CALL 0x001b3050 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX MOVSX ECX,byte ptr [RBP + -0x15] CALL 0x001b3080 ADD RAX,0x30 ADD RSP,0x20 POP RBP RET
long my_uca_init_one_contraction(int8 param_1,int8 *param_2,int param_3,char param_4) { long lVar1; int8 uVar2; uint local_28; int local_24; uVar2 = 1; if (param_4 != '\0') { uVar2 = 0x40; } my_uca_add_contraction_flag(param_1,*param_2,uVar2); local_24 = 4; for (local_28 = 1; local_28 < param_3 - 1U; local_28 = local_28 + 1) { my_uca_add_contraction_flag(param_1,param_2[local_28],local_24); local_24 = local_24 << 1; } uVar2 = 2; if (param_4 != '\0') { uVar2 = 0x80; } my_uca_add_contraction_flag(param_1,param_2[local_28],uVar2); lVar1 = my_uca_add_contraction(param_1,param_2,param_3,(int)param_4); return lVar1 + 0x30; }
41,915
sp_get_polygon_mbr
eloqsql/storage/myisam/sp_key.c
static int sp_get_polygon_mbr(uchar *(*wkb), uchar *end, uint n_dims, uchar byte_order, double *mbr) { uint n_linear_rings; uint n_points; n_linear_rings = uint4korr((*wkb)); (*wkb) += 4; for (; n_linear_rings > 0; --n_linear_rings) { n_points = uint4korr((*wkb)); (*wkb) += 4; for (; n_points > 0; --n_points) { /* Add next point to mbr */ if (sp_add_point_to_mbr(wkb, end, n_dims, byte_order, mbr)) return -1; } } return 0; }
O0
c
sp_get_polygon_mbr: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movb %al, -0x1d(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) cmpl $0x0, -0x2c(%rbp) jbe 0xd619e movq -0x10(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0x30(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) cmpl $0x0, -0x30(%rbp) jbe 0xd6191 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx movb -0x1d(%rbp), %al movq -0x28(%rbp), %r8 movzbl %al, %ecx callq 0xd61b0 cmpl $0x0, %eax je 0xd6184 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xd61a5 jmp 0xd6186 movl -0x30(%rbp), %eax addl $-0x1, %eax movl %eax, -0x30(%rbp) jmp 0xd6156 jmp 0xd6193 movl -0x2c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x2c(%rbp) jmp 0xd6136 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nop
sp_get_polygon_mbr_0: push rbp mov rbp, rsp sub rsp, 30h mov al, cl mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_1D], al mov [rbp+var_28], r8 mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax] mov [rbp+var_2C], eax mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 4 mov [rax], rcx loc_D6136: cmp [rbp+var_2C], 0 jbe short loc_D619E mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax] mov [rbp+var_30], eax mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 4 mov [rax], rcx loc_D6156: cmp [rbp+var_30], 0 jbe short loc_D6191 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] mov al, [rbp+var_1D] mov r8, [rbp+var_28] movzx ecx, al call sp_add_point_to_mbr_0 cmp eax, 0 jz short loc_D6184 mov [rbp+var_4], 0FFFFFFFFh jmp short loc_D61A5 loc_D6184: jmp short $+2 loc_D6186: mov eax, [rbp+var_30] add eax, 0FFFFFFFFh mov [rbp+var_30], eax jmp short loc_D6156 loc_D6191: jmp short $+2 loc_D6193: mov eax, [rbp+var_2C] add eax, 0FFFFFFFFh mov [rbp+var_2C], eax jmp short loc_D6136 loc_D619E: mov [rbp+var_4], 0 loc_D61A5: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long sp_get_polygon_mbr_0(_DWORD **a1, long long a2, unsigned int a3, unsigned __int8 a4, long long a5) { int j; // [rsp+0h] [rbp-30h] int i; // [rsp+4h] [rbp-2Ch] for ( i = *(*a1)++; i; --i ) { for ( j = *(*a1)++; j; --j ) { if ( (unsigned int)sp_add_point_to_mbr_0(a1, a2, a3, a4, a5) ) return (unsigned int)-1; } } return 0; }
sp_get_polygon_mbr: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,CL MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV byte ptr [RBP + -0x1d],AL MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX LAB_001d6136: CMP dword ptr [RBP + -0x2c],0x0 JBE 0x001d619e MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX LAB_001d6156: CMP dword ptr [RBP + -0x30],0x0 JBE 0x001d6191 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] MOV AL,byte ptr [RBP + -0x1d] MOV R8,qword ptr [RBP + -0x28] MOVZX ECX,AL CALL 0x001d61b0 CMP EAX,0x0 JZ 0x001d6184 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001d61a5 LAB_001d6184: JMP 0x001d6186 LAB_001d6186: MOV EAX,dword ptr [RBP + -0x30] ADD EAX,-0x1 MOV dword ptr [RBP + -0x30],EAX JMP 0x001d6156 LAB_001d6191: JMP 0x001d6193 LAB_001d6193: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001d6136 LAB_001d619e: MOV dword ptr [RBP + -0x4],0x0 LAB_001d61a5: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 sp_get_polygon_mbr(long *param_1,int8 param_2,int4 param_3,int1 param_4, int8 param_5) { int iVar1; int local_38; int local_34; local_34 = *(int *)*param_1; *param_1 = *param_1 + 4; do { if (local_34 == 0) { return 0; } local_38 = *(int *)*param_1; *param_1 = *param_1 + 4; for (; local_38 != 0; local_38 = local_38 + -1) { iVar1 = sp_add_point_to_mbr(param_1,param_2,param_3,param_4,param_5); if (iVar1 != 0) { return 0xffffffff; } } local_34 = local_34 + -1; } while( true ); }
41,916
bitmap_test_and_set
eloqsql/mysys/my_bitmap.c
my_bool bitmap_test_and_set(MY_BITMAP *map, uint bitmap_bit) { my_bool res; DBUG_ASSERT(map->bitmap); DBUG_ASSERT(bitmap_bit < map->n_bits); bitmap_lock(map); res= bitmap_fast_test_and_set(map, bitmap_bit); bitmap_unlock(map); return res; }
O0
c
bitmap_test_and_set: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) jmp 0xf31e1 jmp 0xf31e3 jmp 0xf31e5 movq -0x8(%rbp), %rdi callq 0xf3210 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi callq 0xf3170 movb %al, -0xd(%rbp) movq -0x8(%rbp), %rdi callq 0xf3250 movb -0xd(%rbp), %al addq $0x10, %rsp popq %rbp retq nop
bitmap_test_and_set: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov [rbp+var_C], esi jmp short $+2 loc_F31E1: jmp short $+2 loc_F31E3: jmp short $+2 loc_F31E5: mov rdi, [rbp+var_8] call bitmap_lock mov rdi, [rbp+var_8] mov esi, [rbp+var_C] call bitmap_fast_test_and_set mov [rbp+var_D], al mov rdi, [rbp+var_8] call bitmap_unlock mov al, [rbp+var_D] add rsp, 10h pop rbp retn
char bitmap_test_and_set(_QWORD *a1, unsigned int a2) { char v3; // [rsp+3h] [rbp-Dh] bitmap_lock(a1); v3 = bitmap_fast_test_and_set(a1, a2); bitmap_unlock(a1); return v3; }
bitmap_test_and_set: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI JMP 0x001f31e1 LAB_001f31e1: JMP 0x001f31e3 LAB_001f31e3: JMP 0x001f31e5 LAB_001f31e5: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f3210 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] CALL 0x001f3170 MOV byte ptr [RBP + -0xd],AL MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f3250 MOV AL,byte ptr [RBP + -0xd] ADD RSP,0x10 POP RBP RET
int1 bitmap_test_and_set(int8 param_1,int4 param_2) { int1 uVar1; bitmap_lock(param_1); uVar1 = bitmap_fast_test_and_set(param_1,param_2); bitmap_unlock(param_1); return uVar1; }
41,917
translog_variable_record_1group_decode_len
eloqsql/storage/maria/ma_loghandler.c
static translog_size_t translog_variable_record_1group_decode_len(uchar **src) { uint8 first= (uint8) (**src); switch (first) { case 251: (*src)+= 3; return (uint2korr((*src) - 2)); case 252: (*src)+= 4; return (uint3korr((*src) - 3)); case 253: (*src)+= 5; return (uint4korr((*src) - 4)); case 254: case 255: DBUG_ASSERT(0); /* reserved for future use */ return (0); default: (*src)++; return (first); } }
O0
c
translog_variable_record_1group_decode_len: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movb (%rax), %al movb %al, -0x11(%rbp) movzbl -0x11(%rbp), %eax addl $0xffffff05, %eax # imm = 0xFFFFFF05 movl %eax, %ecx movq %rcx, -0x20(%rbp) subl $0x4, %eax ja 0x58a76 movq -0x20(%rbp), %rax leaq 0xff2b9(%rip), %rcx # 0x157ca0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x3, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movzwl -0x2(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x58a8b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x4, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movzbl -0x3(%rax), %eax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movzbl -0x2(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x10(%rbp), %rcx movq (%rcx), %rcx movzbl -0x1(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, -0x4(%rbp) jmp 0x58a8b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x5, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movl -0x4(%rax), %eax movl %eax, -0x4(%rbp) jmp 0x58a8b jmp 0x58a6b jmp 0x58a6d movl $0x0, -0x4(%rbp) jmp 0x58a8b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movzbl -0x11(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq
translog_variable_record_1group_decode_len: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov rax, [rax] mov al, [rax] mov [rbp+var_11], al movzx eax, [rbp+var_11] add eax, 0FFFFFF05h; switch 5 cases mov ecx, eax mov [rbp+var_20], rcx sub eax, 4 ja def_589EE; jumptable 00000000000589EE default case mov rax, [rbp+var_20] lea rcx, jpt_589EE movsxd rax, ds:(jpt_589EE - 157CA0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_589F0: mov rax, [rbp+var_10]; jumptable 00000000000589EE case 251 mov rcx, [rax] add rcx, 3 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] movzx eax, word ptr [rax-2] mov [rbp+var_4], eax jmp short loc_58A8B loc_58A0E: mov rax, [rbp+var_10]; jumptable 00000000000589EE case 252 mov rcx, [rax] add rcx, 4 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] movzx eax, byte ptr [rax-3] mov rcx, [rbp+var_10] mov rcx, [rcx] movzx ecx, byte ptr [rcx-2] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_10] mov rcx, [rcx] movzx ecx, byte ptr [rcx-1] shl ecx, 10h or eax, ecx mov [rbp+var_4], eax jmp short loc_58A8B loc_58A4C: mov rax, [rbp+var_10]; jumptable 00000000000589EE case 253 mov rcx, [rax] add rcx, 5 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax-4] mov [rbp+var_4], eax jmp short loc_58A8B loc_58A69: jmp short $+2; jumptable 00000000000589EE cases 254,255 loc_58A6B: jmp short $+2 loc_58A6D: mov [rbp+var_4], 0 jmp short loc_58A8B def_589EE: mov rax, [rbp+var_10]; jumptable 00000000000589EE default case mov rcx, [rax] add rcx, 1 mov [rax], rcx movzx eax, [rbp+var_11] mov [rbp+var_4], eax loc_58A8B: mov eax, [rbp+var_4] pop rbp retn
long long translog_variable_record_1group_decode_len(unsigned __int8 **a1) { unsigned __int8 v2; // [rsp+Fh] [rbp-11h] unsigned int v3; // [rsp+1Ch] [rbp-4h] v2 = **a1; switch ( v2 ) { case 0xFBu: *a1 += 3; v3 = *((unsigned __int16 *)*a1 - 1); break; case 0xFCu: *a1 += 4; v3 = (*(*a1 - 1) << 16) | *(unsigned __int16 *)(*a1 - 3); break; case 0xFDu: *a1 += 5; v3 = *((_DWORD *)*a1 - 1); break; case 0xFEu: case 0xFFu: v3 = 0; break; default: ++*a1; v3 = v2; break; } return v3; }
translog_variable_record_1group_decode_len: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x11],AL MOVZX EAX,byte ptr [RBP + -0x11] ADD EAX,0xffffff05 MOV ECX,EAX MOV qword ptr [RBP + -0x20],RCX SUB EAX,0x4 JA 0x00158a76 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x257ca0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_fb: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x3 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVZX EAX,word ptr [RAX + -0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x00158a8b caseD_fc: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x4 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVZX EAX,byte ptr [RAX + -0x3] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOVZX ECX,byte ptr [RCX + -0x2] SHL ECX,0x8 OR EAX,ECX MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] MOVZX ECX,byte ptr [RCX + -0x1] SHL ECX,0x10 OR EAX,ECX MOV dword ptr [RBP + -0x4],EAX JMP 0x00158a8b caseD_fd: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x5 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + -0x4] MOV dword ptr [RBP + -0x4],EAX JMP 0x00158a8b caseD_fe: JMP 0x00158a6b LAB_00158a6b: JMP 0x00158a6d LAB_00158a6d: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00158a8b default: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOVZX EAX,byte ptr [RBP + -0x11] MOV dword ptr [RBP + -0x4],EAX LAB_00158a8b: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
uint translog_variable_record_1group_decode_len(long *param_1) { byte bVar1; uint local_c; bVar1 = *(byte *)*param_1; switch(bVar1) { case 0xfb: *param_1 = *param_1 + 3; local_c = (uint)*(ushort *)(*param_1 + -2); break; case 0xfc: *param_1 = *param_1 + 4; local_c = (uint)CONCAT12(*(int1 *)(*param_1 + -1), CONCAT11(*(int1 *)(*param_1 + -2),*(int1 *)(*param_1 + -3)) ); break; case 0xfd: *param_1 = *param_1 + 5; local_c = *(uint *)(*param_1 + -4); break; case 0xfe: case 0xff: local_c = 0; break; default: *param_1 = *param_1 + 1; local_c = (uint)bVar1; } return local_c; }
41,918
inline_mysql_file_create
eloqsql/include/mysql/psi/mysql_file.h
static inline File inline_mysql_file_create( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int create_flags, int access_flags, myf myFlags) { File file; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_CREATE, filename, &locker); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); file= my_create(filename, create_flags, access_flags, myFlags); PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); return file; } #endif file= my_create(filename, create_flags, access_flags, myFlags); return file; }
O0
c
inline_mysql_file_create: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq 0x10(%rbp), %rax movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movl %r9d, -0x28(%rbp) leaq 0x1ff434(%rip), %rax # 0x238f90 movq (%rax), %rax movq 0x148(%rax), %rax movl -0x8(%rbp), %esi movq -0x20(%rbp), %rcx leaq -0x80(%rbp), %rdi xorl %edx, %edx leaq -0x38(%rbp), %r8 callq *%rax movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%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 0x39bf3 leaq 0x1ff3ec(%rip), %rax # 0x238f90 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x38(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movl -0x28(%rbp), %edx movq 0x10(%rbp), %rcx callq 0x7c600 movl %eax, -0x2c(%rbp) leaq 0x1ff3b8(%rip), %rax # 0x238f90 movq (%rax), %rax movq 0x200(%rax), %rax movq -0x38(%rbp), %rdi movl -0x2c(%rbp), %esi callq *%rax movl -0x2c(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x39c0f movq -0x20(%rbp), %rdi movl -0x24(%rbp), %esi movl -0x28(%rbp), %edx movq 0x10(%rbp), %rcx callq 0x7c600 movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopl (%rax,%rax)
inline_mysql_file_create: push rbp mov rbp, rsp sub rsp, 80h mov rax, [rbp+arg_0] mov [rbp+var_8], edi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_28], r9d lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_8] mov rcx, [rbp+var_20] lea rdi, [rbp+var_80] xor edx, edx lea r8, [rbp+var_38] call rax mov [rbp+var_38], rax cmp [rbp+var_38], 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 short loc_39BF3 lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_38] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov edx, [rbp+var_28] mov rcx, [rbp+arg_0] call my_create mov [rbp+var_2C], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+200h] mov rdi, [rbp+var_38] mov esi, [rbp+var_2C] call rax mov eax, [rbp+var_2C] mov [rbp+var_4], eax jmp short loc_39C0F loc_39BF3: mov rdi, [rbp+var_20] mov esi, [rbp+var_24] mov edx, [rbp+var_28] mov rcx, [rbp+arg_0] call my_create mov [rbp+var_2C], eax mov eax, [rbp+var_2C] mov [rbp+var_4], eax loc_39C0F: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long inline_mysql_file_create( unsigned int a1, long long a2, unsigned int a3, long long a4, unsigned int a5, unsigned int a6, long long a7) { _BYTE v8[72]; // [rsp+0h] [rbp-80h] BYREF long long v9; // [rsp+48h] [rbp-38h] BYREF unsigned int v10; // [rsp+54h] [rbp-2Ch] unsigned int v11; // [rsp+58h] [rbp-28h] unsigned int v12; // [rsp+5Ch] [rbp-24h] long long v13; // [rsp+60h] [rbp-20h] unsigned int v14; // [rsp+6Ch] [rbp-14h] long long v15; // [rsp+70h] [rbp-10h] unsigned int v16; // [rsp+78h] [rbp-8h] v16 = a1; v15 = a2; v14 = a3; v13 = a4; v12 = a5; v11 = a6; v9 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, long long *))PSI_server[41])(v8, a1, 0LL, a4, &v9); if ( v9 ) { ((void ( *)(long long, long long, _QWORD))PSI_server[62])(v9, v15, v14); v10 = my_create(v13, v12, v11, a7); ((void ( *)(long long, _QWORD))PSI_server[64])(v9, v10); } else { return (unsigned int)my_create(v13, v12, v11, a7); } return v10; }
inline_mysql_file_create: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV RAX,qword ptr [RBP + 0x10] MOV dword ptr [RBP + -0x8],EDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV dword ptr [RBP + -0x28],R9D LEA RAX,[0x338f90] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x80] XOR EDX,EDX LEA R8,[RBP + -0x38] CALL RAX MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],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 0x00139bf3 LEA RAX,[0x338f90] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV EDX,dword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + 0x10] CALL 0x0017c600 MOV dword ptr [RBP + -0x2c],EAX LEA RAX,[0x338f90] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x200] MOV RDI,qword ptr [RBP + -0x38] MOV ESI,dword ptr [RBP + -0x2c] CALL RAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x4],EAX JMP 0x00139c0f LAB_00139bf3: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,dword ptr [RBP + -0x24] MOV EDX,dword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + 0x10] CALL 0x0017c600 MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x4],EAX LAB_00139c0f: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int4 inline_mysql_file_create (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int4 param_5,int4 param_6,int8 param_7) { int1 local_88 [72]; long local_40; int4 local_34; int4 local_30; int4 local_2c; int8 local_28; int4 local_1c; int8 local_18; int4 local_10; int4 local_c; local_30 = param_6; local_2c = param_5; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; local_40 = (**(code **)(PSI_server + 0x148))(local_88,param_1,0,param_4,&local_40); if (local_40 == 0) { local_c = my_create(local_28,local_2c,local_30,param_7); } else { (**(code **)(PSI_server + 0x1f0))(local_40,local_18,local_1c); local_34 = my_create(local_28,local_2c,local_30,param_7); (**(code **)(PSI_server + 0x200))(local_40,local_34); local_c = local_34; } return local_c; }
41,919
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp
void FVarRefinement::estimateAndAllocateChildValues() { int maxVertexValueCount = _refinement.getNumChildVerticesFromFaces(); Index cVert = _refinement.getFirstChildVertexFromEdges(); Index cVertEnd = cVert + _refinement.getNumChildVerticesFromEdges(); for ( ; cVert < cVertEnd; ++cVert) { Index pEdge = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.edgeTopologyMatches(pEdge) ? 1 : _parentLevel.getEdgeFaces(pEdge).size(); } cVert = _refinement.getFirstChildVertexFromVertices(); cVertEnd = cVert + _refinement.getNumChildVerticesFromVertices(); for ( ; cVert < cVertEnd; ++cVert) { assert(_refinement.isChildVertexComplete(cVert)); Index pVert = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.getNumVertexValues(pVert); } // // Now allocate/initialize for the maximum -- use resize() and trim the size later // to avoid the constant growing with reserve() and incremental sizing. We know // the estimate should be close and memory wasted should be small, so initialize // all to zero as well to avoid writing in all but affected areas: // // Resize vectors that mirror the component counts: _childFVar.resizeComponents(); // Resize the vertex-value tags in the child level: _childFVar._vertValueTags.resize(maxVertexValueCount); // Resize the vertex-value "parent source" mapping in the refinement: _childValueParentSource.resize(maxVertexValueCount, 0); }
O0
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues(): pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x50(%rbp) movq (%rax), %rdi callq 0xd3990 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, -0xc(%rbp) movq (%rax), %rdi callq 0xc6af0 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, -0x10(%rbp) movl -0x10(%rbp), %ecx movl %ecx, -0x44(%rbp) movq (%rax), %rdi callq 0xcaf90 movl %eax, %ecx movl -0x44(%rbp), %eax addl %ecx, %eax movl %eax, -0x14(%rbp) movl -0x10(%rbp), %eax cmpl -0x14(%rbp), %eax jge 0xe5852 movq -0x50(%rbp), %rax movq (%rax), %rdi movl -0x10(%rbp), %esi callq 0xcc870 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, -0x18(%rbp) movq 0x10(%rax), %rdi movl -0x18(%rbp), %esi callq 0xd41e0 testb $0x1, %al jne 0xe5800 jmp 0xe580a movl $0x1, %eax movl %eax, -0x54(%rbp) jmp 0xe583b movq -0x50(%rbp), %rax movq 0x8(%rax), %rdi movl -0x18(%rbp), %esi callq 0xcc400 movl %edx, -0x30(%rbp) movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x20(%rbp) leaq -0x28(%rbp), %rdi callq 0xcc250 movl %eax, -0x54(%rbp) movl -0x54(%rbp), %eax addl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0xe57ce movq -0x50(%rbp), %rax movq (%rax), %rdi callq 0xd3b90 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, -0x10(%rbp) movl -0x10(%rbp), %ecx movl %ecx, -0x58(%rbp) movq (%rax), %rdi callq 0xcd2f0 movl %eax, %ecx movl -0x58(%rbp), %eax addl %ecx, %eax movl %eax, -0x14(%rbp) movl -0x10(%rbp), %eax cmpl -0x14(%rbp), %eax jge 0xe58f2 movq -0x50(%rbp), %rax movq (%rax), %rdi movl -0x10(%rbp), %esi callq 0xd26b0 testb $0x1, %al jne 0xe589c jmp 0xe589e jmp 0xe58bd leaq 0x104d2f(%rip), %rdi # 0x1ea5d4 leaq 0x104d51(%rip), %rsi # 0x1ea5fd movl $0x8e, %edx leaq 0x104da5(%rip), %rcx # 0x1ea65d callq 0xc9440 movq -0x50(%rbp), %rax movq (%rax), %rdi movl -0x10(%rbp), %esi callq 0xcc870 movl %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, -0x3c(%rbp) movq 0x10(%rax), %rdi movl -0x3c(%rbp), %esi callq 0xd2670 addl -0xc(%rbp), %eax movl %eax, -0xc(%rbp) movl -0x10(%rbp), %eax addl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0xe587f movq -0x50(%rbp), %rax movq 0x20(%rax), %rdi callq 0xd4480 movq -0x50(%rbp), %rax movq 0x20(%rax), %rdi addq $0xa8, %rdi movslq -0xc(%rbp), %rsi callq 0xc39c0 movq -0x50(%rbp), %rdi addq $0x28, %rdi movslq -0xc(%rbp), %rsi movw $0x0, -0x3e(%rbp) leaq -0x3e(%rbp), %rdx callq 0xc33a0 addq $0x60, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement30estimateAndAllocateChildValuesEv: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_50], rax mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement28getNumChildVerticesFromFacesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromFaces(void) mov ecx, eax mov rax, [rbp+var_50] mov [rbp+var_C], ecx mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement28getFirstChildVertexFromEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFirstChildVertexFromEdges(void) mov ecx, eax mov rax, [rbp+var_50] mov [rbp+var_10], ecx mov ecx, [rbp+var_10] mov [rbp+var_44], ecx mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement28getNumChildVerticesFromEdgesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromEdges(void) mov ecx, eax mov eax, [rbp+var_44] add eax, ecx mov [rbp+var_14], eax loc_E57CE: mov eax, [rbp+var_10] cmp eax, [rbp+var_14] jge short loc_E5852 mov rax, [rbp+var_50] mov rdi, [rax]; this mov esi, [rbp+var_10]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement25getChildVertexParentIndexEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildVertexParentIndex(int) mov ecx, eax mov rax, [rbp+var_50] mov [rbp+var_18], ecx mov rdi, [rax+10h]; this mov esi, [rbp+var_18]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel19edgeTopologyMatchesEi; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::edgeTopologyMatches(int) test al, 1 jnz short loc_E5800 jmp short loc_E580A loc_E5800: mov eax, 1 mov [rbp+var_54], eax jmp short loc_E583B loc_E580A: mov rax, [rbp+var_50] mov rdi, [rax+8]; this mov esi, [rbp+var_18]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getEdgeFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeFaces(int) mov [rbp+var_30], edx mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_28], rax mov eax, [rbp+var_30] mov [rbp+var_20], eax lea rdi, [rbp+var_28] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void) mov [rbp+var_54], eax loc_E583B: mov eax, [rbp+var_54] add eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax jmp loc_E57CE loc_E5852: mov rax, [rbp+var_50] mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement31getFirstChildVertexFromVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFirstChildVertexFromVertices(void) mov ecx, eax mov rax, [rbp+var_50] mov [rbp+var_10], ecx mov ecx, [rbp+var_10] mov [rbp+var_58], ecx mov rdi, [rax]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement31getNumChildVerticesFromVerticesEv; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromVertices(void) mov ecx, eax mov eax, [rbp+var_58] add eax, ecx mov [rbp+var_14], eax loc_E587F: mov eax, [rbp+var_10] cmp eax, [rbp+var_14] jge short loc_E58F2 mov rax, [rbp+var_50] mov rdi, [rax]; this mov esi, [rbp+var_10]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement21isChildVertexCompleteEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::isChildVertexComplete(int) test al, 1 jnz short loc_E589C jmp short loc_E589E loc_E589C: jmp short loc_E58BD loc_E589E: lea rdi, aRefinementIsch; "_refinement.isChildVertexComplete(cVert"... lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... mov edx, 8Eh lea rcx, aVoidOpensubdiv_2; "void OpenSubdiv::v3_6_0::Vtr::internal:"... call ___assert_fail loc_E58BD: mov rax, [rbp+var_50] mov rdi, [rax]; this mov esi, [rbp+var_10]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal10Refinement25getChildVertexParentIndexEi; OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildVertexParentIndex(int) mov ecx, eax mov rax, [rbp+var_50] mov [rbp+var_3C], ecx mov rdi, [rax+10h]; this mov esi, [rbp+var_3C]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel18getNumVertexValuesEi; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getNumVertexValues(int) add eax, [rbp+var_C] mov [rbp+var_C], eax mov eax, [rbp+var_10] add eax, 1 mov [rbp+var_10], eax jmp short loc_E587F loc_E58F2: mov rax, [rbp+var_50] mov rdi, [rax+20h]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16resizeComponentsEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(void) mov rax, [rbp+var_50] mov rdi, [rax+20h] add rdi, 0A8h movsxd rsi, [rbp+var_C] call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong) mov rdi, [rbp+var_50] add rdi, 28h ; '(' movsxd rsi, [rbp+var_C] mov [rbp+var_3E], 0 lea rdx, [rbp+var_3E] call __ZNSt6vectorItSaItEE6resizeEmRKt; std::vector<ushort>::resize(ulong,ushort const&) add rsp, 60h pop rbp retn
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues( OpenSubdiv::v3_6_0::Vtr::internal::Refinement **this) { long long EdgeFaces; // rax int v2; // edx int NumVertexValues; // eax int v5; // [rsp+8h] [rbp-58h] int v6; // [rsp+Ch] [rbp-54h] __int16 v7; // [rsp+22h] [rbp-3Eh] BYREF int v8; // [rsp+24h] [rbp-3Ch] long long v9; // [rsp+28h] [rbp-38h] int v10; // [rsp+30h] [rbp-30h] long long v11; // [rsp+38h] [rbp-28h] BYREF int v12; // [rsp+40h] [rbp-20h] int ChildVertexParentIndex; // [rsp+48h] [rbp-18h] int v14; // [rsp+4Ch] [rbp-14h] int FirstChildVertexFromEdges; // [rsp+50h] [rbp-10h] int NumChildVerticesFromFaces; // [rsp+54h] [rbp-Ch] OpenSubdiv::v3_6_0::Vtr::internal::Refinement **v17; // [rsp+58h] [rbp-8h] v17 = this; NumChildVerticesFromFaces = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromFaces(*this); FirstChildVertexFromEdges = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFirstChildVertexFromEdges(*this); v14 = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromEdges(*this) + FirstChildVertexFromEdges; while ( FirstChildVertexFromEdges < v14 ) { ChildVertexParentIndex = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildVertexParentIndex( *this, FirstChildVertexFromEdges); if ( (OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::edgeTopologyMatches(this[2], ChildVertexParentIndex) & 1) != 0 ) { v6 = 1; } else { EdgeFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeFaces(this[1], ChildVertexParentIndex); v10 = v2; v9 = EdgeFaces; v11 = EdgeFaces; v12 = v2; v6 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v11); } NumChildVerticesFromFaces += v6; ++FirstChildVertexFromEdges; } FirstChildVertexFromEdges = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getFirstChildVertexFromVertices(*this); v5 = FirstChildVertexFromEdges; v14 = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getNumChildVerticesFromVertices(*this) + v5; while ( FirstChildVertexFromEdges < v14 ) { if ( (OpenSubdiv::v3_6_0::Vtr::internal::Refinement::isChildVertexComplete(*this, FirstChildVertexFromEdges) & 1) == 0 ) __assert_fail( "_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp", 142LL, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()"); v8 = OpenSubdiv::v3_6_0::Vtr::internal::Refinement::getChildVertexParentIndex(*this, FirstChildVertexFromEdges); NumVertexValues = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getNumVertexValues(this[2], v8); NumChildVerticesFromFaces += NumVertexValues; ++FirstChildVertexFromEdges; } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(this[4]); std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize( (char *)this[4] + 168, NumChildVerticesFromFaces); v7 = 0; return std::vector<unsigned short>::resize(this + 5, NumChildVerticesFromFaces, &v7); }
estimateAndAllocateChildValues: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RAX] CALL 0x001d3990 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0xc],ECX MOV RDI,qword ptr [RAX] CALL 0x001c6af0 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x10],ECX MOV ECX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x44],ECX MOV RDI,qword ptr [RAX] CALL 0x001caf90 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x44] ADD EAX,ECX MOV dword ptr [RBP + -0x14],EAX LAB_001e57ce: MOV EAX,dword ptr [RBP + -0x10] CMP EAX,dword ptr [RBP + -0x14] JGE 0x001e5852 MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RBP + -0x10] CALL 0x001cc870 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x18],ECX MOV RDI,qword ptr [RAX + 0x10] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001d41e0 TEST AL,0x1 JNZ 0x001e5800 JMP 0x001e580a LAB_001e5800: MOV EAX,0x1 MOV dword ptr [RBP + -0x54],EAX JMP 0x001e583b LAB_001e580a: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX + 0x8] MOV ESI,dword ptr [RBP + -0x18] CALL 0x001cc400 MOV dword ptr [RBP + -0x30],EDX MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x28],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x20],EAX LEA RDI,[RBP + -0x28] CALL 0x001cc250 MOV dword ptr [RBP + -0x54],EAX LAB_001e583b: MOV EAX,dword ptr [RBP + -0x54] ADD EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x001e57ce LAB_001e5852: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] CALL 0x001d3b90 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x10],ECX MOV ECX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0x58],ECX MOV RDI,qword ptr [RAX] CALL 0x001cd2f0 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x58] ADD EAX,ECX MOV dword ptr [RBP + -0x14],EAX LAB_001e587f: MOV EAX,dword ptr [RBP + -0x10] CMP EAX,dword ptr [RBP + -0x14] JGE 0x001e58f2 MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RBP + -0x10] CALL 0x001d26b0 TEST AL,0x1 JNZ 0x001e589c JMP 0x001e589e LAB_001e589c: JMP 0x001e58bd LAB_001e589e: LEA RDI,[0x2ea5d4] LEA RSI,[0x2ea5fd] MOV EDX,0x8e LEA RCX,[0x2ea65d] CALL 0x001c9440 LAB_001e58bd: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RBP + -0x10] CALL 0x001cc870 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x3c],ECX MOV RDI,qword ptr [RAX + 0x10] MOV ESI,dword ptr [RBP + -0x3c] CALL 0x001d2670 ADD EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0x10] ADD EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x001e587f LAB_001e58f2: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX + 0x20] CALL 0x001d4480 MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RAX + 0x20] ADD RDI,0xa8 MOVSXD RSI,dword ptr [RBP + -0xc] CALL 0x001c39c0 MOV RDI,qword ptr [RBP + -0x50] ADD RDI,0x28 MOVSXD RSI,dword ptr [RBP + -0xc] MOV word ptr [RBP + -0x3e],0x0 LEA RDX,[RBP + -0x3e] CALL 0x001c33a0 ADD RSP,0x60 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues (FVarRefinement *this) { int iVar1; ulong uVar2; int1 auVar3 [12]; int local_5c; ushort local_46; int local_44; int1 local_40 [12]; int1 local_30 [12]; int local_20; int local_1c; int local_18; int local_14; FVarRefinement *local_10; local_10 = this; local_14 = Refinement::getNumChildVerticesFromFaces(*(Refinement **)this); iVar1 = Refinement::getFirstChildVertexFromEdges(*(Refinement **)this); local_18 = iVar1; local_1c = Refinement::getNumChildVerticesFromEdges(*(Refinement **)this); local_1c = iVar1 + local_1c; for (; local_18 < local_1c; local_18 = local_18 + 1) { local_20 = Refinement::getChildVertexParentIndex(*(Refinement **)this,local_18); uVar2 = FVarLevel::edgeTopologyMatches(*(FVarLevel **)(this + 0x10),local_20); if ((uVar2 & 1) == 0) { auVar3 = Level::getEdgeFaces(*(Level **)(this + 8),local_20); local_40 = auVar3; local_30 = auVar3; local_5c = ConstArray<int>::size((ConstArray<int> *)local_30); } else { local_5c = 1; } local_14 = local_5c + local_14; } iVar1 = Refinement::getFirstChildVertexFromVertices(*(Refinement **)this); local_18 = iVar1; local_1c = Refinement::getNumChildVerticesFromVertices(*(Refinement **)this); local_1c = iVar1 + local_1c; while( true ) { if (local_1c <= local_18) { FVarLevel::resizeComponents(*(FVarLevel **)(this + 0x20)); std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(*(long *)(this + 0x20) + 0xa8),(long)local_14); local_46 = 0; std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x28), (long)local_14,&local_46); return; } uVar2 = Refinement::isChildVertexComplete(*(Refinement **)this,local_18); if ((uVar2 & 1) == 0) break; local_44 = Refinement::getChildVertexParentIndex(*(Refinement **)this,local_18); iVar1 = FVarLevel::getNumVertexValues(*(FVarLevel **)(this + 0x10),local_44); local_14 = iVar1 + local_14; local_18 = local_18 + 1; } /* WARNING: Subroutine does not return */ __assert_fail("_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp" ,0x8e, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()" ); }
41,920
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp
void FVarRefinement::estimateAndAllocateChildValues() { int maxVertexValueCount = _refinement.getNumChildVerticesFromFaces(); Index cVert = _refinement.getFirstChildVertexFromEdges(); Index cVertEnd = cVert + _refinement.getNumChildVerticesFromEdges(); for ( ; cVert < cVertEnd; ++cVert) { Index pEdge = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.edgeTopologyMatches(pEdge) ? 1 : _parentLevel.getEdgeFaces(pEdge).size(); } cVert = _refinement.getFirstChildVertexFromVertices(); cVertEnd = cVert + _refinement.getNumChildVerticesFromVertices(); for ( ; cVert < cVertEnd; ++cVert) { assert(_refinement.isChildVertexComplete(cVert)); Index pVert = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.getNumVertexValues(pVert); } // // Now allocate/initialize for the maximum -- use resize() and trim the size later // to avoid the constant growing with reserve() and incremental sizing. We know // the estimate should be close and memory wasted should be small, so initialize // all to zero as well to avoid writing in all but affected areas: // // Resize vectors that mirror the component counts: _childFVar.resizeComponents(); // Resize the vertex-value tags in the child level: _childFVar._vertValueTags.resize(maxVertexValueCount); // Resize the vertex-value "parent source" mapping in the refinement: _childValueParentSource.resize(maxVertexValueCount, 0); }
O1
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues(): pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq (%rdi), %rax movl 0x34(%rax), %ebp movslq 0x38(%rax), %rcx testq %rcx, %rcx jle 0x402dd movslq 0x50(%rax), %rdx addq %rdx, %rcx movq 0x138(%rax), %rsi movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r8 movq 0x30(%r8), %r8 movslq (%rsi,%rdx,4), %r10 movl $0x1, %r9d testb $0x1, (%r8,%r10) je 0x402d2 movq 0x90(%rdi), %r9 movl (%r9,%r10,8), %r9d addl %r9d, %ebp incq %rdx cmpq %rcx, %rdx jl 0x402b6 movslq 0x3c(%rax), %rcx testq %rcx, %rcx jle 0x4031d movslq 0x54(%rax), %rdx addq %rdx, %rcx movq 0x180(%rax), %rsi movq 0x10(%rbx), %rdi testb $0x1, (%rsi,%rdx) jne 0x4035c movq 0x138(%rax), %r8 movslq (%r8,%rdx,4), %r8 movq 0x48(%rdi), %r9 movzwl (%r9,%r8,2), %r8d addl %r8d, %ebp incq %rdx cmpq %rcx, %rdx jl 0x402f8 movq 0x20(%rbx), %rdi callq 0x3b850 movl $0xa8, %edi addq 0x20(%rbx), %rdi movslq %ebp, %r14 movq %r14, %rsi callq 0x381f0 addq $0x28, %rbx leaq 0xe(%rsp), %rdx movw $0x0, (%rdx) movq %rbx, %rdi movq %r14, %rsi callq 0x380c0 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq leaq 0x72259(%rip), %rdi # 0xb25bc leaq 0x7227b(%rip), %rsi # 0xb25e5 leaq 0x722d4(%rip), %rcx # 0xb2645 movl $0x8e, %edx callq 0x39560 nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement30estimateAndAllocateChildValuesEv: push rbp push r14 push rbx sub rsp, 10h mov rbx, rdi mov rax, [rdi] mov ebp, [rax+34h] movsxd rcx, dword ptr [rax+38h] test rcx, rcx jle short loc_402DD movsxd rdx, dword ptr [rax+50h] add rcx, rdx mov rsi, [rax+138h] mov rdi, [rbx+8] mov r8, [rbx+10h] mov r8, [r8+30h] loc_402B6: movsxd r10, dword ptr [rsi+rdx*4] mov r9d, 1 test byte ptr [r8+r10], 1 jz short loc_402D2 mov r9, [rdi+90h] mov r9d, [r9+r10*8] loc_402D2: add ebp, r9d inc rdx cmp rdx, rcx jl short loc_402B6 loc_402DD: movsxd rcx, dword ptr [rax+3Ch] test rcx, rcx jle short loc_4031D movsxd rdx, dword ptr [rax+54h] add rcx, rdx mov rsi, [rax+180h] mov rdi, [rbx+10h] loc_402F8: test byte ptr [rsi+rdx], 1 jnz short loc_4035C mov r8, [rax+138h] movsxd r8, dword ptr [r8+rdx*4] mov r9, [rdi+48h] movzx r8d, word ptr [r9+r8*2] add ebp, r8d inc rdx cmp rdx, rcx jl short loc_402F8 loc_4031D: mov rdi, [rbx+20h]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16resizeComponentsEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(void) mov edi, 0A8h add rdi, [rbx+20h] movsxd r14, ebp mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong) add rbx, 28h ; '(' lea rdx, [rsp+28h+var_1A] mov word ptr [rdx], 0 mov rdi, rbx mov rsi, r14 call __ZNSt6vectorItSaItEE6resizeEmRKt; std::vector<ushort>::resize(ulong,ushort const&) add rsp, 10h pop rbx pop r14 pop rbp retn loc_4035C: lea rdi, aRefinementIsch; "_refinement.isChildVertexComplete(cVert"... lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_2; "void OpenSubdiv::v3_6_0::Vtr::internal:"... mov edx, 8Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues( OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *this) { long long v1; // rax int v2; // ebp long long v3; // rcx long long v4; // rdx long long v5; // rcx long long v6; // r10 int v7; // r9d long long v8; // rcx long long v9; // rdx long long v10; // rcx _WORD v12[13]; // [rsp+Eh] [rbp-1Ah] BYREF v1 = *(_QWORD *)this; v2 = *(_DWORD *)(*(_QWORD *)this + 52LL); v3 = *(int *)(*(_QWORD *)this + 56LL); if ( v3 > 0 ) { v4 = *(int *)(v1 + 80); v5 = v4 + v3; do { v6 = *(int *)(*(_QWORD *)(v1 + 312) + 4 * v4); v7 = 1; if ( (*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 48LL) + v6) & 1) != 0 ) v7 = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 144LL) + 8 * v6); v2 += v7; ++v4; } while ( v4 < v5 ); } v8 = *(int *)(v1 + 60); if ( v8 > 0 ) { v9 = *(int *)(v1 + 84); v10 = v9 + v8; do { if ( (*(_BYTE *)(*(_QWORD *)(v1 + 384) + v9) & 1) != 0 ) __assert_fail( "_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp", 142LL, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()"); v2 += *(unsigned __int16 *)(*(_QWORD *)(*((_QWORD *)this + 2) + 72LL) + 2LL * *(int *)(*(_QWORD *)(v1 + 312) + 4 * v9++)); } while ( v9 < v10 ); } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(*((OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel **)this + 4)); std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(*((_QWORD *)this + 4) + 168LL, v2); v12[0] = 0; return std::vector<unsigned short>::resize((char *)this + 40, v2, v12); }
estimateAndAllocateChildValues: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV EBP,dword ptr [RAX + 0x34] MOVSXD RCX,dword ptr [RAX + 0x38] TEST RCX,RCX JLE 0x001402dd MOVSXD RDX,dword ptr [RAX + 0x50] ADD RCX,RDX MOV RSI,qword ptr [RAX + 0x138] MOV RDI,qword ptr [RBX + 0x8] MOV R8,qword ptr [RBX + 0x10] MOV R8,qword ptr [R8 + 0x30] LAB_001402b6: MOVSXD R10,dword ptr [RSI + RDX*0x4] MOV R9D,0x1 TEST byte ptr [R8 + R10*0x1],0x1 JZ 0x001402d2 MOV R9,qword ptr [RDI + 0x90] MOV R9D,dword ptr [R9 + R10*0x8] LAB_001402d2: ADD EBP,R9D INC RDX CMP RDX,RCX JL 0x001402b6 LAB_001402dd: MOVSXD RCX,dword ptr [RAX + 0x3c] TEST RCX,RCX JLE 0x0014031d MOVSXD RDX,dword ptr [RAX + 0x54] ADD RCX,RDX MOV RSI,qword ptr [RAX + 0x180] MOV RDI,qword ptr [RBX + 0x10] LAB_001402f8: TEST byte ptr [RSI + RDX*0x1],0x1 JNZ 0x0014035c MOV R8,qword ptr [RAX + 0x138] MOVSXD R8,dword ptr [R8 + RDX*0x4] MOV R9,qword ptr [RDI + 0x48] MOVZX R8D,word ptr [R9 + R8*0x2] ADD EBP,R8D INC RDX CMP RDX,RCX JL 0x001402f8 LAB_0014031d: MOV RDI,qword ptr [RBX + 0x20] CALL 0x0013b850 MOV EDI,0xa8 ADD RDI,qword ptr [RBX + 0x20] MOVSXD R14,EBP MOV RSI,R14 CALL 0x001381f0 ADD RBX,0x28 LEA RDX,[RSP + 0xe] MOV word ptr [RDX],0x0 MOV RDI,RBX MOV RSI,R14 CALL 0x001380c0 ADD RSP,0x10 POP RBX POP R14 POP RBP RET LAB_0014035c: LEA RDI,[0x1b25bc] LEA RSI,[0x1b25e5] LEA RCX,[0x1b2645] MOV EDX,0x8e CALL 0x00139560
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues (FVarRefinement *this) { long lVar1; long lVar2; long lVar3; int iVar4; int iVar5; long lVar6; ushort local_1a; lVar1 = *(long *)this; iVar4 = *(int *)(lVar1 + 0x34); if (0 < (long)*(int *)(lVar1 + 0x38)) { lVar3 = (long)*(int *)(lVar1 + 0x50); lVar2 = *(int *)(lVar1 + 0x38) + lVar3; do { lVar6 = (long)*(int *)(*(long *)(lVar1 + 0x138) + lVar3 * 4); iVar5 = 1; if ((*(byte *)(*(long *)(*(long *)(this + 0x10) + 0x30) + lVar6) & 1) != 0) { iVar5 = *(int *)(*(long *)(*(long *)(this + 8) + 0x90) + lVar6 * 8); } iVar4 = iVar4 + iVar5; lVar3 = lVar3 + 1; } while (lVar3 < lVar2); } if (0 < (long)*(int *)(lVar1 + 0x3c)) { lVar3 = (long)*(int *)(lVar1 + 0x54); lVar2 = *(int *)(lVar1 + 0x3c) + lVar3; do { if ((*(byte *)(*(long *)(lVar1 + 0x180) + lVar3) & 1) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp" ,0x8e, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()" ); } iVar4 = iVar4 + (uint)*(ushort *) (*(long *)(*(long *)(this + 0x10) + 0x48) + (long)*(int *)(*(long *)(lVar1 + 0x138) + lVar3 * 4) * 2); lVar3 = lVar3 + 1; } while (lVar3 < lVar2); } FVarLevel::resizeComponents(*(FVarLevel **)(this + 0x20)); std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(*(long *)(this + 0x20) + 0xa8),(long)iVar4); local_1a = 0; std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x28),(long)iVar4, &local_1a); return; }
41,921
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp
void FVarRefinement::estimateAndAllocateChildValues() { int maxVertexValueCount = _refinement.getNumChildVerticesFromFaces(); Index cVert = _refinement.getFirstChildVertexFromEdges(); Index cVertEnd = cVert + _refinement.getNumChildVerticesFromEdges(); for ( ; cVert < cVertEnd; ++cVert) { Index pEdge = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.edgeTopologyMatches(pEdge) ? 1 : _parentLevel.getEdgeFaces(pEdge).size(); } cVert = _refinement.getFirstChildVertexFromVertices(); cVertEnd = cVert + _refinement.getNumChildVerticesFromVertices(); for ( ; cVert < cVertEnd; ++cVert) { assert(_refinement.isChildVertexComplete(cVert)); Index pVert = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.getNumVertexValues(pVert); } // // Now allocate/initialize for the maximum -- use resize() and trim the size later // to avoid the constant growing with reserve() and incremental sizing. We know // the estimate should be close and memory wasted should be small, so initialize // all to zero as well to avoid writing in all but affected areas: // // Resize vectors that mirror the component counts: _childFVar.resizeComponents(); // Resize the vertex-value tags in the child level: _childFVar._vertValueTags.resize(maxVertexValueCount); // Resize the vertex-value "parent source" mapping in the refinement: _childValueParentSource.resize(maxVertexValueCount, 0); }
O2
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq (%rdi), %rax movl 0x34(%rax), %ebp movslq 0x50(%rax), %r14 movslq 0x38(%rax), %r15 addq %r14, %r15 pushq $0x1 popq %r12 movq (%rbx), %rax cmpq %r15, %r14 jge 0x5951e movq 0x138(%rax), %rax movslq (%rax,%r14,4), %rsi movq 0x10(%rbx), %rax movq 0x30(%rax), %rax testb $0x1, (%rax,%rsi) movl %r12d, %edx je 0x59517 movq 0x8(%rbx), %rdi callq 0x52330 addl %edx, %ebp incq %r14 jmp 0x594ea movslq 0x54(%rax), %rcx movslq 0x3c(%rax), %rdx addq %rcx, %rdx movq 0x10(%rbx), %rsi cmpq %rdx, %rcx jge 0x5955a movq 0x180(%rax), %rdi testb $0x1, (%rdi,%rcx) jne 0x5959c movq 0x138(%rax), %rdi movslq (%rdi,%rcx,4), %rdi movq 0x48(%rsi), %r8 movzwl (%r8,%rdi,2), %edi addl %edi, %ebp incq %rcx jmp 0x5952d movq 0x20(%rbx), %rdi callq 0x54ba0 movl $0xa8, %edi addq 0x20(%rbx), %rdi movslq %ebp, %r14 movq %r14, %rsi callq 0x4f380 addq $0x28, %rbx leaq 0xe(%rsp), %rdx andw $0x0, (%rdx) movq %rbx, %rdi movq %r14, %rsi callq 0x4f140 addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x63019(%rip), %rdi # 0xbc5bc leaq 0x6303b(%rip), %rsi # 0xbc5e5 leaq 0x63094(%rip), %rcx # 0xbc645 movl $0x8e, %edx callq 0x512a0 nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement30estimateAndAllocateChildValuesEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov rbx, rdi mov rax, [rdi] mov ebp, [rax+34h] movsxd r14, dword ptr [rax+50h] movsxd r15, dword ptr [rax+38h] add r15, r14 push 1 pop r12 loc_594EA: mov rax, [rbx] cmp r14, r15 jge short loc_5951E mov rax, [rax+138h] movsxd rsi, dword ptr [rax+r14*4]; int mov rax, [rbx+10h] mov rax, [rax+30h] test byte ptr [rax+rsi], 1 mov edx, r12d jz short loc_59517 mov rdi, [rbx+8]; this call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level12getEdgeFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeFaces(int) loc_59517: add ebp, edx inc r14 jmp short loc_594EA loc_5951E: movsxd rcx, dword ptr [rax+54h] movsxd rdx, dword ptr [rax+3Ch] add rdx, rcx mov rsi, [rbx+10h] loc_5952D: cmp rcx, rdx jge short loc_5955A mov rdi, [rax+180h] test byte ptr [rdi+rcx], 1 jnz short loc_5959C mov rdi, [rax+138h] movsxd rdi, dword ptr [rdi+rcx*4] mov r8, [rsi+48h] movzx edi, word ptr [r8+rdi*2] add ebp, edi inc rcx jmp short loc_5952D loc_5955A: mov rdi, [rbx+20h]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16resizeComponentsEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(void) mov edi, 0A8h add rdi, [rbx+20h] movsxd r14, ebp mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong) add rbx, 28h ; '(' lea rdx, [rsp+38h+var_2A] and word ptr [rdx], 0 mov rdi, rbx mov rsi, r14 call __ZNSt6vectorItSaItEE6resizeEmRKt; std::vector<ushort>::resize(ulong,ushort const&) add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_5959C: lea rdi, aRefinementIsch; "_refinement.isChildVertexComplete(cVert"... lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_2; "void OpenSubdiv::v3_6_0::Vtr::internal:"... mov edx, 8Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues( OpenSubdiv::v3_6_0::Vtr::internal::Level **this) { int v1; // ebp long long v2; // r14 long long v3; // r15 OpenSubdiv::v3_6_0::Vtr::internal::Level *v4; // rax long long v5; // rsi int v6; // edx long long v7; // rcx long long v8; // rdx _WORD v10[21]; // [rsp+Eh] [rbp-2Ah] BYREF v1 = *((_DWORD *)*this + 13); v2 = *((int *)*this + 20); v3 = v2 + *((int *)*this + 14); while ( 1 ) { v4 = *this; if ( v2 >= v3 ) break; v5 = *(int *)(*((_QWORD *)v4 + 39) + 4 * v2); v6 = 1; if ( (*(_BYTE *)(*((_QWORD *)this[2] + 6) + v5) & 1) != 0 ) OpenSubdiv::v3_6_0::Vtr::internal::Level::getEdgeFaces(this[1], v5); v1 += v6; ++v2; } v7 = *((int *)v4 + 21); v8 = v7 + *((int *)v4 + 15); while ( v7 < v8 ) { if ( (*(_BYTE *)(*((_QWORD *)v4 + 48) + v7) & 1) != 0 ) __assert_fail( "_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp", 142LL, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()"); v1 += *(unsigned __int16 *)(*((_QWORD *)this[2] + 9) + 2LL * *(int *)(*((_QWORD *)v4 + 39) + 4 * v7++)); } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(this[4]); std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize((char *)this[4] + 168, v1); v10[0] = 0; return std::vector<unsigned short>::resize(this + 5, v1, v10); }
estimateAndAllocateChildValues: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV EBP,dword ptr [RAX + 0x34] MOVSXD R14,dword ptr [RAX + 0x50] MOVSXD R15,dword ptr [RAX + 0x38] ADD R15,R14 PUSH 0x1 POP R12 LAB_001594ea: MOV RAX,qword ptr [RBX] CMP R14,R15 JGE 0x0015951e MOV RAX,qword ptr [RAX + 0x138] MOVSXD RSI,dword ptr [RAX + R14*0x4] MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + 0x30] TEST byte ptr [RAX + RSI*0x1],0x1 MOV EDX,R12D JZ 0x00159517 MOV RDI,qword ptr [RBX + 0x8] CALL 0x00152330 LAB_00159517: ADD EBP,EDX INC R14 JMP 0x001594ea LAB_0015951e: MOVSXD RCX,dword ptr [RAX + 0x54] MOVSXD RDX,dword ptr [RAX + 0x3c] ADD RDX,RCX MOV RSI,qword ptr [RBX + 0x10] LAB_0015952d: CMP RCX,RDX JGE 0x0015955a MOV RDI,qword ptr [RAX + 0x180] TEST byte ptr [RDI + RCX*0x1],0x1 JNZ 0x0015959c MOV RDI,qword ptr [RAX + 0x138] MOVSXD RDI,dword ptr [RDI + RCX*0x4] MOV R8,qword ptr [RSI + 0x48] MOVZX EDI,word ptr [R8 + RDI*0x2] ADD EBP,EDI INC RCX JMP 0x0015952d LAB_0015955a: MOV RDI,qword ptr [RBX + 0x20] CALL 0x00154ba0 MOV EDI,0xa8 ADD RDI,qword ptr [RBX + 0x20] MOVSXD R14,EBP MOV RSI,R14 CALL 0x0014f380 ADD RBX,0x28 LEA RDX,[RSP + 0xe] AND word ptr [RDX],0x0 MOV RDI,RBX MOV RSI,R14 CALL 0x0014f140 ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0015959c: LEA RDI,[0x1bc5bc] LEA RSI,[0x1bc5e5] LEA RCX,[0x1bc645] MOV EDX,0x8e CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues (FVarRefinement *this) { int iVar1; long lVar2; int iVar3; int extraout_EDX; int iVar4; long lVar5; long lVar6; ushort local_2a; lVar6 = *(long *)this; iVar4 = *(int *)(lVar6 + 0x34); lVar5 = (long)*(int *)(lVar6 + 0x50); lVar6 = *(int *)(lVar6 + 0x38) + lVar5; for (; lVar2 = *(long *)this, lVar5 < lVar6; lVar5 = lVar5 + 1) { iVar1 = *(int *)(*(long *)(lVar2 + 0x138) + lVar5 * 4); iVar3 = 1; if ((*(byte *)(*(long *)(*(long *)(this + 0x10) + 0x30) + (long)iVar1) & 1) != 0) { Level::getEdgeFaces(*(Level **)(this + 8),iVar1); iVar3 = extraout_EDX; } iVar4 = iVar4 + iVar3; } lVar6 = (long)*(int *)(lVar2 + 0x54); lVar5 = *(int *)(lVar2 + 0x3c) + lVar6; while( true ) { if (lVar5 <= lVar6) { FVarLevel::resizeComponents(*(FVarLevel **)(this + 0x20)); std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(*(long *)(this + 0x20) + 0xa8),(long)iVar4); local_2a = 0; std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x28),(long)iVar4, &local_2a); return; } if ((*(byte *)(*(long *)(lVar2 + 0x180) + lVar6) & 1) != 0) break; iVar4 = iVar4 + (uint)*(ushort *) (*(long *)(*(long *)(this + 0x10) + 0x48) + (long)*(int *)(*(long *)(lVar2 + 0x138) + lVar6 * 4) * 2); lVar6 = lVar6 + 1; } /* WARNING: Subroutine does not return */ __assert_fail("_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp" ,0x8e, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()" ); }
41,922
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp
void FVarRefinement::estimateAndAllocateChildValues() { int maxVertexValueCount = _refinement.getNumChildVerticesFromFaces(); Index cVert = _refinement.getFirstChildVertexFromEdges(); Index cVertEnd = cVert + _refinement.getNumChildVerticesFromEdges(); for ( ; cVert < cVertEnd; ++cVert) { Index pEdge = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.edgeTopologyMatches(pEdge) ? 1 : _parentLevel.getEdgeFaces(pEdge).size(); } cVert = _refinement.getFirstChildVertexFromVertices(); cVertEnd = cVert + _refinement.getNumChildVerticesFromVertices(); for ( ; cVert < cVertEnd; ++cVert) { assert(_refinement.isChildVertexComplete(cVert)); Index pVert = _refinement.getChildVertexParentIndex(cVert); maxVertexValueCount += _parentFVar.getNumVertexValues(pVert); } // // Now allocate/initialize for the maximum -- use resize() and trim the size later // to avoid the constant growing with reserve() and incremental sizing. We know // the estimate should be close and memory wasted should be small, so initialize // all to zero as well to avoid writing in all but affected areas: // // Resize vectors that mirror the component counts: _childFVar.resizeComponents(); // Resize the vertex-value tags in the child level: _childFVar._vertValueTags.resize(maxVertexValueCount); // Resize the vertex-value "parent source" mapping in the refinement: _childValueParentSource.resize(maxVertexValueCount, 0); }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues(): pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movq (%rdi), %rax movl 0x34(%rax), %ebp movslq 0x38(%rax), %rcx testq %rcx, %rcx jle 0x412ad movslq 0x50(%rax), %rdx addq %rdx, %rcx movq 0x138(%rax), %rsi movq 0x8(%rbx), %rdi movq 0x10(%rbx), %r8 movq 0x30(%r8), %r8 movslq (%rsi,%rdx,4), %r10 movl $0x1, %r9d testb $0x1, (%r8,%r10) je 0x412a2 movq 0x90(%rdi), %r9 movl (%r9,%r10,8), %r9d addl %r9d, %ebp incq %rdx cmpq %rcx, %rdx jl 0x41286 movslq 0x3c(%rax), %rcx testq %rcx, %rcx jle 0x412ed movslq 0x54(%rax), %rdx addq %rdx, %rcx movq 0x180(%rax), %rsi movq 0x10(%rbx), %rdi testb $0x1, (%rsi,%rdx) jne 0x4132c movq 0x138(%rax), %r8 movslq (%r8,%rdx,4), %r8 movq 0x48(%rdi), %r9 movzwl (%r9,%r8,2), %r8d addl %r8d, %ebp incq %rdx cmpq %rcx, %rdx jl 0x412c8 movq 0x20(%rbx), %rdi callq 0x3b810 movl $0xa8, %edi addq 0x20(%rbx), %rdi movslq %ebp, %r14 movq %r14, %rsi callq 0x381f0 addq $0x28, %rbx leaq 0xe(%rsp), %rdx movw $0x0, (%rdx) movq %rbx, %rdi movq %r14, %rsi callq 0x380c0 addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq leaq 0x742fd(%rip), %rdi # 0xb5630 leaq 0x7431f(%rip), %rsi # 0xb5659 leaq 0x74378(%rip), %rcx # 0xb56b9 movl $0x8e, %edx callq 0x39540 nop
_ZN10OpenSubdiv6v3_6_03Vtr8internal14FVarRefinement30estimateAndAllocateChildValuesEv: push rbp push r14 push rbx sub rsp, 10h mov rbx, rdi mov rax, [rdi] mov ebp, [rax+34h] movsxd rcx, dword ptr [rax+38h] test rcx, rcx jle short loc_412AD movsxd rdx, dword ptr [rax+50h] add rcx, rdx mov rsi, [rax+138h] mov rdi, [rbx+8] mov r8, [rbx+10h] mov r8, [r8+30h] loc_41286: movsxd r10, dword ptr [rsi+rdx*4] mov r9d, 1 test byte ptr [r8+r10], 1 jz short loc_412A2 mov r9, [rdi+90h] mov r9d, [r9+r10*8] loc_412A2: add ebp, r9d inc rdx cmp rdx, rcx jl short loc_41286 loc_412AD: movsxd rcx, dword ptr [rax+3Ch] test rcx, rcx jle short loc_412ED movsxd rdx, dword ptr [rax+54h] add rcx, rdx mov rsi, [rax+180h] mov rdi, [rbx+10h] loc_412C8: test byte ptr [rsi+rdx], 1 jnz short loc_4132C mov r8, [rax+138h] movsxd r8, dword ptr [r8+rdx*4] mov r9, [rdi+48h] movzx r8d, word ptr [r9+r8*2] add ebp, r8d inc rdx cmp rdx, rcx jl short loc_412C8 loc_412ED: mov rdi, [rbx+20h]; this call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel16resizeComponentsEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(void) mov edi, 0A8h add rdi, [rbx+20h] movsxd r14, ebp mov rsi, r14 call __ZNSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EE6resizeEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(ulong) add rbx, 28h ; '(' lea rdx, [rsp+28h+var_1A] mov word ptr [rdx], 0 mov rdi, rbx mov rsi, r14 call __ZNSt6vectorItSaItEE6resizeEmRKt; std::vector<ushort>::resize(ulong,ushort const&) add rsp, 10h pop rbx pop r14 pop rbp retn loc_4132C: lea rdi, aRefinementIsch; "_refinement.isChildVertexComplete(cVert"... lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVoidOpensubdiv_2; "void OpenSubdiv::v3_6_0::Vtr::internal:"... mov edx, 8Eh call ___assert_fail
long long OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues( OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement *this) { long long v1; // rax int v2; // ebp long long v3; // rcx long long v4; // rdx long long v5; // rcx long long v6; // r10 int v7; // r9d long long v8; // rcx long long v9; // rdx long long v10; // rcx _WORD v12[13]; // [rsp+Eh] [rbp-1Ah] BYREF v1 = *(_QWORD *)this; v2 = *(_DWORD *)(*(_QWORD *)this + 52LL); v3 = *(int *)(*(_QWORD *)this + 56LL); if ( v3 > 0 ) { v4 = *(int *)(v1 + 80); v5 = v4 + v3; do { v6 = *(int *)(*(_QWORD *)(v1 + 312) + 4 * v4); v7 = 1; if ( (*(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 48LL) + v6) & 1) != 0 ) v7 = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 1) + 144LL) + 8 * v6); v2 += v7; ++v4; } while ( v4 < v5 ); } v8 = *(int *)(v1 + 60); if ( v8 > 0 ) { v9 = *(int *)(v1 + 84); v10 = v9 + v8; do { if ( (*(_BYTE *)(*(_QWORD *)(v1 + 384) + v9) & 1) != 0 ) __assert_fail( "_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp", 142LL, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()"); v2 += *(unsigned __int16 *)(*(_QWORD *)(*((_QWORD *)this + 2) + 72LL) + 2LL * *(int *)(*(_QWORD *)(v1 + 312) + 4 * v9++)); } while ( v9 < v10 ); } OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::resizeComponents(*((OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel **)this + 4)); std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::resize(*((_QWORD *)this + 4) + 168LL, v2); v12[0] = 0; return std::vector<unsigned short>::resize((char *)this + 40, v2, v12); }
estimateAndAllocateChildValues: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV RAX,qword ptr [RDI] MOV EBP,dword ptr [RAX + 0x34] MOVSXD RCX,dword ptr [RAX + 0x38] TEST RCX,RCX JLE 0x001412ad MOVSXD RDX,dword ptr [RAX + 0x50] ADD RCX,RDX MOV RSI,qword ptr [RAX + 0x138] MOV RDI,qword ptr [RBX + 0x8] MOV R8,qword ptr [RBX + 0x10] MOV R8,qword ptr [R8 + 0x30] LAB_00141286: MOVSXD R10,dword ptr [RSI + RDX*0x4] MOV R9D,0x1 TEST byte ptr [R8 + R10*0x1],0x1 JZ 0x001412a2 MOV R9,qword ptr [RDI + 0x90] MOV R9D,dword ptr [R9 + R10*0x8] LAB_001412a2: ADD EBP,R9D INC RDX CMP RDX,RCX JL 0x00141286 LAB_001412ad: MOVSXD RCX,dword ptr [RAX + 0x3c] TEST RCX,RCX JLE 0x001412ed MOVSXD RDX,dword ptr [RAX + 0x54] ADD RCX,RDX MOV RSI,qword ptr [RAX + 0x180] MOV RDI,qword ptr [RBX + 0x10] LAB_001412c8: TEST byte ptr [RSI + RDX*0x1],0x1 JNZ 0x0014132c MOV R8,qword ptr [RAX + 0x138] MOVSXD R8,dword ptr [R8 + RDX*0x4] MOV R9,qword ptr [RDI + 0x48] MOVZX R8D,word ptr [R9 + R8*0x2] ADD EBP,R8D INC RDX CMP RDX,RCX JL 0x001412c8 LAB_001412ed: MOV RDI,qword ptr [RBX + 0x20] CALL 0x0013b810 MOV EDI,0xa8 ADD RDI,qword ptr [RBX + 0x20] MOVSXD R14,EBP MOV RSI,R14 CALL 0x001381f0 ADD RBX,0x28 LEA RDX,[RSP + 0xe] MOV word ptr [RDX],0x0 MOV RDI,RBX MOV RSI,R14 CALL 0x001380c0 ADD RSP,0x10 POP RBX POP R14 POP RBP RET LAB_0014132c: LEA RDI,[0x1b5630] LEA RSI,[0x1b5659] LEA RCX,[0x1b56b9] MOV EDX,0x8e CALL 0x00139540
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues (FVarRefinement *this) { long lVar1; long lVar2; long lVar3; int iVar4; int iVar5; long lVar6; ushort local_1a; lVar1 = *(long *)this; iVar4 = *(int *)(lVar1 + 0x34); if (0 < (long)*(int *)(lVar1 + 0x38)) { lVar3 = (long)*(int *)(lVar1 + 0x50); lVar2 = *(int *)(lVar1 + 0x38) + lVar3; do { lVar6 = (long)*(int *)(*(long *)(lVar1 + 0x138) + lVar3 * 4); iVar5 = 1; if ((*(byte *)(*(long *)(*(long *)(this + 0x10) + 0x30) + lVar6) & 1) != 0) { iVar5 = *(int *)(*(long *)(*(long *)(this + 8) + 0x90) + lVar6 * 8); } iVar4 = iVar4 + iVar5; lVar3 = lVar3 + 1; } while (lVar3 < lVar2); } if (0 < (long)*(int *)(lVar1 + 0x3c)) { lVar3 = (long)*(int *)(lVar1 + 0x54); lVar2 = *(int *)(lVar1 + 0x3c) + lVar3; do { if ((*(byte *)(*(long *)(lVar1 + 0x180) + lVar3) & 1) != 0) { /* WARNING: Subroutine does not return */ __assert_fail("_refinement.isChildVertexComplete(cVert)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarRefinement.cpp" ,0x8e, "void OpenSubdiv::v3_6_0::Vtr::internal::FVarRefinement::estimateAndAllocateChildValues()" ); } iVar4 = iVar4 + (uint)*(ushort *) (*(long *)(*(long *)(this + 0x10) + 0x48) + (long)*(int *)(*(long *)(lVar1 + 0x138) + lVar3 * 4) * 2); lVar3 = lVar3 + 1; } while (lVar3 < lVar2); } FVarLevel::resizeComponents(*(FVarLevel **)(this + 0x20)); std:: vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> ::resize((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>> *)(*(long *)(this + 0x20) + 0xa8),(long)iVar4); local_1a = 0; std::vector<unsigned_short,std::allocator<unsigned_short>>::resize ((vector<unsigned_short,std::allocator<unsigned_short>> *)(this + 0x28),(long)iVar4, &local_1a); return; }
41,923
inline_mysql_file_write
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_write( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, const uchar *buffer, size_t count, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_written; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_WRITE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_write(file, buffer, count, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_written= (result == 0) ? count : 0; else bytes_written= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_written); return result; } #endif result= my_write(file, buffer, count, flags); return result; }
O0
c
inline_mysql_file_write: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp 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 0x261750(%rip), %rax # 0x2c1158 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x7, %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 0x5fb17 leaq 0x261706(%rip), %rax # 0x2c1158 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 callq 0xf80e0 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0x5fac2 cmpq $0x0, -0x38(%rbp) jne 0x5faa7 movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0x5fab2 xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0x5fab2 movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0x5faef cmpq $-0x1, -0x38(%rbp) je 0x5fad6 movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0x5fae1 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0x5fae1 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x261662(%rip), %rax # 0x2c1158 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 0x5fb37 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xf80e0 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_file_write: push rbp mov rbp, rsp sub rsp, 0A0h 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, 7 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_5FB17 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] call my_write mov [rbp+var_38], rax mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_5FAC2 cmp [rbp+var_38], 0 jnz short loc_5FAA7 mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_5FAB2 loc_5FAA7: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_5FAB2: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_5FAEF loc_5FAC2: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_5FAD6 mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_5FAE1 loc_5FAD6: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_5FAE1: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_5FAEF: 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_5FB37 loc_5FB17: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_write mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_5FB37: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_write( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+0h] [rbp-A0h] long long v8; // [rsp+8h] [rbp-98h] _BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF long long v10; // [rsp+60h] [rbp-40h] long long v11; // [rsp+68h] [rbp-38h] long long v12; // [rsp+70h] [rbp-30h] long long v13; // [rsp+78h] [rbp-28h] long long v14; // [rsp+80h] [rbp-20h] unsigned int v15; // [rsp+88h] [rbp-18h] unsigned int v16; // [rsp+8Ch] [rbp-14h] long long v17; // [rsp+90h] [rbp-10h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 7LL); if ( v10 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16); v11 = my_write(v15, v14, v13, v12); if ( (v12 & 6) != 0 ) { if ( v11 ) v8 = 0LL; else v8 = v13; ((void ( *)(long long, long long))PSI_server[67])(v10, v8); } else { if ( v11 == -1 ) v7 = 0LL; else v7 = v11; ((void ( *)(long long, long long))PSI_server[67])(v10, v7); } return v11; } else { return my_write(v15, v14, v13, v12); } }
inline_mysql_file_write: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 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,[0x3c1158] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x7 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 0x0015fb17 LEA RAX,[0x3c1158] 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] CALL 0x001f80e0 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x0015fac2 CMP qword ptr [RBP + -0x38],0x0 JNZ 0x0015faa7 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x0015fab2 LAB_0015faa7: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x0015fab2 LAB_0015fab2: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x0015faef LAB_0015fac2: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x0015fad6 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x0015fae1 LAB_0015fad6: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x0015fae1 LAB_0015fae1: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_0015faef: LEA RAX,[0x3c1158] 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 0x0015fb37 LAB_0015fb17: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001f80e0 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_0015fb37: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_write (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,ulong param_6) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; ulong 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,7); if (local_48 == 0) { local_10 = my_write(local_20,local_28,local_30,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_write(local_20,local_28,local_30,local_38); if ((local_38 & 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; }
41,924
nglog::ShutdownLogging()
ng-log[P]ng-log/src/logging.cc
void ShutdownLogging() { ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); logging_directories_list = nullptr; g_prefix_formatter = nullptr; }
O1
cpp
nglog::ShutdownLogging(): pushq %rax callq 0x222db callq 0xa8e2 leaq 0x32a86(%rip), %rdi # 0x41ce0 xorl %esi, %esi callq 0x1fdc2 movq 0x23968(%rip), %rdi # 0x32bd0 movq $0x0, 0x2395d(%rip) # 0x32bd0 testq %rdi, %rdi je 0xf283 movl $0x18, %esi popq %rax jmp 0x949c popq %rax retq
_ZN5nglog15ShutdownLoggingEv: push rax call _ZN5nglog5tools24ShutdownLoggingUtilitiesEv; nglog::tools::ShutdownLoggingUtilities(void) call _ZN5nglog14LogDestination21DeleteLogDestinationsEv; nglog::LogDestination::DeleteLogDestinations(void) lea rdi, _ZN5nglogL24logging_directories_listB5cxx11E; nglog::logging_directories_list xor esi, esi call _ZNSt15__uniq_ptr_implISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EESt14default_deleteIS8_EE5resetEPS8_; std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset(std::vector<std::string>*) mov rdi, cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE; void * mov cs:_ZN5nglog12_GLOBAL__N_118g_prefix_formatterE, 0; nglog::`anonymous namespace'::g_prefix_formatter test rdi, rdi jz short loc_F283 mov esi, 18h; unsigned __int64 pop rax jmp _ZdlPvm; operator delete(void *,ulong) loc_F283: pop rax retn
void nglog::ShutdownLogging(nglog *this) { void *v1; // rdi nglog::tools::ShutdownLoggingUtilities(this); nglog::LogDestination::DeleteLogDestinations(this); std::__uniq_ptr_impl<std::vector<std::string>,std::default_delete<std::vector<std::string>>>::reset( &nglog::logging_directories_list[abi:cxx11], 0LL); v1 = nglog::`anonymous namespace'::g_prefix_formatter; nglog::`anonymous namespace'::g_prefix_formatter = 0LL; if ( v1 ) operator delete(v1); }
ShutdownLogging: PUSH RAX CALL 0x001222db CALL 0x0010a8e2 LEA RDI,[0x141ce0] XOR ESI,ESI CALL 0x0011fdc2 MOV RDI,qword ptr [0x00132bd0] MOV qword ptr [0x00132bd0],0x0 TEST RDI,RDI JZ 0x0010f283 MOV ESI,0x18 POP RAX JMP 0x0010949c LAB_0010f283: POP RAX RET
/* nglog::ShutdownLogging() */ int8 nglog::ShutdownLogging(void) { void *pvVar1; int8 in_RAX; int8 extraout_RAX; tools::ShutdownLoggingUtilities(); LogDestination::DeleteLogDestinations(); std:: __uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ::reset((__uniq_ptr_impl<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::default_delete<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> *)&logging_directories_list_abi_cxx11_,(vector *)0x0); pvVar1 = (anonymous_namespace)::g_prefix_formatter; (anonymous_namespace)::g_prefix_formatter = (void *)0x0; if (pvVar1 != (void *)0x0) { operator_delete(pvVar1,0x18); return extraout_RAX; } return in_RAX; }
41,925
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
monkey531[P]llama/common/json.hpp
JSON_HEDLEY_WARN_UNUSED_RESULT static basic_json parse(InputType&& i, const parser_callback_t cb = nullptr, const bool allow_exceptions = true, const bool ignore_comments = false) { basic_json result; parser(detail::input_adapter(std::forward<InputType>(i)), cb, allow_exceptions, ignore_comments).parse(true, result); return result; }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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>::parse<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&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movl %r8d, %ebp movl %ecx, %r14d movq %rdx, %r13 movq %rsi, %r12 movq %rdi, %rbx xorl %esi, %esi callq 0x3d548 movq (%r12), %r15 movq 0x8(%r12), %r12 movq %rsp, %rdi movq %r13, %rsi callq 0x3d5e8 addq %r15, %r12 movzbl %r14b, %r8d movzbl %bpl, %r9d leaq 0x20(%rsp), %rdi movq %rsp, %rcx movq %r15, %rsi movq %r12, %rdx callq 0x3d568 leaq 0x20(%rsp), %rdi pushq $0x1 popq %rsi movq %rbx, %rdx callq 0x3d62e leaq 0x20(%rsp), %rdi callq 0x3d9f8 movq %rsp, %rdi callq 0x47f7a movq %rbx, %rax addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x3d9f8 jmp 0x7acfc movq %rax, %r14 movq %rsp, %rdi callq 0x47f7a jmp 0x7ad09 movq %rax, %r14 movq %rbx, %rdi callq 0x3d534 movq %r14, %rdi callq 0x24f60 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5parseIS9_EESD_OT_St8functionIFbiNS0_6detail13parse_event_tERSD_EEbb: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov ebp, r8d mov r14d, ecx mov r13, rdx mov r12, rsi mov rbx, rdi xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr)) mov r15, [r12] mov r12, [r12+8] mov rdi, rsp mov rsi, r13 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) add r12, r15 movzx r8d, r14b movzx r9d, bpl lea rdi, [rsp+118h+var_F8] mov rcx, rsp mov rsi, r15 mov rdx, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,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+118h+var_F8] push 1 pop rsi mov rdx, rbx call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse(bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&) lea rdi, [rsp+118h+var_F8]; this call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser() mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() mov rax, rbx add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_18]; this call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser() jmp short loc_7ACFC mov r14, rax loc_7ACFC: mov rdi, rsp; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_7AD09 mov r14, rax loc_7AD09: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() mov rdi, r14 call __Unwind_Resume
_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>::parse<std::string>( _BYTE *a1, long long *a2, long long a3, unsigned __int8 a4, unsigned __int8 a5) { long long v8; // r15 long long v9; // r12 int v10; // ecx int v11; // r8d int v12; // r9d __int128 v14[2]; // [rsp+0h] [rbp-118h] BYREF _BYTE v15[248]; // [rsp+20h] [rbp-F8h] BYREF nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)a1); v8 = *a2; v9 = a2[1]; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( v14, a3); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>( (long long)v15, v8, v8 + v9, v14, a4, a5); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse( (long long)v15, 1, a1, v10, v11, v12); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~parser((std::_Function_base *)v15); std::_Function_base::~_Function_base((std::_Function_base *)v14); return a1; }
parse<std::__cxx11::string>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV EBP,R8D MOV R14D,ECX MOV R13,RDX MOV R12,RSI MOV RBX,RDI XOR ESI,ESI CALL 0x0013d548 MOV R15,qword ptr [R12] MOV R12,qword ptr [R12 + 0x8] LAB_0017ac8a: MOV RDI,RSP MOV RSI,R13 CALL 0x0013d5e8 ADD R12,R15 LAB_0017ac98: MOVZX R8D,R14B MOVZX R9D,BPL LEA RDI,[RSP + 0x20] MOV RCX,RSP MOV RSI,R15 MOV RDX,R12 CALL 0x0013d568 LAB_0017acb3: LEA RDI,[RSP + 0x20] PUSH 0x1 POP RSI MOV RDX,RBX CALL 0x0013d62e LAB_0017acc3: LEA RDI,[RSP + 0x20] CALL 0x0013d9f8 MOV RDI,RSP CALL 0x00147f7a MOV RAX,RBX ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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 >(std::__cxx11::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::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool, bool) */ basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::parse<std::__cxx11::string> (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,long *param_1,function *param_3,int1 param_4,int1 param_5) { long lVar1; long lVar2; function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> afStack_118 [32]; parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> local_f8 [200]; basic_json((_func_decltype_nullptr *)this); lVar1 = *param_1; lVar2 = param_1[1]; /* try { // try from 0017ac8a to 0017ac94 has its CatchHandler @ 0017ad06 */ std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function(afStack_118,param_3); /* try { // try from 0017ac98 to 0017acb2 has its CatchHandler @ 0017acf9 */ parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> (local_f8,lVar1,lVar2 + lVar1,afStack_118,param_4,param_5); /* try { // try from 0017acb3 to 0017acc2 has its CatchHandler @ 0017acea */ detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::parse(local_f8,true,this); detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::~parser(local_f8); std::_Function_base::~_Function_base((_Function_base *)afStack_118); return this; }
41,926
uf_intervall
eloqsql/storage/maria/ma_packrec.c
static void uf_intervall(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { reg1 uint field_length=(uint) (end-to); memcpy(to,rec->huff_tree->intervalls+field_length*decode_pos(bit_buff, rec->huff_tree), (size_t) field_length); }
O0
c
uf_intervall: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x30(%rax), %rax movq 0x10(%rax), %rax movq %rax, -0x38(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq 0x30(%rax), %rsi callq 0x49ef0 movq -0x38(%rbp), %rsi movq -0x30(%rbp), %rdi movl %eax, %ecx movl -0x28(%rbp), %eax imull %ecx, %eax movl %eax, %eax addq %rax, %rsi movl -0x24(%rbp), %eax movl %eax, %edx callq 0x2a0c0 addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
uf_intervall: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov [rbp+var_24], eax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+30h] mov rax, [rax+10h] mov [rbp+var_38], rax mov eax, [rbp+var_24] mov [rbp+var_28], eax mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax+30h] call decode_pos mov rsi, [rbp+var_38] mov rdi, [rbp+var_30] mov ecx, eax mov eax, [rbp+var_28] imul eax, ecx mov eax, eax add rsi, rax mov eax, [rbp+var_24] mov edx, eax call _memcpy add rsp, 40h pop rbp retn
long long uf_intervall(long long a1, long long a2, long long a3, int a4) { int v4; // eax long long v6; // [rsp+8h] [rbp-38h] int v8; // [rsp+18h] [rbp-28h] unsigned int v9; // [rsp+1Ch] [rbp-24h] v9 = a4 - a3; v6 = *(_QWORD *)(*(_QWORD *)(a1 + 48) + 16LL); v8 = a4 - a3; v4 = decode_pos(a2, *(_QWORD *)(a1 + 48)); return memcpy(a3, (unsigned int)(v4 * v8) + v6, v9); }
uf_intervall: PUSH RBP MOV RBP,RSP SUB RSP,0x40 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 + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x28],EAX MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x30] CALL 0x00149ef0 MOV RSI,qword ptr [RBP + -0x38] MOV RDI,qword ptr [RBP + -0x30] MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x28] IMUL EAX,ECX MOV EAX,EAX ADD RSI,RAX MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX CALL 0x0012a0c0 ADD RSP,0x40 POP RBP RET
void uf_intervall(long param_1,int8 param_2,void *param_3,int param_4) { long lVar1; uint uVar2; int iVar3; uVar2 = param_4 - (int)param_3; lVar1 = *(long *)(*(long *)(param_1 + 0x30) + 0x10); iVar3 = decode_pos(param_2,*(int8 *)(param_1 + 0x30)); memcpy(param_3,(void *)(lVar1 + (ulong)(uVar2 * iVar3)),(ulong)uVar2); return; }
41,927
OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(int const*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::ConnectUnOrderedFaces(Index const fvIndices[]) { // // There are two transient sets of data needed here: a set of Edges // that connect adjoining faces, and a set of indices (one for each // of the 2*N face-edges) to identify the Edge for each face-edge. // // IMPORTANT -- since these later edge indices are of the same type // and size as the internal face-edge neighbors, we'll use that array // to avoid a separate declaration (and possible allocation) and will // update it in place later. // int numFaceEdges = GetNumFaces() * 2; _faceEdgeNeighbors.SetSize(numFaceEdges); // Allocate and populate the edges and indices referring to them. // Initialization fails to detect some "duplicate" edges in a face, // so post-process to catch these before continuing: Vtr::internal::StackBuffer<Edge,32,true> edges(numFaceEdges); short * feEdges = &_faceEdgeNeighbors[0]; int numEdges = createUnOrderedEdges(edges, feEdges, fvIndices); markDuplicateEdges(edges, feEdges, fvIndices); // Use the connecting edges to assign neighboring faces (overwriting // our edge indices) and finish initializing the tags retaining the // properties of the corner: assignUnOrderedFaceNeighbors(edges, feEdges); finalizeUnOrderedTags(edges, numEdges); }
O0
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(int const*): pushq %rbp movq %rsp, %rbp subq $0x210, %rsp # imm = 0x210 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x1e0(%rbp) callq 0xd4690 movq -0x1e0(%rbp), %rdi addl %eax, %eax movl %eax, -0x14(%rbp) addq $0xa8, %rdi movq %rdi, -0x1d8(%rbp) movl -0x14(%rbp), %esi callq 0xd1cc0 movl -0x14(%rbp), %esi leaq -0x1b0(%rbp), %rdi callq 0xd60f0 movq -0x1d8(%rbp), %rdi callq 0xc4630 movq %rax, -0x1d0(%rbp) jmp 0x189939 movq -0x1d0(%rbp), %rax movq %rax, -0x1b8(%rbp) leaq -0x1b0(%rbp), %rdi callq 0xd2410 movq %rax, -0x1e8(%rbp) jmp 0x18995c movq -0x1e8(%rbp), %rsi movq -0x1e0(%rbp), %rdi movq -0x1b8(%rbp), %rdx movq -0x10(%rbp), %rcx callq 0xd1770 movl %eax, -0x1ec(%rbp) jmp 0x189982 movl -0x1ec(%rbp), %eax movl %eax, -0x1c8(%rbp) leaq -0x1b0(%rbp), %rdi callq 0xd2410 movq %rax, -0x1f8(%rbp) jmp 0x1899a3 movq -0x1f8(%rbp), %rsi movq -0x1e0(%rbp), %rdi movq -0x1b8(%rbp), %rdx movq -0x10(%rbp), %rcx callq 0xc51d0 jmp 0x1899c3 leaq -0x1b0(%rbp), %rdi callq 0xd2410 movq %rax, -0x200(%rbp) jmp 0x1899d8 movq -0x200(%rbp), %rsi movq -0x1e0(%rbp), %rdi movq -0x1b8(%rbp), %rdx callq 0xc51b0 jmp 0x1899f4 leaq -0x1b0(%rbp), %rdi callq 0xd2410 movq %rax, -0x208(%rbp) jmp 0x189a09 movq -0x208(%rbp), %rsi movq -0x1e0(%rbp), %rdi movl -0x1c8(%rbp), %edx callq 0xca6b0 jmp 0x189a24 leaq -0x1b0(%rbp), %rdi callq 0xd7860 addq $0x210, %rsp # imm = 0x210 popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x1c0(%rbp) movl %eax, -0x1c4(%rbp) leaq -0x1b0(%rbp), %rdi callq 0xd7860 movq -0x1c0(%rbp), %rdi callq 0xd58b0 nopw %cs:(%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex21ConnectUnOrderedFacesEPKi: push rbp mov rbp, rsp sub rsp, 210h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8]; this mov [rbp+var_1E0], rdi call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex11GetNumFacesEv; OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetNumFaces(void) mov rdi, [rbp+var_1E0] add eax, eax mov [rbp+var_14], eax add rdi, 0A8h mov [rbp+var_1D8], rdi mov esi, [rbp+var_14] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIsLj16ELb1EE7SetSizeEj; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,16u,true>::SetSize(uint) mov esi, [rbp+var_14] lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EEC2Ej; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::StackBuffer(uint) mov rdi, [rbp+var_1D8] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferIsLj16ELb1EEcvPsEv; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,16u,true>::operator short *(void) mov [rbp+var_1D0], rax jmp short $+2 loc_189939: mov rax, [rbp+var_1D0] mov [rbp+var_1B8], rax lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EEcvPS6_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(void) mov [rbp+var_1E8], rax jmp short $+2 loc_18995C: mov rsi, [rbp+var_1E8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, [rbp+var_1E0]; this mov rdx, [rbp+var_1B8]; __int16 * mov rcx, [rbp+var_10]; int * call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex20createUnOrderedEdgesEPNS2_4EdgeEPsPKi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::createUnOrderedEdges(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *,short *,int const*) mov [rbp+var_1EC], eax jmp short $+2 loc_189982: mov eax, [rbp+var_1EC] mov [rbp+var_1C8], eax lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EEcvPS6_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(void) mov [rbp+var_1F8], rax jmp short $+2 loc_1899A3: mov rsi, [rbp+var_1F8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, [rbp+var_1E0]; this mov rdx, [rbp+var_1B8]; __int16 * mov rcx, [rbp+var_10]; int * call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex18markDuplicateEdgesEPNS2_4EdgeEPKsPKi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::markDuplicateEdges(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *,short const*,int const*) jmp short $+2 loc_1899C3: lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EEcvPS6_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(void) mov [rbp+var_200], rax jmp short $+2 loc_1899D8: mov rsi, [rbp+var_200]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, [rbp+var_1E0]; this mov rdx, [rbp+var_1B8]; __int16 * call __ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex28assignUnOrderedFaceNeighborsEPKNS2_4EdgeEPKs; OpenSubdiv::v3_6_0::Bfr::FaceVertex::assignUnOrderedFaceNeighbors(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge const*,short const*) jmp short $+2 loc_1899F4: lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EEcvPS6_Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(void) mov [rbp+var_208], rax jmp short $+2 loc_189A09: mov rsi, [rbp+var_208]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, [rbp+var_1E0]; this mov edx, [rbp+var_1C8]; int call __ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex21finalizeUnOrderedTagsEPKNS2_4EdgeEi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeUnOrderedTags(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge const*,int) jmp short $+2 loc_189A24: lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::~StackBuffer() add rsp, 210h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_1C0], rcx mov [rbp+var_1C4], eax lea rdi, [rbp+var_1B0] call __ZN10OpenSubdiv6v3_6_03Vtr8internal11StackBufferINS0_3Bfr10FaceVertex4EdgeELj32ELb1EED2Ev; OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::~StackBuffer() mov rdi, [rbp+var_1C0] call __Unwind_Resume
long long OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces( OpenSubdiv::v3_6_0::Bfr::FaceVertex *this, int *a2) { const OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *v2; // rsi OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *v4; // [rsp+10h] [rbp-200h] OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *v5; // [rsp+18h] [rbp-1F8h] OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *v6; // [rsp+28h] [rbp-1E8h] int UnOrderedEdges; // [rsp+48h] [rbp-1C8h] __int16 *v8; // [rsp+58h] [rbp-1B8h] _BYTE v9[412]; // [rsp+60h] [rbp-1B0h] BYREF unsigned int v10; // [rsp+1FCh] [rbp-14h] int *v11; // [rsp+200h] [rbp-10h] OpenSubdiv::v3_6_0::Bfr::FaceVertex *v12; // [rsp+208h] [rbp-8h] v12 = this; v11 = a2; v10 = 2 * OpenSubdiv::v3_6_0::Bfr::FaceVertex::GetNumFaces(this); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,16u,true>::SetSize((char *)this + 168, v10); OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::StackBuffer( v9, v10); v8 = (__int16 *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<short,16u,true>::operator short *((char *)this + 168); v6 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(v9); UnOrderedEdges = OpenSubdiv::v3_6_0::Bfr::FaceVertex::createUnOrderedEdges(this, v6, v8, v11); v5 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(v9); OpenSubdiv::v3_6_0::Bfr::FaceVertex::markDuplicateEdges(this, v5, v8, v11); v4 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(v9); OpenSubdiv::v3_6_0::Bfr::FaceVertex::assignUnOrderedFaceNeighbors(this, v4, v8); v2 = (const OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::operator OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge*(v9); OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeUnOrderedTags(this, v2, UnOrderedEdges); return OpenSubdiv::v3_6_0::Vtr::internal::StackBuffer<OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge,32u,true>::~StackBuffer(v9); }
41,928
OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(int const*)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/faceVertex.cpp
void FaceVertex::ConnectUnOrderedFaces(Index const fvIndices[]) { // // There are two transient sets of data needed here: a set of Edges // that connect adjoining faces, and a set of indices (one for each // of the 2*N face-edges) to identify the Edge for each face-edge. // // IMPORTANT -- since these later edge indices are of the same type // and size as the internal face-edge neighbors, we'll use that array // to avoid a separate declaration (and possible allocation) and will // update it in place later. // int numFaceEdges = GetNumFaces() * 2; _faceEdgeNeighbors.SetSize(numFaceEdges); // Allocate and populate the edges and indices referring to them. // Initialization fails to detect some "duplicate" edges in a face, // so post-process to catch these before continuing: Vtr::internal::StackBuffer<Edge,32,true> edges(numFaceEdges); short * feEdges = &_faceEdgeNeighbors[0]; int numEdges = createUnOrderedEdges(edges, feEdges, fvIndices); markDuplicateEdges(edges, feEdges, fvIndices); // Use the connecting edges to assign neighboring faces (overwriting // our edge indices) and finish initializing the tags retaining the // properties of the corner: assignUnOrderedFaceNeighbors(edges, feEdges); finalizeUnOrderedTags(edges, numEdges); }
O1
cpp
OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(int const*): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x198, %rsp # imm = 0x198 movq %rsi, %r14 movq %rdi, %rbx movswl 0x2(%rdi), %eax leal (%rax,%rax), %ebp testl %eax, %eax je 0x87eac cmpl %ebp, 0xb4(%rbx) jae 0x87ed0 movq 0xd8(%rbx), %rdi callq 0x3a0c0 leaq 0xb8(%rbx), %rax movq %rax, 0xa8(%rbx) movl $0x10, 0xb4(%rbx) movl %ebp, %edi addq %rdi, %rdi callq 0x3a230 movq %rax, 0xd8(%rbx) movq %rax, 0xa8(%rbx) movl %ebp, 0xb4(%rbx) jmp 0x87ed0 movq 0xd8(%rbx), %rdi callq 0x3a0c0 leaq 0xb8(%rbx), %rax movq %rax, 0xa8(%rbx) movl $0x10, 0xb4(%rbx) movl %ebp, 0xb0(%rbx) leaq 0x10(%rsp), %rax movq %rax, -0x10(%rax) movl %ebp, -0x8(%rax) movl $0x20, -0x4(%rax) movq $0x0, 0x180(%rax) cmpl $0x21, %ebp jb 0x87f18 movl %ebp, %eax shlq $0x2, %rax leaq (%rax,%rax,2), %rdi callq 0x3a230 movq %rax, 0x190(%rsp) movq %rax, (%rsp) movl %ebp, 0xc(%rsp) movq 0xa8(%rbx), %r15 movq (%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r14, %rcx callq 0x3af20 movl %eax, %ebp movq (%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r14, %rcx callq 0x38650 movq (%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx callq 0x38640 movq (%rsp), %rsi movq %rbx, %rdi movl %ebp, %edx callq 0x39870 movq 0x190(%rsp), %rdi callq 0x3a0c0 addq $0x198, %rsp # imm = 0x198 popq %rbx popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq 0x190(%rsp), %rdi callq 0x3a0c0 movq %rbx, %rdi callq 0x3bd70 nop
_ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex21ConnectUnOrderedFacesEPKi: push rbp push r15 push r14 push rbx sub rsp, 198h mov r14, rsi mov rbx, rdi movsx eax, word ptr [rdi+2] lea ebp, [rax+rax] test eax, eax jz short loc_87EAC cmp [rbx+0B4h], ebp jnb short loc_87ED0 mov rdi, [rbx+0D8h]; void * call __ZdlPv; operator delete(void *) lea rax, [rbx+0B8h] mov [rbx+0A8h], rax mov dword ptr [rbx+0B4h], 10h mov edi, ebp add rdi, rdi; unsigned __int64 call __Znwm; operator new(ulong) mov [rbx+0D8h], rax mov [rbx+0A8h], rax mov [rbx+0B4h], ebp jmp short loc_87ED0 loc_87EAC: mov rdi, [rbx+0D8h]; void * call __ZdlPv; operator delete(void *) lea rax, [rbx+0B8h] mov [rbx+0A8h], rax mov dword ptr [rbx+0B4h], 10h loc_87ED0: mov [rbx+0B0h], ebp lea rax, [rsp+1B8h+var_1A8] mov [rax-10h], rax mov [rax-8], ebp mov dword ptr [rax-4], 20h ; ' ' mov qword ptr [rax+180h], 0 cmp ebp, 21h ; '!' jb short loc_87F18 mov eax, ebp shl rax, 2 lea rdi, [rax+rax*2]; unsigned __int64 call __Znwm; operator new(ulong) mov [rsp+1B8h+var_28], rax mov [rsp+1B8h+var_1B8], rax mov [rsp+1B8h+var_1AC], ebp loc_87F18: mov r15, [rbx+0A8h] mov rsi, [rsp+1B8h+var_1B8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, rbx; this mov rdx, r15; __int16 * mov rcx, r14; int * call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex20createUnOrderedEdgesEPNS2_4EdgeEPsPKi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::createUnOrderedEdges(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *,short *,int const*) mov ebp, eax mov rsi, [rsp+1B8h+var_1B8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, rbx; this mov rdx, r15; __int16 * mov rcx, r14; int * call __ZNK10OpenSubdiv6v3_6_03Bfr10FaceVertex18markDuplicateEdgesEPNS2_4EdgeEPKsPKi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::markDuplicateEdges(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *,short const*,int const*) mov rsi, [rsp+1B8h+var_1B8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, rbx; this mov rdx, r15; __int16 * call __ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex28assignUnOrderedFaceNeighborsEPKNS2_4EdgeEPKs; OpenSubdiv::v3_6_0::Bfr::FaceVertex::assignUnOrderedFaceNeighbors(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge const*,short const*) mov rsi, [rsp+1B8h+var_1B8]; OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge * mov rdi, rbx; this mov edx, ebp; int call __ZN10OpenSubdiv6v3_6_03Bfr10FaceVertex21finalizeUnOrderedTagsEPKNS2_4EdgeEi; OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeUnOrderedTags(OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge const*,int) mov rdi, [rsp+1B8h+var_28]; void * call __ZdlPv; operator delete(void *) add rsp, 198h pop rbx pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, [rsp+arg_188]; void * call __ZdlPv; operator delete(void *) mov rdi, rbx call __Unwind_Resume
void OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(void **this, const int *a2) { unsigned int v2; // ebp void *v3; // rax __int16 *v4; // r15 int UnOrderedEdges; // ebp OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *v6; // [rsp+0h] [rbp-1B8h] char v7; // [rsp+10h] [rbp-1A8h] BYREF void *v8; // [rsp+190h] [rbp-28h] v2 = 2 * *((__int16 *)this + 1); if ( *((_WORD *)this + 1) ) { if ( *((_DWORD *)this + 45) < v2 ) { operator delete(this[27]); this[21] = this + 23; *((_DWORD *)this + 45) = 16; v3 = (void *)operator new(2LL * v2); this[27] = v3; this[21] = v3; *((_DWORD *)this + 45) = v2; } } else { operator delete(this[27]); this[21] = this + 23; *((_DWORD *)this + 45) = 16; } *((_DWORD *)this + 44) = v2; v6 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)&v7; v8 = 0LL; if ( v2 >= 0x21 ) { v8 = (void *)operator new(12LL * v2); v6 = (OpenSubdiv::v3_6_0::Bfr::FaceVertex::Edge *)v8; } v4 = (__int16 *)this[21]; UnOrderedEdges = OpenSubdiv::v3_6_0::Bfr::FaceVertex::createUnOrderedEdges( (OpenSubdiv::v3_6_0::Bfr::FaceVertex *)this, v6, v4, a2); OpenSubdiv::v3_6_0::Bfr::FaceVertex::markDuplicateEdges((OpenSubdiv::v3_6_0::Bfr::FaceVertex *)this, v6, v4, a2); OpenSubdiv::v3_6_0::Bfr::FaceVertex::assignUnOrderedFaceNeighbors((OpenSubdiv::v3_6_0::Bfr::FaceVertex *)this, v6, v4); OpenSubdiv::v3_6_0::Bfr::FaceVertex::finalizeUnOrderedTags( (OpenSubdiv::v3_6_0::Bfr::FaceVertex *)this, v6, UnOrderedEdges); operator delete(v8); }
ConnectUnOrderedFaces: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x198 MOV R14,RSI MOV RBX,RDI MOVSX EAX,word ptr [RDI + 0x2] LEA EBP,[RAX + RAX*0x1] TEST EAX,EAX JZ 0x00187eac CMP dword ptr [RBX + 0xb4],EBP JNC 0x00187ed0 MOV RDI,qword ptr [RBX + 0xd8] CALL 0x0013a0c0 LEA RAX,[RBX + 0xb8] MOV qword ptr [RBX + 0xa8],RAX MOV dword ptr [RBX + 0xb4],0x10 MOV EDI,EBP ADD RDI,RDI CALL 0x0013a230 MOV qword ptr [RBX + 0xd8],RAX MOV qword ptr [RBX + 0xa8],RAX MOV dword ptr [RBX + 0xb4],EBP JMP 0x00187ed0 LAB_00187eac: MOV RDI,qword ptr [RBX + 0xd8] CALL 0x0013a0c0 LEA RAX,[RBX + 0xb8] MOV qword ptr [RBX + 0xa8],RAX MOV dword ptr [RBX + 0xb4],0x10 LAB_00187ed0: MOV dword ptr [RBX + 0xb0],EBP LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + -0x10],RAX MOV dword ptr [RAX + -0x8],EBP MOV dword ptr [RAX + -0x4],0x20 MOV qword ptr [RAX + 0x180],0x0 CMP EBP,0x21 JC 0x00187f18 MOV EAX,EBP SHL RAX,0x2 LEA RDI,[RAX + RAX*0x2] CALL 0x0013a230 MOV qword ptr [RSP + 0x190],RAX MOV qword ptr [RSP],RAX MOV dword ptr [RSP + 0xc],EBP LAB_00187f18: MOV R15,qword ptr [RBX + 0xa8] MOV RSI,qword ptr [RSP] LAB_00187f23: MOV RDI,RBX MOV RDX,R15 MOV RCX,R14 CALL 0x0013af20 LAB_00187f31: MOV EBP,EAX MOV RSI,qword ptr [RSP] MOV RDI,RBX MOV RDX,R15 MOV RCX,R14 CALL 0x00138650 MOV RSI,qword ptr [RSP] MOV RDI,RBX MOV RDX,R15 CALL 0x00138640 MOV RSI,qword ptr [RSP] MOV RDI,RBX MOV EDX,EBP CALL 0x00139870 MOV RDI,qword ptr [RSP + 0x190] CALL 0x0013a0c0 ADD RSP,0x198 POP RBX POP R14 POP R15 POP RBP RET
/* OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(int const*) */ void __thiscall OpenSubdiv::v3_6_0::Bfr::FaceVertex::ConnectUnOrderedFaces(FaceVertex *this,int *param_1) { short *psVar1; uint uVar2; int iVar3; void *pvVar4; Edge *local_1b8; Edge local_1a8 [384]; Edge *local_28; uVar2 = *(short *)(this + 2) * 2; if (*(short *)(this + 2) == 0) { operator_delete(*(void **)(this + 0xd8)); *(FaceVertex **)(this + 0xa8) = this + 0xb8; *(int4 *)(this + 0xb4) = 0x10; } else if (*(uint *)(this + 0xb4) < uVar2) { operator_delete(*(void **)(this + 0xd8)); *(FaceVertex **)(this + 0xa8) = this + 0xb8; *(int4 *)(this + 0xb4) = 0x10; pvVar4 = operator_new((ulong)uVar2 * 2); *(void **)(this + 0xd8) = pvVar4; *(void **)(this + 0xa8) = pvVar4; *(uint *)(this + 0xb4) = uVar2; } *(uint *)(this + 0xb0) = uVar2; local_1b8 = local_1a8; local_28 = (Edge *)0x0; if (0x20 < uVar2) { local_1b8 = (Edge *)operator_new((ulong)uVar2 * 0xc); local_28 = local_1b8; } psVar1 = *(short **)(this + 0xa8); /* try { // try from 00187f23 to 00187f30 has its CatchHandler @ 00187f7d */ iVar3 = createUnOrderedEdges(this,local_1b8,psVar1,param_1); markDuplicateEdges(this,local_1b8,psVar1,param_1); assignUnOrderedFaceNeighbors(this,local_1b8,psVar1); finalizeUnOrderedTags(this,local_1b8,iVar3); operator_delete(local_28); return; }
41,929
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9])
monkey531[P]llama/common/json.hpp
reference at(KeyType && key) { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return set_parent(it->second); }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& 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>::at<char const (&) [9], 0>(char const (&) [9]): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x7d339 movq %rsi, %r15 movq 0x8(%r14), %rdi callq 0x80fd2 movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0x7d397 addq $0x20, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x24520 movq %rax, %rbx movq %r14, %rdi callq 0x45c5c leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x39dc3(%rip), %rsi # 0xb711e leaq 0x8(%rsp), %rdi callq 0x805c1 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x45b10 xorl %ebp, %ebp leaq 0x81bc2(%rip), %rsi # 0xfef48 leaq -0x3aa8b(%rip), %rdx # 0x42902 movq %rbx, %rdi callq 0x25150 jmp 0x7d401 pushq $0x20 popq %rdi callq 0x24520 movq %rax, %rbx leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r15, %rsi callq 0x283ac leaq 0x39d93(%rip), %rsi # 0xb714e leaq 0x39d92(%rip), %rcx # 0xb7154 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x80bcb movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x444d2 xorl %ebp, %ebp leaq 0x81ad6(%rip), %rsi # 0xfeec8 leaq -0x3aaf7(%rip), %rdx # 0x42902 movq %rbx, %rdi callq 0x25150 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x25478 jmp 0x7d416 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi jmp 0x7d427 jmp 0x7d433 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x25478 testb %bpl, %bpl jne 0x7d436 jmp 0x7d43e movq %rax, %r14 movq %rbx, %rdi callq 0x247a0 movq %r14, %rdi callq 0x251e0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_7D339 mov r15, rsi mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_7D397 add rax, 20h ; ' ' add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_7D339: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_40] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_7D401 loc_7D397: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_61] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_7D401: mov r14, rax lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7D416 mov r14, rax mov bpl, 1 loc_7D416: lea rdi, [rsp+68h+var_40] jmp short loc_7D427 jmp short loc_7D433 mov r14, rax lea rdi, [rsp+68h+var_60]; void * loc_7D427: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_7D436 jmp short loc_7D43E loc_7D433: mov r14, rax loc_7D436: mov rdi, rbx; void * call ___cxa_free_exception loc_7D43E: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx _BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF _QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v7[0] = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v6, "cannot use at() with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 304, (long long)v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(_QWORD *)(a1 + 8)); if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) ) { v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::string::basic_string<std::allocator<char>>(v7, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( v6, "key '", v7, "' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( v5, 403, (long long)v6, a1); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v2 + 32; }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x0017d339 MOV R15,RSI MOV RDI,qword ptr [R14 + 0x8] CALL 0x00180fd2 MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x0017d397 ADD RAX,0x20 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0017d339: PUSH 0x20 POP RDI CALL 0x00124520 MOV RBX,RAX MOV RDI,R14 CALL 0x00145c5c LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_0017d354: LEA RSI,[0x1b711e] LEA RDI,[RSP + 0x8] CALL 0x001805c1 MOV BPL,0x1 LAB_0017d368: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x00145b10 XOR EBP,EBP LEA RSI,[0x1fef48] LEA RDX,[0x142902] MOV RDI,RBX CALL 0x00125150 LAB_0017d397: PUSH 0x20 POP RDI CALL 0x00124520 MOV RBX,RAX LAB_0017d3a2: LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] MOV RSI,R15 CALL 0x001283ac LAB_0017d3b4: LEA RSI,[0x1b714e] LEA RCX,[0x1b7154] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x00180bcb MOV BPL,0x1 LAB_0017d3d4: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001444d2 XOR EBP,EBP LEA RSI,[0x1feec8] LEA RDX,[0x142902] MOV RDI,RBX CALL 0x00125150
long _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long lVar1; int8 uVar2; allocator local_61; detail local_60 [32]; char *local_40 [4]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 0017d354 to 0017d364 has its CatchHandler @ 0017d433 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_60,"cannot use at() with ",local_40); /* try { // try from 0017d368 to 0017d394 has its CatchHandler @ 0017d41f */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x130,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA10_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (*(int8 *)(param_1 + 8)); if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) { return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 0017d3a2 to 0017d3b3 has its CatchHandler @ 0017d41d */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61); /* try { // try from 0017d3b4 to 0017d3d0 has its CatchHandler @ 0017d410 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_60,"key \'",(string *)local_40,"\' not found"); /* try { // try from 0017d3d4 to 0017d400 has its CatchHandler @ 0017d401 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x193,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
41,930
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9])
monkey531[P]llama/common/json.hpp
reference at(KeyType && key) { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return set_parent(it->second); }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& 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>::at<char const (&) [9], 0>(char const (&) [9]): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xa7c01 movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0xa7beb movq %rbx, %rdi movq %r15, %rsi callq 0x1b260 testl %eax, %eax je 0xa7be0 addq $0x30, %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx jne 0xa7bc1 jmp 0xa7be3 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx cmpq %rbx, %rax je 0xa7c5f addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1b4f0 movq %rax, %rbx movq %r14, %rdi callq 0x6195a movq %rsp, %rdx movq %rax, (%rdx) leaq 0x4b50b(%rip), %rsi # 0xf312e leaq 0x20(%rsp), %rdi callq 0xad9cf movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x61702 xorl %ebp, %ebp leaq 0x842fa(%rip), %rsi # 0x12bf48 leaq -0x4a00d(%rip), %rdx # 0x5dc48 movq %rbx, %rdi callq 0x1c150 jmp 0xa7cd8 movl $0x20, %edi callq 0x1b4f0 movq %rax, %rbx leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1b460 leaq (%rax,%r15), %rdx movq %rsp, %rdi movq %r15, %rsi callq 0x22b0c leaq 0x4b4ca(%rip), %rsi # 0xf315e leaq 0x4b4c9(%rip), %rcx # 0xf3164 leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xadfac movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x5fdaa xorl %ebp, %ebp leaq 0x841ff(%rip), %rsi # 0x12bec8 leaq -0x4a088(%rip), %rdx # 0x5dc48 movq %rbx, %rdi callq 0x1c150 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa7cf6 movq 0x30(%rsp), %rsi incq %rsi callq 0x1ba20 movq (%rsp), %rdi cmpq %r12, %rdi je 0xa7d41 movq 0x10(%rsp), %rsi jmp 0xa7d39 movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0xa7d4b movq 0x10(%rsp), %rsi incq %rsi callq 0x1ba20 jmp 0xa7d4b jmp 0xa7d48 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa7d41 movq 0x30(%rsp), %rsi incq %rsi callq 0x1ba20 testb %bpl, %bpl jne 0xa7d4b jmp 0xa7d53 movq %rax, %r14 movq %rbx, %rdi callq 0x1b770 movq %r14, %rdi callq 0x1c1e0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_A7C01 mov r15, rsi mov r12, [r14+8] mov rbx, [r12] mov rax, [r12+8] cmp rbx, rax jz short loc_A7BEB loc_A7BC1: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_A7BE0 add rbx, 30h ; '0' mov rax, [r12+8] cmp rbx, rax jnz short loc_A7BC1 jmp short loc_A7BE3 loc_A7BE0: mov rax, rbx loc_A7BE3: mov rcx, [r14+8] mov rbx, [rcx+8] loc_A7BEB: cmp rax, rbx jz short loc_A7C5F add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_A7C01: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov rdx, rsp mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_A7CD8 loc_A7C5F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] mov rdi, rsp mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_A7CD8: mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A7CF6 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A7CF6: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jz short loc_A7D41 mov rsi, [rsp+68h+var_58] jmp short loc_A7D39 mov r14, rax mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_A7D4B mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_A7D4B jmp short loc_A7D48 mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A7D41 mov rsi, [rsp+68h+var_38] loc_A7D39: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A7D41: test bpl, bpl jnz short loc_A7D4B jmp short loc_A7D53 loc_A7D48: mov r14, rax loc_A7D4B: mov rdi, rbx; void * call ___cxa_free_exception loc_A7D53: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_( long long a1, _BYTE *a2) { long long *v2; // r12 long long v3; // rbx long long v4; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx long long v8; // rax void *v9[2]; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+10h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = (void *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v11, "cannot use at() with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 304, v11); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = *(long long **)(a1 + 8); v3 = *v2; v4 = v2[1]; if ( *v2 != v4 ) { while ( (unsigned int)std::string::compare(v3, a2) ) { v3 += 48LL; v4 = v2[1]; if ( v3 == v4 ) goto LABEL_7; } v4 = v3; LABEL_7: v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL); } if ( v4 == v3 ) { v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = &v10; v8 = strlen(a2); std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( v11, "key '", v9, "' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( v7, 403, v11); __cxa_throw( v7, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v4 + 32; }
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001a7c01 MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x001a7beb LAB_001a7bc1: MOV RDI,RBX MOV RSI,R15 CALL 0x0011b260 TEST EAX,EAX JZ 0x001a7be0 ADD RBX,0x30 MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JNZ 0x001a7bc1 JMP 0x001a7be3 LAB_001a7be0: MOV RAX,RBX LAB_001a7be3: MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] LAB_001a7beb: CMP RAX,RBX JZ 0x001a7c5f ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001a7c01: MOV EDI,0x20 CALL 0x0011b4f0 MOV RBX,RAX MOV RDI,R14 CALL 0x0016195a MOV RDX,RSP MOV qword ptr [RDX],RAX LAB_001a7c1c: LEA RSI,[0x1f312e] LEA RDI,[RSP + 0x20] CALL 0x001ad9cf MOV BPL,0x1 LAB_001a7c30: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x00161702 XOR EBP,EBP LEA RSI,[0x22bf48] LEA RDX,[0x15dc48] MOV RDI,RBX CALL 0x0011c150 LAB_001a7c5f: MOV EDI,0x20 CALL 0x0011b4f0 MOV RBX,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011b460 LEA RDX,[RAX + R15*0x1] LAB_001a7c82: MOV RDI,RSP MOV RSI,R15 CALL 0x00122b0c LAB_001a7c8d: LEA RSI,[0x1f315e] LEA RCX,[0x1f3164] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001adfac MOV BPL,0x1 LAB_001a7cab: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x0015fdaa XOR EBP,EBP LEA RSI,[0x22bec8] LEA RDX,[0x15dc48] MOV RDI,RBX CALL 0x0011c150
char * _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long *plVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; char *local_68 [2]; char local_58 [16]; detail local_48 [32]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001a7c1c to 001a7c2c has its CatchHandler @ 001a7d48 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_48,"cannot use at() with ",local_68); /* try { // try from 001a7c30 to 001a7c5c has its CatchHandler @ 001a7d23 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0x130,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } plVar1 = *(long **)(param_1 + 8); pcVar6 = (char *)*plVar1; pcVar3 = (char *)plVar1[1]; if (pcVar6 != pcVar3) { do { pcVar3 = pcVar6; iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar6 = pcVar3 + 0x30; pcVar3 = (char *)plVar1[1]; } while (pcVar6 != pcVar3); pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8); } if (pcVar3 == pcVar6) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = local_58; sVar5 = strlen(param_2); /* try { // try from 001a7c82 to 001a7c8c has its CatchHandler @ 001a7d21 */ std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5); /* try { // try from 001a7c8d to 001a7ca7 has its CatchHandler @ 001a7d06 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_48,"key \'",(string *)local_68,"\' not found"); /* try { // try from 001a7cab to 001a7cd7 has its CatchHandler @ 001a7cd8 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0x193,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
41,931
my_mb_wc_latin1
eloqsql/strings/ctype-latin1.c
static int my_mb_wc_latin1(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *wc, const uchar *str, const uchar *end __attribute__((unused))) { if (str >= end) return MY_CS_TOOSMALL; /* There are no unassigned characters in latin1. Every code point in latin1 is mapped to some Unicode code point. We can always return 1, no needs to check the value of cs_to_uni[*str]. */ *wc= cs_to_uni[*str]; DBUG_ASSERT(wc[0] || !str[0]); return 1; }
O3
c
my_mb_wc_latin1: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xb2ca4 movzbl (%rdx), %eax leaq 0x171858(%rip), %rcx # 0x2244f0 movzwl (%rcx,%rax,2), %eax movq %rax, (%rsi) movl $0x1, %eax popq %rbp retq
my_mb_wc_latin1: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_B2CA4 movzx eax, byte ptr [rdx] lea rcx, cs_to_uni movzx eax, word ptr [rcx+rax*2] mov [rsi], rax mov eax, 1 loc_B2CA4: pop rbp retn
long long my_mb_wc_latin1(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { long long result; // rax result = 4294967195LL; if ( (unsigned long long)a3 < a4 ) { *a2 = cs_to_uni[*a3]; return 1LL; } return result; }
my_mb_wc_latin1: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001b2ca4 MOVZX EAX,byte ptr [RDX] LEA RCX,[0x3244f0] MOVZX EAX,word ptr [RCX + RAX*0x2] MOV qword ptr [RSI],RAX MOV EAX,0x1 LAB_001b2ca4: POP RBP RET
int8 my_mb_wc_latin1(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { int8 uVar1; uVar1 = 0xffffff9b; if (param_3 < param_4) { *param_2 = (ulong)*(ushort *)(cs_to_uni + (ulong)*param_3 * 2); uVar1 = 1; } return uVar1; }
41,932
AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, AimRTCodeGenerator::PackageNode const&)
aimrt_mujoco_sim/_deps/aimrt-src/src/tools/protoc_plugin_cpp_gen_aimrt_cpp_rpc/main.cc
static std::string GenPackageCode(std::string_view temp, const PackageNode& package_node) { std::string result(temp); for (const auto& item : package_node.kv) { ReplaceString(result, item.first, item.second); } static const std::string kServiceBeginFlag = "{{for service begin}}\n"; static const std::string kServiceEndFlag = "{{service end}}\n"; size_t cur_pos = 0; while (true) { auto begin_pos = result.find(kServiceBeginFlag, cur_pos); if (begin_pos == std::string::npos) break; auto end_pos = result.find(kServiceEndFlag, begin_pos + kServiceBeginFlag.size()); if (end_pos == std::string::npos) break; std::string cur_temp = result.substr( begin_pos + kServiceBeginFlag.size(), end_pos - begin_pos - kServiceBeginFlag.size()); std::string cur_result; for (const auto& node : package_node.service_vec) { cur_result += GenServiceCode(cur_temp, node); } result.replace(begin_pos, end_pos - begin_pos + kServiceEndFlag.size(), cur_result); cur_pos = begin_pos + cur_result.size(); } return result; }
O0
cpp
AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::basic_string_view<char, std::char_traits<char>>, AimRTCodeGenerator::PackageNode const&): subq $0x178, %rsp # imm = 0x178 movq %rdi, 0x60(%rsp) movq %rdi, %rax movq %rax, 0x58(%rsp) movq %rdi, 0x170(%rsp) movq %rsi, 0x160(%rsp) movq %rdx, 0x168(%rsp) movq %rcx, 0x158(%rsp) movb $0x0, 0x157(%rsp) leaq 0x156(%rsp), %rdi movq %rdi, 0x68(%rsp) callq 0x13760 movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rdx leaq 0x160(%rsp), %rsi callq 0x1c250 jmp 0x16597 leaq 0x156(%rsp), %rdi callq 0x134d0 movq 0x158(%rsp), %rax movq %rax, 0x138(%rsp) movq 0x138(%rsp), %rdi callq 0x1c2d0 movq %rax, 0x130(%rsp) movq 0x138(%rsp), %rdi callq 0x1c300 movq %rax, 0x128(%rsp) leaq 0x130(%rsp), %rdi leaq 0x128(%rsp), %rsi callq 0x1c330 xorb $-0x1, %al testb $0x1, %al jne 0x165fe jmp 0x1667e leaq 0x130(%rsp), %rdi callq 0x1c350 movq 0x60(%rsp), %rdi movq %rax, 0x120(%rsp) movq 0x120(%rsp), %rsi movq %rsi, %rdx addq $0x20, %rdx callq 0x14420 jmp 0x1662e jmp 0x16630 leaq 0x130(%rsp), %rdi callq 0x1c370 jmp 0x165de movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) leaq 0x156(%rsp), %rdi callq 0x134d0 jmp 0x16ae0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) jmp 0x16ad6 cmpb $0x0, 0x266a13(%rip) # 0x27d098 jne 0x166f7 leaq 0x266a0a(%rip), %rdi # 0x27d098 callq 0x13770 cmpl $0x0, %eax je 0x166f7 leaq 0x11f(%rsp), %rdi movq %rdi, 0x50(%rsp) callq 0x13760 movq 0x50(%rsp), %rdx leaq 0x2669c2(%rip), %rdi # 0x27d078 leaq 0x1d0af3(%rip), %rsi # 0x1e71b0 callq 0x158d0 jmp 0x166c4 leaq 0x11f(%rsp), %rdi callq 0x134d0 leaq -0x1dd8(%rip), %rdi # 0x14900 leaq 0x266999(%rip), %rsi # 0x27d078 leaq 0x265d42(%rip), %rdx # 0x27c428 callq 0x133c0 leaq 0x2669a6(%rip), %rdi # 0x27d098 callq 0x132e0 cmpb $0x0, 0x2669c2(%rip) # 0x27d0c0 jne 0x16770 leaq 0x2669b9(%rip), %rdi # 0x27d0c0 callq 0x13770 cmpl $0x0, %eax je 0x16770 leaq 0x11e(%rsp), %rdi movq %rdi, 0x48(%rsp) callq 0x13760 movq 0x48(%rsp), %rdx leaq 0x266971(%rip), %rdi # 0x27d0a0 leaq 0x1d0a91(%rip), %rsi # 0x1e71c7 callq 0x158d0 jmp 0x1673d leaq 0x11e(%rsp), %rdi callq 0x134d0 leaq -0x1e51(%rip), %rdi # 0x14900 leaq 0x266948(%rip), %rsi # 0x27d0a0 leaq 0x265cc9(%rip), %rdx # 0x27c428 callq 0x133c0 leaq 0x266955(%rip), %rdi # 0x27d0c0 callq 0x132e0 movq $0x0, 0x110(%rsp) jmp 0x1677e movq 0x60(%rsp), %rdi movq 0x110(%rsp), %rdx leaq 0x2668e6(%rip), %rsi # 0x27d078 callq 0x14700 movq %rax, 0x108(%rsp) cmpq $-0x1, 0x108(%rsp) jne 0x16813 jmp 0x16aad movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) leaq 0x11f(%rsp), %rdi callq 0x134d0 leaq 0x2668c1(%rip), %rdi # 0x27d098 callq 0x132d0 jmp 0x16ad6 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) leaq 0x11e(%rsp), %rdi callq 0x134d0 leaq 0x2668b7(%rip), %rdi # 0x27d0c0 callq 0x132d0 jmp 0x16ad6 movq 0x108(%rsp), %rax movq %rax, 0x40(%rsp) leaq 0x266851(%rip), %rdi # 0x27d078 callq 0x147d0 movq 0x40(%rsp), %rdx movq 0x60(%rsp), %rdi addq %rax, %rdx leaq 0x266860(%rip), %rsi # 0x27d0a0 callq 0x14700 movq %rax, 0x100(%rsp) cmpq $-0x1, 0x100(%rsp) jne 0x1685d jmp 0x16aad movq 0x108(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x266807(%rip), %rdi # 0x27d078 movq %rdi, 0x20(%rsp) callq 0x147d0 movq 0x20(%rsp), %rdi movq %rax, %rcx movq 0x28(%rsp), %rax addq %rcx, %rax movq %rax, 0x38(%rsp) movq 0x100(%rsp), %rax movq 0x108(%rsp), %rcx subq %rcx, %rax movq %rax, 0x30(%rsp) callq 0x147d0 movq 0x30(%rsp), %rcx movq 0x60(%rsp), %rsi movq 0x38(%rsp), %rdx subq %rax, %rcx leaq 0xe0(%rsp), %rdi callq 0x14820 jmp 0x168ce leaq 0xc0(%rsp), %rdi callq 0x17eb0 movq 0x158(%rsp), %rax addq $0x38, %rax movq %rax, 0xb8(%rsp) movq 0xb8(%rsp), %rdi callq 0x1c3a0 movq %rax, 0xb0(%rsp) movq 0xb8(%rsp), %rdi callq 0x1c3d0 movq %rax, 0xa8(%rsp) leaq 0xb0(%rsp), %rdi leaq 0xa8(%rsp), %rsi callq 0x1c400 xorb $-0x1, %al testb $0x1, %al jne 0x16939 jmp 0x169fb leaq 0xb0(%rsp), %rdi callq 0x1c440 movq %rax, 0xa0(%rsp) leaq 0xe0(%rsp), %rdi callq 0x1ca10 movq %rax, 0x70(%rsp) movq %rdx, 0x78(%rsp) movq 0xa0(%rsp), %rcx movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx leaq 0x80(%rsp), %rdi callq 0x1c450 jmp 0x16986 leaq 0xc0(%rsp), %rdi leaq 0x80(%rsp), %rsi callq 0x19340 jmp 0x1699d leaq 0x80(%rsp), %rdi callq 0x14900 leaq 0xb0(%rsp), %rdi callq 0x1ca60 jmp 0x16919 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) jmp 0x16a91 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x148(%rsp) movl %eax, 0x144(%rsp) leaq 0x80(%rsp), %rdi callq 0x14900 jmp 0x16a91 movq 0x108(%rsp), %rcx movq %rcx, 0x18(%rsp) movq 0x100(%rsp), %rax subq %rcx, %rax movq %rax, 0x10(%rsp) leaq 0x266681(%rip), %rdi # 0x27d0a0 callq 0x147d0 movq 0x10(%rsp), %rdx movq 0x60(%rsp), %rdi movq 0x18(%rsp), %rsi addq %rax, %rdx leaq 0xc0(%rsp), %rcx callq 0x14760 jmp 0x16a45 movq 0x108(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0xc0(%rsp), %rdi callq 0x147d0 movq %rax, %rcx movq 0x8(%rsp), %rax addq %rcx, %rax movq %rax, 0x110(%rsp) leaq 0xc0(%rsp), %rdi callq 0x14900 leaq 0xe0(%rsp), %rdi callq 0x14900 jmp 0x1677c leaq 0xc0(%rsp), %rdi callq 0x14900 leaq 0xe0(%rsp), %rdi callq 0x14900 jmp 0x16ad6 movb $0x1, 0x157(%rsp) testb $0x1, 0x157(%rsp) jne 0x16ac9 movq 0x60(%rsp), %rdi callq 0x14900 movq 0x58(%rsp), %rax addq $0x178, %rsp # imm = 0x178 retq movq 0x60(%rsp), %rdi callq 0x14900 movq 0x148(%rsp), %rdi callq 0x13750 nopl (%rax)
_ZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeE: sub rsp, 178h mov [rsp+178h+var_118], rdi; int mov rax, rdi mov [rsp+178h+var_120], rax; void * mov [rsp+178h+var_8], rdi mov [rsp+178h+var_18], rsi mov [rsp+178h+var_10], rdx mov qword ptr [rsp+178h+var_22+2], rcx mov byte ptr [rsp+178h+var_22+1], 0 lea rdi, [rsp+178h+var_22] mov qword ptr [rsp+178h+var_110], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+178h+var_118] mov rdx, qword ptr [rsp+178h+var_110] lea rsi, [rsp+178h+var_18] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ISt17basic_string_viewIcS2_EvEERKT_RKS3_; std::string::basic_string<std::string_view,void>(std::string_view const&,std::allocator<char> const&) jmp short $+2 loc_16597: lea rdi, [rsp+178h+var_22] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, qword ptr [rsp+178h+var_22+2] mov qword ptr [rsp+178h+var_40], rax; int mov rdi, qword ptr [rsp+178h+var_40] call _ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE5beginEv; std::unordered_map<std::string,std::string>::begin(void) mov qword ptr [rsp+178h+var_48], rax; int mov rdi, qword ptr [rsp+178h+var_40] call _ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S5_EEE3endEv; std::unordered_map<std::string,std::string>::end(void) mov qword ptr [rsp+178h+var_50], rax; int loc_165DE: lea rdi, [rsp+178h+var_48] lea rsi, [rsp+178h+var_50] call _ZNSt8__detaileqERKNS_19_Node_iterator_baseISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_ELb1EEESC_; std::__detail::operator==(std::__detail::_Node_iterator_base<std::pair<std::string const,std::string>,true> const&,std::__detail::_Node_iterator_base<std::pair<std::string const,std::string>,true> const&) xor al, 0FFh test al, 1 jnz short loc_165FE jmp loc_1667E loc_165FE: lea rdi, [rsp+178h+var_48] call _ZNKSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_ELb0ELb1EEdeEv; std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>::operator*(void) mov rdi, [rsp+178h+var_118] mov qword ptr [rsp+178h+var_5A+2], rax mov rsi, qword ptr [rsp+178h+var_5A+2] mov rdx, rsi add rdx, 20h ; ' ' call _Z13ReplaceStringRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS4_S7_; ReplaceString(std::string &,std::string const&,std::string const&) jmp short $+2 loc_1662E: jmp short $+2 loc_16630: lea rdi, [rsp+178h+var_48] call _ZNSt8__detail20_Node_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_ELb0ELb1EEppEv; std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>::operator++(void) jmp short loc_165DE mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax lea rdi, [rsp+arg_14E] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp loc_16AE0 mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax jmp loc_16AD6 loc_1667E: cmp cs:_ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11, 0; `guard variable for'AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag jnz short loc_166F7 lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; __guard * call ___cxa_guard_acquire cmp eax, 0 jz short loc_166F7 lea rdi, [rsp+178h+var_5A+1] mov qword ptr [rsp+178h+var_128], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+178h+var_128] lea rdi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag lea rsi, aForServiceBegi; "{{for service begin}}\n" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_166C4: lea rdi, [rsp+178h+var_5A+1] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; lpfunc lea rsi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; __guard * call ___cxa_guard_release loc_166F7: cmp cs:_ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11, 0; `guard variable for'AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag jnz short loc_16770 lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; __guard * call ___cxa_guard_acquire cmp eax, 0 jz short loc_16770 lea rdi, [rsp+178h+var_5A] mov qword ptr [rsp+178h+var_130], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+178h+var_130] lea rdi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag lea rsi, aServiceEnd; "{{service end}}\n" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_1673D: lea rdi, [rsp+178h+var_5A] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; lpfunc lea rsi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; __guard * call ___cxa_guard_release loc_16770: mov qword ptr [rsp+178h+var_68], 0; int loc_1677C: jmp short $+2 loc_1677E: mov rdi, [rsp+178h+var_118] mov rdx, qword ptr [rsp+178h+var_68] lea rsi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong) mov qword ptr [rsp+178h+var_70], rax; int cmp qword ptr [rsp+178h+var_70], 0FFFFFFFFFFFFFFFFh jnz short loc_16813 jmp loc_16AAD mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax lea rdi, [rsp+arg_117] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; __guard * call ___cxa_guard_abort jmp loc_16AD6 mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax lea rdi, [rsp+arg_116] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() lea rdi, _ZGVZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; __guard * call ___cxa_guard_abort jmp loc_16AD6 loc_16813: mov rax, qword ptr [rsp+178h+var_70] mov qword ptr [rsp+178h+var_138], rax; int lea rdi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdx, qword ptr [rsp+178h+var_138] mov rdi, [rsp+178h+var_118] add rdx, rax lea rsi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_m; std::string::find(std::string const&,ulong) mov qword ptr [rsp+178h+var_78], rax; int cmp qword ptr [rsp+178h+var_78], 0FFFFFFFFFFFFFFFFh jnz short loc_1685D jmp loc_16AAD loc_1685D: mov rax, qword ptr [rsp+178h+var_70] mov qword ptr [rsp+178h+var_150], rax; int lea rdi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE17kServiceBeginFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag mov qword ptr [rsp+178h+var_158], rdi; int call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, qword ptr [rsp+178h+var_158] mov rcx, rax mov rax, qword ptr [rsp+178h+var_150] add rax, rcx mov qword ptr [rsp+178h+var_140], rax; int mov rax, qword ptr [rsp+178h+var_78] mov rcx, qword ptr [rsp+178h+var_70] sub rax, rcx mov qword ptr [rsp+178h+var_148], rax; int call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rcx, qword ptr [rsp+178h+var_148] mov rsi, [rsp+178h+var_118] mov rdx, qword ptr [rsp+178h+var_140] sub rcx, rax lea rdi, [rsp+178h+var_98] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) jmp short $+2 loc_168CE: lea rdi, [rsp+178h+var_B8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev; std::string::basic_string(void) mov rax, qword ptr [rsp+178h+var_22+2] add rax, 38h ; '8' mov qword ptr [rsp+178h+var_C0], rax; char mov rdi, qword ptr [rsp+178h+var_C0] call _ZNKSt6vectorIN18AimRTCodeGenerator11ServiceNodeESaIS1_EE5beginEv; std::vector<AimRTCodeGenerator::ServiceNode>::begin(void) mov qword ptr [rsp+178h+var_C8], rax; int mov rdi, qword ptr [rsp+178h+var_C0] call _ZNKSt6vectorIN18AimRTCodeGenerator11ServiceNodeESaIS1_EE3endEv; std::vector<AimRTCodeGenerator::ServiceNode>::end(void) mov qword ptr [rsp+178h+var_D0], rax; int loc_16919: lea rdi, [rsp+178h+var_C8] lea rsi, [rsp+178h+var_D0] call _ZN9__gnu_cxxeqIPKN18AimRTCodeGenerator11ServiceNodeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE xor al, 0FFh test al, 1 jnz short loc_16939 jmp loc_169FB loc_16939: lea rdi, [rsp+178h+var_C8] call _ZNK9__gnu_cxx17__normal_iteratorIPKN18AimRTCodeGenerator11ServiceNodeESt6vectorIS2_SaIS2_EEEdeEv; __gnu_cxx::__normal_iterator<AimRTCodeGenerator::ServiceNode const*,std::vector<AimRTCodeGenerator::ServiceNode>>::operator*(void) mov qword ptr [rsp+178h+var_D8], rax; int lea rdi, [rsp+178h+var_98] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv; std::string::operator std::string_view(void) mov qword ptr [rsp+178h+var_108], rax; int mov qword ptr [rsp+178h+var_100], rdx; char mov rcx, qword ptr [rsp+178h+var_D8]; int mov rsi, qword ptr [rsp+178h+var_108]; int mov rdx, qword ptr [rsp+178h+var_100]; int lea rdi, [rsp+178h+var_F8]; int call _ZN18AimRTCodeGenerator14GenServiceCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11ServiceNodeE; AimRTCodeGenerator::GenServiceCode(std::string_view,AimRTCodeGenerator::ServiceNode const&) jmp short $+2 loc_16986: lea rdi, [rsp+178h+var_B8] lea rsi, [rsp+178h+var_F8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_; std::string::operator+=(std::string const&) jmp short $+2 loc_1699D: lea rdi, [rsp+178h+var_F8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+178h+var_C8] call _ZN9__gnu_cxx17__normal_iteratorIPKN18AimRTCodeGenerator11ServiceNodeESt6vectorIS2_SaIS2_EEEppEv; __gnu_cxx::__normal_iterator<AimRTCodeGenerator::ServiceNode const*,std::vector<AimRTCodeGenerator::ServiceNode>>::operator++(void) jmp loc_16919 mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax jmp loc_16A91 mov rcx, rax mov eax, edx mov [rsp+arg_140], rcx mov [rsp+arg_13C], eax lea rdi, [rsp+arg_78]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_16A91 loc_169FB: mov rcx, qword ptr [rsp+178h+var_70] mov [rsp+178h+var_160], rcx mov rax, qword ptr [rsp+178h+var_78] sub rax, rcx mov [rsp+178h+var_168], rax lea rdi, _ZZN18AimRTCodeGenerator14GenPackageCodeB5cxx11ESt17basic_string_viewIcSt11char_traitsIcEERKNS_11PackageNodeEE15kServiceEndFlagB5cxx11; AimRTCodeGenerator::GenPackageCode(std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdx, [rsp+178h+var_168] mov rdi, [rsp+178h+var_118] mov rsi, [rsp+178h+var_160] add rdx, rax lea rcx, [rsp+178h+var_B8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmRKS4_; std::string::replace(ulong,ulong,std::string const&) jmp short $+2 loc_16A45: mov rax, qword ptr [rsp+178h+var_70] mov [rsp+178h+var_170], rax lea rdi, [rsp+178h+var_B8] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rcx, rax mov rax, [rsp+178h+var_170] add rax, rcx mov qword ptr [rsp+178h+var_68], rax lea rdi, [rsp+178h+var_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+178h+var_98]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_1677C loc_16A91: lea rdi, [rsp+arg_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+arg_D8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_16AD6 loc_16AAD: mov byte ptr [rsp+178h+var_22+1], 1 test byte ptr [rsp+178h+var_22+1], 1 jnz short loc_16AC9 mov rdi, [rsp+178h+var_118]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_16AC9: mov rax, [rsp+178h+var_120] add rsp, 178h retn loc_16AD6: mov rdi, [rsp+arg_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_16AE0: mov rdi, [rsp+arg_140] call __Unwind_Resume
void * AimRTCodeGenerator::GenPackageCode[abi:cxx11](long long a1, long long a2, long long a3, long long a4) { int *v4; // rsi long long v5; // rax long long v6; // rax int v7; // eax int v8; // edx int v9; // r8d int v10; // r9d long long v11; // rax int v13; // [rsp+0h] [rbp-178h] long long v14; // [rsp+8h] [rbp-170h] long long v15; // [rsp+10h] [rbp-168h] long long v16; // [rsp+18h] [rbp-160h] int *v17; // [rsp+20h] [rbp-158h] int v18[2]; // [rsp+28h] [rbp-150h] int v19[2]; // [rsp+30h] [rbp-148h] int v20[2]; // [rsp+38h] [rbp-140h] int v21[2]; // [rsp+40h] [rbp-138h] _WORD *v22; // [rsp+48h] [rbp-130h] char *v23; // [rsp+50h] [rbp-128h] void *v24; // [rsp+58h] [rbp-120h] void *v25; // [rsp+60h] [rbp-118h] _WORD *v26; // [rsp+68h] [rbp-110h] int v27[8]; // [rsp+80h] [rbp-F8h] BYREF int v28[2]; // [rsp+A0h] [rbp-D8h] int v29[2]; // [rsp+A8h] [rbp-D0h] BYREF int v30[2]; // [rsp+B0h] [rbp-C8h] BYREF char v31[8]; // [rsp+B8h] [rbp-C0h] int v32[6]; // [rsp+C0h] [rbp-B8h] BYREF char v33; // [rsp+D8h] [rbp-A0h] int v34[8]; // [rsp+E0h] [rbp-98h] BYREF int v35[2]; // [rsp+100h] [rbp-78h] int v36[2]; // [rsp+108h] [rbp-70h] int v37[2]; // [rsp+110h] [rbp-68h] int v38; // [rsp+118h] [rbp-60h] _WORD v39[5]; // [rsp+11Eh] [rbp-5Ah] BYREF int v40[2]; // [rsp+128h] [rbp-50h] BYREF int v41[2]; // [rsp+130h] [rbp-48h] BYREF int v42[2]; // [rsp+138h] [rbp-40h] long long v43; // [rsp+140h] [rbp-38h] int v44; // [rsp+148h] [rbp-30h] _WORD v45[5]; // [rsp+156h] [rbp-22h] BYREF _QWORD v46[3]; // [rsp+160h] [rbp-18h] BYREF v25 = (void *)a1; v24 = (void *)a1; v46[2] = a1; v46[0] = a2; v46[1] = a3; *(_QWORD *)&v45[1] = a4; HIBYTE(v45[0]) = 0; v26 = v45; std::allocator<char>::allocator(v45, a2); std::string::basic_string<std::string_view,void>(a1, v46, v45); std::allocator<char>::~allocator(v45); *(_QWORD *)v42 = *(_QWORD *)&v45[1]; *(_QWORD *)v41 = std::unordered_map<std::string,std::string>::begin(*(_QWORD *)&v45[1]); *(_QWORD *)v40 = std::unordered_map<std::string,std::string>::end(*(_QWORD *)v42); while ( 1 ) { v4 = v40; if ( (std::__detail::operator==(v41, v40) & 1) != 0 ) break; *(_QWORD *)&v39[1] = std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>::operator*(v41); ReplaceString(a1, *(long long *)&v39[1], *(_QWORD *)&v39[1] + 32LL); std::__detail::_Node_const_iterator<std::pair<std::string const,std::string>,false,true>::operator++(v41); } if ( !(_BYTE)`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]) ) { v23 = (char *)v39 + 1; std::allocator<char>::allocator((char *)v39 + 1, v40); std::string::basic_string<std::allocator<char>>( (long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11], (long long)"{{for service begin}}\n", (long long)v39 + 1); std::allocator<char>::~allocator((char *)v39 + 1); v4 = &AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]; __cxa_atexit( std::string::~string, &AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]); } if ( !(_BYTE)`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11]) ) { v22 = v39; std::allocator<char>::allocator(v39, v4); std::string::basic_string<std::allocator<char>>( (long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11], (long long)"{{service end}}\n", (long long)v39); std::allocator<char>::~allocator(v39); __cxa_atexit( std::string::~string, &AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11]); } *(_QWORD *)v37 = 0LL; while ( 1 ) { *(_QWORD *)v36 = std::string::find( (long long)v25, (long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11], *(long long *)v37); if ( *(_QWORD *)v36 == -1LL ) break; *(_QWORD *)v21 = *(_QWORD *)v36; v5 = std::string::size((long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]); *(_QWORD *)v35 = std::string::find( (long long)v25, (long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11], v5 + *(_QWORD *)v21); if ( *(_QWORD *)v35 == -1LL ) break; *(_QWORD *)v18 = *(_QWORD *)v36; v17 = &AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]; *(_QWORD *)v20 = std::string::size((long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]) + *(_QWORD *)v18; *(_QWORD *)v19 = *(_QWORD *)v35 - *(_QWORD *)v36; v6 = std::string::size((long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceBeginFlag[abi:cxx11]); std::string::substr(v34, v25, *(_QWORD *)v20, *(_QWORD *)v19 - v6); std::string::basic_string(v32); *(_QWORD *)v31 = *(_QWORD *)&v45[1] + 56LL; *(_QWORD *)v30 = std::vector<AimRTCodeGenerator::ServiceNode>::begin(*(_QWORD *)&v45[1] + 56LL); *(_QWORD *)v29 = std::vector<AimRTCodeGenerator::ServiceNode>::end(*(_QWORD *)v31); while ( (__gnu_cxx::operator==<AimRTCodeGenerator::ServiceNode const*,std::vector<AimRTCodeGenerator::ServiceNode>>( v30, v29) & 1) == 0 ) { *(_QWORD *)v28 = __gnu_cxx::__normal_iterator<AimRTCodeGenerator::ServiceNode const*,std::vector<AimRTCodeGenerator::ServiceNode>>::operator*(v30); v7 = std::string::operator std::string_view(v34); AimRTCodeGenerator::GenServiceCode[abi:cxx11]( (int)v27, v7, v8, v28[0], v9, v10, v13, v14, v15, v16, (int)v17, v18[0], v19[0], v20[0], v21[0], (int)v22, (int)v23, v24, (int)v25, (int)v26, v7, v8, v27[0], v27[2], v27[4], v27[6], v28[0], v29[0], v30[0], v31[0], v32[0], v32[2], v32[4], v33, v34[0], v34[2], v34[4], v34[6], v35[0], v36[0], v37[0], v38, *(int *)&v39[1], v40[0], v41[0], v42[0], v43, v44); std::string::operator+=(v32, v27); std::string::~string(v27); __gnu_cxx::__normal_iterator<AimRTCodeGenerator::ServiceNode const*,std::vector<AimRTCodeGenerator::ServiceNode>>::operator++(v30); } v16 = *(_QWORD *)v36; v15 = *(_QWORD *)v35 - *(_QWORD *)v36; v11 = std::string::size((long long)&AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::string_view,AimRTCodeGenerator::PackageNode const&)::kServiceEndFlag[abi:cxx11]); std::string::replace((long long)v25, v16, v11 + v15, (long long)v32); v14 = *(_QWORD *)v36; *(_QWORD *)v37 = std::string::size((long long)v32) + v14; std::string::~string(v32); std::string::~string(v34); } return v24; }
GenPackageCode[abi:cxx11]: SUB RSP,0x178 MOV qword ptr [RSP + 0x60],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x170],RDI MOV qword ptr [RSP + 0x160],RSI MOV qword ptr [RSP + 0x168],RDX MOV qword ptr [RSP + 0x158],RCX MOV byte ptr [RSP + 0x157],0x0 LEA RDI,[RSP + 0x156] MOV qword ptr [RSP + 0x68],RDI CALL 0x00113760 MOV RDI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x68] LAB_00116588: LEA RSI,[RSP + 0x160] CALL 0x0011c250 JMP 0x00116597 LAB_00116597: LEA RDI,[RSP + 0x156] CALL 0x001134d0 MOV RAX,qword ptr [RSP + 0x158] MOV qword ptr [RSP + 0x138],RAX MOV RDI,qword ptr [RSP + 0x138] CALL 0x0011c2d0 MOV qword ptr [RSP + 0x130],RAX MOV RDI,qword ptr [RSP + 0x138] CALL 0x0011c300 MOV qword ptr [RSP + 0x128],RAX LAB_001165de: LEA RDI,[RSP + 0x130] LEA RSI,[RSP + 0x128] CALL 0x0011c330 XOR AL,0xff TEST AL,0x1 JNZ 0x001165fe JMP 0x0011667e LAB_001165fe: LEA RDI,[RSP + 0x130] CALL 0x0011c350 MOV RDI,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x120],RAX MOV RSI,qword ptr [RSP + 0x120] MOV RDX,RSI ADD RDX,0x20 LAB_00116627: CALL 0x00114420 JMP 0x0011662e LAB_0011662e: JMP 0x00116630 LAB_00116630: LEA RDI,[RSP + 0x130] CALL 0x0011c370 JMP 0x001165de LAB_0011667e: CMP byte ptr [0x0037d098],0x0 JNZ 0x001166f7 LEA RDI,[0x37d098] CALL 0x00113770 CMP EAX,0x0 JZ 0x001166f7 LEA RDI,[RSP + 0x11f] MOV qword ptr [RSP + 0x50],RDI CALL 0x00113760 MOV RDX,qword ptr [RSP + 0x50] LAB_001166af: LEA RDI,[0x37d078] LEA RSI,[0x2e71b0] CALL 0x001158d0 JMP 0x001166c4 LAB_001166c4: LEA RDI,[RSP + 0x11f] CALL 0x001134d0 LEA RDI,[0x114900] LEA RSI,[0x37d078] LEA RDX,[0x37c428] CALL 0x001133c0 LEA RDI,[0x37d098] CALL 0x001132e0 LAB_001166f7: CMP byte ptr [0x0037d0c0],0x0 JNZ 0x00116770 LEA RDI,[0x37d0c0] CALL 0x00113770 CMP EAX,0x0 JZ 0x00116770 LEA RDI,[RSP + 0x11e] MOV qword ptr [RSP + 0x48],RDI CALL 0x00113760 MOV RDX,qword ptr [RSP + 0x48] LAB_00116728: LEA RDI,[0x37d0a0] LEA RSI,[0x2e71c7] CALL 0x001158d0 JMP 0x0011673d LAB_0011673d: LEA RDI,[RSP + 0x11e] CALL 0x001134d0 LEA RDI,[0x114900] LEA RSI,[0x37d0a0] LEA RDX,[0x37c428] CALL 0x001133c0 LEA RDI,[0x37d0c0] CALL 0x001132e0 LAB_00116770: MOV qword ptr [RSP + 0x110],0x0 LAB_0011677c: JMP 0x0011677e LAB_0011677e: MOV RDI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x110] LEA RSI,[0x37d078] CALL 0x00114700 MOV qword ptr [RSP + 0x108],RAX CMP qword ptr [RSP + 0x108],-0x1 JNZ 0x00116813 JMP 0x00116aad LAB_00116813: MOV RAX,qword ptr [RSP + 0x108] MOV qword ptr [RSP + 0x40],RAX LEA RDI,[0x37d078] CALL 0x001147d0 MOV RDX,qword ptr [RSP + 0x40] MOV RDI,qword ptr [RSP + 0x60] ADD RDX,RAX LEA RSI,[0x37d0a0] CALL 0x00114700 MOV qword ptr [RSP + 0x100],RAX CMP qword ptr [RSP + 0x100],-0x1 JNZ 0x0011685d JMP 0x00116aad LAB_0011685d: MOV RAX,qword ptr [RSP + 0x108] MOV qword ptr [RSP + 0x28],RAX LEA RDI,[0x37d078] MOV qword ptr [RSP + 0x20],RDI CALL 0x001147d0 MOV RDI,qword ptr [RSP + 0x20] MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x28] ADD RAX,RCX MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x100] MOV RCX,qword ptr [RSP + 0x108] SUB RAX,RCX MOV qword ptr [RSP + 0x30],RAX CALL 0x001147d0 MOV RCX,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x38] SUB RCX,RAX LAB_001168bf: LEA RDI,[RSP + 0xe0] CALL 0x00114820 JMP 0x001168ce LAB_001168ce: LEA RDI,[RSP + 0xc0] CALL 0x00117eb0 MOV RAX,qword ptr [RSP + 0x158] ADD RAX,0x38 MOV qword ptr [RSP + 0xb8],RAX MOV RDI,qword ptr [RSP + 0xb8] CALL 0x0011c3a0 MOV qword ptr [RSP + 0xb0],RAX MOV RDI,qword ptr [RSP + 0xb8] CALL 0x0011c3d0 MOV qword ptr [RSP + 0xa8],RAX LAB_00116919: LEA RDI,[RSP + 0xb0] LEA RSI,[RSP + 0xa8] CALL 0x0011c400 XOR AL,0xff TEST AL,0x1 JNZ 0x00116939 JMP 0x001169fb LAB_00116939: LEA RDI,[RSP + 0xb0] CALL 0x0011c440 MOV qword ptr [RSP + 0xa0],RAX LEA RDI,[RSP + 0xe0] CALL 0x0011ca10 MOV qword ptr [RSP + 0x70],RAX MOV qword ptr [RSP + 0x78],RDX MOV RCX,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] LAB_00116977: LEA RDI,[RSP + 0x80] CALL 0x0011c450 JMP 0x00116986 LAB_00116986: LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0x80] CALL 0x00119340 JMP 0x0011699d LAB_0011699d: LEA RDI,[RSP + 0x80] CALL 0x00114900 LEA RDI,[RSP + 0xb0] CALL 0x0011ca60 JMP 0x00116919 LAB_001169fb: MOV RCX,qword ptr [RSP + 0x108] MOV qword ptr [RSP + 0x18],RCX MOV RAX,qword ptr [RSP + 0x100] SUB RAX,RCX MOV qword ptr [RSP + 0x10],RAX LEA RDI,[0x37d0a0] CALL 0x001147d0 MOV RDX,qword ptr [RSP + 0x10] MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x18] ADD RDX,RAX LAB_00116a36: LEA RCX,[RSP + 0xc0] CALL 0x00114760 LAB_00116a43: JMP 0x00116a45 LAB_00116a45: MOV RAX,qword ptr [RSP + 0x108] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0xc0] CALL 0x001147d0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] ADD RAX,RCX MOV qword ptr [RSP + 0x110],RAX LEA RDI,[RSP + 0xc0] CALL 0x00114900 LEA RDI,[RSP + 0xe0] CALL 0x00114900 JMP 0x0011677c LAB_00116aad: MOV byte ptr [RSP + 0x157],0x1 TEST byte ptr [RSP + 0x157],0x1 JNZ 0x00116ac9 MOV RDI,qword ptr [RSP + 0x60] CALL 0x00114900 LAB_00116ac9: MOV RAX,qword ptr [RSP + 0x58] ADD RSP,0x178 RET
/* WARNING: Removing unreachable block (ram,0x00116abf) */ /* AimRTCodeGenerator::GenPackageCode[abi:cxx11](std::basic_string_view<char, std::char_traits<char> >, AimRTCodeGenerator::PackageNode const&) */ string * AimRTCodeGenerator::GenPackageCode_abi_cxx11_ (string *param_1,int8 param_2,int8 param_3, unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *param_4) { byte bVar1; int iVar2; ulong uVar3; long lVar4; long lVar5; int1 auVar6 [16]; string local_f8 [32]; int8 local_d8; int8 local_d0; int8 local_c8; vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>> *local_c0; string local_b8 [32]; string local_98 [32]; long local_78; ulong local_70; ulong local_68; allocator local_5a; allocator local_59; string *local_58; int8 local_50; int8 local_48; unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *local_40; allocator local_22; int1 local_21; unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *local_20; int8 local_18; int8 local_10; string *local_8; local_21 = 0; local_20 = param_4; local_18 = param_2; local_10 = param_3; local_8 = param_1; std::allocator<char>::allocator(); /* try { // try from 00116588 to 00116594 has its CatchHandler @ 0011663f */ std::__cxx11::string::string<std::basic_string_view<char,std::char_traits<char>>,void> (param_1,(basic_string_view *)&local_18,&local_22); std::allocator<char>::~allocator((allocator<char> *)&local_22); local_40 = local_20; local_48 = std:: unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::begin(local_20); local_50 = std:: unordered_map<std::__cxx11::string,std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::end(); while (bVar1 = std::__detail::operator== ((_Node_iterator_base *)&local_48,(_Node_iterator_base *)&local_50), ((bVar1 ^ 0xff) & 1) != 0) { local_58 = (string *) std::__detail:: _Node_const_iterator<std::pair<std::__cxx11::string_const,std::__cxx11::string>,false,true> ::operator*((_Node_const_iterator<std::pair<std::__cxx11::string_const,std::__cxx11::string>,false,true> *)&local_48); /* try { // try from 00116627 to 0011662b has its CatchHandler @ 00116665 */ ReplaceString(param_1,local_58,local_58 + 0x20); std::__detail:: _Node_const_iterator<std::pair<std::__cxx11::string_const,std::__cxx11::string>,false,true>:: operator++((_Node_const_iterator<std::pair<std::__cxx11::string_const,std::__cxx11::string>,false,true> *)&local_48); } if ((GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_ == '\0') && (iVar2 = __cxa_guard_acquire(&GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_), iVar2 != 0)) { std::allocator<char>::allocator(); /* try { // try from 001166af to 001166c1 has its CatchHandler @ 001167af */ std::__cxx11::string::string<std::allocator<char>> ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_,"{{for service begin}}\n",&local_59); std::allocator<char>::~allocator((allocator<char> *)&local_59); __cxa_atexit(std::__cxx11::string::~string, GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_,&__dso_handle); __cxa_guard_release(&GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_); } if ((GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_ == '\0') && (iVar2 = __cxa_guard_acquire(&GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_), iVar2 != 0)) { std::allocator<char>::allocator(); /* try { // try from 00116728 to 0011673a has its CatchHandler @ 001167e1 */ std::__cxx11::string::string<std::allocator<char>> ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_,"{{service end}}\n",&local_5a); std::allocator<char>::~allocator((allocator<char> *)&local_5a); __cxa_atexit(std::__cxx11::string::~string, GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_,&__dso_handle); __cxa_guard_release(&GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_); } local_68 = 0; while( true ) { uVar3 = std::__cxx11::string::find (param_1,(string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_,local_68); if (uVar3 == 0xffffffffffffffff) { return param_1; } local_70 = uVar3; lVar4 = std::__cxx11::string::size ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_); local_78 = std::__cxx11::string::find (param_1,(string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_,uVar3 + lVar4); if (local_78 == -1) break; std::__cxx11::string::size ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_); std::__cxx11::string::size ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceBeginFlag_abi_cxx11_); /* try { // try from 001168bf to 001168cb has its CatchHandler @ 00116665 */ std::__cxx11::string::substr((ulong)local_98,(ulong)param_1); std::__cxx11::string::string(local_b8); local_c0 = (vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>> *)(local_20 + 0x38); local_c8 = std:: vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>> ::begin(local_c0); local_d0 = std:: vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>> ::end(local_c0); while (bVar1 = _ZN9__gnu_cxxeqIPKN18AimRTCodeGenerator11ServiceNodeESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE (&local_c8,&local_d0), uVar3 = local_70, ((bVar1 ^ 0xff) & 1) != 0) { local_d8 = __gnu_cxx:: __normal_iterator<AimRTCodeGenerator::ServiceNode_const*,std::vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>>> ::operator*((__normal_iterator<AimRTCodeGenerator::ServiceNode_const*,std::vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>>> *)&local_c8); auVar6 = std::__cxx11::string::operator_cast_to_basic_string_view(local_98); /* try { // try from 00116977 to 00116983 has its CatchHandler @ 001169bc */ GenServiceCode_abi_cxx11_(local_f8,auVar6._0_8_,auVar6._8_8_,local_d8); /* try { // try from 00116986 to 0011699a has its CatchHandler @ 001169d5 */ std::__cxx11::string::operator+=(local_b8,local_f8); std::__cxx11::string::~string(local_f8); __gnu_cxx:: __normal_iterator<AimRTCodeGenerator::ServiceNode_const*,std::vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>>> ::operator++((__normal_iterator<AimRTCodeGenerator::ServiceNode_const*,std::vector<AimRTCodeGenerator::ServiceNode,std::allocator<AimRTCodeGenerator::ServiceNode>>> *)&local_c8); } lVar4 = local_78 - local_70; lVar5 = std::__cxx11::string::size ((string *) GenPackageCode[abi:cxx11](std::basic_string_view<char,std::char_traits<char>>,AimRTCodeGenerator::PackageNode_const&) ::kServiceEndFlag_abi_cxx11_); /* try { // try from 00116a36 to 00116a42 has its CatchHandler @ 001169bc */ std::__cxx11::string::replace(param_1,uVar3,lVar4 + lVar5,local_b8); uVar3 = local_70; lVar4 = std::__cxx11::string::size(local_b8); local_68 = uVar3 + lVar4; std::__cxx11::string::~string(local_b8); std::__cxx11::string::~string(local_98); } return param_1; }
41,933
FindPeaksCppTest_DistanceFiltering_Test::TestBody()
giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp
TEST_F(FindPeaksCppTest, DistanceFiltering) { PeakConditions conditions; conditions.set_distance(3); // Peaks must be at least 3 samples apart auto peaks = find_peaks(simple_signal, conditions); ASSERT_EQ(3, peaks.size()); EXPECT_EQ(1, peaks[0].peak); // First peak at index 1 EXPECT_EQ(5, peaks[1].peak); // Second peak at index 5, the peak in index 3 is skipped EXPECT_EQ(9, peaks[2].peak); // Second peak at index 9, the peak in index 7 is skipped }
O3
cpp
FindPeaksCppTest_DistanceFiltering_Test::TestBody(): pushq %rbx subq $0xc0, %rsp leaq 0x10(%rdi), %rsi movaps 0x350a3(%rip), %xmm0 # 0x40010 leaq 0x38(%rsp), %rdx movups %xmm0, 0x8(%rdx) movups %xmm0, 0x20(%rdx) movq $0x3, 0x30(%rdx) movups %xmm0, 0x40(%rdx) movups %xmm0, 0x58(%rdx) xorl %eax, %eax movq %rax, 0x68(%rdx) movabsq $0x3fe0000000000000, %rcx # imm = 0x3FE0000000000000 movq %rcx, 0x70(%rdx) movq %rax, 0x78(%rdx) movq $-0x1, 0x80(%rdx) leaq 0x20(%rsp), %rbx movq %rbx, %rdi callq 0x3d274 leaq 0x8(%rsp), %rcx movl $0x3, (%rcx) movq 0x8(%rbx), %rax subq (%rbx), %rax sarq $0x4, %rax movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7 imulq %rax, %rdx movq %rsp, %r8 movq %rdx, (%r8) leaq 0x351c3(%rip), %rsi # 0x401ae leaq 0x3547d(%rip), %rdx # 0x4046f leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) je 0xb05f movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb017 leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x1, (%rcx) movq 0x20(%rsp), %r8 leaq 0x37317(%rip), %rsi # 0x42343 leaq 0x3516d(%rip), %rdx # 0x401a0 leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb0f2 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb0aa movq (%rax), %r8 jmp 0xb0b1 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb076 movq (%rax), %r8 jmp 0xb07d leaq 0x38301(%rip), %r8 # 0x4337e leaq 0x350c0(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x2, %esi movl $0x2f, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e jmp 0xb223 leaq 0x382cd(%rip), %r8 # 0x4337e leaq 0x3508c(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x30, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb0f2 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb106 leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x5, (%rcx) movq 0x20(%rsp), %r8 addq $0x70, %r8 leaq 0x351df(%rip), %rsi # 0x402fe leaq 0x3508a(%rip), %rdx # 0x401b0 leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb196 movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb14e movq (%rax), %r8 jmp 0xb155 leaq 0x38229(%rip), %r8 # 0x4337e leaq 0x34fe8(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x31, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb196 movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb1aa leaq 0x18(%rsp), %rdi callq 0xdb84 movq %rsp, %rcx movl $0x9, (%rcx) movl $0xe0, %r8d addq 0x20(%rsp), %r8 leaq 0x35017(%rip), %rsi # 0x401dc leaq 0x34ff2(%rip), %rdx # 0x401be leaq 0x10(%rsp), %rdi callq 0xdf24 cmpb $0x0, 0x10(%rsp) jne 0xb23c movq %rsp, %rdi callq 0x1c968 movq 0x18(%rsp), %rax testq %rax, %rax je 0xb1f4 movq (%rax), %r8 jmp 0xb1fb leaq 0x38183(%rip), %r8 # 0x4337e leaq 0x34f42(%rip), %rdx # 0x40144 leaq 0x8(%rsp), %rdi movl $0x1, %esi movl $0x32, %ecx callq 0x18b88 leaq 0x8(%rsp), %rdi movq %rsp, %rsi callq 0x1651e leaq 0x8(%rsp), %rdi callq 0x18bf4 movq (%rsp), %rdi testq %rdi, %rdi je 0xb23c movq (%rdi), %rax callq *0x8(%rax) movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb250 leaq 0x18(%rsp), %rdi callq 0xdb84 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0xb267 movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x84e0 addq $0xc0, %rsp popq %rbx retq jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb286 jmp 0xb295 jmp 0xb2a9 jmp 0xb2c4 jmp 0xb2c4 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x18bf4 jmp 0xb298 movq %rax, %rbx movq (%rsp), %rdi testq %rdi, %rdi je 0xb2ac movq (%rdi), %rax callq *0x8(%rax) jmp 0xb2ac movq %rax, %rbx movq 0x18(%rsp), %rsi testq %rsi, %rsi je 0xb2c7 leaq 0x18(%rsp), %rdi callq 0xdb84 jmp 0xb2c7 jmp 0xb2c4 movq %rax, %rbx movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0xb2de movq 0x30(%rsp), %rsi subq %rdi, %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN39FindPeaksCppTest_DistanceFiltering_Test8TestBodyEv: push rbx; int sub rsp, 0C0h lea rsi, [rdi+10h]; int movaps xmm0, cs:xmmword_40010 lea rdx, [rsp+0C8h+var_90]; int movups xmmword ptr [rdx+8], xmm0 movups xmmword ptr [rdx+20h], xmm0 mov qword ptr [rdx+30h], 3 movups xmmword ptr [rdx+40h], xmm0 movups xmmword ptr [rdx+58h], xmm0 xor eax, eax mov [rdx+68h], rax mov rcx, 3FE0000000000000h; int mov [rdx+70h], rcx mov [rdx+78h], rax mov qword ptr [rdx+80h], 0FFFFFFFFFFFFFFFFh lea rbx, [rsp+0C8h+var_A8] mov rdi, rbx; int call _ZN9findPeaks10find_peaksERKSt6vectorIdSaIdEENS_14PeakConditionsE; findPeaks::find_peaks(std::vector<double> const&,findPeaks::PeakConditions) lea rcx, [rsp+0C8h+var_C0] mov dword ptr [rcx], 3 mov rax, [rbx+8] sub rax, [rbx] sar rax, 4 mov rdx, 6DB6DB6DB6DB6DB7h imul rdx, rax mov r8, rsp mov [r8], rdx lea rsi, a3; "3" lea rdx, aExpectedPeaksS+9; "peaks.size()" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jz short loc_B05F mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B017 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B017: mov rcx, rsp mov dword ptr [rcx], 1 mov r8, [rsp+0C8h+var_A8] lea rsi, aFcntlPipeFd1FS+22h; "1" lea rdx, aPeaks0Peak; "peaks[0].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz loc_B0F2 mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B0AA mov r8, [rax] jmp short loc_B0B1 loc_B05F: mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B076 mov r8, [rax] jmp short loc_B07D loc_B076: lea r8, aSFromSSMsTotal+1Ah; "" loc_B07D: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 2 mov ecx, 2Fh ; '/' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) jmp loc_B223 loc_B0AA: lea r8, aSFromSSMsTotal+1Ah; "" loc_B0B1: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 30h ; '0' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B0F2 mov rax, [rdi] call qword ptr [rax+8] loc_B0F2: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B106 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B106: mov rcx, rsp mov dword ptr [rcx], 5 mov r8, [rsp+0C8h+var_A8] add r8, 70h ; 'p' lea rsi, a15+2; "5" lea rdx, aPeaks1Peak; "peaks[1].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz short loc_B196 mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B14E mov r8, [rax] jmp short loc_B155 loc_B14E: lea r8, aSFromSSMsTotal+1Ah; "" loc_B155: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 31h ; '1' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B196 mov rax, [rdi] call qword ptr [rax+8] loc_B196: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B1AA lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B1AA: mov rcx, rsp mov dword ptr [rcx], 9 mov r8d, 0E0h add r8, [rsp+0C8h+var_A8] lea rsi, a9; "9" lea rdx, aPeaks2Peak; "peaks[2].peak" lea rdi, [rsp+0C8h+var_B8]; this call _ZN7testing8internal11CmpHelperEQIimEENS_15AssertionResultEPKcS4_RKT_RKT0_; testing::internal::CmpHelperEQ<int,ulong>(char const*,char const*,int const&,ulong const&) cmp [rsp+0C8h+var_B8], 0 jnz short loc_B23C mov rdi, rsp; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rsp+0C8h+var_B0] test rax, rax jz short loc_B1F4 mov r8, [rax] jmp short loc_B1FB loc_B1F4: lea r8, aSFromSSMsTotal+1Ah; "" loc_B1FB: lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdi, [rsp+0C8h+var_C0] mov esi, 1 mov ecx, 32h ; '2' call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rsp+0C8h+var_C0] mov rsi, rsp call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) loc_B223: lea rdi, [rsp+0C8h+var_C0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rsp+0C8h+var_C8] test rdi, rdi jz short loc_B23C mov rax, [rdi] call qword ptr [rax+8] loc_B23C: mov rsi, [rsp+0C8h+var_B0] test rsi, rsi jz short loc_B250 lea rdi, [rsp+0C8h+var_B0] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_B250: mov rdi, [rsp+0C8h+var_A8]; void * test rdi, rdi jz short loc_B267 mov rsi, [rsp+0C8h+var_98] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B267: add rsp, 0C0h pop rbx retn jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B286 jmp short loc_B295 jmp short loc_B2A9 jmp short loc_B2C4 jmp short loc_B2C4 loc_B286: mov rbx, rax lea rdi, [rsp+arg_0]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() jmp short loc_B298 loc_B295: mov rbx, rax loc_B298: mov rdi, [rsp+0] test rdi, rdi jz short loc_B2AC mov rax, [rdi] call qword ptr [rax+8] jmp short loc_B2AC loc_B2A9: mov rbx, rax loc_B2AC: mov rsi, [rsp+arg_10] test rsi, rsi jz short loc_B2C7 lea rdi, [rsp+arg_10] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) jmp short loc_B2C7 jmp short $+2 loc_B2C4: mov rbx, rax loc_B2C7: mov rdi, [rsp+arg_18]; void * test rdi, rdi jz short loc_B2DE mov rsi, [rsp+arg_28] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B2DE: mov rdi, rbx call __Unwind_Resume
TestBody: PUSH RBX SUB RSP,0xc0 LEA RSI,[RDI + 0x10] MOVAPS XMM0,xmmword ptr [0x00140010] LEA RDX,[RSP + 0x38] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOVUPS xmmword ptr [RDX + 0x20],XMM0 MOV qword ptr [RDX + 0x30],0x3 MOVUPS xmmword ptr [RDX + 0x40],XMM0 MOVUPS xmmword ptr [RDX + 0x58],XMM0 XOR EAX,EAX MOV qword ptr [RDX + 0x68],RAX MOV RCX,0x3fe0000000000000 MOV qword ptr [RDX + 0x70],RCX MOV qword ptr [RDX + 0x78],RAX MOV qword ptr [RDX + 0x80],-0x1 LEA RBX,[RSP + 0x20] MOV RDI,RBX CALL 0x0013d274 LEA RCX,[RSP + 0x8] MOV dword ptr [RCX],0x3 MOV RAX,qword ptr [RBX + 0x8] SUB RAX,qword ptr [RBX] SAR RAX,0x4 MOV RDX,0x6db6db6db6db6db7 IMUL RDX,RAX MOV R8,RSP MOV qword ptr [R8],RDX LAB_0010afe4: LEA RSI,[0x1401ae] LEA RDX,[0x14046f] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JZ 0x0010b05f MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b017 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b017: MOV RCX,RSP MOV dword ptr [RCX],0x1 MOV R8,qword ptr [RSP + 0x20] LAB_0010b025: LEA RSI,[0x142343] LEA RDX,[0x1401a0] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b0f2 LAB_0010b048: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b0aa MOV R8,qword ptr [RAX] JMP 0x0010b0b1 LAB_0010b05f: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b076 MOV R8,qword ptr [RAX] JMP 0x0010b07d LAB_0010b076: LEA R8,[0x14337e] LAB_0010b07d: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x2 MOV ECX,0x2f CALL 0x00118b88 LAB_0010b098: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e JMP 0x0010b223 LAB_0010b0aa: LEA R8,[0x14337e] LAB_0010b0b1: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x30 CALL 0x00118b88 LAB_0010b0cc: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b0d9: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b0f2 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b0f2: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b106 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b106: MOV RCX,RSP MOV dword ptr [RCX],0x5 MOV R8,qword ptr [RSP + 0x20] ADD R8,0x70 LAB_0010b118: LEA RSI,[0x1402fe] LEA RDX,[0x1401b0] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b196 LAB_0010b137: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b14e MOV R8,qword ptr [RAX] JMP 0x0010b155 LAB_0010b14e: LEA R8,[0x14337e] LAB_0010b155: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x31 CALL 0x00118b88 LAB_0010b170: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b17d: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b196 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b196: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b1aa LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b1aa: MOV RCX,RSP MOV dword ptr [RCX],0x9 MOV R8D,0xe0 ADD R8,qword ptr [RSP + 0x20] LAB_0010b1be: LEA RSI,[0x1401dc] LEA RDX,[0x1401be] LEA RDI,[RSP + 0x10] CALL 0x0010df24 CMP byte ptr [RSP + 0x10],0x0 JNZ 0x0010b23c LAB_0010b1dd: MOV RDI,RSP CALL 0x0011c968 MOV RAX,qword ptr [RSP + 0x18] TEST RAX,RAX JZ 0x0010b1f4 MOV R8,qword ptr [RAX] JMP 0x0010b1fb LAB_0010b1f4: LEA R8,[0x14337e] LAB_0010b1fb: LEA RDX,[0x140144] LEA RDI,[RSP + 0x8] MOV ESI,0x1 MOV ECX,0x32 CALL 0x00118b88 LAB_0010b216: LEA RDI,[RSP + 0x8] MOV RSI,RSP CALL 0x0011651e LAB_0010b223: LEA RDI,[RSP + 0x8] CALL 0x00118bf4 MOV RDI,qword ptr [RSP] TEST RDI,RDI JZ 0x0010b23c MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0010b23c: MOV RSI,qword ptr [RSP + 0x18] TEST RSI,RSI JZ 0x0010b250 LEA RDI,[RSP + 0x18] CALL 0x0010db84 LAB_0010b250: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0010b267 MOV RSI,qword ptr [RSP + 0x30] SUB RSI,RDI CALL 0x001084e0 LAB_0010b267: ADD RSP,0xc0 POP RBX RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* FindPeaksCppTest_DistanceFiltering_Test::TestBody() */ void __thiscall FindPeaksCppTest_DistanceFiltering_Test::TestBody(FindPeaksCppTest_DistanceFiltering_Test *this) { char *pcVar1; long *local_c8; int local_c0 [2]; internal local_b8 [8]; string *local_b0; ulong *local_a8; long local_a0; long local_98; int4 local_88; int4 uStack_84; int4 uStack_80; int4 uStack_7c; int4 local_70; int4 uStack_6c; int4 uStack_68; int4 uStack_64; int8 local_60; int4 local_50; int4 uStack_4c; int4 uStack_48; int4 uStack_44; int4 local_38; int4 uStack_34; int4 uStack_30; int4 uStack_2c; int8 local_28; int8 local_20; int8 local_18; int8 local_10; local_88 = _DAT_00140010; uStack_84 = _UNK_00140014; uStack_80 = _UNK_00140018; uStack_7c = _UNK_0014001c; local_70 = _DAT_00140010; uStack_6c = _UNK_00140014; uStack_68 = _UNK_00140018; uStack_64 = _UNK_0014001c; local_60 = 3; local_50 = _DAT_00140010; uStack_4c = _UNK_00140014; uStack_48 = _UNK_00140018; uStack_44 = _UNK_0014001c; local_38 = _DAT_00140010; uStack_34 = _UNK_00140014; uStack_30 = _UNK_00140018; uStack_2c = _UNK_0014001c; local_28 = 0; local_20 = 0x3fe0000000000000; local_18 = 0; local_10 = 0xffffffffffffffff; findPeaks::find_peaks((findPeaks *)&local_a8,this + 0x10); local_c0[0] = 3; local_c8 = (long *)((local_a0 - (long)local_a8 >> 4) * 0x6db6db6db6db6db7); /* try { // try from 0010afe4 to 0010affb has its CatchHandler @ 0010b2c4 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"3","peaks.size()",local_c0,(ulong *)&local_c8); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b05f to 0010b066 has its CatchHandler @ 0010b2a9 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b07d to 0010b097 has its CatchHandler @ 0010b295 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,2, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x2f,pcVar1); /* try { // try from 0010b098 to 0010b0a4 has its CatchHandler @ 0010b286 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); } else { if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,1); /* try { // try from 0010b025 to 0010b03c has its CatchHandler @ 0010b2c2 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"1","peaks[0].peak",(int *)&local_c8,local_a8); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b048 to 0010b04f has its CatchHandler @ 0010b280 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b0b1 to 0010b0cb has its CatchHandler @ 0010b27e */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x30,pcVar1); /* try { // try from 0010b0cc to 0010b0d8 has its CatchHandler @ 0010b27c */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } } if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,5); /* try { // try from 0010b118 to 0010b12f has its CatchHandler @ 0010b284 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"5","peaks[1].peak",(int *)&local_c8,local_a8 + 0xe); if (local_b8[0] == (internal)0x0) { /* try { // try from 0010b137 to 0010b13e has its CatchHandler @ 0010b27a */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b155 to 0010b16f has its CatchHandler @ 0010b278 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x31,pcVar1); /* try { // try from 0010b170 to 0010b17c has its CatchHandler @ 0010b276 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } } if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } local_c8 = (long *)CONCAT44(local_c8._4_4_,9); /* try { // try from 0010b1be to 0010b1d5 has its CatchHandler @ 0010b282 */ testing::internal::CmpHelperEQ<int,unsigned_long> (local_b8,"9","peaks[2].peak",(int *)&local_c8,local_a8 + 0x1c); if (local_b8[0] != (internal)0x0) goto LAB_0010b23c; /* try { // try from 0010b1dd to 0010b1e4 has its CatchHandler @ 0010b274 */ testing::Message::Message((Message *)&local_c8); if (local_b0 == (string *)0x0) { pcVar1 = ""; } else { pcVar1 = *(char **)local_b0; } /* try { // try from 0010b1fb to 0010b215 has its CatchHandler @ 0010b272 */ testing::internal::AssertHelper::AssertHelper ((AssertHelper *)local_c0,1, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/tests/test_find_peaks_cpp.cpp" ,0x32,pcVar1); /* try { // try from 0010b216 to 0010b222 has its CatchHandler @ 0010b270 */ testing::internal::AssertHelper::operator=((AssertHelper *)local_c0,(Message *)&local_c8); } testing::internal::AssertHelper::~AssertHelper((AssertHelper *)local_c0); if (local_c8 != (long *)0x0) { (**(code **)(*local_c8 + 8))(); } LAB_0010b23c: if (local_b0 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_b0,local_b0); } if (local_a8 != (ulong *)0x0) { operator_delete(local_a8,local_98 - (long)local_a8); } return; }
41,934
u07toa_shift
bluesky950520[P]quickjs/tests/test_conv.c
size_t u07toa_shift(char dest[minimum_length(8)], uint32_t n, size_t len) { size_t i; dest += len; dest[7] = '\0'; for (i = 7; i-- > 1;) { uint32_t quo = n % 10; n /= 10; dest[i] = (char)('0' + quo); } dest[i] = (char)('0' + n); return len + 7; }
O0
c
u07toa_shift: movq %rdi, -0x8(%rsp) movl %esi, -0xc(%rsp) movq %rdx, -0x18(%rsp) movq -0x18(%rsp), %rax addq -0x8(%rsp), %rax movq %rax, -0x8(%rsp) movq -0x8(%rsp), %rax movb $0x0, 0x7(%rax) movq $0x7, -0x20(%rsp) movq -0x20(%rsp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, -0x20(%rsp) cmpq $0x1, %rax jbe 0x23c0 movl -0xc(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %edx, -0x24(%rsp) movl -0xc(%rsp), %eax movl $0xa, %ecx xorl %edx, %edx divl %ecx movl %eax, -0xc(%rsp) movl -0x24(%rsp), %eax addl $0x30, %eax movb %al, %dl movq -0x8(%rsp), %rax movq -0x20(%rsp), %rcx movb %dl, (%rax,%rcx) jmp 0x236f movl -0xc(%rsp), %eax addl $0x30, %eax movb %al, %dl movq -0x8(%rsp), %rax movq -0x20(%rsp), %rcx movb %dl, (%rax,%rcx) movq -0x18(%rsp), %rax addq $0x7, %rax retq
u07toa_shift: mov [rsp+var_8], rdi mov [rsp+var_C], esi mov [rsp+var_18], rdx mov rax, [rsp+var_18] add rax, [rsp+var_8] mov [rsp+var_8], rax mov rax, [rsp+var_8] mov byte ptr [rax+7], 0 mov [rsp+var_20], 7 loc_236F: mov rax, [rsp+var_20] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rsp+var_20], rcx cmp rax, 1 jbe short loc_23C0 mov eax, [rsp+var_C] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+var_24], edx mov eax, [rsp+var_C] mov ecx, 0Ah xor edx, edx div ecx mov [rsp+var_C], eax mov eax, [rsp+var_24] add eax, 30h ; '0' mov dl, al mov rax, [rsp+var_8] mov rcx, [rsp+var_20] mov [rax+rcx], dl jmp short loc_236F loc_23C0: mov eax, [rsp+var_C] add eax, 30h ; '0' mov dl, al mov rax, [rsp+var_8] mov rcx, [rsp+var_20] mov [rax+rcx], dl mov rax, [rsp+var_18] add rax, 7 retn
long long u07toa_shift(long long a1, unsigned int a2, long long a3) { unsigned long long v3; // rax unsigned int v5; // [rsp+0h] [rbp-24h] long long i; // [rsp+4h] [rbp-20h] long long v8; // [rsp+1Ch] [rbp-8h] v8 = a1 + a3; *(_BYTE *)(a1 + a3 + 7) = 0; for ( i = 7LL; ; *(_BYTE *)(v8 + i) = v5 + 48 ) { v3 = i--; if ( v3 <= 1 ) break; v5 = a2 % 0xA; a2 /= 0xAu; } *(_BYTE *)(v8 + i) = a2 + 48; return a3 + 7; }
u07toa_shift: MOV qword ptr [RSP + -0x8],RDI MOV dword ptr [RSP + -0xc],ESI MOV qword ptr [RSP + -0x18],RDX MOV RAX,qword ptr [RSP + -0x18] ADD RAX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x8],RAX MOV RAX,qword ptr [RSP + -0x8] MOV byte ptr [RAX + 0x7],0x0 MOV qword ptr [RSP + -0x20],0x7 LAB_0010236f: MOV RAX,qword ptr [RSP + -0x20] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RSP + -0x20],RCX CMP RAX,0x1 JBE 0x001023c0 MOV EAX,dword ptr [RSP + -0xc] MOV ECX,0xa XOR EDX,EDX DIV ECX MOV dword ptr [RSP + -0x24],EDX MOV EAX,dword ptr [RSP + -0xc] MOV ECX,0xa XOR EDX,EDX DIV ECX MOV dword ptr [RSP + -0xc],EAX MOV EAX,dword ptr [RSP + -0x24] ADD EAX,0x30 MOV DL,AL MOV RAX,qword ptr [RSP + -0x8] MOV RCX,qword ptr [RSP + -0x20] MOV byte ptr [RAX + RCX*0x1],DL JMP 0x0010236f LAB_001023c0: MOV EAX,dword ptr [RSP + -0xc] ADD EAX,0x30 MOV DL,AL MOV RAX,qword ptr [RSP + -0x8] MOV RCX,qword ptr [RSP + -0x20] MOV byte ptr [RAX + RCX*0x1],DL MOV RAX,qword ptr [RSP + -0x18] ADD RAX,0x7 RET
long u07toa_shift(long param_1,uint param_2,long param_3) { ulong uVar1; uint uVar2; int8 local_20; int4 local_c; param_1 = param_3 + param_1; *(int1 *)(param_1 + 7) = 0; local_20 = 7; local_c = param_2; while (uVar1 = local_20 - 1, 1 < local_20) { uVar2 = local_c % 10; local_c = local_c / 10; *(char *)(param_1 + uVar1) = (char)uVar2 + '0'; local_20 = uVar1; } *(char *)(param_1 + uVar1) = (char)local_c + '0'; return param_3 + 7; }
41,935
u07toa_shift
bluesky950520[P]quickjs/tests/test_conv.c
size_t u07toa_shift(char dest[minimum_length(8)], uint32_t n, size_t len) { size_t i; dest += len; dest[7] = '\0'; for (i = 7; i-- > 1;) { uint32_t quo = n % 10; n /= 10; dest[i] = (char)('0' + quo); } dest[i] = (char)('0' + n); return len + 7; }
O2
c
u07toa_shift: movq %rdx, %rcx movl %esi, %eax addq %rdx, %rdi pushq $0x7 popq %rsi xorl %edx, %edx pushq $0xa popq %r8 movb %dl, (%rdi,%rsi) cmpq $0x2, %rsi jb 0x227c decq %rsi xorl %edx, %edx divl %r8d orb $0x30, %dl jmp 0x2266 addb $0x30, %al movb %al, (%rdi) addq $0x7, %rcx movq %rcx, %rax retq
u07toa_shift: mov rcx, rdx mov eax, esi add rdi, rdx push 7 pop rsi xor edx, edx push 0Ah pop r8 loc_2266: mov [rdi+rsi], dl cmp rsi, 2 jb short loc_227C dec rsi xor edx, edx div r8d or dl, 30h jmp short loc_2266 loc_227C: add al, 30h ; '0' mov [rdi], al add rcx, 7 mov rax, rcx retn
long long u07toa_shift(long long a1, unsigned int a2, long long a3) { _BYTE *v5; // rdi unsigned long long v6; // rsi char i; // dl unsigned int v8; // et2 v5 = (_BYTE *)(a3 + a1); v6 = 7LL; for ( i = 0; ; i = v8 | 0x30 ) { v5[v6] = i; if ( v6 < 2 ) break; --v6; v8 = a2 % 0xA; a2 /= 0xAu; } *v5 = a2 + 48; return a3 + 7; }
u07toa_shift: MOV RCX,RDX MOV EAX,ESI ADD RDI,RDX PUSH 0x7 POP RSI XOR EDX,EDX PUSH 0xa POP R8 LAB_00102266: MOV byte ptr [RDI + RSI*0x1],DL CMP RSI,0x2 JC 0x0010227c DEC RSI XOR EDX,EDX DIV R8D OR DL,0x30 JMP 0x00102266 LAB_0010227c: ADD AL,0x30 MOV byte ptr [RDI],AL ADD RCX,0x7 MOV RAX,RCX RET
long u07toa_shift(long param_1,uint param_2,long param_3) { ulong uVar1; ulong uVar2; uVar1 = 0; for (uVar2 = 7; ((char *)(param_1 + param_3))[uVar2] = (char)uVar1, 1 < uVar2; uVar2 = uVar2 - 1) { uVar1 = (ulong)param_2; param_2 = param_2 / 10; uVar1 = uVar1 % 10 | 0x30; } *(char *)(param_1 + param_3) = (char)param_2 + '0'; return param_3 + 7; }
41,936
my_chsize
eloqsql/mysys/my_chsize.c
int my_chsize(File fd, my_off_t newlength, int filler, myf MyFlags) { my_off_t oldsize; uchar buff[IO_SIZE]; DBUG_ENTER("my_chsize"); DBUG_PRINT("my",("fd: %d length: %lu MyFlags: %lu",fd,(ulong) newlength, MyFlags)); if ((oldsize= my_seek(fd, 0L, MY_SEEK_END, MYF(MY_WME+MY_FAE))) == newlength) DBUG_RETURN(0); DBUG_PRINT("info",("old_size: %ld", (ulong) oldsize)); if (oldsize > newlength) { #ifdef _WIN32 if (my_win_chsize(fd, newlength)) { my_errno= errno; goto err; } DBUG_RETURN(0); #elif defined(HAVE_FTRUNCATE) if (ftruncate(fd, (off_t) newlength)) { my_errno= errno; goto err; } DBUG_RETURN(0); #else /* Fill space between requested length and true length with 'filler' We should never come here on any modern machine */ if (my_seek(fd, newlength, MY_SEEK_SET, MYF(MY_WME+MY_FAE)) == MY_FILEPOS_ERROR) { goto err; } swap_variables(my_off_t, newlength, oldsize); #endif } /* Full file with 'filler' until it's as big as requested */ bfill(buff, IO_SIZE, filler); while (newlength-oldsize > IO_SIZE) { if (my_write(fd, buff, IO_SIZE, MYF(MY_NABP))) goto err; oldsize+= IO_SIZE; } if (my_write(fd,buff,(size_t) (newlength-oldsize), MYF(MY_NABP))) goto err; DBUG_RETURN(0); err: DBUG_PRINT("error", ("errno: %d", errno)); if (MyFlags & MY_WME) my_error(EE_CANT_CHSIZE, MYF(ME_BELL), my_errno); DBUG_RETURN(1); }
O3
c
my_chsize: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1018, %rsp # imm = 0x1018 movq %rcx, -0x1038(%rbp) movl %edx, %r13d movq %rsi, %r14 movl %edi, %r15d movq %fs:0x28, %rax movq %rax, -0x30(%rbp) xorl %ebx, %ebx movl $0x18, %ecx xorl %esi, %esi movl $0x2, %edx callq 0xa1acc movq %r14, %r12 subq %rax, %r12 je 0x9edd9 jae 0x9ed49 movl %r15d, %edi movq %r14, %rsi callq 0x29500 testl %eax, %eax je 0x9edd9 callq 0x297b0 movl (%rax), %ebx callq 0xa2a4e movl %ebx, (%rax) jmp 0x9edb3 leaq -0x1030(%rbp), %rdi movl $0x1000, %edx # imm = 0x1000 movl %r13d, %esi callq 0x292c0 cmpq $0x1001, %r12 # imm = 0x1001 jb 0x9ed97 leaq -0x1030(%rbp), %r13 movl $0x1000, %edx # imm = 0x1000 movl $0x4, %ecx movl %r15d, %edi movq %r13, %rsi callq 0x2f004 testq %rax, %rax jne 0x9edb3 addq $-0x1000, %r12 # imm = 0xF000 cmpq $0x1001, %r12 # imm = 0x1001 jae 0x9ed6d leaq -0x1030(%rbp), %rsi movl $0x4, %ecx movl %r15d, %edi movq %r12, %rdx callq 0x2f004 testq %rax, %rax je 0x9edd9 movl $0x1, %ebx testb $0x10, -0x1038(%rbp) je 0x9edd9 callq 0xa2a4e movl (%rax), %edx movl $0x4, %esi movl $0xe, %edi xorl %eax, %eax callq 0x9f103 movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x9edfc movl %ebx, %eax addq $0x1018, %rsp # imm = 0x1018 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270 nopl (%rax)
my_chsize: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 1018h mov [rbp+var_1038], rcx mov r13d, edx mov r14, rsi mov r15d, edi mov rax, fs:28h mov [rbp+var_30], rax xor ebx, ebx mov ecx, 18h xor esi, esi mov edx, 2 call my_seek mov r12, r14 sub r12, rax jz loc_9EDD9 jnb short loc_9ED49 mov edi, r15d mov rsi, r14 call _ftruncate64 test eax, eax jz loc_9EDD9 call ___errno_location mov ebx, [rax] call _my_thread_var mov [rax], ebx jmp short loc_9EDB3 loc_9ED49: lea rdi, [rbp+var_1030] mov edx, 1000h mov esi, r13d call _memset cmp r12, 1001h jb short loc_9ED97 lea r13, [rbp+var_1030] loc_9ED6D: mov edx, 1000h mov ecx, 4 mov edi, r15d mov rsi, r13 call my_write test rax, rax jnz short loc_9EDB3 add r12, 0FFFFFFFFFFFFF000h cmp r12, 1001h jnb short loc_9ED6D loc_9ED97: lea rsi, [rbp+var_1030] mov ecx, 4 mov edi, r15d mov rdx, r12 call my_write test rax, rax jz short loc_9EDD9 loc_9EDB3: mov ebx, 1 test byte ptr [rbp+var_1038], 10h jz short loc_9EDD9 call _my_thread_var mov edx, [rax] mov esi, 4 mov edi, 0Eh xor eax, eax call my_error loc_9EDD9: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_9EDFC mov eax, ebx add rsp, 1018h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9EDFC: call ___stack_chk_fail
long long my_chsize(long long a1, const char *a2, unsigned int a3, char a4) { unsigned int v5; // r15d unsigned int v6; // ebx unsigned long long v7; // rax unsigned long long v8; // r12 int v9; // ebx _DWORD *v10; // rax int v11; // ecx int v12; // r8d int v13; // r9d _BYTE v16[4096]; // [rsp+10h] [rbp-1030h] BYREF unsigned long long v17; // [rsp+1010h] [rbp-30h] v5 = a1; v17 = __readfsqword(0x28u); v6 = 0; v7 = my_seek(a1, 0LL, 2LL, 24LL); v8 = (unsigned long long)&a2[-v7]; if ( a2 != (const char *)v7 ) { if ( (unsigned long long)a2 >= v7 ) { memset(v16, a3, sizeof(v16)); if ( v8 < 0x1001 ) { LABEL_8: a2 = v16; a1 = v5; if ( !my_write(v5, (long long)v16, v8, 4LL) ) return v6; } else { while ( 1 ) { a1 = v5; a2 = v16; if ( my_write(v5, (long long)v16, 4096LL, 4LL) ) break; v8 -= 4096LL; if ( v8 < 0x1001 ) goto LABEL_8; } } } else { a1 = (unsigned int)a1; if ( !(unsigned int)ftruncate64((unsigned int)a1, a2) ) return v6; v9 = *(_DWORD *)__errno_location((unsigned int)a1); *(_DWORD *)my_thread_var((unsigned int)a1, a2) = v9; } v6 = 1; if ( (a4 & 0x10) != 0 ) { v10 = (_DWORD *)my_thread_var(a1, a2); my_error(14, 4, *v10, v11, v12, v13); } } return v6; }
my_chsize: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1018 MOV qword ptr [RBP + -0x1038],RCX MOV R13D,EDX MOV R14,RSI MOV R15D,EDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX XOR EBX,EBX MOV ECX,0x18 XOR ESI,ESI MOV EDX,0x2 CALL 0x001a1acc MOV R12,R14 SUB R12,RAX JZ 0x0019edd9 JNC 0x0019ed49 MOV EDI,R15D MOV RSI,R14 CALL 0x00129500 TEST EAX,EAX JZ 0x0019edd9 CALL 0x001297b0 MOV EBX,dword ptr [RAX] CALL 0x001a2a4e MOV dword ptr [RAX],EBX JMP 0x0019edb3 LAB_0019ed49: LEA RDI,[RBP + -0x1030] MOV EDX,0x1000 MOV ESI,R13D CALL 0x001292c0 CMP R12,0x1001 JC 0x0019ed97 LEA R13,[RBP + -0x1030] LAB_0019ed6d: MOV EDX,0x1000 MOV ECX,0x4 MOV EDI,R15D MOV RSI,R13 CALL 0x0012f004 TEST RAX,RAX JNZ 0x0019edb3 ADD R12,-0x1000 CMP R12,0x1001 JNC 0x0019ed6d LAB_0019ed97: LEA RSI,[RBP + -0x1030] MOV ECX,0x4 MOV EDI,R15D MOV RDX,R12 CALL 0x0012f004 TEST RAX,RAX JZ 0x0019edd9 LAB_0019edb3: MOV EBX,0x1 TEST byte ptr [RBP + -0x1038],0x10 JZ 0x0019edd9 CALL 0x001a2a4e MOV EDX,dword ptr [RAX] MOV ESI,0x4 MOV EDI,0xe XOR EAX,EAX CALL 0x0019f103 LAB_0019edd9: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0019edfc MOV EAX,EBX ADD RSP,0x1018 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019edfc: CALL 0x00129270
int8 my_chsize(ulong param_1,ulong param_2,int param_3,ulong param_4) { int iVar1; ulong uVar2; int *piVar3; long lVar4; int4 *puVar5; int8 uVar6; ulong uVar7; long in_FS_OFFSET; int1 local_1038 [4096]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); uVar6 = 0; uVar2 = my_seek(param_1,0,2,0x18); uVar7 = param_2 - uVar2; if (uVar7 != 0) { if (param_2 < uVar2) { iVar1 = ftruncate64((int)param_1,param_2); if (iVar1 == 0) goto LAB_0019edd9; piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; } else { memset(local_1038,param_3,0x1000); if (0x1000 < uVar7) { do { lVar4 = my_write(param_1 & 0xffffffff,local_1038,0x1000,4); if (lVar4 != 0) goto LAB_0019edb3; uVar7 = uVar7 - 0x1000; } while (0x1000 < uVar7); } lVar4 = my_write(param_1 & 0xffffffff,local_1038,uVar7,4); if (lVar4 == 0) goto LAB_0019edd9; } LAB_0019edb3: uVar6 = 1; if ((param_4 & 0x10) != 0) { puVar5 = (int4 *)_my_thread_var(); my_error(0xe,4,*puVar5); } } LAB_0019edd9: if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return uVar6; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,937
mysql_fetch_row@libmariadbclient_18
eloqsql/libmariadb/libmariadb/mariadb_lib.c
MYSQL_ROW STDCALL mysql_fetch_row(MYSQL_RES *res) { if (!res) return 0; if (res->handle) { if (res->handle->status != MYSQL_STATUS_USE_RESULT && res->handle->status != MYSQL_STATUS_GET_RESULT) return 0; } if (!res->data) { /* Unbufferred fetch */ if (!res->eof && res->handle) { if (!(res->handle->methods->db_read_one_row(res->handle,res->field_count,res->row, res->lengths))) { res->row_count++; return(res->current_row=res->row); } res->eof=1; res->handle->status=MYSQL_STATUS_READY; /* Don't clear handle in mysql_free_results */ res->handle=0; } return((MYSQL_ROW) NULL); } { MYSQL_ROW tmp; if (!res->data_cursor) { return(res->current_row=(MYSQL_ROW) NULL); } tmp = res->data_cursor->data; res->data_cursor = res->data_cursor->next; return(res->current_row=tmp); } }
O0
c
mysql_fetch_row@libmariadbclient_18: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x2a7b0 movq $0x0, -0x8(%rbp) jmp 0x2a902 movq -0x10(%rbp), %rax cmpq $0x0, 0x78(%rax) je 0x2a7ec movq -0x10(%rbp), %rax movq 0x78(%rax), %rax cmpl $0x2, 0x488(%rax) je 0x2a7ea movq -0x10(%rbp), %rax movq 0x78(%rax), %rax cmpl $0x1, 0x488(%rax) je 0x2a7ea movq $0x0, -0x8(%rbp) jmp 0x2a902 jmp 0x2a7ec movq -0x10(%rbp), %rax cmpq $0x0, 0x18(%rax) jne 0x2a8ae movq -0x10(%rbp), %rax cmpb $0x0, 0x80(%rax) jne 0x2a8a4 movq -0x10(%rbp), %rax cmpq $0x0, 0x78(%rax) je 0x2a8a4 movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movq 0x4d0(%rax), %rax movq 0x30(%rax), %rax movq -0x10(%rbp), %rcx movq 0x78(%rcx), %rdi movq -0x10(%rbp), %rcx movl 0x8(%rcx), %esi movq -0x10(%rbp), %rcx movq 0x60(%rcx), %rdx movq -0x10(%rbp), %rcx movq 0x70(%rcx), %rcx callq *%rax cmpl $0x0, %eax jne 0x2a87b movq -0x10(%rbp), %rax movq (%rax), %rcx addq $0x1, %rcx movq %rcx, (%rax) movq -0x10(%rbp), %rax movq 0x60(%rax), %rax movq -0x10(%rbp), %rcx movq %rax, 0x68(%rcx) movq %rax, -0x8(%rbp) jmp 0x2a902 movq -0x10(%rbp), %rax movb $0x1, 0x80(%rax) movq -0x10(%rbp), %rax movq 0x78(%rax), %rax movl $0x0, 0x488(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x78(%rax) movq $0x0, -0x8(%rbp) jmp 0x2a902 movq -0x10(%rbp), %rax cmpq $0x0, 0x20(%rax) jne 0x2a8cf movq -0x10(%rbp), %rax movq $0x0, 0x68(%rax) movq $0x0, -0x8(%rbp) jmp 0x2a902 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movq %rax, 0x68(%rcx) movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl (%rax)
mysql_fetch_row@libmariadbclient_18: push rbp; Alternative name is 'mysql_fetch_row' mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi cmp [rbp+var_10], 0 jnz short loc_2A7B0 mov [rbp+var_8], 0 jmp loc_2A902 loc_2A7B0: mov rax, [rbp+var_10] cmp qword ptr [rax+78h], 0 jz short loc_2A7EC mov rax, [rbp+var_10] mov rax, [rax+78h] cmp dword ptr [rax+488h], 2 jz short loc_2A7EA mov rax, [rbp+var_10] mov rax, [rax+78h] cmp dword ptr [rax+488h], 1 jz short loc_2A7EA mov [rbp+var_8], 0 jmp loc_2A902 loc_2A7EA: jmp short $+2 loc_2A7EC: mov rax, [rbp+var_10] cmp qword ptr [rax+18h], 0 jnz loc_2A8AE mov rax, [rbp+var_10] cmp byte ptr [rax+80h], 0 jnz loc_2A8A4 mov rax, [rbp+var_10] cmp qword ptr [rax+78h], 0 jz loc_2A8A4 mov rax, [rbp+var_10] mov rax, [rax+78h] mov rax, [rax+4D0h] mov rax, [rax+30h] mov rcx, [rbp+var_10] mov rdi, [rcx+78h] mov rcx, [rbp+var_10] mov esi, [rcx+8] mov rcx, [rbp+var_10] mov rdx, [rcx+60h] mov rcx, [rbp+var_10] mov rcx, [rcx+70h] call rax cmp eax, 0 jnz short loc_2A87B mov rax, [rbp+var_10] mov rcx, [rax] add rcx, 1 mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax+60h] mov rcx, [rbp+var_10] mov [rcx+68h], rax mov [rbp+var_8], rax jmp loc_2A902 loc_2A87B: mov rax, [rbp+var_10] mov byte ptr [rax+80h], 1 mov rax, [rbp+var_10] mov rax, [rax+78h] mov dword ptr [rax+488h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+78h], 0 loc_2A8A4: mov [rbp+var_8], 0 jmp short loc_2A902 loc_2A8AE: mov rax, [rbp+var_10] cmp qword ptr [rax+20h], 0 jnz short loc_2A8CF mov rax, [rbp+var_10] mov qword ptr [rax+68h], 0 mov [rbp+var_8], 0 jmp short loc_2A902 loc_2A8CF: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rax, [rax+8] mov [rbp+var_18], rax mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rax] mov rax, [rbp+var_10] mov [rax+20h], rcx mov rax, [rbp+var_18] mov rcx, [rbp+var_10] mov [rcx+68h], rax mov [rbp+var_8], rax loc_2A902: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long mysql_fetch_row_libmariadbclient_18(long long a1) { long long v1; // rax long long v3; // [rsp+8h] [rbp-18h] if ( !a1 ) return 0LL; if ( *(_QWORD *)(a1 + 120) && *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) != 2 && *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) != 1 ) { return 0LL; } if ( !*(_QWORD *)(a1 + 24) ) { if ( !*(_BYTE *)(a1 + 128) && *(_QWORD *)(a1 + 120) ) { if ( !(*(unsigned int ( **)(_QWORD, _QWORD, _QWORD, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 1232LL) + 48LL))( *(_QWORD *)(a1 + 120), *(unsigned int *)(a1 + 8), *(_QWORD *)(a1 + 96), *(_QWORD *)(a1 + 112)) ) { ++*(_QWORD *)a1; v1 = *(_QWORD *)(a1 + 96); *(_QWORD *)(a1 + 104) = v1; return v1; } *(_BYTE *)(a1 + 128) = 1; *(_DWORD *)(*(_QWORD *)(a1 + 120) + 1160LL) = 0; *(_QWORD *)(a1 + 120) = 0LL; } return 0LL; } if ( *(_QWORD *)(a1 + 32) ) { v3 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 8LL); *(_QWORD *)(a1 + 32) = **(_QWORD **)(a1 + 32); *(_QWORD *)(a1 + 104) = v3; return v3; } else { *(_QWORD *)(a1 + 104) = 0LL; return 0LL; } }
mysql_fetch_row: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x0 JNZ 0x0012a7b0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012a902 LAB_0012a7b0: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x78],0x0 JZ 0x0012a7ec MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] CMP dword ptr [RAX + 0x488],0x2 JZ 0x0012a7ea MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] CMP dword ptr [RAX + 0x488],0x1 JZ 0x0012a7ea MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012a902 LAB_0012a7ea: JMP 0x0012a7ec LAB_0012a7ec: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x18],0x0 JNZ 0x0012a8ae MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x80],0x0 JNZ 0x0012a8a4 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x78],0x0 JZ 0x0012a8a4 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV RAX,qword ptr [RAX + 0x4d0] MOV RAX,qword ptr [RAX + 0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x78] MOV RCX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RCX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x60] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x70] CALL RAX CMP EAX,0x0 JNZ 0x0012a87b MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] ADD RCX,0x1 MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x60] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x68],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x0012a902 LAB_0012a87b: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x80],0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x78] MOV dword ptr [RAX + 0x488],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x78],0x0 LAB_0012a8a4: MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012a902 LAB_0012a8ae: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x20],0x0 JNZ 0x0012a8cf MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x68],0x0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012a902 LAB_0012a8cf: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x68],RAX MOV qword ptr [RBP + -0x8],RAX LAB_0012a902: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
long mysql_fetch_row(long *param_1) { int iVar1; long local_10; if (param_1 == (long *)0x0) { local_10 = 0; } else if (((param_1[0xf] == 0) || (*(int *)(param_1[0xf] + 0x488) == 2)) || (*(int *)(param_1[0xf] + 0x488) == 1)) { if (param_1[3] == 0) { if (((char)param_1[0x10] == '\0') && (param_1[0xf] != 0)) { iVar1 = (**(code **)(*(long *)(param_1[0xf] + 0x4d0) + 0x30)) (param_1[0xf],(int)param_1[1],param_1[0xc],param_1[0xe]); if (iVar1 == 0) { *param_1 = *param_1 + 1; param_1[0xd] = param_1[0xc]; return param_1[0xc]; } *(int1 *)(param_1 + 0x10) = 1; *(int4 *)(param_1[0xf] + 0x488) = 0; param_1[0xf] = 0; } local_10 = 0; } else if (param_1[4] == 0) { param_1[0xd] = 0; local_10 = 0; } else { local_10 = *(long *)(param_1[4] + 8); param_1[4] = *(long *)param_1[4]; param_1[0xd] = local_10; } } else { local_10 = 0; } return local_10; }
41,938
LefDefParser::lefiSpacingTable::addTwoWidths(double, double, int, double*, int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp
void lefiSpacingTable::addTwoWidths(double width, double runLength, int numSpacing, double *spacings, int hasPRL) { lefiTwoWidths *twoWidths; if (twoWidths_ == 0) { twoWidths = (lefiTwoWidths*) lefMalloc(sizeof(lefiTwoWidths)); twoWidths->Init(); twoWidths_ = twoWidths; } else twoWidths = twoWidths_; twoWidths->addTwoWidths(width, runLength, numSpacing, spacings, hasPRL); }
O3
cpp
LefDefParser::lefiSpacingTable::addTwoWidths(double, double, int, double*, int): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movl %ecx, %ebx movq %rdx, %r14 movl %esi, %ebp movq %rdi, %r15 movq 0x18(%rdi), %rdi testq %rdi, %rdi jne 0x16ddb movl $0x38, %edi movsd %xmm1, 0x10(%rsp) movsd %xmm0, 0x8(%rsp) callq 0x24985 movsd 0x8(%rsp), %xmm0 movsd 0x10(%rsp), %xmm1 movq %rax, %rdi movq $0x0, (%rax) movq %rax, 0x18(%r15) movl %ebp, %esi movq %r14, %rdx movl %ebx, %ecx addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x168d8 nop
_ZN12LefDefParser16lefiSpacingTable12addTwoWidthsEddiPdi: push rbp push r15 push r14 push rbx sub rsp, 18h mov ebx, ecx mov r14, rdx mov ebp, esi mov r15, rdi mov rdi, [rdi+18h] test rdi, rdi jnz short loc_16DDB mov edi, offset word_38; this movsd [rsp+38h+var_28], xmm1 movsd [rsp+38h+var_30], xmm0 call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) movsd xmm0, [rsp+38h+var_30]; double movsd xmm1, [rsp+38h+var_28]; double mov rdi, rax; this mov qword ptr [rax], 0 mov [r15+18h], rax loc_16DDB: mov esi, ebp; int mov rdx, r14; double * mov ecx, ebx; int add rsp, 18h pop rbx pop r14 pop r15 pop rbp jmp _ZN12LefDefParser13lefiTwoWidths12addTwoWidthsEddiPdi; LefDefParser::lefiTwoWidths::addTwoWidths(double,double,int,double *,int)
long long LefDefParser::lefiSpacingTable::addTwoWidths( LefDefParser::lefiSpacingTable *this, double a2, double a3, unsigned long long a4, double *a5, int a6) { LefDefParser::lefiTwoWidths *v9; // rdi v9 = (LefDefParser::lefiTwoWidths *)*((_QWORD *)this + 3); if ( !v9 ) { v9 = (LefDefParser::lefiTwoWidths *)LefDefParser::lefMalloc((LefDefParser *)&word_38, a4); *(_QWORD *)v9 = 0LL; *((_QWORD *)this + 3) = v9; } return LefDefParser::lefiTwoWidths::addTwoWidths(v9, a2, a3, (unsigned int)a4, a5, a6); }
addTwoWidths: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV EBX,ECX MOV R14,RDX MOV EBP,ESI MOV R15,RDI MOV RDI,qword ptr [RDI + 0x18] TEST RDI,RDI JNZ 0x00116ddb MOV EDI,0x38 MOVSD qword ptr [RSP + 0x10],XMM1 MOVSD qword ptr [RSP + 0x8],XMM0 CALL 0x00124985 MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP + 0x10] MOV RDI,RAX MOV qword ptr [RAX],0x0 MOV qword ptr [R15 + 0x18],RAX LAB_00116ddb: MOV ESI,EBP MOV RDX,R14 MOV ECX,EBX ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP JMP 0x001168d8
/* LefDefParser::lefiSpacingTable::addTwoWidths(double, double, int, double*, int) */ void __thiscall LefDefParser::lefiSpacingTable::addTwoWidths (lefiSpacingTable *this,double param_1,double param_2,int param_3,double *param_4, int param_5) { lefiTwoWidths *this_00; int4 in_register_00000034; this_00 = *(lefiTwoWidths **)(this + 0x18); if (this_00 == (lefiTwoWidths *)0x0) { this_00 = (lefiTwoWidths *) lefMalloc((LefDefParser *)0x38,CONCAT44(in_register_00000034,param_3)); *(int8 *)this_00 = 0; *(lefiTwoWidths **)(this + 0x18) = this_00; } lefiTwoWidths::addTwoWidths(this_00,param_1,param_2,param_3,param_4,param_5); return; }
41,939
google::protobuf::CEscapeAndAppend(google::protobuf::stringpiece_internal::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
void CEscapeAndAppend(StringPiece src, std::string *dest) { size_t escaped_len = CEscapedLength(src); if (escaped_len == src.size()) { dest->append(src.data(), src.size()); return; } size_t cur_dest_len = dest->size(); dest->resize(cur_dest_len + escaped_len); char* append_ptr = &(*dest)[cur_dest_len]; for (StringPiece::size_type i = 0; i < src.size(); ++i) { unsigned char c = static_cast<unsigned char>(src[i]); switch (c) { case '\n': *append_ptr++ = '\\'; *append_ptr++ = 'n'; break; case '\r': *append_ptr++ = '\\'; *append_ptr++ = 'r'; break; case '\t': *append_ptr++ = '\\'; *append_ptr++ = 't'; break; case '\"': *append_ptr++ = '\\'; *append_ptr++ = '\"'; break; case '\'': *append_ptr++ = '\\'; *append_ptr++ = '\''; break; case '\\': *append_ptr++ = '\\'; *append_ptr++ = '\\'; break; default: if (!isprint(c)) { *append_ptr++ = '\\'; *append_ptr++ = '0' + c / 64; *append_ptr++ = '0' + (c % 64) / 8; *append_ptr++ = '0' + c % 8; } else { *append_ptr++ = c; } break; } } }
O0
cpp
google::protobuf::CEscapeAndAppend(google::protobuf::stringpiece_internal::StringPiece, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x70(%rsp) movq %rdx, 0x60(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x48(%rsp), %rdi movq 0x50(%rsp), %rsi callq 0x283d0 movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x68(%rsp), %rdi callq 0x24080 movq %rax, %rcx movq 0x20(%rsp), %rax cmpq %rcx, %rax jne 0x28116 movq 0x60(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x68(%rsp), %rdi callq 0x24070 movq %rax, 0x18(%rsp) leaq 0x68(%rsp), %rdi callq 0x24080 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movq %rax, %rdx callq 0x19810 jmp 0x283c5 movq 0x60(%rsp), %rdi callq 0x147d0 movq %rax, 0x40(%rsp) movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi addq 0x58(%rsp), %rsi callq 0x13600 movq 0x60(%rsp), %rdi movq 0x40(%rsp), %rsi callq 0x13800 movq %rax, 0x38(%rsp) movq $0x0, 0x30(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) leaq 0x68(%rsp), %rdi callq 0x24080 movq %rax, %rcx movq 0x8(%rsp), %rax cmpq %rcx, %rax jae 0x283c5 movq 0x30(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x30530 movb %al, 0x2f(%rsp) movzbl 0x2f(%rsp), %eax movl %eax, 0x4(%rsp) subl $0x9, %eax je 0x28242 jmp 0x281a2 movl 0x4(%rsp), %eax subl $0xa, %eax je 0x281e8 jmp 0x281ad movl 0x4(%rsp), %eax subl $0xd, %eax je 0x28215 jmp 0x281b8 movl 0x4(%rsp), %eax subl $0x22, %eax je 0x2826f jmp 0x281c7 movl 0x4(%rsp), %eax subl $0x27, %eax je 0x2829c jmp 0x281d6 movl 0x4(%rsp), %eax subl $0x5c, %eax je 0x282c9 jmp 0x282f6 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x6e, (%rax) jmp 0x283b0 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x72, (%rax) jmp 0x283b0 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x74, (%rax) jmp 0x283b0 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x22, (%rax) jmp 0x283b0 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x27, (%rax) jmp 0x283b0 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) jmp 0x283b0 movsbl 0x2f(%rsp), %edi callq 0x30500 testb $0x1, %al jne 0x28397 movq 0x38(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0x38(%rsp) movb $0x5c, (%rax) movzbl 0x2f(%rsp), %eax movl $0x40, %ecx cltd idivl %ecx addl $0x30, %eax movb %al, %cl movq 0x38(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x38(%rsp) movb %cl, (%rax) movzbl 0x2f(%rsp), %eax movl $0x40, %ecx cltd idivl %ecx movl %edx, %eax movl $0x8, %ecx cltd idivl %ecx addl $0x30, %eax movb %al, %cl movq 0x38(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x38(%rsp) movb %cl, (%rax) movzbl 0x2f(%rsp), %eax movl $0x8, %ecx cltd idivl %ecx addl $0x30, %edx movb %dl, %cl movq 0x38(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x38(%rsp) movb %cl, (%rax) jmp 0x283ae movb 0x2f(%rsp), %cl movq 0x38(%rsp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, 0x38(%rsp) movb %cl, (%rax) jmp 0x283b0 jmp 0x283b2 movq 0x30(%rsp), %rax addq $0x1, %rax movq %rax, 0x30(%rsp) jmp 0x28156 addq $0x78, %rsp retq nopw (%rax,%rax)
_ZN6google8protobuf16CEscapeAndAppendENS0_20stringpiece_internal11StringPieceEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: sub rsp, 78h mov [rsp+78h+var_10], rdi mov [rsp+78h+var_8], rsi mov [rsp+78h+var_18], rdx mov rax, [rsp+78h+var_10] mov [rsp+78h+var_30], rax mov rax, [rsp+78h+var_8] mov [rsp+78h+var_28], rax mov rdi, [rsp+78h+var_30] mov rsi, [rsp+78h+var_28] call _ZN6google8protobufL14CEscapedLengthENS0_20stringpiece_internal11StringPieceE; google::protobuf::CEscapedLength(google::protobuf::stringpiece_internal::StringPiece) mov [rsp+78h+var_20], rax mov rax, [rsp+78h+var_20] mov [rsp+78h+var_58], rax lea rdi, [rsp+78h+var_10]; this call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void) mov rcx, rax mov rax, [rsp+78h+var_58] cmp rax, rcx jnz short loc_28116 mov rax, [rsp+78h+var_18] mov [rsp+78h+var_68], rax lea rdi, [rsp+78h+var_10]; this call _ZNK6google8protobuf20stringpiece_internal11StringPiece4dataEv; google::protobuf::stringpiece_internal::StringPiece::data(void) mov [rsp+78h+var_60], rax lea rdi, [rsp+78h+var_10]; this call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void) mov rdi, [rsp+78h+var_68] mov rsi, [rsp+78h+var_60] mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) jmp loc_283C5 loc_28116: mov rdi, [rsp+78h+var_18] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov [rsp+78h+var_38], rax mov rdi, [rsp+78h+var_18] mov rsi, [rsp+78h+var_38] add rsi, [rsp+78h+var_20] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEm; std::string::resize(ulong) mov rdi, [rsp+78h+var_18] mov rsi, [rsp+78h+var_38] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm; std::string::operator[](ulong) mov [rsp+78h+var_40], rax mov qword ptr [rsp+78h+var_48], 0 loc_28156: mov rax, qword ptr [rsp+78h+var_48] mov [rsp+78h+var_70], rax lea rdi, [rsp+78h+var_10]; this call _ZNK6google8protobuf20stringpiece_internal11StringPiece4sizeEv; google::protobuf::stringpiece_internal::StringPiece::size(void) mov rcx, rax mov rax, [rsp+78h+var_70] cmp rax, rcx jnb loc_283C5 mov rsi, qword ptr [rsp+78h+var_48]; char lea rdi, [rsp+78h+var_10] call _ZNK6google8protobuf20stringpiece_internal11StringPieceixEm; google::protobuf::stringpiece_internal::StringPiece::operator[](ulong) mov [rsp+78h+var_49], al movzx eax, [rsp+78h+var_49] mov [rsp+78h+var_74], eax sub eax, 9 jz loc_28242 jmp short $+2 loc_281A2: mov eax, [rsp+78h+var_74] sub eax, 0Ah jz short loc_281E8 jmp short $+2 loc_281AD: mov eax, [rsp+78h+var_74] sub eax, 0Dh jz short loc_28215 jmp short $+2 loc_281B8: mov eax, [rsp+78h+var_74] sub eax, 22h ; '"' jz loc_2826F jmp short $+2 loc_281C7: mov eax, [rsp+78h+var_74] sub eax, 27h ; ''' jz loc_2829C jmp short $+2 loc_281D6: mov eax, [rsp+78h+var_74] sub eax, 5Ch ; '\' jz loc_282C9 jmp loc_282F6 loc_281E8: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 6Eh ; 'n' jmp loc_283B0 loc_28215: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 72h ; 'r' jmp loc_283B0 loc_28242: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 74h ; 't' jmp loc_283B0 loc_2826F: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 22h ; '"' jmp loc_283B0 loc_2829C: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 27h ; ''' jmp loc_283B0 loc_282C9: mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' jmp loc_283B0 loc_282F6: movsx edi, [rsp+78h+var_49]; this call _ZN6google8protobuf7isprintEc; google::protobuf::isprint(char) test al, 1 jnz loc_28397 mov rax, [rsp+78h+var_40] mov rcx, rax add rcx, 1 mov [rsp+78h+var_40], rcx mov byte ptr [rax], 5Ch ; '\' movzx eax, [rsp+78h+var_49] mov ecx, 40h ; '@' cdq idiv ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+78h+var_40] mov rdx, rax add rdx, 1 mov [rsp+78h+var_40], rdx mov [rax], cl movzx eax, [rsp+78h+var_49] mov ecx, 40h ; '@' cdq idiv ecx mov eax, edx mov ecx, 8 cdq idiv ecx add eax, 30h ; '0' mov cl, al mov rax, [rsp+78h+var_40] mov rdx, rax add rdx, 1 mov [rsp+78h+var_40], rdx mov [rax], cl movzx eax, [rsp+78h+var_49] mov ecx, 8 cdq idiv ecx add edx, 30h ; '0' mov cl, dl mov rax, [rsp+78h+var_40] mov rdx, rax add rdx, 1 mov [rsp+78h+var_40], rdx mov [rax], cl jmp short loc_283AE loc_28397: mov cl, [rsp+78h+var_49] mov rax, [rsp+78h+var_40] mov rdx, rax add rdx, 1 mov [rsp+78h+var_40], rdx mov [rax], cl loc_283AE: jmp short $+2 loc_283B0: jmp short $+2 loc_283B2: mov rax, qword ptr [rsp+78h+var_48] add rax, 1 mov qword ptr [rsp+78h+var_48], rax jmp loc_28156 loc_283C5: add rsp, 78h retn
long long google::protobuf::CEscapeAndAppend(long long a1, long long a2, long long a3) { unsigned long long v3; // rax long long result; // rax unsigned long long v5; // rcx _BYTE *v6; // rax _BYTE *v7; // rax _BYTE *v8; // rax _BYTE *v9; // rax _BYTE *v10; // rax _BYTE *v11; // rax char v12; // al _BYTE *v13; // rax unsigned __int8 *v14; // rax _BYTE *v15; // [rsp+18h] [rbp-60h] unsigned __int8 v16; // [rsp+2Fh] [rbp-49h] char v17[8]; // [rsp+30h] [rbp-48h] unsigned __int8 *v18; // [rsp+38h] [rbp-40h] long long v19; // [rsp+40h] [rbp-38h] long long v20; // [rsp+58h] [rbp-20h] _QWORD v22[2]; // [rsp+68h] [rbp-10h] BYREF v22[0] = a1; v22[1] = a2; v20 = google::protobuf::CEscapedLength(a1, a2); if ( v20 == google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v22) ) { v15 = (_BYTE *)google::protobuf::stringpiece_internal::StringPiece::data((google::protobuf::stringpiece_internal::StringPiece *)v22); v3 = google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v22); return std::string::append(a3, v15, v3); } else { v19 = std::string::size(a3); std::string::resize(a3, v20 + v19); v18 = (unsigned __int8 *)std::string::operator[](a3, v19); for ( *(_QWORD *)v17 = 0LL; ; ++*(_QWORD *)v17 ) { v5 = google::protobuf::stringpiece_internal::StringPiece::size((google::protobuf::stringpiece_internal::StringPiece *)v22); result = *(_QWORD *)v17; if ( *(_QWORD *)v17 >= v5 ) break; v16 = google::protobuf::stringpiece_internal::StringPiece::operator[](v22, *(_QWORD *)v17); switch ( v16 ) { case 9u: *v18 = 92; v8 = v18 + 1; v18 += 2; *v8 = 116; break; case 0xAu: *v18 = 92; v6 = v18 + 1; v18 += 2; *v6 = 110; break; case 0xDu: *v18 = 92; v7 = v18 + 1; v18 += 2; *v7 = 114; break; case 0x22u: *v18 = 92; v9 = v18 + 1; v18 += 2; *v9 = 34; break; case 0x27u: *v18 = 92; v10 = v18 + 1; v18 += 2; *v10 = 39; break; case 0x5Cu: *v18 = 92; v11 = v18 + 1; v18 += 2; *v11 = 92; break; default: v12 = google::protobuf::isprint((google::protobuf *)(unsigned int)(char)v16, v17[0]); if ( (v12 & 1) != 0 ) { v14 = v18++; *v14 = v16; } else { *v18 = 92; v18[1] = v16 / 64 + 48; v18[2] = v16 % 64 / 8 + 48; v13 = v18 + 3; v18 += 4; *v13 = v16 % 8 + 48; } break; } } } return result; }
CEscapeAndAppend: SUB RSP,0x78 MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x70],RSI MOV qword ptr [RSP + 0x60],RDX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x50],RAX MOV RDI,qword ptr [RSP + 0x48] MOV RSI,qword ptr [RSP + 0x50] CALL 0x001283d0 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x68] CALL 0x00124080 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x20] CMP RAX,RCX JNZ 0x00128116 MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x10],RAX LEA RDI,[RSP + 0x68] CALL 0x00124070 MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x68] CALL 0x00124080 MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,RAX CALL 0x00119810 JMP 0x001283c5 LAB_00128116: MOV RDI,qword ptr [RSP + 0x60] CALL 0x001147d0 MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] ADD RSI,qword ptr [RSP + 0x58] CALL 0x00113600 MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x40] CALL 0x00113800 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x30],0x0 LAB_00128156: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x68] CALL 0x00124080 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX JNC 0x001283c5 MOV RSI,qword ptr [RSP + 0x30] LEA RDI,[RSP + 0x68] CALL 0x00130530 MOV byte ptr [RSP + 0x2f],AL MOVZX EAX,byte ptr [RSP + 0x2f] MOV dword ptr [RSP + 0x4],EAX SUB EAX,0x9 JZ 0x00128242 JMP 0x001281a2 LAB_001281a2: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0xa JZ 0x001281e8 JMP 0x001281ad LAB_001281ad: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0xd JZ 0x00128215 JMP 0x001281b8 LAB_001281b8: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x22 JZ 0x0012826f JMP 0x001281c7 LAB_001281c7: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x27 JZ 0x0012829c JMP 0x001281d6 LAB_001281d6: MOV EAX,dword ptr [RSP + 0x4] SUB EAX,0x5c JZ 0x001282c9 JMP 0x001282f6 LAB_001281e8: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x6e JMP 0x001283b0 LAB_00128215: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x72 JMP 0x001283b0 LAB_00128242: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x74 JMP 0x001283b0 LAB_0012826f: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x22 JMP 0x001283b0 LAB_0012829c: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x27 JMP 0x001283b0 LAB_001282c9: MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c JMP 0x001283b0 LAB_001282f6: MOVSX EDI,byte ptr [RSP + 0x2f] CALL 0x00130500 TEST AL,0x1 JNZ 0x00128397 MOV RAX,qword ptr [RSP + 0x38] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0x38],RCX MOV byte ptr [RAX],0x5c MOVZX EAX,byte ptr [RSP + 0x2f] MOV ECX,0x40 CDQ IDIV ECX ADD EAX,0x30 MOV CL,AL MOV RAX,qword ptr [RSP + 0x38] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x38],RDX MOV byte ptr [RAX],CL MOVZX EAX,byte ptr [RSP + 0x2f] MOV ECX,0x40 CDQ IDIV ECX MOV EAX,EDX MOV ECX,0x8 CDQ IDIV ECX ADD EAX,0x30 MOV CL,AL MOV RAX,qword ptr [RSP + 0x38] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x38],RDX MOV byte ptr [RAX],CL MOVZX EAX,byte ptr [RSP + 0x2f] MOV ECX,0x8 CDQ IDIV ECX ADD EDX,0x30 MOV CL,DL MOV RAX,qword ptr [RSP + 0x38] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x38],RDX MOV byte ptr [RAX],CL JMP 0x001283ae LAB_00128397: MOV CL,byte ptr [RSP + 0x2f] MOV RAX,qword ptr [RSP + 0x38] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RSP + 0x38],RDX MOV byte ptr [RAX],CL LAB_001283ae: JMP 0x001283b0 LAB_001283b0: JMP 0x001283b2 LAB_001283b2: MOV RAX,qword ptr [RSP + 0x30] ADD RAX,0x1 MOV qword ptr [RSP + 0x30],RAX JMP 0x00128156 LAB_001283c5: ADD RSP,0x78 RET
/* google::protobuf::CEscapeAndAppend(google::protobuf::stringpiece_internal::StringPiece, std::__cxx11::string*) */ void __thiscall google::protobuf::CEscapeAndAppend(protobuf *this,int8 param_2,string *param_3) { byte bVar1; long lVar2; long lVar3; char *pcVar4; ulong uVar5; ulong local_48; byte *local_40; protobuf *local_10; int8 local_8; local_10 = this; local_8 = param_2; lVar2 = CEscapedLength(this,param_2); lVar3 = stringpiece_internal::StringPiece::size((StringPiece *)&local_10); if (lVar2 == lVar3) { pcVar4 = (char *)stringpiece_internal::StringPiece::data((StringPiece *)&local_10); uVar5 = stringpiece_internal::StringPiece::size((StringPiece *)&local_10); std::__cxx11::string::append(param_3,pcVar4,uVar5); } else { std::__cxx11::string::size(param_3); std::__cxx11::string::resize((ulong)param_3); local_40 = (byte *)std::__cxx11::string::operator[]((ulong)param_3); for (local_48 = 0; uVar5 = stringpiece_internal::StringPiece::size((StringPiece *)&local_10), local_48 < uVar5; local_48 = local_48 + 1) { bVar1 = stringpiece_internal::StringPiece::operator[]((StringPiece *)&local_10,local_48); if (bVar1 == 9) { *local_40 = 0x5c; local_40[1] = 0x74; local_40 = local_40 + 2; } else if (bVar1 == 10) { *local_40 = 0x5c; local_40[1] = 0x6e; local_40 = local_40 + 2; } else if (bVar1 == 0xd) { *local_40 = 0x5c; local_40[1] = 0x72; local_40 = local_40 + 2; } else if (bVar1 == 0x22) { *local_40 = 0x5c; local_40[1] = 0x22; local_40 = local_40 + 2; } else if (bVar1 == 0x27) { *local_40 = 0x5c; local_40[1] = 0x27; local_40 = local_40 + 2; } else if (bVar1 == 0x5c) { *local_40 = 0x5c; local_40[1] = 0x5c; local_40 = local_40 + 2; } else { uVar5 = isprint(bVar1); if ((uVar5 & 1) == 0) { *local_40 = 0x5c; local_40[1] = bVar1 / 0x40 + 0x30; local_40[2] = (char)(((ulong)bVar1 % 0x40) / 8) + 0x30; local_40[3] = bVar1 % 8 + 0x30; local_40 = local_40 + 4; } else { *local_40 = bVar1; local_40 = local_40 + 1; } } } } return; }
41,940
test_conc181
eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c
static int test_conc181(MYSQL *mysql) { MYSQL_STMT *stmt; int rc; MYSQL_BIND bind; const char *stmt_str= "SELECT a FROM t1"; float f=1; my_bool err= 0; rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "CREATE TABLE t1 (a int)"); check_mysql_rc(rc, mysql); rc= mysql_query(mysql, "INSERT INTO t1 VALUES(1073741825)"); check_mysql_rc(rc, mysql); stmt= mysql_stmt_init(mysql); rc= mysql_stmt_prepare(stmt, SL(stmt_str)); check_stmt_rc(rc, stmt); rc= mysql_stmt_execute(stmt); check_stmt_rc(rc, stmt); memset(&bind, 0, sizeof(MYSQL_BIND)); bind.buffer= &f; bind.error= &err; bind.buffer_type= MYSQL_TYPE_FLOAT; rc= mysql_stmt_bind_result(stmt, &bind); check_stmt_rc(rc, stmt); rc= mysql_stmt_fetch(stmt); diag("rc=%d err=%d float=%f, %d", rc, err, f, MYSQL_DATA_TRUNCATED); rc= mysql_stmt_close(stmt); rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1"); check_mysql_rc(rc, mysql); return OK; }
O0
c
test_conc181: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x10(%rbp) leaq 0x4c23f(%rip), %rax # 0x66525 movq %rax, -0x98(%rbp) movss 0x4ad0f(%rip), %xmm0 # 0x65004 movss %xmm0, -0x9c(%rbp) movb $0x0, -0x9d(%rbp) movq -0x10(%rbp), %rdi leaq 0x4c327(%rip), %rsi # 0x66636 callq 0x38a70 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a375 movl -0x1c(%rbp), %eax movl %eax, -0xac(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3f0 movq %rax, -0xa8(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3c0 movl -0xac(%rbp), %esi movq -0xa8(%rbp), %rdx movl %eax, %ecx leaq 0x4b380(%rip), %rdi # 0x656d5 leaq 0x4bd11(%rip), %r8 # 0x6606d movl $0x1127, %r9d # imm = 0x1127 movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a377 movq -0x10(%rbp), %rdi leaq 0x4c168(%rip), %rsi # 0x664ea callq 0x38a70 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a3e8 movl -0x1c(%rbp), %eax movl %eax, -0xbc(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3f0 movq %rax, -0xb8(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3c0 movl -0xbc(%rbp), %esi movq -0xb8(%rbp), %rdx movl %eax, %ecx leaq 0x4b30d(%rip), %rdi # 0x656d5 leaq 0x4bc9e(%rip), %r8 # 0x6606d movl $0x1129, %r9d # imm = 0x1129 movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a3ea movq -0x10(%rbp), %rdi leaq 0x4ce4d(%rip), %rsi # 0x67242 callq 0x38a70 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a45b movl -0x1c(%rbp), %eax movl %eax, -0xcc(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3f0 movq %rax, -0xc8(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3c0 movl -0xcc(%rbp), %esi movq -0xc8(%rbp), %rdx movl %eax, %ecx leaq 0x4b29a(%rip), %rdi # 0x656d5 leaq 0x4bc2b(%rip), %r8 # 0x6606d movl $0x112b, %r9d # imm = 0x112B movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a45d movq -0x10(%rbp), %rdi callq 0x44950 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0xe0(%rbp) movq -0x98(%rbp), %rax movq %rax, -0xd8(%rbp) movq -0x98(%rbp), %rdi callq 0x141a0 movq -0xe0(%rbp), %rdi movq -0xd8(%rbp), %rsi movq %rax, %rdx callq 0x45070 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a4e0 movq -0x18(%rbp), %rdi callq 0x43fd0 movq %rax, %rsi leaq 0x4b0cf(%rip), %rdi # 0x65590 leaq 0x4bba5(%rip), %rdx # 0x6606d movl $0x112f, %ecx # imm = 0x112F movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a4e2 movq -0x18(%rbp), %rdi callq 0x46580 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a526 movq -0x18(%rbp), %rdi callq 0x43fd0 movq %rax, %rsi leaq 0x4b089(%rip), %rdi # 0x65590 leaq 0x4bb5f(%rip), %rdx # 0x6606d movl $0x1132, %ecx # imm = 0x1132 movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a528 leaq -0x90(%rbp), %rdi xorl %esi, %esi movl $0x70, %edx callq 0x14260 leaq -0x9c(%rbp), %rax movq %rax, -0x80(%rbp) leaq -0x9d(%rbp), %rax movq %rax, -0x78(%rbp) movl $0x4, -0x30(%rbp) movq -0x18(%rbp), %rdi leaq -0x90(%rbp), %rsi callq 0x43940 movsbl %al, %eax movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a5a6 movq -0x18(%rbp), %rdi callq 0x43fd0 movq %rax, %rsi leaq 0x4b009(%rip), %rdi # 0x65590 leaq 0x4badf(%rip), %rdx # 0x6606d movl $0x1139, %ecx # imm = 0x1139 movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a5a8 movq -0x18(%rbp), %rdi callq 0x44020 movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %esi movsbl -0x9d(%rbp), %edx movss -0x9c(%rbp), %xmm0 cvtss2sd %xmm0, %xmm0 leaq 0x4cc93(%rip), %rdi # 0x67264 movl $0x65, %ecx movb $0x1, %al callq 0x2fc40 movq -0x18(%rbp), %rdi callq 0x43eb0 movsbl %al, %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rdi leaq 0x4c03f(%rip), %rsi # 0x66636 callq 0x38a70 movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) je 0x1a65a movl -0x1c(%rbp), %eax movl %eax, -0xec(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3f0 movq %rax, -0xe8(%rbp) movq -0x10(%rbp), %rdi callq 0x3c3c0 movl -0xec(%rbp), %esi movq -0xe8(%rbp), %rdx movl %eax, %ecx leaq 0x4b098(%rip), %rdi # 0x656d5 leaq 0x4ba29(%rip), %r8 # 0x6606d movl $0x1140, %r9d # imm = 0x1140 movb $0x0, %al callq 0x2fc40 movl $0x1, -0x4(%rbp) jmp 0x1a663 jmp 0x1a65c movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xf0, %rsp popq %rbp retq nop
test_conc181: push rbp mov rbp, rsp sub rsp, 0F0h mov [rbp+var_10], rdi lea rax, aSelectAFromT1; "SELECT a FROM t1" mov [rbp+var_98], rax movss xmm0, cs:dword_65004 movss [rbp+var_9C], xmm0 mov [rbp+var_9D], 0 mov rdi, [rbp+var_10] lea rsi, aDropTableIfExi_0; "DROP TABLE IF EXISTS t1" call mysql_query mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A375 mov eax, [rbp+var_1C] mov [rbp+var_AC], eax mov rdi, [rbp+var_10] call mysql_error mov [rbp+var_A8], rax mov rdi, [rbp+var_10] call mysql_errno mov esi, [rbp+var_AC] mov rdx, [rbp+var_A8] mov ecx, eax lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov r9d, 1127h mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A375: jmp short $+2 loc_1A377: mov rdi, [rbp+var_10] lea rsi, aCreateTableT1A; "CREATE TABLE t1 (a int)" call mysql_query mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A3E8 mov eax, [rbp+var_1C] mov [rbp+var_BC], eax mov rdi, [rbp+var_10] call mysql_error mov [rbp+var_B8], rax mov rdi, [rbp+var_10] call mysql_errno mov esi, [rbp+var_BC] mov rdx, [rbp+var_B8] mov ecx, eax lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov r9d, 1129h mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A3E8: jmp short $+2 loc_1A3EA: mov rdi, [rbp+var_10] lea rsi, aInsertIntoT1Va_4; "INSERT INTO t1 VALUES(1073741825)" call mysql_query mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A45B mov eax, [rbp+var_1C] mov [rbp+var_CC], eax mov rdi, [rbp+var_10] call mysql_error mov [rbp+var_C8], rax mov rdi, [rbp+var_10] call mysql_errno mov esi, [rbp+var_CC] mov rdx, [rbp+var_C8] mov ecx, eax lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov r9d, 112Bh mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A45B: jmp short $+2 loc_1A45D: mov rdi, [rbp+var_10] call mysql_stmt_init mov [rbp+var_18], rax mov rax, [rbp+var_18] mov [rbp+var_E0], rax mov rax, [rbp+var_98] mov [rbp+var_D8], rax mov rdi, [rbp+var_98] call _strlen mov rdi, [rbp+var_E0] mov rsi, [rbp+var_D8] mov rdx, rax call mysql_stmt_prepare mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A4E0 mov rdi, [rbp+var_18] call mysql_stmt_error mov rsi, rax lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 112Fh mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A4E0: jmp short $+2 loc_1A4E2: mov rdi, [rbp+var_18] call mysql_stmt_execute mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A526 mov rdi, [rbp+var_18] call mysql_stmt_error mov rsi, rax lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1132h mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A526: jmp short $+2 loc_1A528: lea rdi, [rbp+var_90] xor esi, esi mov edx, 70h ; 'p' call _memset lea rax, [rbp+var_9C] mov [rbp+var_80], rax lea rax, [rbp+var_9D] mov [rbp+var_78], rax mov [rbp+var_30], 4 mov rdi, [rbp+var_18] lea rsi, [rbp+var_90] call mysql_stmt_bind_result movsx eax, al mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A5A6 mov rdi, [rbp+var_18] call mysql_stmt_error mov rsi, rax lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 1139h mov al, 0 call diag mov [rbp+var_4], 1 jmp loc_1A663 loc_1A5A6: jmp short $+2 loc_1A5A8: mov rdi, [rbp+var_18] call mysql_stmt_fetch mov [rbp+var_1C], eax mov esi, [rbp+var_1C] movsx edx, [rbp+var_9D] movss xmm0, [rbp+var_9C] cvtss2sd xmm0, xmm0 lea rdi, aRcDErrDFloatFD; "rc=%d err=%d float=%f, %d" mov ecx, 65h ; 'e' mov al, 1 call diag mov rdi, [rbp+var_18] call mysql_stmt_close movsx eax, al mov [rbp+var_1C], eax mov rdi, [rbp+var_10] lea rsi, aDropTableIfExi_0; "DROP TABLE IF EXISTS t1" call mysql_query mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jz short loc_1A65A mov eax, [rbp+var_1C] mov [rbp+var_EC], eax mov rdi, [rbp+var_10] call mysql_error mov [rbp+var_E8], rax mov rdi, [rbp+var_10] call mysql_errno mov esi, [rbp+var_EC] mov rdx, [rbp+var_E8] mov ecx, eax lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov r9d, 1140h mov al, 0 call diag mov [rbp+var_4], 1 jmp short loc_1A663 loc_1A65A: jmp short $+2 loc_1A65C: mov [rbp+var_4], 0 loc_1A663: mov eax, [rbp+var_4] add rsp, 0F0h pop rbp retn
long long test_conc181(long long a1) { int v1; // eax int v2; // eax int v3; // eax long long v4; // rax int v5; // eax int v6; // r8d int v7; // r9d int v8; // eax int v9; // r8d int v10; // r9d char v11; // al int v12; // eax int v13; // r8d int v14; // r9d double v15; // xmm0_8 int v16; // r8d int v17; // r9d int v18; // eax int v20; // [rsp+4h] [rbp-ECh] int v21; // [rsp+8h] [rbp-E8h] int v22; // [rsp+28h] [rbp-C8h] int v23; // [rsp+38h] [rbp-B8h] int v24; // [rsp+48h] [rbp-A8h] char v25; // [rsp+53h] [rbp-9Dh] BYREF float v26; // [rsp+54h] [rbp-9Ch] BYREF const char *v27; // [rsp+58h] [rbp-98h] _BYTE v28[16]; // [rsp+60h] [rbp-90h] BYREF float *v29; // [rsp+70h] [rbp-80h] char *v30; // [rsp+78h] [rbp-78h] int v31; // [rsp+C0h] [rbp-30h] int v32; // [rsp+D4h] [rbp-1Ch] long long v33; // [rsp+D8h] [rbp-18h] long long v34; // [rsp+E0h] [rbp-10h] v34 = a1; v27 = "SELECT a FROM t1"; v26 = 1.0; v25 = 0; v32 = mysql_query(a1, "DROP TABLE IF EXISTS t1"); if ( v32 ) { v24 = mysql_error(v34); v1 = mysql_errno(v34); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v32, v24, v1, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4391); return 1; } else { v32 = mysql_query(v34, "CREATE TABLE t1 (a int)"); if ( v32 ) { v23 = mysql_error(v34); v2 = mysql_errno(v34); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v32, v23, v2, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4393); return 1; } else { v32 = mysql_query(v34, "INSERT INTO t1 VALUES(1073741825)"); if ( v32 ) { v22 = mysql_error(v34); v3 = mysql_errno(v34); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v32, v22, v3, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4395); return 1; } else { v33 = mysql_stmt_init(v34); v4 = strlen(v27); if ( (unsigned int)mysql_stmt_prepare(v33, v27, v4) ) { v5 = mysql_stmt_error(v33); diag( (unsigned int)"Error: %s (%s: %d)", v5, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4399, v6, v7); return 1; } else { v32 = mysql_stmt_execute(v33); if ( v32 ) { v8 = mysql_stmt_error(v33); diag( (unsigned int)"Error: %s (%s: %d)", v8, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4402, v9, v10); return 1; } else { memset(v28, 0LL, 112LL); v29 = &v26; v30 = &v25; v31 = 4; v11 = mysql_stmt_bind_result(v33, v28); v32 = v11; if ( v11 ) { v12 = mysql_stmt_error(v33); diag( (unsigned int)"Error: %s (%s: %d)", v12, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4409, v13, v14); return 1; } else { v32 = mysql_stmt_fetch(v33); v15 = v26; diag((unsigned int)"rc=%d err=%d float=%f, %d", v32, v25, 101, v16, v17); v32 = (char)mysql_stmt_close(v33); v32 = mysql_query(v34, "DROP TABLE IF EXISTS t1", v15); if ( v32 ) { v20 = v32; v21 = mysql_error(v34); v18 = mysql_errno(v34); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v20, v21, v18, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 4416); return 1; } else { return 0; } } } } } } } }
test_conc181: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 MOV qword ptr [RBP + -0x10],RDI LEA RAX,[0x166525] MOV qword ptr [RBP + -0x98],RAX MOVSS XMM0,dword ptr [0x00165004] MOVSS dword ptr [RBP + -0x9c],XMM0 MOV byte ptr [RBP + -0x9d],0x0 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x166636] CALL 0x00138a70 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a375 MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0xac],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3f0 MOV qword ptr [RBP + -0xa8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3c0 MOV ESI,dword ptr [RBP + -0xac] MOV RDX,qword ptr [RBP + -0xa8] MOV ECX,EAX LEA RDI,[0x1656d5] LEA R8,[0x16606d] MOV R9D,0x1127 MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a375: JMP 0x0011a377 LAB_0011a377: MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x1664ea] CALL 0x00138a70 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a3e8 MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0xbc],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3f0 MOV qword ptr [RBP + -0xb8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3c0 MOV ESI,dword ptr [RBP + -0xbc] MOV RDX,qword ptr [RBP + -0xb8] MOV ECX,EAX LEA RDI,[0x1656d5] LEA R8,[0x16606d] MOV R9D,0x1129 MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a3e8: JMP 0x0011a3ea LAB_0011a3ea: MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x167242] CALL 0x00138a70 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a45b MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0xcc],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3f0 MOV qword ptr [RBP + -0xc8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3c0 MOV ESI,dword ptr [RBP + -0xcc] MOV RDX,qword ptr [RBP + -0xc8] MOV ECX,EAX LEA RDI,[0x1656d5] LEA R8,[0x16606d] MOV R9D,0x112b MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a45b: JMP 0x0011a45d LAB_0011a45d: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00144950 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0xe0],RAX MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0xd8],RAX MOV RDI,qword ptr [RBP + -0x98] CALL 0x001141a0 MOV RDI,qword ptr [RBP + -0xe0] MOV RSI,qword ptr [RBP + -0xd8] MOV RDX,RAX CALL 0x00145070 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a4e0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00143fd0 MOV RSI,RAX LEA RDI,[0x165590] LEA RDX,[0x16606d] MOV ECX,0x112f MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a4e0: JMP 0x0011a4e2 LAB_0011a4e2: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00146580 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a526 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00143fd0 MOV RSI,RAX LEA RDI,[0x165590] LEA RDX,[0x16606d] MOV ECX,0x1132 MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a526: JMP 0x0011a528 LAB_0011a528: LEA RDI,[RBP + -0x90] XOR ESI,ESI MOV EDX,0x70 CALL 0x00114260 LEA RAX,[RBP + -0x9c] MOV qword ptr [RBP + -0x80],RAX LEA RAX,[RBP + -0x9d] MOV qword ptr [RBP + -0x78],RAX MOV dword ptr [RBP + -0x30],0x4 MOV RDI,qword ptr [RBP + -0x18] LEA RSI,[RBP + -0x90] CALL 0x00143940 MOVSX EAX,AL MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a5a6 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00143fd0 MOV RSI,RAX LEA RDI,[0x165590] LEA RDX,[0x16606d] MOV ECX,0x1139 MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a5a6: JMP 0x0011a5a8 LAB_0011a5a8: MOV RDI,qword ptr [RBP + -0x18] CALL 0x00144020 MOV dword ptr [RBP + -0x1c],EAX MOV ESI,dword ptr [RBP + -0x1c] MOVSX EDX,byte ptr [RBP + -0x9d] MOVSS XMM0,dword ptr [RBP + -0x9c] CVTSS2SD XMM0,XMM0 LEA RDI,[0x167264] MOV ECX,0x65 MOV AL,0x1 CALL 0x0012fc40 MOV RDI,qword ptr [RBP + -0x18] CALL 0x00143eb0 MOVSX EAX,AL MOV dword ptr [RBP + -0x1c],EAX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x166636] CALL 0x00138a70 MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JZ 0x0011a65a MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0xec],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3f0 MOV qword ptr [RBP + -0xe8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x0013c3c0 MOV ESI,dword ptr [RBP + -0xec] MOV RDX,qword ptr [RBP + -0xe8] MOV ECX,EAX LEA RDI,[0x1656d5] LEA R8,[0x16606d] MOV R9D,0x1140 MOV AL,0x0 CALL 0x0012fc40 MOV dword ptr [RBP + -0x4],0x1 JMP 0x0011a663 LAB_0011a65a: JMP 0x0011a65c LAB_0011a65c: MOV dword ptr [RBP + -0x4],0x0 LAB_0011a663: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xf0 POP RBP RET
int4 test_conc181(int8 param_1) { char *pcVar1; char cVar2; int iVar3; int4 uVar4; int8 uVar5; size_t sVar6; char local_a5; float local_a4; char *local_a0; int1 local_98 [16]; float *local_88; char *local_80; int4 local_38; int local_24; int8 local_20; int8 local_18; int4 local_c; local_a0 = "SELECT a FROM t1"; local_a4 = DAT_00165004; local_a5 = '\0'; local_18 = param_1; iVar3 = mysql_query(param_1,"DROP TABLE IF EXISTS t1"); local_24 = iVar3; if (iVar3 == 0) { iVar3 = mysql_query(local_18,"CREATE TABLE t1 (a int)"); local_24 = iVar3; if (iVar3 == 0) { iVar3 = mysql_query(local_18,"INSERT INTO t1 VALUES(1073741825)"); local_24 = iVar3; if (iVar3 == 0) { uVar5 = mysql_stmt_init(local_18); pcVar1 = local_a0; local_20 = uVar5; sVar6 = strlen(local_a0); local_24 = mysql_stmt_prepare(uVar5,pcVar1,sVar6); if (local_24 == 0) { local_24 = mysql_stmt_execute(local_20); if (local_24 == 0) { memset(local_98,0,0x70); local_88 = &local_a4; local_80 = &local_a5; local_38 = 4; cVar2 = mysql_stmt_bind_result(local_20,local_98); local_24 = (int)cVar2; if (local_24 == 0) { local_24 = mysql_stmt_fetch(local_20); diag((double)local_a4,"rc=%d err=%d float=%f, %d",local_24,(int)local_a5,0x65); cVar2 = mysql_stmt_close(local_20); local_24 = (int)cVar2; iVar3 = mysql_query(local_18,"DROP TABLE IF EXISTS t1"); if (iVar3 == 0) { local_c = 0; } else { local_24 = iVar3; uVar5 = mysql_error(local_18); uVar4 = mysql_errno(local_18); diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c" ,0x1140); local_c = 1; } } else { uVar5 = mysql_stmt_error(local_20); diag("Error: %s (%s: %d)",uVar5, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c" ,0x1139); local_c = 1; } } else { uVar5 = mysql_stmt_error(local_20); diag("Error: %s (%s: %d)",uVar5, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c" ,0x1132); local_c = 1; } } else { uVar5 = mysql_stmt_error(local_20); diag("Error: %s (%s: %d)",uVar5, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 0x112f); local_c = 1; } } else { uVar5 = mysql_error(local_18); uVar4 = mysql_errno(local_18); diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 0x112b); local_c = 1; } } else { uVar5 = mysql_error(local_18); uVar4 = mysql_errno(local_18); diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c", 0x1129); local_c = 1; } } else { uVar5 = mysql_error(local_18); uVar4 = mysql_errno(local_18); diag("Error (%d): %s (%d) in %s line %d",iVar3,uVar5,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/ps_bugs.c",0x1127) ; local_c = 1; } return local_c; }
41,941
ma_keylength_part
eloqsql/storage/maria/ma_search.c
uint _ma_keylength_part(MARIA_KEYDEF *keyinfo, register const uchar *key, HA_KEYSEG *end) { reg1 HA_KEYSEG *keyseg; const uchar *start= key; for (keyseg=keyinfo->seg ; keyseg != end ; keyseg++) { if (keyseg->flag & HA_NULL_PART) if (!*key++) continue; if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART)) { uint length; get_key_length(length,key); key+=length; } else key+= keyseg->length; } return (uint) (key-start); }
O0
c
ma_keylength_part: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rax movq 0xc0(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax cmpq -0x18(%rbp), %rax je 0x9966d movq -0x20(%rbp), %rax movzwl 0x12(%rax), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x995d0 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) cmpb $0x0, (%rax) jne 0x995ce jmp 0x9965c jmp 0x995d0 movq -0x20(%rbp), %rax movzwl 0x12(%rax), %eax andl $0x29, %eax cmpl $0x0, %eax je 0x99644 movq -0x10(%rbp), %rax movzbl (%rax), %eax cmpl $0xff, %eax je 0x99605 movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movzbl (%rax), %eax movl %eax, -0x2c(%rbp) jmp 0x99632 movq -0x10(%rbp), %rax movzbl 0x2(%rax), %eax movzwl %ax, %eax movq -0x10(%rbp), %rcx movzbl 0x1(%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax addq $0x3, %rax movq %rax, -0x10(%rbp) movl -0x2c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x9965a movq -0x20(%rbp), %rax movzwl 0x14(%rax), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x9965c movq -0x20(%rbp), %rax addq $0x20, %rax movq %rax, -0x20(%rbp) jmp 0x99597 movq -0x10(%rbp), %rax movq -0x28(%rbp), %rcx subq %rcx, %rax popq %rbp retq nopw (%rax,%rax)
_ma_keylength_part: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_8] mov rax, [rax+0C0h] mov [rbp+var_20], rax loc_99597: mov rax, [rbp+var_20] cmp rax, [rbp+var_18] jz loc_9966D mov rax, [rbp+var_20] movzx eax, word ptr [rax+12h] and eax, 10h cmp eax, 0 jz short loc_995D0 mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx cmp byte ptr [rax], 0 jnz short loc_995CE jmp loc_9965C loc_995CE: jmp short $+2 loc_995D0: mov rax, [rbp+var_20] movzx eax, word ptr [rax+12h] and eax, 29h cmp eax, 0 jz short loc_99644 mov rax, [rbp+var_10] movzx eax, byte ptr [rax] cmp eax, 0FFh jz short loc_99605 mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx movzx eax, byte ptr [rax] mov [rbp+var_2C], eax jmp short loc_99632 loc_99605: mov rax, [rbp+var_10] movzx eax, byte ptr [rax+2] movzx eax, ax mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+1] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax mov [rbp+var_2C], eax mov rax, [rbp+var_10] add rax, 3 mov [rbp+var_10], rax loc_99632: mov ecx, [rbp+var_2C] mov rax, [rbp+var_10] mov ecx, ecx add rax, rcx mov [rbp+var_10], rax jmp short loc_9965A loc_99644: mov rax, [rbp+var_20] movzx ecx, word ptr [rax+14h] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax loc_9965A: jmp short $+2 loc_9965C: mov rax, [rbp+var_20] add rax, 20h ; ' ' mov [rbp+var_20], rax jmp loc_99597 loc_9966D: mov rax, [rbp+var_10] mov rcx, [rbp+var_28] sub rax, rcx pop rbp retn
unsigned __int8 * ma_keylength_part(long long a1, unsigned __int8 *a2, long long a3) { unsigned __int8 *v3; // rax unsigned __int8 *v4; // rax int v6; // [rsp+0h] [rbp-2Ch] long long i; // [rsp+Ch] [rbp-20h] unsigned __int8 *v8; // [rsp+1Ch] [rbp-10h] unsigned __int8 *v9; // [rsp+1Ch] [rbp-10h] v8 = a2; for ( i = *(_QWORD *)(a1 + 192); i != a3; i += 32LL ) { if ( (*(_WORD *)(i + 18) & 0x10) != 0 ) { v3 = v8++; if ( !*v3 ) continue; } if ( (*(_WORD *)(i + 18) & 0x29) != 0 ) { if ( *v8 == 255 ) { v6 = _byteswap_ushort(*(_WORD *)(v8 + 1)); v9 = v8 + 3; } else { v4 = v8; v9 = v8 + 1; v6 = *v4; } v8 = &v9[v6]; } else { v8 += *(unsigned __int16 *)(i + 20); } } return (unsigned __int8 *)(v8 - a2); }
_ma_keylength_part: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xc0] MOV qword ptr [RBP + -0x20],RAX LAB_00199597: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x18] JZ 0x0019966d MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0x12] AND EAX,0x10 CMP EAX,0x0 JZ 0x001995d0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX CMP byte ptr [RAX],0x0 JNZ 0x001995ce JMP 0x0019965c LAB_001995ce: JMP 0x001995d0 LAB_001995d0: MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX + 0x12] AND EAX,0x29 CMP EAX,0x0 JZ 0x00199644 MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX] CMP EAX,0xff JZ 0x00199605 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX JMP 0x00199632 LAB_00199605: MOV RAX,qword ptr [RBP + -0x10] MOVZX EAX,byte ptr [RAX + 0x2] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x1] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 MOV qword ptr [RBP + -0x10],RAX LAB_00199632: MOV ECX,dword ptr [RBP + -0x2c] MOV RAX,qword ptr [RBP + -0x10] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0019965a LAB_00199644: MOV RAX,qword ptr [RBP + -0x20] MOVZX ECX,word ptr [RAX + 0x14] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX LAB_0019965a: JMP 0x0019965c LAB_0019965c: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x20 MOV qword ptr [RBP + -0x20],RAX JMP 0x00199597 LAB_0019966d: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x28] SUB RAX,RCX POP RBP RET
long _ma_keylength_part(long param_1,byte *param_2,long param_3) { byte bVar1; byte *pbVar2; uint local_34; long local_28; byte *local_18; local_18 = param_2; for (local_28 = *(long *)(param_1 + 0xc0); local_28 != param_3; local_28 = local_28 + 0x20) { if (((*(ushort *)(local_28 + 0x12) & 0x10) == 0) || (pbVar2 = local_18 + 1, bVar1 = *local_18, local_18 = pbVar2, bVar1 != 0)) { if ((*(ushort *)(local_28 + 0x12) & 0x29) == 0) { local_18 = local_18 + (int)(uint)*(ushort *)(local_28 + 0x14); } else { if (*local_18 == 0xff) { local_34 = (uint)CONCAT11(local_18[1],local_18[2]); local_18 = local_18 + 3; } else { local_34 = (uint)*local_18; local_18 = local_18 + 1; } local_18 = local_18 + local_34; } } } return (long)local_18 - (long)param_2; }
41,942
js_std_await
bluesky950520[P]quickjs/quickjs-libc.c
JSValue js_std_await(JSContext *ctx, JSValue obj) { JSRuntime *rt = JS_GetRuntime(ctx); JSThreadState *ts = js_get_thread_state(rt); JSValue ret; int state; for(;;) { state = JS_PromiseState(ctx, obj); if (state == JS_PROMISE_FULFILLED) { ret = JS_PromiseResult(ctx, obj); JS_FreeValue(ctx, obj); break; } else if (state == JS_PROMISE_REJECTED) { ret = JS_Throw(ctx, JS_PromiseResult(ctx, obj)); JS_FreeValue(ctx, obj); break; } else if (state == JS_PROMISE_PENDING) { JSContext *ctx1; int err; err = JS_ExecutePendingJob(JS_GetRuntime(ctx), &ctx1); if (err < 0) { js_std_dump_error(ctx1); } if (ts->can_js_os_poll) js_os_poll(ctx); } else { /* not a promise */ ret = obj; break; } } return ret; }
O2
c
js_std_await: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 callq 0x1dd35 movq %rax, %rdi callq 0x13e3a movq %rax, %r12 leaq 0x8(%rsp), %r13 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x334c8 testl %eax, %eax jne 0x14654 movq %r15, %rdi callq 0x1dd35 movq %rax, %rdi movq %r13, %rsi callq 0x1bb0a testl %eax, %eax jns 0x14642 movq 0x8(%rsp), %rdi callq 0x1404c cmpl $0x0, 0x60(%r12) je 0x1460f movq %r15, %rdi callq 0x1413a jmp 0x1460f cmpl $0x2, %eax je 0x1466e cmpl $0x1, %eax jne 0x146a1 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x334e3 jmp 0x14687 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x334e3 movq %r15, %rdi movq %rax, %rsi callq 0x1fff6 movq %rax, %r12 movq %rdx, %r13 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1bbce movq %r12, %r14 movq %r13, %rbx movq %r14, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_std_await: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov rbx, rdx mov r14, rsi mov r15, rdi call JS_GetRuntime mov rdi, rax call js_get_thread_state mov r12, rax lea r13, [rsp+38h+var_30] loc_1460F: mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_PromiseState test eax, eax jnz short loc_14654 mov rdi, r15 call JS_GetRuntime mov rdi, rax mov rsi, r13 call JS_ExecutePendingJob test eax, eax jns short loc_14642 mov rdi, [rsp+38h+var_30] call js_std_dump_error loc_14642: cmp dword ptr [r12+60h], 0 jz short loc_1460F mov rdi, r15 call js_os_poll jmp short loc_1460F loc_14654: cmp eax, 2 jz short loc_1466E cmp eax, 1 jnz short loc_146A1 mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_PromiseResult jmp short loc_14687 loc_1466E: mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_PromiseResult mov rdi, r15 mov rsi, rax call JS_Throw loc_14687: mov r12, rax mov r13, rdx mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_FreeValue mov r14, r12 mov rbx, r13 loc_146A1: mov rax, r14 mov rdx, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long js_std_await(long long a1, long long a2, long long a3) { long long v4; // r14 int Runtime; // eax int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d long long thread_state; // r12 int v11; // eax long long v12; // rax long long v13; // rax long long v14; // rax long long v15; // r12 char v17; // [rsp+0h] [rbp-38h] long long v18[6]; // [rsp+8h] [rbp-30h] BYREF v4 = a2; Runtime = JS_GetRuntime(a1); thread_state = js_get_thread_state(Runtime, a2, v6, v7, v8, v9, v17); while ( 1 ) { v11 = JS_PromiseState(a1, a2, a3); if ( v11 ) break; v12 = JS_GetRuntime(a1); if ( (int)JS_ExecutePendingJob(v12, v18) < 0 ) js_std_dump_error(v18[0]); if ( *(_DWORD *)(thread_state + 96) ) js_os_poll(a1, (long long)v18); } if ( v11 == 2 ) { v14 = JS_PromiseResult(a1, a2, a3); v13 = JS_Throw(a1, v14); goto LABEL_11; } if ( v11 == 1 ) { v13 = JS_PromiseResult(a1, a2, a3); LABEL_11: v15 = v13; JS_FreeValue(a1, a2); return v15; } return v4; }
js_std_await: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDX MOV R14,RSI MOV R15,RDI CALL 0x0011dd35 MOV RDI,RAX CALL 0x00113e3a MOV R12,RAX LEA R13,[RSP + 0x8] LAB_0011460f: MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x001334c8 TEST EAX,EAX JNZ 0x00114654 MOV RDI,R15 CALL 0x0011dd35 MOV RDI,RAX MOV RSI,R13 CALL 0x0011bb0a TEST EAX,EAX JNS 0x00114642 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0011404c LAB_00114642: CMP dword ptr [R12 + 0x60],0x0 JZ 0x0011460f MOV RDI,R15 CALL 0x0011413a JMP 0x0011460f LAB_00114654: CMP EAX,0x2 JZ 0x0011466e CMP EAX,0x1 JNZ 0x001146a1 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x001334e3 JMP 0x00114687 LAB_0011466e: MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x001334e3 MOV RDI,R15 MOV RSI,RAX CALL 0x0011fff6 LAB_00114687: MOV R12,RAX MOV R13,RDX MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011bbce MOV R14,R12 MOV RBX,R13 LAB_001146a1: MOV RAX,R14 MOV RDX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_std_await(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int8 uVar2; long lVar3; int1 auVar4 [16]; int8 local_30; auVar4._8_8_ = param_3; auVar4._0_8_ = param_2; uVar2 = JS_GetRuntime(); lVar3 = js_get_thread_state(uVar2); while (iVar1 = JS_PromiseState(param_1,param_2,param_3), iVar1 == 0) { uVar2 = JS_GetRuntime(param_1); iVar1 = JS_ExecutePendingJob(uVar2,&local_30); if (iVar1 < 0) { js_std_dump_error(local_30); } if (*(int *)(lVar3 + 0x60) != 0) { js_os_poll(param_1); } } if (iVar1 == 2) { uVar2 = JS_PromiseResult(param_1,param_2,param_3); auVar4 = JS_Throw(param_1,uVar2); } else { if (iVar1 != 1) { return auVar4; } auVar4 = JS_PromiseResult(param_1,param_2,param_3); } JS_FreeValue(param_1,param_2,param_3); return auVar4; }
41,943
translog_is_file
eloqsql/storage/maria/ma_loghandler.c
my_bool translog_is_file(uint file_no) { MY_STAT stat_buff; char path[FN_REFLEN]; return (MY_TEST(mysql_file_stat(key_file_translog, translog_filename_by_fileno(file_no, path), &stat_buff, MYF(0)))); }
O3
c
translog_is_file: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x2f0, %rsp # imm = 0x2F0 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0x3dd673(%rip), %rax # 0x425504 movl (%rax), %ebx leaq -0x230(%rbp), %r14 movq %r14, %rsi callq 0x4314d leaq 0x366b6f(%rip), %r12 # 0x3aea18 movq (%r12), %rax leaq -0x310(%rbp), %rdi leaq -0x238(%rbp), %r15 movl %ebx, %esi movl $0xb, %edx movq %r14, %rcx movq %r15, %r8 callq *0x148(%rax) movq %rax, (%r15) testq %rax, %rax jne 0x47f13 leaq -0x230(%rbp), %rdi leaq -0x2c8(%rbp), %rsi xorl %edx, %edx callq 0xbf003 movq %rax, %rbx testq %rbx, %rbx setne %al movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x47f5a addq $0x2f0, %rsp # imm = 0x2F0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq (%r12), %rcx leaq 0xb13ca(%rip), %rsi # 0xf92e8 movq %rax, %rdi movl $0x20de, %edx # imm = 0x20DE callq *0x1f0(%rcx) leaq -0x230(%rbp), %rdi leaq -0x2c8(%rbp), %rsi xorl %edx, %edx callq 0xbf003 movq %rax, %rbx movq (%r12), %rax movq -0x238(%rbp), %rdi movq %rbx, %rsi callq *0x1f8(%rax) jmp 0x47eee callq 0x2a280
translog_is_file: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 2F0h mov rax, fs:28h mov [rbp+var_28], rax lea rax, key_file_translog mov ebx, [rax] lea r14, [rbp+var_230] mov rsi, r14 call translog_filename_by_fileno lea r12, PSI_server mov rax, [r12] lea rdi, [rbp+var_310] lea r15, [rbp+var_238] mov esi, ebx mov edx, 0Bh mov rcx, r14 mov r8, r15 call qword ptr [rax+148h] mov [r15], rax test rax, rax jnz short loc_47F13 lea rdi, [rbp+var_230] lea rsi, [rbp+var_2C8] xor edx, edx call my_stat mov rbx, rax loc_47EEE: test rbx, rbx setnz al mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_47F5A add rsp, 2F0h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_47F13: mov rcx, [r12] lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rax mov edx, 20DEh call qword ptr [rcx+1F0h] lea rdi, [rbp+var_230] lea rsi, [rbp+var_2C8] xor edx, edx call my_stat mov rbx, rax mov rax, [r12] mov rdi, [rbp+var_238] mov rsi, rbx call qword ptr [rax+1F8h] jmp short loc_47EEE loc_47F5A: call ___stack_chk_fail
bool translog_is_file(unsigned int a1, long long a2, long long a3, long long a4, int a5, int a6) { unsigned int v6; // ebx long long v7; // rax long long v8; // rbx _BYTE v10[72]; // [rsp+0h] [rbp-310h] BYREF _BYTE v11[144]; // [rsp+48h] [rbp-2C8h] BYREF long long v12; // [rsp+D8h] [rbp-238h] BYREF _BYTE v13[520]; // [rsp+E0h] [rbp-230h] BYREF unsigned long long v14; // [rsp+2E8h] [rbp-28h] v14 = __readfsqword(0x28u); v6 = key_file_translog; translog_filename_by_fileno(a1, (long long)v13, a3, a4, a5, a6); v7 = ((long long ( *)(_BYTE *, _QWORD, long long, _BYTE *, long long *))PSI_server[41])(v10, v6, 11LL, v13, &v12); v12 = v7; if ( v7 ) { ((void ( *)(long long, const char *, long long))PSI_server[62])( v7, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 8414LL); v8 = my_stat(v13, v11, 0LL); ((void ( *)(long long, long long))PSI_server[63])(v12, v8); } else { v8 = my_stat(v13, v11, 0LL); } return v8 != 0; }
translog_is_file: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x2f0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RAX,[0x525504] MOV EBX,dword ptr [RAX] LEA R14,[RBP + -0x230] MOV RSI,R14 CALL 0x0014314d LEA R12,[0x4aea18] MOV RAX,qword ptr [R12] LEA RDI,[RBP + -0x310] LEA R15,[RBP + -0x238] MOV ESI,EBX MOV EDX,0xb MOV RCX,R14 MOV R8,R15 CALL qword ptr [RAX + 0x148] MOV qword ptr [R15],RAX TEST RAX,RAX JNZ 0x00147f13 LEA RDI,[RBP + -0x230] LEA RSI,[RBP + -0x2c8] XOR EDX,EDX CALL 0x001bf003 MOV RBX,RAX LAB_00147eee: TEST RBX,RBX SETNZ AL MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x00147f5a ADD RSP,0x2f0 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00147f13: MOV RCX,qword ptr [R12] LEA RSI,[0x1f92e8] MOV RDI,RAX MOV EDX,0x20de CALL qword ptr [RCX + 0x1f0] LEA RDI,[RBP + -0x230] LEA RSI,[RBP + -0x2c8] XOR EDX,EDX CALL 0x001bf003 MOV RBX,RAX MOV RAX,qword ptr [R12] MOV RDI,qword ptr [RBP + -0x238] MOV RSI,RBX CALL qword ptr [RAX + 0x1f8] JMP 0x00147eee LAB_00147f5a: CALL 0x0012a280
bool translog_is_file(int8 param_1) { int4 uVar1; long lVar2; long in_FS_OFFSET; int1 local_318 [72]; int1 local_2d0 [144]; long local_240; int1 local_238 [520]; long local_30; uVar1 = key_file_translog; local_30 = *(long *)(in_FS_OFFSET + 0x28); translog_filename_by_fileno(param_1,local_238); local_240 = (**(code **)(PSI_server + 0x148))(local_318,uVar1,0xb,local_238,&local_240); if (local_240 == 0) { lVar2 = my_stat(local_238,local_2d0,0); } else { (**(code **)(PSI_server + 0x1f0)) (local_240,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x20de); lVar2 = my_stat(local_238,local_2d0,0); (**(code **)(PSI_server + 0x1f8))(local_240,lVar2); } if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return lVar2 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,944
LefDefParser::lefiNonDefault::hasLayerCapacitance(int) const
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiNonDefault.cpp
int lefiNonDefault::hasLayerCapacitance(int index) const { char msg[160]; if (index < 0 || index >= numLayers_) { sprintf(msg, "ERROR (LEFPARS-1402): The index number %d given for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d", index, numLayers_); lefiError(0, 1402, msg); return 0; } return hasCapacitance_[index]; }
O0
cpp
LefDefParser::lefiNonDefault::hasLayerCapacitance(int) const: subq $0xc8, %rsp movq %rdi, 0xb8(%rsp) movl %esi, 0xb4(%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x0, 0xb4(%rsp) jl 0x471ae movq 0x8(%rsp), %rcx movl 0xb4(%rsp), %eax cmpl 0x10(%rcx), %eax jl 0x471ee movq 0x8(%rsp), %rax leaq 0x10(%rsp), %rdi movl 0xb4(%rsp), %edx movl 0x10(%rax), %ecx leaq 0x4f4b1(%rip), %rsi # 0x9667a movb $0x0, %al callq 0x2050 leaq 0x10(%rsp), %rdx xorl %edi, %edi movl $0x57a, %esi # imm = 0x57A callq 0x59060 movl $0x0, 0xc4(%rsp) jmp 0x4720a movq 0x8(%rsp), %rax movq 0x70(%rax), %rax movslq 0xb4(%rsp), %rcx movsbl (%rax,%rcx), %eax movl %eax, 0xc4(%rsp) movl 0xc4(%rsp), %eax addq $0xc8, %rsp retq nopl (%rax)
_ZNK12LefDefParser14lefiNonDefault19hasLayerCapacitanceEi: sub rsp, 0C8h mov [rsp+0C8h+var_10], rdi mov [rsp+0C8h+var_14], esi mov rax, [rsp+0C8h+var_10] mov [rsp+0C8h+var_C0], rax cmp [rsp+0C8h+var_14], 0 jl short loc_471AE mov rcx, [rsp+0C8h+var_C0] mov eax, [rsp+0C8h+var_14] cmp eax, [rcx+10h] jl short loc_471EE loc_471AE: mov rax, [rsp+0C8h+var_C0] lea rdi, [rsp+0C8h+var_B8] mov edx, [rsp+0C8h+var_14] mov ecx, [rax+10h] lea rsi, aErrorLefpars14_3; "ERROR (LEFPARS-1402): The index number "... mov al, 0 call _sprintf lea rdx, [rsp+0C8h+var_B8]; int xor edi, edi; this mov esi, 57Ah; int call _ZN12LefDefParser9lefiErrorEiiPKc; LefDefParser::lefiError(int,int,char const*) mov [rsp+0C8h+var_4], 0 jmp short loc_4720A loc_471EE: mov rax, [rsp+0C8h+var_C0] mov rax, [rax+70h] movsxd rcx, [rsp+0C8h+var_14] movsx eax, byte ptr [rax+rcx] mov [rsp+0C8h+var_4], eax loc_4720A: mov eax, [rsp+0C8h+var_4] add rsp, 0C8h retn
long long LefDefParser::lefiNonDefault::hasLayerCapacitance(LefDefParser::lefiNonDefault *this, int a2) { const char *v2; // rcx int v4[41]; // [rsp+10h] [rbp-B8h] BYREF int v5; // [rsp+B4h] [rbp-14h] LefDefParser::lefiNonDefault *v6; // [rsp+B8h] [rbp-10h] v6 = this; v5 = a2; if ( a2 >= 0 && v5 < *((_DWORD *)this + 4) ) { return (unsigned int)*(char *)(*((_QWORD *)this + 14) + v5); } else { sprintf( v4, "ERROR (LEFPARS-1402): The index number %d given for the NONDEFAULT LAYER is invalid.\n" "Valid index is from 0 to %d", v5, *((_DWORD *)this + 4)); LefDefParser::lefiError(0LL, 1402, (int)v4, v2); return 0; } }
hasLayerCapacitance: SUB RSP,0xc8 MOV qword ptr [RSP + 0xb8],RDI MOV dword ptr [RSP + 0xb4],ESI MOV RAX,qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0x8],RAX CMP dword ptr [RSP + 0xb4],0x0 JL 0x001471ae MOV RCX,qword ptr [RSP + 0x8] MOV EAX,dword ptr [RSP + 0xb4] CMP EAX,dword ptr [RCX + 0x10] JL 0x001471ee LAB_001471ae: MOV RAX,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x10] MOV EDX,dword ptr [RSP + 0xb4] MOV ECX,dword ptr [RAX + 0x10] LEA RSI,[0x19667a] MOV AL,0x0 CALL 0x00102050 LEA RDX,[RSP + 0x10] XOR EDI,EDI MOV ESI,0x57a CALL 0x00159060 MOV dword ptr [RSP + 0xc4],0x0 JMP 0x0014720a LAB_001471ee: MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX + 0x70] MOVSXD RCX,dword ptr [RSP + 0xb4] MOVSX EAX,byte ptr [RAX + RCX*0x1] MOV dword ptr [RSP + 0xc4],EAX LAB_0014720a: MOV EAX,dword ptr [RSP + 0xc4] ADD RSP,0xc8 RET
/* LefDefParser::lefiNonDefault::hasLayerCapacitance(int) const */ int __thiscall LefDefParser::lefiNonDefault::hasLayerCapacitance(lefiNonDefault *this,int param_1) { char local_b8 [164]; int local_14; lefiNonDefault *local_10; int local_4; if ((param_1 < 0) || (*(int *)(this + 0x10) <= param_1)) { local_14 = param_1; local_10 = this; sprintf(local_b8, "ERROR (LEFPARS-1402): The index number %d given for the NONDEFAULT LAYER is invalid.\nValid index is from 0 to %d" ,(ulong)(uint)param_1,(ulong)*(uint *)(this + 0x10)); lefiError(0,0x57a,local_b8); local_4 = 0; } else { local_4 = (int)*(char *)(*(long *)(this + 0x70) + (long)param_1); } return local_4; }
41,945
find_rh
bluesky950520[P]quickjs/quickjs-libc.c
static JSOSRWHandler *find_rh(JSThreadState *ts, int fd) { JSOSRWHandler *rh; struct list_head *el; list_for_each(el, &ts->os_rw_handlers) { rh = list_entry(el, JSOSRWHandler, link); if (rh->fd == fd) return rh; } return NULL; }
O0
c
find_rh: movq %rdi, -0x10(%rsp) movl %esi, -0x14(%rsp) movq -0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rsp) movq -0x28(%rsp), %rax movq -0x10(%rsp), %rcx cmpq %rcx, %rax je 0x1ba8c movq -0x28(%rsp), %rax movq %rax, -0x20(%rsp) movq -0x20(%rsp), %rax movl 0x10(%rax), %eax cmpl -0x14(%rsp), %eax jne 0x1ba7a movq -0x20(%rsp), %rax movq %rax, -0x8(%rsp) jmp 0x1ba95 jmp 0x1ba7c movq -0x28(%rsp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rsp) jmp 0x1ba47 movq $0x0, -0x8(%rsp) movq -0x8(%rsp), %rax retq nopl (%rax,%rax)
find_rh: mov [rsp+var_10], rdi mov [rsp+var_14], esi mov rax, [rsp+var_10] mov rax, [rax+8] mov [rsp+var_28], rax loc_1BA47: mov rax, [rsp+var_28] mov rcx, [rsp+var_10] cmp rax, rcx jz short loc_1BA8C mov rax, [rsp+var_28] mov [rsp+var_20], rax mov rax, [rsp+var_20] mov eax, [rax+10h] cmp eax, [rsp+var_14] jnz short loc_1BA7A mov rax, [rsp+var_20] mov [rsp+var_8], rax jmp short loc_1BA95 loc_1BA7A: jmp short $+2 loc_1BA7C: mov rax, [rsp+var_28] mov rax, [rax+8] mov [rsp+var_28], rax jmp short loc_1BA47 loc_1BA8C: mov [rsp+var_8], 0 loc_1BA95: mov rax, [rsp+var_8] retn
long long find_rh(long long a1, int a2) { long long i; // [rsp+0h] [rbp-28h] for ( i = *(_QWORD *)(a1 + 8); i != a1; i = *(_QWORD *)(i + 8) ) { if ( *(_DWORD *)(i + 16) == a2 ) return i; } return 0LL; }
find_rh: MOV qword ptr [RSP + -0x10],RDI MOV dword ptr [RSP + -0x14],ESI MOV RAX,qword ptr [RSP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + -0x28],RAX LAB_0011ba47: MOV RAX,qword ptr [RSP + -0x28] MOV RCX,qword ptr [RSP + -0x10] CMP RAX,RCX JZ 0x0011ba8c MOV RAX,qword ptr [RSP + -0x28] MOV qword ptr [RSP + -0x20],RAX MOV RAX,qword ptr [RSP + -0x20] MOV EAX,dword ptr [RAX + 0x10] CMP EAX,dword ptr [RSP + -0x14] JNZ 0x0011ba7a MOV RAX,qword ptr [RSP + -0x20] MOV qword ptr [RSP + -0x8],RAX JMP 0x0011ba95 LAB_0011ba7a: JMP 0x0011ba7c LAB_0011ba7c: MOV RAX,qword ptr [RSP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + -0x28],RAX JMP 0x0011ba47 LAB_0011ba8c: MOV qword ptr [RSP + -0x8],0x0 LAB_0011ba95: MOV RAX,qword ptr [RSP + -0x8] RET
long find_rh(long param_1,int param_2) { long local_28; local_28 = *(long *)(param_1 + 8); while( true ) { if (local_28 == param_1) { return 0; } if (*(int *)(local_28 + 0x10) == param_2) break; local_28 = *(long *)(local_28 + 8); } return local_28; }
41,946
testing::internal::SharedPayloadBase::Unref()
AlayaLite/build_O0/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h
bool Unref() { return ref.fetch_sub(1, std::memory_order_acq_rel) == 1; }
O0
c
testing::internal::SharedPayloadBase::Unref(): movq %rdi, -0x20(%rsp) movq -0x20(%rsp), %rax movq %rax, -0x8(%rsp) movl $0x1, -0xc(%rsp) movl $0x4, -0x10(%rsp) movq -0x8(%rsp), %rax movq %rax, -0x30(%rsp) movl -0x10(%rsp), %eax movl -0xc(%rsp), %ecx movl %ecx, -0x14(%rsp) decl %eax movl %eax, %ecx movq %rcx, -0x28(%rsp) subl $0x4, %eax ja 0x51ba8 movq -0x28(%rsp), %rax leaq 0x22281(%rip), %rcx # 0x73e20 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x30(%rsp), %rcx movl -0x14(%rsp), %eax negl %eax lock xaddl %eax, (%rcx) movl %eax, -0x18(%rsp) jmp 0x51c0f movq -0x30(%rsp), %rcx movl -0x14(%rsp), %eax negl %eax lock xaddl %eax, (%rcx) movl %eax, -0x18(%rsp) jmp 0x51c0f movq -0x30(%rsp), %rcx movl -0x14(%rsp), %eax negl %eax lock xaddl %eax, (%rcx) movl %eax, -0x18(%rsp) jmp 0x51c0f movq -0x30(%rsp), %rcx movl -0x14(%rsp), %eax negl %eax lock xaddl %eax, (%rcx) movl %eax, -0x18(%rsp) jmp 0x51c0f movq -0x30(%rsp), %rcx movl -0x14(%rsp), %eax negl %eax lock xaddl %eax, (%rcx) movl %eax, -0x18(%rsp) cmpl $0x1, -0x18(%rsp) sete %al andb $0x1, %al retq nopw (%rax,%rax)
_ZN7testing8internal17SharedPayloadBase5UnrefEv: mov [rsp+var_20], rdi mov rax, [rsp+var_20] mov [rsp+var_8], rax mov [rsp+var_C], 1 mov [rsp+var_10], 4 mov rax, [rsp+var_8] mov [rsp+var_30], rax mov eax, [rsp+var_10] mov ecx, [rsp+var_C] mov [rsp+var_14], ecx dec eax; switch 5 cases mov ecx, eax mov [rsp+var_28], rcx sub eax, 4 ja short def_51BA6; jumptable 0000000000051BA6 default case mov rax, [rsp+var_28] lea rcx, jpt_51BA6 movsxd rax, ds:(jpt_51BA6 - 73E20h)[rcx+rax*4] add rax, rcx jmp rax; switch jump def_51BA6: mov rcx, [rsp+var_30]; jumptable 0000000000051BA6 default case mov eax, [rsp+var_14] neg eax lock xadd [rcx], eax mov [rsp+var_18], eax jmp short loc_51C0F loc_51BBD: mov rcx, [rsp+var_30]; jumptable 0000000000051BA6 cases 1,2 mov eax, [rsp+var_14] neg eax lock xadd [rcx], eax mov [rsp+var_18], eax jmp short loc_51C0F loc_51BD2: mov rcx, [rsp+var_30]; jumptable 0000000000051BA6 case 3 mov eax, [rsp+var_14] neg eax lock xadd [rcx], eax mov [rsp+var_18], eax jmp short loc_51C0F loc_51BE7: mov rcx, [rsp+var_30]; jumptable 0000000000051BA6 case 4 mov eax, [rsp+var_14] neg eax lock xadd [rcx], eax mov [rsp+var_18], eax jmp short loc_51C0F loc_51BFC: mov rcx, [rsp+var_30]; jumptable 0000000000051BA6 case 5 mov eax, [rsp+var_14] neg eax lock xadd [rcx], eax mov [rsp+var_18], eax loc_51C0F: cmp [rsp+var_18], 1 setz al and al, 1 retn
bool testing::internal::SharedPayloadBase::Unref(testing::internal::SharedPayloadBase *this) { return _InterlockedExchangeAdd((volatile signed __int32 *)this, 0xFFFFFFFF) == 1; }
Unref: MOV qword ptr [RSP + -0x20],RDI MOV RAX,qword ptr [RSP + -0x20] MOV qword ptr [RSP + -0x8],RAX MOV dword ptr [RSP + -0xc],0x1 MOV dword ptr [RSP + -0x10],0x4 MOV RAX,qword ptr [RSP + -0x8] MOV qword ptr [RSP + -0x30],RAX MOV EAX,dword ptr [RSP + -0x10] MOV ECX,dword ptr [RSP + -0xc] MOV dword ptr [RSP + -0x14],ECX DEC EAX MOV ECX,EAX MOV qword ptr [RSP + -0x28],RCX SUB EAX,0x4 JA 0x00151ba8 MOV RAX,qword ptr [RSP + -0x28] LEA RCX,[0x173e20] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX JMP RAX LAB_00151ba8: MOV RCX,qword ptr [RSP + -0x30] MOV EAX,dword ptr [RSP + -0x14] NEG EAX XADD.LOCK dword ptr [RCX],EAX MOV dword ptr [RSP + -0x18],EAX JMP 0x00151c0f LAB_00151c0f: CMP dword ptr [RSP + -0x18],0x1 SETZ AL AND AL,0x1 RET
/* WARNING: Removing unreachable block (ram,0x00151ba8) */ /* testing::internal::SharedPayloadBase::Unref() */ int8 __thiscall testing::internal::SharedPayloadBase::Unref(SharedPayloadBase *this) { int8 uVar1; /* WARNING: Could not recover jumptable at 0x00151ba6. Too many branches */ /* WARNING: Treating indirect jump as call */ uVar1 = (*(code *)(&DAT_00173e20 + DAT_00173e2c))(); return uVar1; }
41,947
safe_lexcstrdup_root
eloqsql/mysys/my_alloc.c
LEX_CSTRING safe_lexcstrdup_root(MEM_ROOT *root, const LEX_CSTRING str) { LEX_CSTRING res; if (str.length) res.str= strmake_root(root, str.str, str.length); else res.str= (const char *)""; res.length= str.length; return res; }
O0
c
safe_lexcstrdup_root: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rsi, -0x20(%rbp) movq %rdx, -0x18(%rbp) movq %rdi, -0x28(%rbp) cmpq $0x0, -0x18(%rbp) je 0xeddc2 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0xedce0 movq %rax, -0x10(%rbp) jmp 0xeddcd leaq 0x69edb(%rip), %rax # 0x157ca4 movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rdx addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
safe_lexcstrdup_root: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_20], rsi mov [rbp+var_18], rdx mov [rbp+var_28], rdi cmp [rbp+var_18], 0 jz short loc_EDDC2 mov rdi, [rbp+var_28] mov rsi, [rbp+var_20] mov rdx, [rbp+var_18] call strmake_root mov [rbp+var_10], rax jmp short loc_EDDCD loc_EDDC2: lea rax, asc_157CA0+4; "" mov [rbp+var_10], rax loc_EDDCD: mov rax, [rbp+var_18] mov [rbp+var_8], rax mov rax, [rbp+var_10] mov rdx, [rbp+var_8] add rsp, 30h pop rbp retn
char * safe_lexcstrdup_root(_QWORD **a1, long long a2, long long a3) { if ( a3 ) return strmake_root(a1, a2, a3); else return ""; }
safe_lexcstrdup_root: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x20],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x28],RDI CMP qword ptr [RBP + -0x18],0x0 JZ 0x001eddc2 MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x18] CALL 0x001edce0 MOV qword ptr [RBP + -0x10],RAX JMP 0x001eddcd LAB_001eddc2: LEA RAX,[0x257ca4] MOV qword ptr [RBP + -0x10],RAX LAB_001eddcd: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
int1 [16] safe_lexcstrdup_root(int8 param_1,int8 param_2,long param_3) { int1 auVar1 [16]; int *local_18; if (param_3 == 0) { local_18 = &DAT_00257ca4; } else { local_18 = (int *)strmake_root(param_1,param_2,param_3); } auVar1._8_8_ = param_3; auVar1._0_8_ = local_18; return auVar1; }
41,948
stmt_cursor_fetch
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
static int stmt_cursor_fetch(MYSQL_STMT *stmt, uchar **row) { uchar buf[STMT_ID_LENGTH + 4]; MYSQL_DATA *result= &stmt->result; if (stmt->state < MYSQL_STMT_USE_OR_STORE_CALLED) { SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0); return(1); } /* do we have some prefetched rows available ? */ if (stmt->result_cursor) return(stmt_buffered_fetch(stmt, row)); if (stmt->upsert_status.server_status & SERVER_STATUS_LAST_ROW_SENT) stmt->upsert_status.server_status&= ~SERVER_STATUS_LAST_ROW_SENT; else { int4store(buf, stmt->stmt_id); int4store(buf + STMT_ID_LENGTH, stmt->prefetch_rows); if (stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_FETCH, (char *)buf, sizeof(buf), 1, stmt)) { UPDATE_STMT_ERROR(stmt); return(1); } /* free previously allocated buffer */ ma_free_root(&result->alloc, MYF(MY_KEEP_PREALLOC)); result->data= 0; result->rows= 0; if (!stmt->mysql->options.extension->skip_read_response) { if (stmt->mysql->methods->db_stmt_read_all_rows(stmt)) return(1); return(stmt_buffered_fetch(stmt, row)); } } /* no more cursor data available */ *row= NULL; return(MYSQL_NO_DATA); }
O3
c
stmt_cursor_fetch: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x20(%rbp) cmpl $0x3, 0x50(%rdi) ja 0x234ca movl $0x7de, 0x108(%rbx) # imm = 0x7DE leaq 0x30d(%rbx), %rdi leaq 0x2cb7b(%rip), %rax # 0x50000 movq (%rax), %rsi movl $0x5, %edx callq 0x13230 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi leaq 0x2cb66(%rip), %rax # 0x50010 movq 0x70(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13230 movb %r14b, 0x30b(%rbx) movl $0x1, %r14d jmp 0x235bc movq %rsi, %r15 movq 0xe0(%rbx), %rax testq %rax, %rax je 0x23500 movl $0x5, 0x50(%rbx) movq 0x8(%rax), %rax movq %rax, (%r15) movq 0xe0(%rbx), %rax movq (%rax), %rax movq %rax, 0xe0(%rbx) xorl %r14d, %r14d jmp 0x235bc movl 0xf4(%rbx), %eax testb %al, %al js 0x235a4 movl 0x40(%rbx), %eax leaq -0x28(%rbp), %rdx movl %eax, (%rdx) movl 0x318(%rbx), %eax movl %eax, 0x4(%rdx) movq 0x38(%rbx), %rdi movq 0x4d0(%rdi), %rax movl $0x1, %r14d movl $0x8, %ecx movl $0x1c, %esi movl $0x1, %r8d movq %rbx, %r9 callq *0x10(%rax) testl %eax, %eax je 0x235d9 movq 0x38(%rbx), %rsi movl 0x90(%rsi), %eax movl %eax, 0x108(%rbx) leaq 0x30d(%rbx), %rdi addq $0x297, %rsi # imm = 0x297 movl $0x5, %edx callq 0x13230 xorl %r15d, %r15d movb %r15b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi movl $0x97, %esi addq 0x38(%rbx), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13230 movb %r15b, 0x30b(%rbx) jmp 0x235bc andl $0xffffff7f, %eax # imm = 0xFFFFFF7F movl %eax, 0xf4(%rbx) movq $0x0, (%r15) movl $0x64, %r14d movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x23642 movl %r14d, %eax addq $0x18, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq 0x90(%rbx), %rdi movl $0x1, %esi callq 0x22757 xorl %eax, %eax movq %rax, 0x80(%rbx) movq %rax, 0xc8(%rbx) movq 0x38(%rbx), %rax movq 0x480(%rax), %rcx cmpb $0x0, 0x148(%rcx) jne 0x235af movq 0x4d0(%rax), %rax movq %rbx, %rdi callq *0x60(%rax) testl %eax, %eax jne 0x235bc movq 0xe0(%rbx), %rax testq %rax, %rax jne 0x234d9 movq $0x0, (%r15) movl $0x6, 0x50(%rbx) jmp 0x235b6 callq 0x13510
stmt_cursor_fetch: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 18h mov rbx, rdi mov rax, fs:28h mov [rbp+var_20], rax cmp dword ptr [rdi+50h], 3 ja short loc_234CA mov dword ptr [rbx+108h], 7DEh lea rdi, [rbx+30Dh] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] lea rax, client_errors mov rsi, [rax+70h] mov edx, 200h call _strncpy mov [rbx+30Bh], r14b mov r14d, 1 jmp loc_235BC loc_234CA: mov r15, rsi mov rax, [rbx+0E0h] test rax, rax jz short loc_23500 loc_234D9: mov dword ptr [rbx+50h], 5 mov rax, [rax+8] mov [r15], rax mov rax, [rbx+0E0h] mov rax, [rax] mov [rbx+0E0h], rax xor r14d, r14d jmp loc_235BC loc_23500: mov eax, [rbx+0F4h] test al, al js loc_235A4 mov eax, [rbx+40h] lea rdx, [rbp+var_28] mov [rdx], eax mov eax, [rbx+318h] mov [rdx+4], eax mov rdi, [rbx+38h] mov rax, [rdi+4D0h] mov r14d, 1 mov ecx, 8 mov esi, 1Ch mov r8d, 1 mov r9, rbx call qword ptr [rax+10h] test eax, eax jz loc_235D9 mov rsi, [rbx+38h] mov eax, [rsi+90h] mov [rbx+108h], eax lea rdi, [rbx+30Dh] add rsi, 297h mov edx, 5 call _strncpy xor r15d, r15d mov [rbx+312h], r15b lea rdi, [rbx+10Ch] mov esi, 97h add rsi, [rbx+38h] mov edx, 200h call _strncpy mov [rbx+30Bh], r15b jmp short loc_235BC loc_235A4: and eax, 0FFFFFF7Fh mov [rbx+0F4h], eax loc_235AF: mov qword ptr [r15], 0 loc_235B6: mov r14d, 64h ; 'd' loc_235BC: mov rax, fs:28h cmp rax, [rbp+var_20] jnz short loc_23642 mov eax, r14d add rsp, 18h pop rbx pop r14 pop r15 pop rbp retn loc_235D9: lea rdi, [rbx+90h] mov esi, 1 call ma_free_root xor eax, eax mov [rbx+80h], rax mov [rbx+0C8h], rax mov rax, [rbx+38h] mov rcx, [rax+480h] cmp byte ptr [rcx+148h], 0 jnz short loc_235AF mov rax, [rax+4D0h] mov rdi, rbx call qword ptr [rax+60h] test eax, eax jnz short loc_235BC mov rax, [rbx+0E0h] test rax, rax jnz loc_234D9 mov qword ptr [r15], 0 mov dword ptr [rbx+50h], 6 jmp loc_235B6 loc_23642: call ___stack_chk_fail
long long stmt_cursor_fetch(long long a1, _QWORD *a2) { unsigned int v2; // r14d long long v3; // rax int v4; // eax long long v5; // rsi long long v7; // rax _DWORD v8[2]; // [rsp+8h] [rbp-28h] BYREF unsigned long long v9; // [rsp+10h] [rbp-20h] v9 = __readfsqword(0x28u); if ( *(_DWORD *)(a1 + 80) > 3u ) { v3 = *(_QWORD *)(a1 + 224); if ( v3 ) { LABEL_4: *(_DWORD *)(a1 + 80) = 5; *a2 = *(_QWORD *)(v3 + 8); *(_QWORD *)(a1 + 224) = **(_QWORD **)(a1 + 224); return 0; } v4 = *(_DWORD *)(a1 + 244); if ( (v4 & 0x80u) != 0 ) { *(_DWORD *)(a1 + 244) = v4 & 0xFFFFFF7F; } else { v8[0] = *(_DWORD *)(a1 + 64); v8[1] = *(_DWORD *)(a1 + 792); v2 = 1; if ( (*(unsigned int ( **)(_QWORD, long long, _DWORD *, long long, long long, long long))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 16LL))( *(_QWORD *)(a1 + 56), 28LL, v8, 8LL, 1LL, a1) ) { v5 = *(_QWORD *)(a1 + 56); *(_DWORD *)(a1 + 264) = *(_DWORD *)(v5 + 144); strncpy(a1 + 781, v5 + 663, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, *(_QWORD *)(a1 + 56) + 151LL, 512LL); *(_BYTE *)(a1 + 779) = 0; return v2; } ma_free_root(a1 + 144, 1); *(_QWORD *)(a1 + 128) = 0LL; *(_QWORD *)(a1 + 200) = 0LL; v7 = *(_QWORD *)(a1 + 56); if ( !*(_BYTE *)(*(_QWORD *)(v7 + 1152) + 328LL) ) { if ( (*(unsigned int ( **)(long long))(*(_QWORD *)(v7 + 1232) + 96LL))(a1) ) return v2; v3 = *(_QWORD *)(a1 + 224); if ( v3 ) goto LABEL_4; *a2 = 0LL; *(_DWORD *)(a1 + 80) = 6; return 100; } } *a2 = 0LL; return 100; } *(_DWORD *)(a1 + 264) = 2014; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, client_errors[14], 512LL); *(_BYTE *)(a1 + 779) = 0; return 1; }
stmt_cursor_fetch: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX CMP dword ptr [RDI + 0x50],0x3 JA 0x001234ca MOV dword ptr [RBX + 0x108],0x7de LEA RDI,[RBX + 0x30d] LEA RAX,[0x150000] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113230 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] LEA RAX,[0x150010] MOV RSI,qword ptr [RAX + 0x70] MOV EDX,0x200 CALL 0x00113230 MOV byte ptr [RBX + 0x30b],R14B MOV R14D,0x1 JMP 0x001235bc LAB_001234ca: MOV R15,RSI MOV RAX,qword ptr [RBX + 0xe0] TEST RAX,RAX JZ 0x00123500 LAB_001234d9: MOV dword ptr [RBX + 0x50],0x5 MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [R15],RAX MOV RAX,qword ptr [RBX + 0xe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBX + 0xe0],RAX XOR R14D,R14D JMP 0x001235bc LAB_00123500: MOV EAX,dword ptr [RBX + 0xf4] TEST AL,AL JS 0x001235a4 MOV EAX,dword ptr [RBX + 0x40] LEA RDX,[RBP + -0x28] MOV dword ptr [RDX],EAX MOV EAX,dword ptr [RBX + 0x318] MOV dword ptr [RDX + 0x4],EAX MOV RDI,qword ptr [RBX + 0x38] MOV RAX,qword ptr [RDI + 0x4d0] MOV R14D,0x1 MOV ECX,0x8 MOV ESI,0x1c MOV R8D,0x1 MOV R9,RBX CALL qword ptr [RAX + 0x10] TEST EAX,EAX JZ 0x001235d9 MOV RSI,qword ptr [RBX + 0x38] MOV EAX,dword ptr [RSI + 0x90] MOV dword ptr [RBX + 0x108],EAX LEA RDI,[RBX + 0x30d] ADD RSI,0x297 MOV EDX,0x5 CALL 0x00113230 XOR R15D,R15D MOV byte ptr [RBX + 0x312],R15B LEA RDI,[RBX + 0x10c] MOV ESI,0x97 ADD RSI,qword ptr [RBX + 0x38] MOV EDX,0x200 CALL 0x00113230 MOV byte ptr [RBX + 0x30b],R15B JMP 0x001235bc LAB_001235a4: AND EAX,0xffffff7f MOV dword ptr [RBX + 0xf4],EAX LAB_001235af: MOV qword ptr [R15],0x0 LAB_001235b6: MOV R14D,0x64 LAB_001235bc: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x00123642 MOV EAX,R14D ADD RSP,0x18 POP RBX POP R14 POP R15 POP RBP RET LAB_001235d9: LEA RDI,[RBX + 0x90] MOV ESI,0x1 CALL 0x00122757 XOR EAX,EAX MOV qword ptr [RBX + 0x80],RAX MOV qword ptr [RBX + 0xc8],RAX MOV RAX,qword ptr [RBX + 0x38] MOV RCX,qword ptr [RAX + 0x480] CMP byte ptr [RCX + 0x148],0x0 JNZ 0x001235af MOV RAX,qword ptr [RAX + 0x4d0] MOV RDI,RBX CALL qword ptr [RAX + 0x60] TEST EAX,EAX JNZ 0x001235bc MOV RAX,qword ptr [RBX + 0xe0] TEST RAX,RAX JNZ 0x001234d9 MOV qword ptr [R15],0x0 MOV dword ptr [RBX + 0x50],0x6 JMP 0x001235b6 LAB_00123642: CALL 0x00113510
int8 stmt_cursor_fetch(long param_1,int8 *param_2) { int iVar1; long lVar2; int8 uVar3; long in_FS_OFFSET; int4 local_30; int4 local_2c; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); if (*(uint *)(param_1 + 0x50) < 4) { *(int4 *)(param_1 + 0x108) = 0x7de; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),PTR_s_Commands_out_of_sync__you_can_t_r_00150080,0x200); *(int1 *)(param_1 + 0x30b) = 0; uVar3 = 1; goto LAB_001235bc; } lVar2 = *(long *)(param_1 + 0xe0); if (lVar2 != 0) { LAB_001234d9: *(int4 *)(param_1 + 0x50) = 5; *param_2 = *(int8 *)(lVar2 + 8); *(int8 *)(param_1 + 0xe0) = **(int8 **)(param_1 + 0xe0); uVar3 = 0; goto LAB_001235bc; } if ((char)*(uint *)(param_1 + 0xf4) < '\0') { *(uint *)(param_1 + 0xf4) = *(uint *)(param_1 + 0xf4) & 0xffffff7f; LAB_001235af: *param_2 = 0; } else { local_30 = *(int4 *)(param_1 + 0x40); local_2c = *(int4 *)(param_1 + 0x318); uVar3 = 1; iVar1 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x10)) (*(long *)(param_1 + 0x38),0x1c,&local_30,8,1,param_1); if (iVar1 != 0) { *(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90); strncpy((char *)(param_1 + 0x30d),(char *)(*(long *)(param_1 + 0x38) + 0x297),5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),(char *)(*(long *)(param_1 + 0x38) + 0x97),0x200); *(int1 *)(param_1 + 0x30b) = 0; goto LAB_001235bc; } ma_free_root(param_1 + 0x90,1); *(int8 *)(param_1 + 0x80) = 0; *(int8 *)(param_1 + 200) = 0; if (*(char *)(*(long *)(*(long *)(param_1 + 0x38) + 0x480) + 0x148) != '\0') goto LAB_001235af; iVar1 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x60))(param_1); if (iVar1 != 0) goto LAB_001235bc; lVar2 = *(long *)(param_1 + 0xe0); if (lVar2 != 0) goto LAB_001234d9; *param_2 = 0; *(int4 *)(param_1 + 0x50) = 6; } uVar3 = 100; LAB_001235bc: if (*(long *)(in_FS_OFFSET + 0x28) == local_28) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,949
mysql_set_local_infile_handler
eloqsql/libmariadb/libmariadb/ma_loaddata.c
void STDCALL mysql_set_local_infile_handler(MYSQL *conn, int (*local_infile_init)(void **, const char *, void *), int (*local_infile_read)(void *, char *, uint), void (*local_infile_end)(void *), int (*local_infile_error)(void *, char *, uint), void *userdata) { conn->options.local_infile_init= local_infile_init; conn->options.local_infile_read= local_infile_read; conn->options.local_infile_end= local_infile_end; conn->options.local_infile_error= local_infile_error; conn->options.local_infile_userdata = userdata; return; }
O0
c
mysql_set_local_infile_handler: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x458(%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x460(%rax) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x468(%rax) movq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x470(%rax) movq -0x30(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x478(%rax) popq %rbp retq nopl (%rax)
mysql_set_local_infile_handler: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+458h], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+460h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+468h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+470h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_8] mov [rax+478h], rcx pop rbp retn
_QWORD * mysql_set_local_infile_handler( _QWORD *a1, long long a2, long long a3, long long a4, long long a5, long long a6) { _QWORD *result; // rax a1[139] = a2; a1[140] = a3; a1[141] = a4; a1[142] = a5; result = a1; a1[143] = a6; return result; }
mysql_set_local_infile_handler: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x458],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x460],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x468],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x470],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x478],RCX POP RBP RET
void mysql_set_local_infile_handler (long param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { *(int8 *)(param_1 + 0x458) = param_2; *(int8 *)(param_1 + 0x460) = param_3; *(int8 *)(param_1 + 0x468) = param_4; *(int8 *)(param_1 + 0x470) = param_5; *(int8 *)(param_1 + 0x478) = param_6; return; }
41,950
uf_prespace_selected
eloqsql/storage/myisam/mi_packrec.c
static void uf_prespace_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; } bfill((uchar*) to,spaces,' '); if (to+spaces != end) decode_bytes(rec,bit_buff,to+spaces,end); } else decode_bytes(rec,bit_buff,to,end); }
O0
c
uf_prespace_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 0xbd0fa 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 0xbd122 jmp 0xbd1da movq -0x10(%rbp), %rdi callq 0xbbca0 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0xbd1da movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x1c(%rcx), %eax jb 0xbd165 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 0x209983(%rip), %rcx # 0x2c6ae0 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0xbd178 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x1c(%rax), %esi callq 0xba450 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 0xbd19a movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0xbd1ef movq -0x18(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x2a2a0 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0xbd1d8 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movl -0x24(%rbp), %eax addq %rax, %rdx movq -0x20(%rbp), %rcx callq 0xbc3b0 jmp 0xbd1ef movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0xbc3b0 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
uf_prespace_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_BD0FA 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_BD122 jmp loc_BD1DA loc_BD0FA: 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_BD1DA loc_BD122: mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+1Ch] jb short loc_BD165 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_BD178 loc_BD165: 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_BD178: 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_BD19A mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_BD1EF loc_BD19A: mov rdi, [rbp+var_18] mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_BD1D8 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov eax, [rbp+var_24] add rdx, rax mov rcx, [rbp+var_20] call decode_bytes_0 loc_BD1D8: jmp short loc_BD1EF loc_BD1DA: 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_BD1EF: add rsp, 30h pop rbp retn
long long uf_prespace_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 ) { memset(a3, 32LL, bits_0); result = (long long)&a3[bits_0]; if ( (_BYTE *)result != a4 ) return decode_bytes_0(a1, (long long)a2, &a3[bits_0], a4); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_prespace_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 0x001bd0fa 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 0x001bd122 JMP 0x001bd1da LAB_001bd0fa: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001bbca0 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 0x001bd1da LAB_001bd122: 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 0x001bd165 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,[0x3c6ae0] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x001bd178 LAB_001bd165: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x1c] CALL 0x001ba450 MOV dword ptr [RBP + -0x28],EAX LAB_001bd178: 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 0x001bd19a MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x001bd1ef LAB_001bd19a: MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x0012a2a0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x001bd1d8 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x20] CALL 0x001bc3b0 LAB_001bd1d8: JMP 0x001bd1ef LAB_001bd1da: 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 0x001bc3b0 LAB_001bd1ef: ADD RSP,0x30 POP RBP RET
void uf_prespace_selected(long param_1,uint *param_2,void *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 < (long)param_3 + (ulong)local_30) { param_2[10] = 1; } else { memset(param_3,0x20,(ulong)local_30); if ((long)param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4); } } } return; }
41,951
JS_GetPrivateField
bluesky950520[P]quickjs/quickjs.c
static JSValue JS_GetPrivateField(JSContext *ctx, JSValue obj, JSValue name) { JSObject *p; JSShapeProperty *prs; JSProperty *pr; JSAtom prop; if (unlikely(JS_VALUE_GET_TAG(obj) != JS_TAG_OBJECT)) return JS_ThrowTypeErrorNotAnObject(ctx); /* safety check */ if (unlikely(JS_VALUE_GET_TAG(name) != JS_TAG_SYMBOL)) return JS_ThrowTypeErrorNotASymbol(ctx); prop = js_symbol_to_atom(ctx, name); p = JS_VALUE_GET_OBJ(obj); prs = find_own_property(&pr, p, prop); if (!prs) { JS_ThrowTypeErrorPrivateNotFound(ctx, prop); return JS_EXCEPTION; } return js_dup(pr->u.value); }
O0
c
JS_GetPrivateField: subq $0xa8, %rsp movq %rsi, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq %rcx, 0x38(%rsp) movq %r8, 0x40(%rsp) movq %rdi, 0x30(%rsp) movq 0x50(%rsp), %rax cmpl $-0x1, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x68525 movq 0x30(%rsp), %rdi callq 0x2f5a0 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) jmp 0x68702 movq 0x40(%rsp), %rax cmpl $-0x8, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x6855a movq 0x30(%rsp), %rdi callq 0x6f5a0 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) jmp 0x68702 movq 0x30(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x31420 movl %eax, 0x14(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rcx movl 0x14(%rsp), %eax leaq 0x18(%rsp), %rdx movq %rdx, 0x98(%rsp) movq %rcx, 0x90(%rsp) movl %eax, 0x8c(%rsp) movq 0x90(%rsp), %rax movq 0x18(%rax), %rax movq %rax, 0x80(%rsp) movl 0x8c(%rsp), %eax movq 0x80(%rsp), %rcx movl 0x20(%rcx), %ecx andq %rcx, %rax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rdi callq 0x5d8b0 xorl %ecx, %ecx subq 0x68(%rsp), %rcx subq $0x1, %rcx movl (%rax,%rcx,4), %eax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rdi callq 0x2c280 movq %rax, 0x70(%rsp) cmpq $0x0, 0x68(%rsp) je 0x6868d movq 0x70(%rsp), %rax movq 0x68(%rsp), %rcx subq $0x1, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0x78(%rsp) movq 0x78(%rsp), %rax movl 0x4(%rax), %eax cmpl 0x8c(%rsp), %eax sete %al testb $0x1, %al jne 0x6863f jmp 0x68675 movq 0x90(%rsp), %rax movq 0x20(%rax), %rcx movq 0x68(%rsp), %rax subq $0x1, %rax shlq $0x4, %rax addq %rax, %rcx movq 0x98(%rsp), %rax movq %rcx, (%rax) movq 0x78(%rsp), %rax movq %rax, 0xa0(%rsp) jmp 0x686a8 movq 0x78(%rsp), %rax movl (%rax), %eax andl $0x3ffffff, %eax # imm = 0x3FFFFFF movl %eax, %eax movq %rax, 0x68(%rsp) jmp 0x68601 movq 0x98(%rsp), %rax movq $0x0, (%rax) movq $0x0, 0xa0(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) jne 0x686e7 movq 0x30(%rsp), %rdi movl 0x14(%rsp), %esi callq 0x6f5e0 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movl $0x0, 0x58(%rsp) movq $0x6, 0x60(%rsp) jmp 0x68702 movq 0x18(%rsp), %rax movq (%rax), %rdi movq 0x8(%rax), %rsi callq 0x216d0 movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq 0x58(%rsp), %rax movq 0x60(%rsp), %rdx addq $0xa8, %rsp retq nopw %cs:(%rax,%rax)
JS_GetPrivateField: sub rsp, 0A8h mov [rsp+0A8h+var_60], rsi mov [rsp+0A8h+var_58], rdx mov [rsp+0A8h+var_70], rcx mov [rsp+0A8h+var_68], r8 mov [rsp+0A8h+var_78], rdi mov rax, [rsp+0A8h+var_58] cmp eax, 0FFFFFFFFh setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_68525 mov rdi, [rsp+0A8h+var_78] call JS_ThrowTypeErrorNotAnObject mov [rsp+0A8h+var_50], rax mov [rsp+0A8h+var_48], rdx jmp loc_68702 loc_68525: mov rax, [rsp+0A8h+var_68] cmp eax, 0FFFFFFF8h setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_6855A mov rdi, [rsp+0A8h+var_78] call JS_ThrowTypeErrorNotASymbol mov [rsp+0A8h+var_50], rax mov [rsp+0A8h+var_48], rdx jmp loc_68702 loc_6855A: mov rdi, [rsp+0A8h+var_78] mov rsi, [rsp+0A8h+var_70] mov rdx, [rsp+0A8h+var_68] call js_symbol_to_atom mov [rsp+0A8h+var_94], eax mov rax, [rsp+0A8h+var_60] mov [rsp+0A8h+var_80], rax mov rcx, [rsp+0A8h+var_80] mov eax, [rsp+0A8h+var_94] lea rdx, [rsp+0A8h+var_90] mov [rsp+0A8h+var_10], rdx mov [rsp+0A8h+var_18], rcx mov [rsp+0A8h+var_1C], eax mov rax, [rsp+0A8h+var_18] mov rax, [rax+18h] mov [rsp+0A8h+var_28], rax mov eax, [rsp+0A8h+var_1C] mov rcx, [rsp+0A8h+var_28] mov ecx, [rcx+20h] and rax, rcx mov [rsp+0A8h+var_40], rax mov rdi, [rsp+0A8h+var_28] call prop_hash_end xor ecx, ecx sub rcx, [rsp+0A8h+var_40] sub rcx, 1 mov eax, [rax+rcx*4] mov [rsp+0A8h+var_40], rax mov rdi, [rsp+0A8h+var_28] call get_shape_prop mov [rsp+0A8h+var_38], rax loc_68601: cmp [rsp+0A8h+var_40], 0 jz loc_6868D mov rax, [rsp+0A8h+var_38] mov rcx, [rsp+0A8h+var_40] sub rcx, 1 shl rcx, 3 add rax, rcx mov [rsp+0A8h+var_30], rax mov rax, [rsp+0A8h+var_30] mov eax, [rax+4] cmp eax, [rsp+0A8h+var_1C] setz al test al, 1 jnz short loc_6863F jmp short loc_68675 loc_6863F: mov rax, [rsp+0A8h+var_18] mov rcx, [rax+20h] mov rax, [rsp+0A8h+var_40] sub rax, 1 shl rax, 4 add rcx, rax mov rax, [rsp+0A8h+var_10] mov [rax], rcx mov rax, [rsp+0A8h+var_30] mov [rsp+0A8h+var_8], rax jmp short loc_686A8 loc_68675: mov rax, [rsp+0A8h+var_30] mov eax, [rax] and eax, 3FFFFFFh mov eax, eax mov [rsp+0A8h+var_40], rax jmp loc_68601 loc_6868D: mov rax, [rsp+0A8h+var_10] mov qword ptr [rax], 0 mov [rsp+0A8h+var_8], 0 loc_686A8: mov rax, [rsp+0A8h+var_8] mov [rsp+0A8h+var_88], rax cmp [rsp+0A8h+var_88], 0 jnz short loc_686E7 mov rdi, [rsp+0A8h+var_78] mov esi, [rsp+0A8h+var_94] call JS_ThrowTypeErrorPrivateNotFound mov [rsp+0A8h+var_A8], rax mov [rsp+0A8h+var_A0], rdx mov dword ptr [rsp+0A8h+var_50], 0 mov [rsp+0A8h+var_48], 6 jmp short loc_68702 loc_686E7: mov rax, [rsp+0A8h+var_90] mov rdi, [rax] mov rsi, [rax+8] call js_dup mov [rsp+0A8h+var_50], rax mov [rsp+0A8h+var_48], rdx loc_68702: mov rax, [rsp+0A8h+var_50] mov rdx, [rsp+0A8h+var_48] add rsp, 0A8h retn
long long JS_GetPrivateField( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rdx long long v15; // rdx long long v16; // rax long long v17; // rdx unsigned int v19; // [rsp+14h] [rbp-94h] _QWORD v20[3]; // [rsp+18h] [rbp-90h] BYREF long long v21; // [rsp+30h] [rbp-78h] long long v22; // [rsp+38h] [rbp-70h] long long v23; // [rsp+40h] [rbp-68h] long long v24; // [rsp+48h] [rbp-60h] long long v25; // [rsp+50h] [rbp-58h] long long v26; // [rsp+58h] [rbp-50h] long long v27; // [rsp+60h] [rbp-48h] long long v28; // [rsp+68h] [rbp-40h] long long shape_prop; // [rsp+70h] [rbp-38h] _DWORD *v30; // [rsp+78h] [rbp-30h] long long v31; // [rsp+80h] [rbp-28h] unsigned int v32; // [rsp+8Ch] [rbp-1Ch] long long v33; // [rsp+90h] [rbp-18h] _QWORD *v34; // [rsp+98h] [rbp-10h] _DWORD *v35; // [rsp+A0h] [rbp-8h] v24 = a2; v25 = a3; v22 = a4; v23 = a5; v21 = a1; if ( (_DWORD)a3 == -1 ) { if ( (_DWORD)v23 == -8 ) { v19 = js_symbol_to_atom(v21, v22); v20[2] = v24; v34 = v20; v33 = v24; v32 = v19; v31 = *(_QWORD *)(v24 + 24); v28 = *(_DWORD *)(v31 + 32) & v19; v16 = prop_hash_end(v31); v28 = *(unsigned int *)(v16 + 4 * (-v28 - 1)); shape_prop = get_shape_prop(v31); while ( v28 ) { v30 = (_DWORD *)(8 * (v28 - 1) + shape_prop); if ( v30[1] == v32 ) { *v34 = 16 * (v28 - 1) + *(_QWORD *)(v33 + 32); v35 = v30; goto LABEL_11; } v28 = *v30 & 0x3FFFFFF; } *v34 = 0LL; v35 = 0LL; LABEL_11: v20[1] = v35; if ( v35 ) { v26 = (long long)js_dup(*(_DWORD **)v20[0], *(_QWORD *)(v20[0] + 8LL)); v27 = v17; } else { JS_ThrowTypeErrorPrivateNotFound(v21, v19); LODWORD(v26) = 0; v27 = 6LL; } } else { v26 = JS_ThrowTypeErrorNotASymbol(v21); v27 = v15; } } else { v26 = JS_ThrowTypeErrorNotAnObject(v21, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6); v27 = v14; } return v26; }
JS_GetPrivateField: SUB RSP,0xa8 MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RSP + 0x38],RCX MOV qword ptr [RSP + 0x40],R8 MOV qword ptr [RSP + 0x30],RDI MOV RAX,qword ptr [RSP + 0x50] CMP EAX,-0x1 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00168525 MOV RDI,qword ptr [RSP + 0x30] CALL 0x0012f5a0 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX JMP 0x00168702 LAB_00168525: MOV RAX,qword ptr [RSP + 0x40] CMP EAX,-0x8 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0016855a MOV RDI,qword ptr [RSP + 0x30] CALL 0x0016f5a0 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX JMP 0x00168702 LAB_0016855a: MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] CALL 0x00131420 MOV dword ptr [RSP + 0x14],EAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x28],RAX MOV RCX,qword ptr [RSP + 0x28] MOV EAX,dword ptr [RSP + 0x14] LEA RDX,[RSP + 0x18] MOV qword ptr [RSP + 0x98],RDX MOV qword ptr [RSP + 0x90],RCX MOV dword ptr [RSP + 0x8c],EAX MOV RAX,qword ptr [RSP + 0x90] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x80],RAX MOV EAX,dword ptr [RSP + 0x8c] MOV RCX,qword ptr [RSP + 0x80] MOV ECX,dword ptr [RCX + 0x20] AND RAX,RCX MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x80] CALL 0x0015d8b0 XOR ECX,ECX SUB RCX,qword ptr [RSP + 0x68] SUB RCX,0x1 MOV EAX,dword ptr [RAX + RCX*0x4] MOV qword ptr [RSP + 0x68],RAX MOV RDI,qword ptr [RSP + 0x80] CALL 0x0012c280 MOV qword ptr [RSP + 0x70],RAX LAB_00168601: CMP qword ptr [RSP + 0x68],0x0 JZ 0x0016868d MOV RAX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] SUB RCX,0x1 SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x78] MOV EAX,dword ptr [RAX + 0x4] CMP EAX,dword ptr [RSP + 0x8c] SETZ AL TEST AL,0x1 JNZ 0x0016863f JMP 0x00168675 LAB_0016863f: MOV RAX,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x68] SUB RAX,0x1 SHL RAX,0x4 ADD RCX,RAX MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xa0],RAX JMP 0x001686a8 LAB_00168675: MOV RAX,qword ptr [RSP + 0x78] MOV EAX,dword ptr [RAX] AND EAX,0x3ffffff MOV EAX,EAX MOV qword ptr [RSP + 0x68],RAX JMP 0x00168601 LAB_0016868d: MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RAX],0x0 MOV qword ptr [RSP + 0xa0],0x0 LAB_001686a8: MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 JNZ 0x001686e7 MOV RDI,qword ptr [RSP + 0x30] MOV ESI,dword ptr [RSP + 0x14] CALL 0x0016f5e0 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x6 JMP 0x00168702 LAB_001686e7: MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] CALL 0x001216d0 MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX LAB_00168702: MOV RAX,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] ADD RSP,0xa8 RET
int1 [16] JS_GetPrivateField(int8 param_1,long param_2,int8 param_3,int8 param_4, int8 param_5) { uint uVar1; long lVar2; int1 auVar3 [16]; int8 *local_90; uint *local_88; long local_80; int8 local_78; int8 local_70; int8 local_68; long local_60; int8 local_58; int4 local_50; int4 uStack_4c; int8 local_48; ulong local_40; long local_38; uint *local_30; long local_28; uint local_1c; long local_18; int8 **local_10; uint *local_8; local_78 = param_1; local_70 = param_4; local_68 = param_5; local_60 = param_2; local_58 = param_3; if ((int)param_3 == -1) { if ((int)param_5 == -8) { uVar1 = js_symbol_to_atom(param_1,param_4,param_5); local_80 = local_60; local_10 = &local_90; local_18 = local_60; local_28 = *(long *)(local_60 + 0x18); local_40 = (ulong)(uVar1 & *(uint *)(local_28 + 0x20)); local_1c = uVar1; lVar2 = prop_hash_end(local_28); local_40 = (ulong)*(uint *)(lVar2 + (-1 - local_40) * 4); local_38 = get_shape_prop(local_28); while (local_40 != 0) { local_30 = (uint *)(local_38 + (local_40 - 1) * 8); if (local_30[1] == local_1c) { *local_10 = (int8 *)(*(long *)(local_18 + 0x20) + (local_40 - 1) * 0x10); local_8 = local_30; goto LAB_001686a8; } local_40 = (ulong)(*local_30 & 0x3ffffff); } *local_10 = (int8 *)0x0; local_8 = (uint *)0x0; LAB_001686a8: local_88 = local_8; if (local_8 == (uint *)0x0) { JS_ThrowTypeErrorPrivateNotFound(local_78,uVar1); local_50 = 0; local_48 = 6; } else { auVar3 = js_dup(*local_90,local_90[1]); local_48 = auVar3._8_8_; local_50 = auVar3._0_4_; uStack_4c = auVar3._4_4_; } } else { auVar3 = JS_ThrowTypeErrorNotASymbol(param_1); local_48 = auVar3._8_8_; local_50 = auVar3._0_4_; uStack_4c = auVar3._4_4_; } } else { auVar3 = JS_ThrowTypeErrorNotAnObject(param_1); local_48 = auVar3._8_8_; local_50 = auVar3._0_4_; uStack_4c = auVar3._4_4_; } auVar3._4_4_ = uStack_4c; auVar3._0_4_ = local_50; auVar3._8_8_ = local_48; return auVar3; }
41,952
glfwCreateWindowSurface
untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c
GLFWAPI VkResult glfwCreateWindowSurface(VkInstance instance, GLFWwindow* handle, const VkAllocationCallbacks* allocator, VkSurfaceKHR* surface) { _GLFWwindow* window = (_GLFWwindow*) handle; assert(instance != VK_NULL_HANDLE); assert(window != NULL); assert(surface != NULL); *surface = VK_NULL_HANDLE; _GLFW_REQUIRE_INIT_OR_RETURN(VK_ERROR_INITIALIZATION_FAILED); if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER)) return VK_ERROR_INITIALIZATION_FAILED; if (!_glfw.vk.extensions[0]) { _glfwInputError(GLFW_API_UNAVAILABLE, "Vulkan: Window surface creation extensions not found"); return VK_ERROR_EXTENSION_NOT_PRESENT; } if (window->context.client != GLFW_NO_API) { _glfwInputError(GLFW_INVALID_VALUE, "Vulkan: Window surface creation requires the window to have the client API set to GLFW_NO_API"); return VK_ERROR_NATIVE_WINDOW_IN_USE_KHR; } return _glfwPlatformCreateWindowSurface(instance, window, allocator, surface); }
O3
c
glfwCreateWindowSurface: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx testq %rdi, %rdi je 0x1cbf1 movq %rsi, %r15 testq %rsi, %rsi je 0x1cc10 movq %rcx, %rbx testq %rcx, %rcx je 0x1cc2f movq $0x0, (%rbx) leaq 0x8bae1(%rip), %r13 # 0xa8638 cmpl $0x0, (%r13) je 0x1cba0 movq %rdx, %r14 movq %rdi, %r12 movl $0x2, %edi callq 0x1c5c4 testl %eax, %eax je 0x1cbae cmpq $0x0, 0x1fe80(%r13) je 0x1cbbd cmpl $0x0, 0x1f8(%r15) je 0x1cbd7 leaq 0x67582(%rip), %rsi # 0x8410f movl $0x10004, %edi # imm = 0x10004 xorl %eax, %eax callq 0x18e91 movl $0xc46535ff, %eax # imm = 0xC46535FF jmp 0x1cbb3 movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax callq 0x18e91 movl $0xfffffffd, %eax # imm = 0xFFFFFFFD popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq leaq 0x6749c(%rip), %rsi # 0x84060 movl $0x10006, %edi # imm = 0x10006 xorl %eax, %eax callq 0x18e91 movl $0xfffffff9, %eax # imm = 0xFFFFFFF9 jmp 0x1cbb3 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx movq %rbx, %rcx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 jmp 0x25a5d leaq 0x673df(%rip), %rdi # 0x83fd7 leaq 0x672ff(%rip), %rsi # 0x83efe leaq 0x6748f(%rip), %rcx # 0x84095 movl $0x12b, %edx # imm = 0x12B callq 0xc540 leaq 0x4a9e7(%rip), %rdi # 0x675fe leaq 0x672e0(%rip), %rsi # 0x83efe leaq 0x67470(%rip), %rcx # 0x84095 movl $0x12c, %edx # imm = 0x12C callq 0xc540 leaq 0x674c9(%rip), %rdi # 0x840ff leaq 0x672c1(%rip), %rsi # 0x83efe leaq 0x67451(%rip), %rcx # 0x84095 movl $0x12d, %edx # imm = 0x12D callq 0xc540 nop
glfwCreateWindowSurface: push r15 push r14 push r13 push r12 push rbx test rdi, rdi jz loc_1CBF1 mov r15, rsi test rsi, rsi jz loc_1CC10 mov rbx, rcx test rcx, rcx jz loc_1CC2F mov qword ptr [rbx], 0 lea r13, _glfw cmp dword ptr [r13+0], 0 jz short loc_1CBA0 mov r14, rdx mov r12, rdi mov edi, 2 call _glfwInitVulkan test eax, eax jz short loc_1CBAE cmp qword ptr [r13+1FE80h], 0 jz short loc_1CBBD cmp dword ptr [r15+1F8h], 0 jz short loc_1CBD7 lea rsi, aVulkanWindowSu_0; "Vulkan: Window surface creation require"... mov edi, 10004h xor eax, eax call _glfwInputError mov eax, 0C46535FFh jmp short loc_1CBB3 loc_1CBA0: mov edi, offset loc_10001 xor esi, esi xor eax, eax call _glfwInputError loc_1CBAE: mov eax, 0FFFFFFFDh loc_1CBB3: pop rbx pop r12 pop r13 pop r14 pop r15 retn loc_1CBBD: lea rsi, aVulkanWindowSu; "Vulkan: Window surface creation extensi"... mov edi, offset loc_10006 xor eax, eax call _glfwInputError mov eax, 0FFFFFFF9h jmp short loc_1CBB3 loc_1CBD7: mov rdi, r12 mov rsi, r15 mov rdx, r14 mov rcx, rbx pop rbx pop r12 pop r13 pop r14 pop r15 jmp _glfwPlatformCreateWindowSurface loc_1CBF1: lea rdi, aInstanceVkNull; "instance != VK_NULL_HANDLE" lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVkresultGlfwcr; "VkResult glfwCreateWindowSurface(VkInst"... mov edx, 12Bh call ___assert_fail loc_1CC10: lea rdi, aWindowNull; "window != NULL" lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVkresultGlfwcr; "VkResult glfwCreateWindowSurface(VkInst"... mov edx, 12Ch call ___assert_fail loc_1CC2F: lea rdi, aSurfaceNull; "surface != NULL" lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"... lea rcx, aVkresultGlfwcr; "VkResult glfwCreateWindowSurface(VkInst"... mov edx, 12Dh call ___assert_fail
long long glfwCreateWindowSurface(long long a1, long long a2, long long a3, _QWORD *a4) { if ( !a1 ) __assert_fail( "instance != VK_NULL_HANDLE", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c", 299LL, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)"); if ( !a2 ) __assert_fail( "window != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c", 300LL, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)"); if ( !a4 ) __assert_fail( "surface != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c", 301LL, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)"); *a4 = 0LL; if ( !glfw[0] ) { glfwInputError((unsigned int)&loc_10001, 0LL); return 4294967293LL; } if ( !(unsigned int)glfwInitVulkan(2) ) return 4294967293LL; if ( *(_QWORD *)&glfw[32672] ) { if ( *(_DWORD *)(a2 + 504) ) { glfwInputError( 0x10004u, (long long)"Vulkan: Window surface creation requires the window to have the client API set to GLFW_NO_API"); return 3294967295LL; } else { return glfwPlatformCreateWindowSurface(a1, a2, a3, a4); } } else { glfwInputError((unsigned int)&loc_10006, (long long)"Vulkan: Window surface creation extensions not found"); return 4294967289LL; } }
glfwCreateWindowSurface: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX TEST RDI,RDI JZ 0x0011cbf1 MOV R15,RSI TEST RSI,RSI JZ 0x0011cc10 MOV RBX,RCX TEST RCX,RCX JZ 0x0011cc2f MOV qword ptr [RBX],0x0 LEA R13,[0x1a8638] CMP dword ptr [R13],0x0 JZ 0x0011cba0 MOV R14,RDX MOV R12,RDI MOV EDI,0x2 CALL 0x0011c5c4 TEST EAX,EAX JZ 0x0011cbae CMP qword ptr [R13 + 0x1fe80],0x0 JZ 0x0011cbbd CMP dword ptr [R15 + 0x1f8],0x0 JZ 0x0011cbd7 LEA RSI,[0x18410f] MOV EDI,0x10004 XOR EAX,EAX CALL 0x00118e91 MOV EAX,0xc46535ff JMP 0x0011cbb3 LAB_0011cba0: MOV EDI,0x10001 XOR ESI,ESI XOR EAX,EAX CALL 0x00118e91 LAB_0011cbae: MOV EAX,0xfffffffd LAB_0011cbb3: POP RBX POP R12 POP R13 POP R14 POP R15 RET LAB_0011cbbd: LEA RSI,[0x184060] MOV EDI,0x10006 XOR EAX,EAX CALL 0x00118e91 MOV EAX,0xfffffff9 JMP 0x0011cbb3 LAB_0011cbd7: MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 MOV RCX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 JMP 0x00125a5d LAB_0011cbf1: LEA RDI,[0x183fd7] LEA RSI,[0x183efe] LEA RCX,[0x184095] MOV EDX,0x12b CALL 0x0010c540 LAB_0011cc10: LEA RDI,[0x1675fe] LEA RSI,[0x183efe] LEA RCX,[0x184095] MOV EDX,0x12c CALL 0x0010c540 LAB_0011cc2f: LEA RDI,[0x1840ff] LEA RSI,[0x183efe] LEA RCX,[0x184095] MOV EDX,0x12d CALL 0x0010c540
int8 glfwCreateWindowSurface(long param_1,long param_2,int8 param_3,int8 *param_4) { int iVar1; int8 uVar2; if (param_1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("instance != VK_NULL_HANDLE", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c" ,299, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)" ); } if (param_2 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("window != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c" ,300, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)" ); } if (param_4 == (int8 *)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("surface != NULL", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c" ,0x12d, "VkResult glfwCreateWindowSurface(VkInstance, GLFWwindow *, const VkAllocationCallbacks *, VkSurfaceKHR *)" ); } *param_4 = 0; if (_glfw == 0) { _glfwInputError(0x10001,0); } else { iVar1 = _glfwInitVulkan(2); if (iVar1 != 0) { if (DAT_001c84b8 == 0) { _glfwInputError(0x10006,"Vulkan: Window surface creation extensions not found"); return 0xfffffff9; } if (*(int *)(param_2 + 0x1f8) != 0) { _glfwInputError(0x10004, "Vulkan: Window surface creation requires the window to have the client API set to GLFW_NO_API" ); return 0xc46535ff; } uVar2 = _glfwPlatformCreateWindowSurface(param_1,param_2,param_3,param_4); return uVar2; } } return 0xfffffffd; }
41,953
my_next_large_page_size
eloqsql/mysys/my_largepage.c
static size_t my_next_large_page_size(size_t sz, int *start) { DBUG_ENTER("my_next_large_page_size"); while (*start < my_large_page_sizes_length && my_large_page_sizes[*start] > 0) { size_t cur= *start; (*start)++; if (my_large_page_sizes[cur] <= sz) { DBUG_RETURN(my_large_page_sizes[cur]); } } DBUG_RETURN(0); }
O0
c
my_next_large_page_size: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rcx xorl %eax, %eax cmpl $0x8, (%rcx) movb %al, -0x21(%rbp) jge 0x8a3c3 movq -0x18(%rbp), %rax movslq (%rax), %rcx leaq 0x36f018(%rip), %rax # 0x3f93d0 cmpq $0x0, (%rax,%rcx,8) seta %al movb %al, -0x21(%rbp) movb -0x21(%rbp), %al testb $0x1, %al jne 0x8a3cc jmp 0x8a410 movq -0x18(%rbp), %rax movslq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movl (%rax), %ecx addl $0x1, %ecx movl %ecx, (%rax) movq -0x20(%rbp), %rcx leaq 0x36efe3(%rip), %rax # 0x3f93d0 movq (%rax,%rcx,8), %rax cmpq -0x10(%rbp), %rax ja 0x8a40e jmp 0x8a3f9 movq -0x20(%rbp), %rcx leaq 0x36efcc(%rip), %rax # 0x3f93d0 movq (%rax,%rcx,8), %rax movq %rax, -0x8(%rbp) jmp 0x8a41a jmp 0x8a39c jmp 0x8a412 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq
my_next_large_page_size: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi loc_8A39C: mov rcx, [rbp+var_18] xor eax, eax cmp dword ptr [rcx], 8 mov [rbp+var_21], al jge short loc_8A3C3 mov rax, [rbp+var_18] movsxd rcx, dword ptr [rax] lea rax, my_large_page_sizes cmp qword ptr [rax+rcx*8], 0 setnbe al mov [rbp+var_21], al loc_8A3C3: mov al, [rbp+var_21] test al, 1 jnz short loc_8A3CC jmp short loc_8A410 loc_8A3CC: mov rax, [rbp+var_18] movsxd rax, dword ptr [rax] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov ecx, [rax] add ecx, 1 mov [rax], ecx mov rcx, [rbp+var_20] lea rax, my_large_page_sizes mov rax, [rax+rcx*8] cmp rax, [rbp+var_10] ja short loc_8A40E jmp short $+2 loc_8A3F9: mov rcx, [rbp+var_20] lea rax, my_large_page_sizes mov rax, [rax+rcx*8] mov [rbp+var_8], rax jmp short loc_8A41A loc_8A40E: jmp short loc_8A39C loc_8A410: jmp short $+2 loc_8A412: mov [rbp+var_8], 0 loc_8A41A: mov rax, [rbp+var_8] pop rbp retn
long long my_next_large_page_size(unsigned long long a1, int *a2) { bool v3; // [rsp+1h] [rbp-21h] long long v4; // [rsp+2h] [rbp-20h] while ( 1 ) { v3 = 0; if ( *a2 < 8 ) v3 = my_large_page_sizes[*a2] != 0LL; if ( !v3 ) break; v4 = (*a2)++; if ( my_large_page_sizes[v4] <= a1 ) return my_large_page_sizes[v4]; } return 0LL; }
my_next_large_page_size: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI LAB_0018a39c: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP dword ptr [RCX],0x8 MOV byte ptr [RBP + -0x21],AL JGE 0x0018a3c3 MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,dword ptr [RAX] LEA RAX,[0x4f93d0] CMP qword ptr [RAX + RCX*0x8],0x0 SETA AL MOV byte ptr [RBP + -0x21],AL LAB_0018a3c3: MOV AL,byte ptr [RBP + -0x21] TEST AL,0x1 JNZ 0x0018a3cc JMP 0x0018a410 LAB_0018a3cc: MOV RAX,qword ptr [RBP + -0x18] MOVSXD RAX,dword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX] ADD ECX,0x1 MOV dword ptr [RAX],ECX MOV RCX,qword ptr [RBP + -0x20] LEA RAX,[0x4f93d0] MOV RAX,qword ptr [RAX + RCX*0x8] CMP RAX,qword ptr [RBP + -0x10] JA 0x0018a40e JMP 0x0018a3f9 LAB_0018a3f9: MOV RCX,qword ptr [RBP + -0x20] LEA RAX,[0x4f93d0] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0018a41a LAB_0018a40e: JMP 0x0018a39c LAB_0018a410: JMP 0x0018a412 LAB_0018a412: MOV qword ptr [RBP + -0x8],0x0 LAB_0018a41a: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
int8 my_next_large_page_size(ulong param_1,int *param_2) { int iVar1; bool bVar2; while( true ) { bVar2 = false; if (*param_2 < 8) { bVar2 = *(long *)(my_large_page_sizes + (long)*param_2 * 8) != 0; } if (!bVar2) break; iVar1 = *param_2; *param_2 = *param_2 + 1; if (*(ulong *)(my_large_page_sizes + (long)iVar1 * 8) <= param_1) { return *(int8 *)(my_large_page_sizes + (long)iVar1 * 8); } } return 0; }
41,954
type_vector_create
tsotchke[P]eshkol/src/core/utils/type_creation.c
Type* type_vector_create(Arena* arena, Type* element_type, size_t size) { assert(element_type != NULL); Type* type = arena_alloc(arena, sizeof(Type)); if (!type) return NULL; type->kind = TYPE_VECTOR; type->vector.element_type = element_type; type->vector.size = size; return type; }
O1
c
type_vector_create: pushq %r14 pushq %rbx pushq %rax testq %rsi, %rsi je 0x2d29 movq %rdx, %rbx movq %rsi, %r14 movl $0x28, %esi callq 0x288f testq %rax, %rax je 0x2d1f movl $0x8, (%rax) movq %r14, 0x8(%rax) movq %rbx, 0x10(%rax) jmp 0x2d21 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x33ff(%rip), %rdi # 0x612f leaq 0x335e(%rip), %rsi # 0x6095 leaq 0x3406(%rip), %rcx # 0x6144 movl $0x81, %edx callq 0x10e0
type_vector_create: push r14 push rbx push rax test rsi, rsi jz short loc_2D29 mov rbx, rdx mov r14, rsi mov esi, 28h ; '(' call arena_alloc test rax, rax jz short loc_2D1F mov dword ptr [rax], 8 mov [rax+8], r14 mov [rax+10h], rbx jmp short loc_2D21 loc_2D1F: xor eax, eax loc_2D21: add rsp, 8 pop rbx pop r14 retn loc_2D29: lea rdi, aElementTypeNul; "element_type != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aTypeTypeVector; "Type *type_vector_create(Arena *, Type "... mov edx, 81h call ___assert_fail
long long type_vector_create(long long a1, long long a2, long long a3) { long long result; // rax if ( !a2 ) __assert_fail( "element_type != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c", 129LL, "Type *type_vector_create(Arena *, Type *, size_t)"); result = arena_alloc(a1, 40LL); if ( !result ) return 0LL; *(_DWORD *)result = 8; *(_QWORD *)(result + 8) = a2; *(_QWORD *)(result + 16) = a3; return result; }
type_vector_create: PUSH R14 PUSH RBX PUSH RAX TEST RSI,RSI JZ 0x00102d29 MOV RBX,RDX MOV R14,RSI MOV ESI,0x28 CALL 0x0010288f TEST RAX,RAX JZ 0x00102d1f MOV dword ptr [RAX],0x8 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],RBX JMP 0x00102d21 LAB_00102d1f: XOR EAX,EAX LAB_00102d21: ADD RSP,0x8 POP RBX POP R14 RET LAB_00102d29: LEA RDI,[0x10612f] LEA RSI,[0x106095] LEA RCX,[0x106144] MOV EDX,0x81 CALL 0x001010e0
int4 * type_vector_create(int8 param_1,long param_2,int8 param_3) { int4 *puVar1; if (param_2 != 0) { puVar1 = (int4 *)arena_alloc(param_1,0x28); if (puVar1 == (int4 *)0x0) { puVar1 = (int4 *)0x0; } else { *puVar1 = 8; *(long *)(puVar1 + 2) = param_2; *(int8 *)(puVar1 + 4) = param_3; } return puVar1; } /* WARNING: Subroutine does not return */ __assert_fail("element_type != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c" ,0x81,"Type *type_vector_create(Arena *, Type *, size_t)"); }
41,955
type_vector_create
tsotchke[P]eshkol/src/core/utils/type_creation.c
Type* type_vector_create(Arena* arena, Type* element_type, size_t size) { assert(element_type != NULL); Type* type = arena_alloc(arena, sizeof(Type)); if (!type) return NULL; type->kind = TYPE_VECTOR; type->vector.element_type = element_type; type->vector.size = size; return type; }
O3
c
type_vector_create: pushq %r14 pushq %rbx pushq %rax testq %rsi, %rsi je 0x2cf1 movq %rdx, %rbx movq %rsi, %r14 movl $0x28, %esi callq 0x2877 testq %rax, %rax je 0x2ce9 movl $0x8, (%rax) movq %r14, 0x8(%rax) movq %rbx, 0x10(%rax) addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x344b(%rip), %rdi # 0x6143 leaq 0x33aa(%rip), %rsi # 0x60a9 leaq 0x3452(%rip), %rcx # 0x6158 movl $0x81, %edx callq 0x10e0
type_vector_create: push r14 push rbx push rax test rsi, rsi jz short loc_2CF1 mov rbx, rdx mov r14, rsi mov esi, 28h ; '(' call arena_alloc test rax, rax jz short loc_2CE9 mov dword ptr [rax], 8 mov [rax+8], r14 mov [rax+10h], rbx loc_2CE9: add rsp, 8 pop rbx pop r14 retn loc_2CF1: lea rdi, aElementTypeNul; "element_type != NULL" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rcx, aTypeTypeVector; "Type *type_vector_create(Arena *, Type "... mov edx, 81h call ___assert_fail
long long type_vector_create(long long a1, long long a2, long long a3) { long long result; // rax if ( !a2 ) __assert_fail( "element_type != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c", 129LL, "Type *type_vector_create(Arena *, Type *, size_t)"); result = arena_alloc(a1, 40LL); if ( result ) { *(_DWORD *)result = 8; *(_QWORD *)(result + 8) = a2; *(_QWORD *)(result + 16) = a3; } return result; }
type_vector_create: PUSH R14 PUSH RBX PUSH RAX TEST RSI,RSI JZ 0x00102cf1 MOV RBX,RDX MOV R14,RSI MOV ESI,0x28 CALL 0x00102877 TEST RAX,RAX JZ 0x00102ce9 MOV dword ptr [RAX],0x8 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],RBX LAB_00102ce9: ADD RSP,0x8 POP RBX POP R14 RET LAB_00102cf1: LEA RDI,[0x106143] LEA RSI,[0x1060a9] LEA RCX,[0x106158] MOV EDX,0x81 CALL 0x001010e0
void type_vector_create(int8 param_1,long param_2,int8 param_3) { int4 *puVar1; if (param_2 != 0) { puVar1 = (int4 *)arena_alloc(param_1,0x28); if (puVar1 != (int4 *)0x0) { *puVar1 = 8; *(long *)(puVar1 + 2) = param_2; *(int8 *)(puVar1 + 4) = param_3; } return; } /* WARNING: Subroutine does not return */ __assert_fail("element_type != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/type_creation.c" ,0x81,"Type *type_vector_create(Arena *, Type *, size_t)"); }
41,956
my_strnxfrm_unicode_full_nopad_bin
eloqsql/strings/ctype-utf8.c
size_t my_strnxfrm_unicode_full_nopad_bin(CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) { uchar *dst0= dst; uchar *de= dst + dstlen; dst+= my_strnxfrm_unicode_full_bin_internal(cs, dst, de, &nweights, src, src + srclen); DBUG_ASSERT(dst <= de); /* Safety */ if (dst < de && nweights && (flags & MY_STRXFRM_PAD_WITH_SPACE)) { size_t len= de - dst; set_if_smaller(len, nweights * 3); memset(dst, 0x00, len); dst+= len; } my_strxfrm_desc_and_reverse(dst0, dst, flags, 0); if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && dst < de) { memset(dst, 0x00, de - dst); dst= de; } return dst - dst0; }
O3
c
my_strnxfrm_unicode_full_nopad_bin: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r13 movq %rsi, %rbx movl 0x10(%rbp), %r12d leaq -0x2c(%rbp), %rax movl %ecx, (%rax) leaq (%rsi,%rdx), %r14 addq %r8, %r9 movq %r14, %rdx movq %rax, %rcx callq 0x6e46b leaq (%rbx,%rax), %r15 testb $0x40, %r12b je 0x6e678 subq %rax, %r13 jle 0x6e678 movl -0x2c(%rbp), %eax testl %eax, %eax je 0x6e678 leal (%rax,%rax,2), %r12d cmpq %r12, %r13 cmovbq %r13, %r12 movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x261c0 addq %r12, %r15 movl 0x10(%rbp), %r12d movq %rbx, %rdi movq %r15, %rsi movl %r12d, %edx xorl %ecx, %ecx callq 0x59412 testb %r12b, %r12b jns 0x6e6a5 cmpq %r14, %r15 jae 0x6e6a5 movq %r14, %rdx subq %r15, %rdx movq %r15, %rdi xorl %esi, %esi callq 0x261c0 movq %r14, %r15 subq %rbx, %r15 movq %r15, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_strnxfrm_unicode_full_nopad_bin: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r13, rdx mov rbx, rsi mov r12d, [rbp+arg_0] lea rax, [rbp+var_2C] mov [rax], ecx lea r14, [rsi+rdx] add r9, r8 mov rdx, r14 mov rcx, rax call my_strnxfrm_unicode_full_bin_internal lea r15, [rbx+rax] test r12b, 40h jz short loc_6E678 sub r13, rax jle short loc_6E678 mov eax, [rbp+var_2C] test eax, eax jz short loc_6E678 lea r12d, [rax+rax*2] cmp r13, r12 cmovb r12, r13 mov rdi, r15 xor esi, esi mov rdx, r12 call _memset add r15, r12 mov r12d, [rbp+arg_0] loc_6E678: mov rdi, rbx mov rsi, r15 mov edx, r12d xor ecx, ecx call my_strxfrm_desc_and_reverse test r12b, r12b jns short loc_6E6A5 cmp r15, r14 jnb short loc_6E6A5 mov rdx, r14 sub rdx, r15 mov rdi, r15 xor esi, esi call _memset mov r15, r14 loc_6E6A5: sub r15, rbx mov rax, r15 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_strnxfrm_unicode_full_nopad_bin( long long a1, _BYTE *a2, long long a3, int a4, long long a5, long long a6, unsigned int a7) { unsigned int v8; // r12d _BYTE *v9; // r14 long long v10; // rax _BYTE *v11; // r15 bool v12; // cc unsigned long long v13; // r13 unsigned long long v14; // r12 int v16[11]; // [rsp+0h] [rbp-2Ch] BYREF v8 = a7; v16[0] = a4; v9 = &a2[a3]; v10 = my_strnxfrm_unicode_full_bin_internal(a1, a2, (unsigned long long)&a2[a3], v16, a5, a5 + a6); v11 = &a2[v10]; if ( (a7 & 0x40) != 0 ) { v12 = a3 <= v10; v13 = a3 - v10; if ( !v12 ) { if ( v16[0] ) { v14 = (unsigned int)(3 * v16[0]); if ( v13 < v14 ) v14 = v13; memset(v11, 0LL, v14); v11 += v14; v8 = a7; } } } my_strxfrm_desc_and_reverse(a2, v11, v8, 0); if ( (v8 & 0x80u) != 0 && v11 < v9 ) { memset(v11, 0LL, v9 - v11); v11 = v9; } return v11 - a2; }
my_strnxfrm_unicode_full_nopad_bin: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R13,RDX MOV RBX,RSI MOV R12D,dword ptr [RBP + 0x10] LEA RAX,[RBP + -0x2c] MOV dword ptr [RAX],ECX LEA R14,[RSI + RDX*0x1] ADD R9,R8 MOV RDX,R14 MOV RCX,RAX CALL 0x0016e46b LEA R15,[RBX + RAX*0x1] TEST R12B,0x40 JZ 0x0016e678 SUB R13,RAX JLE 0x0016e678 MOV EAX,dword ptr [RBP + -0x2c] TEST EAX,EAX JZ 0x0016e678 LEA R12D,[RAX + RAX*0x2] CMP R13,R12 CMOVC R12,R13 MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 CALL 0x001261c0 ADD R15,R12 MOV R12D,dword ptr [RBP + 0x10] LAB_0016e678: MOV RDI,RBX MOV RSI,R15 MOV EDX,R12D XOR ECX,ECX CALL 0x00159412 TEST R12B,R12B JNS 0x0016e6a5 CMP R15,R14 JNC 0x0016e6a5 MOV RDX,R14 SUB RDX,R15 MOV RDI,R15 XOR ESI,ESI CALL 0x001261c0 MOV R15,R14 LAB_0016e6a5: SUB R15,RBX MOV RAX,R15 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_strnxfrm_unicode_full_nopad_bin (int8 param_1,long param_2,long param_3,int param_4,long param_5,long param_6, uint param_7) { void *pvVar1; long lVar2; ulong __n; ulong uVar3; void *__s; int local_34; pvVar1 = (void *)(param_2 + param_3); local_34 = param_4; lVar2 = my_strnxfrm_unicode_full_bin_internal (param_1,param_2,pvVar1,&local_34,param_5,param_6 + param_5); __s = (void *)(param_2 + lVar2); if ((((param_7 & 0x40) != 0) && (uVar3 = param_3 - lVar2, uVar3 != 0 && lVar2 <= param_3)) && (local_34 != 0)) { __n = (ulong)(uint)(local_34 * 3); if (uVar3 < (uint)(local_34 * 3)) { __n = uVar3; } memset(__s,0,__n); __s = (void *)((long)__s + __n); } my_strxfrm_desc_and_reverse(param_2,__s,param_7,0); if (((char)param_7 < '\0') && (__s < pvVar1)) { memset(__s,0,(long)pvVar1 - (long)__s); __s = pvVar1; } return (long)__s - param_2; }
41,957
find_collation_data_inheritance_source
eloqsql/mysys/charset.c
static CHARSET_INFO *find_collation_data_inheritance_source(CHARSET_INFO *cs, myf flags) { const char *beg, *end; if (cs->tailoring && !strncmp(cs->tailoring, "[import ", 8) && (end= strchr(cs->tailoring + 8, ']')) && (beg= cs->tailoring + 8) + MY_CS_NAME_SIZE > end) { char name[MY_CS_NAME_SIZE + 1]; memcpy(name, beg, end - beg); name[end - beg]= '\0'; return inheritance_source_by_id(cs, get_collation_number(name,MYF(flags))); } return NULL; }
O0
c
find_collation_data_inheritance_source: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x40(%rbp) movq %rsi, -0x48(%rbp) movq -0x40(%rbp), %rax cmpq $0x0, 0x38(%rax) je 0x38ba6 movq -0x40(%rbp), %rax movq 0x38(%rax), %rdi leaq 0x53a23(%rip), %rsi # 0x8c52e movl $0x8, %edx callq 0x25180 cmpl $0x0, %eax jne 0x38ba6 movq -0x40(%rbp), %rax movq 0x38(%rax), %rdi addq $0x8, %rdi movl $0x5d, %esi callq 0x25110 movq %rax, -0x58(%rbp) cmpq $0x0, %rax je 0x38ba6 movq -0x40(%rbp), %rax movq 0x38(%rax), %rax addq $0x8, %rax movq %rax, -0x50(%rbp) addq $0x20, %rax cmpq -0x58(%rbp), %rax jbe 0x38ba6 leaq -0x30(%rbp), %rdi movq -0x50(%rbp), %rsi movq -0x58(%rbp), %rdx movq -0x50(%rbp), %rax subq %rax, %rdx callq 0x25270 movq -0x58(%rbp), %rax movq -0x50(%rbp), %rcx subq %rcx, %rax movb $0x0, -0x30(%rbp,%rax) movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) leaq -0x30(%rbp), %rdi movq -0x48(%rbp), %rsi callq 0x368e0 movq -0x60(%rbp), %rdi movl %eax, %esi callq 0x38d20 movq %rax, -0x38(%rbp) jmp 0x38bae movq $0x0, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x68(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x38bd2 movq -0x68(%rbp), %rax addq $0x70, %rsp popq %rbp retq callq 0x253b0 nopw (%rax,%rax)
find_collation_data_inheritance_source: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_40], rdi mov [rbp+var_48], rsi mov rax, [rbp+var_40] cmp qword ptr [rax+38h], 0 jz loc_38BA6 mov rax, [rbp+var_40] mov rdi, [rax+38h] lea rsi, aImport; "[import " mov edx, 8 call _strncmp cmp eax, 0 jnz loc_38BA6 mov rax, [rbp+var_40] mov rdi, [rax+38h] add rdi, 8 mov esi, 5Dh ; ']' call _strchr mov [rbp+var_58], rax cmp rax, 0 jz short loc_38BA6 mov rax, [rbp+var_40] mov rax, [rax+38h] add rax, 8 mov [rbp+var_50], rax add rax, 20h ; ' ' cmp rax, [rbp+var_58] jbe short loc_38BA6 lea rdi, [rbp+var_30] mov rsi, [rbp+var_50] mov rdx, [rbp+var_58] mov rax, [rbp+var_50] sub rdx, rax call _memcpy mov rax, [rbp+var_58] mov rcx, [rbp+var_50] sub rax, rcx mov [rbp+rax+var_30], 0 mov rax, [rbp+var_40] mov [rbp+var_60], rax lea rdi, [rbp+var_30] mov rsi, [rbp+var_48] call get_collation_number mov rdi, [rbp+var_60] mov esi, eax call inheritance_source_by_id mov [rbp+var_38], rax jmp short loc_38BAE loc_38BA6: mov [rbp+var_38], 0 loc_38BAE: mov rax, [rbp+var_38] mov [rbp+var_68], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_38BD2 mov rax, [rbp+var_68] add rsp, 70h pop rbp retn loc_38BD2: call ___stack_chk_fail
long long find_collation_data_inheritance_source(long long a1, long long a2) { unsigned int collation_number; // eax unsigned long long v4; // [rsp+18h] [rbp-58h] long long v5; // [rsp+20h] [rbp-50h] _BYTE v7[40]; // [rsp+40h] [rbp-30h] BYREF unsigned long long v8; // [rsp+68h] [rbp-8h] v8 = __readfsqword(0x28u); if ( !*(_QWORD *)(a1 + 56) ) return 0LL; if ( (unsigned int)strncmp(*(_QWORD *)(a1 + 56), "[import ", 8LL) ) return 0LL; v4 = strchr(*(_QWORD *)(a1 + 56) + 8LL, 93LL); if ( !v4 ) return 0LL; v5 = *(_QWORD *)(a1 + 56) + 8LL; if ( *(_QWORD *)(a1 + 56) + 40LL <= v4 ) return 0LL; memcpy(v7, v5, v4 - v5); v7[v4 - v5] = 0; collation_number = get_collation_number((long long)v7, a2); return inheritance_source_by_id(a1, collation_number); }
find_collation_data_inheritance_source: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x40],RDI MOV qword ptr [RBP + -0x48],RSI MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX + 0x38],0x0 JZ 0x00138ba6 MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0x38] LEA RSI,[0x18c52e] MOV EDX,0x8 CALL 0x00125180 CMP EAX,0x0 JNZ 0x00138ba6 MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0x38] ADD RDI,0x8 MOV ESI,0x5d CALL 0x00125110 MOV qword ptr [RBP + -0x58],RAX CMP RAX,0x0 JZ 0x00138ba6 MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x38] ADD RAX,0x8 MOV qword ptr [RBP + -0x50],RAX ADD RAX,0x20 CMP RAX,qword ptr [RBP + -0x58] JBE 0x00138ba6 LEA RDI,[RBP + -0x30] MOV RSI,qword ptr [RBP + -0x50] MOV RDX,qword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x50] SUB RDX,RAX CALL 0x00125270 MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x50] SUB RAX,RCX MOV byte ptr [RBP + RAX*0x1 + -0x30],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX LEA RDI,[RBP + -0x30] MOV RSI,qword ptr [RBP + -0x48] CALL 0x001368e0 MOV RDI,qword ptr [RBP + -0x60] MOV ESI,EAX CALL 0x00138d20 MOV qword ptr [RBP + -0x38],RAX JMP 0x00138bae LAB_00138ba6: MOV qword ptr [RBP + -0x38],0x0 LAB_00138bae: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00138bd2 MOV RAX,qword ptr [RBP + -0x68] ADD RSP,0x70 POP RBP RET LAB_00138bd2: CALL 0x001253b0
int8 find_collation_data_inheritance_source(long param_1,int8 param_2) { int iVar1; int4 uVar2; char *pcVar3; void *__src; long in_FS_OFFSET; int8 local_40; char local_38 [40]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (*(long *)(param_1 + 0x38) != 0) { iVar1 = strncmp(*(char **)(param_1 + 0x38),"[import ",8); if (iVar1 == 0) { pcVar3 = strchr((char *)(*(long *)(param_1 + 0x38) + 8),0x5d); if ((pcVar3 != (char *)0x0) && (__src = (void *)(*(long *)(param_1 + 0x38) + 8), pcVar3 < (char *)(*(long *)(param_1 + 0x38) + 0x28))) { memcpy(local_38,__src,(long)pcVar3 - (long)__src); pcVar3[(long)(local_38 + -(long)__src)] = '\0'; uVar2 = get_collation_number(local_38,param_2); local_40 = inheritance_source_by_id(param_1,uVar2); goto LAB_00138bae; } } } local_40 = 0; LAB_00138bae: if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_40; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,958
js_regexp_get_flags
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_get_flags(JSContext *ctx, JSValue this_val) { char str[8], *p = str; int res; if (JS_VALUE_GET_TAG(this_val) != JS_TAG_OBJECT) return JS_ThrowTypeErrorNotAnObject(ctx); res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "hasIndices")); if (res < 0) goto exception; if (res) *p++ = 'd'; res = JS_ToBoolFree(ctx, JS_GetProperty(ctx, this_val, JS_ATOM_global)); if (res < 0) goto exception; if (res) *p++ = 'g'; res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "ignoreCase")); if (res < 0) goto exception; if (res) *p++ = 'i'; res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "multiline")); if (res < 0) goto exception; if (res) *p++ = 'm'; res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "dotAll")); if (res < 0) goto exception; if (res) *p++ = 's'; res = JS_ToBoolFree(ctx, JS_GetProperty(ctx, this_val, JS_ATOM_unicode)); if (res < 0) goto exception; if (res) *p++ = 'u'; res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "unicodeSets")); if (res < 0) goto exception; if (res) *p++ = 'v'; res = JS_ToBoolFree(ctx, JS_GetPropertyStr(ctx, this_val, "sticky")); if (res < 0) goto exception; if (res) *p++ = 'y'; if (p == str) return JS_AtomToString(ctx, JS_ATOM_empty_string); return js_new_string8_len(ctx, str, p - str); exception: return JS_EXCEPTION; }
O0
c
js_regexp_get_flags: subq $0x108, %rsp # imm = 0x108 movq %rsi, 0xe8(%rsp) movq %rdx, 0xf0(%rsp) movq %rdi, 0xe0(%rsp) leaq 0xd8(%rsp), %rax movq %rax, 0xd0(%rsp) movq 0xf0(%rsp), %rax cmpl $-0x1, %eax je 0x84c1e movq 0xe0(%rsp), %rdi callq 0x35890 movq %rax, 0xf8(%rsp) movq %rdx, 0x100(%rsp) jmp 0x85124 movq 0xe0(%rsp), %rax movq %rax, 0x40(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x9011a(%rip), %rcx # 0x114d64 callq 0x38170 movq 0x40(%rsp), %rdi movq %rax, 0xb8(%rsp) movq %rdx, 0xc0(%rsp) movq 0xb8(%rsp), %rsi movq 0xc0(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84c8f jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84cb3 movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x64, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x38(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx movl $0x6f, %ecx callq 0x30070 movq 0x38(%rsp), %rdi movq %rax, 0xa8(%rsp) movq %rdx, 0xb0(%rsp) movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84d22 jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84d46 movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x67, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x30(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x8ffbb(%rip), %rcx # 0x114d2d callq 0x38170 movq 0x30(%rsp), %rdi movq %rax, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq 0x98(%rsp), %rsi movq 0xa0(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84db7 jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84ddb movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x69, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x28(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x8ff31(%rip), %rcx # 0x114d38 callq 0x38170 movq 0x28(%rsp), %rdi movq %rax, 0x88(%rsp) movq %rdx, 0x90(%rsp) movq 0x88(%rsp), %rsi movq 0x90(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84e4c jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84e70 movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x6d, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x20(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x8fea6(%rip), %rcx # 0x114d42 callq 0x38170 movq 0x20(%rsp), %rdi movq %rax, 0x78(%rsp) movq %rdx, 0x80(%rsp) movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84edb jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84eff movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x73, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x18(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx movl $0x70, %ecx callq 0x30070 movq 0x18(%rsp), %rdi movq %rax, 0x68(%rsp) movq %rdx, 0x70(%rsp) movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84f62 jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x84f86 movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x75, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x10(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x8fd9f(%rip), %rcx # 0x114d51 callq 0x38170 movq 0x10(%rsp), %rdi movq %rax, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq 0x58(%rsp), %rsi movq 0x60(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x84feb jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x8500f movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x76, (%rax) movq 0xe0(%rsp), %rax movq %rax, 0x8(%rsp) movq 0xe0(%rsp), %rdi movq 0xe8(%rsp), %rsi movq 0xf0(%rsp), %rdx leaq 0x8fd22(%rip), %rcx # 0x114d5d callq 0x38170 movq 0x8(%rsp), %rdi movq %rax, 0x48(%rsp) movq %rdx, 0x50(%rsp) movq 0x48(%rsp), %rsi movq 0x50(%rsp), %rdx callq 0x34620 movl %eax, 0xcc(%rsp) cmpl $0x0, 0xcc(%rsp) jge 0x85074 jmp 0x8510d cmpl $0x0, 0xcc(%rsp) je 0x85098 movq 0xd0(%rsp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, 0xd0(%rsp) movb $0x79, (%rax) movq 0xd0(%rsp), %rax leaq 0xd8(%rsp), %rcx cmpq %rcx, %rax jne 0x850d1 movq 0xe0(%rsp), %rdi movl $0x2f, %esi callq 0x2f2f0 movq %rax, 0xf8(%rsp) movq %rdx, 0x100(%rsp) jmp 0x85124 movq 0xe0(%rsp), %rdi leaq 0xd8(%rsp), %rsi movq 0xd0(%rsp), %rax leaq 0xd8(%rsp), %rcx subq %rcx, %rax movl %eax, %edx callq 0x2e8b0 movq %rax, 0xf8(%rsp) movq %rdx, 0x100(%rsp) jmp 0x85124 movl $0x0, 0xf8(%rsp) movq $0x6, 0x100(%rsp) movq 0xf8(%rsp), %rax movq 0x100(%rsp), %rdx addq $0x108, %rsp # imm = 0x108 retq nopl (%rax)
js_regexp_get_flags: sub rsp, 108h mov [rsp+108h+var_20], rsi mov [rsp+108h+var_18], rdx mov [rsp+108h+var_28], rdi lea rax, [rsp+108h+var_30] mov [rsp+108h+var_38], rax mov rax, [rsp+108h+var_18] cmp eax, 0FFFFFFFFh jz short loc_84C1E mov rdi, [rsp+108h+var_28] call JS_ThrowTypeErrorNotAnObject mov [rsp+108h+var_10], rax mov [rsp+108h+var_8], rdx jmp loc_85124 loc_84C1E: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_C8], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aHasindices; "hasIndices" call JS_GetPropertyStr mov rdi, [rsp+108h+var_C8] mov [rsp+108h+var_50], rax mov [rsp+108h+var_48], rdx mov rsi, [rsp+108h+var_50] mov rdx, [rsp+108h+var_48] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84C8F jmp loc_8510D loc_84C8F: cmp [rsp+108h+var_3C], 0 jz short loc_84CB3 mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 64h ; 'd' loc_84CB3: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_D0], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] mov ecx, 6Fh ; 'o' call JS_GetProperty mov rdi, [rsp+108h+var_D0] mov [rsp+108h+var_60], rax mov [rsp+108h+var_58], rdx mov rsi, [rsp+108h+var_60] mov rdx, [rsp+108h+var_58] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84D22 jmp loc_8510D loc_84D22: cmp [rsp+108h+var_3C], 0 jz short loc_84D46 mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 67h ; 'g' loc_84D46: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_D8], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aIgnorecase; "ignoreCase" call JS_GetPropertyStr mov rdi, [rsp+108h+var_D8] mov [rsp+108h+var_70], rax mov [rsp+108h+var_68], rdx mov rsi, [rsp+108h+var_70] mov rdx, [rsp+108h+var_68] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84DB7 jmp loc_8510D loc_84DB7: cmp [rsp+108h+var_3C], 0 jz short loc_84DDB mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 69h ; 'i' loc_84DDB: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_E0], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aMultiline; "multiline" call JS_GetPropertyStr mov rdi, [rsp+108h+var_E0] mov [rsp+108h+var_80], rax mov [rsp+108h+var_78], rdx mov rsi, [rsp+108h+var_80] mov rdx, [rsp+108h+var_78] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84E4C jmp loc_8510D loc_84E4C: cmp [rsp+108h+var_3C], 0 jz short loc_84E70 mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 6Dh ; 'm' loc_84E70: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_E8], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aDotall; "dotAll" call JS_GetPropertyStr mov rdi, [rsp+108h+var_E8] mov [rsp+108h+var_90], rax mov [rsp+108h+var_88], rdx mov rsi, [rsp+108h+var_90] mov rdx, [rsp+108h+var_88] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84EDB jmp loc_8510D loc_84EDB: cmp [rsp+108h+var_3C], 0 jz short loc_84EFF mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 73h ; 's' loc_84EFF: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_F0], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] mov ecx, 70h ; 'p' call JS_GetProperty mov rdi, [rsp+108h+var_F0] mov [rsp+108h+var_A0], rax mov [rsp+108h+var_98], rdx mov rsi, [rsp+108h+var_A0] mov rdx, [rsp+108h+var_98] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84F62 jmp loc_8510D loc_84F62: cmp [rsp+108h+var_3C], 0 jz short loc_84F86 mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 75h ; 'u' loc_84F86: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_F8], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aUnicodesets; "unicodeSets" call JS_GetPropertyStr mov rdi, [rsp+108h+var_F8] mov [rsp+108h+var_B0], rax mov [rsp+108h+var_A8], rdx mov rsi, [rsp+108h+var_B0] mov rdx, [rsp+108h+var_A8] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_84FEB jmp loc_8510D loc_84FEB: cmp [rsp+108h+var_3C], 0 jz short loc_8500F mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 76h ; 'v' loc_8500F: mov rax, [rsp+108h+var_28] mov [rsp+108h+var_100], rax mov rdi, [rsp+108h+var_28] mov rsi, [rsp+108h+var_20] mov rdx, [rsp+108h+var_18] lea rcx, aSticky; "sticky" call JS_GetPropertyStr mov rdi, [rsp+108h+var_100] mov [rsp+108h+var_C0], rax mov [rsp+108h+var_B8], rdx mov rsi, [rsp+108h+var_C0] mov rdx, [rsp+108h+var_B8] call JS_ToBoolFree mov [rsp+108h+var_3C], eax cmp [rsp+108h+var_3C], 0 jge short loc_85074 jmp loc_8510D loc_85074: cmp [rsp+108h+var_3C], 0 jz short loc_85098 mov rax, [rsp+108h+var_38] mov rcx, rax add rcx, 1 mov [rsp+108h+var_38], rcx mov byte ptr [rax], 79h ; 'y' loc_85098: mov rax, [rsp+108h+var_38] lea rcx, [rsp+108h+var_30] cmp rax, rcx jnz short loc_850D1 mov rdi, [rsp+108h+var_28] mov esi, 2Fh ; '/' call JS_AtomToString mov [rsp+108h+var_10], rax mov [rsp+108h+var_8], rdx jmp short loc_85124 loc_850D1: mov rdi, [rsp+108h+var_28] lea rsi, [rsp+108h+var_30] mov rax, [rsp+108h+var_38] lea rcx, [rsp+108h+var_30] sub rax, rcx mov edx, eax call js_new_string8_len mov [rsp+108h+var_10], rax mov [rsp+108h+var_8], rdx jmp short loc_85124 loc_8510D: mov dword ptr [rsp+108h+var_10], 0 mov [rsp+108h+var_8], 6 loc_85124: mov rax, [rsp+108h+var_10] mov rdx, [rsp+108h+var_8] add rsp, 108h retn
long long js_regexp_get_flags( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rdx long long v15; // rdx long long v16; // rdx char *v17; // rax long long v18; // rdx char *v19; // rax long long v20; // rdx char *v21; // rax long long v22; // rdx char *v23; // rax long long v24; // rdx char *v25; // rax long long v26; // rdx char *v27; // rax long long v28; // rdx char *v29; // rax long long v30; // rdx long long v32; // [rsp+8h] [rbp-100h] long long v33; // [rsp+10h] [rbp-F8h] long long v34; // [rsp+18h] [rbp-F0h] long long v35; // [rsp+20h] [rbp-E8h] long long v36; // [rsp+28h] [rbp-E0h] long long v37; // [rsp+30h] [rbp-D8h] long long v38; // [rsp+38h] [rbp-D0h] long long v39; // [rsp+40h] [rbp-C8h] long long v40; // [rsp+48h] [rbp-C0h] long long v41; // [rsp+58h] [rbp-B0h] long long v42; // [rsp+68h] [rbp-A0h] long long v43; // [rsp+78h] [rbp-90h] long long v44; // [rsp+88h] [rbp-80h] long long v45; // [rsp+98h] [rbp-70h] long long Property; // [rsp+A8h] [rbp-60h] long long PropertyStr; // [rsp+B8h] [rbp-50h] int v48; // [rsp+CCh] [rbp-3Ch] int v49; // [rsp+CCh] [rbp-3Ch] int v50; // [rsp+CCh] [rbp-3Ch] int v51; // [rsp+CCh] [rbp-3Ch] int v52; // [rsp+CCh] [rbp-3Ch] int v53; // [rsp+CCh] [rbp-3Ch] int v54; // [rsp+CCh] [rbp-3Ch] int v55; // [rsp+CCh] [rbp-3Ch] char *v56; // [rsp+D0h] [rbp-38h] char v57; // [rsp+D8h] [rbp-30h] BYREF _BYTE v58[7]; // [rsp+D9h] [rbp-2Fh] BYREF long long v59; // [rsp+E0h] [rbp-28h] long long v60; // [rsp+E8h] [rbp-20h] long long v61; // [rsp+F0h] [rbp-18h] long long v62; // [rsp+F8h] [rbp-10h] long long v63; // [rsp+100h] [rbp-8h] v60 = a2; v61 = a3; v59 = a1; v56 = &v57; if ( (_DWORD)a3 == -1 ) { v39 = v59; PropertyStr = JS_GetPropertyStr(v59, v60, v61, "hasIndices"); v48 = JS_ToBoolFree(v39, PropertyStr, v15); if ( v48 < 0 ) goto LABEL_31; if ( v48 ) { v56 = v58; v57 = 100; } v38 = v59; Property = JS_GetProperty(v59, v60, v61, 111); v49 = JS_ToBoolFree(v38, Property, v16); if ( v49 < 0 ) goto LABEL_31; if ( v49 ) { v17 = v56++; *v17 = 103; } v37 = v59; v45 = JS_GetPropertyStr(v59, v60, v61, "ignoreCase"); v50 = JS_ToBoolFree(v37, v45, v18); if ( v50 < 0 ) goto LABEL_31; if ( v50 ) { v19 = v56++; *v19 = 105; } v36 = v59; v44 = JS_GetPropertyStr(v59, v60, v61, "multiline"); v51 = JS_ToBoolFree(v36, v44, v20); if ( v51 < 0 ) goto LABEL_31; if ( v51 ) { v21 = v56++; *v21 = 109; } v35 = v59; v43 = JS_GetPropertyStr(v59, v60, v61, "dotAll"); v52 = JS_ToBoolFree(v35, v43, v22); if ( v52 < 0 ) goto LABEL_31; if ( v52 ) { v23 = v56++; *v23 = 115; } v34 = v59; v42 = JS_GetProperty(v59, v60, v61, 112); v53 = JS_ToBoolFree(v34, v42, v24); if ( v53 < 0 ) goto LABEL_31; if ( v53 ) { v25 = v56++; *v25 = 117; } v33 = v59; v41 = JS_GetPropertyStr(v59, v60, v61, "unicodeSets"); v54 = JS_ToBoolFree(v33, v41, v26); if ( v54 < 0 ) goto LABEL_31; if ( v54 ) { v27 = v56++; *v27 = 118; } v32 = v59; v40 = JS_GetPropertyStr(v59, v60, v61, "sticky"); v55 = JS_ToBoolFree(v32, v40, v28); if ( v55 < 0 ) { LABEL_31: LODWORD(v62) = 0; v63 = 6LL; } else { if ( v55 ) { v29 = v56++; *v29 = 121; } if ( v56 == &v57 ) v62 = JS_AtomToString(v59, 0x2Fu); else v62 = js_new_string8_len(v59, (long long)&v57, v56 - &v57); v63 = v30; } } else { v62 = JS_ThrowTypeErrorNotAnObject(v59, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6); v63 = v14; } return v62; }
js_regexp_get_flags: SUB RSP,0x108 MOV qword ptr [RSP + 0xe8],RSI MOV qword ptr [RSP + 0xf0],RDX MOV qword ptr [RSP + 0xe0],RDI LEA RAX,[RSP + 0xd8] MOV qword ptr [RSP + 0xd0],RAX MOV RAX,qword ptr [RSP + 0xf0] CMP EAX,-0x1 JZ 0x00184c1e MOV RDI,qword ptr [RSP + 0xe0] CALL 0x00135890 MOV qword ptr [RSP + 0xf8],RAX MOV qword ptr [RSP + 0x100],RDX JMP 0x00185124 LAB_00184c1e: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d64] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xb8],RAX MOV qword ptr [RSP + 0xc0],RDX MOV RSI,qword ptr [RSP + 0xb8] MOV RDX,qword ptr [RSP + 0xc0] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184c8f JMP 0x0018510d LAB_00184c8f: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184cb3 MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x64 LAB_00184cb3: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] MOV ECX,0x6f CALL 0x00130070 MOV RDI,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0xa8],RAX MOV qword ptr [RSP + 0xb0],RDX MOV RSI,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184d22 JMP 0x0018510d LAB_00184d22: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184d46 MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x67 LAB_00184d46: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d2d] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x98],RAX MOV qword ptr [RSP + 0xa0],RDX MOV RSI,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RSP + 0xa0] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184db7 JMP 0x0018510d LAB_00184db7: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184ddb MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x69 LAB_00184ddb: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d38] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x88],RAX MOV qword ptr [RSP + 0x90],RDX MOV RSI,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x90] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184e4c JMP 0x0018510d LAB_00184e4c: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184e70 MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x6d LAB_00184e70: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d42] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x78],RAX MOV qword ptr [RSP + 0x80],RDX MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184edb JMP 0x0018510d LAB_00184edb: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184eff MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x73 LAB_00184eff: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] MOV ECX,0x70 CALL 0x00130070 MOV RDI,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x68],RAX MOV qword ptr [RSP + 0x70],RDX MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184f62 JMP 0x0018510d LAB_00184f62: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00184f86 MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x75 LAB_00184f86: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d51] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x58],RAX MOV qword ptr [RSP + 0x60],RDX MOV RSI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x60] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00184feb JMP 0x0018510d LAB_00184feb: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x0018500f MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x76 LAB_0018500f: MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0xe0] MOV RSI,qword ptr [RSP + 0xe8] MOV RDX,qword ptr [RSP + 0xf0] LEA RCX,[0x214d5d] CALL 0x00138170 MOV RDI,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x48],RAX MOV qword ptr [RSP + 0x50],RDX MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x50] CALL 0x00134620 MOV dword ptr [RSP + 0xcc],EAX CMP dword ptr [RSP + 0xcc],0x0 JGE 0x00185074 JMP 0x0018510d LAB_00185074: CMP dword ptr [RSP + 0xcc],0x0 JZ 0x00185098 MOV RAX,qword ptr [RSP + 0xd0] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RSP + 0xd0],RCX MOV byte ptr [RAX],0x79 LAB_00185098: MOV RAX,qword ptr [RSP + 0xd0] LEA RCX,[RSP + 0xd8] CMP RAX,RCX JNZ 0x001850d1 MOV RDI,qword ptr [RSP + 0xe0] MOV ESI,0x2f CALL 0x0012f2f0 MOV qword ptr [RSP + 0xf8],RAX MOV qword ptr [RSP + 0x100],RDX JMP 0x00185124 LAB_001850d1: MOV RDI,qword ptr [RSP + 0xe0] LEA RSI,[RSP + 0xd8] MOV RAX,qword ptr [RSP + 0xd0] LEA RCX,[RSP + 0xd8] SUB RAX,RCX MOV EDX,EAX CALL 0x0012e8b0 MOV qword ptr [RSP + 0xf8],RAX MOV qword ptr [RSP + 0x100],RDX JMP 0x00185124 LAB_0018510d: MOV dword ptr [RSP + 0xf8],0x0 MOV qword ptr [RSP + 0x100],0x6 LAB_00185124: MOV RAX,qword ptr [RSP + 0xf8] MOV RDX,qword ptr [RSP + 0x100] ADD RSP,0x108 RET
int1 [16] js_regexp_get_flags(int8 param_1,int8 param_2,int8 param_3) { int8 uVar1; int iVar2; int1 auVar3 [16]; int1 *local_38; int1 local_30; int1 local_2f [7]; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = &local_30; local_28 = param_1; local_20 = param_2; local_18 = param_3; if ((int)param_3 == -1) { auVar3 = JS_GetPropertyStr(param_1,param_2,param_3,"hasIndices"); iVar2 = JS_ToBoolFree(param_1,auVar3._0_8_,auVar3._8_8_); uVar1 = local_28; if (-1 < iVar2) { if (iVar2 != 0) { local_38 = local_2f; local_30 = 100; } auVar3 = JS_GetProperty(local_28,local_20,local_18,0x6f); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x67; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetPropertyStr(local_28,local_20,local_18,"ignoreCase"); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x69; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetPropertyStr(local_28,local_20,local_18,"multiline"); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x6d; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetPropertyStr(local_28,local_20,local_18,"dotAll"); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x73; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetProperty(local_28,local_20,local_18,0x70); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x75; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetPropertyStr(local_28,local_20,local_18,"unicodeSets"); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x76; local_38 = local_38 + 1; } uVar1 = local_28; auVar3 = JS_GetPropertyStr(local_28,local_20,local_18,"sticky"); iVar2 = JS_ToBoolFree(uVar1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar2) { if (iVar2 != 0) { *local_38 = 0x79; local_38 = local_38 + 1; } if (local_38 == &local_30) { auVar3 = JS_AtomToString(local_28,0x2f); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } else { auVar3 = js_new_string8_len(local_28,&local_30,(int)local_38 - (int)&local_30) ; local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } goto LAB_00185124; } } } } } } } } local_10 = 0; local_8 = 6; } else { auVar3 = JS_ThrowTypeErrorNotAnObject(param_1); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; } LAB_00185124: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
41,959
ma_apply_undo_key_insert
eloqsql/storage/maria/ma_key_recover.c
my_bool _ma_apply_undo_key_insert(MARIA_HA *info, LSN undo_lsn, const uchar *header, uint length) { LSN lsn; my_bool res; uint keynr; uchar key_buff[MARIA_MAX_KEY_BUFF]; MARIA_SHARE *share= info->s; MARIA_KEY key; my_off_t new_root; struct st_msg_to_write_hook_for_undo_key msg; DBUG_ENTER("_ma_apply_undo_key_insert"); share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); keynr= key_nr_korr(header); length-= KEY_NR_STORE_SIZE; /* We have to copy key as _ma_ck_real_delete() may change it */ memcpy(key_buff, header + KEY_NR_STORE_SIZE, length); DBUG_DUMP("key_buff", key_buff, length); new_root= share->state.key_root[keynr]; /* Change the key to an internal structure. It's safe to have SEARCH_USER_KEY_HAS_TRANSID even if there isn't a transaction id, as ha_key_cmp() will stop comparison when key length is reached. For index with transid flag, the ref_length of the key is not correct. This should however be safe as long as this key is only used for comparsion against other keys (not for packing or for read-next etc as in this case we use data_length + ref_length, which is correct. */ key.keyinfo= share->keyinfo + keynr; key.data= key_buff; key.data_length= length - share->rec_reflength; key.ref_length= share->rec_reflength; key.flag= SEARCH_USER_KEY_HAS_TRANSID; res= ((share->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) ? maria_rtree_real_delete(info, &key, &new_root) : _ma_ck_real_delete(info, &key, &new_root)); if (res) _ma_mark_file_crashed(share); msg.root= &share->state.key_root[keynr]; msg.value= new_root; msg.keynr= keynr; if (_ma_write_clr(info, undo_lsn, *msg.root == msg.value ? LOGREC_UNDO_KEY_INSERT : LOGREC_UNDO_KEY_INSERT_WITH_ROOT, 0, 0, &lsn, (void*) &msg)) res= 1; _ma_fast_unlock_key_del(info); _ma_unpin_all_pages_and_finalize_row(info, lsn); DBUG_RETURN(res); }
O0
c
ma_apply_undo_key_insert: pushq %rbp movq %rsp, %rbp subq $0xa70, %rsp # imm = 0xA70 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x9e8(%rbp) movq %rsi, -0x9f0(%rbp) movq %rdx, -0x9f8(%rbp) movl %ecx, -0x9fc(%rbp) movq -0x9e8(%rbp), %rax movq (%rax), %rax movq %rax, -0xa18(%rbp) movq -0xa18(%rbp), %rax movl 0x170(%rax), %ecx orl $0x1b1, %ecx # imm = 0x1B1 movl %ecx, 0x170(%rax) movq -0x9f8(%rbp), %rax movzbl (%rax), %eax movl %eax, -0xa10(%rbp) movl -0x9fc(%rbp), %eax subl $0x1, %eax movl %eax, -0x9fc(%rbp) leaq -0x9e0(%rbp), %rdi movq -0x9f8(%rbp), %rsi addq $0x1, %rsi movl -0x9fc(%rbp), %eax movl %eax, %edx callq 0x2a090 jmp 0x722dd movq -0xa18(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx movq (%rax,%rcx,8), %rax movq %rax, -0xa40(%rbp) movq -0xa18(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movq %rax, -0xa30(%rbp) leaq -0x9e0(%rbp), %rax movq %rax, -0xa38(%rbp) movl -0x9fc(%rbp), %eax movq -0xa18(%rbp), %rcx subl 0x740(%rcx), %eax movl %eax, -0xa28(%rbp) movq -0xa18(%rbp), %rax movl 0x740(%rax), %eax movl %eax, -0xa24(%rbp) movl $0x80000, -0xa20(%rbp) # imm = 0x80000 movq -0xa18(%rbp), %rax movq 0x570(%rax), %rax movl -0xa10(%rbp), %ecx imulq $0x118, %rcx, %rcx # imm = 0x118 addq %rcx, %rax movzbl 0xa4(%rax), %eax cmpl $0x2, %eax jne 0x723b4 movq -0x9e8(%rbp), %rdi leaq -0xa38(%rbp), %rsi leaq -0xa40(%rbp), %rdx callq 0x8f210 movsbl %al, %eax movl %eax, -0xa64(%rbp) jmp 0x723d7 movq -0x9e8(%rbp), %rdi leaq -0xa38(%rbp), %rsi leaq -0xa40(%rbp), %rdx callq 0x87b20 movsbl %al, %eax movl %eax, -0xa64(%rbp) movl -0xa64(%rbp), %eax movb %al, -0xa09(%rbp) cmpb $0x0, -0xa09(%rbp) je 0x723f8 movq -0xa18(%rbp), %rdi callq 0x36250 movq -0xa18(%rbp), %rax movq 0x118(%rax), %rax movl -0xa10(%rbp), %ecx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0xa60(%rbp) movq -0xa40(%rbp), %rax movq %rax, -0xa58(%rbp) movl -0xa10(%rbp), %eax movl %eax, -0xa50(%rbp) movq -0x9e8(%rbp), %rdi movq -0x9f0(%rbp), %rsi movq -0xa60(%rbp), %rax movq (%rax), %rcx movq -0xa58(%rbp), %r8 movl $0x16, %edx movl $0x15, %eax cmpq %r8, %rcx cmovel %eax, %edx xorl %r8d, %r8d leaq -0xa08(%rbp), %r9 leaq -0xa60(%rbp), %rax movl %r8d, %ecx movq %rax, (%rsp) callq 0x70050 cmpb $0x0, %al je 0x7248b movb $0x1, -0xa09(%rbp) movq -0x9e8(%rbp), %rdi callq 0x705b0 movq -0x9e8(%rbp), %rdi movq -0xa08(%rbp), %rsi callq 0x724e0 movb -0xa09(%rbp), %al movb %al, -0xa65(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x724d7 movb -0xa65(%rbp), %al addq $0xa70, %rsp # imm = 0xA70 popq %rbp retq callq 0x2a270 nopl (%rax)
_ma_apply_undo_key_insert: push rbp mov rbp, rsp sub rsp, 0A70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_9E8], rdi mov [rbp+var_9F0], rsi mov [rbp+var_9F8], rdx mov [rbp+var_9FC], ecx mov rax, [rbp+var_9E8] mov rax, [rax] mov [rbp+var_A18], rax mov rax, [rbp+var_A18] mov ecx, [rax+170h] or ecx, 1B1h mov [rax+170h], ecx mov rax, [rbp+var_9F8] movzx eax, byte ptr [rax] mov [rbp+var_A10], eax mov eax, [rbp+var_9FC] sub eax, 1 mov [rbp+var_9FC], eax lea rdi, [rbp+var_9E0] mov rsi, [rbp+var_9F8] add rsi, 1 mov eax, [rbp+var_9FC] mov edx, eax call _memcpy jmp short $+2 loc_722DD: mov rax, [rbp+var_A18] mov rax, [rax+118h] mov ecx, [rbp+var_A10] mov rax, [rax+rcx*8] mov [rbp+var_A40], rax mov rax, [rbp+var_A18] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx mov [rbp+var_A30], rax lea rax, [rbp+var_9E0] mov [rbp+var_A38], rax mov eax, [rbp+var_9FC] mov rcx, [rbp+var_A18] sub eax, [rcx+740h] mov [rbp+var_A28], eax mov rax, [rbp+var_A18] mov eax, [rax+740h] mov [rbp+var_A24], eax mov [rbp+var_A20], offset loc_80000 mov rax, [rbp+var_A18] mov rax, [rax+570h] mov ecx, [rbp+var_A10] imul rcx, 118h add rax, rcx movzx eax, byte ptr [rax+0A4h] cmp eax, 2 jnz short loc_723B4 mov rdi, [rbp+var_9E8] lea rsi, [rbp+var_A38] lea rdx, [rbp+var_A40] call maria_rtree_real_delete movsx eax, al mov [rbp+var_A64], eax jmp short loc_723D7 loc_723B4: mov rdi, [rbp+var_9E8] lea rsi, [rbp+var_A38] lea rdx, [rbp+var_A40] call _ma_ck_real_delete movsx eax, al mov [rbp+var_A64], eax loc_723D7: mov eax, [rbp+var_A64] mov [rbp+var_A09], al cmp [rbp+var_A09], 0 jz short loc_723F8 mov rdi, [rbp+var_A18] call _ma_mark_file_crashed loc_723F8: mov rax, [rbp+var_A18] mov rax, [rax+118h] mov ecx, [rbp+var_A10] shl rcx, 3 add rax, rcx mov [rbp+var_A60], rax mov rax, [rbp+var_A40] mov [rbp+var_A58], rax mov eax, [rbp+var_A10] mov [rbp+var_A50], eax mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_9F0] mov rax, [rbp+var_A60] mov rcx, [rax] mov r8, [rbp+var_A58] mov edx, 16h mov eax, 15h cmp rcx, r8 cmovz edx, eax xor r8d, r8d lea r9, [rbp+var_A08] lea rax, [rbp+var_A60] mov ecx, r8d mov [rsp+0A70h+var_A70], rax call _ma_write_clr cmp al, 0 jz short loc_7248B mov [rbp+var_A09], 1 loc_7248B: mov rdi, [rbp+var_9E8] call _ma_fast_unlock_key_del mov rdi, [rbp+var_9E8] mov rsi, [rbp+var_A08] call _ma_unpin_all_pages_and_finalize_row mov al, [rbp+var_A09] mov [rbp+var_A65], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_724D7 mov al, [rbp+var_A65] add rsp, 0A70h pop rbp retn loc_724D7: call ___stack_chk_fail
char ma_apply_undo_key_insert(long long *a1, long long a2, unsigned __int8 *a3, int a4) { int v4; // edx char v6; // [rsp+Ch] [rbp-A64h] _QWORD v7[2]; // [rsp+10h] [rbp-A60h] BYREF unsigned int v8; // [rsp+20h] [rbp-A50h] long long v9; // [rsp+30h] [rbp-A40h] BYREF _QWORD v10[2]; // [rsp+38h] [rbp-A38h] BYREF int v11; // [rsp+48h] [rbp-A28h] int v12; // [rsp+4Ch] [rbp-A24h] int v13; // [rsp+50h] [rbp-A20h] long long v14; // [rsp+58h] [rbp-A18h] unsigned int v15; // [rsp+60h] [rbp-A10h] char v16; // [rsp+67h] [rbp-A09h] long long v17; // [rsp+68h] [rbp-A08h] BYREF int v18; // [rsp+74h] [rbp-9FCh] unsigned __int8 *v19; // [rsp+78h] [rbp-9F8h] long long v20; // [rsp+80h] [rbp-9F0h] long long *v21; // [rsp+88h] [rbp-9E8h] _BYTE v22[2520]; // [rsp+90h] [rbp-9E0h] BYREF unsigned long long v23; // [rsp+A68h] [rbp-8h] v23 = __readfsqword(0x28u); v21 = a1; v20 = a2; v19 = a3; v18 = a4; v14 = *a1; *(_DWORD *)(v14 + 368) |= 0x1B1u; v15 = *v19; memcpy(v22, v19 + 1, (unsigned int)--v18); v9 = *(_QWORD *)(*(_QWORD *)(v14 + 280) + 8LL * v15); v10[1] = 280LL * v15 + *(_QWORD *)(v14 + 1392); v10[0] = v22; v11 = v18 - *(_DWORD *)(v14 + 1856); v12 = *(_DWORD *)(v14 + 1856); v13 = (int)&loc_80000; if ( *(_BYTE *)(280LL * v15 + *(_QWORD *)(v14 + 1392) + 164) == 2 ) v6 = maria_rtree_real_delete(v21, v10, &v9); else v6 = ma_ck_real_delete(v21, v10, &v9); v16 = v6; if ( v6 ) ma_mark_file_crashed(v14); v7[0] = 8LL * v15 + *(_QWORD *)(v14 + 280); v7[1] = v9; v8 = v15; v4 = 22; if ( *(_QWORD *)v7[0] == v9 ) v4 = 21; if ( ma_write_clr(v21, v20, v4, 0, 0, (long long)&v17, (long long)v7) ) v16 = 1; ma_fast_unlock_key_del((long long)v21); ma_unpin_all_pages_and_finalize_row(v21, v17); return v16; }
_ma_apply_undo_key_insert: PUSH RBP MOV RBP,RSP SUB RSP,0xa70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x9e8],RDI MOV qword ptr [RBP + -0x9f0],RSI MOV qword ptr [RBP + -0x9f8],RDX MOV dword ptr [RBP + -0x9fc],ECX MOV RAX,qword ptr [RBP + -0x9e8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa18],RAX MOV RAX,qword ptr [RBP + -0xa18] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x1b1 MOV dword ptr [RAX + 0x170],ECX MOV RAX,qword ptr [RBP + -0x9f8] MOVZX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0xa10],EAX MOV EAX,dword ptr [RBP + -0x9fc] SUB EAX,0x1 MOV dword ptr [RBP + -0x9fc],EAX LEA RDI,[RBP + -0x9e0] MOV RSI,qword ptr [RBP + -0x9f8] ADD RSI,0x1 MOV EAX,dword ptr [RBP + -0x9fc] MOV EDX,EAX CALL 0x0012a090 JMP 0x001722dd LAB_001722dd: MOV RAX,qword ptr [RBP + -0xa18] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0xa40],RAX MOV RAX,qword ptr [RBP + -0xa18] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOV qword ptr [RBP + -0xa30],RAX LEA RAX,[RBP + -0x9e0] MOV qword ptr [RBP + -0xa38],RAX MOV EAX,dword ptr [RBP + -0x9fc] MOV RCX,qword ptr [RBP + -0xa18] SUB EAX,dword ptr [RCX + 0x740] MOV dword ptr [RBP + -0xa28],EAX MOV RAX,qword ptr [RBP + -0xa18] MOV EAX,dword ptr [RAX + 0x740] MOV dword ptr [RBP + -0xa24],EAX MOV dword ptr [RBP + -0xa20],0x80000 MOV RAX,qword ptr [RBP + -0xa18] MOV RAX,qword ptr [RAX + 0x570] MOV ECX,dword ptr [RBP + -0xa10] IMUL RCX,RCX,0x118 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0xa4] CMP EAX,0x2 JNZ 0x001723b4 MOV RDI,qword ptr [RBP + -0x9e8] LEA RSI,[RBP + -0xa38] LEA RDX,[RBP + -0xa40] CALL 0x0018f210 MOVSX EAX,AL MOV dword ptr [RBP + -0xa64],EAX JMP 0x001723d7 LAB_001723b4: MOV RDI,qword ptr [RBP + -0x9e8] LEA RSI,[RBP + -0xa38] LEA RDX,[RBP + -0xa40] CALL 0x00187b20 MOVSX EAX,AL MOV dword ptr [RBP + -0xa64],EAX LAB_001723d7: MOV EAX,dword ptr [RBP + -0xa64] MOV byte ptr [RBP + -0xa09],AL CMP byte ptr [RBP + -0xa09],0x0 JZ 0x001723f8 MOV RDI,qword ptr [RBP + -0xa18] CALL 0x00136250 LAB_001723f8: MOV RAX,qword ptr [RBP + -0xa18] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xa10] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0xa60],RAX MOV RAX,qword ptr [RBP + -0xa40] MOV qword ptr [RBP + -0xa58],RAX MOV EAX,dword ptr [RBP + -0xa10] MOV dword ptr [RBP + -0xa50],EAX MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0x9f0] MOV RAX,qword ptr [RBP + -0xa60] MOV RCX,qword ptr [RAX] MOV R8,qword ptr [RBP + -0xa58] MOV EDX,0x16 MOV EAX,0x15 CMP RCX,R8 CMOVZ EDX,EAX XOR R8D,R8D LEA R9,[RBP + -0xa08] LEA RAX,[RBP + -0xa60] MOV ECX,R8D MOV qword ptr [RSP],RAX CALL 0x00170050 CMP AL,0x0 JZ 0x0017248b MOV byte ptr [RBP + -0xa09],0x1 LAB_0017248b: MOV RDI,qword ptr [RBP + -0x9e8] CALL 0x001705b0 MOV RDI,qword ptr [RBP + -0x9e8] MOV RSI,qword ptr [RBP + -0xa08] CALL 0x001724e0 MOV AL,byte ptr [RBP + -0xa09] MOV byte ptr [RBP + -0xa65],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001724d7 MOV AL,byte ptr [RBP + -0xa65] ADD RSP,0xa70 POP RBP RET LAB_001724d7: CALL 0x0012a270
int8 _ma_apply_undo_key_insert(long *param_1,int8 param_2,byte *param_3,int param_4) { char cVar1; int8 uVar2; long in_FS_OFFSET; long *local_a68; long local_a60; uint local_a58; long local_a48; int1 *local_a40; long local_a38; int local_a30; int4 local_a2c; int4 local_a28; long local_a20; uint local_a18; char local_a11; int8 local_a10; uint local_a04; byte *local_a00; int8 local_9f8; long *local_9f0; int1 local_9e8 [2520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_a20 = *param_1; *(uint *)(local_a20 + 0x170) = *(uint *)(local_a20 + 0x170) | 0x1b1; local_a18 = (uint)*param_3; local_a04 = param_4 - 1; local_a00 = param_3; local_9f8 = param_2; local_9f0 = param_1; memcpy(local_9e8,param_3 + 1,(ulong)local_a04); local_a48 = *(long *)(*(long *)(local_a20 + 0x118) + (ulong)local_a18 * 8); local_a38 = *(long *)(local_a20 + 0x570) + (ulong)local_a18 * 0x118; local_a40 = local_9e8; local_a30 = local_a04 - *(int *)(local_a20 + 0x740); local_a2c = *(int4 *)(local_a20 + 0x740); local_a28 = 0x80000; if (*(char *)(*(long *)(local_a20 + 0x570) + (ulong)local_a18 * 0x118 + 0xa4) == '\x02') { local_a11 = maria_rtree_real_delete(local_9f0,&local_a40,&local_a48); } else { local_a11 = _ma_ck_real_delete(local_9f0,&local_a40,&local_a48); } if (local_a11 != '\0') { _ma_mark_file_crashed(local_a20); } local_a68 = (long *)(*(long *)(local_a20 + 0x118) + (ulong)local_a18 * 8); local_a60 = local_a48; local_a58 = local_a18; uVar2 = 0x16; if (*local_a68 == local_a48) { uVar2 = 0x15; } cVar1 = _ma_write_clr(local_9f0,local_9f8,uVar2,0,0,&local_a10,&local_a68); if (cVar1 != '\0') { local_a11 = '\x01'; } _ma_fast_unlock_key_del(local_9f0); _ma_unpin_all_pages_and_finalize_row(local_9f0,local_a10); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_a11); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,960
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::count(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&) const
monkey531[P]llama/common/./json.hpp
size_type count(const key_type& key) const { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return 1; } } return 0; }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::count(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&) 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 0xb6748 movq %r15, %rdi movq %rbx, %rsi callq 0xb4c27 leaq 0x60(%r15), %rcx testb %al, %al je 0xb6729 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_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE5countERSJ_: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov rcx, [rdi] loc_B6729: mov r15, rcx mov r12, [r14+8] cmp rcx, r12 jz short loc_B6748 mov rdi, r15 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rcx, [r15+60h] test al, al jz short loc_B6729 loc_B6748: xor eax, eax cmp r15, r12 setnz al add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
_BOOL8 nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::count( unsigned __int8 **a1, unsigned __int8 *a2, __m128d a3) { unsigned __int8 *v3; // rcx unsigned __int8 *v4; // r15 unsigned __int8 *v5; // r12 char v6; // al v3 = *a1; do { v4 = v3; v5 = a1[1]; if ( v3 == v5 ) break; v6 = nlohmann::json_abi_v3_11_3::operator==(v3, a2, a3); v3 = v4 + 96; } while ( !v6 ); return v4 != v5; }
count: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RCX,qword ptr [RDI] LAB_001b6729: MOV R15,RCX MOV R12,qword ptr [R14 + 0x8] CMP RCX,R12 JZ 0x001b6748 MOV RDI,R15 MOV RSI,RBX CALL 0x001b4c27 LEA RCX,[R15 + 0x60] TEST AL,AL JZ 0x001b6729 LAB_001b6748: XOR EAX,EAX CMP R15,R12 SETNZ AL ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::count(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&) const */ bool __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::count(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,basic_json *param_1) { basic_json *pbVar1; basic_json *pbVar2; char cVar3; basic_json *pbVar4; pbVar2 = *(basic_json **)this; do { pbVar4 = pbVar2; pbVar1 = *(basic_json **)(this + 8); if (pbVar4 == pbVar1) break; cVar3 = json_abi_v3_11_3::operator==(pbVar4,param_1); pbVar2 = pbVar4 + 0x60; } while (cVar3 == '\0'); return pbVar4 != pbVar1; }
41,961
my_end
eloqsql/mysys/my_init.c
void my_end(int infoflag) { /* this code is suboptimal to workaround a bug in Sun CC: Sun C++ 5.6 2004/06/02 for x86, and should not be optimized until this compiler is not in use anymore */ FILE *info_file= DBUG_FILE; my_bool print_info= (info_file != stderr); if (!my_init_done) return; /* We do not use DBUG_ENTER here, as after cleanup DBUG is no longer operational, so we cannot use DBUG_RETURN. */ DBUG_PRINT("info",("Shutting down: infoflag: %d print_info: %d", infoflag, print_info)); if (!info_file) { info_file= stderr; print_info= 0; } if ((infoflag & MY_CHECK_ERROR) || print_info) { /* Test if some file is left open */ char ebuff[512]; uint i, open_files, open_streams; for (open_streams= open_files= i= 0 ; i < my_file_limit ; i++) { if (my_file_info[i].type == UNOPEN) continue; if (my_file_info[i].type == STREAM_BY_FOPEN || my_file_info[i].type == STREAM_BY_FDOPEN) open_streams++; else open_files++; #ifdef EXTRA_DEBUG fprintf(stderr, EE(EE_FILE_NOT_CLOSED), my_file_info[i].name, i); fputc('\n', stderr); #endif } if (open_files || open_streams) { my_snprintf(ebuff, sizeof(ebuff), EE(EE_OPEN_WARNING), open_files, open_streams); my_message_stderr(EE_OPEN_WARNING, ebuff, ME_BELL); DBUG_PRINT("error", ("%s", ebuff)); } #ifdef CHECK_UNLIKELY end_my_likely(info_file); #endif } free_charsets(); my_error_unregister_all(); my_once_free(); if ((infoflag & MY_GIVE_INFO) || print_info) { #ifdef HAVE_GETRUSAGE struct rusage rus; #ifdef HAVE_valgrind /* Purify assumes that rus is uninitialized after getrusage call */ bzero((char*) &rus, sizeof(rus)); #endif if (!getrusage(RUSAGE_SELF, &rus)) fprintf(info_file,"\n\ User time %.2f, System time %.2f\n\ Maximum resident set size %ld, Integral resident set size %ld\n\ Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n\ Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n\ Voluntary context switches %ld, Involuntary context switches %ld\n", (rus.ru_utime.tv_sec * SCALE_SEC + rus.ru_utime.tv_usec / SCALE_USEC) / 100.0, (rus.ru_stime.tv_sec * SCALE_SEC + rus.ru_stime.tv_usec / SCALE_USEC) / 100.0, rus.ru_maxrss, rus.ru_idrss, rus.ru_minflt, rus.ru_majflt, rus.ru_nswap, rus.ru_inblock, rus.ru_oublock, rus.ru_msgsnd, rus.ru_msgrcv, rus.ru_nsignals, rus.ru_nvcsw, rus.ru_nivcsw); #endif #if defined(_MSC_VER) _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_WARN, _CRTDBG_FILE_STDERR ); _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR ); _CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR ); _CrtCheckMemory(); #endif } my_thread_end(); my_thread_global_end(); if (!(infoflag & MY_DONT_FREE_DBUG)) DBUG_END(); /* Must be done as late as possible */ my_mutex_end(); #if defined(SAFE_MUTEX) /* Check on destroying of mutexes. A few may be left that will get cleaned up by C++ destructors */ safe_mutex_end((infoflag & (MY_GIVE_INFO | MY_CHECK_ERROR)) ? stderr : (FILE *) 0); #endif /* defined(SAFE_MUTEX) */ #ifdef _WIN32 WSACleanup(); #endif /* At very last, delete mysys key, it is used everywhere including DBUG */ pthread_key_delete(THR_KEY_mysys); my_init_done= my_thr_key_mysys_exists= 0; }
O0
c
my_end: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x308, %rsp # imm = 0x308 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movl %edi, -0x234(%rbp) movq 0x1a81a2(%rip), %rax # 0x1cffe0 movq (%rax), %rax movq %rax, -0x240(%rbp) movq -0x240(%rbp), %rax movq 0x1a818a(%rip), %rcx # 0x1cffe0 cmpq (%rcx), %rax setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x241(%rbp) leaq 0x360172(%rip), %rax # 0x387fe0 cmpb $0x0, (%rax) jne 0x27e78 jmp 0x28171 jmp 0x27e7a jmp 0x27e7c cmpq $0x0, -0x240(%rbp) jne 0x27e9e movq 0x1a8153(%rip), %rax # 0x1cffe0 movq (%rax), %rax movq %rax, -0x240(%rbp) movb $0x0, -0x241(%rbp) movl -0x234(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0x27ebc movsbl -0x241(%rbp), %eax cmpl $0x0, %eax je 0x27fda movl $0x0, -0x248(%rbp) movl $0x0, -0x24c(%rbp) movl $0x0, -0x250(%rbp) movl -0x248(%rbp), %eax leaq 0x1a86a9(%rip), %rcx # 0x1d0590 cmpl (%rcx), %eax jae 0x27f7e leaq 0x1a86a2(%rip), %rax # 0x1d0598 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) jne 0x27f0e jmp 0x27f6a leaq 0x1a8683(%rip), %rax # 0x1d0598 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x3, 0x8(%rax) je 0x27f48 leaq 0x1a8666(%rip), %rax # 0x1d0598 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x4, 0x8(%rax) jne 0x27f59 movl -0x250(%rbp), %eax addl $0x1, %eax movl %eax, -0x250(%rbp) jmp 0x27f68 movl -0x24c(%rbp), %eax addl $0x1, %eax movl %eax, -0x24c(%rbp) jmp 0x27f6a movl -0x248(%rbp), %eax addl $0x1, %eax movl %eax, -0x248(%rbp) jmp 0x27eda cmpl $0x0, -0x24c(%rbp) jne 0x27f90 cmpl $0x0, -0x250(%rbp) je 0x27fd8 leaq -0x230(%rbp), %rdi leaq 0x1a8ae2(%rip), %rax # 0x1d0a80 movq 0x90(%rax), %rdx movl -0x24c(%rbp), %ecx movl -0x250(%rbp), %r8d movl $0x200, %esi # imm = 0x200 movb $0x0, %al callq 0x780f0 leaq -0x230(%rbp), %rsi movl $0x13, %edi movl $0x4, %edx callq 0x28990 jmp 0x27fd6 jmp 0x27fd8 jmp 0x27fda callq 0x2b7b0 callq 0x30890 callq 0x28d00 movl -0x234(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x28007 movsbl -0x241(%rbp), %eax cmpl $0x0, %eax je 0x2812c xorl %edi, %edi leaq -0x2e0(%rbp), %rsi callq 0x241a0 cmpl $0x0, %eax jne 0x2812a movq -0x240(%rbp), %rdi imulq $0x64, -0x2e0(%rbp), %rax movq %rax, -0x2f0(%rbp) movq -0x2d8(%rbp), %rax movl $0x2710, %ecx # imm = 0x2710 cqto idivq %rcx movq %rax, %rcx movq -0x2f0(%rbp), %rax addq %rcx, %rax cvtsi2sd %rax, %xmm0 movsd 0x57ba9(%rip), %xmm1 # 0x7fc08 divsd %xmm1, %xmm0 imulq $0x64, -0x2d0(%rbp), %rax movq %rax, -0x2e8(%rbp) movq -0x2c8(%rbp), %rax movl $0x2710, %ecx # imm = 0x2710 cqto idivq %rcx movq %rax, %rcx movq -0x2e8(%rbp), %rax addq %rcx, %rax cvtsi2sd %rax, %xmm1 movsd 0x57b6b(%rip), %xmm2 # 0x7fc08 divsd %xmm2, %xmm1 movq -0x2c0(%rbp), %rdx movq -0x2b0(%rbp), %rcx movq -0x2a0(%rbp), %r8 movq -0x298(%rbp), %r9 movq -0x290(%rbp), %r13 movq -0x288(%rbp), %r12 movq -0x280(%rbp), %r15 movq -0x278(%rbp), %r14 movq -0x270(%rbp), %rbx movq -0x268(%rbp), %r11 movq -0x260(%rbp), %r10 movq -0x258(%rbp), %rax leaq 0x5326f(%rip), %rsi # 0x7b36b movq %r13, (%rsp) movq %r12, 0x8(%rsp) movq %r15, 0x10(%rsp) movq %r14, 0x18(%rsp) movq %rbx, 0x20(%rsp) movq %r11, 0x28(%rsp) movq %r10, 0x30(%rsp) movq %rax, 0x38(%rsp) movb $0x2, %al callq 0x243e0 jmp 0x2812c callq 0x29530 callq 0x292a0 movl -0x234(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax jne 0x2814a jmp 0x28146 jmp 0x28148 jmp 0x2814a callq 0x29d30 leaq 0x360b76(%rip), %rax # 0x388ccc movl (%rax), %edi callq 0x24300 leaq 0x3608a0(%rip), %rax # 0x388a04 movb $0x0, (%rax) leaq 0x35fe72(%rip), %rax # 0x387fe0 movb $0x0, (%rax) movq %fs:0x28, %rax movq -0x30(%rbp), %rcx cmpq %rcx, %rax jne 0x28195 addq $0x308, %rsp # imm = 0x308 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x242b0 nopw (%rax,%rax)
my_end: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 308h mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_234], edi mov rax, cs:stderr_ptr mov rax, [rax] mov [rbp+var_240], rax mov rax, [rbp+var_240] mov rcx, cs:stderr_ptr cmp rax, [rcx] setnz al and al, 1 movzx eax, al mov [rbp+var_241], al lea rax, my_init_done cmp byte ptr [rax], 0 jnz short loc_27E78 jmp loc_28171 loc_27E78: jmp short $+2 loc_27E7A: jmp short $+2 loc_27E7C: cmp [rbp+var_240], 0 jnz short loc_27E9E mov rax, cs:stderr_ptr mov rax, [rax] mov [rbp+var_240], rax mov [rbp+var_241], 0 loc_27E9E: mov eax, [rbp+var_234] and eax, 1 cmp eax, 0 jnz short loc_27EBC movsx eax, [rbp+var_241] cmp eax, 0 jz loc_27FDA loc_27EBC: mov [rbp+var_248], 0 mov [rbp+var_24C], 0 mov [rbp+var_250], 0 loc_27EDA: mov eax, [rbp+var_248] lea rcx, my_file_limit cmp eax, [rcx] jnb loc_27F7E lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jnz short loc_27F0E jmp short loc_27F6A loc_27F0E: lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 3 jz short loc_27F48 lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 4 jnz short loc_27F59 loc_27F48: mov eax, [rbp+var_250] add eax, 1 mov [rbp+var_250], eax jmp short loc_27F68 loc_27F59: mov eax, [rbp+var_24C] add eax, 1 mov [rbp+var_24C], eax loc_27F68: jmp short $+2 loc_27F6A: mov eax, [rbp+var_248] add eax, 1 mov [rbp+var_248], eax jmp loc_27EDA loc_27F7E: cmp [rbp+var_24C], 0 jnz short loc_27F90 cmp [rbp+var_250], 0 jz short loc_27FD8 loc_27F90: lea rdi, [rbp+var_230] lea rax, globerrs mov rdx, [rax+90h] mov ecx, [rbp+var_24C] mov r8d, [rbp+var_250] mov esi, 200h mov al, 0 call my_snprintf lea rsi, [rbp+var_230] mov edi, 13h mov edx, 4 call my_message_stderr jmp short $+2 loc_27FD6: jmp short $+2 loc_27FD8: jmp short $+2 loc_27FDA: call free_charsets call my_error_unregister_all call my_once_free mov eax, [rbp+var_234] and eax, 2 cmp eax, 0 jnz short loc_28007 movsx eax, [rbp+var_241] cmp eax, 0 jz loc_2812C loc_28007: xor edi, edi lea rsi, [rbp+var_2E0] call _getrusage cmp eax, 0 jnz loc_2812A mov rdi, [rbp+var_240] imul rax, [rbp+var_2E0], 64h ; 'd' mov [rbp+var_2F0], rax mov rax, [rbp+var_2D8] mov ecx, 2710h cqo idiv rcx mov rcx, rax mov rax, [rbp+var_2F0] add rax, rcx cvtsi2sd xmm0, rax movsd xmm1, cs:qword_7FC08 divsd xmm0, xmm1 imul rax, [rbp+var_2D0], 64h ; 'd' mov [rbp+var_2E8], rax mov rax, [rbp+var_2C8] mov ecx, 2710h cqo idiv rcx mov rcx, rax mov rax, [rbp+var_2E8] add rax, rcx cvtsi2sd xmm1, rax movsd xmm2, cs:qword_7FC08 divsd xmm1, xmm2 mov rdx, [rbp+var_2C0] mov rcx, [rbp+var_2B0] mov r8, [rbp+var_2A0] mov r9, [rbp+var_298] mov r13, [rbp+var_290] mov r12, [rbp+var_288] mov r15, [rbp+var_280] mov r14, [rbp+var_278] mov rbx, [rbp+var_270] mov r11, [rbp+var_268] mov r10, [rbp+var_260] mov rax, [rbp+var_258] lea rsi, aUserTime2fSyst; "\nUser time %.2f, System time %.2f\nMax"... mov [rsp+330h+var_330], r13 mov [rsp+330h+var_328], r12 mov [rsp+330h+var_320], r15 mov [rsp+330h+var_318], r14 mov [rsp+330h+var_310], rbx mov [rsp+330h+var_308], r11 mov [rsp+330h+var_300], r10 mov [rsp+330h+var_2F8], rax mov al, 2 call _fprintf loc_2812A: jmp short $+2 loc_2812C: call my_thread_end call my_thread_global_end mov eax, [rbp+var_234] and eax, 4 cmp eax, 0 jnz short loc_2814A jmp short $+2 loc_28146: jmp short $+2 loc_28148: jmp short $+2 loc_2814A: call my_mutex_end lea rax, THR_KEY_mysys mov edi, [rax] call _pthread_key_delete lea rax, my_thr_key_mysys_exists mov byte ptr [rax], 0 lea rax, my_init_done mov byte ptr [rax], 0 loc_28171: mov rax, fs:28h mov rcx, [rbp+var_30] cmp rax, rcx jnz short loc_28195 add rsp, 308h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_28195: call ___stack_chk_fail
unsigned long long my_end(int a1, long long a2, long long a3, long long a4, long long a5, int a6) { _QWORD v7[2]; // [rsp+50h] [rbp-2E0h] BYREF long long v8; // [rsp+60h] [rbp-2D0h] long long v9; // [rsp+68h] [rbp-2C8h] long long v10; // [rsp+70h] [rbp-2C0h] long long v11; // [rsp+80h] [rbp-2B0h] long long v12; // [rsp+90h] [rbp-2A0h] long long v13; // [rsp+98h] [rbp-298h] long long v14; // [rsp+A0h] [rbp-290h] long long v15; // [rsp+A8h] [rbp-288h] long long v16; // [rsp+B0h] [rbp-280h] long long v17; // [rsp+B8h] [rbp-278h] long long v18; // [rsp+C0h] [rbp-270h] long long v19; // [rsp+C8h] [rbp-268h] long long v20; // [rsp+D0h] [rbp-260h] long long v21; // [rsp+D8h] [rbp-258h] int v22; // [rsp+E0h] [rbp-250h] int v23; // [rsp+E4h] [rbp-24Ch] unsigned int v24; // [rsp+E8h] [rbp-248h] char v25; // [rsp+EFh] [rbp-241h] long long v26; // [rsp+F0h] [rbp-240h] int v27; // [rsp+FCh] [rbp-234h] _BYTE v28[512]; // [rsp+100h] [rbp-230h] BYREF unsigned long long v29; // [rsp+300h] [rbp-30h] v29 = __readfsqword(0x28u); v27 = a1; v26 = stderr; v25 = 0; if ( my_init_done ) { if ( !v26 ) { v26 = stderr; v25 = 0; } if ( (v27 & 1) != 0 ) { v24 = 0; v23 = 0; v22 = 0; while ( v24 < my_file_limit ) { if ( *((_DWORD *)my_file_info + 4 * v24 + 2) ) { if ( *((_DWORD *)my_file_info + 4 * v24 + 2) == 3 || *((_DWORD *)my_file_info + 4 * v24 + 2) == 4 ) ++v22; else ++v23; } ++v24; } if ( v23 || v22 ) { my_snprintf((unsigned int)v28, 512, (unsigned int)globerrs[18], v23, v22, a6); my_message_stderr(19LL, v28, 4LL); } } free_charsets(); my_error_unregister_all(); my_once_free(); if ( (v27 & 2) != 0 && !(unsigned int)getrusage(0LL, v7) ) fprintf( v26, "\n" "User time %.2f, System time %.2f\n" "Maximum resident set size %ld, Integral resident set size %ld\n" "Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n" "Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n" "Voluntary context switches %ld, Involuntary context switches %ld\n", (double)(int)(v7[1] / 10000LL + 100 * LODWORD(v7[0])) / 100.0, (double)(int)(v9 / 10000 + 100 * v8) / 100.0, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21); my_thread_end(); my_thread_global_end(); my_mutex_end(); pthread_key_delete(THR_KEY_mysys); my_thr_key_mysys_exists = 0; my_init_done = 0; } return __readfsqword(0x28u); }
my_end: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x308 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x234],EDI MOV RAX,qword ptr [0x002cffe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x240],RAX MOV RAX,qword ptr [RBP + -0x240] MOV RCX,qword ptr [0x002cffe0] CMP RAX,qword ptr [RCX] SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x241],AL LEA RAX,[0x487fe0] CMP byte ptr [RAX],0x0 JNZ 0x00127e78 JMP 0x00128171 LAB_00127e78: JMP 0x00127e7a LAB_00127e7a: JMP 0x00127e7c LAB_00127e7c: CMP qword ptr [RBP + -0x240],0x0 JNZ 0x00127e9e MOV RAX,qword ptr [0x002cffe0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x240],RAX MOV byte ptr [RBP + -0x241],0x0 LAB_00127e9e: MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x1 CMP EAX,0x0 JNZ 0x00127ebc MOVSX EAX,byte ptr [RBP + -0x241] CMP EAX,0x0 JZ 0x00127fda LAB_00127ebc: MOV dword ptr [RBP + -0x248],0x0 MOV dword ptr [RBP + -0x24c],0x0 MOV dword ptr [RBP + -0x250],0x0 LAB_00127eda: MOV EAX,dword ptr [RBP + -0x248] LEA RCX,[0x2d0590] CMP EAX,dword ptr [RCX] JNC 0x00127f7e LEA RAX,[0x2d0598] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JNZ 0x00127f0e JMP 0x00127f6a LAB_00127f0e: LEA RAX,[0x2d0598] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x3 JZ 0x00127f48 LEA RAX,[0x2d0598] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x4 JNZ 0x00127f59 LAB_00127f48: MOV EAX,dword ptr [RBP + -0x250] ADD EAX,0x1 MOV dword ptr [RBP + -0x250],EAX JMP 0x00127f68 LAB_00127f59: MOV EAX,dword ptr [RBP + -0x24c] ADD EAX,0x1 MOV dword ptr [RBP + -0x24c],EAX LAB_00127f68: JMP 0x00127f6a LAB_00127f6a: MOV EAX,dword ptr [RBP + -0x248] ADD EAX,0x1 MOV dword ptr [RBP + -0x248],EAX JMP 0x00127eda LAB_00127f7e: CMP dword ptr [RBP + -0x24c],0x0 JNZ 0x00127f90 CMP dword ptr [RBP + -0x250],0x0 JZ 0x00127fd8 LAB_00127f90: LEA RDI,[RBP + -0x230] LEA RAX,[0x2d0a80] MOV RDX,qword ptr [RAX + 0x90] MOV ECX,dword ptr [RBP + -0x24c] MOV R8D,dword ptr [RBP + -0x250] MOV ESI,0x200 MOV AL,0x0 CALL 0x001780f0 LEA RSI,[RBP + -0x230] MOV EDI,0x13 MOV EDX,0x4 CALL 0x00128990 JMP 0x00127fd6 LAB_00127fd6: JMP 0x00127fd8 LAB_00127fd8: JMP 0x00127fda LAB_00127fda: CALL 0x0012b7b0 CALL 0x00130890 CALL 0x00128d00 MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x2 CMP EAX,0x0 JNZ 0x00128007 MOVSX EAX,byte ptr [RBP + -0x241] CMP EAX,0x0 JZ 0x0012812c LAB_00128007: XOR EDI,EDI LEA RSI,[RBP + -0x2e0] CALL 0x001241a0 CMP EAX,0x0 JNZ 0x0012812a MOV RDI,qword ptr [RBP + -0x240] IMUL RAX,qword ptr [RBP + -0x2e0],0x64 MOV qword ptr [RBP + -0x2f0],RAX MOV RAX,qword ptr [RBP + -0x2d8] MOV ECX,0x2710 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x2f0] ADD RAX,RCX CVTSI2SD XMM0,RAX MOVSD XMM1,qword ptr [0x0017fc08] DIVSD XMM0,XMM1 IMUL RAX,qword ptr [RBP + -0x2d0],0x64 MOV qword ptr [RBP + -0x2e8],RAX MOV RAX,qword ptr [RBP + -0x2c8] MOV ECX,0x2710 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x2e8] ADD RAX,RCX CVTSI2SD XMM1,RAX MOVSD XMM2,qword ptr [0x0017fc08] DIVSD XMM1,XMM2 MOV RDX,qword ptr [RBP + -0x2c0] MOV RCX,qword ptr [RBP + -0x2b0] MOV R8,qword ptr [RBP + -0x2a0] MOV R9,qword ptr [RBP + -0x298] MOV R13,qword ptr [RBP + -0x290] MOV R12,qword ptr [RBP + -0x288] MOV R15,qword ptr [RBP + -0x280] MOV R14,qword ptr [RBP + -0x278] MOV RBX,qword ptr [RBP + -0x270] MOV R11,qword ptr [RBP + -0x268] MOV R10,qword ptr [RBP + -0x260] MOV RAX,qword ptr [RBP + -0x258] LEA RSI,[0x17b36b] MOV qword ptr [RSP],R13 MOV qword ptr [RSP + 0x8],R12 MOV qword ptr [RSP + 0x10],R15 MOV qword ptr [RSP + 0x18],R14 MOV qword ptr [RSP + 0x20],RBX MOV qword ptr [RSP + 0x28],R11 MOV qword ptr [RSP + 0x30],R10 MOV qword ptr [RSP + 0x38],RAX MOV AL,0x2 CALL 0x001243e0 LAB_0012812a: JMP 0x0012812c LAB_0012812c: CALL 0x00129530 CALL 0x001292a0 MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x4 CMP EAX,0x0 JNZ 0x0012814a JMP 0x00128146 LAB_00128146: JMP 0x00128148 LAB_00128148: JMP 0x0012814a LAB_0012814a: CALL 0x00129d30 LEA RAX,[0x488ccc] MOV EDI,dword ptr [RAX] CALL 0x00124300 LEA RAX,[0x488a04] MOV byte ptr [RAX],0x0 LEA RAX,[0x487fe0] MOV byte ptr [RAX],0x0 LAB_00128171: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,RCX JNZ 0x00128195 ADD RSP,0x308 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00128195: CALL 0x001242b0
void my_end(uint param_1) { int iVar1; long in_FS_OFFSET; bool bVar2; bool bVar3; rusage local_2e8; int local_258; int local_254; uint local_250; bool local_249; FILE *local_248; uint local_23c; int1 local_238 [512]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_248 = *(FILE **)PTR_stderr_002cffe0; bVar2 = local_248 != *(FILE **)PTR_stderr_002cffe0; local_249 = bVar2; local_23c = param_1; if (my_init_done != '\0') { bVar3 = local_248 == (FILE *)0x0; if (bVar3) { local_248 = *(FILE **)PTR_stderr_002cffe0; } bVar3 = !bVar3; local_249 = bVar3 && bVar2; if (((param_1 & 1) != 0) || (bVar3 && bVar2)) { local_254 = 0; local_258 = 0; for (local_250 = 0; local_250 < my_file_limit; local_250 = local_250 + 1) { if (*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) != 0) { if ((*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 3) || (*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 4)) { local_258 = local_258 + 1; } else { local_254 = local_254 + 1; } } } if ((local_254 != 0) || (local_258 != 0)) { my_snprintf(local_238,0x200,globerrs._144_8_,local_254,local_258); my_message_stderr(0x13,local_238,4); } } free_charsets(); my_error_unregister_all(); my_once_free(); if ((((local_23c & 2) != 0) || (local_249 != false)) && (iVar1 = getrusage(RUSAGE_SELF,&local_2e8), iVar1 == 0)) { fprintf(local_248, "\nUser time %.2f, System time %.2f\nMaximum resident set size %ld, Integral resident set size %ld\nNon-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\nBlocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\nVoluntary context switches %ld, Involuntary context switches %ld\n" ,(double)(local_2e8.ru_utime.tv_sec * 100 + local_2e8.ru_utime.tv_usec / 10000) / DAT_0017fc08, (double)(local_2e8.ru_stime.tv_sec * 100 + local_2e8.ru_stime.tv_usec / 10000) / DAT_0017fc08,local_2e8.ru_maxrss,local_2e8.ru_idrss,local_2e8.ru_minflt, local_2e8.ru_majflt,local_2e8.ru_nswap,local_2e8.ru_inblock,local_2e8.ru_oublock, local_2e8.ru_msgsnd,local_2e8.ru_msgrcv,local_2e8.ru_nsignals,local_2e8.ru_nvcsw, local_2e8.ru_nivcsw); } my_thread_end(); my_thread_global_end(); my_mutex_end(); pthread_key_delete(THR_KEY_mysys); my_thr_key_mysys_exists = 0; my_init_done = '\0'; } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,962
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, bool, 0>(fmt::v10::appender, bool, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
FMT_CONSTEXPR auto write(OutputIt out, T value, const format_specs<Char>& specs = {}, locale_ref = {}) -> OutputIt { return specs.type != presentation_type::none && specs.type != presentation_type::string ? write(out, value ? 1 : 0, specs, {}) : write_bytes(out, value ? "true" : "false", specs); }
O0
c
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender, bool, 0>(fmt::v10::appender, bool, fmt::v10::format_specs<char> const&, fmt::v10::detail::locale_ref): subq $0x108, %rsp # imm = 0x108 movb %sil, %al movq %rdi, 0x68(%rsp) movq %rcx, 0x60(%rsp) andb $0x1, %al movb %al, 0x5f(%rsp) movq %rdx, 0x50(%rsp) movq 0x50(%rsp), %rax cmpb $0x0, 0x8(%rax) je 0xa3d27 movq 0x50(%rsp), %rax cmpb $0x10, 0x8(%rax) je 0xa3d27 movq 0x68(%rsp), %rax movq %rax, 0x48(%rsp) movb 0x5f(%rsp), %dl xorl %ecx, %ecx movl $0x1, %eax testb $0x1, %dl cmovnel %eax, %ecx movq 0x50(%rsp), %rax leaq 0x40(%rsp), %rdx movq %rdx, 0x78(%rsp) movq 0x78(%rsp), %rdx movq $0x0, (%rdx) movq 0x48(%rsp), %rsi movq 0x40(%rsp), %rdx movq %rsi, 0xe8(%rsp) movq %rdx, 0xe0(%rsp) movl %ecx, 0xdc(%rsp) movq %rax, 0xd0(%rsp) movq 0xd0(%rsp), %rax movw 0x9(%rax), %ax shrw $0x8, %ax andw $0x1, %ax testw $0x1, %ax je 0xa3c9d movq 0xe8(%rsp), %rax movq %rax, 0xc8(%rsp) movl 0xdc(%rsp), %esi leaq 0xa0(%rsp), %rdi callq 0xa4090 movq 0xd0(%rsp), %rsi movq 0xe0(%rsp), %rax movq %rax, 0x98(%rsp) movq 0xc8(%rsp), %rdi movq 0x98(%rsp), %rdx leaq 0xa0(%rsp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rcx movq %rcx, 0x10(%rsp) movq 0x18(%rax), %rax movq %rax, 0x18(%rsp) callq 0xa3ea0 testb $0x1, %al jne 0xa3c8b jmp 0xa3c9d movq 0xe8(%rsp), %rax movq %rax, 0xf0(%rsp) jmp 0xa3d15 movq 0xe8(%rsp), %rax movq %rax, 0x90(%rsp) movl 0xdc(%rsp), %edi movq 0xd0(%rsp), %rax movw 0x9(%rax), %ax shrw $0x4, %ax andw $0x7, %ax movzbl %al, %esi callq 0xa4d20 movq %rax, 0x88(%rsp) movq 0xd0(%rsp), %rdx movq 0xe0(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x90(%rsp), %rdi movq 0x88(%rsp), %rsi movq 0x80(%rsp), %rcx callq 0xa40c0 movq %rax, 0xf0(%rsp) movq 0xf0(%rsp), %rax movq %rax, 0x70(%rsp) jmp 0xa3dae movq 0x68(%rsp), %rax movq %rax, 0x38(%rsp) movb 0x5f(%rsp), %dl leaq 0x10a0ef(%rip), %rax # 0x1ade2b leaq 0x10a0e3(%rip), %rcx # 0x1ade26 testb $0x1, %dl cmovneq %rcx, %rax leaq 0x28(%rsp), %rcx movq %rcx, 0x100(%rsp) movq %rax, 0xf8(%rsp) movq 0x100(%rsp), %rax movq %rax, 0x20(%rsp) movq 0xf8(%rsp), %rcx movq %rcx, (%rax) movq 0xf8(%rsp), %rdi callq 0x895d0 movq %rax, %rcx movq 0x20(%rsp), %rax movq %rcx, 0x8(%rax) movq 0x50(%rsp), %rcx movq 0x38(%rsp), %rdi movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx callq 0xa3e30 movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rax addq $0x108, %rsp # imm = 0x108 retq nopl (%rax,%rax)
_ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE: sub rsp, 108h mov al, sil mov [rsp+108h+var_A0], rdi mov [rsp+108h+var_A8], rcx and al, 1 mov [rsp+108h+var_A9], al mov [rsp+108h+var_B8], rdx mov rax, [rsp+108h+var_B8] cmp byte ptr [rax+8], 0 jz loc_A3D27 mov rax, [rsp+108h+var_B8] cmp byte ptr [rax+8], 10h jz loc_A3D27 mov rax, [rsp+108h+var_A0] mov [rsp+108h+var_C0], rax mov dl, [rsp+108h+var_A9] xor ecx, ecx mov eax, 1 test dl, 1 cmovnz ecx, eax mov rax, [rsp+108h+var_B8] lea rdx, [rsp+108h+var_C8] mov [rsp+108h+var_90], rdx mov rdx, [rsp+108h+var_90] mov qword ptr [rdx], 0 mov rsi, [rsp+108h+var_C0] mov rdx, [rsp+108h+var_C8] mov [rsp+108h+var_20], rsi mov [rsp+108h+var_28], rdx mov [rsp+108h+var_2C], ecx mov [rsp+108h+var_38], rax mov rax, [rsp+108h+var_38] mov ax, [rax+9] shr ax, 8 and ax, 1 test ax, 1 jz loc_A3C9D mov rax, [rsp+108h+var_20] mov [rsp+108h+var_40], rax mov esi, [rsp+108h+var_2C] lea rdi, [rsp+108h+var_68] call _ZN3fmt3v109loc_valueC2IiTnNSt9enable_ifIXntsr6detail11is_float128IT_EE5valueEiE4typeELi0EEES4_ mov rsi, [rsp+108h+var_38] mov rax, [rsp+108h+var_28] mov [rsp+108h+var_70], rax mov rdi, [rsp+108h+var_40] mov rdx, [rsp+108h+var_70] lea rax, [rsp+108h+var_68] mov rcx, [rax] mov [rsp+108h+var_108], rcx mov rcx, [rax+8] mov [rsp+108h+var_100], rcx mov rcx, [rax+10h] mov [rsp+108h+var_F8], rcx mov rax, [rax+18h] mov [rsp+108h+var_F0], rax call _ZN3fmt3v106detail9write_locENS0_8appenderENS0_9loc_valueERKNS0_12format_specsIcEENS1_10locale_refE; fmt::v10::detail::write_loc(fmt::v10::appender,fmt::v10::loc_value,fmt::v10::format_specs<char> const&,fmt::v10::detail::locale_ref) test al, 1 jnz short loc_A3C8B jmp short loc_A3C9D loc_A3C8B: mov rax, [rsp+108h+var_20] mov [rsp+108h+var_18], rax jmp short loc_A3D15 loc_A3C9D: mov rax, [rsp+108h+var_20] mov [rsp+108h+var_78], rax mov edi, [rsp+108h+var_2C] mov rax, [rsp+108h+var_38] mov ax, [rax+9] shr ax, 4 and ax, 7 movzx esi, al call _ZN3fmt3v106detail18make_write_int_argIiEENS1_13write_int_argINSt11conditionalIXaalecl8num_bitsIT_EELi32EntLi0EEjNS4_IXlecl8num_bitsIS5_EELi64EEmoE4typeEE4typeEEES5_NS0_4sign4typeE; fmt::v10::detail::make_write_int_arg<int>(int,fmt::v10::sign::type) mov [rsp+108h+var_80], rax mov rdx, [rsp+108h+var_38] mov rax, [rsp+108h+var_28] mov [rsp+108h+var_88], rax mov rdi, [rsp+108h+var_78] mov rsi, [rsp+108h+var_80] mov rcx, [rsp+108h+var_88] call _ZN3fmt3v106detail18write_int_noinlineIcNS0_8appenderEjEET0_S4_NS1_13write_int_argIT1_EERKNS0_12format_specsIT_EENS1_10locale_refE; fmt::v10::detail::write_int_noinline<char,fmt::v10::appender,uint>(fmt::v10::appender,fmt::v10::detail::write_int_arg<uint>,fmt::v10::format_specs<char> const&,fmt::v10::detail::locale_ref) mov [rsp+108h+var_18], rax loc_A3D15: mov rax, [rsp+108h+var_18] mov [rsp+108h+var_98], rax jmp loc_A3DAE loc_A3D27: mov rax, [rsp+108h+var_A0] mov [rsp+108h+var_D0], rax mov dl, [rsp+108h+var_A9] lea rax, aFalse; "false" lea rcx, aTrue; "true" test dl, 1 cmovnz rax, rcx lea rcx, [rsp+108h+var_E0] mov [rsp+108h+var_8], rcx mov [rsp+108h+var_10], rax mov rax, [rsp+108h+var_8] mov [rsp+108h+var_E8], rax mov rcx, [rsp+108h+var_10] mov [rax], rcx mov rdi, [rsp+108h+var_10] call _strlen mov rcx, rax mov rax, [rsp+108h+var_E8] mov [rax+8], rcx mov rcx, [rsp+108h+var_B8] mov rdi, [rsp+108h+var_D0] mov rsi, [rsp+108h+var_E0] mov rdx, [rsp+108h+var_D8] call _ZN3fmt3v106detail11write_bytesILNS0_5align4typeE1EcNS0_8appenderEEET1_S6_NS0_17basic_string_viewIcEERKNS0_12format_specsIT0_EE; fmt::v10::detail::write_bytes<(fmt::v10::align::type)1,char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char> const&) mov [rsp+108h+var_98], rax loc_A3DAE: mov rax, [rsp+108h+var_98] add rsp, 108h retn
_ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE: SUB RSP,0x108 MOV AL,SIL MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RCX AND AL,0x1 MOV byte ptr [RSP + 0x5f],AL MOV qword ptr [RSP + 0x50],RDX MOV RAX,qword ptr [RSP + 0x50] CMP byte ptr [RAX + 0x8],0x0 JZ 0x001a3d27 MOV RAX,qword ptr [RSP + 0x50] CMP byte ptr [RAX + 0x8],0x10 JZ 0x001a3d27 MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x48],RAX MOV DL,byte ptr [RSP + 0x5f] XOR ECX,ECX MOV EAX,0x1 TEST DL,0x1 CMOVNZ ECX,EAX MOV RAX,qword ptr [RSP + 0x50] LEA RDX,[RSP + 0x40] MOV qword ptr [RSP + 0x78],RDX MOV RDX,qword ptr [RSP + 0x78] MOV qword ptr [RDX],0x0 MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xe8],RSI MOV qword ptr [RSP + 0xe0],RDX MOV dword ptr [RSP + 0xdc],ECX MOV qword ptr [RSP + 0xd0],RAX MOV RAX,qword ptr [RSP + 0xd0] MOV AX,word ptr [RAX + 0x9] SHR AX,0x8 AND AX,0x1 TEST AX,0x1 JZ 0x001a3c9d MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0xc8],RAX MOV ESI,dword ptr [RSP + 0xdc] LEA RDI,[RSP + 0xa0] CALL 0x001a4090 MOV RSI,qword ptr [RSP + 0xd0] MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0xc8] MOV RDX,qword ptr [RSP + 0x98] LEA RAX,[RSP + 0xa0] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RCX MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RSP + 0x18],RAX CALL 0x001a3ea0 TEST AL,0x1 JNZ 0x001a3c8b JMP 0x001a3c9d LAB_001a3c8b: MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0xf0],RAX JMP 0x001a3d15 LAB_001a3c9d: MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0x90],RAX MOV EDI,dword ptr [RSP + 0xdc] MOV RAX,qword ptr [RSP + 0xd0] MOV AX,word ptr [RAX + 0x9] SHR AX,0x4 AND AX,0x7 MOVZX ESI,AL CALL 0x001a4d20 MOV qword ptr [RSP + 0x88],RAX MOV RDX,qword ptr [RSP + 0xd0] MOV RAX,qword ptr [RSP + 0xe0] MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x88] MOV RCX,qword ptr [RSP + 0x80] CALL 0x001a40c0 MOV qword ptr [RSP + 0xf0],RAX LAB_001a3d15: MOV RAX,qword ptr [RSP + 0xf0] MOV qword ptr [RSP + 0x70],RAX JMP 0x001a3dae LAB_001a3d27: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x38],RAX MOV DL,byte ptr [RSP + 0x5f] LEA RAX,[0x2ade2b] LEA RCX,[0x2ade26] TEST DL,0x1 CMOVNZ RAX,RCX LEA RCX,[RSP + 0x28] MOV qword ptr [RSP + 0x100],RCX MOV qword ptr [RSP + 0xf8],RAX MOV RAX,qword ptr [RSP + 0x100] MOV qword ptr [RSP + 0x20],RAX MOV RCX,qword ptr [RSP + 0xf8] MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x001895d0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x30] CALL 0x001a3e30 MOV qword ptr [RSP + 0x70],RAX LAB_001a3dae: MOV RAX,qword ptr [RSP + 0x70] ADD RSP,0x108 RET
detail * _ZN3fmt3v106detail5writeIcNS0_8appenderEbTnNSt9enable_ifIXsr3std7is_sameIT1_bEE5valueEiE4typeELi0EEET0_S8_S5_RKNS0_12format_specsIT_EENS1_10locale_refE (detail *param_1,byte param_2,long param_3,int8 param_4) { ulong uVar1; detail *pdVar2; size_t sVar3; char *local_e0 [2]; detail *local_d0; int1 local_c8 [8]; detail *local_c0; long local_b8; byte local_a9; int8 local_a8; detail *local_a0; int1 *local_90; int8 local_88; int8 local_80; detail *local_78; int8 local_70; int1 local_68 [40]; detail *local_40; long local_38; uint local_2c; int8 local_28; detail *local_20; char *local_10; char **local_8; local_a9 = param_2 & 1; local_b8 = param_3; local_a8 = param_4; local_a0 = param_1; if ((*(char *)(param_3 + 8) != '\0') && (*(char *)(param_3 + 8) != '\x10')) { local_90 = local_c8; local_28 = 0; local_2c = (uint)(local_a9 != 0); local_c0 = param_1; local_38 = param_3; local_20 = param_1; if ((*(ushort *)(param_3 + 9) >> 8 & 1) != 0) { local_40 = param_1; _ZN3fmt3v109loc_valueC2IiTnNSt9enable_ifIXntsr6detail11is_float128IT_EE5valueEiE4typeELi0EEES4_ (local_68,local_2c); local_70 = local_28; uVar1 = fmt::v10::detail::write_loc(local_40,local_38,local_28); if ((uVar1 & 1) != 0) { return local_20; } } local_78 = local_20; local_80 = fmt::v10::detail::write_int_arg<std:: conditional<(((num_bits<int>)())<=(32))&&(!(0)),unsigned_int,std:: conditional<((num_bits<int>)())<=(64),unsigned_long,unsigned__int128>::type>:: type>fmt::v10::detail::make_write_int_arg<int> (local_2c,(byte)(*(ushort *)(local_38 + 9) >> 4) & 7); local_88 = local_28; pdVar2 = (detail *) fmt::v10::detail::write_int_noinline<char,fmt::v10::appender,unsigned_int> (local_78,local_80,local_38,local_28); return pdVar2; } local_e0[0] = "false"; if (local_a9 != 0) { local_e0[0] = "true"; } local_8 = local_e0; local_d0 = param_1; local_10 = local_e0[0]; sVar3 = strlen(local_e0[0]); pdVar2 = (detail *) fmt::v10::detail::write_bytes<(fmt::v10::align::type)1,char,fmt::v10::appender> (local_d0,local_e0[0],sVar3,local_b8); return pdVar2; }
41,963
wait_for_free_space
eloqsql/mysys/errors.c
void wait_for_free_space(const char *filename, int errors) { if (errors == 0) my_error(EE_DISK_FULL,MYF(ME_BELL | ME_ERROR_LOG | ME_WARNING), filename,my_errno,MY_WAIT_FOR_USER_TO_FIX_PANIC); if (!(errors % MY_WAIT_GIVE_USER_A_MESSAGE)) my_printf_error(EE_DISK_FULL, "Retry in %d secs. Message reprinted in %d secs", MYF(ME_BELL | ME_ERROR_LOG | ME_WARNING), MY_WAIT_FOR_USER_TO_FIX_PANIC, MY_WAIT_GIVE_USER_A_MESSAGE * MY_WAIT_FOR_USER_TO_FIX_PANIC ); (void) sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC); }
O3
c
wait_for_free_space: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax testl %esi, %esi je 0x29c49 imull $0xcccccccd, %esi, %eax # imm = 0xCCCCCCCD movl $0x19999998, %ecx # imm = 0x19999998 addl %ecx, %eax rorl %eax cmpl %ecx, %eax ja 0x29c90 jmp 0x29c6d movq %rdi, %rbx callq 0x2688a movl (%rax), %ecx movl $0x844, %esi # imm = 0x844 movl $0x14, %edi movq %rbx, %rdx movl $0x3c, %r8d xorl %eax, %eax callq 0x2751f leaq 0x334b2(%rip), %rsi # 0x5d126 movl $0x844, %edx # imm = 0x844 movl $0x14, %edi movl $0x3c, %ecx movl $0x258, %r8d # imm = 0x258 xorl %eax, %eax callq 0x27639 movl $0x3c, %edi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x241f0
wait_for_free_space: push rbp mov rbp, rsp push rbx push rax test esi, esi jz short loc_29C49 imul eax, esi, 0CCCCCCCDh mov ecx, 19999998h add eax, ecx ror eax, 1 cmp eax, ecx ja short loc_29C90 jmp short loc_29C6D loc_29C49: mov rbx, rdi call _my_thread_var mov ecx, [rax] mov esi, 844h mov edi, 14h mov rdx, rbx mov r8d, 3Ch ; '<' xor eax, eax call my_error loc_29C6D: lea rsi, aRetryInDSecsMe; "Retry in %d secs. Message reprinted in "... mov edx, 844h mov edi, 14h mov ecx, 3Ch ; '<' mov r8d, 258h xor eax, eax call my_printf_error loc_29C90: mov edi, 3Ch ; '<' add rsp, 8 pop rbx pop rbp jmp _sleep
long long wait_for_free_space( long long a1, int a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, long long a11, long long a12, long long a13, long long a14) { char v14; // al unsigned int *v15; // rax char v17; // [rsp-8h] [rbp-10h] v17 = v14; if ( !a2 ) { v15 = (unsigned int *)my_thread_var(); my_error(0x14u, 2116LL, a1, *v15, 60LL); LABEL_5: my_printf_error( a3, a4, a5, a6, a7, a8, a9, a10, 20LL, (long long)"Retry in %d secs. Message reprinted in %d secs", 2116LL, 60LL, 600LL, a14, v17); return sleep(60LL); } if ( __ROR4__(-858993459 * a2 + 429496728, 1) <= 0x19999998u ) goto LABEL_5; return sleep(60LL); }
wait_for_free_space: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX TEST ESI,ESI JZ 0x00129c49 IMUL EAX,ESI,-0x33333333 MOV ECX,0x19999998 ADD EAX,ECX ROR EAX,0x1 CMP EAX,ECX JA 0x00129c90 JMP 0x00129c6d LAB_00129c49: MOV RBX,RDI CALL 0x0012688a MOV ECX,dword ptr [RAX] MOV ESI,0x844 MOV EDI,0x14 MOV RDX,RBX MOV R8D,0x3c XOR EAX,EAX CALL 0x0012751f LAB_00129c6d: LEA RSI,[0x15d126] MOV EDX,0x844 MOV EDI,0x14 MOV ECX,0x3c MOV R8D,0x258 XOR EAX,EAX CALL 0x00127639 LAB_00129c90: MOV EDI,0x3c ADD RSP,0x8 POP RBX POP RBP JMP 0x001241f0
void wait_for_free_space(int8 param_1,int param_2) { uint uVar1; int4 *puVar2; if (param_2 == 0) { puVar2 = (int4 *)_my_thread_var(); my_error(0x14,0x844,param_1,*puVar2,0x3c); } else { uVar1 = param_2 * -0x33333333 + 0x19999998; if (0x19999998 < (uVar1 >> 1 | (uint)((uVar1 & 1) != 0) << 0x1f)) goto LAB_00129c90; } my_printf_error(0x14,"Retry in %d secs. Message reprinted in %d secs",0x844,0x3c,600); LAB_00129c90: sleep(0x3c); return; }
41,964
tailoring_append
eloqsql/strings/ctype.c
static int tailoring_append(MY_XML_PARSER *st, const char *fmt, size_t len, const char *attr) { struct my_cs_file_info *i= (struct my_cs_file_info *) st->user_data; size_t newlen= i->tailoring_length + len + 64; /* 64 for format */ if (MY_XML_OK == my_charset_file_tailoring_realloc(i, newlen)) { char *dst= i->tailoring + i->tailoring_length; sprintf(dst, fmt, (int) len, attr); i->tailoring_length+= strlen(dst); return MY_XML_OK; } return MY_XML_ERROR; }
O3
c
tailoring_append: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %r9 movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq 0x690(%rdi), %r13 leaq (%rdx,%r13), %rax addq $0x40, %rax cmpq %rax, 0x698(%rdi) jbe 0x59b63 movq 0x688(%rbx), %rax jmp 0x59ba7 movq %r9, %r14 addq %r15, %r13 movq 0x688(%rbx), %rdi movq 0x7a8(%rbx), %rax movq 0x90(%rax), %rax addq $0x8040, %r13 # imm = 0x8040 movq %r13, 0x698(%rbx) movq %r13, %rsi callq *%rax movq %rax, 0x688(%rbx) testq %rax, %rax je 0x59bea movq 0x690(%rbx), %r13 movq %r14, %r9 addq %rax, %r13 xorl %r14d, %r14d movq %r13, %rdi movl $0x1, %esi movq $-0x1, %rdx movq %r12, %rcx movl %r15d, %r8d xorl %eax, %eax callq 0x241d0 movq %r13, %rdi callq 0x24130 addq %rax, 0x690(%rbx) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x1, %r14d jmp 0x59bd8
tailoring_append: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r9, rcx mov r15, rdx mov r12, rsi mov rbx, rdi mov r13, [rdi+690h] lea rax, [rdx+r13] add rax, 40h ; '@' cmp [rdi+698h], rax jbe short loc_59B63 mov rax, [rbx+688h] jmp short loc_59BA7 loc_59B63: mov r14, r9 add r13, r15 mov rdi, [rbx+688h] mov rax, [rbx+7A8h] mov rax, [rax+90h] add r13, 8040h mov [rbx+698h], r13 mov rsi, r13 call rax mov [rbx+688h], rax test rax, rax jz short loc_59BEA mov r13, [rbx+690h] mov r9, r14 loc_59BA7: add r13, rax xor r14d, r14d mov rdi, r13 mov esi, 1 mov rdx, 0FFFFFFFFFFFFFFFFh mov rcx, r12 mov r8d, r15d xor eax, eax call ___sprintf_chk mov rdi, r13 call _strlen add [rbx+690h], rax loc_59BD8: mov eax, r14d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_59BEA: mov r14d, 1 jmp short loc_59BD8
long long tailoring_append(_QWORD *a1, const char *a2, long long a3, long long a4) { long long v4; // rax long long v5; // r9 unsigned int v6; // r15d long long v8; // r13 long long v9; // rax long long v11; // rdi long long ( *v12)(long long, long long); // rax long long v13; // r13 long long v14; // r13 unsigned int v15; // r14d long long v17; // [rsp-8h] [rbp-30h] v17 = v4; v5 = a4; v6 = a3; v8 = a1[210]; if ( a1[211] <= (unsigned long long)(a3 + v8 + 64) ) { v11 = a1[209]; v12 = *(long long ( **)(long long, long long))(a1[245] + 144LL); v13 = a3 + v8 + 32832; a1[211] = v13; v9 = v12(v11, v13); a1[209] = v9; if ( !v9 ) return 1; v8 = a1[210]; v5 = a4; } else { v9 = a1[209]; } v14 = v9 + v8; v15 = 0; __sprintf_chk(v14, 1LL, -1LL, a2, v6, v5, v17); a1[210] += strlen(v14); return v15; }
tailoring_append: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R9,RCX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV R13,qword ptr [RDI + 0x690] LEA RAX,[RDX + R13*0x1] ADD RAX,0x40 CMP qword ptr [RDI + 0x698],RAX JBE 0x00159b63 MOV RAX,qword ptr [RBX + 0x688] JMP 0x00159ba7 LAB_00159b63: MOV R14,R9 ADD R13,R15 MOV RDI,qword ptr [RBX + 0x688] MOV RAX,qword ptr [RBX + 0x7a8] MOV RAX,qword ptr [RAX + 0x90] ADD R13,0x8040 MOV qword ptr [RBX + 0x698],R13 MOV RSI,R13 CALL RAX MOV qword ptr [RBX + 0x688],RAX TEST RAX,RAX JZ 0x00159bea MOV R13,qword ptr [RBX + 0x690] MOV R9,R14 LAB_00159ba7: ADD R13,RAX XOR R14D,R14D MOV RDI,R13 MOV ESI,0x1 MOV RDX,-0x1 MOV RCX,R12 MOV R8D,R15D XOR EAX,EAX CALL 0x001241d0 MOV RDI,R13 CALL 0x00124130 ADD qword ptr [RBX + 0x690],RAX LAB_00159bd8: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00159bea: MOV R14D,0x1 JMP 0x00159bd8
int8 tailoring_append(long param_1,int8 param_2,ulong param_3,int8 param_4) { code *pcVar1; long lVar2; size_t sVar3; long lVar4; lVar4 = *(long *)(param_1 + 0x690); if (param_3 + lVar4 + 0x40 < *(ulong *)(param_1 + 0x698)) { lVar2 = *(long *)(param_1 + 0x688); } else { pcVar1 = *(code **)(*(long *)(param_1 + 0x7a8) + 0x90); lVar4 = lVar4 + param_3 + 0x8040; *(long *)(param_1 + 0x698) = lVar4; lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x688),lVar4); *(long *)(param_1 + 0x688) = lVar2; if (lVar2 == 0) { return 1; } lVar4 = *(long *)(param_1 + 0x690); } __sprintf_chk((char *)(lVar4 + lVar2),1,0xffffffffffffffff,param_2,param_3 & 0xffffffff,param_4); sVar3 = strlen((char *)(lVar4 + lVar2)); *(long *)(param_1 + 0x690) = *(long *)(param_1 + 0x690) + sVar3; return 0; }
41,965
eth_free_codes
corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_account.c
INTERNAL void eth_free_codes(call_code_t* call_codes) { while (call_codes) { call_code_t* next = call_codes->next; if (call_codes->free) safe_free(call_codes->code.data); safe_free(call_codes); call_codes = next; } }
O0
c
eth_free_codes: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x13c29 movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax testb $0x1, 0x30(%rax) je 0x13c16 movq -0x8(%rbp), %rax movq 0x28(%rax), %rdi callq 0x18740 movq -0x8(%rbp), %rdi callq 0x18740 movq -0x10(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x13bec addq $0x10, %rsp popq %rbp retq nop
eth_free_codes: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi loc_13BEC: cmp [rbp+var_8], 0 jz short loc_13C29 mov rax, [rbp+var_8] mov rax, [rax+38h] mov [rbp+var_10], rax mov rax, [rbp+var_8] test byte ptr [rax+30h], 1 jz short loc_13C16 mov rax, [rbp+var_8] mov rdi, [rax+28h] call safe_free loc_13C16: mov rdi, [rbp+var_8] call safe_free mov rax, [rbp+var_10] mov [rbp+var_8], rax jmp short loc_13BEC loc_13C29: add rsp, 10h pop rbp retn
long long eth_free_codes(long long a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-10h] while ( a1 ) { v2 = *(_QWORD *)(a1 + 56); if ( (*(_BYTE *)(a1 + 48) & 1) != 0 ) safe_free(*(_QWORD *)(a1 + 40)); safe_free(a1); result = v2; a1 = v2; } return result; }
eth_free_codes: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI LAB_00113bec: CMP qword ptr [RBP + -0x8],0x0 JZ 0x00113c29 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] TEST byte ptr [RAX + 0x30],0x1 JZ 0x00113c16 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x28] CALL 0x00118740 LAB_00113c16: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00118740 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x00113bec LAB_00113c29: ADD RSP,0x10 POP RBP RET
void eth_free_codes(long param_1) { long lVar1; int8 local_10; local_10 = param_1; while (local_10 != 0) { lVar1 = *(long *)(local_10 + 0x38); if ((*(byte *)(local_10 + 0x30) & 1) != 0) { safe_free(*(int8 *)(local_10 + 0x28)); } safe_free(local_10); local_10 = lVar1; } return; }
41,966
my_strntol_8bit
eloqsql/strings/ctype-simple.c
long my_strntol_8bit(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative; register uint32 cutoff; register uint cutlim; register uint32 i; register const char *s; register uchar c; const char *save, *e; int overflow; *err= 0; /* Initialize error indicator */ s = nptr; e = nptr+l; for ( ; s<e && my_isspace(cs, *s) ; s++); if (s == e) { goto noconv; } /* Check for a sign. */ if (*s == '-') { negative = 1; ++s; } else if (*s == '+') { negative = 0; ++s; } else negative = 0; save = s; cutoff = ((uint32)~0L) / (uint32) base; cutlim = (uint) (((uint32)~0L) % (uint32) base); overflow = 0; i = 0; for (c = *s; s != e; c = *++s) { if (c>='0' && c<='9') c -= '0'; else if (c>='A' && c<='Z') c = c - 'A' + 10; else if (c>='a' && c<='z') c = c - 'a' + 10; else break; if (c >= base) break; if (i > cutoff || (i == cutoff && c > cutlim)) overflow = 1; else { i *= (uint32) base; i += c; } } if (s == save) goto noconv; if (endptr != NULL) *endptr = (char *) s; if (negative) { if (i > (uint32) INT_MIN32) overflow = 1; } else if (i > INT_MAX32) overflow = 1; if (overflow) { err[0]= ERANGE; return negative ? INT_MIN32 : INT_MAX32; } return (negative ? -((long) i) : (long) i); noconv: err[0]= EDOM; if (endptr != NULL) *endptr = (char *) nptr; return 0L; }
O0
c
my_strntol_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x50(%rbp), %rcx xorl %eax, %eax cmpq -0x68(%rbp), %rcx movb %al, -0x6d(%rbp) jae 0x782f8 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq -0x50(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al movb %al, -0x6d(%rbp) movb -0x6d(%rbp), %al testb $0x1, %al jne 0x78301 jmp 0x78311 jmp 0x78303 movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x782c9 movq -0x50(%rbp), %rax cmpq -0x68(%rbp), %rax jne 0x78320 jmp 0x78515 movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2d, %eax jne 0x78341 movl $0x1, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x7836b movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x2b, %eax jne 0x78362 movl $0x0, -0x3c(%rbp) movq -0x50(%rbp), %rax addq $0x1, %rax movq %rax, -0x50(%rbp) jmp 0x78369 movl $0x0, -0x3c(%rbp) jmp 0x7836b movq -0x50(%rbp), %rax movq %rax, -0x60(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %eax, -0x40(%rbp) movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x24(%rbp) movl %edx, -0x44(%rbp) movl $0x0, -0x6c(%rbp) movl $0x0, -0x48(%rbp) movq -0x50(%rbp), %rax movb (%rax), %al movb %al, -0x51(%rbp) movq -0x50(%rbp), %rax cmpq -0x68(%rbp), %rax je 0x78475 movzbl -0x51(%rbp), %eax cmpl $0x30, %eax jl 0x783d0 movzbl -0x51(%rbp), %eax cmpl $0x39, %eax jg 0x783d0 movzbl -0x51(%rbp), %eax subl $0x30, %eax movb %al, -0x51(%rbp) jmp 0x78418 movzbl -0x51(%rbp), %eax cmpl $0x41, %eax jl 0x783f1 movzbl -0x51(%rbp), %eax cmpl $0x5a, %eax jg 0x783f1 movzbl -0x51(%rbp), %eax subl $0x41, %eax addl $0xa, %eax movb %al, -0x51(%rbp) jmp 0x78416 movzbl -0x51(%rbp), %eax cmpl $0x61, %eax jl 0x78412 movzbl -0x51(%rbp), %eax cmpl $0x7a, %eax jg 0x78412 movzbl -0x51(%rbp), %eax subl $0x61, %eax addl $0xa, %eax movb %al, -0x51(%rbp) jmp 0x78414 jmp 0x78475 jmp 0x78416 jmp 0x78418 movzbl -0x51(%rbp), %eax cmpl -0x24(%rbp), %eax jl 0x78423 jmp 0x78475 movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax ja 0x7843c movl -0x48(%rbp), %eax cmpl -0x40(%rbp), %eax jne 0x78445 movzbl -0x51(%rbp), %eax cmpl -0x44(%rbp), %eax jbe 0x78445 movl $0x1, -0x6c(%rbp) jmp 0x78459 movl -0x24(%rbp), %eax imull -0x48(%rbp), %eax movl %eax, -0x48(%rbp) movzbl -0x51(%rbp), %eax addl -0x48(%rbp), %eax movl %eax, -0x48(%rbp) jmp 0x7845b movq -0x50(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x50(%rbp) movb 0x1(%rax), %al movb %al, -0x51(%rbp) jmp 0x783a4 movq -0x50(%rbp), %rax cmpq -0x60(%rbp), %rax jne 0x78484 jmp 0x78515 cmpq $0x0, -0x30(%rbp) je 0x78496 movq -0x50(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) cmpl $0x0, -0x3c(%rbp) je 0x784ae cmpl $0x80000000, -0x48(%rbp) # imm = 0x80000000 jbe 0x784ac movl $0x1, -0x6c(%rbp) jmp 0x784c2 movl -0x48(%rbp), %eax cmpq $0x7fffffff, %rax # imm = 0x7FFFFFFF jle 0x784c0 movl $0x1, -0x6c(%rbp) jmp 0x784c2 cmpl $0x0, -0x6c(%rbp) je 0x784ee movq -0x38(%rbp), %rax movl $0x22, (%rax) movl -0x3c(%rbp), %edx movl $0x7fffffff, %eax # imm = 0x7FFFFFFF movq $-0x80000000, %rcx # imm = 0x80000000 cmpl $0x0, %edx cmovneq %rcx, %rax movq %rax, -0x8(%rbp) jmp 0x78539 cmpl $0x0, -0x3c(%rbp) je 0x78504 movl -0x48(%rbp), %eax movl %eax, %ecx xorl %eax, %eax subq %rcx, %rax movq %rax, -0x78(%rbp) jmp 0x7850b movl -0x48(%rbp), %eax movq %rax, -0x78(%rbp) movq -0x78(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x78539 movq -0x38(%rbp), %rax movl $0x21, (%rax) cmpq $0x0, -0x30(%rbp) je 0x78531 movq -0x18(%rbp), %rcx movq -0x30(%rbp), %rax movq %rcx, (%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nop
my_strntol_8bit: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_18] mov [rbp+var_50], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] mov [rbp+var_68], rax loc_782C9: mov rcx, [rbp+var_50] xor eax, eax cmp rcx, [rbp+var_68] mov [rbp+var_6D], al jnb short loc_782F8 mov rax, [rbp+var_10] mov rax, [rax+40h] mov rcx, [rbp+var_50] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 8 cmp eax, 0 setnz al mov [rbp+var_6D], al loc_782F8: mov al, [rbp+var_6D] test al, 1 jnz short loc_78301 jmp short loc_78311 loc_78301: jmp short $+2 loc_78303: mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_782C9 loc_78311: mov rax, [rbp+var_50] cmp rax, [rbp+var_68] jnz short loc_78320 jmp loc_78515 loc_78320: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_78341 mov [rbp+var_3C], 1 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_7836B loc_78341: mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jnz short loc_78362 mov [rbp+var_3C], 0 mov rax, [rbp+var_50] add rax, 1 mov [rbp+var_50], rax jmp short loc_78369 loc_78362: mov [rbp+var_3C], 0 loc_78369: jmp short $+2 loc_7836B: mov rax, [rbp+var_50] mov [rbp+var_60], rax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_40], eax mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_24] mov [rbp+var_44], edx mov [rbp+var_6C], 0 mov [rbp+var_48], 0 mov rax, [rbp+var_50] mov al, [rax] mov [rbp+var_51], al loc_783A4: mov rax, [rbp+var_50] cmp rax, [rbp+var_68] jz loc_78475 movzx eax, [rbp+var_51] cmp eax, 30h ; '0' jl short loc_783D0 movzx eax, [rbp+var_51] cmp eax, 39h ; '9' jg short loc_783D0 movzx eax, [rbp+var_51] sub eax, 30h ; '0' mov [rbp+var_51], al jmp short loc_78418 loc_783D0: movzx eax, [rbp+var_51] cmp eax, 41h ; 'A' jl short loc_783F1 movzx eax, [rbp+var_51] cmp eax, 5Ah ; 'Z' jg short loc_783F1 movzx eax, [rbp+var_51] sub eax, 41h ; 'A' add eax, 0Ah mov [rbp+var_51], al jmp short loc_78416 loc_783F1: movzx eax, [rbp+var_51] cmp eax, 61h ; 'a' jl short loc_78412 movzx eax, [rbp+var_51] cmp eax, 7Ah ; 'z' jg short loc_78412 movzx eax, [rbp+var_51] sub eax, 61h ; 'a' add eax, 0Ah mov [rbp+var_51], al jmp short loc_78414 loc_78412: jmp short loc_78475 loc_78414: jmp short $+2 loc_78416: jmp short $+2 loc_78418: movzx eax, [rbp+var_51] cmp eax, [rbp+var_24] jl short loc_78423 jmp short loc_78475 loc_78423: mov eax, [rbp+var_48] cmp eax, [rbp+var_40] ja short loc_7843C mov eax, [rbp+var_48] cmp eax, [rbp+var_40] jnz short loc_78445 movzx eax, [rbp+var_51] cmp eax, [rbp+var_44] jbe short loc_78445 loc_7843C: mov [rbp+var_6C], 1 jmp short loc_78459 loc_78445: mov eax, [rbp+var_24] imul eax, [rbp+var_48] mov [rbp+var_48], eax movzx eax, [rbp+var_51] add eax, [rbp+var_48] mov [rbp+var_48], eax loc_78459: jmp short $+2 loc_7845B: mov rax, [rbp+var_50] mov rcx, rax add rcx, 1 mov [rbp+var_50], rcx mov al, [rax+1] mov [rbp+var_51], al jmp loc_783A4 loc_78475: mov rax, [rbp+var_50] cmp rax, [rbp+var_60] jnz short loc_78484 jmp loc_78515 loc_78484: cmp [rbp+var_30], 0 jz short loc_78496 mov rcx, [rbp+var_50] mov rax, [rbp+var_30] mov [rax], rcx loc_78496: cmp [rbp+var_3C], 0 jz short loc_784AE cmp [rbp+var_48], 80000000h jbe short loc_784AC mov [rbp+var_6C], 1 loc_784AC: jmp short loc_784C2 loc_784AE: mov eax, [rbp+var_48] cmp rax, 7FFFFFFFh jle short loc_784C0 mov [rbp+var_6C], 1 loc_784C0: jmp short $+2 loc_784C2: cmp [rbp+var_6C], 0 jz short loc_784EE mov rax, [rbp+var_38] mov dword ptr [rax], 22h ; '"' mov edx, [rbp+var_3C] mov eax, 7FFFFFFFh mov rcx, 0FFFFFFFF80000000h cmp edx, 0 cmovnz rax, rcx mov [rbp+var_8], rax jmp short loc_78539 loc_784EE: cmp [rbp+var_3C], 0 jz short loc_78504 mov eax, [rbp+var_48] mov ecx, eax xor eax, eax sub rax, rcx mov [rbp+var_78], rax jmp short loc_7850B loc_78504: mov eax, [rbp+var_48] mov [rbp+var_78], rax loc_7850B: mov rax, [rbp+var_78] mov [rbp+var_8], rax jmp short loc_78539 loc_78515: mov rax, [rbp+var_38] mov dword ptr [rax], 21h ; '!' cmp [rbp+var_30], 0 jz short loc_78531 mov rcx, [rbp+var_18] mov rax, [rbp+var_30] mov [rax], rcx loc_78531: mov [rbp+var_8], 0 loc_78539: mov rax, [rbp+var_8] pop rbp retn
long long my_strntol_8bit(long long a1, _BYTE *a2, long long a3, int a4, _QWORD *a5, _DWORD *a6) { _BYTE *v6; // rax long long v7; // rax bool v10; // [rsp+Bh] [rbp-6Dh] int v11; // [rsp+Ch] [rbp-6Ch] _BYTE *v12; // [rsp+10h] [rbp-68h] _BYTE *v13; // [rsp+18h] [rbp-60h] unsigned __int8 v14; // [rsp+27h] [rbp-51h] unsigned __int8 v15; // [rsp+27h] [rbp-51h] _BYTE *v16; // [rsp+28h] [rbp-50h] unsigned int v17; // [rsp+30h] [rbp-48h] unsigned long long v18; // [rsp+34h] [rbp-44h] int v19; // [rsp+3Ch] [rbp-3Ch] *a6 = 0; v16 = a2; v12 = &a2[a3]; while ( 1 ) { v10 = 0; if ( v16 < v12 ) v10 = (*(_BYTE *)(*(_QWORD *)(a1 + 64) + (unsigned __int8)*v16 + 1LL) & 8) != 0; if ( !v10 ) break; ++v16; } if ( v16 == v12 ) goto LABEL_45; if ( *v16 == 45 ) { v19 = 1; ++v16; } else { v19 = 0; if ( *v16 == 43 ) ++v16; } v13 = v16; v11 = 0; v17 = 0; v14 = *v16; while ( v16 != v12 ) { if ( v14 < 0x30u || v14 > 0x39u ) { if ( v14 < 0x41u || v14 > 0x5Au ) { if ( v14 < 0x61u || v14 > 0x7Au ) break; v15 = v14 - 97 + 10; } else { v15 = v14 - 65 + 10; } } else { v15 = v14 - 48; } if ( v15 >= a4 ) break; LODWORD(v18) = 0xFFFFFFFF % a4; HIDWORD(v18) = 0xFFFFFFFF / a4; if ( __PAIR64__(v17, v15) <= v18 ) v17 = v17 * a4 + v15; else v11 = 1; v6 = v16++; v14 = v6[1]; } if ( v16 == v13 ) { LABEL_45: *a6 = 33; if ( a5 ) *a5 = a2; return 0LL; } else { if ( a5 ) *a5 = v16; if ( v19 ) { if ( v17 > 0x80000000 ) v11 = 1; } else if ( v17 > 0x7FFFFFFFuLL ) { v11 = 1; } if ( v11 ) { *a6 = 34; v7 = 0x7FFFFFFFLL; if ( v19 ) return 0xFFFFFFFF80000000LL; return v7; } else if ( v19 ) { return -(long long)v17; } else { return v17; } } }
my_strntol_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x68],RAX LAB_001782c9: MOV RCX,qword ptr [RBP + -0x50] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x68] MOV byte ptr [RBP + -0x6d],AL JNC 0x001782f8 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x50] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x8 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x6d],AL LAB_001782f8: MOV AL,byte ptr [RBP + -0x6d] TEST AL,0x1 JNZ 0x00178301 JMP 0x00178311 LAB_00178301: JMP 0x00178303 LAB_00178303: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x001782c9 LAB_00178311: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] JNZ 0x00178320 JMP 0x00178515 LAB_00178320: MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x00178341 MOV dword ptr [RBP + -0x3c],0x1 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x0017836b LAB_00178341: MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2b JNZ 0x00178362 MOV dword ptr [RBP + -0x3c],0x0 MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x00178369 LAB_00178362: MOV dword ptr [RBP + -0x3c],0x0 LAB_00178369: JMP 0x0017836b LAB_0017836b: MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x60],RAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x40],EAX MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x44],EDX MOV dword ptr [RBP + -0x6c],0x0 MOV dword ptr [RBP + -0x48],0x0 MOV RAX,qword ptr [RBP + -0x50] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x51],AL LAB_001783a4: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x68] JZ 0x00178475 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x30 JL 0x001783d0 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x39 JG 0x001783d0 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x30 MOV byte ptr [RBP + -0x51],AL JMP 0x00178418 LAB_001783d0: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x41 JL 0x001783f1 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x5a JG 0x001783f1 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x41 ADD EAX,0xa MOV byte ptr [RBP + -0x51],AL JMP 0x00178416 LAB_001783f1: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x61 JL 0x00178412 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,0x7a JG 0x00178412 MOVZX EAX,byte ptr [RBP + -0x51] SUB EAX,0x61 ADD EAX,0xa MOV byte ptr [RBP + -0x51],AL JMP 0x00178414 LAB_00178412: JMP 0x00178475 LAB_00178414: JMP 0x00178416 LAB_00178416: JMP 0x00178418 LAB_00178418: MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,dword ptr [RBP + -0x24] JL 0x00178423 JMP 0x00178475 LAB_00178423: MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x40] JA 0x0017843c MOV EAX,dword ptr [RBP + -0x48] CMP EAX,dword ptr [RBP + -0x40] JNZ 0x00178445 MOVZX EAX,byte ptr [RBP + -0x51] CMP EAX,dword ptr [RBP + -0x44] JBE 0x00178445 LAB_0017843c: MOV dword ptr [RBP + -0x6c],0x1 JMP 0x00178459 LAB_00178445: MOV EAX,dword ptr [RBP + -0x24] IMUL EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x48],EAX MOVZX EAX,byte ptr [RBP + -0x51] ADD EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x48],EAX LAB_00178459: JMP 0x0017845b LAB_0017845b: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x50],RCX MOV AL,byte ptr [RAX + 0x1] MOV byte ptr [RBP + -0x51],AL JMP 0x001783a4 LAB_00178475: MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x60] JNZ 0x00178484 JMP 0x00178515 LAB_00178484: CMP qword ptr [RBP + -0x30],0x0 JZ 0x00178496 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00178496: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001784ae CMP dword ptr [RBP + -0x48],0x80000000 JBE 0x001784ac MOV dword ptr [RBP + -0x6c],0x1 LAB_001784ac: JMP 0x001784c2 LAB_001784ae: MOV EAX,dword ptr [RBP + -0x48] CMP RAX,0x7fffffff JLE 0x001784c0 MOV dword ptr [RBP + -0x6c],0x1 LAB_001784c0: JMP 0x001784c2 LAB_001784c2: CMP dword ptr [RBP + -0x6c],0x0 JZ 0x001784ee MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x22 MOV EDX,dword ptr [RBP + -0x3c] MOV EAX,0x7fffffff MOV RCX,-0x80000000 CMP EDX,0x0 CMOVNZ RAX,RCX MOV qword ptr [RBP + -0x8],RAX JMP 0x00178539 LAB_001784ee: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x00178504 MOV EAX,dword ptr [RBP + -0x48] MOV ECX,EAX XOR EAX,EAX SUB RAX,RCX MOV qword ptr [RBP + -0x78],RAX JMP 0x0017850b LAB_00178504: MOV EAX,dword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x78],RAX LAB_0017850b: MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x8],RAX JMP 0x00178539 LAB_00178515: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x21 CMP qword ptr [RBP + -0x30],0x0 JZ 0x00178531 MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX],RCX LAB_00178531: MOV qword ptr [RBP + -0x8],0x0 LAB_00178539: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
ulong my_strntol_8bit(long param_1,byte *param_2,long param_3,uint param_4,int8 *param_5, int4 *param_6) { bool bVar1; byte *pbVar2; uint uVar3; byte *pbVar4; bool bVar5; ulong local_80; byte local_59; byte *local_58; uint local_50; *param_6 = 0; pbVar4 = param_2 + param_3; local_58 = param_2; while( true ) { bVar5 = false; if (local_58 < pbVar4) { bVar5 = (*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*local_58) & 8) != 0; } if (!bVar5) break; local_58 = local_58 + 1; } if (local_58 != pbVar4) { if (*local_58 == 0x2d) { bVar5 = true; local_58 = local_58 + 1; } else { if (*local_58 == 0x2b) { local_58 = local_58 + 1; } bVar5 = false; } pbVar2 = local_58; uVar3 = (uint)(0xffffffff / (ulong)param_4); bVar1 = false; local_50 = 0; local_59 = *local_58; for (; local_58 != pbVar4; local_58 = local_58 + 1) { if ((local_59 < 0x30) || (0x39 < local_59)) { if ((local_59 < 0x41) || (0x5a < local_59)) { if ((local_59 < 0x61) || (0x7a < local_59)) break; local_59 = local_59 + 0xa9; } else { local_59 = local_59 - 0x37; } } else { local_59 = local_59 - 0x30; } if ((int)param_4 <= (int)(uint)local_59) break; if ((uVar3 < local_50) || ((local_50 == uVar3 && ((uint)(0xffffffff % (ulong)param_4) < (uint)local_59)))) { bVar1 = true; } else { local_50 = (uint)local_59 + param_4 * local_50; } local_59 = local_58[1]; } if (local_58 != pbVar2) { if (param_5 != (int8 *)0x0) { *param_5 = local_58; } if (bVar5) { if (0x80000000 < local_50) { bVar1 = true; } } else if (0x7fffffff < local_50) { bVar1 = true; } if (bVar1) { *param_6 = 0x22; if (!bVar5) { return 0x7fffffff; } return 0xffffffff80000000; } if (bVar5) { local_80 = -(ulong)local_50; } else { local_80 = (ulong)local_50; } return local_80; } } *param_6 = 0x21; if (param_5 != (int8 *)0x0) { *param_5 = param_2; } return 0; }
41,967
void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**)
giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest.cc
void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) { std::string flagfile_value; for (int i = 1; i < *argc; i++) { const std::string arg_string = StreamableToString(argv[i]); const char* const arg = arg_string.c_str(); using internal::ParseFlag; bool remove_flag = false; if (ParseGoogleTestFlag(arg)) { remove_flag = true; #if GTEST_USE_OWN_FLAGFILE_FLAG_ && GTEST_HAS_FILE_SYSTEM } else if (ParseFlag(arg, "flagfile", &flagfile_value)) { GTEST_FLAG_SET(flagfile, flagfile_value); LoadFlagsFromFile(flagfile_value); remove_flag = true; #endif // GTEST_USE_OWN_FLAGFILE_FLAG_ && GTEST_HAS_FILE_SYSTEM } else if (arg_string == "--help" || HasGoogleTestFlagPrefix(arg)) { // Both help flag and unrecognized Google Test flags (excluding // internal ones) trigger help display. g_help_flag = true; } if (remove_flag) { // Shift the remainder of the argv list left by one. for (int j = i + 1; j < *argc; ++j) { argv[j - 1] = argv[j]; } // Decrements the argument count. (*argc)--; // Terminate the array with nullptr. argv[*argc] = nullptr; // We also need to decrement the iterator as we just removed // an element. i--; } } if (g_help_flag) { // We print the help here instead of in RUN_ALL_TESTS(), as the // latter may not be called at all if the user is using Google // Test with another testing framework. PrintColorEncoded(kColorEncodedHelpMessage); } }
O0
cpp
void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**): pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq -0x30(%rbp), %rdi callq 0xa9d0 movl $0x1, -0x34(%rbp) movl -0x34(%rbp), %eax movq -0x8(%rbp), %rcx cmpl (%rcx), %eax jge 0x4e010 movq -0x10(%rbp), %rax movslq -0x34(%rbp), %rcx leaq (%rax,%rcx,8), %rsi leaq -0x58(%rbp), %rdi callq 0x6bf80 jmp 0x4deb9 leaq -0x58(%rbp), %rdi callq 0xa260 movq %rax, -0x70(%rbp) movb $0x0, -0x71(%rbp) movq -0x70(%rbp), %rdi callq 0x43af0 movb %al, -0x79(%rbp) jmp 0x4ded8 movb -0x79(%rbp), %al testb $0x1, %al jne 0x4dee1 jmp 0x4df15 movb $0x1, -0x71(%rbp) jmp 0x4df90 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) jmp 0x4e03b movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0x58(%rbp), %rdi callq 0xad98 jmp 0x4e03b movq -0x70(%rbp), %rdi leaq 0x2ce14(%rip), %rsi # 0x7ad34 leaq -0x30(%rbp), %rdx callq 0x442d0 movb %al, -0x7a(%rbp) jmp 0x4df2e movb -0x7a(%rbp), %al testb $0x1, %al jne 0x4df37 jmp 0x4df5a leaq 0x60972(%rip), %rdi # 0xae8b0 leaq -0x30(%rbp), %rsi callq 0xa070 jmp 0x4df49 leaq -0x30(%rbp), %rdi callq 0x44320 jmp 0x4df54 movb $0x1, -0x71(%rbp) jmp 0x4df8e leaq -0x58(%rbp), %rdi leaq 0x2f03e(%rip), %rsi # 0x7cfa3 callq 0x448f0 testb $0x1, %al jne 0x4df85 movq -0x70(%rbp), %rdi callq 0x44510 movb %al, -0x7b(%rbp) jmp 0x4df7c movb -0x7b(%rbp), %al testb $0x1, %al jne 0x4df85 jmp 0x4df8c movb $0x1, 0x60875(%rip) # 0xae801 jmp 0x4df8e jmp 0x4df90 testb $0x1, -0x71(%rbp) je 0x4dff9 movl -0x34(%rbp), %eax addl $0x1, %eax movl %eax, -0x78(%rbp) movl -0x78(%rbp), %eax movq -0x8(%rbp), %rcx cmpl (%rcx), %eax jge 0x4dfd2 movq -0x10(%rbp), %rax movslq -0x78(%rbp), %rcx movq (%rax,%rcx,8), %rdx movq -0x10(%rbp), %rax movl -0x78(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx movq %rdx, (%rax,%rcx,8) movl -0x78(%rbp), %eax addl $0x1, %eax movl %eax, -0x78(%rbp) jmp 0x4df9f movq -0x8(%rbp), %rax movl (%rax), %ecx addl $-0x1, %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax movq -0x8(%rbp), %rcx movslq (%rcx), %rcx movq $0x0, (%rax,%rcx,8) movl -0x34(%rbp), %eax addl $-0x1, %eax movl %eax, -0x34(%rbp) leaq -0x58(%rbp), %rdi callq 0xad98 movl -0x34(%rbp), %eax addl $0x1, %eax movl %eax, -0x34(%rbp) jmp 0x4de93 testb $0x1, 0x607ea(%rip) # 0xae801 je 0x4e029 leaq 0x2ba00(%rip), %rdi # 0x79a20 callq 0x445c0 jmp 0x4e027 jmp 0x4e029 leaq -0x30(%rbp), %rdi callq 0xad98 addq $0x80, %rsp popq %rbp retq leaq -0x30(%rbp), %rdi callq 0xad98 movq -0x60(%rbp), %rdi callq 0xac00 nopl (%rax)
_ZN7testing8internal28ParseGoogleTestFlagsOnlyImplIcEEvPiPPT_: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi mov [rbp+var_10], rsi lea rdi, [rbp+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov [rbp+var_34], 1 loc_4DE93: mov eax, [rbp+var_34] mov rcx, [rbp+var_8] cmp eax, [rcx] jge loc_4E010 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_34] lea rsi, [rax+rcx*8]; char * lea rdi, [rbp+var_58] call _ZN7testing8internal18StreamableToStringIPcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<char *>(char * const&) jmp short $+2 loc_4DEB9: lea rdi, [rbp+var_58] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov [rbp+var_70], rax mov [rbp+var_71], 0 mov rdi, [rbp+var_70]; this call _ZN7testing8internalL19ParseGoogleTestFlagEPKc; testing::internal::ParseGoogleTestFlag(char const*) mov [rbp+var_79], al jmp short $+2 loc_4DED8: mov al, [rbp+var_79] test al, 1 jnz short loc_4DEE1 jmp short loc_4DF15 loc_4DEE1: mov [rbp+var_71], 1 jmp loc_4DF90 mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax jmp loc_4E03B mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_4E03B loc_4DF15: mov rdi, [rbp+var_70] lea rsi, aFlagfile; "flagfile" lea rdx, [rbp+var_30] call _ZN7testing8internalL9ParseFlagINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcS9_PT_; testing::internal::ParseFlag<std::string>(char const*,char const*,std::string *) mov [rbp+var_7A], al jmp short $+2 loc_4DF2E: mov al, [rbp+var_7A] test al, 1 jnz short loc_4DF37 jmp short loc_4DF5A loc_4DF37: lea rdi, _ZN7testing20FLAGS_gtest_flagfileB5cxx11E; testing::FLAGS_gtest_flagfile lea rsi, [rbp+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&) jmp short $+2 loc_4DF49: lea rdi, [rbp+var_30] call _ZN7testing8internalL17LoadFlagsFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::LoadFlagsFromFile(std::string const&) jmp short $+2 loc_4DF54: mov [rbp+var_71], 1 jmp short loc_4DF8E loc_4DF5A: lea rdi, [rbp+var_58] lea rsi, aHelp; "--help" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_4DF85 mov rdi, [rbp+var_70]; this call _ZN7testing8internalL23HasGoogleTestFlagPrefixEPKc; testing::internal::HasGoogleTestFlagPrefix(char const*) mov [rbp+var_7B], al jmp short $+2 loc_4DF7C: mov al, [rbp+var_7B] test al, 1 jnz short loc_4DF85 jmp short loc_4DF8C loc_4DF85: mov cs:_ZN7testing8internal11g_help_flagE, 1; testing::internal::g_help_flag loc_4DF8C: jmp short $+2 loc_4DF8E: jmp short $+2 loc_4DF90: test [rbp+var_71], 1 jz short loc_4DFF9 mov eax, [rbp+var_34] add eax, 1 mov [rbp+var_78], eax loc_4DF9F: mov eax, [rbp+var_78] mov rcx, [rbp+var_8] cmp eax, [rcx] jge short loc_4DFD2 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_78] mov rdx, [rax+rcx*8] mov rax, [rbp+var_10] mov ecx, [rbp+var_78] sub ecx, 1 movsxd rcx, ecx mov [rax+rcx*8], rdx mov eax, [rbp+var_78] add eax, 1 mov [rbp+var_78], eax jmp short loc_4DF9F loc_4DFD2: mov rax, [rbp+var_8] mov ecx, [rax] add ecx, 0FFFFFFFFh mov [rax], ecx mov rax, [rbp+var_10] mov rcx, [rbp+var_8] movsxd rcx, dword ptr [rcx] mov qword ptr [rax+rcx*8], 0 mov eax, [rbp+var_34] add eax, 0FFFFFFFFh mov [rbp+var_34], eax loc_4DFF9: lea rdi, [rbp+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov eax, [rbp+var_34] add eax, 1 mov [rbp+var_34], eax jmp loc_4DE93 loc_4E010: test cs:_ZN7testing8internal11g_help_flagE, 1; testing::internal::g_help_flag jz short loc_4E029 lea rdi, _ZN7testing8internalL24kColorEncodedHelpMessageE; "This program contains tests written usi"... call _ZN7testing8internalL17PrintColorEncodedEPKc; testing::internal::PrintColorEncoded(char const*) jmp short $+2 loc_4E027: jmp short $+2 loc_4E029: lea rdi, [rbp+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() add rsp, 80h pop rbp retn loc_4E03B: lea rdi, [rbp+var_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_60] call __Unwind_Resume
void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int *a1, const char *a2) { long long v2; // rdx bool *v3; // rcx const char **v4; // rdx int j; // [rsp+8h] [rbp-78h] char v6; // [rsp+Fh] [rbp-71h] testing::internal *v7; // [rsp+10h] [rbp-70h] _BYTE v8[36]; // [rsp+28h] [rbp-58h] BYREF int i; // [rsp+4Ch] [rbp-34h] _BYTE v10[32]; // [rsp+50h] [rbp-30h] BYREF const char *v11; // [rsp+70h] [rbp-10h] int *v12; // [rsp+78h] [rbp-8h] v12 = a1; v11 = a2; std::string::basic_string(v10); for ( i = 1; i < *v12; ++i ) { a2 = &v11[8 * i]; testing::internal::StreamableToString<char *>(v8, a2); v7 = (testing::internal *)std::string::c_str(v8); v6 = 0; if ( (testing::internal::ParseGoogleTestFlag(v7, a2, v2, v3) & 1) != 0 ) { v6 = 1; } else if ( (testing::internal::ParseFlag<std::string>(v7, "flagfile", (long long)v10) & 1) != 0 ) { a2 = v10; std::string::operator=(&testing::FLAGS_gtest_flagfile[abi:cxx11], v10); testing::internal::LoadFlagsFromFile((long long)v10); v6 = 1; } else { a2 = "--help"; if ( std::operator==<char>((long long)v8, (long long)"--help") || (testing::internal::HasGoogleTestFlagPrefix(v7, "--help", v4) & 1) != 0 ) { testing::internal::g_help_flag = 1; } } if ( (v6 & 1) != 0 ) { for ( j = i + 1; j < *v12; ++j ) *(_QWORD *)&v11[8 * j - 8] = *(_QWORD *)&v11[8 * j]; *(_QWORD *)&v11[8 * --*v12] = 0LL; --i; } std::string::~string(v8); } if ( (testing::internal::g_help_flag & 1) != 0 ) testing::internal::PrintColorEncoded( (testing::internal *)"This program contains tests written using Google Test. You can use the\n" "following command line flags to control its behavior:\n" "\n" "Test Selection:\n" " @G--gtest_list_tests@D\n" " List the names of all tests instead of running them. The name of\n" " TEST(Foo, Bar) is \"Foo.Bar\".\n" " @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n" " Run only the tests whose name matches one of the positive patterns but\n" " none of the negative patterns. '?' matches any single character; '*'\n" " matches any substring; ':' separates two patterns.\n" " @G--gtest_also_run_disabled_tests@D\n" " Run all disabled tests too.\n" "\n" "Test Execution:\n" " @G--gtest_repeat=@Y[COUNT]@D\n" " Run the tests repeatedly; use a negative count to repeat forever.\n" " @G--gtest_shuffle@D\n" " Randomize tests' orders on every iteration.\n" " @G--gtest_random_seed=@Y[NUMBER]@D\n" " Random number seed to use for shuffling test orders (between 1 and\n" " 99999, or 0 to use a seed based on the current time).\n" " @G--gtest_recreate_environments_when_repeating@D\n" " Sets up and tears down the global test environment on each repeat\n" " of the test.\n" "\n" "Test Output:\n" " @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n" " Enable/disable colored output. The default is @Gauto@D.\n" " @G--gtest_brief=1@D\n" " Only print test failures.\n" " @G--gtest_print_time=0@D\n" " Don't print the elapsed time of each test.\n" " @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n" " Generate a JSON or XML report in the given directory or with the given\n" " file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n" " @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n" " Stream test results to the given server.\n" "\n" "Assertion Behavior:\n" " @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n" " Set the default death test style.\n" " @G--gtest_break_on_failure@D\n" " Turn assertion failures into debugger break-points.\n" " @G--gtest_throw_on_failure@D\n" " Turn assertion failures into C++ exceptions for use by an external\n" " test framework.\n" " @G--gtest_catch_exceptions=0@D\n" " Do not report exceptions as test failures. Instead, allow them\n" " to crash the program or throw a pop-up (on Windows).\n" "\n" "Except for @G--gtest_list_tests@D, you can alternatively set the corresponding\n" "environment variable of a flag (all letters in upper-case). For example, to\n" "disable colored text output, you can either specify @G--gtest_color=no@D or set\n" "the @GGTEST_COLOR@D environment variable to @Gno@D.\n" "\n" "For more information, please read the Google Test documentation at\n" "@Ghttps://github.com/google/googletest/@D. If you find a bug in Google Test\n" "(not one in your own code or tests), please report it to\n" "@G<googletestframework@@googlegroups.com>@D.\n", a2); std::string::~string(v10); }
_M_head: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
/* std::_Head_base<0ul, testing::internal::InternalRunDeathTestFlag*, false>::_M_head(std::_Head_base<0ul, testing::internal::InternalRunDeathTestFlag*, false> const&) */ _Head_base * std::_Head_base<0ul,testing::internal::InternalRunDeathTestFlag*,false>::_M_head (_Head_base *param_1) { return param_1; }
41,968
inline_mysql_cond_signal(st_mysql_cond*)
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_signal( mysql_cond_t *that) { int result; #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) PSI_COND_CALL(signal_cond)(that->m_psi); #endif result= pthread_cond_signal(&that->m_cond); return result; }
O0
c
inline_mysql_cond_signal(st_mysql_cond*): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x26d5b leaq 0x1a77e9(%rip), %rax # 0x1ce530 movq (%rax), %rax movq 0x170(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rdi callq 0x24030 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq
inline_mysql_cond_signal: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 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 short loc_26D5B lea rax, PSI_server mov rax, [rax] mov rax, [rax+170h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax loc_26D5B: mov rdi, [rbp+var_8] call _pthread_cond_signal mov [rbp+var_C], eax mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long inline_mysql_cond_signal(long long a1) { if ( *(_QWORD *)(a1 + 48) ) ((void ( *)(_QWORD))PSI_server[46])(*(_QWORD *)(a1 + 48)); return (unsigned int)pthread_cond_signal(a1); }
inline_mysql_cond_signal: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],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 0x00126d5b LEA RAX,[0x2ce530] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x170] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX LAB_00126d5b: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00124030 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
int inline_mysql_cond_signal(pthread_cond_t *param_1) { int iVar1; if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x170))(param_1[1].__align); } iVar1 = pthread_cond_signal(param_1); return iVar1; }
41,969
inline_mysql_file_pwrite
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_pwrite( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, const 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_written; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_WRITE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_pwrite(file, buffer, count, offset, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_written= (result == 0) ? count : 0; else bytes_written= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_written); return result; } #endif result= my_pwrite(file, buffer, count, offset, flags); return result; }
O0
c
inline_mysql_file_pwrite: 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 0x2076fc(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x7, %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 0xb8acf leaq 0x2076b2(%rip), %rax # 0x2c00b8 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 0xf4890 movq %rax, -0x38(%rbp) movq 0x10(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xb8a7a cmpq $0x0, -0x38(%rbp) jne 0xb8a5f movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xb8a6a xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xb8a6a movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xb8aa7 cmpq $-0x1, -0x38(%rbp) je 0xb8a8e movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xb8a99 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xb8a99 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x20760a(%rip), %rax # 0x2c00b8 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 0xb8af3 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 callq 0xf4890 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_pwrite_2: 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, 7 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_B8ACF 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_pwrite mov [rbp+var_38], rax mov rax, [rbp+arg_0] and rax, 6 cmp rax, 0 jz short loc_B8A7A cmp [rbp+var_38], 0 jnz short loc_B8A5F mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_B8A6A loc_B8A5F: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_B8A6A: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_B8AA7 loc_B8A7A: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_B8A8E mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_B8A99 loc_B8A8E: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_B8A99: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_B8AA7: 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_B8AF3 loc_B8ACF: 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_pwrite mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_B8AF3: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_pwrite_2( 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, 7LL); if ( v11 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17); v12 = my_pwrite(v16, v15, v14, v13); 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_pwrite(v16, v15, v14, v13); } }
inline_mysql_file_pwrite: 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,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x7 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 0x001b8acf LEA RAX,[0x3c00b8] 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 0x001f4890 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + 0x10] AND RAX,0x6 CMP RAX,0x0 JZ 0x001b8a7a CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001b8a5f MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001b8a6a LAB_001b8a5f: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001b8a6a LAB_001b8a6a: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001b8aa7 LAB_001b8a7a: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001b8a8e MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001b8a99 LAB_001b8a8e: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001b8a99 LAB_001b8a99: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001b8aa7: LEA RAX,[0x3c00b8] 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 0x001b8af3 LAB_001b8acf: 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 0x001f4890 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001b8af3: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_pwrite (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,7); if (local_48 == 0) { local_10 = my_pwrite(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_pwrite(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; }
41,970
QUICK_INDEX_SORT_SELECT::push_quick_back(QUICK_RANGE_SELECT*)
eloqsql/sql/opt_range.cc
bool QUICK_INDEX_SORT_SELECT::push_quick_back(QUICK_RANGE_SELECT *quick_sel_range) { DBUG_ENTER("QUICK_INDEX_SORT_SELECT::push_quick_back"); if (head->file->is_clustering_key(quick_sel_range->index)) { /* A quick_select over a clustered primary key is handled specifically Here we assume: - PK columns are included in any other merged index - Scan on the PK is disk-ordered. (not meeting #2 will only cause performance degradation) We could treat clustered PK as any other index, but that would be inefficient. There is no point in doing scan on CPK, remembering the rowid, then making rnd_pos() call with that rowid. */ pk_quick_select= quick_sel_range; DBUG_RETURN(0); } DBUG_RETURN(quick_selects.push_back(quick_sel_range, thd->mem_root)); }
O0
cpp
QUICK_INDEX_SORT_SELECT::push_quick_back(QUICK_RANGE_SELECT*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq 0x18(%rax), %rax movq 0x8(%rax), %rdi movq -0x18(%rbp), %rax movl 0x20(%rax), %esi callq 0x8ca0e0 testb $0x1, %al jne 0x8a9642 jmp 0x8a9654 movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx movq %rcx, 0x60(%rax) movb $0x0, -0x1(%rbp) jmp 0x8a967a jmp 0x8a9656 movq -0x20(%rbp), %rax movq %rax, %rdi addq $0x48, %rdi movq -0x18(%rbp), %rsi movq 0xa8(%rax), %rax movq 0x28(%rax), %rdx callq 0x8ca130 andb $0x1, %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN23QUICK_INDEX_SORT_SELECT15push_quick_backEP18QUICK_RANGE_SELECT: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov [rbp+var_20], rax mov rax, [rax+18h] mov rdi, [rax+8]; this mov rax, [rbp+var_18] mov esi, [rax+20h]; unsigned int call _ZNK7handler17is_clustering_keyEj; handler::is_clustering_key(uint) test al, 1 jnz short loc_8A9642 jmp short loc_8A9654 loc_8A9642: mov rax, [rbp+var_20] mov rcx, [rbp+var_18] mov [rax+60h], rcx mov [rbp+var_1], 0 jmp short loc_8A967A loc_8A9654: jmp short $+2 loc_8A9656: mov rax, [rbp+var_20] mov rdi, rax add rdi, 48h ; 'H' mov rsi, [rbp+var_18] mov rax, [rax+0A8h] mov rdx, [rax+28h] call _ZN4ListI18QUICK_RANGE_SELECTE9push_backEPS0_P11st_mem_root; List<QUICK_RANGE_SELECT>::push_back(QUICK_RANGE_SELECT*,st_mem_root *) and al, 1 mov [rbp+var_1], al loc_8A967A: mov al, [rbp+var_1] and al, 1 add rsp, 20h pop rbp retn
char QUICK_INDEX_SORT_SELECT::push_quick_back(QUICK_INDEX_SORT_SELECT *this, QUICK_RANGE_SELECT *a2) { if ( (handler::is_clustering_key(*(handler **)(*((_QWORD *)this + 3) + 8LL), *((_DWORD *)a2 + 8)) & 1) == 0 ) return List<QUICK_RANGE_SELECT>::push_back((char *)this + 72, a2, *(_QWORD *)(*((_QWORD *)this + 21) + 40LL)) & 1; *((_QWORD *)this + 12) = a2; return 0; }
__cxx_global_var_init.1050: PUSH RBP MOV RBP,RSP SUB RSP,0x40 LEA RDI,[RBP + -0x8] MOV ESI,0x2 XOR EDX,EDX CALL 0x00c6f120 MOV R11,qword ptr [RBP + -0x8] LEA RDI,[0x1e71518] LEA RSI,[0x15382a1] LEA RDX,[0x15382b5] MOV ECX,0x800 LEA R8,[0x1e4ae18] LEA RAX,[0x1e49200] SUB R8,RAX MOV R9D,0x8 XOR EAX,EAX XOR EAX,EAX LEA R10,[0xc6d3c0] LEA RAX,[0xc6d690] MOV qword ptr [RSP],R11 MOV qword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP + 0x10],0x0 MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],R10 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],0x0 CALL 0x00c6fcb0 LEA RDI,[0xc6fd70] LEA RSI,[0x1e71518] LEA RDX,[0x1c3c008] CALL 0x00875dc0 ADD RSP,0x40 POP RBP RET
void __cxx_global_var_init_1050(void) { int8 local_10; CMD_LINE::CMD_LINE((CMD_LINE *)&local_10,2,0); Sys_var_charptr_fscs::Sys_var_charptr ((Sys_var_charptr_fscs *)Sys_slow_log_path,"slow_query_log_file", "Log slow queries to given log file. Defaults logging to \'hostname\'-slow.log. Must be enabled to activate other slow log options" ,0x800,0x1c18,8,local_10,0,0,0,check_log_path,fix_slow_log_file,0); __cxa_atexit(Sys_var_charptr_fscs::~Sys_var_charptr_fscs,Sys_slow_log_path,&__dso_handle); return; }
41,971
pagecache_wait_lock
eloqsql/storage/maria/ma_pagecache.c
static my_bool pagecache_wait_lock(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, PAGECACHE_FILE file, pgcache_page_no_t pageno, uint lock_type) { /* Lock failed we will wait */ struct st_my_thread_var *thread= my_thread_var; DBUG_ENTER("pagecache_wait_lock"); DBUG_PRINT("info", ("fail to lock, waiting... %p", block)); thread->lock_type= lock_type; wqueue_add_to_queue(&block->wqueue[COND_FOR_WRLOCK], thread); dec_counter_for_resize_op(pagecache); do { DBUG_PRINT("wait", ("suspend thread %s %ld", thread->name, (ulong) thread->id)); pagecache_pthread_cond_wait(&thread->suspend, &pagecache->cache_lock); } while(thread->next); inc_counter_for_resize_op(pagecache); PCBLOCK_INFO(block); if ((block->status & (PCBLOCK_REASSIGNED | PCBLOCK_IN_SWITCH)) || !block->hash_link || file.file != block->hash_link->file.file || pageno != block->hash_link->pageno) { DBUG_PRINT("info", ("the block %p changed => need retry " "status: %x files %d != %d or pages %lu != %lu", block, block->status, file.file, block->hash_link ? block->hash_link->file.file : -1, (ulong) pageno, (ulong) (block->hash_link ? block->hash_link->pageno : 0))); DBUG_RETURN(1); } DBUG_RETURN(0); }
O3
c
pagecache_wait_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %ebx movq %rcx, -0x38(%rbp) movl %edx, -0x2c(%rbp) movq %rsi, %r15 movq %rdi, %r12 callq 0xa8156 movq %rax, %r13 movl %ebx, 0xe4(%rax) leaq 0x58(%r15), %rdi movq %rax, %rsi callq 0xad2d7 decq 0x68(%r12) jne 0x40a07 movq 0x110(%r12), %rax testq %rax, %rax je 0x40a07 movq 0x88(%rax), %rbx movq 0x38(%rbx), %rdi addq $0x8, %rbx testq %rdi, %rdi jne 0x40a88 movq %rbx, %rdi callq 0x2a630 movq %r13, %rbx addq $0x8, %rbx leaq 0xc8(%r12), %r14 cmpq $0x0, 0x38(%r13) jne 0x40a34 movq %rbx, %rdi movq %r14, %rsi callq 0x2a460 cmpq $0x0, 0x88(%r13) jne 0x40a16 jmp 0x40a4d movq %rbx, %rdi movq %r14, %rsi leaq 0xa10dc(%rip), %rdx # 0xe1b1d movl $0x982, %ecx # imm = 0x982 callq 0x30914 jmp 0x40a28 incq 0x68(%r12) movb $0x1, %al testb $0xc, 0x74(%r15) je 0x40a6a addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x20(%r15), %rcx testq %rcx, %rcx je 0x40a5b movl -0x2c(%rbp), %edx cmpl %edx, 0x28(%rcx) jne 0x40a5b movq -0x38(%rbp), %rax cmpq %rax, 0x60(%rcx) setne %al jmp 0x40a5b leaq 0x34e7c9(%rip), %rax # 0x38f258 movq (%rax), %rax callq *0x170(%rax) jmp 0x409ff
pagecache_wait_lock: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebx, r8d mov [rbp+var_38], rcx mov [rbp+var_2C], edx mov r15, rsi mov r12, rdi call _my_thread_var mov r13, rax mov [rax+0E4h], ebx lea rdi, [r15+58h] mov rsi, rax call wqueue_add_to_queue dec qword ptr [r12+68h] jnz short loc_40A07 mov rax, [r12+110h] test rax, rax jz short loc_40A07 mov rbx, [rax+88h] mov rdi, [rbx+38h] add rbx, 8 test rdi, rdi jnz loc_40A88 loc_409FF: mov rdi, rbx call _pthread_cond_signal loc_40A07: mov rbx, r13 add rbx, 8 lea r14, [r12+0C8h] loc_40A16: cmp qword ptr [r13+38h], 0 jnz short loc_40A34 mov rdi, rbx mov rsi, r14 call _pthread_cond_wait loc_40A28: cmp qword ptr [r13+88h], 0 jnz short loc_40A16 jmp short loc_40A4D loc_40A34: mov rdi, rbx mov rsi, r14 lea rdx, aWorkspaceLlm4b_26; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 982h call psi_cond_wait jmp short loc_40A28 loc_40A4D: inc qword ptr [r12+68h] mov al, 1 test byte ptr [r15+74h], 0Ch jz short loc_40A6A loc_40A5B: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_40A6A: mov rcx, [r15+20h] test rcx, rcx jz short loc_40A5B mov edx, [rbp+var_2C] cmp [rcx+28h], edx jnz short loc_40A5B mov rax, [rbp+var_38] cmp [rcx+60h], rax setnz al jmp short loc_40A5B loc_40A88: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp loc_409FF
bool pagecache_wait_lock(long long a1, long long a2, int a3, long long a4, int a5) { long long v7; // r13 long long v9; // rax long long v10; // rbx long long v11; // rdi long long v12; // rbx bool result; // al long long v14; // rcx v7 = my_thread_var(a1); *(_DWORD *)(v7 + 228) = a5; wqueue_add_to_queue(a2 + 88, v7); if ( (*(_QWORD *)(a1 + 104))-- == 1LL ) { v9 = *(_QWORD *)(a1 + 272); if ( v9 ) { v10 = *(_QWORD *)(v9 + 136); v11 = *(_QWORD *)(v10 + 56); v12 = v10 + 8; if ( v11 ) PSI_server[46](); pthread_cond_signal(v12); } } do { if ( *(_QWORD *)(v7 + 56) ) psi_cond_wait( v7 + 8, a1 + 200, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x982u); else pthread_cond_wait(v7 + 8, a1 + 200); } while ( *(_QWORD *)(v7 + 136) ); ++*(_QWORD *)(a1 + 104); result = 1; if ( (*(_BYTE *)(a2 + 116) & 0xC) == 0 ) { v14 = *(_QWORD *)(a2 + 32); if ( v14 ) { if ( *(_DWORD *)(v14 + 40) == a3 ) return *(_QWORD *)(v14 + 96) != a4; } } return result; }
pagecache_wait_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBX,R8D MOV qword ptr [RBP + -0x38],RCX MOV dword ptr [RBP + -0x2c],EDX MOV R15,RSI MOV R12,RDI CALL 0x001a8156 MOV R13,RAX MOV dword ptr [RAX + 0xe4],EBX LEA RDI,[R15 + 0x58] MOV RSI,RAX CALL 0x001ad2d7 DEC qword ptr [R12 + 0x68] JNZ 0x00140a07 MOV RAX,qword ptr [R12 + 0x110] TEST RAX,RAX JZ 0x00140a07 MOV RBX,qword ptr [RAX + 0x88] MOV RDI,qword ptr [RBX + 0x38] ADD RBX,0x8 TEST RDI,RDI JNZ 0x00140a88 LAB_001409ff: MOV RDI,RBX CALL 0x0012a630 LAB_00140a07: MOV RBX,R13 ADD RBX,0x8 LEA R14,[R12 + 0xc8] LAB_00140a16: CMP qword ptr [R13 + 0x38],0x0 JNZ 0x00140a34 MOV RDI,RBX MOV RSI,R14 CALL 0x0012a460 LAB_00140a28: CMP qword ptr [R13 + 0x88],0x0 JNZ 0x00140a16 JMP 0x00140a4d LAB_00140a34: MOV RDI,RBX MOV RSI,R14 LEA RDX,[0x1e1b1d] MOV ECX,0x982 CALL 0x00130914 JMP 0x00140a28 LAB_00140a4d: INC qword ptr [R12 + 0x68] MOV AL,0x1 TEST byte ptr [R15 + 0x74],0xc JZ 0x00140a6a LAB_00140a5b: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00140a6a: MOV RCX,qword ptr [R15 + 0x20] TEST RCX,RCX JZ 0x00140a5b MOV EDX,dword ptr [RBP + -0x2c] CMP dword ptr [RCX + 0x28],EDX JNZ 0x00140a5b MOV RAX,qword ptr [RBP + -0x38] CMP qword ptr [RCX + 0x60],RAX SETNZ AL JMP 0x00140a5b LAB_00140a88: LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001409ff
bool pagecache_wait_lock(long param_1,long param_2,int param_3,long param_4,int4 param_5) { long *plVar1; long lVar2; long lVar3; bool bVar4; lVar3 = _my_thread_var(); *(int4 *)(lVar3 + 0xe4) = param_5; wqueue_add_to_queue(param_2 + 0x58,lVar3); plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if ((*plVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar2 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar2 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar2 + 8)); } do { if (*(long *)(lVar3 + 0x38) == 0) { pthread_cond_wait((pthread_cond_t *)(lVar3 + 8),(pthread_mutex_t *)(param_1 + 200)); } else { psi_cond_wait((pthread_cond_t *)(lVar3 + 8),(pthread_mutex_t *)(param_1 + 200), "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x982); } } while (*(long *)(lVar3 + 0x88) != 0); *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1; bVar4 = true; if ((((*(byte *)(param_2 + 0x74) & 0xc) == 0) && (lVar3 = *(long *)(param_2 + 0x20), lVar3 != 0)) && (*(int *)(lVar3 + 0x28) == param_3)) { bVar4 = *(long *)(lVar3 + 0x60) != param_4; } return bVar4; }
41,972
nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type)
monkey531[P]llama/common/json.hpp
static const char* token_type_name(const token_type t) noexcept { switch (t) { case token_type::uninitialized: return "<uninitialized>"; case token_type::literal_true: return "true literal"; case token_type::literal_false: return "false literal"; case token_type::literal_null: return "null literal"; case token_type::value_string: return "string literal"; case token_type::value_unsigned: case token_type::value_integer: case token_type::value_float: return "number literal"; case token_type::begin_array: return "'['"; case token_type::begin_object: return "'{'"; case token_type::end_array: return "']'"; case token_type::end_object: return "'}'"; case token_type::name_separator: return "':'"; case token_type::value_separator: return "','"; case token_type::parse_error: return "<parse error>"; case token_type::end_of_input: return "end of input"; case token_type::literal_or_value: return "'[', '{', or a literal"; // LCOV_EXCL_START default: // catch non-enum values return "unknown token"; // LCOV_EXCL_STOP } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type): cmpl $0x10, %edi ja 0x60c28 movl %edi, %eax leaq 0x8c2c8(%rip), %rcx # 0xecee8 movslq (%rcx,%rax,4), %rax addq %rcx, %rax retq leaq 0x8b4cc(%rip), %rax # 0xec0fb retq
_ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE: cmp edi, 10h ja short loc_60C28 mov eax, edi lea rcx, unk_ECEE8 movsxd rax, dword ptr [rcx+rax*4] add rax, rcx retn loc_60C28: lea rax, aUnknownToken; "unknown token" retn
const char * nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name( unsigned int a1) { if ( a1 > 0x10 ) return "unknown token"; else return (char *)dword_ECEE8 + dword_ECEE8[a1]; }
token_type_name: CMP EDI,0x10 JA 0x00160c28 MOV EAX,EDI LEA RCX,[0x1ecee8] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX RET LAB_00160c28: LEA RAX,[0x1ec0fb] RET
/* nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type) */ char * nlohmann::json_abi_v3_11_3::detail:: lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(uint param_1) { if (param_1 < 0x11) { return &DAT_001ecee8 + *(int *)(&DAT_001ecee8 + (ulong)param_1 * 4); } return "unknown token"; }
41,973
inheritance_source_by_id
eloqsql/mysys/charset.c
static CHARSET_INFO *inheritance_source_by_id(CHARSET_INFO *cs, uint refid) { CHARSET_INFO *refcs; return refid && refid != cs->number && (refcs= all_charsets[refid]) && (refcs->state & MY_CS_AVAILABLE) ? refcs : NULL; }
O0
c
inheritance_source_by_id: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) je 0x712b1 movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx cmpl (%rcx), %eax je 0x712b1 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x37a0d8(%rip), %rax # 0x3eb360 movq (%rax,%rcx,8), %rax movq %rax, -0x18(%rbp) cmpq $0x0, %rax je 0x712b1 movq -0x18(%rbp), %rax movl 0xc(%rax), %eax andl $0x200, %eax # imm = 0x200 cmpl $0x0, %eax je 0x712b1 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0x712b9 xorl %eax, %eax movq %rax, -0x20(%rbp) jmp 0x712b9 movq -0x20(%rbp), %rax popq %rbp retq nop
inheritance_source_by_id: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], esi cmp [rbp+var_C], 0 jz short loc_712B1 mov eax, [rbp+var_C] mov rcx, [rbp+var_8] cmp eax, [rcx] jz short loc_712B1 mov eax, [rbp+var_C] mov ecx, eax lea rax, all_charsets mov rax, [rax+rcx*8] mov [rbp+var_18], rax cmp rax, 0 jz short loc_712B1 mov rax, [rbp+var_18] mov eax, [rax+0Ch] and eax, 200h cmp eax, 0 jz short loc_712B1 mov rax, [rbp+var_18] mov [rbp+var_20], rax jmp short loc_712B9 loc_712B1: xor eax, eax mov [rbp+var_20], rax jmp short $+2 loc_712B9: mov rax, [rbp+var_20] pop rbp retn
long long inheritance_source_by_id(_DWORD *a1, int a2) { long long v4; // [rsp+8h] [rbp-18h] if ( a2 && a2 != *a1 && (v4 = all_charsets[a2]) != 0 && (*(_DWORD *)(v4 + 12) & 0x200) != 0 ) return all_charsets[a2]; else return 0LL; }
inheritance_source_by_id: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI CMP dword ptr [RBP + -0xc],0x0 JZ 0x001712b1 MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX] JZ 0x001712b1 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x4eb360] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JZ 0x001712b1 MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0xc] AND EAX,0x200 CMP EAX,0x0 JZ 0x001712b1 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX JMP 0x001712b9 LAB_001712b1: XOR EAX,EAX MOV qword ptr [RBP + -0x20],RAX JMP 0x001712b9 LAB_001712b9: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long inheritance_source_by_id(uint *param_1,uint param_2) { long local_28; if ((((param_2 == 0) || (param_2 == *param_1)) || (local_28 = (&all_charsets)[param_2], local_28 == 0)) || ((*(uint *)(local_28 + 0xc) & 0x200) == 0)) { local_28 = 0; } return local_28; }
41,974
mjs_detachBody
aimrt_mujoco_sim/_deps/mujoco-src/src/user/user_api.cc
int mjs_detachBody(mjSpec* s, mjsBody* b) { mjCModel* model = static_cast<mjCModel*>(s->element); mjCBody* body = static_cast<mjCBody*>(b->element); *model -= *body; mjs_delete(b->element); return 0; }
O3
cpp
mjs_detachBody: pushq %rbx movq %rsi, %rbx movq (%rdi), %rdi movq (%rsi), %rax leaq -0x8(%rax), %rsi testq %rax, %rax cmoveq %rax, %rsi callq 0xf6c46 movq (%rbx), %rdi testq %rdi, %rdi je 0xb725c movq -0x8(%rdi), %rax addq $-0x8, %rdi callq *0x20(%rax) xorl %eax, %eax popq %rbx retq
mjs_detachBody: push rbx; int mov rbx, rsi mov rdi, [rdi]; this mov rax, [rsi] lea rsi, [rax-8] test rax, rax cmovz rsi, rax call _ZN8mjCModelmIERK7mjCBody; mjCModel::operator-=(mjCBody const&) mov rdi, [rbx] test rdi, rdi jz short loc_B725C mov rax, [rdi-8] add rdi, 0FFFFFFFFFFFFFFF8h call qword ptr [rax+20h] loc_B725C: xor eax, eax pop rbx retn
mjs_detachBody: PUSH RBX MOV RBX,RSI MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RSI] LEA RSI,[RAX + -0x8] TEST RAX,RAX CMOVZ RSI,RAX CALL 0x001f6c46 MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x001b725c MOV RAX,qword ptr [RDI + -0x8] ADD RDI,-0x8 CALL qword ptr [RAX + 0x20] LAB_001b725c: XOR EAX,EAX POP RBX RET
int8 mjs_detachBody(int8 *param_1,long *param_2) { long lVar1; mjCBody *pmVar2; pmVar2 = (mjCBody *)(*param_2 + -8); if (*param_2 == 0) { pmVar2 = (mjCBody *)0x0; } mjCModel::operator-=((mjCModel *)*param_1,pmVar2); lVar1 = *param_2; if (lVar1 != 0) { (**(code **)(*(long *)(lVar1 + -8) + 0x20))(lVar1 + -8); } return 0; }
41,975
ma_ft_parserecord
eloqsql/storage/maria/ma_ft_update.c
FT_WORD * _ma_ft_parserecord(MARIA_HA *info, uint keynr, const uchar *record, MEM_ROOT *mem_root) { TREE ptree; MYSQL_FTPARSER_PARAM *param; DBUG_ENTER("_ma_ft_parserecord"); if (! (param= maria_ftparser_call_initializer(info, keynr, 0))) DBUG_RETURN(NULL); bzero((char*) &ptree, sizeof(ptree)); param->flags= 0; if (_ma_ft_parse(&ptree, info, keynr, record, param, mem_root)) DBUG_RETURN(NULL); DBUG_RETURN(maria_ft_linearize(&ptree, mem_root)); }
O3
c
ma_ft_parserecord: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2a8, %rsp # imm = 0x2A8 movq %rcx, -0x30(%rbp) movq %rdx, %r15 movl %esi, %r12d movq %rdi, %r13 xorl %r14d, %r14d xorl %edx, %edx callq 0x5f8b9 testq %rax, %rax je 0x5fcb5 movq %rax, %rbx leaq -0x2c8(%rbp), %rdi xorl %r14d, %r14d movl $0x298, %edx # imm = 0x298 xorl %esi, %esi callq 0x292a0 movl $0x0, 0x34(%rbx) leaq -0x2c8(%rbp), %rdi movq %r13, %rsi movl %r12d, %edx movq %r15, %rcx movq %rbx, %r8 movq -0x30(%rbp), %rbx movq %rbx, %r9 callq 0x5fb57 testl %eax, %eax jne 0x5fcb5 leaq -0x2c8(%rbp), %rdi movq %rbx, %rsi callq 0x5f12c movq %rax, %r14 movq %r14, %rax addq $0x2a8, %rsp # imm = 0x2A8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ma_ft_parserecord: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 2A8h mov [rbp+var_30], rcx mov r15, rdx mov r12d, esi mov r13, rdi xor r14d, r14d xor edx, edx call maria_ftparser_call_initializer test rax, rax jz short loc_5FCB5 mov rbx, rax lea rdi, [rbp+var_2C8] xor r14d, r14d mov edx, 298h xor esi, esi call _memset mov dword ptr [rbx+34h], 0 lea rdi, [rbp+var_2C8] mov rsi, r13 mov edx, r12d mov rcx, r15 mov r8, rbx mov rbx, [rbp+var_30] mov r9, rbx call _ma_ft_parse test eax, eax jnz short loc_5FCB5 lea rdi, [rbp+var_2C8] mov rsi, rbx call maria_ft_linearize mov r14, rax loc_5FCB5: mov rax, r14 add rsp, 2A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * ma_ft_parserecord(_QWORD *a1, unsigned int a2, long long a3, long long a4) { long long v5; // r14 long long v6; // rax long long v7; // rbx long long v8; // r8 long long v9; // rbx _QWORD v11[83]; // [rsp+8h] [rbp-2C8h] BYREF long long v12; // [rsp+2A0h] [rbp-30h] v12 = a4; v5 = 0LL; v6 = maria_ftparser_call_initializer(a1, a2, 0); if ( v6 ) { v7 = v6; v5 = 0LL; memset(v11, 0LL, sizeof(v11)); *(_DWORD *)(v7 + 52) = 0; v8 = v7; v9 = v12; if ( !(unsigned int)ma_ft_parse(v11, (long long)a1, a2, a3, v8, v12) ) return maria_ft_linearize((long long)v11, v9); } return (_QWORD *)v5; }
_ma_ft_parserecord: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x2a8 MOV qword ptr [RBP + -0x30],RCX MOV R15,RDX MOV R12D,ESI MOV R13,RDI XOR R14D,R14D XOR EDX,EDX CALL 0x0015f8b9 TEST RAX,RAX JZ 0x0015fcb5 MOV RBX,RAX LEA RDI,[RBP + -0x2c8] XOR R14D,R14D MOV EDX,0x298 XOR ESI,ESI CALL 0x001292a0 MOV dword ptr [RBX + 0x34],0x0 LEA RDI,[RBP + -0x2c8] MOV RSI,R13 MOV EDX,R12D MOV RCX,R15 MOV R8,RBX MOV RBX,qword ptr [RBP + -0x30] MOV R9,RBX CALL 0x0015fb57 TEST EAX,EAX JNZ 0x0015fcb5 LEA RDI,[RBP + -0x2c8] MOV RSI,RBX CALL 0x0015f12c MOV R14,RAX LAB_0015fcb5: MOV RAX,R14 ADD RSP,0x2a8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 _ma_ft_parserecord(int8 param_1,ulong param_2,int8 param_3,int8 param_4) { int8 uVar1; int iVar2; long lVar3; int8 uVar4; int1 local_2d0 [664]; int8 local_38; uVar4 = 0; local_38 = param_4; lVar3 = maria_ftparser_call_initializer(param_1,param_2,0); if (lVar3 != 0) { uVar4 = 0; memset(local_2d0,0,0x298); uVar1 = local_38; *(int4 *)(lVar3 + 0x34) = 0; iVar2 = _ma_ft_parse(local_2d0,param_1,param_2 & 0xffffffff,param_3,lVar3,local_38); if (iVar2 == 0) { uVar4 = maria_ft_linearize(local_2d0,uVar1); } } return uVar4; }
41,976
mark_blocks_free
eloqsql/mysys/my_alloc.c
static inline void mark_blocks_free(MEM_ROOT* root) { reg1 USED_MEM *next; reg2 USED_MEM **last; /* iterate through (partially) free blocks, mark them free */ last= &root->free; for (next= root->free; next; next= *(last= &next->next)) { next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); TRASH_MEM(next); } /* Combine the free and the used list */ *last= next=root->used; /* now go through the used blocks and mark them free */ for (; next; next= next->next) { next->left= next->size - ALIGN_SIZE(sizeof(USED_MEM)); TRASH_MEM(next); } /* Now everything is set; Indicate that nothing is used anymore */ root->used= 0; root->first_block_usage= 0; root->block_num= 4; }
O0
c
mark_blocks_free: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x7c1af movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0x7c198 jmp 0x7c19a jmp 0x7c19c jmp 0x7c19e movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq (%rax), %rax movq %rax, -0x10(%rbp) jmp 0x7c17b movq -0x8(%rbp), %rax movq 0x8(%rax), %rcx movq %rcx, -0x10(%rbp) movq -0x18(%rbp), %rax movq %rcx, (%rax) cmpq $0x0, -0x10(%rbp) je 0x7c1f2 movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) jmp 0x7c1df jmp 0x7c1e1 jmp 0x7c1e3 jmp 0x7c1e5 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) jmp 0x7c1c2 movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x2c(%rax) movq -0x8(%rbp), %rax movl $0x4, 0x28(%rax) popq %rbp retq nopw %cs:(%rax,%rax)
mark_blocks_free: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax loc_7C17B: cmp [rbp+var_10], 0 jz short loc_7C1AF mov rax, [rbp+var_10] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_10] mov [rax+8], rcx jmp short $+2 loc_7C198: jmp short $+2 loc_7C19A: jmp short $+2 loc_7C19C: jmp short $+2 loc_7C19E: mov rax, [rbp+var_10] mov [rbp+var_18], rax mov rax, [rax] mov [rbp+var_10], rax jmp short loc_7C17B loc_7C1AF: mov rax, [rbp+var_8] mov rcx, [rax+8] mov [rbp+var_10], rcx mov rax, [rbp+var_18] mov [rax], rcx loc_7C1C2: cmp [rbp+var_10], 0 jz short loc_7C1F2 mov rax, [rbp+var_10] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_10] mov [rax+8], rcx jmp short $+2 loc_7C1DF: jmp short $+2 loc_7C1E1: jmp short $+2 loc_7C1E3: jmp short $+2 loc_7C1E5: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_10], rax jmp short loc_7C1C2 loc_7C1F2: mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 mov rax, [rbp+var_8] mov dword ptr [rax+2Ch], 0 mov rax, [rbp+var_8] mov dword ptr [rax+28h], 4 pop rbp retn
long long mark_blocks_free(long long a1) { long long result; // rax _QWORD *v2; // [rsp+0h] [rbp-18h] _QWORD *i; // [rsp+8h] [rbp-10h] _QWORD *v4; // [rsp+8h] [rbp-10h] v2 = (_QWORD *)a1; for ( i = *(_QWORD **)a1; i; i = (_QWORD *)*i ) { i[1] = i[2] - 24LL; v2 = i; } v4 = *(_QWORD **)(a1 + 8); *v2 = v4; while ( v4 ) { v4[1] = v4[2] - 24LL; v4 = (_QWORD *)*v4; } *(_QWORD *)(a1 + 8) = 0LL; *(_DWORD *)(a1 + 44) = 0; result = a1; *(_DWORD *)(a1 + 40) = 4; return result; }
mark_blocks_free: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX LAB_0017c17b: CMP qword ptr [RBP + -0x10],0x0 JZ 0x0017c1af MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX JMP 0x0017c198 LAB_0017c198: JMP 0x0017c19a LAB_0017c19a: JMP 0x0017c19c LAB_0017c19c: JMP 0x0017c19e LAB_0017c19e: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX JMP 0x0017c17b LAB_0017c1af: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX LAB_0017c1c2: CMP qword ptr [RBP + -0x10],0x0 JZ 0x0017c1f2 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX JMP 0x0017c1df LAB_0017c1df: JMP 0x0017c1e1 LAB_0017c1e1: JMP 0x0017c1e3 LAB_0017c1e3: JMP 0x0017c1e5 LAB_0017c1e5: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX JMP 0x0017c1c2 LAB_0017c1f2: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x28],0x4 POP RBP RET
void mark_blocks_free(int8 *param_1) { int8 *local_20; int8 *local_18; local_20 = param_1; for (local_18 = (int8 *)*param_1; local_18 != (int8 *)0x0; local_18 = (int8 *)*local_18) { local_18[1] = local_18[2] + -0x18; local_20 = local_18; } local_18 = (int8 *)param_1[1]; *local_20 = local_18; for (; local_18 != (int8 *)0x0; local_18 = (int8 *)*local_18) { local_18[1] = local_18[2] + -0x18; } param_1[1] = 0; *(int4 *)((long)param_1 + 0x2c) = 0; *(int4 *)(param_1 + 5) = 4; return; }
41,977
evmone::instr::core::calldatacopy(evmone::StackTop, long, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/instructions.hpp
inline Result calldatacopy(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept { const auto& mem_index = stack.pop(); const auto& input_index = stack.pop(); const auto& size = stack.pop(); if (!check_memory(gas_left, state.memory, mem_index, size)) return {EVMC_OUT_OF_GAS, gas_left}; auto dst = static_cast<size_t>(mem_index); auto src = state.msg->input_size < input_index ? state.msg->input_size : static_cast<size_t>(input_index); auto s = static_cast<size_t>(size); auto copy_size = std::min(s, state.msg->input_size - src); if (const auto cost = copy_cost(s); (gas_left -= cost) < 0) return {EVMC_OUT_OF_GAS, gas_left}; if (copy_size > 0) std::memcpy(&state.memory[dst], &state.msg->input_data[src], copy_size); if (s - copy_size > 0) std::memset(&state.memory[dst + copy_size], 0, s - copy_size); return {EVMC_SUCCESS, gas_left}; }
O3
cpp
evmone::instr::core::calldatacopy(evmone::StackTop, long, evmone::ExecutionState&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r12 movq %rsi, %rbx movq %rdi, %r15 movdqu -0x40(%rdi), %xmm0 movdqu -0x30(%rdi), %xmm1 por %xmm0, %xmm1 leaq 0x8(%rdx), %r9 ptest %xmm1, %xmm1 je 0x41e11 movq -0x30(%r15), %rax orq -0x28(%r15), %rax movl $0x3, %ebp orq -0x38(%r15), %rax jne 0x41eb4 movq -0x40(%r15), %rax movq %rax, %rcx shrq $0x20, %rcx jne 0x41eb4 movq 0x10(%r15), %rcx orq 0x18(%r15), %rcx orq 0x8(%r15), %rcx jne 0x41eb4 movq (%r15), %rdx movq %rdx, %rcx shrq $0x20, %rcx jne 0x41eb4 addq %rax, %rdx cmpq 0x10(%r12), %rdx jbe 0x41e08 movq %rbx, %rdi movq %r9, %rsi movq %r9, %rbx callq 0x41c31 movq %rbx, %r9 movq %rax, %rbx testq %rbx, %rbx js 0x41eb4 movq -0x10(%r15), %rcx movq -0x8(%r15), %rdx xorl %edi, %edi movq %rdx, %rax orq %rcx, %rax movq -0x20(%r15), %rsi cmoveq %rsi, %rcx movq 0x20(%r12), %rax cmoveq -0x18(%r15), %rdx movq 0x48(%rax), %r14 movl $0x0, %r8d cmoveq %r14, %r8 cmpq %rcx, %r8 sbbq %rdx, %rdi movq -0x40(%r15), %r12 cmovbq %r14, %rsi subq %rsi, %r14 cmpq %r12, %r14 movq %r12, %r13 cmovbq %r14, %r13 leaq 0x1f(%r12), %rcx shrq $0x5, %rcx leaq (%rcx,%rcx,2), %rcx subq %rcx, %rbx js 0x41eaf movq (%r15), %r15 testq %r13, %r13 je 0x41e8e movq (%r9), %rdi addq %r15, %rdi addq 0x40(%rax), %rsi movq %r13, %rdx movq %r9, %rbp callq 0x22090 movq %rbp, %r9 xorl %ebp, %ebp cmpq %r14, %r12 jbe 0x41eb4 addq (%r9), %r15 addq %r13, %r15 subq %r13, %r12 xorl %ebp, %ebp movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx callq 0x22190 jmp 0x41eb4 movl $0x3, %ebp movl %ebp, %eax movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN6evmone5instr4core12calldatacopyENS_8StackTopElRNS_14ExecutionStateE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rdx mov rbx, rsi mov r15, rdi movdqu xmm0, xmmword ptr [rdi-40h] movdqu xmm1, xmmword ptr [rdi-30h] por xmm1, xmm0 lea r9, [rdx+8] ptest xmm1, xmm1 jz short loc_41E11 mov rax, [r15-30h] or rax, [r15-28h] mov ebp, 3 or rax, [r15-38h] jnz loc_41EB4 mov rax, [r15-40h] mov rcx, rax shr rcx, 20h jnz loc_41EB4 mov rcx, [r15+10h] or rcx, [r15+18h] or rcx, [r15+8] jnz loc_41EB4 mov rdx, [r15] mov rcx, rdx shr rcx, 20h; unsigned __int64 jnz loc_41EB4 add rdx, rax; evmone::Memory * cmp rdx, [r12+10h] jbe short loc_41E08 mov rdi, rbx; this mov rsi, r9; __int64 mov rbx, r9 call _ZN6evmone11grow_memoryElRNS_6MemoryEm; evmone::grow_memory(long,evmone::Memory &,ulong) mov r9, rbx mov rbx, rax loc_41E08: test rbx, rbx js loc_41EB4 loc_41E11: mov rcx, [r15-10h] mov rdx, [r15-8] xor edi, edi mov rax, rdx or rax, rcx mov rsi, [r15-20h] cmovz rcx, rsi mov rax, [r12+20h] cmovz rdx, [r15-18h] mov r14, [rax+48h] mov r8d, 0 cmovz r8, r14 cmp r8, rcx sbb rdi, rdx mov r12, [r15-40h] cmovb rsi, r14 sub r14, rsi cmp r14, r12 mov r13, r12 cmovb r13, r14 lea rcx, [r12+1Fh] shr rcx, 5 lea rcx, [rcx+rcx*2] sub rbx, rcx js short loc_41EAF mov r15, [r15] test r13, r13 jz short loc_41E8E mov rdi, [r9] add rdi, r15 add rsi, [rax+40h] mov rdx, r13 mov rbp, r9 call _memcpy mov r9, rbp loc_41E8E: xor ebp, ebp cmp r12, r14 jbe short loc_41EB4 add r15, [r9] add r15, r13 sub r12, r13 xor ebp, ebp mov rdi, r15 xor esi, esi mov rdx, r12 call _memset jmp short loc_41EB4 loc_41EAF: mov ebp, 3 loc_41EB4: mov eax, ebp mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long evmone::instr::core::calldatacopy(const __m128i *a1, evmone *a2, _QWORD *a3) { long long v4; // rbx __m128i v5; // xmm1 evmone::Memory *v6; // r9 unsigned int v7; // ebp evmone::Memory *v8; // rdx evmone::Memory *v9; // rbx char *v10; // rax long long v11; // rcx long long v12; // rdx long long v13; // rsi long long v14; // rax unsigned long long v15; // r8 unsigned long long v16; // r12 unsigned long long v17; // r14 long long v18; // r13 long long v19; // r15 evmone::Memory *v20; // rbp v4 = (long long)a2; v5 = _mm_or_si128(_mm_loadu_si128(a1 - 3), _mm_loadu_si128(a1 - 4)); v6 = (evmone::Memory *)(a3 + 1); if ( _mm_testz_si128(v5, v5) ) goto LABEL_9; v7 = 3; if ( !(a1[-4].m128i_i64[1] | a1[-3].m128i_i64[1] | a1[-3].m128i_i64[0]) && !HIDWORD(a1[-4].m128i_i64[0]) && !(a1->m128i_i64[1] | a1[1].m128i_i64[1] | a1[1].m128i_i64[0]) && !HIDWORD(a1->m128i_i64[0]) ) { v8 = (evmone::Memory *)(a1[-4].m128i_i64[0] + a1->m128i_i64[0]); if ( (unsigned long long)v8 > a3[2] ) { v9 = v6; v10 = evmone::grow_memory(a2, v6, v8); v6 = v9; v4 = (long long)v10; } if ( v4 >= 0 ) { LABEL_9: v11 = a1[-1].m128i_i64[0]; v12 = a1[-1].m128i_i64[1]; v13 = a1[-2].m128i_i64[0]; if ( *(_OWORD *)&a1[-1] == 0LL ) v11 = a1[-2].m128i_i64[0]; v14 = a3[4]; if ( *(_OWORD *)&a1[-1] == 0LL ) v12 = a1[-2].m128i_i64[1]; v15 = 0LL; if ( *(_OWORD *)&a1[-1] == 0LL ) v15 = *(_QWORD *)(v14 + 72); v16 = a1[-4].m128i_u64[0]; if ( v15 < __PAIR128__(v12, v11) ) v13 = *(_QWORD *)(v14 + 72); v17 = *(_QWORD *)(v14 + 72) - v13; v18 = a1[-4].m128i_i64[0]; if ( v17 < v16 ) v18 = *(_QWORD *)(v14 + 72) - v13; if ( (long long)(v4 - 3 * ((v16 + 31) >> 5)) < 0 ) { return 3; } else { v19 = a1->m128i_i64[0]; if ( v18 ) { v20 = v6; memcpy(v19 + *(_QWORD *)v6); v6 = v20; } v7 = 0; if ( v16 > v17 ) { v7 = 0; memset(v18 + *(_QWORD *)v6 + v19, 0LL, v16 - v18); } } } } return v7; }
calldatacopy: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RDX MOV RBX,RSI MOV R15,RDI MOVDQU XMM0,xmmword ptr [RDI + -0x40] MOVDQU XMM1,xmmword ptr [RDI + -0x30] POR XMM1,XMM0 LEA R9,[RDX + 0x8] PTEST XMM1,XMM1 JZ 0x00141e11 MOV RAX,qword ptr [R15 + -0x30] OR RAX,qword ptr [R15 + -0x28] MOV EBP,0x3 OR RAX,qword ptr [R15 + -0x38] JNZ 0x00141eb4 MOV RAX,qword ptr [R15 + -0x40] MOV RCX,RAX SHR RCX,0x20 JNZ 0x00141eb4 MOV RCX,qword ptr [R15 + 0x10] OR RCX,qword ptr [R15 + 0x18] OR RCX,qword ptr [R15 + 0x8] JNZ 0x00141eb4 MOV RDX,qword ptr [R15] MOV RCX,RDX SHR RCX,0x20 JNZ 0x00141eb4 ADD RDX,RAX CMP RDX,qword ptr [R12 + 0x10] JBE 0x00141e08 MOV RDI,RBX MOV RSI,R9 MOV RBX,R9 CALL 0x00141c31 MOV R9,RBX MOV RBX,RAX LAB_00141e08: TEST RBX,RBX JS 0x00141eb4 LAB_00141e11: MOV RCX,qword ptr [R15 + -0x10] MOV RDX,qword ptr [R15 + -0x8] XOR EDI,EDI MOV RAX,RDX OR RAX,RCX MOV RSI,qword ptr [R15 + -0x20] CMOVZ RCX,RSI MOV RAX,qword ptr [R12 + 0x20] CMOVZ RDX,qword ptr [R15 + -0x18] MOV R14,qword ptr [RAX + 0x48] MOV R8D,0x0 CMOVZ R8,R14 CMP R8,RCX SBB RDI,RDX MOV R12,qword ptr [R15 + -0x40] CMOVC RSI,R14 SUB R14,RSI CMP R14,R12 MOV R13,R12 CMOVC R13,R14 LEA RCX,[R12 + 0x1f] SHR RCX,0x5 LEA RCX,[RCX + RCX*0x2] SUB RBX,RCX JS 0x00141eaf MOV R15,qword ptr [R15] TEST R13,R13 JZ 0x00141e8e MOV RDI,qword ptr [R9] ADD RDI,R15 ADD RSI,qword ptr [RAX + 0x40] MOV RDX,R13 MOV RBP,R9 CALL 0x00122090 MOV R9,RBP LAB_00141e8e: XOR EBP,EBP CMP R12,R14 JBE 0x00141eb4 ADD R15,qword ptr [R9] ADD R15,R13 SUB R12,R13 XOR EBP,EBP MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 CALL 0x00122190 JMP 0x00141eb4 LAB_00141eaf: MOV EBP,0x3 LAB_00141eb4: MOV EAX,EBP MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* evmone::instr::core::calldatacopy(evmone::StackTop, long, evmone::ExecutionState&) */ int1 [16] evmone::instr::core::calldatacopy(ulong *param_1,long param_2,long param_3) { Memory *pMVar1; ulong uVar2; bool bVar3; bool bVar4; ulong uVar5; ulong uVar6; int8 uVar7; ulong uVar8; ulong uVar9; ulong uVar10; int1 auVar11 [16]; pMVar1 = (Memory *)(param_3 + 8); if (*(int1 (*) [16])(param_1 + -6) != (int1 [16])0x0 || *(int1 (*) [16])(param_1 + -8) != (int1 [16])0x0) { uVar7 = 3; if (((((param_1[-6] != 0 || param_1[-5] != 0) || param_1[-7] != 0) || (param_1[-8] >> 0x20 != 0) ) || ((param_1[2] != 0 || param_1[3] != 0) || param_1[1] != 0)) || (*param_1 >> 0x20 != 0)) goto LAB_00141eb4; uVar5 = *param_1 + param_1[-8]; if (*(ulong *)(param_3 + 0x10) < uVar5) { param_2 = grow_memory(param_2,pMVar1,uVar5); } if (param_2 < 0) goto LAB_00141eb4; } bVar3 = param_1[-1] == 0; bVar4 = param_1[-2] == 0; uVar5 = param_1[-2]; if (bVar3 && bVar4) { uVar5 = param_1[-4]; } uVar6 = param_1[-1]; if (bVar3 && bVar4) { uVar6 = param_1[-3]; } uVar10 = *(ulong *)(*(long *)(param_3 + 0x20) + 0x48); uVar9 = 0; if (bVar3 && bVar4) { uVar9 = uVar10; } uVar2 = param_1[-8]; uVar8 = param_1[-4]; if (uVar6 != 0 || -uVar6 < (ulong)(uVar9 < uVar5)) { uVar8 = uVar10; } uVar10 = uVar10 - uVar8; uVar5 = uVar2; if (uVar10 < uVar2) { uVar5 = uVar10; } param_2 = param_2 + (uVar2 + 0x1f >> 5) * -3; if (param_2 < 0) { uVar7 = 3; } else { uVar6 = *param_1; if (uVar5 != 0) { memcpy((void *)(*(long *)pMVar1 + uVar6), (void *)(uVar8 + *(long *)(*(long *)(param_3 + 0x20) + 0x40)),uVar5); } uVar7 = 0; if (uVar10 < uVar2) { uVar7 = 0; memset((void *)(uVar6 + *(long *)pMVar1 + uVar5),0,uVar2 - uVar5); } } LAB_00141eb4: auVar11._8_8_ = param_2; auVar11._0_8_ = uVar7; return auVar11; }
41,978
js_os_close
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_close(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int fd, ret; if (JS_ToInt32(ctx, &fd, argv[0])) return JS_EXCEPTION; ret = js_get_errno(close(fd)); return JS_NewInt32(ctx, ret); }
O0
c
js_os_close: subq $0x68, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq %r8, 0x10(%rsp) movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rax movq (%rax), %rdx movq 0x8(%rax), %rcx leaq 0xc(%rsp), %rsi callq 0x37c60 cmpl $0x0, %eax je 0x169df movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0x16a2b movl 0xc(%rsp), %edi callq 0xe390 movslq %eax, %rdi callq 0x12790 movl %eax, 0x8(%rsp) movq 0x20(%rsp), %rcx movl 0x8(%rsp), %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) movl 0x4c(%rsp), %eax movl %eax, 0x58(%rsp) movq $0x0, 0x60(%rsp) movq 0x58(%rsp), %rcx movq 0x60(%rsp), %rax movq %rcx, 0x38(%rsp) movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x68, %rsp retq nopw (%rax,%rax)
js_os_close: sub rsp, 68h mov [rsp+68h+var_40], rsi mov [rsp+68h+var_38], rdx mov [rsp+68h+var_48], rdi mov [rsp+68h+var_4C], ecx mov [rsp+68h+var_58], r8 mov rdi, [rsp+68h+var_48] mov rax, [rsp+68h+var_58] mov rdx, [rax] mov rcx, [rax+8] lea rsi, [rsp+68h+var_5C] call JS_ToInt32 cmp eax, 0 jz short loc_169DF mov dword ptr [rsp+68h+var_30], 0 mov [rsp+68h+var_28], 6 jmp short loc_16A2B loc_169DF: mov edi, [rsp+68h+var_5C] call _close movsxd rdi, eax call js_get_errno mov [rsp+68h+var_60], eax mov rcx, [rsp+68h+var_48] mov eax, [rsp+68h+var_60] mov [rsp+68h+var_18], rcx mov [rsp+68h+var_1C], eax mov eax, [rsp+68h+var_1C] mov dword ptr [rsp+68h+var_10], eax mov [rsp+68h+var_8], 0 mov rcx, [rsp+68h+var_10] mov rax, [rsp+68h+var_8] mov [rsp+68h+var_30], rcx mov [rsp+68h+var_28], rax loc_16A2B: mov rax, [rsp+68h+var_30] mov rdx, [rsp+68h+var_28] add rsp, 68h retn
long long js_os_close(long long a1, long long a2, long long a3, int a4, _QWORD *a5) { int v5; // eax int errno; // [rsp+8h] [rbp-60h] unsigned int v8; // [rsp+Ch] [rbp-5Ch] BYREF _QWORD *v9; // [rsp+10h] [rbp-58h] int v10; // [rsp+1Ch] [rbp-4Ch] long long v11; // [rsp+20h] [rbp-48h] long long v12; // [rsp+28h] [rbp-40h] long long v13; // [rsp+30h] [rbp-38h] long long v14; // [rsp+38h] [rbp-30h] long long v15; // [rsp+40h] [rbp-28h] int v16; // [rsp+4Ch] [rbp-1Ch] long long v17; // [rsp+50h] [rbp-18h] long long v18; // [rsp+58h] [rbp-10h] long long v19; // [rsp+60h] [rbp-8h] v12 = a2; v13 = a3; v11 = a1; v10 = a4; v9 = a5; if ( (unsigned int)JS_ToInt32(a1, &v8, *a5, a5[1]) ) { LODWORD(v14) = 0; v15 = 6LL; } else { v5 = close(v8); errno = js_get_errno(v5); v17 = v11; v16 = errno; LODWORD(v18) = errno; v19 = 0LL; v14 = v18; v15 = 0LL; } return v14; }
js_os_close: SUB RSP,0x68 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV qword ptr [RSP + 0x10],R8 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x10] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0xc] CALL 0x00137c60 CMP EAX,0x0 JZ 0x001169df MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x00116a2b LAB_001169df: MOV EDI,dword ptr [RSP + 0xc] CALL 0x0010e390 MOVSXD RDI,EAX CALL 0x00112790 MOV dword ptr [RSP + 0x8],EAX MOV RCX,qword ptr [RSP + 0x20] MOV EAX,dword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x50],RCX MOV dword ptr [RSP + 0x4c],EAX MOV EAX,dword ptr [RSP + 0x4c] MOV dword ptr [RSP + 0x58],EAX MOV qword ptr [RSP + 0x60],0x0 MOV RCX,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x38],RCX MOV qword ptr [RSP + 0x40],RAX LAB_00116a2b: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x68 RET
int1 [16] js_os_close(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; int local_5c; int8 *local_58; int4 local_4c; int8 local_48; int8 local_40; int8 local_38; int4 local_30; int4 uStack_2c; int8 local_28; int4 uStack_c; local_58 = param_5; local_4c = param_4; local_48 = param_1; local_40 = param_2; local_38 = param_3; iVar2 = JS_ToInt32(param_1,&local_5c,*param_5,param_5[1]); if (iVar2 == 0) { iVar2 = close(local_5c); local_30 = js_get_errno((long)iVar2); uStack_2c = uStack_c; local_28 = 0; } else { local_30 = 0; local_28 = 6; } auVar1._4_4_ = uStack_2c; auVar1._0_4_ = local_30; auVar1._8_8_ = local_28; return auVar1; }
41,979
js_os_close
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_close(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int fd, ret; if (JS_ToInt32(ctx, &fd, argv[0])) return JS_EXCEPTION; ret = js_get_errno(close(fd)); return JS_NewInt32(ctx, ret); }
O3
c
js_os_close: pushq %rax movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0x4(%rsp), %rsi callq 0x273ff testl %eax, %eax je 0x1868f movl $0x6, %edx xorl %eax, %eax jmp 0x186ad movl 0x4(%rsp), %edi callq 0xe390 cmpl $-0x1, %eax jne 0x186a9 callq 0xe0b0 movq %rax, %rcx xorl %eax, %eax subl (%rcx), %eax movl %eax, %eax xorl %edx, %edx popq %rcx retq
js_os_close: push rax mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+8+var_4] call JS_ToInt32 test eax, eax jz short loc_1868F mov edx, 6 xor eax, eax jmp short loc_186AD loc_1868F: mov edi, [rsp+8+var_4] call _close cmp eax, 0FFFFFFFFh jnz short loc_186A9 call ___errno_location mov rcx, rax xor eax, eax sub eax, [rcx] loc_186A9: mov eax, eax xor edx, edx loc_186AD: pop rcx retn
long long js_os_close(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long v5; // rax long long result; // rax long long v7; // rdi unsigned int v8; // [rsp+0h] [rbp-4h] BYREF v8 = HIDWORD(v5); if ( (unsigned int)JS_ToInt32(a1, &v8, *a5, a5[1]) ) return 0LL; v7 = v8; LODWORD(result) = close(v8); if ( (_DWORD)result == -1 ) LODWORD(result) = -*(_DWORD *)__errno_location(v7); return (unsigned int)result; }
js_os_close: PUSH RAX MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0x4] CALL 0x001273ff TEST EAX,EAX JZ 0x0011868f MOV EDX,0x6 XOR EAX,EAX JMP 0x001186ad LAB_0011868f: MOV EDI,dword ptr [RSP + 0x4] CALL 0x0010e390 CMP EAX,-0x1 JNZ 0x001186a9 CALL 0x0010e0b0 MOV RCX,RAX XOR EAX,EAX SUB EAX,dword ptr [RCX] LAB_001186a9: MOV EAX,EAX XOR EDX,EDX LAB_001186ad: POP RCX RET
int js_os_close(int8 param_1) { int iVar1; int8 in_RAX; int *piVar2; int8 *in_R8; int local_4; local_4 = (int)((ulong)in_RAX >> 0x20); iVar1 = JS_ToInt32(param_1,&local_4,*in_R8,in_R8[1]); if (iVar1 == 0) { iVar1 = close(local_4); if (iVar1 == -1) { piVar2 = __errno_location(); iVar1 = -*piVar2; } } else { iVar1 = 0; } return iVar1; }
41,980
ma_check_index_cond
eloqsql/storage/maria/ma_key.c
check_result_t ma_check_index_cond(register MARIA_HA *info, uint keynr, uchar *record) { check_result_t res= CHECK_POS; if (info->index_cond_func) { if (_ma_put_key_in_record(info, keynr, FALSE, record)) { /* Impossible case; Can only happen if bug in code */ _ma_print_error(info, HA_ERR_CRASHED, 0); info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_CRASHED; res= CHECK_ERROR; } else if ((res= info->index_cond_func(info->index_cond_func_arg)) == CHECK_OUT_OF_RANGE) { /* We got beyond the end of scanned range */ info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_END_OF_FILE; } } return res; }
O0
c
ma_check_index_cond: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl $0x1, -0x1c(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x6f8(%rax) je 0x35254 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi movq -0x18(%rbp), %rcx xorl %edx, %edx callq 0x34b60 cmpl $0x0, %eax je 0x35216 movq -0x8(%rbp), %rdi movl $0x7e, %esi xorl %edx, %edx callq 0x33800 movq -0x8(%rbp), %rax movq $-0x1, 0x98(%rax) callq 0xf60c0 movl $0x7e, (%rax) movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF jmp 0x35252 movq -0x8(%rbp), %rax movq 0x6f8(%rax), %rax movq -0x8(%rbp), %rcx movq 0x700(%rcx), %rdi callq *%rax movl %eax, -0x1c(%rbp) cmpl $0x2, %eax jne 0x35250 movq -0x8(%rbp), %rax movq $-0x1, 0x98(%rax) callq 0xf60c0 movl $0x89, (%rax) jmp 0x35252 jmp 0x35254 movl -0x1c(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
ma_check_index_cond: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], 1 mov rax, [rbp+var_8] cmp qword ptr [rax+6F8h], 0 jz loc_35254 mov rdi, [rbp+var_8] mov esi, [rbp+var_C] mov rcx, [rbp+var_18] xor edx, edx call _ma_put_key_in_record cmp eax, 0 jz short loc_35216 mov rdi, [rbp+var_8] mov esi, 7Eh ; '~' xor edx, edx call _ma_print_error mov rax, [rbp+var_8] mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_1C], 0FFFFFFFFh jmp short loc_35252 loc_35216: mov rax, [rbp+var_8] mov rax, [rax+6F8h] mov rcx, [rbp+var_8] mov rdi, [rcx+700h] call rax mov [rbp+var_1C], eax cmp eax, 2 jnz short loc_35250 mov rax, [rbp+var_8] mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh call _my_thread_var mov dword ptr [rax], 89h loc_35250: jmp short $+2 loc_35252: jmp short $+2 loc_35254: mov eax, [rbp+var_1C] add rsp, 20h pop rbp retn
long long ma_check_index_cond(long long a1, unsigned int a2, long long a3) { long long v3; // rcx long long v4; // r8 int v5; // r9d unsigned int v7; // [rsp+4h] [rbp-1Ch] v7 = 1; if ( *(_QWORD *)(a1 + 1784) ) { if ( (unsigned int)ma_put_key_in_record(a1, a2, 0, a3) ) { ma_print_error((_DWORD *)a1, 126, 0, v3, v4, v5); *(_QWORD *)(a1 + 152) = -1LL; *(_DWORD *)my_thread_var() = 126; return (unsigned int)-1; } else { v7 = (*(long long ( **)(_QWORD))(a1 + 1784))(*(_QWORD *)(a1 + 1792)); if ( v7 == 2 ) { *(_QWORD *)(a1 + 152) = -1LL; *(_DWORD *)my_thread_var() = 137; } } } return v7; }
ma_check_index_cond: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],0x1 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x6f8],0x0 JZ 0x00135254 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x18] XOR EDX,EDX CALL 0x00134b60 CMP EAX,0x0 JZ 0x00135216 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x7e XOR EDX,EDX CALL 0x00133800 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],-0x1 CALL 0x001f60c0 MOV dword ptr [RAX],0x7e MOV dword ptr [RBP + -0x1c],0xffffffff JMP 0x00135252 LAB_00135216: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x6f8] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x700] CALL RAX MOV dword ptr [RBP + -0x1c],EAX CMP EAX,0x2 JNZ 0x00135250 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],-0x1 CALL 0x001f60c0 MOV dword ptr [RAX],0x89 LAB_00135250: JMP 0x00135252 LAB_00135252: JMP 0x00135254 LAB_00135254: MOV EAX,dword ptr [RBP + -0x1c] ADD RSP,0x20 POP RBP RET
int ma_check_index_cond(long param_1,int4 param_2,int8 param_3) { int iVar1; int4 *puVar2; int4 local_24; local_24 = 1; if (*(long *)(param_1 + 0x6f8) != 0) { iVar1 = _ma_put_key_in_record(param_1,param_2,0,param_3); if (iVar1 == 0) { local_24 = (**(code **)(param_1 + 0x6f8))(*(int8 *)(param_1 + 0x700)); if (local_24 == 2) { *(int8 *)(param_1 + 0x98) = 0xffffffffffffffff; puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x89; } } else { _ma_print_error(param_1,0x7e,0); *(int8 *)(param_1 + 0x98) = 0xffffffffffffffff; puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_24 = -1; } } return local_24; }
41,981
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [3], 0>(char const (&) [3]) const
monkey531[P]llama/common/json.hpp
constexpr bool is_object() const noexcept { return m_data.m_type == value_t::object; }
O3
cpp
bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [3], 0>(char const (&) [3]) const: cmpb $0x1, (%rdi) jne 0xaa62d pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movq 0x8(%rdi), %r12 movq (%r12), %rbx cmpq 0x8(%r12), %rbx je 0xaa630 movq %rsi, %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x1b230 testl %eax, %eax je 0xaa620 addq $0x30, %rbx cmpq 0x8(%r12), %rbx jne 0xaa606 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx jmp 0xaa633 xorl %eax, %eax retq movq %rbx, %rax cmpq %rbx, %rax setne %al addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_: cmp byte ptr [rdi], 1 jnz short loc_AA62D push r15 push r14 push r12 push rbx push rax mov r14, rdi mov r12, [rdi+8] mov rbx, [r12] cmp rbx, [r12+8] jz short loc_AA630 mov r15, rsi loc_AA606: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_AA620 add rbx, 30h ; '0' cmp rbx, [r12+8] jnz short loc_AA606 loc_AA620: mov rax, rbx mov rcx, [r14+8] mov rbx, [rcx+8] jmp short loc_AA633 loc_AA62D: xor eax, eax retn loc_AA630: mov rax, rbx loc_AA633: cmp rax, rbx setnz al add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_( long long a1, long long a2) { long long *v2; // r12 long long v3; // rbx long long v4; // rax if ( *(_BYTE *)a1 != 1 ) return 0; v2 = *(long long **)(a1 + 8); v3 = *v2; if ( *v2 == v2[1] ) { v4 = *v2; } else { do { if ( !(unsigned int)std::string::compare(v3, a2) ) break; v3 += 48LL; } while ( v3 != v2[1] ); v4 = v3; v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL); } return v4 != v3; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_: CMP byte ptr [RDI],0x1 JNZ 0x001aa62d PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOV R12,qword ptr [RDI + 0x8] MOV RBX,qword ptr [R12] CMP RBX,qword ptr [R12 + 0x8] JZ 0x001aa630 MOV R15,RSI LAB_001aa606: MOV RDI,RBX MOV RSI,R15 CALL 0x0011b230 TEST EAX,EAX JZ 0x001aa620 ADD RBX,0x30 CMP RBX,qword ptr [R12 + 0x8] JNZ 0x001aa606 LAB_001aa620: MOV RAX,RBX MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] JMP 0x001aa633 LAB_001aa62d: XOR EAX,EAX RET LAB_001aa630: MOV RAX,RBX LAB_001aa633: CMP RAX,RBX SETNZ AL ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
int8 _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA13_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_ (char *param_1) { long *plVar1; int iVar2; char *pcVar3; char *pcVar4; if (*param_1 != '\x01') { return 0; } plVar1 = *(long **)(param_1 + 8); pcVar3 = (char *)*plVar1; pcVar4 = pcVar3; if (pcVar3 != (char *)plVar1[1]) { do { iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar3 = pcVar3 + 0x30; } while (pcVar3 != (char *)plVar1[1]); pcVar4 = *(char **)(*(long *)(param_1 + 8) + 8); } return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != pcVar4); }
41,982
ma_multi_malloc
eloqsql/libmariadb/libmariadb/ma_alloc.c
void *ma_multi_malloc(myf myFlags, ...) { va_list args; char **ptr,*start,*res; size_t tot_length,length; va_start(args,myFlags); tot_length=0; while ((ptr=va_arg(args, char **))) { length=va_arg(args, size_t); tot_length+=ALIGN_SIZE(length); } va_end(args); if (!(start=(char *)malloc(tot_length))) return 0; va_start(args,myFlags); res=start; while ((ptr=va_arg(args, char **))) { *ptr=res; length=va_arg(args,size_t); res+=ALIGN_SIZE(length); } va_end(args); return start; }
O0
c
ma_multi_malloc: pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 testb %al, %al je 0x2cd11 movaps %xmm0, -0xe0(%rbp) movaps %xmm1, -0xd0(%rbp) movaps %xmm2, -0xc0(%rbp) movaps %xmm3, -0xb0(%rbp) movaps %xmm4, -0xa0(%rbp) movaps %xmm5, -0x90(%rbp) movaps %xmm6, -0x80(%rbp) movaps %xmm7, -0x70(%rbp) movq %r9, -0xe8(%rbp) movq %r8, -0xf0(%rbp) movq %rcx, -0xf8(%rbp) movq %rdx, -0x100(%rbp) movq %rsi, -0x108(%rbp) movl %edi, -0xc(%rbp) leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq $0x0, -0x50(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x120(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x114(%rbp) cmpl $0x28, %eax ja 0x2cd9e movq -0x120(%rbp), %rcx movl -0x114(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x128(%rbp) jmp 0x2cdbb movq -0x120(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x128(%rbp) movq -0x128(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0x2ce56 leaq -0x30(%rbp), %rax movq %rax, -0x138(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x12c(%rbp) cmpl $0x28, %eax ja 0x2ce0e movq -0x138(%rbp), %rcx movl -0x12c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x140(%rbp) jmp 0x2ce2b movq -0x138(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x140(%rbp) movq -0x140(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x50(%rbp), %rax movq %rax, -0x50(%rbp) jmp 0x2cd63 leaq -0x30(%rbp), %rax movq -0x50(%rbp), %rdi callq 0x135b0 movq %rax, -0x40(%rbp) cmpq $0x0, %rax jne 0x2ce7a movq $0x0, -0x8(%rbp) jmp 0x2cfb0 leaq -0x30(%rbp), %rax leaq -0x110(%rbp), %rcx movq %rcx, 0x10(%rax) leaq 0x10(%rbp), %rcx movq %rcx, 0x8(%rax) movl $0x30, 0x4(%rax) movl $0x8, (%rax) movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x150(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x144(%rbp) cmpl $0x28, %eax ja 0x2cee1 movq -0x150(%rbp), %rcx movl -0x144(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x158(%rbp) jmp 0x2cefe movq -0x150(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x158(%rbp) movq -0x158(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) cmpq $0x0, %rax je 0x2cfa4 movq -0x48(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, (%rax) leaq -0x30(%rbp), %rax movq %rax, -0x168(%rbp) movl -0x30(%rbp), %eax movl %eax, -0x15c(%rbp) cmpl $0x28, %eax ja 0x2cf5c movq -0x168(%rbp), %rcx movl -0x15c(%rbp), %edx movslq %edx, %rax addq 0x10(%rcx), %rax addl $0x8, %edx movl %edx, (%rcx) movq %rax, -0x170(%rbp) jmp 0x2cf79 movq -0x168(%rbp), %rcx movq 0x8(%rcx), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, 0x8(%rcx) movq %rax, -0x170(%rbp) movq -0x170(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax addq -0x48(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0x2cea6 leaq -0x30(%rbp), %rax movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x170, %rsp # imm = 0x170 popq %rbp retq nopl (%rax)
ma_multi_malloc: push rbp mov rbp, rsp sub rsp, 170h test al, al jz short loc_2CD11 movaps [rbp+var_E0], xmm0 movaps [rbp+var_D0], xmm1 movaps [rbp+var_C0], xmm2 movaps [rbp+var_B0], xmm3 movaps [rbp+var_A0], xmm4 movaps [rbp+var_90], xmm5 movaps [rbp+var_80], xmm6 movaps [rbp+var_70], xmm7 loc_2CD11: mov [rbp+var_E8], r9 mov [rbp+var_F0], r8 mov [rbp+var_F8], rcx mov [rbp+var_100], rdx mov [rbp+var_108], rsi mov [rbp+var_C], edi lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov [rbp+var_50], 0 loc_2CD63: lea rax, [rbp+var_30] mov [rbp+var_120], rax mov eax, [rbp+var_30] mov [rbp+var_114], eax cmp eax, 28h ; '(' ja short loc_2CD9E mov rcx, [rbp+var_120] mov edx, [rbp+var_114] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_128], rax jmp short loc_2CDBB loc_2CD9E: mov rcx, [rbp+var_120] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_128], rax loc_2CDBB: mov rax, [rbp+var_128] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_2CE56 lea rax, [rbp+var_30] mov [rbp+var_138], rax mov eax, [rbp+var_30] mov [rbp+var_12C], eax cmp eax, 28h ; '(' ja short loc_2CE0E mov rcx, [rbp+var_138] mov edx, [rbp+var_12C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_140], rax jmp short loc_2CE2B loc_2CE0E: mov rcx, [rbp+var_138] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_140], rax loc_2CE2B: mov rax, [rbp+var_140] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_50] mov [rbp+var_50], rax jmp loc_2CD63 loc_2CE56: lea rax, [rbp+var_30] mov rdi, [rbp+var_50] call _malloc mov [rbp+var_40], rax cmp rax, 0 jnz short loc_2CE7A mov [rbp+var_8], 0 jmp loc_2CFB0 loc_2CE7A: lea rax, [rbp+var_30] lea rcx, [rbp+var_110] mov [rax+10h], rcx lea rcx, [rbp+arg_0] mov [rax+8], rcx mov dword ptr [rax+4], 30h ; '0' mov dword ptr [rax], 8 mov rax, [rbp+var_40] mov [rbp+var_48], rax loc_2CEA6: lea rax, [rbp+var_30] mov [rbp+var_150], rax mov eax, [rbp+var_30] mov [rbp+var_144], eax cmp eax, 28h ; '(' ja short loc_2CEE1 mov rcx, [rbp+var_150] mov edx, [rbp+var_144] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_158], rax jmp short loc_2CEFE loc_2CEE1: mov rcx, [rbp+var_150] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_158], rax loc_2CEFE: mov rax, [rbp+var_158] mov rax, [rax] mov [rbp+var_38], rax cmp rax, 0 jz loc_2CFA4 mov rcx, [rbp+var_48] mov rax, [rbp+var_38] mov [rax], rcx lea rax, [rbp+var_30] mov [rbp+var_168], rax mov eax, [rbp+var_30] mov [rbp+var_15C], eax cmp eax, 28h ; '(' ja short loc_2CF5C mov rcx, [rbp+var_168] mov edx, [rbp+var_15C] movsxd rax, edx add rax, [rcx+10h] add edx, 8 mov [rcx], edx mov [rbp+var_170], rax jmp short loc_2CF79 loc_2CF5C: mov rcx, [rbp+var_168] mov rax, [rcx+8] mov rdx, rax add rdx, 8 mov [rcx+8], rdx mov [rbp+var_170], rax loc_2CF79: mov rax, [rbp+var_170] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h add rax, [rbp+var_48] mov [rbp+var_48], rax jmp loc_2CEA6 loc_2CFA4: lea rax, [rbp+var_30] mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_2CFB0: mov rax, [rbp+var_8] add rsp, 170h pop rbp retn
long long ma_multi_malloc(int a1, ...) { _QWORD *overflow_arg_area; // rax _QWORD *v2; // rax _QWORD *v3; // rax _QWORD *v4; // rax long long i; // [rsp+120h] [rbp-50h] long long j; // [rsp+128h] [rbp-48h] long long v8; // [rsp+130h] [rbp-40h] va_list va; // [rsp+140h] [rbp-30h] BYREF int v10; // [rsp+164h] [rbp-Ch] va_start(va, a1); v10 = a1; for ( i = 0LL; ; i += (*v2 + 7LL) & 0xFFFFFFFFFFFFFFF8LL ) { if ( va[0].gp_offset > 0x28 ) { overflow_arg_area = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { overflow_arg_area = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } if ( !*overflow_arg_area ) break; if ( va[0].gp_offset > 0x28 ) { v2 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v2 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } } v8 = malloc(i); if ( !v8 ) return 0LL; va_end(va); va_start(va, a1); for ( j = v8; ; j += (*v4 + 7LL) & 0xFFFFFFFFFFFFFFF8LL ) { if ( va[0].gp_offset > 0x28 ) { v3 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v3 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } if ( !*v3 ) break; *(_QWORD *)*v3 = j; if ( va[0].gp_offset > 0x28 ) { v4 = va[0].overflow_arg_area; va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8; } else { v4 = (char *)va[0].reg_save_area + (int)va[0].gp_offset; va[0].gp_offset += 8; } } return v8; }
ma_multi_malloc: PUSH RBP MOV RBP,RSP SUB RSP,0x170 TEST AL,AL JZ 0x0012cd11 MOVAPS xmmword ptr [RBP + -0xe0],XMM0 MOVAPS xmmword ptr [RBP + -0xd0],XMM1 MOVAPS xmmword ptr [RBP + -0xc0],XMM2 MOVAPS xmmword ptr [RBP + -0xb0],XMM3 MOVAPS xmmword ptr [RBP + -0xa0],XMM4 MOVAPS xmmword ptr [RBP + -0x90],XMM5 MOVAPS xmmword ptr [RBP + -0x80],XMM6 MOVAPS xmmword ptr [RBP + -0x70],XMM7 LAB_0012cd11: MOV qword ptr [RBP + -0xe8],R9 MOV qword ptr [RBP + -0xf0],R8 MOV qword ptr [RBP + -0xf8],RCX MOV qword ptr [RBP + -0x100],RDX MOV qword ptr [RBP + -0x108],RSI MOV dword ptr [RBP + -0xc],EDI LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV qword ptr [RBP + -0x50],0x0 LAB_0012cd63: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x120],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x114],EAX CMP EAX,0x28 JA 0x0012cd9e MOV RCX,qword ptr [RBP + -0x120] MOV EDX,dword ptr [RBP + -0x114] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x128],RAX JMP 0x0012cdbb LAB_0012cd9e: MOV RCX,qword ptr [RBP + -0x120] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x128],RAX LAB_0012cdbb: MOV RAX,qword ptr [RBP + -0x128] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x0012ce56 LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x138],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x12c],EAX CMP EAX,0x28 JA 0x0012ce0e MOV RCX,qword ptr [RBP + -0x138] MOV EDX,dword ptr [RBP + -0x12c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x140],RAX JMP 0x0012ce2b LAB_0012ce0e: MOV RCX,qword ptr [RBP + -0x138] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x140],RAX LAB_0012ce2b: MOV RAX,qword ptr [RBP + -0x140] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x50],RAX JMP 0x0012cd63 LAB_0012ce56: LEA RAX,[RBP + -0x30] MOV RDI,qword ptr [RBP + -0x50] CALL 0x001135b0 MOV qword ptr [RBP + -0x40],RAX CMP RAX,0x0 JNZ 0x0012ce7a MOV qword ptr [RBP + -0x8],0x0 JMP 0x0012cfb0 LAB_0012ce7a: LEA RAX,[RBP + -0x30] LEA RCX,[RBP + -0x110] MOV qword ptr [RAX + 0x10],RCX LEA RCX,[RBP + 0x10] MOV qword ptr [RAX + 0x8],RCX MOV dword ptr [RAX + 0x4],0x30 MOV dword ptr [RAX],0x8 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX LAB_0012cea6: LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x150],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x144],EAX CMP EAX,0x28 JA 0x0012cee1 MOV RCX,qword ptr [RBP + -0x150] MOV EDX,dword ptr [RBP + -0x144] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x158],RAX JMP 0x0012cefe LAB_0012cee1: MOV RCX,qword ptr [RBP + -0x150] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x158],RAX LAB_0012cefe: MOV RAX,qword ptr [RBP + -0x158] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JZ 0x0012cfa4 MOV RCX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],RCX LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x168],RAX MOV EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x15c],EAX CMP EAX,0x28 JA 0x0012cf5c MOV RCX,qword ptr [RBP + -0x168] MOV EDX,dword ptr [RBP + -0x15c] MOVSXD RAX,EDX ADD RAX,qword ptr [RCX + 0x10] ADD EDX,0x8 MOV dword ptr [RCX],EDX MOV qword ptr [RBP + -0x170],RAX JMP 0x0012cf79 LAB_0012cf5c: MOV RCX,qword ptr [RBP + -0x168] MOV RAX,qword ptr [RCX + 0x8] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RBP + -0x170],RAX LAB_0012cf79: MOV RAX,qword ptr [RBP + -0x170] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 ADD RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x48],RAX JMP 0x0012cea6 LAB_0012cfa4: LEA RAX,[RBP + -0x30] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_0012cfb0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x170 POP RBP RET
/* WARNING: Restarted to delay deadcode elimination for space: stack */ void * ma_multi_malloc(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int4 param_9,int8 param_10,int8 param_11,int8 param_12 ,int8 param_13,int8 param_14) { char in_AL; long *local_178; long *local_160; long *local_148; long *local_130; long local_118 [4]; int8 local_f8; int8 local_f0; int8 local_e8; int8 local_d8; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; long local_60; size_t local_58; void *local_50; long local_40; uint local_38; int4 local_34; long *local_30; long *local_28; int4 local_14; void *local_10; if (in_AL != '\0') { local_e8 = param_1; local_d8 = param_2; local_c8 = param_3; local_b8 = param_4; local_a8 = param_5; local_98 = param_6; local_88 = param_7; local_78 = param_8; } local_28 = local_118; local_30 = (long *)&stack0x00000008; local_34 = 0x30; local_38 = 8; local_58 = 0; while( true ) { if (local_38 < 0x29) { local_130 = (long *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_130 = local_30; local_30 = local_30 + 1; } local_40 = *local_130; if (local_40 == 0) break; if (local_38 < 0x29) { local_148 = (long *)((long)local_28 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_148 = local_30; local_30 = local_30 + 1; } local_60 = *local_148; local_58 = (local_60 + 7U & 0xfffffffffffffff8) + local_58; } local_118[1] = param_10; local_118[2] = param_11; local_118[3] = param_12; local_f8 = param_13; local_f0 = param_14; local_14 = param_9; local_10 = malloc(local_58); if (local_10 == (void *)0x0) { local_10 = (void *)0x0; } else { local_30 = (long *)&stack0x00000008; local_38 = 8; local_50 = local_10; while( true ) { if (local_38 < 0x29) { local_160 = (long *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_160 = local_30; local_30 = local_30 + 1; } if ((int8 *)*local_160 == (int8 *)0x0) break; *(int8 *)*local_160 = local_50; if (local_38 < 0x29) { local_178 = (long *)((long)local_118 + (long)(int)local_38); local_38 = local_38 + 8; } else { local_178 = local_30; local_30 = local_30 + 1; } local_50 = (void *)((*local_178 + 7U & 0xfffffffffffffff8) + (long)local_50); } } return local_10; }
41,983
multadd
eloqsql/strings/dtoa.c
static Bigint *multadd(Bigint *b, int m, int a, Stack_alloc *alloc) { int i, wds; ULong *x; ULLong carry, y; Bigint *b1; wds= b->wds; x= b->p.x; i= 0; carry= a; do { y= *x * (ULLong)m + carry; carry= y >> 32; *x++= (ULong)(y & FFFFFFFF); } while (++i < wds); if (carry) { if (wds >= b->maxwds) { b1= Balloc(b->k+1, alloc); Bcopy(b1, b); Bfree(b, alloc); b= b1; } b->p.x[wds++]= (ULong) carry; b->wds= wds; } return b; }
O0
c
multadd: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x20(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movl $0x0, -0x1c(%rbp) movslq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rax movl (%rax), %eax movslq -0xc(%rbp), %rcx imulq %rcx, %rax addq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax shrq $0x20, %rax movq %rax, -0x30(%rbp) movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq -0x38(%rbp), %rax movl %eax, %ecx movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x4, %rdx movq %rdx, -0x28(%rbp) movl %ecx, (%rax) movl -0x1c(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) cmpl -0x20(%rbp), %eax jl 0x878aa cmpq $0x0, -0x30(%rbp) je 0x8798b movl -0x20(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0xc(%rcx), %eax jl 0x87963 movq -0x8(%rbp), %rax movl 0x8(%rax), %edi addl $0x1, %edi movq -0x18(%rbp), %rsi callq 0x86be0 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi addq $0x10, %rdi movq -0x8(%rbp), %rsi addq $0x10, %rsi movq -0x8(%rbp), %rax movslq 0x14(%rax), %rdx shlq $0x2, %rdx addq $0x8, %rdx callq 0x252a0 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x87290 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x30(%rbp), %rax movl %eax, %edx movq -0x8(%rbp), %rax movq (%rax), %rax movl -0x20(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x20(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0x20(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x14(%rax) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
multadd: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_18], rcx mov rax, [rbp+var_8] mov eax, [rax+14h] mov [rbp+var_20], eax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_28], rax mov [rbp+var_1C], 0 movsxd rax, [rbp+var_10] mov [rbp+var_30], rax loc_878AA: mov rax, [rbp+var_28] mov eax, [rax] movsxd rcx, [rbp+var_C] imul rax, rcx add rax, [rbp+var_30] mov [rbp+var_38], rax mov rax, [rbp+var_38] shr rax, 20h mov [rbp+var_30], rax mov rax, 0FFFFFFFFh and rax, [rbp+var_38] mov ecx, eax mov rax, [rbp+var_28] mov rdx, rax add rdx, 4 mov [rbp+var_28], rdx mov [rax], ecx mov eax, [rbp+var_1C] add eax, 1 mov [rbp+var_1C], eax cmp eax, [rbp+var_20] jl short loc_878AA cmp [rbp+var_30], 0 jz loc_8798B mov eax, [rbp+var_20] mov rcx, [rbp+var_8] cmp eax, [rcx+0Ch] jl short loc_87963 mov rax, [rbp+var_8] mov edi, [rax+8] add edi, 1 mov rsi, [rbp+var_18] call Balloc mov [rbp+var_40], rax mov rdi, [rbp+var_40] add rdi, 10h mov rsi, [rbp+var_8] add rsi, 10h mov rax, [rbp+var_8] movsxd rdx, dword ptr [rax+14h] shl rdx, 2 add rdx, 8 call _memcpy mov rdi, [rbp+var_8] mov rsi, [rbp+var_18] call Bfree mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_87963: mov rax, [rbp+var_30] mov edx, eax mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_20] mov esi, ecx add esi, 1 mov [rbp+var_20], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov ecx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+14h], ecx loc_8798B: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
unsigned long long multadd(unsigned long long a1, int a2, int a3, unsigned long long *a4) { unsigned int *v4; // rax long long v6; // [rsp+0h] [rbp-40h] unsigned long long v7; // [rsp+8h] [rbp-38h] unsigned long long v8; // [rsp+10h] [rbp-30h] unsigned int *v9; // [rsp+18h] [rbp-28h] int v10; // [rsp+20h] [rbp-20h] int v11; // [rsp+24h] [rbp-1Ch] unsigned long long v13; // [rsp+38h] [rbp-8h] v13 = a1; v10 = *(_DWORD *)(a1 + 20); v9 = *(unsigned int **)a1; v11 = 0; v8 = a3; do { v7 = v8 + a2 * (unsigned long long)*v9; v8 = HIDWORD(v7); v4 = v9++; *v4 = v7; ++v11; } while ( v11 < v10 ); if ( v8 ) { if ( v10 >= *(_DWORD *)(a1 + 12) ) { v6 = Balloc(*(_DWORD *)(a1 + 8) + 1, (long long)a4); memcpy(v6 + 16, a1 + 16, 4LL * *(int *)(a1 + 20) + 8); Bfree(a1, a4); v13 = v6; } *(_DWORD *)(*(_QWORD *)v13 + 4LL * v10) = HIDWORD(v7); *(_DWORD *)(v13 + 20) = v10 + 1; } return v13; }
multadd: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV qword ptr [RBP + -0x18],RCX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [RBP + -0x1c],0x0 MOVSXD RAX,dword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX LAB_001878aa: MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0xc] IMUL RAX,RCX ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x20 MOV qword ptr [RBP + -0x30],RAX MOV RAX,0xffffffff AND RAX,qword ptr [RBP + -0x38] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x4 MOV qword ptr [RBP + -0x28],RDX MOV dword ptr [RAX],ECX MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX CMP EAX,dword ptr [RBP + -0x20] JL 0x001878aa CMP qword ptr [RBP + -0x30],0x0 JZ 0x0018798b MOV EAX,dword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0xc] JL 0x00187963 MOV RAX,qword ptr [RBP + -0x8] MOV EDI,dword ptr [RAX + 0x8] ADD EDI,0x1 MOV RSI,qword ptr [RBP + -0x18] CALL 0x00186be0 MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x40] ADD RDI,0x10 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x10 MOV RAX,qword ptr [RBP + -0x8] MOVSXD RDX,dword ptr [RAX + 0x14] SHL RDX,0x2 ADD RDX,0x8 CALL 0x001252a0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00187290 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00187963: MOV RAX,qword ptr [RBP + -0x30] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x20] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x20],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV ECX,dword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],ECX LAB_0018798b: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long * multadd(long *param_1,int param_2,int param_3,int8 param_4) { int iVar1; ulong uVar2; ulong local_38; uint *local_30; int local_24; long *local_10; iVar1 = *(int *)((long)param_1 + 0x14); local_24 = 0; local_38 = (ulong)param_3; local_30 = (uint *)*param_1; do { uVar2 = (ulong)*local_30 * (long)param_2 + local_38; local_38 = uVar2 >> 0x20; *local_30 = (uint)uVar2; local_24 = local_24 + 1; local_30 = local_30 + 1; } while (local_24 < iVar1); local_10 = param_1; if (local_38 != 0) { if (*(int *)((long)param_1 + 0xc) <= iVar1) { local_10 = (long *)Balloc((int)param_1[1] + 1,param_4); memcpy(local_10 + 2,param_1 + 2,(long)*(int *)((long)param_1 + 0x14) * 4 + 8); Bfree(param_1,param_4); } *(int *)(*local_10 + (long)iVar1 * 4) = (int)(uVar2 >> 0x20); *(int *)((long)local_10 + 0x14) = iVar1 + 1; } return local_10; }
41,984
partitioned_key_cache_write
eloqsql/mysys/mf_keycache.c
static int partitioned_key_cache_write(PARTITIONED_KEY_CACHE_CB *keycache, File file, void *file_extra, my_off_t filepos, int level, uchar *buff, uint length, uint block_length __attribute__((unused)), int dont_write) { uint w_length; ulonglong *part_map= (ulonglong *) file_extra; uint offset= (uint) (filepos % keycache->key_cache_block_size); DBUG_ENTER("partitioned_key_cache_write"); DBUG_PRINT("enter", ("fd: %u pos: %lu length: %u block_length: %u" " key_block_length: %u", (uint) file, (ulong) filepos, length, block_length, keycache ? keycache->key_cache_block_size : 0)); /* Write data in key_cache_block_size increments */ do { SIMPLE_KEY_CACHE_CB *partition= get_key_cache_partition_for_write(keycache, file, filepos, part_map); w_length = length; set_if_smaller(w_length, keycache->key_cache_block_size - offset ); if (simple_key_cache_write(partition, file, 0, filepos, level, buff, w_length, block_length, dont_write)) DBUG_RETURN(1); filepos+= w_length; buff+= w_length; offset= 0; } while ((length-= w_length)); DBUG_RETURN(0); }
O0
c
partitioned_key_cache_write: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl 0x20(%rbp), %eax movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) movq %r9, -0x38(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x4c(%rbp) jmp 0xe8337 jmp 0xe8339 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x28(%rbp), %rdx movq -0x48(%rbp), %rcx callq 0xe87b0 movq %rax, -0x58(%rbp) movl 0x10(%rbp), %eax movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx subl -0x4c(%rbp), %ecx cmpl %ecx, %eax jbe 0xe8375 movq -0x10(%rbp), %rax movl 0x18(%rax), %eax subl -0x4c(%rbp), %eax movl %eax, -0x3c(%rbp) jmp 0xe8377 movq -0x58(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x28(%rbp), %rcx movl -0x2c(%rbp), %r8d movq -0x38(%rbp), %r9 movl -0x3c(%rbp), %r11d movl 0x18(%rbp), %r10d movl 0x20(%rbp), %eax xorl %edx, %edx movl %r11d, (%rsp) movl %r10d, 0x8(%rsp) movl %eax, 0x10(%rsp) callq 0xe6440 cmpl $0x0, %eax je 0xe83b9 jmp 0xe83b0 movl $0x1, -0x4(%rbp) jmp 0xe83f8 movl -0x3c(%rbp), %eax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) movl -0x3c(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x38(%rbp) movl $0x0, -0x4c(%rbp) movl -0x3c(%rbp), %ecx movl 0x10(%rbp), %eax subl %ecx, %eax movl %eax, 0x10(%rbp) cmpl $0x0, %eax jne 0xe8339 jmp 0xe83f1 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
partitioned_key_cache_write: push rbp mov rbp, rsp sub rsp, 70h mov eax, [rbp+arg_10] mov eax, [rbp+arg_8] mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_2C], r8d mov [rbp+var_38], r9 mov rax, [rbp+var_20] mov [rbp+var_48], rax mov rax, [rbp+var_28] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] xor edx, edx div rcx mov eax, edx mov [rbp+var_4C], eax jmp short $+2 loc_E8337: jmp short $+2 loc_E8339: mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov rdx, [rbp+var_28] mov rcx, [rbp+var_48] call get_key_cache_partition_for_write mov [rbp+var_58], rax mov eax, [rbp+arg_0] mov [rbp+var_3C], eax mov eax, [rbp+var_3C] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] sub ecx, [rbp+var_4C] cmp eax, ecx jbe short loc_E8375 mov rax, [rbp+var_10] mov eax, [rax+18h] sub eax, [rbp+var_4C] mov [rbp+var_3C], eax loc_E8375: jmp short $+2 loc_E8377: mov rdi, [rbp+var_58] mov esi, [rbp+var_14] mov rcx, [rbp+var_28] mov r8d, [rbp+var_2C] mov r9, [rbp+var_38] mov r11d, [rbp+var_3C] mov r10d, [rbp+arg_8] mov eax, [rbp+arg_10] xor edx, edx mov [rsp+70h+var_70], r11d mov [rsp+70h+var_68], r10d mov [rsp+70h+var_60], eax call simple_key_cache_write cmp eax, 0 jz short loc_E83B9 jmp short $+2 loc_E83B0: mov [rbp+var_4], 1 jmp short loc_E83F8 loc_E83B9: mov eax, [rbp+var_3C] add rax, [rbp+var_28] mov [rbp+var_28], rax mov ecx, [rbp+var_3C] mov rax, [rbp+var_38] mov ecx, ecx add rax, rcx mov [rbp+var_38], rax mov [rbp+var_4C], 0 mov ecx, [rbp+var_3C] mov eax, [rbp+arg_0] sub eax, ecx mov [rbp+arg_0], eax cmp eax, 0 jnz loc_E8339 jmp short $+2 loc_E83F1: mov [rbp+var_4], 0 loc_E83F8: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long partitioned_key_cache_write( long long a1, unsigned int a2, long long a3, unsigned long long a4, int a5, long long a6, unsigned int a7, int a8, int a9) { _QWORD *v10; // [rsp+18h] [rbp-58h] int v11; // [rsp+24h] [rbp-4Ch] unsigned int v13; // [rsp+34h] [rbp-3Ch] unsigned long long v16; // [rsp+48h] [rbp-28h] v16 = a4; v11 = a4 % *(unsigned int *)(a1 + 24); do { v10 = (_QWORD *)get_key_cache_partition_for_write(a1, a2, v16, a3); v13 = a7; if ( a7 > *(_DWORD *)(a1 + 24) - v11 ) v13 = *(_DWORD *)(a1 + 24) - v11; if ( (unsigned int)simple_key_cache_write(v10, a2, 0LL, v16, a5, a6, v13, a8, a9) ) return 1; v16 += v13; a6 += v13; v11 = 0; a7 -= v13; } while ( a7 ); return 0; }
partitioned_key_cache_write: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV EAX,dword ptr [RBP + 0x20] MOV EAX,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV dword ptr [RBP + -0x2c],R8D MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RBP + -0x4c],EAX JMP 0x001e8337 LAB_001e8337: JMP 0x001e8339 LAB_001e8339: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x48] CALL 0x001e87b0 MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + 0x10] MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x3c] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] SUB ECX,dword ptr [RBP + -0x4c] CMP EAX,ECX JBE 0x001e8375 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x18] SUB EAX,dword ptr [RBP + -0x4c] MOV dword ptr [RBP + -0x3c],EAX LAB_001e8375: JMP 0x001e8377 LAB_001e8377: MOV RDI,qword ptr [RBP + -0x58] MOV ESI,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x28] MOV R8D,dword ptr [RBP + -0x2c] MOV R9,qword ptr [RBP + -0x38] MOV R11D,dword ptr [RBP + -0x3c] MOV R10D,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x20] XOR EDX,EDX MOV dword ptr [RSP],R11D MOV dword ptr [RSP + 0x8],R10D MOV dword ptr [RSP + 0x10],EAX CALL 0x001e6440 CMP EAX,0x0 JZ 0x001e83b9 JMP 0x001e83b0 LAB_001e83b0: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001e83f8 LAB_001e83b9: MOV EAX,dword ptr [RBP + -0x3c] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x38] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x4c],0x0 MOV ECX,dword ptr [RBP + -0x3c] MOV EAX,dword ptr [RBP + 0x10] SUB EAX,ECX MOV dword ptr [RBP + 0x10],EAX CMP EAX,0x0 JNZ 0x001e8339 JMP 0x001e83f1 LAB_001e83f1: MOV dword ptr [RBP + -0x4],0x0 LAB_001e83f8: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
int4 partitioned_key_cache_write (long param_1,int4 param_2,int8 param_3,ulong param_4,int4 param_5, long param_6,uint param_7,int4 param_8,int4 param_9) { int iVar1; int8 uVar2; int local_54; uint local_44; long local_40; ulong local_30; local_54 = (int)(param_4 % (ulong)*(uint *)(param_1 + 0x18)); local_40 = param_6; local_30 = param_4; while( true ) { uVar2 = get_key_cache_partition_for_write(param_1,param_2,local_30,param_3); local_44 = param_7; if ((uint)(*(int *)(param_1 + 0x18) - local_54) < param_7) { local_44 = *(int *)(param_1 + 0x18) - local_54; } iVar1 = simple_key_cache_write (uVar2,param_2,0,local_30,param_5,local_40,local_44,param_8,param_9); if (iVar1 != 0) break; local_30 = local_44 + local_30; local_40 = local_40 + (ulong)local_44; local_54 = 0; param_7 = param_7 - local_44; if (param_7 == 0) { return 0; } } return 1; }
41,985
my_close
eloqsql/mysys/my_open.c
int my_close(File fd, myf MyFlags) { int err; char *name= NULL; DBUG_ENTER("my_close"); DBUG_PRINT("my",("fd: %d MyFlags: %lu",fd, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE))) MyFlags|= my_global_flags; if ((uint) fd < my_file_limit && my_file_info[fd].type != UNOPEN) { name= my_file_info[fd].name; my_file_info[fd].name= NULL; my_file_info[fd].type= UNOPEN; } #ifndef _WIN32 err= close(fd); #else err= my_win_close(fd); #endif if (err) { DBUG_PRINT("error",("Got error %d on close",err)); my_errno=errno; if (MyFlags & (MY_FAE | MY_WME)) my_error(EE_BADCLOSE, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), name,errno); } if (name) { my_free(name); } my_atomic_add32_explicit(&my_file_opened, -1, MY_MEMORY_ORDER_RELAXED); DBUG_RETURN(err); }
O0
c
my_close: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq $0x0, -0x20(%rbp) jmp 0xf44e9 movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0xf4509 leaq 0xb8e8ca(%rip), %rax # 0xc82dc8 movq (%rax), %rax orq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) movl -0x4(%rbp), %eax leaq 0x1cb69d(%rip), %rcx # 0x2bfbb0 cmpl (%rcx), %eax jae 0xf4586 leaq 0x1cb69a(%rip), %rax # 0x2bfbb8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) je 0xf4586 leaq 0x1cb67f(%rip), %rax # 0x2bfbb8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rax movq %rax, -0x20(%rbp) leaq 0x1cb663(%rip), %rax # 0x2bfbb8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq $0x0, (%rax) leaq 0x1cb647(%rip), %rax # 0x2bfbb8 movq (%rax), %rax movslq -0x4(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl $0x0, 0x8(%rax) movl -0x4(%rbp), %edi callq 0x2a1c0 movl %eax, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) je 0xf45f4 jmp 0xf4599 jmp 0xf459b callq 0x2a760 movl (%rax), %eax movl %eax, -0x2c(%rbp) callq 0xf6090 movl -0x2c(%rbp), %ecx movl %ecx, (%rax) movq -0x10(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0xf45f2 movq -0x10(%rbp), %rax andq $0x440, %rax # imm = 0x440 orq $0x4, %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x38(%rbp) callq 0x2a760 movq -0x40(%rbp), %rsi movq -0x38(%rbp), %rdx movl (%rax), %ecx movl $0x4, %edi movb $0x0, %al callq 0xefb40 jmp 0xf45f4 cmpq $0x0, -0x20(%rbp) je 0xf4604 movq -0x20(%rbp), %rdi callq 0xf3bb0 movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF movl -0x24(%rbp), %eax leaq 0xb8e7bf(%rip), %rcx # 0xc82dd4 lock xaddl %eax, (%rcx) movl %eax, -0x28(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x44(%rbp) movl -0x44(%rbp), %eax addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
my_close: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_20], 0 jmp short $+2 loc_F44E9: mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jnz short loc_F4509 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_10] mov [rbp+var_10], rax loc_F4509: mov eax, [rbp+var_4] lea rcx, my_file_limit cmp eax, [rcx] jnb short loc_F4586 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jz short loc_F4586 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov rax, [rax] mov [rbp+var_20], rax lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov qword ptr [rax], 0 lea rax, my_file_info mov rax, [rax] movsxd rcx, [rbp+var_4] shl rcx, 4 add rax, rcx mov dword ptr [rax+8], 0 loc_F4586: mov edi, [rbp+var_4] call _close mov [rbp+var_14], eax cmp [rbp+var_14], 0 jz short loc_F45F4 jmp short $+2 loc_F4599: jmp short $+2 loc_F459B: call ___errno_location mov eax, [rax] mov [rbp+var_2C], eax call _my_thread_var mov ecx, [rbp+var_2C] mov [rax], ecx mov rax, [rbp+var_10] and rax, 18h cmp rax, 0 jz short loc_F45F2 mov rax, [rbp+var_10] and rax, 440h or rax, 4 mov [rbp+var_40], rax mov rax, [rbp+var_20] mov [rbp+var_38], rax call ___errno_location mov rsi, [rbp+var_40] mov rdx, [rbp+var_38] mov ecx, [rax] mov edi, 4 mov al, 0 call my_error loc_F45F2: jmp short $+2 loc_F45F4: cmp [rbp+var_20], 0 jz short loc_F4604 mov rdi, [rbp+var_20] call my_free loc_F4604: mov [rbp+var_24], 0FFFFFFFFh mov eax, [rbp+var_24] lea rcx, my_file_opened lock xadd [rcx], eax mov [rbp+var_28], eax mov eax, [rbp+var_14] mov [rbp+var_44], eax mov eax, [rbp+var_44] add rsp, 50h pop rbp retn
long long my_close(unsigned int a1, const char *a2) { unsigned int *v2; // rax int v4; // [rsp+24h] [rbp-2Ch] long long v5; // [rsp+30h] [rbp-20h] unsigned int v6; // [rsp+3Ch] [rbp-14h] __int16 v7; // [rsp+40h] [rbp-10h] v7 = (__int16)a2; v5 = 0LL; if ( ((unsigned __int8)a2 & 0x18) == 0 ) v7 = (unsigned __int16)a2 | my_global_flags; if ( a1 < my_file_limit && *((_DWORD *)my_file_info + 4 * (int)a1 + 2) ) { v5 = *((_QWORD *)my_file_info + 2 * (int)a1); *((_QWORD *)my_file_info + 2 * (int)a1) = 0LL; *((_DWORD *)my_file_info + 4 * (int)a1 + 2) = 0; } v6 = close(a1); if ( v6 ) { v4 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var(a1, a2) = v4; if ( (v7 & 0x18) != 0 ) { v2 = (unsigned int *)__errno_location(); my_error(4u, v7 & 0x440 | 4LL, v5, *v2); } } if ( v5 ) my_free(v5); _InterlockedExchangeAdd(my_file_opened, 0xFFFFFFFF); return v6; }
my_close: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x20],0x0 JMP 0x001f44e9 LAB_001f44e9: MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JNZ 0x001f4509 LEA RAX,[0xd82dc8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX LAB_001f4509: MOV EAX,dword ptr [RBP + -0x4] LEA RCX,[0x3bfbb0] CMP EAX,dword ptr [RCX] JNC 0x001f4586 LEA RAX,[0x3bfbb8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JZ 0x001f4586 LEA RAX,[0x3bfbb8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX LEA RAX,[0x3bfbb8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV qword ptr [RAX],0x0 LEA RAX,[0x3bfbb8] MOV RAX,qword ptr [RAX] MOVSXD RCX,dword ptr [RBP + -0x4] SHL RCX,0x4 ADD RAX,RCX MOV dword ptr [RAX + 0x8],0x0 LAB_001f4586: MOV EDI,dword ptr [RBP + -0x4] CALL 0x0012a1c0 MOV dword ptr [RBP + -0x14],EAX CMP dword ptr [RBP + -0x14],0x0 JZ 0x001f45f4 JMP 0x001f4599 LAB_001f4599: JMP 0x001f459b LAB_001f459b: CALL 0x0012a760 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CALL 0x001f6090 MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x18 CMP RAX,0x0 JZ 0x001f45f2 MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x440 OR RAX,0x4 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x38],RAX CALL 0x0012a760 MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX] MOV EDI,0x4 MOV AL,0x0 CALL 0x001efb40 LAB_001f45f2: JMP 0x001f45f4 LAB_001f45f4: CMP qword ptr [RBP + -0x20],0x0 JZ 0x001f4604 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001f3bb0 LAB_001f4604: MOV dword ptr [RBP + -0x24],0xffffffff MOV EAX,dword ptr [RBP + -0x24] LEA RCX,[0xd82dd4] XADD.LOCK dword ptr [RCX],EAX MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x44],EAX MOV EAX,dword ptr [RBP + -0x44] ADD RSP,0x50 POP RBP RET
int my_close(uint param_1,ulong param_2) { int iVar1; int iVar2; int *piVar3; long local_28; ulong local_18; local_28 = 0; local_18 = param_2; if ((param_2 & 0x18) == 0) { local_18 = my_global_flags | param_2; } if ((param_1 < my_file_limit) && (*(int *)(my_file_info + (long)(int)param_1 * 0x10 + 8) != 0)) { local_28 = *(long *)(my_file_info + (long)(int)param_1 * 0x10); *(int8 *)(my_file_info + (long)(int)param_1 * 0x10) = 0; *(int4 *)(my_file_info + (long)(int)param_1 * 0x10 + 8) = 0; } iVar2 = close(param_1); if (iVar2 != 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((local_18 & 0x18) != 0) { piVar3 = __errno_location(); my_error(4,local_18 & 0x440 | 4,local_28,*piVar3); } } if (local_28 != 0) { my_free(local_28); } LOCK(); my_file_opened = my_file_opened + -1; UNLOCK(); return iVar2; }
41,986
my_once_free
eloqsql/mysys/my_once.c
void my_once_free(void) { reg1 USED_MEM *next,*old; DBUG_ENTER("my_once_free"); for (next=my_once_root_block ; next ; ) { old=next; next= next->next ; free((uchar*) old); } my_once_root_block=0; DBUG_VOID_RETURN; }
O3
c
my_once_free: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx leaq 0x31d86e(%rip), %rbx # 0x36a550 movq (%rbx), %rdi testq %rdi, %rdi je 0x4ccfa movq (%rdi), %r14 callq 0x25390 movq %r14, %rdi testq %r14, %r14 jne 0x4ccea movq $0x0, (%rbx) popq %rbx popq %r14 popq %rbp retq nop
my_once_free: push rbp mov rbp, rsp push r14 push rbx lea rbx, my_once_root_block mov rdi, [rbx] test rdi, rdi jz short loc_4CCFA loc_4CCEA: mov r14, [rdi] call _free mov rdi, r14 test r14, r14 jnz short loc_4CCEA loc_4CCFA: mov qword ptr [rbx], 0 pop rbx pop r14 pop rbp retn
long long my_once_free() { _QWORD *v0; // rdi _QWORD *v1; // r14 long long result; // rax v0 = (_QWORD *)my_once_root_block; if ( my_once_root_block ) { do { v1 = (_QWORD *)*v0; result = free(v0); v0 = v1; } while ( v1 ); } my_once_root_block = 0LL; return result; }
my_once_free: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX LEA RBX,[0x46a550] MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x0014ccfa LAB_0014ccea: MOV R14,qword ptr [RDI] CALL 0x00125390 MOV RDI,R14 TEST R14,R14 JNZ 0x0014ccea LAB_0014ccfa: MOV qword ptr [RBX],0x0 POP RBX POP R14 POP RBP RET
void my_once_free(void) { long *plVar1; long *__ptr; __ptr = my_once_root_block; if (my_once_root_block != (long *)0x0) { do { plVar1 = (long *)*__ptr; free(__ptr); __ptr = plVar1; } while (plVar1 != (long *)0x0); } my_once_root_block = (long *)0x0; return; }
41,987
minja::Parser::peekSymbols(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const
monkey531[P]llama/common/minja.hpp
bool peekSymbols(const std::vector<std::string> & symbols) const { for (const auto & symbol : symbols) { if (std::distance(it, end) >= (int64_t) symbol.size() && std::string(it, it + symbol.size()) == symbol) { return true; } } return false; }
O2
cpp
minja::Parser::peekSymbols(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %r14 movq (%rsi), %rbx movq 0x8(%rsi), %r12 leaq 0x18(%rsp), %r13 leaq 0x8(%rsp), %r15 cmpq %r12, %rbx je 0x6842d movq 0x18(%r14), %rax movq 0x20(%r14), %rsi subq %rsi, %rax movq 0x8(%rbx), %rdx cmpq %rdx, %rax jl 0x68427 addq %rsi, %rdx movq %r13, 0x8(%rsp) movq %r15, %rdi callq 0x54f60 movq %r15, %rdi movq %rbx, %rsi callq 0x2961f movl %eax, %ebp movq %r15, %rdi callq 0x25478 testb %bpl, %bpl jne 0x6842d addq $0x20, %rbx jmp 0x683e4 cmpq %r12, %rbx setne %al addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZNK5minja6Parser11peekSymbolsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r14, rdi mov rbx, [rsi] mov r12, [rsi+8] lea r13, [rsp+58h+var_40] lea r15, [rsp+58h+var_50] loc_683E4: cmp rbx, r12 jz short loc_6842D mov rax, [r14+18h] mov rsi, [r14+20h] sub rax, rsi mov rdx, [rbx+8] cmp rax, rdx jl short loc_68427 add rdx, rsi mov [rsp+58h+var_50], r13 mov rdi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rdi, r15 mov rsi, rbx call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ mov ebp, eax mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_6842D loc_68427: add rbx, 20h ; ' ' jmp short loc_683E4 loc_6842D: cmp rbx, r12 setnz al add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
bool minja::Parser::peekSymbols(long long a1, long long **a2) { long long *v2; // rbx long long *v3; // r12 _BYTE *v4; // rsi long long v5; // rdx bool v6; // bp long long v8[2]; // [rsp+8h] [rbp-50h] BYREF char v9; // [rsp+18h] [rbp-40h] BYREF v2 = *a2; v3 = a2[1]; while ( v2 != v3 ) { v4 = *(_BYTE **)(a1 + 32); v5 = v2[1]; if ( *(_QWORD *)(a1 + 24) - (_QWORD)v4 >= v5 ) { v8[0] = (long long)&v9; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>( (long long)v8, v4, (long long)&v4[v5]); v6 = std::operator==<char>(v8, v2); std::string::~string(v8); if ( v6 ) break; } v2 += 4; } return v2 != v3; }
peekSymbols: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RDI MOV RBX,qword ptr [RSI] MOV R12,qword ptr [RSI + 0x8] LEA R13,[RSP + 0x18] LEA R15,[RSP + 0x8] LAB_001683e4: CMP RBX,R12 JZ 0x0016842d MOV RAX,qword ptr [R14 + 0x18] MOV RSI,qword ptr [R14 + 0x20] SUB RAX,RSI MOV RDX,qword ptr [RBX + 0x8] CMP RAX,RDX JL 0x00168427 ADD RDX,RSI MOV qword ptr [RSP + 0x8],R13 MOV RDI,R15 CALL 0x00154f60 MOV RDI,R15 MOV RSI,RBX CALL 0x0012961f MOV EBP,EAX MOV RDI,R15 CALL 0x00125478 TEST BPL,BPL JNZ 0x0016842d LAB_00168427: ADD RBX,0x20 JMP 0x001683e4 LAB_0016842d: CMP RBX,R12 SETNZ AL ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Parser::peekSymbols(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) const */ bool __thiscall minja::Parser::peekSymbols(Parser *this,vector *param_1) { string *psVar1; long lVar2; char cVar3; string *psVar4; int1 *local_50 [2]; int1 local_40 [16]; psVar1 = *(string **)(param_1 + 8); for (psVar4 = *(string **)param_1; psVar4 != psVar1; psVar4 = psVar4 + 0x20) { lVar2 = *(long *)(this + 0x20); if (*(long *)(psVar4 + 8) <= *(long *)(this + 0x18) - lVar2) { local_50[0] = local_40; std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> ((string *)local_50,lVar2,*(long *)(psVar4 + 8) + lVar2); cVar3 = std::operator==((string *)local_50,psVar4); std::__cxx11::string::~string((string *)local_50); if (cVar3 != '\0') break; } } return psVar4 != psVar1; }
41,988
mi_log
eloqsql/storage/myisam/mi_log.c
int mi_log(int activate_log) { int error=0; char buff[FN_REFLEN]; DBUG_ENTER("mi_log"); log_type=activate_log; if (activate_log) { if (!myisam_pid) myisam_pid=(ulong) getpid(); if (myisam_log_file < 0) { if ((myisam_log_file= mysql_file_create(mi_key_file_log, fn_format(buff, myisam_log_filename, "", ".log", 4), 0, (O_RDWR | O_BINARY | O_APPEND), MYF(0))) < 0) DBUG_RETURN(my_errno); } } else if (myisam_log_file >= 0) { error= mysql_file_close(myisam_log_file, MYF(0)) ? my_errno : 0 ; myisam_log_file= -1; } DBUG_RETURN(error); }
O0
c
mi_log: pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x218(%rbp) movl $0x0, -0x21c(%rbp) movl -0x218(%rbp), %eax movl %eax, 0x3ba974(%rip) # 0x3f7798 cmpl $0x0, -0x218(%rbp) je 0x3cee2 cmpq $0x0, 0x3ba957(%rip) # 0x3f7790 jne 0x3ce49 callq 0x28510 cltq movq %rax, 0x3ba947(%rip) # 0x3f7790 leaq 0x1fe290(%rip), %rax # 0x23b0e0 cmpl $0x0, (%rax) jge 0x3cee0 leaq 0x3ba9d0(%rip), %rax # 0x3f7830 movl (%rax), %eax movl %eax, -0x220(%rbp) leaq -0x210(%rbp), %rdi leaq 0x1fe262(%rip), %rax # 0x23b0d8 movq (%rax), %rsi leaq 0xa41f2(%rip), %rdx # 0xe1072 leaq 0x9f49b(%rip), %rcx # 0xdc322 movl $0x4, %r8d callq 0x70e20 movl -0x220(%rbp), %edi movq %rax, %rcx leaq 0x9f21b(%rip), %rsi # 0xdc0bd movl $0x35, %edx xorl %r8d, %r8d movl $0x402, %r9d # imm = 0x402 xorl %eax, %eax movq $0x0, (%rsp) callq 0x3cf90 leaq 0x1fe21a(%rip), %rcx # 0x23b0e0 movl %eax, (%rcx) cmpl $0x0, %eax jge 0x3cede jmp 0x3cecf callq 0x86110 movl (%rax), %eax movl %eax, -0x214(%rbp) jmp 0x3cf53 jmp 0x3cee0 jmp 0x3cf45 leaq 0x1fe1f7(%rip), %rax # 0x23b0e0 cmpl $0x0, (%rax) jl 0x3cf43 leaq 0x1fe1eb(%rip), %rax # 0x23b0e0 movl (%rax), %edx leaq 0x9f1bf(%rip), %rdi # 0xdc0bd movl $0x3b, %esi xorl %eax, %eax movl %eax, %ecx callq 0x3d080 cmpl $0x0, %eax je 0x3cf20 callq 0x86110 movl (%rax), %eax movl %eax, -0x224(%rbp) jmp 0x3cf2a xorl %eax, %eax movl %eax, -0x224(%rbp) jmp 0x3cf2a movl -0x224(%rbp), %eax movl %eax, -0x21c(%rbp) leaq 0x1fe1a3(%rip), %rax # 0x23b0e0 movl $0xffffffff, (%rax) # imm = 0xFFFFFFFF jmp 0x3cf45 jmp 0x3cf47 movl -0x21c(%rbp), %eax movl %eax, -0x214(%rbp) movl -0x214(%rbp), %eax movl %eax, -0x228(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x3cf80 movl -0x228(%rbp), %eax addq $0x230, %rsp # imm = 0x230 popq %rbp retq callq 0x283c0 nopw %cs:(%rax,%rax)
mi_log: push rbp mov rbp, rsp sub rsp, 230h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], edi mov [rbp+var_21C], 0 mov eax, [rbp+var_218] mov cs:log_type, eax cmp [rbp+var_218], 0 jz loc_3CEE2 cmp cs:myisam_pid, 0 jnz short loc_3CE49 call _getpid cdqe mov cs:myisam_pid, rax loc_3CE49: lea rax, myisam_log_file cmp dword ptr [rax], 0 jge loc_3CEE0 lea rax, mi_key_file_log mov eax, [rax] mov [rbp+var_220], eax lea rdi, [rbp+var_210] lea rax, myisam_log_filename mov rsi, [rax] lea rdx, asc_E106E+4; "" lea rcx, aMyisamLog+6; ".log" mov r8d, 4 call fn_format mov edi, [rbp+var_220] mov rcx, rax lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 35h ; '5' xor r8d, r8d mov r9d, 402h xor eax, eax mov [rsp+230h+var_230], 0 call inline_mysql_file_create lea rcx, myisam_log_file mov [rcx], eax cmp eax, 0 jge short loc_3CEDE jmp short $+2 loc_3CECF: call _my_thread_var mov eax, [rax] mov [rbp+var_214], eax jmp short loc_3CF53 loc_3CEDE: jmp short $+2 loc_3CEE0: jmp short loc_3CF45 loc_3CEE2: lea rax, myisam_log_file cmp dword ptr [rax], 0 jl short loc_3CF43 lea rax, myisam_log_file mov edx, [rax] lea rdi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 3Bh ; ';' xor eax, eax mov ecx, eax call inline_mysql_file_close_1 cmp eax, 0 jz short loc_3CF20 call _my_thread_var mov eax, [rax] mov [rbp+var_224], eax jmp short loc_3CF2A loc_3CF20: xor eax, eax mov [rbp+var_224], eax jmp short $+2 loc_3CF2A: mov eax, [rbp+var_224] mov [rbp+var_21C], eax lea rax, myisam_log_file mov dword ptr [rax], 0FFFFFFFFh loc_3CF43: jmp short $+2 loc_3CF45: jmp short $+2 loc_3CF47: mov eax, [rbp+var_21C] mov [rbp+var_214], eax loc_3CF53: mov eax, [rbp+var_214] mov [rbp+var_228], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_3CF80 mov eax, [rbp+var_228] add rsp, 230h pop rbp retn loc_3CF80: call ___stack_chk_fail
long long mi_log(int a1) { int v1; // eax unsigned int v3; // [rsp+Ch] [rbp-224h] unsigned int v4; // [rsp+10h] [rbp-220h] unsigned int v5; // [rsp+14h] [rbp-21Ch] _BYTE v7[520]; // [rsp+20h] [rbp-210h] BYREF unsigned long long v8; // [rsp+228h] [rbp-8h] v8 = __readfsqword(0x28u); v5 = 0; log_type = a1; if ( !a1 ) { if ( (myisam_log_file & 0x80000000) == 0 ) { if ( (unsigned int)inline_mysql_file_close_1( "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", 59LL, myisam_log_file, 0LL) ) v3 = *(_DWORD *)my_thread_var( "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", (_BYTE *)&word_3A + 1); else v3 = 0; v5 = v3; myisam_log_file = -1; } return v5; } if ( !myisam_pid ) myisam_pid = (int)getpid(); if ( (myisam_log_file & 0x80000000) == 0 ) return v5; v4 = mi_key_file_log; v1 = fn_format(v7, myisam_log_filename, "", ".log", 4LL); myisam_log_file = inline_mysql_file_create( v4, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c", 53, v1, 0, 1026, 0LL); if ( (myisam_log_file & 0x80000000) == 0 ) return v5; return *(unsigned int *)my_thread_var(v4, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c"); }
mi_log: PUSH RBP MOV RBP,RSP SUB RSP,0x230 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x218],EDI MOV dword ptr [RBP + -0x21c],0x0 MOV EAX,dword ptr [RBP + -0x218] MOV dword ptr [0x004f7798],EAX CMP dword ptr [RBP + -0x218],0x0 JZ 0x0013cee2 CMP qword ptr [0x004f7790],0x0 JNZ 0x0013ce49 CALL 0x00128510 CDQE MOV qword ptr [0x004f7790],RAX LAB_0013ce49: LEA RAX,[0x33b0e0] CMP dword ptr [RAX],0x0 JGE 0x0013cee0 LEA RAX,[0x4f7830] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x220],EAX LEA RDI,[RBP + -0x210] LEA RAX,[0x33b0d8] MOV RSI,qword ptr [RAX] LEA RDX,[0x1e1072] LEA RCX,[0x1dc322] MOV R8D,0x4 CALL 0x00170e20 MOV EDI,dword ptr [RBP + -0x220] MOV RCX,RAX LEA RSI,[0x1dc0bd] MOV EDX,0x35 XOR R8D,R8D MOV R9D,0x402 XOR EAX,EAX MOV qword ptr [RSP],0x0 CALL 0x0013cf90 LEA RCX,[0x33b0e0] MOV dword ptr [RCX],EAX CMP EAX,0x0 JGE 0x0013cede JMP 0x0013cecf LAB_0013cecf: CALL 0x00186110 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x214],EAX JMP 0x0013cf53 LAB_0013cede: JMP 0x0013cee0 LAB_0013cee0: JMP 0x0013cf45 LAB_0013cee2: LEA RAX,[0x33b0e0] CMP dword ptr [RAX],0x0 JL 0x0013cf43 LEA RAX,[0x33b0e0] MOV EDX,dword ptr [RAX] LEA RDI,[0x1dc0bd] MOV ESI,0x3b XOR EAX,EAX MOV ECX,EAX CALL 0x0013d080 CMP EAX,0x0 JZ 0x0013cf20 CALL 0x00186110 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x224],EAX JMP 0x0013cf2a LAB_0013cf20: XOR EAX,EAX MOV dword ptr [RBP + -0x224],EAX JMP 0x0013cf2a LAB_0013cf2a: MOV EAX,dword ptr [RBP + -0x224] MOV dword ptr [RBP + -0x21c],EAX LEA RAX,[0x33b0e0] MOV dword ptr [RAX],0xffffffff LAB_0013cf43: JMP 0x0013cf45 LAB_0013cf45: JMP 0x0013cf47 LAB_0013cf47: MOV EAX,dword ptr [RBP + -0x21c] MOV dword ptr [RBP + -0x214],EAX LAB_0013cf53: MOV EAX,dword ptr [RBP + -0x214] MOV dword ptr [RBP + -0x228],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0013cf80 MOV EAX,dword ptr [RBP + -0x228] ADD RSP,0x230 POP RBP RET LAB_0013cf80: CALL 0x001283c0
int4 mi_log(int param_1) { int4 uVar1; __pid_t _Var2; int iVar3; int8 uVar4; int4 *puVar5; long in_FS_OFFSET; int4 local_22c; int4 local_224; int4 local_21c; int1 local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_224 = 0; log_type = param_1; if (param_1 == 0) { if (-1 < myisam_log_file) { iVar3 = inline_mysql_file_close ("/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x3b, myisam_log_file,0); if (iVar3 == 0) { local_22c = 0; } else { puVar5 = (int4 *)_my_thread_var(); local_22c = *puVar5; } local_224 = local_22c; myisam_log_file = -1; } } else { if (myisam_pid == 0) { _Var2 = getpid(); myisam_pid = (long)_Var2; } uVar1 = mi_key_file_log; if (myisam_log_file < 0) { uVar4 = fn_format(local_218,myisam_log_filename,&DAT_001e1072,".log",4); myisam_log_file = inline_mysql_file_create (uVar1,"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_log.c",0x35, uVar4,0,0x402,0); if (myisam_log_file < 0) { puVar5 = (int4 *)_my_thread_var(); local_21c = *puVar5; goto LAB_0013cf53; } } } local_21c = local_224; LAB_0013cf53: if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_21c; }
41,989
mi_log
eloqsql/storage/myisam/mi_log.c
int mi_log(int activate_log) { int error=0; char buff[FN_REFLEN]; DBUG_ENTER("mi_log"); log_type=activate_log; if (activate_log) { if (!myisam_pid) myisam_pid=(ulong) getpid(); if (myisam_log_file < 0) { if ((myisam_log_file= mysql_file_create(mi_key_file_log, fn_format(buff, myisam_log_filename, "", ".log", 4), 0, (O_RDWR | O_BINARY | O_APPEND), MYF(0))) < 0) DBUG_RETURN(my_errno); } } else if (myisam_log_file >= 0) { error= mysql_file_close(myisam_log_file, MYF(0)) ? my_errno : 0 ; myisam_log_file= -1; } DBUG_RETURN(error); }
O3
c
mi_log: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x270, %rsp # imm = 0x270 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) movl %edi, 0x37625b(%rip) # 0x3adaf8 testl %edi, %edi je 0x3795d cmpq $0x0, 0x376243(%rip) # 0x3adaf0 jne 0x378bd callq 0x28560 cltq movq %rax, 0x376233(%rip) # 0x3adaf0 leaq 0x2fa77c(%rip), %r12 # 0x332040 cmpl $0x0, (%r12) jns 0x379a4 leaq 0x3762ba(%rip), %rax # 0x3adb90 movl (%rax), %r14d leaq 0x2fa758(%rip), %rax # 0x332038 movq (%rax), %rsi leaq 0x62863(%rip), %rdx # 0x9a14d leaq 0x5db21(%rip), %rcx # 0x95412 leaq -0x230(%rbp), %rdi movl $0x4, %r8d callq 0x527b4 movq %rax, %rbx leaq 0x2fc553(%rip), %rax # 0x333e60 movq (%rax), %rax leaq -0x288(%rbp), %rdi leaq -0x238(%rbp), %r15 movl %r14d, %esi xorl %edx, %edx movq %rbx, %rcx movq %r15, %r8 callq *0x148(%rax) movq %rax, (%r15) testq %rax, %rax jne 0x379d0 movq %rbx, %rdi xorl %esi, %esi movl $0x402, %edx # imm = 0x402 xorl %ecx, %ecx callq 0x5b164 movl %eax, (%r12) testl %eax, %eax jns 0x379a4 callq 0x5ecfe movl (%rax), %eax jmp 0x379b1 leaq 0x2fa6dc(%rip), %r15 # 0x332040 movl (%r15), %ebx testl %ebx, %ebx js 0x379a4 leaq 0x2fc4ee(%rip), %rax # 0x333e60 movq (%rax), %rax leaq -0x230(%rbp), %rdi movl %ebx, %esi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x379f4 movl %ebx, %edi xorl %esi, %esi callq 0x5d7a5 testl %eax, %eax je 0x379a8 callq 0x5ecfe movl (%rax), %eax jmp 0x379aa xorl %eax, %eax jmp 0x379b1 xorl %eax, %eax movl $0xffffffff, (%r15) # imm = 0xFFFFFFFF movq %fs:0x28, %rcx cmpq -0x28(%rbp), %rcx jne 0x37a0d addq $0x270, %rsp # imm = 0x270 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq -0x238(%rbp), %rdx leaq -0x23c(%rbp), %r14 movq %rax, %rdi movq %rbx, %rsi movq %r14, %rcx callq 0x28ece movl (%r14), %eax jmp 0x3794c leaq -0x288(%rbp), %r14 movq %rax, %rdi movl %ebx, %esi movq %r14, %rdx callq 0x28f29 movl (%r14), %eax jmp 0x37997 callq 0x28400
mi_log: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 270h mov rax, fs:28h mov [rbp+var_28], rax mov cs:log_type, edi test edi, edi jz loc_3795D cmp cs:myisam_pid, 0 jnz short loc_378BD call _getpid cdqe mov cs:myisam_pid, rax loc_378BD: lea r12, myisam_log_file cmp dword ptr [r12], 0 jns loc_379A4 lea rax, mi_key_file_log mov r14d, [rax] lea rax, myisam_log_filename mov rsi, [rax] lea rdx, asc_9A149+4; "" lea rcx, aMyisamLog+6; ".log" lea rdi, [rbp+var_230] mov r8d, 4 call fn_format mov rbx, rax lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_288] lea r15, [rbp+var_238] mov esi, r14d xor edx, edx mov rcx, rbx mov r8, r15 call qword ptr [rax+148h] mov [r15], rax test rax, rax jnz loc_379D0 mov rdi, rbx xor esi, esi mov edx, 402h xor ecx, ecx call my_create loc_3794C: mov [r12], eax test eax, eax jns short loc_379A4 call _my_thread_var mov eax, [rax] jmp short loc_379B1 loc_3795D: lea r15, myisam_log_file mov ebx, [r15] test ebx, ebx js short loc_379A4 lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_230] mov esi, ebx mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz short loc_379F4 mov edi, ebx xor esi, esi call my_close loc_37997: test eax, eax jz short loc_379A8 call _my_thread_var mov eax, [rax] jmp short loc_379AA loc_379A4: xor eax, eax jmp short loc_379B1 loc_379A8: xor eax, eax loc_379AA: mov dword ptr [r15], 0FFFFFFFFh loc_379B1: mov rcx, fs:28h cmp rcx, [rbp+var_28] jnz short loc_37A0D add rsp, 270h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_379D0: lea rdx, [rbp+var_238] lea r14, [rbp+var_23C] mov rdi, rax mov rsi, rbx mov rcx, r14 call mi_log_cold_1 mov eax, [r14] jmp loc_3794C loc_379F4: lea r14, [rbp+var_288] mov rdi, rax mov esi, ebx mov rdx, r14 call mi_log_cold_2 mov eax, [r14] jmp short loc_37997 loc_37A0D: call ___stack_chk_fail
long long mi_log(int a1) { unsigned int v1; // r14d long long v2; // rbx long long v3; // rax long long v4; // rdi const char *v5; // rsi int v6; // eax long long result; // rax unsigned int v8; // ebx long long v9; // rax long long v10; // rdi const char *v11; // rsi unsigned int v12; // eax unsigned int v13[19]; // [rsp+8h] [rbp-288h] BYREF int v14; // [rsp+54h] [rbp-23Ch] BYREF long long v15; // [rsp+58h] [rbp-238h] BYREF _BYTE v16[520]; // [rsp+60h] [rbp-230h] BYREF unsigned long long v17; // [rsp+268h] [rbp-28h] v17 = __readfsqword(0x28u); log_type = a1; if ( a1 ) { if ( !myisam_pid ) myisam_pid = (int)getpid(); if ( (myisam_log_file & 0x80000000) != 0 ) { v1 = mi_key_file_log; v2 = fn_format(v16, myisam_log_filename, "", ".log", 4LL); v3 = ((long long ( *)(unsigned int *, _QWORD, _QWORD, long long, long long *))PSI_server[41])( v13, v1, 0LL, v2, &v15); v15 = v3; if ( v3 ) { v4 = v3; v5 = (const char *)v2; mi_log_cold_1(v3, v2, &v15, (unsigned int *)&v14); v6 = v14; } else { v4 = v2; v5 = 0LL; v6 = my_create(v2, 0LL, 1026LL, 0LL); } myisam_log_file = v6; if ( v6 < 0 ) return *(unsigned int *)my_thread_var(v4, v5); } return 0LL; } v8 = myisam_log_file; if ( (myisam_log_file & 0x80000000) != 0 ) return 0LL; v9 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v16, myisam_log_file, 4LL); if ( v9 ) { v10 = v9; v11 = (const char *)v8; mi_log_cold_2(v9, v8, v13); v12 = v13[0]; } else { v10 = v8; v11 = 0LL; v12 = my_close(v8, 0LL); } if ( v12 ) result = *(unsigned int *)my_thread_var(v10, v11); else result = 0LL; myisam_log_file = -1; return result; }
mi_log: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x270 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX MOV dword ptr [0x004adaf8],EDI TEST EDI,EDI JZ 0x0013795d CMP qword ptr [0x004adaf0],0x0 JNZ 0x001378bd CALL 0x00128560 CDQE MOV qword ptr [0x004adaf0],RAX LAB_001378bd: LEA R12,[0x432040] CMP dword ptr [R12],0x0 JNS 0x001379a4 LEA RAX,[0x4adb90] MOV R14D,dword ptr [RAX] LEA RAX,[0x432038] MOV RSI,qword ptr [RAX] LEA RDX,[0x19a14d] LEA RCX,[0x195412] LEA RDI,[RBP + -0x230] MOV R8D,0x4 CALL 0x001527b4 MOV RBX,RAX LEA RAX,[0x433e60] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x288] LEA R15,[RBP + -0x238] MOV ESI,R14D XOR EDX,EDX MOV RCX,RBX MOV R8,R15 CALL qword ptr [RAX + 0x148] MOV qword ptr [R15],RAX TEST RAX,RAX JNZ 0x001379d0 MOV RDI,RBX XOR ESI,ESI MOV EDX,0x402 XOR ECX,ECX CALL 0x0015b164 LAB_0013794c: MOV dword ptr [R12],EAX TEST EAX,EAX JNS 0x001379a4 CALL 0x0015ecfe MOV EAX,dword ptr [RAX] JMP 0x001379b1 LAB_0013795d: LEA R15,[0x432040] MOV EBX,dword ptr [R15] TEST EBX,EBX JS 0x001379a4 LEA RAX,[0x433e60] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x230] MOV ESI,EBX MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x001379f4 MOV EDI,EBX XOR ESI,ESI CALL 0x0015d7a5 LAB_00137997: TEST EAX,EAX JZ 0x001379a8 CALL 0x0015ecfe MOV EAX,dword ptr [RAX] JMP 0x001379aa LAB_001379a4: XOR EAX,EAX JMP 0x001379b1 LAB_001379a8: XOR EAX,EAX LAB_001379aa: MOV dword ptr [R15],0xffffffff LAB_001379b1: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x28] JNZ 0x00137a0d ADD RSP,0x270 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001379d0: LEA RDX,[RBP + -0x238] LEA R14,[RBP + -0x23c] MOV RDI,RAX MOV RSI,RBX MOV RCX,R14 CALL 0x00128ece MOV EAX,dword ptr [R14] JMP 0x0013794c LAB_001379f4: LEA R14,[RBP + -0x288] MOV RDI,RAX MOV ESI,EBX MOV RDX,R14 CALL 0x00128f29 MOV EAX,dword ptr [R14] JMP 0x00137997 LAB_00137a0d: CALL 0x00128400
int4 mi_log(int param_1) { int iVar1; __pid_t _Var2; int4 uVar3; int8 uVar4; int4 *puVar5; long lVar6; long in_FS_OFFSET; int local_290 [19]; int local_244; long local_240; int1 local_238 [520]; long local_30; iVar1 = myisam_log_file; local_30 = *(long *)(in_FS_OFFSET + 0x28); log_type = param_1; if (param_1 == 0) { if (-1 < myisam_log_file) { lVar6 = (**(code **)(PSI_server + 0x158))(local_238,myisam_log_file,4); if (lVar6 == 0) { local_290[0] = my_close(iVar1,0); } else { mi_log_cold_2(lVar6,iVar1,local_290); } if (local_290[0] == 0) { uVar3 = 0; } else { puVar5 = (int4 *)_my_thread_var(); uVar3 = *puVar5; } myisam_log_file = -1; goto LAB_001379b1; } } else { if (myisam_pid == 0) { _Var2 = getpid(); myisam_pid = (long)_Var2; } uVar3 = mi_key_file_log; if (myisam_log_file < 0) { uVar4 = fn_format(local_238,myisam_log_filename,&DAT_0019a14d,".log",4); local_240 = (**(code **)(PSI_server + 0x148))(local_290,uVar3,0,uVar4,&local_240); if (local_240 == 0) { local_244 = my_create(uVar4,0,0x402,0); } else { mi_log_cold_1(local_240,uVar4,&local_240,&local_244); } myisam_log_file = local_244; if (local_244 < 0) { puVar5 = (int4 *)_my_thread_var(); uVar3 = *puVar5; goto LAB_001379b1; } } } uVar3 = 0; LAB_001379b1: if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
41,990
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::end()
monkey531[P]llama/common/json.hpp
iterator end() noexcept { iterator result(this); result.set_end(); return result; }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::end(): pushq %rbx movq %rdi, %rbx movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rsi, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movq %rax, 0x18(%rdi) movzbl (%rsi), %ecx cmpl $0x2, %ecx je 0x5de88 cmpl $0x1, %ecx jne 0x5de92 leaq 0x8(%rbx), %rax movq $0x0, (%rax) jmp 0x5de96 movq $0x0, 0x10(%rbx) jmp 0x5de96 movq %rax, 0x18(%rbx) movq %rbx, %rdi callq 0x5f038 movq %rbx, %rax popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv: push rbx mov rbx, rdi mov rax, 8000000000000000h mov [rdi], rsi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 mov [rdi+18h], rax movzx ecx, byte ptr [rsi] cmp ecx, 2 jz short loc_5DE88 cmp ecx, 1 jnz short loc_5DE92 lea rax, [rbx+8] mov qword ptr [rax], 0 jmp short loc_5DE96 loc_5DE88: mov qword ptr [rbx+10h], 0 jmp short loc_5DE96 loc_5DE92: mov [rbx+18h], rax loc_5DE96: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void) mov rax, rbx pop rbx retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::end( long long a1, unsigned __int8 *a2) { int v2; // ecx *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)(a1 + 24) = 0x8000000000000000LL; v2 = *a2; if ( v2 == 2 ) { *(_QWORD *)(a1 + 16) = 0LL; } else if ( v2 == 1 ) { *(_QWORD *)(a1 + 8) = 0LL; } else { *(_QWORD *)(a1 + 24) = 0x8000000000000000LL; } nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(a1); return a1; }
end: PUSH RBX MOV RBX,RDI MOV RAX,-0x8000000000000000 MOV qword ptr [RDI],RSI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV qword ptr [RDI + 0x18],RAX MOVZX ECX,byte ptr [RSI] CMP ECX,0x2 JZ 0x0015de88 CMP ECX,0x1 JNZ 0x0015de92 LEA RAX,[RBX + 0x8] MOV qword ptr [RAX],0x0 JMP 0x0015de96 LAB_0015de88: MOV qword ptr [RBX + 0x10],0x0 JMP 0x0015de96 LAB_0015de92: MOV qword ptr [RBX + 0x18],RAX LAB_0015de96: MOV RDI,RBX CALL 0x0015f038 MOV RAX,RBX POP RBX RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::end() */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::end(void) { char *in_RSI; 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>> *in_RDI; *(char **)in_RDI = in_RSI; *(int8 *)(in_RDI + 8) = 0; *(int8 *)(in_RDI + 0x10) = 0; *(int8 *)(in_RDI + 0x18) = 0x8000000000000000; if (*in_RSI == '\x02') { *(int8 *)(in_RDI + 0x10) = 0; } else if (*in_RSI == '\x01') { *(int8 *)(in_RDI + 8) = 0; } else { *(int8 *)(in_RDI + 0x18) = 0x8000000000000000; } detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::set_end(in_RDI); return; }
41,991
my_numcells_cp932
eloqsql/strings/ctype-cp932.c
static size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen= 0; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b >= 0xA1 && *b <= 0xDF) { clen++; b++; } else if (*b > 0x7F) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_cp932: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq $0x0, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x37645 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xa1, %eax jl 0x37600 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0xdf, %eax jg 0x37600 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x37640 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x7f, %eax jle 0x37626 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x3763e movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x37640 jmp 0x375c0 movq -0x20(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
my_numcells_cp932: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], 0 mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_375C0: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb short loc_37645 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0A1h jl short loc_37600 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 0DFh jg short loc_37600 mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax jmp short loc_37640 loc_37600: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 7Fh jle short loc_37626 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_3763E loc_37626: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_3763E: jmp short $+2 loc_37640: jmp loc_375C0 loc_37645: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_cp932(long long a1, unsigned __int8 *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( *a2 < 0xA1u || *a2 > 0xDFu ) { if ( *a2 <= 0x7Fu ) { ++v5; ++a2; } else { v5 += 2LL; a2 += 2; } } else { ++v5; ++a2; } } return v5; }
my_numcells_cp932: 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],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_001375c0: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x00137645 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xa1 JL 0x00137600 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0xdf JG 0x00137600 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x00137640 LAB_00137600: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x7f JLE 0x00137626 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x0013763e LAB_00137626: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_0013763e: JMP 0x00137640 LAB_00137640: JMP 0x001375c0 LAB_00137645: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if ((*local_30 < 0xa1) || (0xdf < *local_30)) { if (*local_30 < 0x80) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } else { local_28 = local_28 + 1; local_30 = local_30 + 1; } } return local_28; }
41,992
flatbuffers::vector_downward::clear_allocator()
mnn-tts/MNN/3rd_party/flatbuffers/include/flatbuffers/flatbuffers.h
void clear_allocator() { if (own_allocator_ && allocator_) { delete allocator_; } allocator_ = nullptr; own_allocator_ = false; }
O0
c
flatbuffers::vector_downward::clear_allocator(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) testb $0x1, 0x8(%rax) je 0x5e092 movq 0x8(%rsp), %rax cmpq $0x0, (%rax) je 0x5e092 movq 0x8(%rsp), %rax movq (%rax), %rax movq %rax, (%rsp) cmpq $0x0, %rax je 0x5e090 movq (%rsp), %rdi movq (%rdi), %rax callq *0x8(%rax) jmp 0x5e092 movq 0x8(%rsp), %rax movq $0x0, (%rax) movb $0x0, 0x8(%rax) addq $0x18, %rsp retq nopw (%rax,%rax)
_ZN11flatbuffers15vector_downward15clear_allocatorEv: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_10], rax test byte ptr [rax+8], 1 jz short loc_5E092 mov rax, [rsp+18h+var_10] cmp qword ptr [rax], 0 jz short loc_5E092 mov rax, [rsp+18h+var_10] mov rax, [rax] mov [rsp+18h+var_18], rax cmp rax, 0 jz short loc_5E090 mov rdi, [rsp+18h+var_18] mov rax, [rdi] call qword ptr [rax+8] loc_5E090: jmp short $+2 loc_5E092: mov rax, [rsp+18h+var_10] mov qword ptr [rax], 0 mov byte ptr [rax+8], 0 add rsp, 18h retn
flatbuffers::vector_downward * flatbuffers::vector_downward::clear_allocator( flatbuffers::vector_downward *this) { flatbuffers::vector_downward *result; // rax if ( (*((_BYTE *)this + 8) & 1) != 0 && *(_QWORD *)this ) (*(void ( **)(_QWORD))(**(_QWORD **)this + 8LL))(*(_QWORD *)this); result = this; *(_QWORD *)this = 0LL; *((_BYTE *)this + 8) = 0; return result; }
clear_allocator: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX TEST byte ptr [RAX + 0x8],0x1 JZ 0x0015e092 MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RAX],0x0 JZ 0x0015e092 MOV RAX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP],RAX CMP RAX,0x0 JZ 0x0015e090 MOV RDI,qword ptr [RSP] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0015e090: JMP 0x0015e092 LAB_0015e092: MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX],0x0 MOV byte ptr [RAX + 0x8],0x0 ADD RSP,0x18 RET
/* flatbuffers::vector_downward::clear_allocator() */ void __thiscall flatbuffers::vector_downward::clear_allocator(vector_downward *this) { if (((((byte)this[8] & 1) != 0) && (*(long *)this != 0)) && (*(long **)this != (long *)0x0)) { (**(code **)(**(long **)this + 8))(); } *(int8 *)this = 0; this[8] = (vector_downward)0x0; return; }
41,993
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan()
llama.cpp/common/./json.hpp
token_type scan() { // initially, skip the BOM if (position.chars_read_total == 0 && !skip_bom()) { error_message = "invalid BOM; must be 0xEF 0xBB 0xBF if given"; return token_type::parse_error; } // read next character and ignore whitespace skip_whitespace(); // ignore comments while (ignore_comments && current == '/') { if (!scan_comment()) { return token_type::parse_error; } // skip following whitespace skip_whitespace(); } switch (current) { // structural characters case '[': return token_type::begin_array; case ']': return token_type::end_array; case '{': return token_type::begin_object; case '}': return token_type::end_object; case ':': return token_type::name_separator; case ',': return token_type::value_separator; // literals case 't': { std::array<char_type, 4> true_literal = {{static_cast<char_type>('t'), static_cast<char_type>('r'), static_cast<char_type>('u'), static_cast<char_type>('e')}}; return scan_literal(true_literal.data(), true_literal.size(), token_type::literal_true); } case 'f': { std::array<char_type, 5> false_literal = {{static_cast<char_type>('f'), static_cast<char_type>('a'), static_cast<char_type>('l'), static_cast<char_type>('s'), static_cast<char_type>('e')}}; return scan_literal(false_literal.data(), false_literal.size(), token_type::literal_false); } case 'n': { std::array<char_type, 4> null_literal = {{static_cast<char_type>('n'), static_cast<char_type>('u'), static_cast<char_type>('l'), static_cast<char_type>('l')}}; return scan_literal(null_literal.data(), null_literal.size(), token_type::literal_null); } // string case '\"': return scan_string(); // number case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return scan_number(); // end of input (the null byte is needed when parsing from // string literals) case '\0': case char_traits<char_type>::eof(): return token_type::end_of_input; // error default: error_message = "invalid literal"; return token_type::parse_error; } }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx cmpq $0x0, 0x20(%rdi) jne 0x821f3 movq %rbx, %rdi callq 0x8238a testb %al, %al je 0x822b5 movabsq $0x100002600, %r14 # imm = 0x100002600 movq %rbx, %rdi callq 0x26974 movl 0x14(%rbx), %eax cmpq $0x20, %rax ja 0x8223d btq %rax, %r14 jb 0x821fd jmp 0x8223d movq %rbx, %rdi callq 0x823cc testb %al, %al je 0x822c0 movq %rbx, %rdi callq 0x26974 movl 0x14(%rbx), %eax cmpq $0x20, %rax ja 0x8223d btq %rax, %r14 jb 0x82226 cmpl $0x2f, %eax jne 0x82248 cmpb $0x0, 0x10(%rbx) jne 0x82216 cmpl $0x5a, %eax jg 0x82278 leal -0x22(%rax), %ecx cmpl $0x18, %ecx ja 0x82302 leaq 0xf01f8(%rip), %rax # 0x172458 movslq (%rax,%rcx,4), %rcx addq %rax, %rcx jmpq *%rcx movq %rbx, %rdi addq $0x18, %rsp popq %rbx popq %r14 jmp 0x82936 cmpl $0x6d, %eax jle 0x822cd cmpl $0x7a, %eax jg 0x82310 cmpl $0x6e, %eax je 0x8234a cmpl $0x74, %eax jne 0x82321 leaq 0xc(%rsp), %rsi movl $0x65757274, (%rsi) # imm = 0x65757274 movl $0x4, %edx movq %rbx, %rdi movl $0x1, %ecx jmp 0x82362 leaq 0xf3288(%rip), %rax # 0x175544 movq %rax, 0x70(%rbx) movl $0xe, %eax addq $0x18, %rsp popq %rbx popq %r14 retq cmpl $0x5b, %eax je 0x82376 cmpl $0x5d, %eax je 0x82380 cmpl $0x66, %eax jne 0x82321 leaq 0x10(%rsp), %rsi movb $0x65, 0x4(%rsi) movl $0x736c6166, (%rsi) # imm = 0x736C6166 movl $0x5, %edx movq %rbx, %rdi movl $0x2, %ecx jmp 0x82362 incl %eax cmpl $0x2, %eax jae 0x82321 movl $0xf, %eax jmp 0x822c5 cmpl $0x7b, %eax je 0x8236c cmpl $0x7d, %eax jne 0x82321 movl $0xb, %eax jmp 0x822c5 leaq 0xf3249(%rip), %rax # 0x175571 jmp 0x822bc movl $0xc, %eax jmp 0x822c5 movq %rbx, %rdi addq $0x18, %rsp popq %rbx popq %r14 jmp 0x824c4 movl $0xd, %eax jmp 0x822c5 leaq 0x8(%rsp), %rsi movl $0x6c6c756e, (%rsi) # imm = 0x6C6C756E movl $0x4, %edx movq %rbx, %rdi movl $0x3, %ecx callq 0x82448 jmp 0x822c5 movl $0x9, %eax jmp 0x822c5 movl $0x8, %eax jmp 0x822c5 movl $0xa, %eax jmp 0x822c5
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv: push r14 push rbx sub rsp, 18h mov rbx, rdi cmp qword ptr [rdi+20h], 0 jnz short loc_821F3 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE8skip_bomEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(void) test al, al jz loc_822B5 loc_821F3: mov r14, 100002600h loc_821FD: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) mov eax, [rbx+14h] cmp rax, 20h ; ' ' ja short loc_8223D bt r14, rax jb short loc_821FD jmp short loc_8223D loc_82216: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12scan_commentEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_comment(void) test al, al jz loc_822C0 loc_82226: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void) mov eax, [rbx+14h] cmp rax, 20h ; ' ' ja short loc_8223D bt r14, rax jb short loc_82226 loc_8223D: cmp eax, 2Fh ; '/' jnz short loc_82248 cmp byte ptr [rbx+10h], 0 jnz short loc_82216 loc_82248: cmp eax, 5Ah ; 'Z' jg short loc_82278 lea ecx, [rax-22h]; switch 25 cases cmp ecx, 18h ja def_82267; jumptable 0000000000082267 default case lea rax, jpt_82267 movsxd rcx, ds:(jpt_82267 - 172458h)[rax+rcx*4] add rcx, rax jmp rcx; switch jump loc_82269: mov rdi, rbx; jumptable 0000000000082267 cases 45,48-57 add rsp, 18h pop rbx pop r14 jmp _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_numberEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number(void) loc_82278: cmp eax, 6Dh ; 'm' jle short loc_822CD cmp eax, 7Ah ; 'z' jg loc_82310 cmp eax, 6Eh ; 'n' jz loc_8234A cmp eax, 74h ; 't' jnz loc_82321; jumptable 0000000000082267 cases 35-43,46,47 lea rsi, [rsp+28h+var_1C] mov dword ptr [rsi], 65757274h mov edx, 4 mov rdi, rbx mov ecx, 1 jmp loc_82362 loc_822B5: lea rax, aInvalidBomMust; "invalid BOM; must be 0xEF 0xBB 0xBF if "... loc_822BC: mov [rbx+70h], rax loc_822C0: mov eax, 0Eh loc_822C5: add rsp, 18h pop rbx pop r14 retn loc_822CD: cmp eax, 5Bh ; '[' jz loc_82376 cmp eax, 5Dh ; ']' jz loc_82380 cmp eax, 66h ; 'f' jnz short loc_82321; jumptable 0000000000082267 cases 35-43,46,47 lea rsi, [rsp+28h+var_18] mov byte ptr [rsi+4], 65h ; 'e' mov dword ptr [rsi], 736C6166h mov edx, 5 mov rdi, rbx mov ecx, 2 jmp short loc_82362 def_82267: inc eax; jumptable 0000000000082267 default case cmp eax, 2 jnb short loc_82321; jumptable 0000000000082267 cases 35-43,46,47 mov eax, 0Fh jmp short loc_822C5 loc_82310: cmp eax, 7Bh ; '{' jz short loc_8236C cmp eax, 7Dh ; '}' jnz short loc_82321; jumptable 0000000000082267 cases 35-43,46,47 mov eax, 0Bh jmp short loc_822C5 loc_82321: lea rax, aInvalidLiteral; jumptable 0000000000082267 cases 35-43,46,47 jmp short loc_822BC loc_8232A: mov eax, 0Ch; jumptable 0000000000082267 case 58 jmp short loc_822C5 loc_82331: mov rdi, rbx; jumptable 0000000000082267 case 34 add rsp, 18h pop rbx pop r14 jmp _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(void) loc_82340: mov eax, 0Dh; jumptable 0000000000082267 case 44 jmp loc_822C5 loc_8234A: lea rsi, [rsp+28h+var_20] mov dword ptr [rsi], 6C6C756Eh mov edx, 4 mov rdi, rbx mov ecx, 3 loc_82362: call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12scan_literalESK_mNS1_10lexer_baseISF_E10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal(char const*,ulong,nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) jmp loc_822C5 loc_8236C: mov eax, 9 jmp loc_822C5 loc_82376: mov eax, 8 jmp loc_822C5 loc_82380: mov eax, 0Ah jmp loc_822C5
long long nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan( __m128i *a1) { long long v1; // r14 unsigned long long v2; // rax long long result; // rax int *v4; // rsi long long v5; // rdx long long v6; // rcx const char *v7; // rax int v8; // [rsp+8h] [rbp-20h] BYREF int v9; // [rsp+Ch] [rbp-1Ch] BYREF _BYTE v10[24]; // [rsp+10h] [rbp-18h] BYREF if ( a1[2].m128i_i64[0] || (unsigned __int8)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::skip_bom(a1) ) { v1 = 0x100002600LL; do { nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1); v2 = a1[1].m128i_u32[1]; } while ( v2 <= 0x20 && _bittest64(&v1, v2) ); while ( (_DWORD)v2 == 47 && a1[1].m128i_i8[0] ) { if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_comment(a1) ) return 14LL; do { nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1); v2 = a1[1].m128i_u32[1]; } while ( v2 <= 0x20 && _bittest64(&v1, v2) ); } if ( (int)v2 <= 90 ) { switch ( (int)v2 ) { case '"': result = nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_string(a1); break; case '#': case '$': case '%': case '&': case '\'': case '(': case ')': case '*': case '+': case '.': case '/': goto LABEL_33; case ',': result = 13LL; break; case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': result = nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_number(a1); break; case ':': result = 12LL; break; default: if ( (unsigned int)(v2 + 1) >= 2 ) goto LABEL_33; result = 15LL; break; } return result; } if ( (int)v2 <= 109 ) { switch ( (_DWORD)v2 ) { case '[': return 8LL; case ']': return 10LL; case 'f': v4 = (int *)v10; qmemcpy(v10, "false", 5); v5 = 5LL; v6 = 2LL; return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal( a1, v4, v5, v6); } } else if ( (int)v2 > 122 ) { if ( (_DWORD)v2 == 123 ) return 9LL; if ( (_DWORD)v2 == 125 ) return 11LL; } else { if ( (_DWORD)v2 == 110 ) { v4 = &v8; v8 = 1819047278; v5 = 4LL; v6 = 3LL; return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal( a1, v4, v5, v6); } if ( (_DWORD)v2 == 116 ) { v4 = &v9; v9 = 1702195828; v5 = 4LL; v6 = 1LL; return nlohmann::json_abi_v3_11_3::detail::lexer<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>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan_literal( a1, v4, v5, v6); } } LABEL_33: v7 = "invalid literal"; } else { v7 = "invalid BOM; must be 0xEF 0xBB 0xBF if given"; } a1[7].m128i_i64[0] = (long long)v7; return 14LL; }
scan: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI CMP qword ptr [RDI + 0x20],0x0 JNZ 0x001821f3 MOV RDI,RBX CALL 0x0018238a TEST AL,AL JZ 0x001822b5 LAB_001821f3: MOV R14,0x100002600 LAB_001821fd: MOV RDI,RBX CALL 0x00126974 MOV EAX,dword ptr [RBX + 0x14] CMP RAX,0x20 JA 0x0018223d BT R14,RAX JC 0x001821fd JMP 0x0018223d LAB_00182216: MOV RDI,RBX CALL 0x001823cc TEST AL,AL JZ 0x001822c0 LAB_00182226: MOV RDI,RBX CALL 0x00126974 MOV EAX,dword ptr [RBX + 0x14] CMP RAX,0x20 JA 0x0018223d BT R14,RAX JC 0x00182226 LAB_0018223d: CMP EAX,0x2f JNZ 0x00182248 CMP byte ptr [RBX + 0x10],0x0 JNZ 0x00182216 LAB_00182248: CMP EAX,0x5a JG 0x00182278 LEA ECX,[RAX + -0x22] CMP ECX,0x18 JA 0x00182302 LEA RAX,[0x272458] MOVSXD RCX,dword ptr [RAX + RCX*0x4] ADD RCX,RAX switchD: JMP RCX caseD_2d: MOV RDI,RBX ADD RSP,0x18 POP RBX POP R14 JMP 0x00182936 LAB_00182278: CMP EAX,0x6d JLE 0x001822cd CMP EAX,0x7a JG 0x00182310 CMP EAX,0x6e JZ 0x0018234a CMP EAX,0x74 JNZ 0x00182321 LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],0x65757274 MOV EDX,0x4 MOV RDI,RBX MOV ECX,0x1 JMP 0x00182362 LAB_001822b5: LEA RAX,[0x275544] LAB_001822bc: MOV qword ptr [RBX + 0x70],RAX LAB_001822c0: MOV EAX,0xe LAB_001822c5: ADD RSP,0x18 POP RBX POP R14 RET LAB_001822cd: CMP EAX,0x5b JZ 0x00182376 CMP EAX,0x5d JZ 0x00182380 CMP EAX,0x66 JNZ 0x00182321 LEA RSI,[RSP + 0x10] MOV byte ptr [RSI + 0x4],0x65 MOV dword ptr [RSI],0x736c6166 MOV EDX,0x5 MOV RDI,RBX MOV ECX,0x2 JMP 0x00182362 default: INC EAX CMP EAX,0x2 JNC 0x00182321 MOV EAX,0xf JMP 0x001822c5 LAB_00182310: CMP EAX,0x7b JZ 0x0018236c CMP EAX,0x7d JNZ 0x00182321 MOV EAX,0xb JMP 0x001822c5 caseD_23: LEA RAX,[0x275571] JMP 0x001822bc caseD_3a: MOV EAX,0xc JMP 0x001822c5 caseD_22: MOV RDI,RBX ADD RSP,0x18 POP RBX POP R14 JMP 0x001824c4 caseD_2c: MOV EAX,0xd JMP 0x001822c5 LAB_0018234a: LEA RSI,[RSP + 0x8] MOV dword ptr [RSI],0x6c6c756e MOV EDX,0x4 MOV RDI,RBX MOV ECX,0x3 LAB_00182362: CALL 0x00182448 JMP 0x001822c5 LAB_0018236c: MOV EAX,0x9 JMP 0x001822c5 LAB_00182376: MOV EAX,0x8 JMP 0x001822c5 LAB_00182380: MOV EAX,0xa JMP 0x001822c5
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::scan() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { char cVar1; int iVar2; ulong uVar3; int8 uVar4; char *pcVar5; int8 uVar6; int4 *puVar7; int4 local_20; int4 local_1c; int4 local_18; int1 local_14; if ((*(long *)(this + 0x20) != 0) || (cVar1 = skip_bom(this), cVar1 != '\0')) { do { get(this); uVar3 = (ulong)*(uint *)(this + 0x14); if (0x20 < uVar3) break; } while ((0x100002600U >> (uVar3 & 0x3f) & 1) != 0); do { iVar2 = (int)uVar3; if ((iVar2 != 0x2f) || (this[0x10] == (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> )0x0)) goto LAB_00182248; cVar1 = scan_comment(this); if (cVar1 == '\0') goto LAB_001822c0; do { get(this); uVar3 = (ulong)*(uint *)(this + 0x14); if (0x20 < uVar3) break; } while ((0x100002600U >> (uVar3 & 0x3f) & 1) != 0); } while( true ); } pcVar5 = "invalid BOM; must be 0xEF 0xBB 0xBF if given"; goto LAB_001822bc; LAB_00182248: if (0x5a < iVar2) { if (iVar2 < 0x6e) { if (iVar2 == 0x5b) { return 8; } if (iVar2 == 0x5d) { return 10; } if (iVar2 == 0x66) { puVar7 = &local_18; local_14 = 0x65; local_18 = 0x736c6166; uVar6 = 5; uVar4 = 2; goto LAB_00182362; } } else if (iVar2 < 0x7b) { if (iVar2 == 0x6e) { puVar7 = &local_20; local_20 = 0x6c6c756e; uVar6 = 4; uVar4 = 3; LAB_00182362: uVar4 = scan_literal(this,puVar7,uVar6,uVar4); return uVar4; } if (iVar2 == 0x74) { puVar7 = &local_1c; local_1c = 0x65757274; uVar6 = 4; uVar4 = 1; goto LAB_00182362; } } else { if (iVar2 == 0x7b) { return 9; } if (iVar2 == 0x7d) { return 0xb; } } goto switchD_00182267_caseD_23; } switch(iVar2) { case 0x22: uVar4 = scan_string(this); return uVar4; case 0x2c: uVar4 = 0xd; break; case 0x2d: case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: uVar4 = scan_number(this); return uVar4; case 0x3a: uVar4 = 0xc; break; default: if (iVar2 + 1U < 2) { return 0xf; } case 0x23: case 0x24: case 0x25: case 0x26: case 0x27: case 0x28: case 0x29: case 0x2a: case 0x2b: case 0x2e: case 0x2f: switchD_00182267_caseD_23: pcVar5 = "invalid literal"; LAB_001822bc: *(char **)(this + 0x70) = pcVar5; LAB_001822c0: uVar4 = 0xe; } return uVar4; }
41,994
LefDefParser::defwIsPropObjType(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwIsPropObjType(const char *objType) { if (strcmp(objType, "DESIGN") && strcmp(objType, "COMPONENT") && strcmp(objType, "NET") && strcmp(objType, "SPECIALNET") && strcmp(objType, "GROUP") && strcmp(objType, "ROW") && strcmp(objType, "COMPONENTPIN") && strcmp(objType, "REGION") && strcmp(objType, "NONDEFAULTRULE")) return 0; return 1; }
O0
cpp
LefDefParser::defwIsPropObjType(char const*): subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rdi leaq 0x11f75(%rip), %rsi # 0x2356a callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f15(%rip), %rsi # 0x23524 callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f27(%rip), %rsi # 0x23550 callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f06(%rip), %rsi # 0x23549 callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11eb3(%rip), %rsi # 0x2350c callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f1f(%rip), %rsi # 0x2358e callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f25(%rip), %rsi # 0x235aa callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11e5e(%rip), %rsi # 0x234f9 callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movq 0x8(%rsp), %rdi leaq 0x11f43(%rip), %rsi # 0x235f4 callq 0x10e0 cmpl $0x0, %eax je 0x116c5 movl $0x0, 0x14(%rsp) jmp 0x116cd movl $0x1, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser17defwIsPropObjTypeEPKc: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rdi, [rsp+18h+var_10] lea rsi, aDesign; "DESIGN" call _strcmp cmp eax, 0 jz loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aComponent; "COMPONENT" call _strcmp cmp eax, 0 jz loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aSpecialnet+7; "NET" call _strcmp cmp eax, 0 jz loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aSpecialnet; "SPECIALNET" call _strcmp cmp eax, 0 jz short loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aGroup; "GROUP" call _strcmp cmp eax, 0 jz short loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aRow; "ROW" call _strcmp cmp eax, 0 jz short loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aComponentpin; "COMPONENTPIN" call _strcmp cmp eax, 0 jz short loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aRegion; "REGION" call _strcmp cmp eax, 0 jz short loc_116C5 mov rdi, [rsp+18h+var_10] lea rsi, aNondefaultrule; "NONDEFAULTRULE" call _strcmp cmp eax, 0 jz short loc_116C5 mov [rsp+18h+var_4], 0 jmp short loc_116CD loc_116C5: mov [rsp+18h+var_4], 1 loc_116CD: mov eax, [rsp+18h+var_4] add rsp, 18h retn
_BOOL8 LefDefParser::defwIsPropObjType(LefDefParser *this, const char *a2) { return !(unsigned int)strcmp(this, "DESIGN") || !(unsigned int)strcmp(this, "COMPONENT") || !(unsigned int)strcmp(this, "NET") || !(unsigned int)strcmp(this, "SPECIALNET") || !(unsigned int)strcmp(this, "GROUP") || !(unsigned int)strcmp(this, "ROW") || !(unsigned int)strcmp(this, "COMPONENTPIN") || !(unsigned int)strcmp(this, "REGION") || !(unsigned int)strcmp(this, "NONDEFAULTRULE"); }
defwIsPropObjType: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x12356a] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x123524] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x123550] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x123549] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x12350c] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x12358e] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x1235aa] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x1234f9] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x1235f4] CALL 0x001010e0 CMP EAX,0x0 JZ 0x001116c5 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001116cd LAB_001116c5: MOV dword ptr [RSP + 0x14],0x1 LAB_001116cd: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::defwIsPropObjType(char const*) */ int4 LefDefParser::defwIsPropObjType(char *param_1) { int iVar1; iVar1 = strcmp(param_1,"DESIGN"); if ((((((iVar1 != 0) && (iVar1 = strcmp(param_1,"COMPONENT"), iVar1 != 0)) && (iVar1 = strcmp(param_1,"NET"), iVar1 != 0)) && ((iVar1 = strcmp(param_1,"SPECIALNET"), iVar1 != 0 && (iVar1 = strcmp(param_1,"GROUP"), iVar1 != 0)))) && ((iVar1 = strcmp(param_1,"ROW"), iVar1 != 0 && ((iVar1 = strcmp(param_1,"COMPONENTPIN"), iVar1 != 0 && (iVar1 = strcmp(param_1,"REGION"), iVar1 != 0)))))) && (iVar1 = strcmp(param_1,"NONDEFAULTRULE"), iVar1 != 0)) { return 0; } return 1; }
41,995
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>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>)
monkey531[P]llama/common/./json.hpp
basic_json& operator=(basic_json other) noexcept ( std::is_nothrow_move_constructible<value_t>::value&& std::is_nothrow_move_assignable<value_t>::value&& std::is_nothrow_move_constructible<json_value>::value&& std::is_nothrow_move_assignable<json_value>::value&& std::is_nothrow_move_assignable<json_base_class_t>::value ) { // check that passed value is valid other.assert_invariant(); using std::swap; swap(m_data.m_type, other.m_data.m_type); swap(m_data.m_value, other.m_data.m_value); json_base_class_t::operator=(std::move(other)); set_parents(); assert_invariant(); return *this; }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi movl $0x1, %esi callq 0x438fc movb (%r14), %al movb (%rbx), %cl movb %cl, (%r14) movb %al, (%rbx) movq 0x8(%r14), %rax movq 0x8(%rbx), %rcx movq %rcx, 0x8(%r14) movq %rax, 0x8(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x438fc movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_: push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rdi, rsi mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov al, [r14] mov cl, [rbx] mov [r14], cl mov [rbx], al mov rax, [r14+8] mov rcx, [rbx+8] mov [r14+8], rcx mov [rbx+8], rax mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rax, r14 add rsp, 8 pop rbx pop r14 retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( long long a1, long long a2) { char v2; // al long long v3; // rax nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a2); v2 = *(_BYTE *)a1; *(_BYTE *)a1 = *(_BYTE *)a2; *(_BYTE *)a2 = v2; v3 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 8) = *(_QWORD *)(a2 + 8); *(_QWORD *)(a2 + 8) = v3; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); return a1; }
operator=: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RDI,RSI MOV ESI,0x1 CALL 0x001438fc MOV AL,byte ptr [R14] MOV CL,byte ptr [RBX] MOV byte ptr [R14],CL MOV byte ptr [RBX],AL MOV RAX,qword ptr [R14 + 0x8] MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [R14 + 0x8],RCX MOV qword ptr [RBX + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x001438fc MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> * __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *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> *param_2) { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; int8 uVar2; assert_invariant(SUB81(param_2,0)); bVar1 = *this; *this = *param_2; *param_2 = bVar1; uVar2 = *(int8 *)(this + 8); *(int8 *)(this + 8) = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = uVar2; assert_invariant(SUB81(this,0)); return this; }
41,996
my_thread_init_common_mutex
eloqsql/mysys/my_thr_init.c
static void my_thread_init_common_mutex(void) { mysql_mutex_init(key_THR_LOCK_open, &THR_LOCK_open, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_lock, &THR_LOCK_lock, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_myisam, &THR_LOCK_myisam, MY_MUTEX_INIT_SLOW); mysql_mutex_init(key_THR_LOCK_myisam_mmap, &THR_LOCK_myisam_mmap, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_heap, &THR_LOCK_heap, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_net, &THR_LOCK_net, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_THR_LOCK_charset, &THR_LOCK_charset, MY_MUTEX_INIT_FAST); #if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R) mysql_mutex_init(key_LOCK_localtime_r, &LOCK_localtime_r, MY_MUTEX_INIT_SLOW); #endif }
O3
c
my_thread_init_common_mutex: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax leaq 0xb66b5d(%rip), %rax # 0xc09888 movl (%rax), %edi leaq 0x2e52dc(%rip), %r15 # 0x388010 movq (%r15), %rax leaq 0xb67532(%rip), %r14 # 0xc0a270 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) leaq 0xb67815(%rip), %rbx # 0xc0a570 movq %r14, %rdi movq %rbx, %rsi callq 0x29320 leaq 0xb66b07(%rip), %rax # 0xc09874 movl (%rax), %edi movq (%r15), %rax leaq 0xb6753f(%rip), %r14 # 0xc0a2b8 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi movq %rbx, %rsi callq 0x29320 leaq 0xb66adf(%rip), %rax # 0xc09880 movl (%rax), %edi movq (%r15), %rax leaq 0xb67553(%rip), %r14 # 0xc0a300 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi xorl %esi, %esi callq 0x29320 leaq 0xb66ac0(%rip), %rax # 0xc09894 movl (%rax), %edi movq (%r15), %rax leaq 0xb67568(%rip), %r14 # 0xc0a348 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi movq %rbx, %rsi callq 0x29320 leaq 0xb66a68(%rip), %rax # 0xc09870 movl (%rax), %edi movq (%r15), %rax leaq 0xb6757c(%rip), %r14 # 0xc0a390 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi movq %rbx, %rsi callq 0x29320 leaq 0xb66a48(%rip), %rax # 0xc09884 movl (%rax), %edi movq (%r15), %rax leaq 0xb67590(%rip), %r14 # 0xc0a3d8 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi movq %rbx, %rsi callq 0x29320 leaq 0xb669fc(%rip), %rax # 0xc0986c movl (%rax), %edi movq (%r15), %rax leaq 0xb675a4(%rip), %r14 # 0xc0a420 movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x40(%r14) movq %r14, 0x38(%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%r14) movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x29320
my_thread_init_common_mutex: push rbp mov rbp, rsp push r15 push r14 push rbx push rax lea rax, key_THR_LOCK_open mov edi, [rax] lea r15, PSI_server mov rax, [r15] lea r14, THR_LOCK_open mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 lea rbx, my_fast_mutexattr mov rdi, r14 mov rsi, rbx call _pthread_mutex_init lea rax, key_THR_LOCK_lock mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_lock mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 mov rsi, rbx call _pthread_mutex_init lea rax, key_THR_LOCK_myisam mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_myisam mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 xor esi, esi call _pthread_mutex_init lea rax, key_THR_LOCK_myisam_mmap mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_myisam_mmap mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 mov rsi, rbx call _pthread_mutex_init lea rax, key_THR_LOCK_heap mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_heap mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 mov rsi, rbx call _pthread_mutex_init lea rax, key_THR_LOCK_net mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_net mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 mov rsi, rbx call _pthread_mutex_init lea rax, key_THR_LOCK_charset mov edi, [rax] mov rax, [r15] lea r14, THR_LOCK_charset mov rsi, r14 call qword ptr [rax+40h] mov [r14+40h], rax mov [r14+38h], r14 xorps xmm0, xmm0 movups xmmword ptr [r14+28h], xmm0 mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _pthread_mutex_init
long long my_thread_init_common_mutex() { THR_LOCK_open[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(key_THR_LOCK_open, THR_LOCK_open); THR_LOCK_open[7] = THR_LOCK_open; *(_OWORD *)&THR_LOCK_open[5] = 0LL; pthread_mutex_init(THR_LOCK_open, &my_fast_mutexattr); THR_LOCK_lock[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(key_THR_LOCK_lock, THR_LOCK_lock); THR_LOCK_lock[7] = THR_LOCK_lock; *(_OWORD *)&THR_LOCK_lock[5] = 0LL; pthread_mutex_init(THR_LOCK_lock, &my_fast_mutexattr); THR_LOCK_myisam[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(key_THR_LOCK_myisam, THR_LOCK_myisam); THR_LOCK_myisam[7] = THR_LOCK_myisam; *(_OWORD *)&THR_LOCK_myisam[5] = 0LL; pthread_mutex_init(THR_LOCK_myisam, 0LL); THR_LOCK_myisam_mmap[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])( key_THR_LOCK_myisam_mmap, THR_LOCK_myisam_mmap); THR_LOCK_myisam_mmap[7] = THR_LOCK_myisam_mmap; *(_OWORD *)&THR_LOCK_myisam_mmap[5] = 0LL; pthread_mutex_init(THR_LOCK_myisam_mmap, &my_fast_mutexattr); THR_LOCK_heap[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(key_THR_LOCK_heap, THR_LOCK_heap); THR_LOCK_heap[7] = THR_LOCK_heap; *(_OWORD *)&THR_LOCK_heap[5] = 0LL; pthread_mutex_init(THR_LOCK_heap, &my_fast_mutexattr); THR_LOCK_net[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(key_THR_LOCK_net, THR_LOCK_net); THR_LOCK_net[7] = THR_LOCK_net; *(_OWORD *)&THR_LOCK_net[5] = 0LL; pthread_mutex_init(THR_LOCK_net, &my_fast_mutexattr); THR_LOCK_charset[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])( key_THR_LOCK_charset, THR_LOCK_charset); THR_LOCK_charset[7] = THR_LOCK_charset; *(_OWORD *)&THR_LOCK_charset[5] = 0LL; return pthread_mutex_init(THR_LOCK_charset, &my_fast_mutexattr); }
my_thread_init_common_mutex: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX LEA RAX,[0xd09888] MOV EDI,dword ptr [RAX] LEA R15,[0x488010] MOV RAX,qword ptr [R15] LEA R14,[0xd0a270] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 LEA RBX,[0xd0a570] MOV RDI,R14 MOV RSI,RBX CALL 0x00129320 LEA RAX,[0xd09874] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a2b8] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 MOV RSI,RBX CALL 0x00129320 LEA RAX,[0xd09880] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a300] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00129320 LEA RAX,[0xd09894] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a348] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 MOV RSI,RBX CALL 0x00129320 LEA RAX,[0xd09870] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a390] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 MOV RSI,RBX CALL 0x00129320 LEA RAX,[0xd09884] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a3d8] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 MOV RSI,RBX CALL 0x00129320 LEA RAX,[0xd0986c] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [R15] LEA R14,[0xd0a420] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [R14 + 0x40],RAX MOV qword ptr [R14 + 0x38],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x28],XMM0 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00129320
void my_thread_init_common_mutex(void) { THR_LOCK_open._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_open,THR_LOCK_open); THR_LOCK_open._56_8_ = THR_LOCK_open; THR_LOCK_open._40_8_ = 0; THR_LOCK_open._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_open,(pthread_mutexattr_t *)&my_fast_mutexattr); THR_LOCK_lock._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_lock,THR_LOCK_lock); THR_LOCK_lock._56_8_ = THR_LOCK_lock; THR_LOCK_lock._40_8_ = 0; THR_LOCK_lock._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_lock,(pthread_mutexattr_t *)&my_fast_mutexattr); THR_LOCK_myisam._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_myisam); THR_LOCK_myisam._56_8_ = THR_LOCK_myisam; THR_LOCK_myisam._40_8_ = 0; THR_LOCK_myisam._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_myisam,(pthread_mutexattr_t *)0x0); THR_LOCK_myisam_mmap._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_myisam_mmap,THR_LOCK_myisam_mmap); THR_LOCK_myisam_mmap._56_8_ = THR_LOCK_myisam_mmap; THR_LOCK_myisam_mmap._40_8_ = 0; THR_LOCK_myisam_mmap._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_myisam_mmap, (pthread_mutexattr_t *)&my_fast_mutexattr); THR_LOCK_heap._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_heap,THR_LOCK_heap); THR_LOCK_heap._56_8_ = THR_LOCK_heap; THR_LOCK_heap._40_8_ = 0; THR_LOCK_heap._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_heap,(pthread_mutexattr_t *)&my_fast_mutexattr); THR_LOCK_net._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_net,THR_LOCK_net); THR_LOCK_net._56_8_ = THR_LOCK_net; THR_LOCK_net._40_8_ = 0; THR_LOCK_net._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_net,(pthread_mutexattr_t *)&my_fast_mutexattr); THR_LOCK_charset._64_8_ = (**(code **)(PSI_server + 0x40))(key_THR_LOCK_charset,THR_LOCK_charset); THR_LOCK_charset._56_8_ = THR_LOCK_charset; THR_LOCK_charset._40_8_ = 0; THR_LOCK_charset._48_8_ = 0; pthread_mutex_init((pthread_mutex_t *)THR_LOCK_charset,(pthread_mutexattr_t *)&my_fast_mutexattr); return; }
41,997
GenImagePerlinNoise
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rtextures.c
Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) { Color *pixels = (Color *)RL_MALLOC(width*height*sizeof(Color)); float aspectRatio = (float)width / (float)height; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { float nx = (float)(x + offsetX)*(scale/(float)width); float ny = (float)(y + offsetY)*(scale/(float)height); // Apply aspect ratio compensation to wider side if (width > height) nx *= aspectRatio; else ny /= aspectRatio; // Basic perlin noise implementation (not used) //float p = (stb_perlin_noise3(nx, ny, 0.0f, 0, 0, 0); // Calculate a better perlin noise using fbm (fractal brownian motion) // Typical values to start playing with: // lacunarity = ~2.0 -- spacing between successive octaves (use exactly 2.0 for wrapping output) // gain = 0.5 -- relative weighting applied to each successive octave // octaves = 6 -- number of "octaves" of noise3() to sum float p = stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6); // Clamp between -1.0f and 1.0f if (p < -1.0f) p = -1.0f; if (p > 1.0f) p = 1.0f; // We need to normalize the data from [-1..1] to [0..1] float np = (p + 1.0f)/2.0f; int intensity = (int)(np*255.0f); pixels[y*width + x] = (Color){ intensity, intensity, intensity, 255 }; } } Image image = { .data = pixels, .width = width, .height = height, .format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, .mipmaps = 1 }; return image; }
O2
c
GenImagePerlinNoise: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movss %xmm0, 0x8(%rsp) movq %r8, 0x30(%rsp) movl %ecx, %r13d movl %edx, %ebp movl %esi, %r15d movq %rdi, 0x20(%rsp) movl %edx, %eax imull %esi, %eax movslq %eax, %rdi shlq $0x2, %rdi callq 0x96e0 cvtsi2ss %r15d, %xmm1 movq %rax, %r14 cvtsi2ss %ebp, %xmm0 movss 0x8(%rsp), %xmm3 movaps %xmm3, %xmm2 divss %xmm1, %xmm2 movss %xmm2, 0x14(%rsp) divss %xmm0, %xmm1 movss %xmm1, 0x10(%rsp) testl %r15d, %r15d movl $0x0, %ebx cmovgl %r15d, %ebx movaps %xmm3, %xmm1 divss %xmm0, %xmm1 movss %xmm1, 0x8(%rsp) movslq %r15d, %rcx testl %ebp, %ebp movl $0x0, %edx cmovgl %ebp, %edx movq %rdx, 0x38(%rsp) movq %rax, 0x18(%rsp) addq $0x3, %r14 shlq $0x2, %rcx movq %rcx, 0x28(%rsp) movl %r13d, %r12d xorl %ecx, %ecx cmpq 0x38(%rsp), %rcx je 0x7f5b8 movq 0x30(%rsp), %rax addl %ecx, %eax cvtsi2ss %eax, %xmm0 mulss 0x8(%rsp), %xmm0 cmpl %ebp, %r15d movq %rcx, 0x40(%rsp) jg 0x7f506 divss 0x10(%rsp), %xmm0 movss %xmm0, 0xc(%rsp) xorl %r13d, %r13d cmpq %r13, %rbx je 0x7f5a6 leal (%r12,%r13), %eax cvtsi2ss %eax, %xmm0 mulss 0x14(%rsp), %xmm0 cmpl %ebp, %r15d jle 0x7f531 mulss 0x10(%rsp), %xmm0 movss 0xc(%rsp), %xmm1 movss 0x3a15d(%rip), %xmm2 # 0xb969c movss 0x43f8d(%rip), %xmm3 # 0xc34d4 movss 0x3a189(%rip), %xmm4 # 0xb96d8 pushq $0x6 popq %rdi callq 0x7a7e7 movss 0x3a141(%rip), %xmm1 # 0xb96a0 maxss %xmm0, %xmm1 movss 0x3a131(%rip), %xmm2 # 0xb969c movaps %xmm2, %xmm0 minss %xmm1, %xmm0 addss %xmm2, %xmm0 mulss 0x3a15a(%rip), %xmm0 # 0xb96d8 mulss 0x3a192(%rip), %xmm0 # 0xb9718 cvttss2si %xmm0, %eax movb %al, -0x3(%r14,%r13,4) movb %al, -0x2(%r14,%r13,4) movb %al, -0x1(%r14,%r13,4) movb $-0x1, (%r14,%r13,4) incq %r13 jmp 0x7f50f movq 0x40(%rsp), %rcx incq %rcx addq 0x28(%rsp), %r14 jmp 0x7f4da movq 0x20(%rsp), %rax movq 0x18(%rsp), %rcx movq %rcx, (%rax) movl %r15d, 0x8(%rax) movl %ebp, 0xc(%rax) movabsq $0x700000001, %rcx # imm = 0x700000001 movq %rcx, 0x10(%rax) addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
GenImagePerlinNoise: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h movss [rsp+78h+var_70], xmm0 mov [rsp+78h+var_48], r8 mov r13d, ecx mov ebp, edx mov r15d, esi mov [rsp+78h+var_58], rdi mov eax, edx imul eax, esi movsxd rdi, eax shl rdi, 2 call _malloc cvtsi2ss xmm1, r15d mov r14, rax cvtsi2ss xmm0, ebp movss xmm3, [rsp+78h+var_70] movaps xmm2, xmm3 divss xmm2, xmm1 movss [rsp+78h+var_64], xmm2 divss xmm1, xmm0 movss [rsp+78h+var_68], xmm1 test r15d, r15d mov ebx, 0 cmovg ebx, r15d movaps xmm1, xmm3 divss xmm1, xmm0 movss [rsp+78h+var_70], xmm1 movsxd rcx, r15d test ebp, ebp mov edx, 0 cmovg edx, ebp mov [rsp+78h+var_40], rdx mov [rsp+78h+var_60], rax add r14, 3 shl rcx, 2 mov [rsp+78h+var_50], rcx mov r12d, r13d xor ecx, ecx loc_7F4DA: cmp rcx, [rsp+78h+var_40] jz loc_7F5B8 mov rax, [rsp+78h+var_48] add eax, ecx cvtsi2ss xmm0, eax mulss xmm0, [rsp+78h+var_70] cmp r15d, ebp mov [rsp+78h+var_38], rcx jg short loc_7F506 divss xmm0, [rsp+78h+var_68] loc_7F506: movss [rsp+78h+var_6C], xmm0 xor r13d, r13d loc_7F50F: cmp rbx, r13 jz loc_7F5A6 lea eax, [r12+r13] cvtsi2ss xmm0, eax mulss xmm0, [rsp+78h+var_64] cmp r15d, ebp jle short loc_7F531 mulss xmm0, [rsp+78h+var_68] loc_7F531: movss xmm1, [rsp+78h+var_6C] movss xmm2, cs:dword_B969C movss xmm3, cs:dword_C34D4 movss xmm4, cs:dword_B96D8 push 6 pop rdi call stb_perlin_fbm_noise3 movss xmm1, cs:dword_B96A0 maxss xmm1, xmm0 movss xmm2, cs:dword_B969C movaps xmm0, xmm2 minss xmm0, xmm1 addss xmm0, xmm2 mulss xmm0, cs:dword_B96D8 mulss xmm0, cs:dword_B9718 cvttss2si eax, xmm0 mov [r14+r13*4-3], al mov [r14+r13*4-2], al mov [r14+r13*4-1], al mov byte ptr [r14+r13*4], 0FFh inc r13 jmp loc_7F50F loc_7F5A6: mov rcx, [rsp+78h+var_38] inc rcx add r14, [rsp+78h+var_50] jmp loc_7F4DA loc_7F5B8: mov rax, [rsp+78h+var_58] mov rcx, [rsp+78h+var_60] mov [rax], rcx mov [rax+8], r15d mov [rax+0Ch], ebp mov rcx, 700000001h mov [rax+10h], rcx add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long GenImagePerlinNoise(long long a1, int a2, int a3, int a4, int a5, float a6) { long long v8; // rax long long v9; // rbx long long v10; // rdx long long v11; // r14 int v12; // r12d long long v13; // rcx float v14; // xmm0_4 long long i; // r13 float v16; // xmm0_4 float v17; // xmm0_4 long long result; // rax float v19; // [rsp+8h] [rbp-70h] float v20; // [rsp+Ch] [rbp-6Ch] float v21; // [rsp+10h] [rbp-68h] float v22; // [rsp+14h] [rbp-64h] long long v23; // [rsp+18h] [rbp-60h] long long v25; // [rsp+38h] [rbp-40h] long long v26; // [rsp+40h] [rbp-38h] v8 = malloc(4LL * a2 * a3); v22 = a6 / (float)a2; v21 = (float)a2 / (float)a3; v9 = 0LL; if ( a2 > 0 ) v9 = (unsigned int)a2; v19 = a6 / (float)a3; v10 = 0LL; if ( a3 > 0 ) v10 = (unsigned int)a3; v25 = v10; v23 = v8; v11 = v8 + 3; v12 = a4; v13 = 0LL; while ( v13 != v25 ) { v14 = (float)(v13 + a5) * v19; v26 = v13; if ( a2 <= a3 ) v14 = v14 / v21; v20 = v14; for ( i = 0LL; v9 != i; ++i ) { v16 = (float)(v12 + i) * v22; if ( a2 > a3 ) v16 = v16 * v21; stb_perlin_fbm_noise3(6, v16, v20, 1.0, 2.0, 0.5); v17 = (float)((float)(fminf(1.0, fmaxf(-1.0, v16)) + 1.0) * 0.5) * 255.0; *(_BYTE *)(v11 + 4 * i - 3) = (int)v17; *(_BYTE *)(v11 + 4 * i - 2) = (int)v17; *(_BYTE *)(v11 + 4 * i - 1) = (int)v17; *(_BYTE *)(v11 + 4 * i) = -1; } v13 = v26 + 1; v11 += 4LL * a2; } result = a1; *(_QWORD *)a1 = v23; *(_DWORD *)(a1 + 8) = a2; *(_DWORD *)(a1 + 12) = a3; *(_QWORD *)(a1 + 16) = 0x700000001LL; return result; }
GenImagePerlinNoise: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOVSS dword ptr [RSP + 0x8],XMM0 MOV qword ptr [RSP + 0x30],R8 MOV R13D,ECX MOV EBP,EDX MOV R15D,ESI MOV qword ptr [RSP + 0x20],RDI MOV EAX,EDX IMUL EAX,ESI MOVSXD RDI,EAX SHL RDI,0x2 CALL 0x001096e0 CVTSI2SS XMM1,R15D MOV R14,RAX CVTSI2SS XMM0,EBP MOVSS XMM3,dword ptr [RSP + 0x8] MOVAPS XMM2,XMM3 DIVSS XMM2,XMM1 MOVSS dword ptr [RSP + 0x14],XMM2 DIVSS XMM1,XMM0 MOVSS dword ptr [RSP + 0x10],XMM1 TEST R15D,R15D MOV EBX,0x0 CMOVG EBX,R15D MOVAPS XMM1,XMM3 DIVSS XMM1,XMM0 MOVSS dword ptr [RSP + 0x8],XMM1 MOVSXD RCX,R15D TEST EBP,EBP MOV EDX,0x0 CMOVG EDX,EBP MOV qword ptr [RSP + 0x38],RDX MOV qword ptr [RSP + 0x18],RAX ADD R14,0x3 SHL RCX,0x2 MOV qword ptr [RSP + 0x28],RCX MOV R12D,R13D XOR ECX,ECX LAB_0017f4da: CMP RCX,qword ptr [RSP + 0x38] JZ 0x0017f5b8 MOV RAX,qword ptr [RSP + 0x30] ADD EAX,ECX CVTSI2SS XMM0,EAX MULSS XMM0,dword ptr [RSP + 0x8] CMP R15D,EBP MOV qword ptr [RSP + 0x40],RCX JG 0x0017f506 DIVSS XMM0,dword ptr [RSP + 0x10] LAB_0017f506: MOVSS dword ptr [RSP + 0xc],XMM0 XOR R13D,R13D LAB_0017f50f: CMP RBX,R13 JZ 0x0017f5a6 LEA EAX,[R12 + R13*0x1] CVTSI2SS XMM0,EAX MULSS XMM0,dword ptr [RSP + 0x14] CMP R15D,EBP JLE 0x0017f531 MULSS XMM0,dword ptr [RSP + 0x10] LAB_0017f531: MOVSS XMM1,dword ptr [RSP + 0xc] MOVSS XMM2,dword ptr [0x001b969c] MOVSS XMM3,dword ptr [0x001c34d4] MOVSS XMM4,dword ptr [0x001b96d8] PUSH 0x6 POP RDI CALL 0x0017a7e7 MOVSS XMM1,dword ptr [0x001b96a0] MAXSS XMM1,XMM0 MOVSS XMM2,dword ptr [0x001b969c] MOVAPS XMM0,XMM2 MINSS XMM0,XMM1 ADDSS XMM0,XMM2 MULSS XMM0,dword ptr [0x001b96d8] MULSS XMM0,dword ptr [0x001b9718] CVTTSS2SI EAX,XMM0 MOV byte ptr [R14 + R13*0x4 + -0x3],AL MOV byte ptr [R14 + R13*0x4 + -0x2],AL MOV byte ptr [R14 + R13*0x4 + -0x1],AL MOV byte ptr [R14 + R13*0x4],0xff INC R13 JMP 0x0017f50f LAB_0017f5a6: MOV RCX,qword ptr [RSP + 0x40] INC RCX ADD R14,qword ptr [RSP + 0x28] JMP 0x0017f4da LAB_0017f5b8: MOV RAX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX],RCX MOV dword ptr [RAX + 0x8],R15D MOV dword ptr [RAX + 0xc],EBP MOV RCX,0x700000001 MOV qword ptr [RAX + 0x10],RCX ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void GenImagePerlinNoise(float param_1,int8 *param_2,uint param_3,uint param_4,int param_5, int param_6) { int1 uVar1; void *pvVar2; ulong uVar3; ulong uVar4; ulong uVar5; ulong uVar6; long lVar7; float fVar8; float fVar9; float fVar10; float fVar11; pvVar2 = malloc((long)(int)(param_4 * param_3) << 2); fVar11 = (float)(int)param_3 / (float)(int)param_4; uVar5 = 0; if (0 < (int)param_3) { uVar5 = (ulong)param_3; } uVar4 = 0; if (0 < (int)param_4) { uVar4 = (ulong)param_4; } lVar7 = (long)pvVar2 + 3; for (uVar3 = 0; uVar3 != uVar4; uVar3 = uVar3 + 1) { fVar8 = (float)(param_6 + (int)uVar3) * (param_1 / (float)(int)param_4); if ((int)param_3 <= (int)param_4) { fVar8 = fVar8 / fVar11; } for (uVar6 = 0; uVar5 != uVar6; uVar6 = uVar6 + 1) { fVar9 = (float)(param_5 + (int)uVar6) * (param_1 / (float)(int)param_3); if ((int)param_4 < (int)param_3) { fVar9 = fVar9 * fVar11; } fVar10 = (float)stb_perlin_fbm_noise3(fVar9,fVar8,DAT_001b969c,DAT_001c34d4,DAT_001b96d8,6); fVar9 = DAT_001b96a0; if (DAT_001b96a0 <= fVar10) { fVar9 = fVar10; } fVar10 = DAT_001b969c; if (fVar9 <= DAT_001b969c) { fVar10 = fVar9; } uVar1 = (int1)(int)((fVar10 + DAT_001b969c) * DAT_001b96d8 * DAT_001b9718); *(int1 *)(lVar7 + -3 + uVar6 * 4) = uVar1; *(int1 *)(lVar7 + -2 + uVar6 * 4) = uVar1; *(int1 *)(lVar7 + -1 + uVar6 * 4) = uVar1; *(int1 *)(lVar7 + uVar6 * 4) = 0xff; } lVar7 = lVar7 + (long)(int)param_3 * 4; } *param_2 = pvVar2; *(uint *)(param_2 + 1) = param_3; *(uint *)((long)param_2 + 0xc) = param_4; param_2[2] = 0x700000001; return; }
41,998
Spu::TickChannelPitchbend(int)
sp1187[P]veesem/src/core/spg200/spu.cc
void Spu::TickChannelPitchbend(int channel_index) { auto& channel = channel_data_[channel_index]; if (channel_pitch_bend_[channel_index] && channel.phase != channel.target_phase && envelope_clock_.GetDividedTick( kPitchbendFrameDivides[channel.pitch_bend_control.time_step])) { if (channel.pitch_bend_control.sign) { channel.phase = std::clamp( static_cast<int>(channel.phase) - static_cast<int>(channel.pitch_bend_control.offset), static_cast<int>(channel.target_phase), 0x7ffff); } else { channel.phase = std::clamp( static_cast<int>(channel.phase) + static_cast<int>(channel.pitch_bend_control.offset), 0, static_cast<int>(channel.target_phase)); } } }
O0
cpp
Spu::TickChannelPitchbend(int): pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x28(%rbp) movl %esi, -0x2c(%rbp) movq -0x28(%rbp), %rdi movq %rdi, -0x78(%rbp) addq $0x601c, %rdi # imm = 0x601C movslq -0x2c(%rbp), %rsi callq 0x17bb0 movq -0x78(%rbp), %rsi movq %rax, -0x38(%rbp) addq $0x63f0, %rsi # imm = 0x63F0 movslq -0x2c(%rbp), %rdx leaq -0x48(%rbp), %rdi callq 0x17be0 leaq -0x48(%rbp), %rdi callq 0x17c20 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, -0x6d(%rbp) jne 0x155bd jmp 0x1562f movq -0x38(%rbp), %rax movl 0x24(%rax), %ecx movq -0x38(%rbp), %rdx xorl %eax, %eax cmpl 0x2c(%rdx), %ecx movb %al, -0x6d(%rbp) je 0x1562f movq -0x78(%rbp), %rax addq $0x600c, %rax # imm = 0x600C movq %rax, -0x88(%rbp) movq -0x38(%rbp), %rax addq $0x32, %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movzwl (%rax), %eax sarl $0xd, %eax andl $0x7, %eax movl %eax, -0x7c(%rbp) movq -0x88(%rbp), %rdi movl -0x7c(%rbp), %eax movl %eax, %eax movl %eax, %ecx leaq 0xdd51c(%rip), %rax # 0xf2b30 movl (%rax,%rcx,4), %esi callq 0x17d20 movb %al, -0x89(%rbp) jmp 0x15624 movb -0x89(%rbp), %al movb %al, -0x6d(%rbp) jmp 0x1562f movb -0x6d(%rbp), %al movb %al, -0x8a(%rbp) leaq -0x48(%rbp), %rdi callq 0x17c60 movb -0x8a(%rbp), %al testb $0x1, %al jne 0x15650 jmp 0x15729 movq -0x38(%rbp), %rax addq $0x32, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movzwl (%rax), %eax sarl $0xc, %eax andl $0x1, %eax cmpl $0x0, %eax je 0x156d7 movq -0x38(%rbp), %rax movl 0x24(%rax), %eax movq -0x38(%rbp), %rcx addq $0x32, %rcx movq %rcx, -0x8(%rbp) movq -0x8(%rbp), %rcx movzwl (%rcx), %ecx andl $0xfff, %ecx # imm = 0xFFF subl %ecx, %eax movl %eax, -0x58(%rbp) movq -0x38(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x5c(%rbp) movl $0x7ffff, -0x60(%rbp) # imm = 0x7FFFF leaq -0x58(%rbp), %rdi leaq -0x5c(%rbp), %rsi leaq -0x60(%rbp), %rdx callq 0xebf0 movl (%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x24(%rax) jmp 0x15727 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x50(%rbp) movl %eax, -0x54(%rbp) leaq -0x48(%rbp), %rdi callq 0x17c60 jmp 0x15732 movq -0x38(%rbp), %rax movl 0x24(%rax), %eax movq -0x38(%rbp), %rcx addq $0x32, %rcx movq %rcx, -0x10(%rbp) movq -0x10(%rbp), %rcx movzwl (%rcx), %ecx andl $0xfff, %ecx # imm = 0xFFF addl %ecx, %eax movl %eax, -0x64(%rbp) movl $0x0, -0x68(%rbp) movq -0x38(%rbp), %rax movl 0x2c(%rax), %eax movl %eax, -0x6c(%rbp) leaq -0x64(%rbp), %rdi leaq -0x68(%rbp), %rsi leaq -0x6c(%rbp), %rdx callq 0xebf0 movl (%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x24(%rax) jmp 0x15729 addq $0x90, %rsp popq %rbp retq movq -0x50(%rbp), %rdi callq 0x75d0 nopl (%rax,%rax)
_ZN3Spu20TickChannelPitchbendEi: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_28], rdi mov [rbp+var_2C], esi mov rdi, [rbp+var_28] mov [rbp+var_78], rdi add rdi, 601Ch movsxd rsi, [rbp+var_2C] call _ZNSt5arrayIN3Spu11ChannelDataELm16EEixEm; std::array<Spu::ChannelData,16ul>::operator[](ulong) mov rsi, [rbp+var_78] mov [rbp+var_38], rax add rsi, 63F0h movsxd rdx, [rbp+var_2C] lea rdi, [rbp+var_48] call _ZNSt6bitsetILm16EEixEm; std::bitset<16ul>::operator[](ulong) lea rdi, [rbp+var_48] call _ZNKSt6bitsetILm16EE9referencecvbEv; std::bitset<16ul>::reference::operator bool(void) mov cl, al xor eax, eax test cl, 1 mov [rbp+var_6D], al jnz short loc_155BD jmp short loc_1562F loc_155BD: mov rax, [rbp+var_38] mov ecx, [rax+24h] mov rdx, [rbp+var_38] xor eax, eax cmp ecx, [rdx+2Ch] mov [rbp+var_6D], al jz short loc_1562F mov rax, [rbp+var_78] add rax, 600Ch mov [rbp+var_88], rax mov rax, [rbp+var_38] add rax, 32h ; '2' mov [rbp+var_20], rax mov rax, [rbp+var_20] movzx eax, word ptr [rax] sar eax, 0Dh and eax, 7 mov [rbp+var_7C], eax mov rdi, [rbp+var_88] mov eax, [rbp+var_7C] mov eax, eax mov ecx, eax lea rax, _ZL22kPitchbendFrameDivides; kPitchbendFrameDivides mov esi, [rax+rcx*4] call _ZN14DivisibleClockILi384ELi1EE14GetDividedTickEj; DivisibleClock<384,1>::GetDividedTick(uint) mov [rbp+var_89], al jmp short $+2 loc_15624: mov al, [rbp+var_89] mov [rbp+var_6D], al jmp short $+2 loc_1562F: mov al, [rbp+var_6D] mov [rbp+var_8A], al lea rdi, [rbp+var_48] call _ZNSt6bitsetILm16EE9referenceD2Ev; std::bitset<16ul>::reference::~reference() mov al, [rbp+var_8A] test al, 1 jnz short loc_15650 jmp loc_15729 loc_15650: mov rax, [rbp+var_38] add rax, 32h ; '2' mov [rbp+var_18], rax mov rax, [rbp+var_18] movzx eax, word ptr [rax] sar eax, 0Ch and eax, 1 cmp eax, 0 jz short loc_156D7 mov rax, [rbp+var_38] mov eax, [rax+24h] mov rcx, [rbp+var_38] add rcx, 32h ; '2' mov [rbp+var_8], rcx mov rcx, [rbp+var_8] movzx ecx, word ptr [rcx] and ecx, 0FFFh sub eax, ecx mov [rbp+var_58], eax mov rax, [rbp+var_38] mov eax, [rax+2Ch] mov [rbp+var_5C], eax mov [rbp+var_60], 7FFFFh lea rdi, [rbp+var_58] lea rsi, [rbp+var_5C] lea rdx, [rbp+var_60] call _ZSt5clampIiERKT_S2_S2_S2_; std::clamp<int>(int const&,int const&,int const&) mov ecx, [rax] mov rax, [rbp+var_38] mov [rax+24h], ecx jmp short loc_15727 mov rcx, rax mov eax, edx mov [rbp+var_50], rcx mov [rbp+var_54], eax lea rdi, [rbp+var_48] call _ZNSt6bitsetILm16EE9referenceD2Ev; std::bitset<16ul>::reference::~reference() jmp short loc_15732 loc_156D7: mov rax, [rbp+var_38] mov eax, [rax+24h] mov rcx, [rbp+var_38] add rcx, 32h ; '2' mov [rbp+var_10], rcx mov rcx, [rbp+var_10] movzx ecx, word ptr [rcx] and ecx, 0FFFh add eax, ecx mov [rbp+var_64], eax mov [rbp+var_68], 0 mov rax, [rbp+var_38] mov eax, [rax+2Ch] mov [rbp+var_6C], eax lea rdi, [rbp+var_64] lea rsi, [rbp+var_68] lea rdx, [rbp+var_6C] call _ZSt5clampIiERKT_S2_S2_S2_; std::clamp<int>(int const&,int const&,int const&) mov ecx, [rax] mov rax, [rbp+var_38] mov [rax+24h], ecx loc_15727: jmp short $+2 loc_15729: add rsp, 90h pop rbp retn loc_15732: mov rdi, [rbp+var_50] call __Unwind_Resume
char Spu::TickChannelPitchbend(Spu *this, int a2) { char result; // al int v3; // eax int v4; // ecx char DividedTick; // [rsp+23h] [rbp-6Dh] int v6; // [rsp+24h] [rbp-6Ch] BYREF int v7; // [rsp+28h] [rbp-68h] BYREF int v8; // [rsp+2Ch] [rbp-64h] BYREF int v9; // [rsp+30h] [rbp-60h] BYREF int v10; // [rsp+34h] [rbp-5Ch] BYREF int v11; // [rsp+38h] [rbp-58h] BYREF _BYTE v12[16]; // [rsp+48h] [rbp-48h] BYREF long long v13; // [rsp+58h] [rbp-38h] int v14; // [rsp+64h] [rbp-2Ch] Spu *v15; // [rsp+68h] [rbp-28h] long long v16; // [rsp+70h] [rbp-20h] long long v17; // [rsp+78h] [rbp-18h] long long v18; // [rsp+80h] [rbp-10h] long long v19; // [rsp+88h] [rbp-8h] v15 = this; v14 = a2; v13 = std::array<Spu::ChannelData,16ul>::operator[]((char *)this + 24604, a2); std::bitset<16ul>::operator[](v12, (char *)this + 25584, a2); DividedTick = 0; if ( (std::bitset<16ul>::reference::operator bool(v12) & 1) != 0 ) { DividedTick = 0; if ( *(_DWORD *)(v13 + 36) != *(_DWORD *)(v13 + 44) ) { v16 = v13 + 50; DividedTick = DivisibleClock<384,1>::GetDividedTick( (char *)this + 24588, kPitchbendFrameDivides[((int)*(unsigned __int16 *)(v13 + 50) >> 13) & 7]); } } std::bitset<16ul>::reference::~reference(v12); result = DividedTick; if ( (DividedTick & 1) != 0 ) { v17 = v13 + 50; v3 = *(_DWORD *)(v13 + 36); if ( (((int)*(unsigned __int16 *)(v13 + 50) >> 12) & 1) != 0 ) { v19 = v13 + 50; v11 = v3 - (*(_WORD *)(v13 + 50) & 0xFFF); v10 = *(_DWORD *)(v13 + 44); v9 = 0x7FFFF; v4 = *std::clamp<int>(&v11, &v10, &v9); } else { v18 = v13 + 50; v8 = (*(_WORD *)(v13 + 50) & 0xFFF) + v3; v7 = 0; v6 = *(_DWORD *)(v13 + 44); v4 = *std::clamp<int>(&v8, &v7, &v6); } result = v13; *(_DWORD *)(v13 + 36) = v4; } return result; }
TickChannelPitchbend: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x28],RDI MOV dword ptr [RBP + -0x2c],ESI MOV RDI,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x78],RDI ADD RDI,0x601c MOVSXD RSI,dword ptr [RBP + -0x2c] CALL 0x00117bb0 MOV RSI,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x38],RAX ADD RSI,0x63f0 MOVSXD RDX,dword ptr [RBP + -0x2c] LEA RDI,[RBP + -0x48] CALL 0x00117be0 LEA RDI,[RBP + -0x48] CALL 0x00117c20 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RBP + -0x6d],AL JNZ 0x001155bd JMP 0x0011562f LAB_001155bd: MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x24] MOV RDX,qword ptr [RBP + -0x38] XOR EAX,EAX CMP ECX,dword ptr [RDX + 0x2c] MOV byte ptr [RBP + -0x6d],AL JZ 0x0011562f MOV RAX,qword ptr [RBP + -0x78] ADD RAX,0x600c MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x32 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,word ptr [RAX] SAR EAX,0xd AND EAX,0x7 MOV dword ptr [RBP + -0x7c],EAX MOV RDI,qword ptr [RBP + -0x88] MOV EAX,dword ptr [RBP + -0x7c] MOV EAX,EAX MOV ECX,EAX LEA RAX,[0x1f2b30] MOV ESI,dword ptr [RAX + RCX*0x4] LAB_00115617: CALL 0x00117d20 LAB_0011561c: MOV byte ptr [RBP + -0x89],AL JMP 0x00115624 LAB_00115624: MOV AL,byte ptr [RBP + -0x89] MOV byte ptr [RBP + -0x6d],AL JMP 0x0011562f LAB_0011562f: MOV AL,byte ptr [RBP + -0x6d] MOV byte ptr [RBP + -0x8a],AL LEA RDI,[RBP + -0x48] CALL 0x00117c60 MOV AL,byte ptr [RBP + -0x8a] TEST AL,0x1 JNZ 0x00115650 JMP 0x00115729 LAB_00115650: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x32 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX] SAR EAX,0xc AND EAX,0x1 CMP EAX,0x0 JZ 0x001156d7 MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x24] MOV RCX,qword ptr [RBP + -0x38] ADD RCX,0x32 MOV qword ptr [RBP + -0x8],RCX MOV RCX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RCX] AND ECX,0xfff SUB EAX,ECX MOV dword ptr [RBP + -0x58],EAX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x5c],EAX MOV dword ptr [RBP + -0x60],0x7ffff LEA RDI,[RBP + -0x58] LEA RSI,[RBP + -0x5c] LEA RDX,[RBP + -0x60] CALL 0x0010ebf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x24],ECX JMP 0x00115727 LAB_001156d7: MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x24] MOV RCX,qword ptr [RBP + -0x38] ADD RCX,0x32 MOV qword ptr [RBP + -0x10],RCX MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,word ptr [RCX] AND ECX,0xfff ADD EAX,ECX MOV dword ptr [RBP + -0x64],EAX MOV dword ptr [RBP + -0x68],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x2c] MOV dword ptr [RBP + -0x6c],EAX LEA RDI,[RBP + -0x64] LEA RSI,[RBP + -0x68] LEA RDX,[RBP + -0x6c] CALL 0x0010ebf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x24],ECX LAB_00115727: JMP 0x00115729 LAB_00115729: ADD RSP,0x90 POP RBP RET
/* Spu::TickChannelPitchbend(int) */ void __thiscall Spu::TickChannelPitchbend(Spu *this,int param_1) { bool bVar1; int *piVar2; byte local_75; int local_74 [3]; int local_68; int local_64; int local_60 [4]; reference local_50 [16]; long local_40; int local_34; Spu *local_30; ushort *local_28; ushort *local_20; ushort *local_18; ushort *local_10; local_34 = param_1; local_30 = this; local_40 = std::array<Spu::ChannelData,16ul>::operator[] ((array<Spu::ChannelData,16ul> *)(this + 0x601c),(long)param_1); std::bitset<16ul>::operator[]((ulong)local_50); bVar1 = std::bitset::reference::operator_cast_to_bool(local_50); local_75 = 0; if ((bVar1) && (local_75 = 0, *(int *)(local_40 + 0x24) != *(int *)(local_40 + 0x2c))) { local_28 = (ushort *)(local_40 + 0x32); /* try { // try from 00115617 to 0011561b has its CatchHandler @ 001156c0 */ local_75 = DivisibleClock<384,1>::GetDividedTick ((DivisibleClock<384,1> *)(this + 0x600c), *(uint *)(kPitchbendFrameDivides + (ulong)(uint)((int)(uint)*local_28 >> 0xd) * 4)); } std::bitset<16ul>::reference::~reference((reference *)local_50); if ((local_75 & 1) != 0) { local_20 = (ushort *)(local_40 + 0x32); if (((int)(uint)*local_20 >> 0xc & 1U) == 0) { local_18 = (ushort *)(local_40 + 0x32); local_74[2] = *(int *)(local_40 + 0x24) + (*local_18 & 0xfff); local_74[1] = 0; local_74[0] = *(int *)(local_40 + 0x2c); piVar2 = std::clamp<int>(local_74 + 2,local_74 + 1,local_74); *(int *)(local_40 + 0x24) = *piVar2; } else { local_10 = (ushort *)(local_40 + 0x32); local_60[0] = *(int *)(local_40 + 0x24) - (*local_10 & 0xfff); local_64 = *(int *)(local_40 + 0x2c); local_68 = 0x7ffff; piVar2 = std::clamp<int>(local_60,&local_64,&local_68); *(int *)(local_40 + 0x24) = *piVar2; } } return; }
41,999
mp_sub
bluesky950520[P]quickjs/libbf.c
limb_t mp_sub(limb_t *res, const limb_t *op1, const limb_t *op2, mp_size_t n, limb_t carry) { int i; limb_t k, a, v, k1; k = carry; for(i=0;i<n;i++) { v = op1[i]; a = v - op2[i]; k1 = a > v; v = a - k; k = (v > a) | k1; res[i] = v; } return k; }
O1
c
mp_sub: movq %r8, %rax testq %rcx, %rcx jle 0x855df xorl %r8d, %r8d movq (%rsi,%r8,8), %r9 subq (%rdx,%r8,8), %r9 setb %r10b subq %rax, %r9 setb %al orb %r10b, %al movzbl %al, %eax movq %r9, (%rdi,%r8,8) incq %r8 cmpq %r8, %rcx jne 0x855bb retq
mp_sub: mov rax, r8 test rcx, rcx jle short locret_855DF xor r8d, r8d loc_855BB: mov r9, [rsi+r8*8] sub r9, [rdx+r8*8] setb r10b sub r9, rax setb al or al, r10b movzx eax, al mov [rdi+r8*8], r9 inc r8 cmp rcx, r8 jnz short loc_855BB locret_855DF: retn
unsigned long long mp_sub(long long a1, long long a2, long long a3, long long a4, unsigned long long a5) { unsigned long long result; // rax long long i; // r8 unsigned long long v7; // r9 bool v8; // cf unsigned long long v9; // r9 bool v10; // r10 unsigned long long v11; // r9 result = a5; if ( a4 > 0 ) { for ( i = 0LL; i != a4; ++i ) { v7 = *(_QWORD *)(a2 + 8 * i); v8 = v7 < *(_QWORD *)(a3 + 8 * i); v9 = v7 - *(_QWORD *)(a3 + 8 * i); v10 = v8; v8 = v9 < result; v11 = v9 - result; result = v10 | (unsigned __int8)v8; *(_QWORD *)(a1 + 8 * i) = v11; } } return result; }
mp_sub: MOV RAX,R8 TEST RCX,RCX JLE 0x001855df XOR R8D,R8D LAB_001855bb: MOV R9,qword ptr [RSI + R8*0x8] SUB R9,qword ptr [RDX + R8*0x8] SETC R10B SUB R9,RAX SETC AL OR AL,R10B MOVZX EAX,AL MOV qword ptr [RDI + R8*0x8],R9 INC R8 CMP RCX,R8 JNZ 0x001855bb LAB_001855df: RET
void mp_sub(long param_1,long param_2,long param_3,long param_4,ulong param_5) { ulong *puVar1; ulong uVar2; long lVar3; ulong uVar4; long lVar5; if (0 < param_4) { lVar3 = 0; do { uVar2 = *(ulong *)(param_2 + lVar3 * 8); puVar1 = (ulong *)(param_3 + lVar3 * 8); uVar4 = uVar2 - *puVar1; lVar5 = uVar4 - param_5; param_5 = (ulong)(uVar4 < param_5 || uVar2 < *puVar1); *(long *)(param_1 + lVar3 * 8) = lVar5; lVar3 = lVar3 + 1; } while (param_4 != lVar3); } return; }