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
7,000
release_whole_queue
eloqsql/mysys/mf_keycache.c
static void release_whole_queue(KEYCACHE_WQUEUE *wqueue) { struct st_my_thread_var *last; struct st_my_thread_var *next; struct st_my_thread_var *thread; /* Queue may be empty. */ if (!(last= wqueue->last_thread)) return; next= last->next; /* First (oldest) element */ do { thread=next; DBUG_ASSERT(thread && thread->init == 1); KEYCACHE_DBUG_PRINT("release_whole_queue: signal", ("thread %ld", (ulong) thread->id)); /* Take thread from queue. */ next= thread->next; thread->next= NULL; /* Signal the thread. */ keycache_pthread_cond_signal(&thread->suspend); } while (thread != last); /* Now queue is definitely empty. */ wqueue->last_thread= NULL; }
O0
c
release_whole_queue: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x10(%rbp) cmpq $0x0, %rax jne 0xe545f jmp 0xe54bc movq -0x10(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0xe5478 jmp 0xe547a jmp 0xe547c movq -0x20(%rbp), %rax movq 0x88(%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq $0x0, 0x88(%rax) movq -0x20(%rbp), %rdi addq $0x8, %rdi callq 0xe5600 movq -0x20(%rbp), %rax cmpq -0x10(%rbp), %rax jne 0xe546e movq -0x8(%rbp), %rax movq $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
release_whole_queue: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_10], rax cmp rax, 0 jnz short loc_E545F jmp short loc_E54BC loc_E545F: mov rax, [rbp+var_10] mov rax, [rax+88h] mov [rbp+var_18], rax loc_E546E: mov rax, [rbp+var_18] mov [rbp+var_20], rax jmp short $+2 loc_E5478: jmp short $+2 loc_E547A: jmp short $+2 loc_E547C: mov rax, [rbp+var_20] mov rax, [rax+88h] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov qword ptr [rax+88h], 0 mov rdi, [rbp+var_20] add rdi, 8 call inline_mysql_cond_signal_2 mov rax, [rbp+var_20] cmp rax, [rbp+var_10] jnz short loc_E546E mov rax, [rbp+var_8] mov qword ptr [rax], 0 loc_E54BC: add rsp, 20h pop rbp retn
_QWORD * release_whole_queue(_QWORD *a1) { _QWORD *result; // rax _QWORD *v2; // [rsp+0h] [rbp-20h] _QWORD *v3; // [rsp+8h] [rbp-18h] _QWORD *v4; // [rsp+10h] [rbp-10h] result = (_QWORD *)*a1; v4 = (_QWORD *)*a1; if ( *a1 ) { v3 = (_QWORD *)v4[17]; do { v2 = v3; v3 = (_QWORD *)v3[17]; v2[17] = 0LL; inline_mysql_cond_signal_2(v2 + 1); } while ( v2 != v4 ); result = a1; *a1 = 0LL; } return result; }
release_whole_queue: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JNZ 0x001e545f JMP 0x001e54bc LAB_001e545f: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX LAB_001e546e: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX JMP 0x001e5478 LAB_001e5478: JMP 0x001e547a LAB_001e547a: JMP 0x001e547c LAB_001e547c: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x88] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x88],0x0 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x8 CALL 0x001e5600 MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e546e MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 LAB_001e54bc: ADD RSP,0x20 POP RBP RET
void release_whole_queue(long *param_1) { long lVar1; long lVar2; bool bVar3; int8 local_20; lVar1 = *param_1; if (lVar1 != 0) { local_20 = *(long *)(lVar1 + 0x88); do { lVar2 = *(long *)(local_20 + 0x88); *(int8 *)(local_20 + 0x88) = 0; inline_mysql_cond_signal(local_20 + 8); bVar3 = local_20 != lVar1; local_20 = lVar2; } while (bVar3); *param_1 = 0; } return; }
7,001
cleanup_dirname
eloqsql/mysys/mf_pack.c
size_t cleanup_dirname(register char *to, const char *from) { reg5 size_t length; reg2 char * pos; reg3 char * from_ptr; reg4 char * start; char parent[5], /* for "FN_PARENTDIR" */ buff[FN_REFLEN + 1],*end_parentdir; #ifdef BACKSLASH_MBTAIL CHARSET_INFO *fs= fs_character_set(); #endif DBUG_ENTER("cleanup_dirname"); DBUG_PRINT("enter",("from: '%s'",from)); start=buff; from_ptr=(char *) from; #ifdef FN_DEVCHAR if ((pos=strrchr(from_ptr,FN_DEVCHAR)) != 0) { /* Skip device part */ length=(size_t) (pos-from_ptr)+1; start=strnmov(buff,from_ptr,length); from_ptr+=length; } #endif parent[0]=FN_LIBCHAR; length=(size_t) (strmov(parent+1,FN_PARENTDIR)-parent); for (pos=start ; (*pos= *from_ptr++) != 0 ; pos++) { #ifdef BACKSLASH_MBTAIL uint l; if (my_ci_use_mb(fs) && (l= my_ismbchar(fs, from_ptr - 1, from_ptr + 2))) { for (l-- ; l ; *++pos= *from_ptr++, l--); start= pos + 1; /* Don't look inside multi-byte char */ continue; } #endif if (*pos == '/') *pos = FN_LIBCHAR; if (*pos == FN_LIBCHAR) { if ((size_t) (pos-start) > length && memcmp(pos-length,parent,length) == 0) { /* If .../../; skip prev */ pos-=length; if (pos != start) { /* not /../ */ pos--; if (*pos == FN_HOMELIB && (pos == start || pos[-1] == FN_LIBCHAR)) { if (!home_dir) { pos+=length+1; /* Don't unpack ~/.. */ continue; } pos=strmov(buff,home_dir)-1; /* Unpacks ~/.. */ if (*pos == FN_LIBCHAR) pos--; /* home ended with '/' */ } if (*pos == FN_CURLIB && (pos == start || pos[-1] == FN_LIBCHAR)) { if (my_getwd(curr_dir,FN_REFLEN,MYF(0))) { pos+=length+1; /* Don't unpack ./.. */ continue; } pos=strmov(buff,curr_dir)-1; /* Unpacks ./.. */ if (*pos == FN_LIBCHAR) pos--; /* home ended with '/' */ } end_parentdir=pos; while (pos >= start && *pos != FN_LIBCHAR) /* remove prev dir */ pos--; if (pos[1] == FN_HOMELIB || (pos >= start && memcmp(pos, parent, length) == 0)) { /* Don't remove ~user/ */ pos=strmov(end_parentdir+1,parent); *pos=FN_LIBCHAR; continue; } } } else if ((size_t) (pos-start) == length-1 && !memcmp(start,parent+1,length-1)) start=pos; /* Starts with "../" */ else if (pos-start > 0 && pos[-1] == FN_LIBCHAR) { #ifdef FN_NETWORK_DRIVES if (pos-start != 1) #endif pos--; /* Remove dupplicate '/' */ } else if (pos-start > 1 && pos[-1] == FN_CURLIB && pos[-2] == FN_LIBCHAR) pos-=2; /* Skip /./ */ } } (void) strmov(to,buff); DBUG_PRINT("exit",("to: '%s'",to)); DBUG_RETURN((size_t) (pos-buff)); }
O0
c
cleanup_dirname: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) jmp 0x76238 leaq -0x210(%rbp), %rax movq %rax, -0x240(%rbp) movq -0x220(%rbp), %rax movq %rax, -0x238(%rbp) movb $0x2f, -0xd(%rbp) leaq -0xd(%rbp), %rdi addq $0x1, %rdi leaq 0x58361(%rip), %rsi # 0xce5c8 callq 0x36970 leaq -0xd(%rbp), %rcx subq %rcx, %rax movq %rax, -0x228(%rbp) movq -0x240(%rbp), %rax movq %rax, -0x230(%rbp) movq -0x238(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x238(%rbp) movb (%rax), %al movq -0x230(%rbp), %rcx movb %al, (%rcx) movsbl %al, %eax cmpl $0x0, %eax je 0x76681 movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0x762cd movq -0x230(%rbp), %rax movb $0x2f, (%rax) movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0x76668 movq -0x230(%rbp), %rax movq -0x240(%rbp), %rcx subq %rcx, %rax cmpq -0x228(%rbp), %rax jbe 0x76584 movq -0x230(%rbp), %rdi xorl %eax, %eax subq -0x228(%rbp), %rax addq %rax, %rdi leaq -0xd(%rbp), %rsi movq -0x228(%rbp), %rdx callq 0x36ac0 cmpl $0x0, %eax jne 0x76584 movq -0x228(%rbp), %rdx movq -0x230(%rbp), %rax xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax cmpq -0x240(%rbp), %rax je 0x7657f movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x7e, %eax jne 0x7640f movq -0x230(%rbp), %rax cmpq -0x240(%rbp), %rax je 0x763a0 movq -0x230(%rbp), %rax movsbl -0x1(%rax), %eax cmpl $0x2f, %eax jne 0x7640f leaq 0x37f511(%rip), %rax # 0x3f58b8 cmpq $0x0, (%rax) jne 0x763cb movq -0x228(%rbp), %rax addq $0x1, %rax addq -0x230(%rbp), %rax movq %rax, -0x230(%rbp) jmp 0x7666a leaq -0x210(%rbp), %rdi leaq 0x37f4df(%rip), %rax # 0x3f58b8 movq (%rax), %rsi callq 0x36970 addq $-0x1, %rax movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0x7640d movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) jmp 0x7640f movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2e, %eax jne 0x764bb movq -0x230(%rbp), %rax cmpq -0x240(%rbp), %rax je 0x76442 movq -0x230(%rbp), %rax movsbl -0x1(%rax), %eax cmpl $0x2f, %eax jne 0x764bb leaq 0x37f487(%rip), %rdi # 0x3f58d0 movl $0x200, %esi # imm = 0x200 xorl %eax, %eax movl %eax, %edx callq 0x7c080 cmpl $0x0, %eax je 0x7647a movq -0x228(%rbp), %rax addq $0x1, %rax addq -0x230(%rbp), %rax movq %rax, -0x230(%rbp) jmp 0x7666a leaq -0x210(%rbp), %rdi leaq 0x37f448(%rip), %rsi # 0x3f58d0 callq 0x36970 addq $-0x1, %rax movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax jne 0x764b9 movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) jmp 0x764bb movq -0x230(%rbp), %rax movq %rax, -0x248(%rbp) movq -0x230(%rbp), %rcx xorl %eax, %eax cmpq -0x240(%rbp), %rcx movb %al, -0x249(%rbp) jb 0x764f7 movq -0x230(%rbp), %rax movsbl (%rax), %eax cmpl $0x2f, %eax setne %al movb %al, -0x249(%rbp) movb -0x249(%rbp), %al testb $0x1, %al jne 0x76503 jmp 0x76517 movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) jmp 0x764c9 movq -0x230(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x7e, %eax je 0x76553 movq -0x230(%rbp), %rax cmpq -0x240(%rbp), %rax jb 0x7657d movq -0x230(%rbp), %rdi leaq -0xd(%rbp), %rsi movq -0x228(%rbp), %rdx callq 0x36ac0 cmpl $0x0, %eax jne 0x7657d movq -0x248(%rbp), %rdi addq $0x1, %rdi leaq -0xd(%rbp), %rsi callq 0x36970 movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movb $0x2f, (%rax) jmp 0x7666a jmp 0x7657f jmp 0x76666 movq -0x230(%rbp), %rax movq -0x240(%rbp), %rcx subq %rcx, %rax movq -0x228(%rbp), %rcx subq $0x1, %rcx cmpq %rcx, %rax jne 0x765dc movq -0x240(%rbp), %rdi leaq -0xd(%rbp), %rsi addq $0x1, %rsi movq -0x228(%rbp), %rdx subq $0x1, %rdx callq 0x36ac0 cmpl $0x0, %eax jne 0x765dc movq -0x230(%rbp), %rax movq %rax, -0x240(%rbp) jmp 0x76664 movq -0x230(%rbp), %rax movq -0x240(%rbp), %rcx subq %rcx, %rax cmpq $0x0, %rax jle 0x76617 movq -0x230(%rbp), %rax movsbl -0x1(%rax), %eax cmpl $0x2f, %eax jne 0x76617 movq -0x230(%rbp), %rax addq $-0x1, %rax movq %rax, -0x230(%rbp) jmp 0x76662 movq -0x230(%rbp), %rax movq -0x240(%rbp), %rcx subq %rcx, %rax cmpq $0x1, %rax jle 0x76660 movq -0x230(%rbp), %rax movsbl -0x1(%rax), %eax cmpl $0x2e, %eax jne 0x76660 movq -0x230(%rbp), %rax movsbl -0x2(%rax), %eax cmpl $0x2f, %eax jne 0x76660 movq -0x230(%rbp), %rax addq $-0x2, %rax movq %rax, -0x230(%rbp) jmp 0x76662 jmp 0x76664 jmp 0x76666 jmp 0x76668 jmp 0x7666a movq -0x230(%rbp), %rax addq $0x1, %rax movq %rax, -0x230(%rbp) jmp 0x76288 movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x36970 jmp 0x76696 jmp 0x76698 movq -0x230(%rbp), %rax leaq -0x210(%rbp), %rcx subq %rcx, %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x766d2 movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x362a0 nopw (%rax,%rax)
cleanup_dirname: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi jmp short $+2 loc_76238: lea rax, [rbp+var_210] mov [rbp+var_240], rax mov rax, [rbp+var_220] mov [rbp+var_238], rax mov [rbp+var_D], 2Fh ; '/' lea rdi, [rbp+var_D] add rdi, 1 lea rsi, asc_CE5C8; ".." call _stpcpy lea rcx, [rbp+var_D] sub rax, rcx mov [rbp+var_228], rax mov rax, [rbp+var_240] mov [rbp+var_230], rax loc_76288: mov rax, [rbp+var_238] mov rcx, rax add rcx, 1 mov [rbp+var_238], rcx mov al, [rax] mov rcx, [rbp+var_230] mov [rcx], al movsx eax, al cmp eax, 0 jz loc_76681 mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz short loc_762CD mov rax, [rbp+var_230] mov byte ptr [rax], 2Fh ; '/' loc_762CD: mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz loc_76668 mov rax, [rbp+var_230] mov rcx, [rbp+var_240] sub rax, rcx cmp rax, [rbp+var_228] jbe loc_76584 mov rdi, [rbp+var_230] xor eax, eax sub rax, [rbp+var_228] add rdi, rax lea rsi, [rbp+var_D] mov rdx, [rbp+var_228] call _memcmp cmp eax, 0 jnz loc_76584 mov rdx, [rbp+var_228] mov rax, [rbp+var_230] xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_230], rax mov rax, [rbp+var_230] cmp rax, [rbp+var_240] jz loc_7657F mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 7Eh ; '~' jnz loc_7640F mov rax, [rbp+var_230] cmp rax, [rbp+var_240] jz short loc_763A0 mov rax, [rbp+var_230] movsx eax, byte ptr [rax-1] cmp eax, 2Fh ; '/' jnz short loc_7640F loc_763A0: lea rax, home_dir cmp qword ptr [rax], 0 jnz short loc_763CB mov rax, [rbp+var_228] add rax, 1 add rax, [rbp+var_230] mov [rbp+var_230], rax jmp loc_7666A loc_763CB: lea rdi, [rbp+var_210] lea rax, home_dir mov rsi, [rax] call _stpcpy add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz short loc_7640D mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax loc_7640D: jmp short $+2 loc_7640F: mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Eh ; '.' jnz loc_764BB mov rax, [rbp+var_230] cmp rax, [rbp+var_240] jz short loc_76442 mov rax, [rbp+var_230] movsx eax, byte ptr [rax-1] cmp eax, 2Fh ; '/' jnz short loc_764BB loc_76442: lea rdi, curr_dir mov esi, 200h xor eax, eax mov edx, eax call my_getwd cmp eax, 0 jz short loc_7647A mov rax, [rbp+var_228] add rax, 1 add rax, [rbp+var_230] mov [rbp+var_230], rax jmp loc_7666A loc_7647A: lea rdi, [rbp+var_210] lea rsi, curr_dir call _stpcpy add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' jnz short loc_764B9 mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax loc_764B9: jmp short $+2 loc_764BB: mov rax, [rbp+var_230] mov [rbp+var_248], rax loc_764C9: mov rcx, [rbp+var_230] xor eax, eax cmp rcx, [rbp+var_240] mov [rbp+var_249], al jb short loc_764F7 mov rax, [rbp+var_230] movsx eax, byte ptr [rax] cmp eax, 2Fh ; '/' setnz al mov [rbp+var_249], al loc_764F7: mov al, [rbp+var_249] test al, 1 jnz short loc_76503 jmp short loc_76517 loc_76503: mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax jmp short loc_764C9 loc_76517: mov rax, [rbp+var_230] movsx eax, byte ptr [rax+1] cmp eax, 7Eh ; '~' jz short loc_76553 mov rax, [rbp+var_230] cmp rax, [rbp+var_240] jb short loc_7657D mov rdi, [rbp+var_230] lea rsi, [rbp+var_D] mov rdx, [rbp+var_228] call _memcmp cmp eax, 0 jnz short loc_7657D loc_76553: mov rdi, [rbp+var_248] add rdi, 1 lea rsi, [rbp+var_D] call _stpcpy mov [rbp+var_230], rax mov rax, [rbp+var_230] mov byte ptr [rax], 2Fh ; '/' jmp loc_7666A loc_7657D: jmp short $+2 loc_7657F: jmp loc_76666 loc_76584: mov rax, [rbp+var_230] mov rcx, [rbp+var_240] sub rax, rcx mov rcx, [rbp+var_228] sub rcx, 1 cmp rax, rcx jnz short loc_765DC mov rdi, [rbp+var_240] lea rsi, [rbp+var_D] add rsi, 1 mov rdx, [rbp+var_228] sub rdx, 1 call _memcmp cmp eax, 0 jnz short loc_765DC mov rax, [rbp+var_230] mov [rbp+var_240], rax jmp loc_76664 loc_765DC: mov rax, [rbp+var_230] mov rcx, [rbp+var_240] sub rax, rcx cmp rax, 0 jle short loc_76617 mov rax, [rbp+var_230] movsx eax, byte ptr [rax-1] cmp eax, 2Fh ; '/' jnz short loc_76617 mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_230], rax jmp short loc_76662 loc_76617: mov rax, [rbp+var_230] mov rcx, [rbp+var_240] sub rax, rcx cmp rax, 1 jle short loc_76660 mov rax, [rbp+var_230] movsx eax, byte ptr [rax-1] cmp eax, 2Eh ; '.' jnz short loc_76660 mov rax, [rbp+var_230] movsx eax, byte ptr [rax-2] cmp eax, 2Fh ; '/' jnz short loc_76660 mov rax, [rbp+var_230] add rax, 0FFFFFFFFFFFFFFFEh mov [rbp+var_230], rax loc_76660: jmp short $+2 loc_76662: jmp short $+2 loc_76664: jmp short $+2 loc_76666: jmp short $+2 loc_76668: jmp short $+2 loc_7666A: mov rax, [rbp+var_230] add rax, 1 mov [rbp+var_230], rax jmp loc_76288 loc_76681: mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call _stpcpy jmp short $+2 loc_76696: jmp short $+2 loc_76698: mov rax, [rbp+var_230] lea rcx, [rbp+var_210] sub rax, rcx mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_766D2 mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_766D2: call ___stack_chk_fail
long long cleanup_dirname(long long a1, _BYTE *a2) { _BYTE *v2; // rax bool v4; // [rsp+17h] [rbp-249h] _BYTE *v5; // [rsp+18h] [rbp-248h] _BYTE *v6; // [rsp+20h] [rbp-240h] _BYTE *i; // [rsp+30h] [rbp-230h] unsigned long long v9; // [rsp+38h] [rbp-228h] long long v10; // [rsp+48h] [rbp-218h] _BYTE v11[515]; // [rsp+50h] [rbp-210h] BYREF char v12; // [rsp+253h] [rbp-Dh] BYREF _BYTE v13[12]; // [rsp+254h] [rbp-Ch] BYREF *(_QWORD *)&v13[4] = __readfsqword(0x28u); v10 = a1; v6 = v11; v12 = 47; v9 = stpcpy(v13, "..") - (_QWORD)&v12; for ( i = v11; ; ++i ) { v2 = a2++; LOBYTE(v2) = *v2; *i = (_BYTE)v2; if ( !(_BYTE)v2 ) break; if ( *i == 47 ) *i = 47; if ( *i == 47 ) { if ( i - v6 > v9 && !(unsigned int)memcmp(&i[-v9], &v12, v9) ) { i -= v9; if ( i != v6 ) { if ( *--i == 126 && (i == v6 || *(i - 1) == 47) ) { if ( !home_dir ) { i += v9 + 1; continue; } i = (_BYTE *)(stpcpy(v11, home_dir) - 1); if ( *i == 47 ) --i; } if ( *i == 46 && (i == v6 || *(i - 1) == 47) ) { if ( (unsigned int)my_getwd(&curr_dir, 512LL, 0LL) ) { i += v9 + 1; continue; } i = (_BYTE *)(stpcpy(v11, &curr_dir) - 1); if ( *i == 47 ) --i; } v5 = i; while ( 1 ) { v4 = 0; if ( i >= v6 ) v4 = *i != 47; if ( !v4 ) break; --i; } if ( i[1] == 126 || i >= v6 && !(unsigned int)memcmp(i, &v12, v9) ) { i = (_BYTE *)stpcpy(v5 + 1, &v12); *i = 47; } } } else if ( i - v6 == v9 - 1 && !(unsigned int)memcmp(v6, v13, v9 - 1) ) { v6 = i; } else if ( i - v6 > 0 && *(i - 1) == 47 ) { --i; } else if ( i - v6 > 1 && *(i - 1) == 46 && *(i - 2) == 47 ) { i -= 2; } } } stpcpy(v10, v11); return i - v11; }
cleanup_dirname: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI JMP 0x00176238 LAB_00176238: LEA RAX,[RBP + -0x210] MOV qword ptr [RBP + -0x240],RAX MOV RAX,qword ptr [RBP + -0x220] MOV qword ptr [RBP + -0x238],RAX MOV byte ptr [RBP + -0xd],0x2f LEA RDI,[RBP + -0xd] ADD RDI,0x1 LEA RSI,[0x1ce5c8] CALL 0x00136970 LEA RCX,[RBP + -0xd] SUB RAX,RCX MOV qword ptr [RBP + -0x228],RAX MOV RAX,qword ptr [RBP + -0x240] MOV qword ptr [RBP + -0x230],RAX LAB_00176288: MOV RAX,qword ptr [RBP + -0x238] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x238],RCX MOV AL,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x230] MOV byte ptr [RCX],AL MOVSX EAX,AL CMP EAX,0x0 JZ 0x00176681 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x001762cd MOV RAX,qword ptr [RBP + -0x230] MOV byte ptr [RAX],0x2f LAB_001762cd: MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x00176668 MOV RAX,qword ptr [RBP + -0x230] MOV RCX,qword ptr [RBP + -0x240] SUB RAX,RCX CMP RAX,qword ptr [RBP + -0x228] JBE 0x00176584 MOV RDI,qword ptr [RBP + -0x230] XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x228] ADD RDI,RAX LEA RSI,[RBP + -0xd] MOV RDX,qword ptr [RBP + -0x228] CALL 0x00136ac0 CMP EAX,0x0 JNZ 0x00176584 MOV RDX,qword ptr [RBP + -0x228] MOV RAX,qword ptr [RBP + -0x230] XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] CMP RAX,qword ptr [RBP + -0x240] JZ 0x0017657f MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x7e JNZ 0x0017640f MOV RAX,qword ptr [RBP + -0x230] CMP RAX,qword ptr [RBP + -0x240] JZ 0x001763a0 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2f JNZ 0x0017640f LAB_001763a0: LEA RAX,[0x4f58b8] CMP qword ptr [RAX],0x0 JNZ 0x001763cb MOV RAX,qword ptr [RBP + -0x228] ADD RAX,0x1 ADD RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x230],RAX JMP 0x0017666a LAB_001763cb: LEA RDI,[RBP + -0x210] LEA RAX,[0x4f58b8] MOV RSI,qword ptr [RAX] CALL 0x00136970 ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x0017640d MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX LAB_0017640d: JMP 0x0017640f LAB_0017640f: MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2e JNZ 0x001764bb MOV RAX,qword ptr [RBP + -0x230] CMP RAX,qword ptr [RBP + -0x240] JZ 0x00176442 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2f JNZ 0x001764bb LAB_00176442: LEA RDI,[0x4f58d0] MOV ESI,0x200 XOR EAX,EAX MOV EDX,EAX CALL 0x0017c080 CMP EAX,0x0 JZ 0x0017647a MOV RAX,qword ptr [RBP + -0x228] ADD RAX,0x1 ADD RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x230],RAX JMP 0x0017666a LAB_0017647a: LEA RDI,[RBP + -0x210] LEA RSI,[0x4f58d0] CALL 0x00136970 ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f JNZ 0x001764b9 MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX LAB_001764b9: JMP 0x001764bb LAB_001764bb: MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x248],RAX LAB_001764c9: MOV RCX,qword ptr [RBP + -0x230] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x240] MOV byte ptr [RBP + -0x249],AL JC 0x001764f7 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX] CMP EAX,0x2f SETNZ AL MOV byte ptr [RBP + -0x249],AL LAB_001764f7: MOV AL,byte ptr [RBP + -0x249] TEST AL,0x1 JNZ 0x00176503 JMP 0x00176517 LAB_00176503: MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX JMP 0x001764c9 LAB_00176517: MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x7e JZ 0x00176553 MOV RAX,qword ptr [RBP + -0x230] CMP RAX,qword ptr [RBP + -0x240] JC 0x0017657d MOV RDI,qword ptr [RBP + -0x230] LEA RSI,[RBP + -0xd] MOV RDX,qword ptr [RBP + -0x228] CALL 0x00136ac0 CMP EAX,0x0 JNZ 0x0017657d LAB_00176553: MOV RDI,qword ptr [RBP + -0x248] ADD RDI,0x1 LEA RSI,[RBP + -0xd] CALL 0x00136970 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOV byte ptr [RAX],0x2f JMP 0x0017666a LAB_0017657d: JMP 0x0017657f LAB_0017657f: JMP 0x00176666 LAB_00176584: MOV RAX,qword ptr [RBP + -0x230] MOV RCX,qword ptr [RBP + -0x240] SUB RAX,RCX MOV RCX,qword ptr [RBP + -0x228] SUB RCX,0x1 CMP RAX,RCX JNZ 0x001765dc MOV RDI,qword ptr [RBP + -0x240] LEA RSI,[RBP + -0xd] ADD RSI,0x1 MOV RDX,qword ptr [RBP + -0x228] SUB RDX,0x1 CALL 0x00136ac0 CMP EAX,0x0 JNZ 0x001765dc MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x240],RAX JMP 0x00176664 LAB_001765dc: MOV RAX,qword ptr [RBP + -0x230] MOV RCX,qword ptr [RBP + -0x240] SUB RAX,RCX CMP RAX,0x0 JLE 0x00176617 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2f JNZ 0x00176617 MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x1 MOV qword ptr [RBP + -0x230],RAX JMP 0x00176662 LAB_00176617: MOV RAX,qword ptr [RBP + -0x230] MOV RCX,qword ptr [RBP + -0x240] SUB RAX,RCX CMP RAX,0x1 JLE 0x00176660 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2e JNZ 0x00176660 MOV RAX,qword ptr [RBP + -0x230] MOVSX EAX,byte ptr [RAX + -0x2] CMP EAX,0x2f JNZ 0x00176660 MOV RAX,qword ptr [RBP + -0x230] ADD RAX,-0x2 MOV qword ptr [RBP + -0x230],RAX LAB_00176660: JMP 0x00176662 LAB_00176662: JMP 0x00176664 LAB_00176664: JMP 0x00176666 LAB_00176666: JMP 0x00176668 LAB_00176668: JMP 0x0017666a LAB_0017666a: MOV RAX,qword ptr [RBP + -0x230] ADD RAX,0x1 MOV qword ptr [RBP + -0x230],RAX JMP 0x00176288 LAB_00176681: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x00136970 JMP 0x00176696 LAB_00176696: JMP 0x00176698 LAB_00176698: MOV RAX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x210] SUB RAX,RCX MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001766d2 MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_001766d2: CALL 0x001362a0
long cleanup_dirname(char *param_1,char *param_2) { char cVar1; int iVar2; char *pcVar3; ulong __n; char *pcVar4; long in_FS_OFFSET; bool bVar5; char *local_248; char *local_240; char *local_238; char local_218 [515]; char local_15; char acStack_14 [4]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_248 = local_218; local_15 = '/'; pcVar3 = stpcpy(acStack_14,".."); __n = (long)pcVar3 - (long)&local_15; local_240 = param_2; local_238 = local_248; do { cVar1 = *local_240; *local_238 = cVar1; if (cVar1 == '\0') { stpcpy(param_1,local_218); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return (long)local_238 - (long)local_218; } if (*local_238 == '/') { *local_238 = '/'; } if (*local_238 == '/') { if ((__n < (ulong)((long)local_238 - (long)local_248)) && (iVar2 = memcmp(local_238 + -__n,&local_15,__n), iVar2 == 0)) { local_238 = local_238 + -__n; if (local_238 != local_248) { pcVar3 = local_238 + -1; if ((*pcVar3 == '~') && ((pcVar3 == local_248 || (local_238[-2] == '/')))) { if (home_dir == (char *)0x0) { local_238 = pcVar3 + __n + 1; goto LAB_0017666a; } pcVar4 = stpcpy(local_218,home_dir); pcVar3 = pcVar4 + -1; if (pcVar4[-1] == '/') { pcVar3 = pcVar4 + -2; } } local_238 = pcVar3; pcVar3 = local_238; if ((*local_238 == '.') && ((local_238 == local_248 || (local_238[-1] == '/')))) { iVar2 = my_getwd(&curr_dir,0x200,0); if (iVar2 != 0) { local_238 = local_238 + __n + 1; goto LAB_0017666a; } pcVar4 = stpcpy(local_218,&curr_dir); local_238 = pcVar4 + -1; pcVar3 = local_238; if (*local_238 == '/') { local_238 = pcVar4 + -2; pcVar3 = local_238; } } while( true ) { bVar5 = false; if (local_248 <= local_238) { bVar5 = *local_238 != '/'; } if (!bVar5) break; local_238 = local_238 + -1; } if ((local_238[1] == '~') || ((local_248 <= local_238 && (iVar2 = memcmp(local_238,&local_15,__n), iVar2 == 0)))) { local_238 = stpcpy(pcVar3 + 1,&local_15); *local_238 = '/'; } } } else if (((long)local_238 - (long)local_248 == __n - 1) && (iVar2 = memcmp(local_248,acStack_14,__n - 1), iVar2 == 0)) { local_248 = local_238; } else if (((long)local_238 - (long)local_248 < 1) || (local_238[-1] != '/')) { if ((1 < (long)local_238 - (long)local_248) && ((local_238[-1] == '.' && (local_238[-2] == '/')))) { local_238 = local_238 + -2; } } else { local_238 = local_238 + -1; } } LAB_0017666a: local_238 = local_238 + 1; local_240 = local_240 + 1; } while( true ); }
7,002
get_hash_link
eloqsql/storage/maria/ma_pagecache.c
static PAGECACHE_HASH_LINK *get_hash_link(PAGECACHE *pagecache, PAGECACHE_FILE *file, pgcache_page_no_t pageno) { reg1 PAGECACHE_HASH_LINK *hash_link; PAGECACHE_HASH_LINK **start; DBUG_ENTER("get_hash_link"); restart: /* try to find the page in the cache */ hash_link= get_present_hash_link(pagecache, file, pageno, &start); if (!hash_link) { /* There is no hash link in the hash table for the pair (file, pageno) */ if (pagecache->free_hash_list) { DBUG_PRINT("info", ("free_hash_list: %p free_hash_list->next: %p", pagecache->free_hash_list, pagecache->free_hash_list->next)); hash_link= pagecache->free_hash_list; pagecache->free_hash_list= hash_link->next; } else if (pagecache->hash_links_used < pagecache->hash_links) { hash_link= &pagecache->hash_link_root[pagecache->hash_links_used++]; } else { /* Wait for a free hash link */ struct st_my_thread_var *thread= my_thread_var; PAGECACHE_PAGE page; page.file= *file; page.pageno= pageno; thread->keycache_link= (void *) &page; wqueue_link_into_queue(&pagecache->waiting_for_hash_link, thread); DBUG_PRINT("wait", ("suspend thread %s %ld", thread->name, (ulong) thread->id)); pagecache_pthread_cond_wait(&thread->suspend, &pagecache->cache_lock); thread->keycache_link= NULL; DBUG_PRINT("thread", ("restarting...")); goto restart; } hash_link->file= *file; DBUG_ASSERT(pageno < ((1ULL) << 40)); hash_link->pageno= pageno; link_hash(start, hash_link); /* Register the request for the page */ hash_link->requests++; DBUG_ASSERT(hash_link->block == 0); DBUG_ASSERT(hash_link->requests == 1); } else { /* We have to copy the flush_log callback, as it may change if the table goes from non_transactional to transactional during recovery */ hash_link->file.flush_log_callback= file->flush_log_callback; } DBUG_PRINT("exit", ("hash_link: %p block: %p", hash_link, hash_link->block)); DBUG_RETURN(hash_link); }
O0
c
get_hash_link: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx leaq -0x28(%rbp), %rcx callq 0x40580 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x41f1d movq -0x8(%rbp), %rax cmpq $0x0, 0x98(%rax) je 0x41e13 jmp 0x41deb jmp 0x41ded movq -0x8(%rbp), %rax movq 0x98(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x98(%rax) jmp 0x41ed7 movq -0x8(%rbp), %rax movq 0x38(%rax), %rax movq -0x8(%rbp), %rcx cmpq 0x30(%rcx), %rax jge 0x41e53 movq -0x8(%rbp), %rax movq 0x90(%rax), %rax movq -0x8(%rbp), %rdx movq 0x38(%rdx), %rcx movq %rcx, %rsi addq $0x1, %rsi movq %rsi, 0x38(%rdx) imulq $0x70, %rcx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) jmp 0x41ed5 callq 0xfe880 movq %rax, -0x30(%rbp) leaq -0x80(%rbp), %rdi movq -0x10(%rbp), %rsi movl $0x48, %edx callq 0x2a0b0 movq -0x18(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax leaq -0x80(%rbp), %rcx movq %rcx, 0xa8(%rax) movq -0x8(%rbp), %rdi addq $0x118, %rdi # imm = 0x118 movq -0x30(%rbp), %rsi callq 0x108610 jmp 0x41e9b movq -0x30(%rbp), %rdi addq $0x8, %rdi movq -0x8(%rbp), %rsi addq $0xc8, %rsi leaq 0x119b6f(%rip), %rdx # 0x15ba24 movl $0x736, %ecx # imm = 0x736 callq 0x41b10 movq -0x30(%rbp), %rax movq $0x0, 0xa8(%rax) jmp 0x41ed0 jmp 0x41db7 jmp 0x41ed7 movq -0x20(%rbp), %rdi addq $0x18, %rdi movq -0x10(%rbp), %rsi movl $0x48, %edx callq 0x2a0b0 jmp 0x41eef movq -0x18(%rbp), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x60(%rax) movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x424a0 movq -0x20(%rbp), %rax movl 0x68(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x68(%rax) jmp 0x41f17 jmp 0x41f19 jmp 0x41f1b jmp 0x41f2d movq -0x10(%rbp), %rax movq 0x38(%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, 0x50(%rax) jmp 0x41f2f jmp 0x41f31 jmp 0x41f33 movq -0x20(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x88(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
get_hash_link: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx loc_41DB7: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] lea rcx, [rbp+var_28] call get_present_hash_link mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz loc_41F1D mov rax, [rbp+var_8] cmp qword ptr [rax+98h], 0 jz short loc_41E13 jmp short $+2 loc_41DEB: jmp short $+2 loc_41DED: mov rax, [rbp+var_8] mov rax, [rax+98h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov rcx, [rax] mov rax, [rbp+var_8] mov [rax+98h], rcx jmp loc_41ED7 loc_41E13: mov rax, [rbp+var_8] mov rax, [rax+38h] mov rcx, [rbp+var_8] cmp rax, [rcx+30h] jge short loc_41E53 mov rax, [rbp+var_8] mov rax, [rax+90h] mov rdx, [rbp+var_8] mov rcx, [rdx+38h] mov rsi, rcx add rsi, 1 mov [rdx+38h], rsi imul rcx, 70h ; 'p' add rax, rcx mov [rbp+var_20], rax jmp loc_41ED5 loc_41E53: call _my_thread_var mov [rbp+var_30], rax lea rdi, [rbp+var_80] mov rsi, [rbp+var_10] mov edx, 48h ; 'H' call _memcpy mov rax, [rbp+var_18] mov [rbp+var_38], rax mov rax, [rbp+var_30] lea rcx, [rbp+var_80] mov [rax+0A8h], rcx mov rdi, [rbp+var_8] add rdi, 118h mov rsi, [rbp+var_30] call wqueue_link_into_queue jmp short $+2 loc_41E9B: mov rdi, [rbp+var_30] add rdi, 8 mov rsi, [rbp+var_8] add rsi, 0C8h lea rdx, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 736h call inline_mysql_cond_wait_0 mov rax, [rbp+var_30] mov qword ptr [rax+0A8h], 0 jmp short $+2 loc_41ED0: jmp loc_41DB7 loc_41ED5: jmp short $+2 loc_41ED7: mov rdi, [rbp+var_20] add rdi, 18h mov rsi, [rbp+var_10] mov edx, 48h ; 'H' call _memcpy jmp short $+2 loc_41EEF: mov rcx, [rbp+var_18] mov rax, [rbp+var_20] mov [rax+60h], rcx mov rdi, [rbp+var_28] mov rsi, [rbp+var_20] call link_hash mov rax, [rbp+var_20] mov ecx, [rax+68h] add ecx, 1 mov [rax+68h], ecx jmp short $+2 loc_41F17: jmp short $+2 loc_41F19: jmp short $+2 loc_41F1B: jmp short loc_41F2D loc_41F1D: mov rax, [rbp+var_10] mov rcx, [rax+38h] mov rax, [rbp+var_20] mov [rax+50h], rcx loc_41F2D: jmp short $+2 loc_41F2F: jmp short $+2 loc_41F31: jmp short $+2 loc_41F33: mov rax, [rbp+var_20] mov [rbp+var_88], rax mov rax, [rbp+var_88] add rsp, 90h pop rbp retn
long long * get_hash_link(_QWORD *a1, long long a2, long long a3) { long long v3; // rax long long v4; // rcx _BYTE v6[72]; // [rsp+10h] [rbp-80h] BYREF long long v7; // [rsp+58h] [rbp-38h] long long v8; // [rsp+60h] [rbp-30h] long long v9; // [rsp+68h] [rbp-28h] BYREF long long *present_hash_link; // [rsp+70h] [rbp-20h] long long v11; // [rsp+78h] [rbp-18h] long long v12; // [rsp+80h] [rbp-10h] _QWORD *v13; // [rsp+88h] [rbp-8h] v13 = a1; v12 = a2; v11 = a3; while ( 1 ) { present_hash_link = get_present_hash_link((long long)v13, v12, v11, &v9); if ( present_hash_link ) break; if ( v13[19] ) { present_hash_link = (long long *)v13[19]; v13[19] = *present_hash_link; LABEL_8: memcpy(present_hash_link + 3, v12, 72LL); present_hash_link[12] = v11; link_hash(v9, present_hash_link); ++*((_DWORD *)present_hash_link + 26); return present_hash_link; } if ( v13[7] < v13[6] ) { v3 = v13[18]; v4 = v13[7]; v13[7] = v4 + 1; present_hash_link = (long long *)(112 * v4 + v3); goto LABEL_8; } v8 = my_thread_var(); memcpy(v6, v12, sizeof(v6)); v7 = v11; *(_QWORD *)(v8 + 168) = v6; wqueue_link_into_queue(v13 + 35, v8); inline_mysql_cond_wait_0( v8 + 8, (long long)(v13 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x736u); *(_QWORD *)(v8 + 168) = 0LL; } present_hash_link[10] = *(_QWORD *)(v12 + 56); return present_hash_link; }
get_hash_link: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LAB_00141db7: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] LEA RCX,[RBP + -0x28] CALL 0x00140580 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00141f1d MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x98],0x0 JZ 0x00141e13 JMP 0x00141deb LAB_00141deb: JMP 0x00141ded LAB_00141ded: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x98] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x98],RCX JMP 0x00141ed7 LAB_00141e13: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x38] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x30] JGE 0x00141e53 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x90] MOV RDX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RDX + 0x38] MOV RSI,RCX ADD RSI,0x1 MOV qword ptr [RDX + 0x38],RSI IMUL RCX,RCX,0x70 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX JMP 0x00141ed5 LAB_00141e53: CALL 0x001fe880 MOV qword ptr [RBP + -0x30],RAX LEA RDI,[RBP + -0x80] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,0x48 CALL 0x0012a0b0 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] LEA RCX,[RBP + -0x80] MOV qword ptr [RAX + 0xa8],RCX MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x118 MOV RSI,qword ptr [RBP + -0x30] CALL 0x00208610 JMP 0x00141e9b LAB_00141e9b: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x8 MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc8 LEA RDX,[0x25ba24] MOV ECX,0x736 CALL 0x00141b10 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0xa8],0x0 JMP 0x00141ed0 LAB_00141ed0: JMP 0x00141db7 LAB_00141ed5: JMP 0x00141ed7 LAB_00141ed7: MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x10] MOV EDX,0x48 CALL 0x0012a0b0 JMP 0x00141eef LAB_00141eef: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x60],RCX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001424a0 MOV RAX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RAX + 0x68] ADD ECX,0x1 MOV dword ptr [RAX + 0x68],ECX JMP 0x00141f17 LAB_00141f17: JMP 0x00141f19 LAB_00141f19: JMP 0x00141f1b LAB_00141f1b: JMP 0x00141f2d LAB_00141f1d: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x50],RCX LAB_00141f2d: JMP 0x00141f2f LAB_00141f2f: JMP 0x00141f31 LAB_00141f31: JMP 0x00141f33 LAB_00141f33: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x88] ADD RSP,0x90 POP RBP RET
int8 * get_hash_link(long param_1,void *param_2,int8 param_3) { long lVar1; int1 local_88 [72]; int8 local_40; long local_38; int8 local_30; int8 *local_28; int8 local_20; void *local_18; long local_10; local_20 = param_3; local_18 = param_2; local_10 = param_1; while( true ) { local_28 = (int8 *)get_present_hash_link(local_10,local_18,local_20,&local_30); if (local_28 != (int8 *)0x0) { local_28[10] = *(int8 *)((long)local_18 + 0x38); return local_28; } if (*(long *)(local_10 + 0x98) != 0) break; if (*(long *)(local_10 + 0x38) < *(long *)(local_10 + 0x30)) { lVar1 = *(long *)(local_10 + 0x38); *(long *)(local_10 + 0x38) = lVar1 + 1; local_28 = (int8 *)(*(long *)(local_10 + 0x90) + lVar1 * 0x70); goto LAB_00141ed7; } local_38 = _my_thread_var(); memcpy(local_88,local_18,0x48); local_40 = local_20; *(int1 **)(local_38 + 0xa8) = local_88; wqueue_link_into_queue(local_10 + 0x118,local_38); inline_mysql_cond_wait (local_38 + 8,local_10 + 200, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",0x736); *(int8 *)(local_38 + 0xa8) = 0; } local_28 = *(int8 **)(local_10 + 0x98); *(int8 *)(local_10 + 0x98) = *local_28; LAB_00141ed7: memcpy(local_28 + 3,local_18,0x48); local_28[0xc] = local_20; link_hash(local_30,local_28); *(int *)(local_28 + 0xd) = *(int *)(local_28 + 0xd) + 1; return local_28; }
7,003
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)
ng-log[P]ng-log/src/logging.cc
CheckOpMessageBuilder::CheckOpMessageBuilder(const char* exprtext) : stream_(new ostringstream) { *stream_ << exprtext << " ("; }
O1
cpp
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %r15 movl $0x178, %edi # imm = 0x178 callq 0x7520 movq %rax, %rbx movq %rax, %rdi callq 0x7750 movq %rbx, (%r15) testq %r14, %r14 je 0xddd6 movq %r14, %rdi callq 0x71f0 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x7600 jmp 0xddef movq (%rbx), %rax movq -0x18(%rax), %rax movq %rbx, %rdi addq %rax, %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x7930 leaq 0x14976(%rip), %rsi # 0x2276c movl $0x2, %edx movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x7600 movq %rax, %r14 movl $0x178, %esi # imm = 0x178 movq %rbx, %rdi callq 0x7530 movq %r14, %rdi callq 0x7970
_ZN5nglog8internal21CheckOpMessageBuilderC2EPKc: push r15; Alternative name is 'nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)' push r14 push rbx mov r14, rsi mov r15, rdi mov edi, 178h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov rdi, rax call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov [r15], rbx test r14, r14 jz short loc_DDD6 mov rdi, r14 call _strlen mov rdi, rbx mov rsi, r14 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_DDEF loc_DDD6: mov rax, [rbx] mov rax, [rax-18h] mov rdi, rbx add rdi, rax mov esi, [rbx+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_DDEF: lea rsi, asc_2276C; " (" mov edx, 2 mov rdi, rbx pop rbx pop r14 pop r15 jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r14, rax mov esi, 178h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 call __Unwind_Resume
long long nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder( nglog::internal::CheckOpMessageBuilder *this, const char *a2) { _QWORD *v2; // rbx long long v3; // rax v2 = (_QWORD *)operator new(0x178uLL); std::ostringstream::basic_ostringstream(v2); *(_QWORD *)this = v2; if ( a2 ) { v3 = strlen(a2); std::__ostream_insert<char,std::char_traits<char>>(v2, a2, v3); } else { std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u); } return std::__ostream_insert<char,std::char_traits<char>>(v2, " (", 2LL); }
CheckOpMessageBuilder: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV R15,RDI MOV EDI,0x178 CALL 0x00107520 MOV RBX,RAX LAB_0010ddae: MOV RDI,RAX CALL 0x00107750 LAB_0010ddb6: MOV qword ptr [R15],RBX TEST R14,R14 JZ 0x0010ddd6 MOV RDI,R14 CALL 0x001071f0 MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x00107600 JMP 0x0010ddef LAB_0010ddd6: MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] MOV RDI,RBX ADD RDI,RAX MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00107930 LAB_0010ddef: LEA RSI,[0x12276c] MOV EDX,0x2 MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x00107600
/* nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*) */ void __thiscall nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder (CheckOpMessageBuilder *this,char *param_1) { ostringstream *this_00; size_t sVar1; this_00 = (ostringstream *)operator_new(0x178); /* try { // try from 0010ddae to 0010ddb5 has its CatchHandler @ 0010de08 */ std::__cxx11::ostringstream::ostringstream(this_00); *(ostringstream **)this = this_00; if (param_1 == (char *)0x0) { std::ios::clear(this_00 + *(long *)(*(long *)this_00 + -0x18), *(uint *)(this_00 + *(long *)(*(long *)this_00 + -0x18) + 0x20) | 1); } else { sVar1 = strlen(param_1); std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00,param_1,sVar1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00," (",2); return; }
7,004
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)
ng-log[P]ng-log/src/logging.cc
CheckOpMessageBuilder::CheckOpMessageBuilder(const char* exprtext) : stream_(new ostringstream) { *stream_ << exprtext << " ("; }
O3
cpp
nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %r15 movl $0x178, %edi # imm = 0x178 callq 0x7520 movq %rax, %rbx movq %rax, %rdi callq 0x7750 movq %rbx, (%r15) testq %r14, %r14 je 0xdc44 movq %r14, %rdi callq 0x71f0 movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x7600 jmp 0xdc5d movq (%rbx), %rax movq -0x18(%rax), %rax movq %rbx, %rdi addq %rax, %rdi movl 0x20(%rbx,%rax), %esi orl $0x1, %esi callq 0x7930 leaq 0x14af0(%rip), %rsi # 0x22754 movl $0x2, %edx movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x7600 movq %rax, %r14 movl $0x178, %esi # imm = 0x178 movq %rbx, %rdi callq 0x7530 movq %r14, %rdi callq 0x7970
_ZN5nglog8internal21CheckOpMessageBuilderC2EPKc: push r15; Alternative name is 'nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*)' push r14 push rbx mov r14, rsi mov r15, rdi mov edi, 178h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax mov rdi, rax call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov [r15], rbx test r14, r14 jz short loc_DC44 mov rdi, r14 call _strlen mov rdi, rbx mov rsi, r14 mov rdx, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) jmp short loc_DC5D loc_DC44: mov rax, [rbx] mov rax, [rax-18h] mov rdi, rbx add rdi, rax mov esi, [rbx+rax+20h] or esi, 1 call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate) loc_DC5D: lea rsi, asc_22754; " (" mov edx, 2 mov rdi, rbx pop rbx pop r14 pop r15 jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov r14, rax mov esi, 178h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, r14 call __Unwind_Resume
long long nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder( nglog::internal::CheckOpMessageBuilder *this, const char *a2) { _QWORD *v2; // rbx long long v3; // rax v2 = (_QWORD *)operator new(0x178uLL); std::ostringstream::basic_ostringstream(v2); *(_QWORD *)this = v2; if ( a2 ) { v3 = strlen(a2); std::__ostream_insert<char,std::char_traits<char>>(v2, a2, v3); } else { std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u); } return std::__ostream_insert<char,std::char_traits<char>>(v2, " (", 2LL); }
CheckOpMessageBuilder: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV R15,RDI MOV EDI,0x178 CALL 0x00107520 MOV RBX,RAX LAB_0010dc1c: MOV RDI,RAX CALL 0x00107750 LAB_0010dc24: MOV qword ptr [R15],RBX TEST R14,R14 JZ 0x0010dc44 MOV RDI,R14 CALL 0x001071f0 MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x00107600 JMP 0x0010dc5d LAB_0010dc44: MOV RAX,qword ptr [RBX] MOV RAX,qword ptr [RAX + -0x18] MOV RDI,RBX ADD RDI,RAX MOV ESI,dword ptr [RBX + RAX*0x1 + 0x20] OR ESI,0x1 CALL 0x00107930 LAB_0010dc5d: LEA RSI,[0x122754] MOV EDX,0x2 MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x00107600
/* nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder(char const*) */ void __thiscall nglog::internal::CheckOpMessageBuilder::CheckOpMessageBuilder (CheckOpMessageBuilder *this,char *param_1) { ostringstream *this_00; size_t sVar1; this_00 = (ostringstream *)operator_new(0x178); /* try { // try from 0010dc1c to 0010dc23 has its CatchHandler @ 0010dc76 */ std::__cxx11::ostringstream::ostringstream(this_00); *(ostringstream **)this = this_00; if (param_1 == (char *)0x0) { std::ios::clear(this_00 + *(long *)(*(long *)this_00 + -0x18), *(uint *)(this_00 + *(long *)(*(long *)this_00 + -0x18) + 0x20) | 1); } else { sVar1 = strlen(param_1); std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00,param_1,sVar1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)this_00," (",2); return; }
7,005
ma_invalidate_stmts
eloqsql/libmariadb/libmariadb/mariadb_lib.c
void ma_invalidate_stmts(MYSQL *mysql, const char *function_name) { if (mysql->stmts) { LIST *li_stmt= mysql->stmts; for (; li_stmt; li_stmt= li_stmt->next) { MYSQL_STMT *stmt= (MYSQL_STMT *)li_stmt->data; stmt->mysql= NULL; SET_CLIENT_STMT_ERROR(stmt, CR_STMT_CLOSED, SQLSTATE_UNKNOWN, function_name); } mysql->stmts= NULL; } }
O0
c
ma_invalidate_stmts: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x4c8(%rax) je 0x1e13c movq -0x8(%rbp), %rax movq 0x4c8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x1e12d movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq $0x0, 0x38(%rax) movq -0x20(%rbp), %rax movl $0x808, 0x108(%rax) # imm = 0x808 movq -0x20(%rbp), %rdi addq $0x30d, %rdi # imm = 0x30D leaq 0x41ebc(%rip), %rax # 0x5ff70 movq (%rax), %rsi movl $0x5, %edx callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x312(%rax) movq -0x20(%rbp), %rax addq $0x10c, %rax # imm = 0x10C movq %rax, -0x28(%rbp) cmpq $0x0, -0x10(%rbp) je 0x1e0eb movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x1e0fd leaq 0x41e8e(%rip), %rax # 0x5ff80 movq 0x1c0(%rax), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13210 movq -0x20(%rbp), %rax movb $0x0, 0x30b(%rax) jmp 0x1e11c movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0x1e071 movq -0x8(%rbp), %rax movq $0x0, 0x4c8(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_invalidate_stmts: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] cmp qword ptr [rax+4C8h], 0 jz loc_1E13C mov rax, [rbp+var_8] mov rax, [rax+4C8h] mov [rbp+var_18], rax loc_1E071: cmp [rbp+var_18], 0 jz loc_1E12D mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov qword ptr [rax+38h], 0 mov rax, [rbp+var_20] mov dword ptr [rax+108h], 808h mov rdi, [rbp+var_20] add rdi, 30Dh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+312h], 0 mov rax, [rbp+var_20] add rax, 10Ch mov [rbp+var_28], rax cmp [rbp+var_10], 0 jz short loc_1E0EB mov rax, [rbp+var_10] mov [rbp+var_30], rax jmp short loc_1E0FD loc_1E0EB: lea rax, client_errors mov rax, [rax+1C0h] mov [rbp+var_30], rax loc_1E0FD: mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] mov edx, 200h call _strncpy mov rax, [rbp+var_20] mov byte ptr [rax+30Bh], 0 jmp short $+2 loc_1E11C: mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_18], rax jmp loc_1E071 loc_1E12D: mov rax, [rbp+var_8] mov qword ptr [rax+4C8h], 0 loc_1E13C: add rsp, 30h pop rbp retn
long long ma_invalidate_stmts(long long a1, long long a2) { long long result; // rax long long v3; // [rsp+8h] [rbp-28h] long long v4; // [rsp+10h] [rbp-20h] long long i; // [rsp+18h] [rbp-18h] result = a1; if ( *(_QWORD *)(a1 + 1224) ) { for ( i = *(_QWORD *)(a1 + 1224); i; i = *(_QWORD *)(i + 8) ) { v4 = *(_QWORD *)(i + 16); *(_QWORD *)(v4 + 56) = 0LL; *(_DWORD *)(v4 + 264) = 2056; strncpy(v4 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(v4 + 786) = 0; v3 = v4 + 268; if ( a2 ) strncpy(v3, a2, 512LL); else strncpy(v3, client_errors[56], 512LL); *(_BYTE *)(v4 + 779) = 0; } result = a1; *(_QWORD *)(a1 + 1224) = 0LL; } return result; }
ma_invalidate_stmts: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x4c8],0x0 JZ 0x0011e13c MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4c8] MOV qword ptr [RBP + -0x18],RAX LAB_0011e071: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0011e12d MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX + 0x38],0x0 MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x108],0x808 MOV RDI,qword ptr [RBP + -0x20] ADD RDI,0x30d LEA RAX,[0x15ff70] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x312],0x0 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x10c MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x0011e0eb MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX JMP 0x0011e0fd LAB_0011e0eb: LEA RAX,[0x15ff80] MOV RAX,qword ptr [RAX + 0x1c0] MOV qword ptr [RBP + -0x30],RAX LAB_0011e0fd: MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x30] MOV EDX,0x200 CALL 0x00113210 MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x30b],0x0 JMP 0x0011e11c LAB_0011e11c: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0011e071 LAB_0011e12d: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x4c8],0x0 LAB_0011e13c: ADD RSP,0x30 POP RBP RET
void ma_invalidate_stmts(long param_1,char *param_2) { long lVar1; int8 local_38; int8 local_20; if (*(long *)(param_1 + 0x4c8) != 0) { for (local_20 = *(long *)(param_1 + 0x4c8); local_20 != 0; local_20 = *(long *)(local_20 + 8)) { lVar1 = *(long *)(local_20 + 0x10); *(int8 *)(lVar1 + 0x38) = 0; *(int4 *)(lVar1 + 0x108) = 0x808; strncpy((char *)(lVar1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(lVar1 + 0x312) = 0; local_38 = param_2; if (param_2 == (char *)0x0) { local_38 = PTR_s_Server_closed_statement_due_to_a_00160140; } strncpy((char *)(lVar1 + 0x10c),local_38,0x200); *(int1 *)(lVar1 + 0x30b) = 0; } *(int8 *)(param_1 + 0x4c8) = 0; } return; }
7,006
my_coll_lexem_next
eloqsql/strings/ctype-uca.c
static my_coll_lexem_num my_coll_lexem_next(MY_COLL_LEXEM *lexem) { const char *beg; my_coll_lexem_num rc; for (beg= lexem->beg ; beg < lexem->end ; beg++) { switch (*beg) { case ' ': case '\t': case '\r': case '\n': continue; case '[': /* Bracket expression, e.g. "[optimize [a-z]]" */ { size_t nbrackets; /* Indicates nested recursion level */ for (beg++, nbrackets= 1 ; beg < lexem->end; beg++) { if (*beg == '[') /* Enter nested bracket expression */ nbrackets++; else if (*beg == ']') { if (--nbrackets == 0) { rc= MY_COLL_LEXEM_OPTION; beg++; goto ex; } } } rc= MY_COLL_LEXEM_ERROR; goto ex; } case '&': beg++; rc= MY_COLL_LEXEM_RESET; goto ex; case '=': beg++; lexem->diff= 0; rc= MY_COLL_LEXEM_SHIFT; goto ex; case '/': beg++; rc= MY_COLL_LEXEM_EXTEND; goto ex; case '|': beg++; rc= MY_COLL_LEXEM_CONTEXT; goto ex; case '<': /* Shift: '<' or '<<' or '<<<' or '<<<<' */ { /* Scan up to 3 additional '<' characters */ for (beg++, lexem->diff= 1; (beg < lexem->end) && (*beg == '<') && (lexem->diff <= 3); beg++, lexem->diff++); rc= MY_COLL_LEXEM_SHIFT; goto ex; } default: break; } /* Escaped character, e.g. \u1234 */ if ((*beg == '\\') && (beg + 2 < lexem->end) && (beg[1] == 'u') && my_isxdigit(&my_charset_utf8mb3_general_ci, beg[2])) { int ch; beg+= 2; lexem->code= 0; while ((beg < lexem->end) && ((ch= ch2x(beg[0])) >= 0)) { lexem->code= (lexem->code << 4) + ch; beg++; } rc= MY_COLL_LEXEM_CHAR; goto ex; } /* Unescaped single byte character: allow printable ASCII range except SPACE and special characters parsed above []<&/|= */ if (*beg >= 0x21 && *beg <= 0x7E) { lexem->code= *beg++; rc= MY_COLL_LEXEM_CHAR; goto ex; } if (((uchar) *beg) > 0x7F) /* Unescaped multibyte character */ { CHARSET_INFO *cs= &my_charset_utf8mb3_general_ci; my_wc_t wc; int nbytes= my_ci_mb_wc(cs, &wc, (uchar *) beg, (uchar *) lexem->end); if (nbytes > 0) { rc= MY_COLL_LEXEM_CHAR; beg+= nbytes; lexem->code= (int) wc; goto ex; } } rc= MY_COLL_LEXEM_ERROR; goto ex; } rc= MY_COLL_LEXEM_EOF; ex: lexem->prev= lexem->beg; lexem->beg= beg; lexem->term= rc; return rc; }
O3
c
my_coll_lexem_next: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x8(%rdi), %r14 movq 0x10(%rdi), %rcx xorl %r15d, %r15d cmpq %rcx, %r14 jae 0xbc8dd movzbl (%r14), %edx cmpl $0xc, %edx jle 0xbc6e5 cmpl $0x1f, %edx jle 0xbc6f2 cmpl $0x25, %edx jg 0xbc70b cmpl $0x20, %edx je 0xbc6fb jmp 0xbc897 leal -0x9(%rdx), %eax cmpl $0x2, %eax jb 0xbc6fb jmp 0xbc897 cmpl $0xd, %edx jne 0xbc897 incq %r14 cmpq %rcx, %r14 jne 0xbc6c8 movq %rcx, %rax jmp 0xbc8e0 cmpl $0x3c, %edx jle 0xbc768 cmpl $0x5b, %edx jg 0xbc7c9 cmpl $0x3d, %edx je 0xbc7e5 cmpl $0x5b, %edx jne 0xbc897 incq %r14 movl $0x6, %r15d cmpq %rcx, %r14 jae 0xbc8dd movl $0x1, %eax movzbl (%r14), %edx cmpl $0x5d, %edx je 0xbc755 cmpl $0x5b, %edx jne 0xbc75e incq %rax jmp 0xbc75e decq %rax je 0xbc8fa incq %r14 cmpq %rcx, %r14 jb 0xbc742 jmp 0xbc703 cmpl $0x26, %edx je 0xbc88c cmpl $0x2f, %edx je 0xbc881 cmpl $0x3c, %edx jne 0xbc897 incq %r14 movl $0x1, 0x20(%rbx) movl $0x1, %r15d cmpq %rcx, %r14 jae 0xbc8dd movl $0x2, %eax cmpb $0x3c, (%r14) jne 0xbc8dd leal -0x1(%rax), %edx cmpl $0x4, %edx jae 0xbc8dd incq %r14 movl %eax, 0x20(%rbx) incl %eax cmpq %rcx, %r14 jb 0xbc7a1 jmp 0xbc703 cmpl $0x5c, %edx je 0xbc7fa cmpl $0x7c, %edx jne 0xbc897 incq %r14 movl $0x9, %r15d jmp 0xbc8dd incq %r14 movl $0x0, 0x20(%rbx) movl $0x1, %r15d jmp 0xbc8dd leaq 0x2(%r14), %rax cmpq %rcx, %rax jae 0xbc8d1 cmpb $0x75, 0x1(%r14) jne 0xbc8d1 leaq 0x33b847(%rip), %rsi # 0x3f8060 movq 0x40(%rsi), %rsi movzbl (%rax), %edi cmpb $0x0, 0x1(%rsi,%rdi) jns 0xbc8d1 movl $0x0, 0x24(%rbx) xorl %edx, %edx movsbl (%rax), %esi leal -0x30(%rsi), %edi cmpl $0xa, %edi jb 0xbc869 leal -0x61(%rsi), %edi cmpl $0x5, %edi ja 0xbc84c addl $-0x57, %esi jmp 0xbc867 movl $0x5, %r15d cmpb $0x37, %sil jl 0xbc8e0 leal -0x41(%rsi), %edi cmpl $0x5, %edi ja 0xbc8e0 addl $-0x37, %esi movl %esi, %edi shll $0x4, %edx addl %edi, %edx movl %edx, 0x24(%rbx) incq %rax movl $0x5, %r15d cmpq %rcx, %rax jb 0xbc834 jmp 0xbc8e0 incq %r14 movl $0x8, %r15d jmp 0xbc8dd incq %r14 movl $0x4, %r15d jmp 0xbc8dd leal -0x7f(%rdx), %eax cmpb $-0x5e, %al jae 0xbc8d1 movl $0x6, %r15d testb %dl, %dl jns 0xbc8dd leaq 0x33b7b1(%rip), %rdi # 0x3f8060 movq 0xb8(%rdi), %rax leaq -0x20(%rbp), %rsi movq %r14, %rdx callq *0x28(%rax) testl %eax, %eax jle 0xbc8dd movl %eax, %eax addq %rax, %r14 movl -0x20(%rbp), %eax movl %eax, 0x24(%rbx) jmp 0xbc8d7 incq %r14 movl %edx, 0x24(%rbx) movl $0x5, %r15d movq %r14, %rax movq 0x8(%rbx), %rcx movq %rcx, 0x18(%rbx) movq %rax, 0x8(%rbx) movl %r15d, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq incq %r14 movl $0x7, %r15d jmp 0xbc8dd
my_coll_lexem_next: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi mov r14, [rdi+8] mov rcx, [rdi+10h] xor r15d, r15d cmp r14, rcx jnb loc_BC8DD loc_BC6C8: movzx edx, byte ptr [r14] cmp edx, 0Ch jle short loc_BC6E5 cmp edx, 1Fh jle short loc_BC6F2 cmp edx, 25h ; '%' jg short loc_BC70B cmp edx, 20h ; ' ' jz short loc_BC6FB jmp loc_BC897 loc_BC6E5: lea eax, [rdx-9] cmp eax, 2 jb short loc_BC6FB jmp loc_BC897 loc_BC6F2: cmp edx, 0Dh jnz loc_BC897 loc_BC6FB: inc r14 cmp r14, rcx jnz short loc_BC6C8 loc_BC703: mov rax, rcx jmp loc_BC8E0 loc_BC70B: cmp edx, 3Ch ; '<' jle short loc_BC768 cmp edx, 5Bh ; '[' jg loc_BC7C9 cmp edx, 3Dh ; '=' jz loc_BC7E5 cmp edx, 5Bh ; '[' jnz loc_BC897 inc r14 mov r15d, 6 cmp r14, rcx jnb loc_BC8DD mov eax, 1 loc_BC742: movzx edx, byte ptr [r14] cmp edx, 5Dh ; ']' jz short loc_BC755 cmp edx, 5Bh ; '[' jnz short loc_BC75E inc rax jmp short loc_BC75E loc_BC755: dec rax jz loc_BC8FA loc_BC75E: inc r14 cmp r14, rcx jb short loc_BC742 jmp short loc_BC703 loc_BC768: cmp edx, 26h ; '&' jz loc_BC88C cmp edx, 2Fh ; '/' jz loc_BC881 cmp edx, 3Ch ; '<' jnz loc_BC897 inc r14 mov dword ptr [rbx+20h], 1 mov r15d, 1 cmp r14, rcx jnb loc_BC8DD mov eax, 2 loc_BC7A1: cmp byte ptr [r14], 3Ch ; '<' jnz loc_BC8DD lea edx, [rax-1] cmp edx, 4 jnb loc_BC8DD inc r14 mov [rbx+20h], eax inc eax cmp r14, rcx jb short loc_BC7A1 jmp loc_BC703 loc_BC7C9: cmp edx, 5Ch ; '\' jz short loc_BC7FA cmp edx, 7Ch ; '|' jnz loc_BC897 inc r14 mov r15d, 9 jmp loc_BC8DD loc_BC7E5: inc r14 mov dword ptr [rbx+20h], 0 mov r15d, 1 jmp loc_BC8DD loc_BC7FA: lea rax, [r14+2] cmp rax, rcx jnb loc_BC8D1 cmp byte ptr [r14+1], 75h ; 'u' jnz loc_BC8D1 lea rsi, my_charset_utf8mb3_general_ci mov rsi, [rsi+40h] movzx edi, byte ptr [rax] cmp byte ptr [rsi+rdi+1], 0 jns loc_BC8D1 mov dword ptr [rbx+24h], 0 xor edx, edx loc_BC834: movsx esi, byte ptr [rax] lea edi, [rsi-30h] cmp edi, 0Ah jb short loc_BC869 lea edi, [rsi-61h] cmp edi, 5 ja short loc_BC84C add esi, 0FFFFFFA9h jmp short loc_BC867 loc_BC84C: mov r15d, 5 cmp sil, 37h ; '7' jl loc_BC8E0 lea edi, [rsi-41h] cmp edi, 5 ja short loc_BC8E0 add esi, 0FFFFFFC9h loc_BC867: mov edi, esi loc_BC869: shl edx, 4 add edx, edi mov [rbx+24h], edx inc rax mov r15d, 5 cmp rax, rcx jb short loc_BC834 jmp short loc_BC8E0 loc_BC881: inc r14 mov r15d, 8 jmp short loc_BC8DD loc_BC88C: inc r14 mov r15d, 4 jmp short loc_BC8DD loc_BC897: lea eax, [rdx-7Fh] cmp al, 0A2h jnb short loc_BC8D1 mov r15d, 6 test dl, dl jns short loc_BC8DD lea rdi, my_charset_utf8mb3_general_ci mov rax, [rdi+0B8h] lea rsi, [rbp+var_20] mov rdx, r14 call qword ptr [rax+28h] test eax, eax jle short loc_BC8DD mov eax, eax add r14, rax mov eax, [rbp+var_20] mov [rbx+24h], eax jmp short loc_BC8D7 loc_BC8D1: inc r14 mov [rbx+24h], edx loc_BC8D7: mov r15d, 5 loc_BC8DD: mov rax, r14 loc_BC8E0: mov rcx, [rbx+8] mov [rbx+18h], rcx mov [rbx+8], rax mov [rbx], r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_BC8FA: inc r14 mov r15d, 7 jmp short loc_BC8DD
unsigned __int8 * my_coll_lexem_next(long long a1) { long long v1; // rax unsigned __int8 *v3; // r14 unsigned long long v4; // rcx int v5; // r15d unsigned int v6; // edx unsigned __int8 *result; // rax long long v8; // rax int v9; // edx int v10; // eax int v11; // edx int v12; // esi int v13; // edi int v14; // esi int v15; // eax _QWORD v16[4]; // [rsp+0h] [rbp-20h] BYREF v16[0] = v1; v3 = *(unsigned __int8 **)(a1 + 8); v4 = *(_QWORD *)(a1 + 16); v5 = 0; if ( (unsigned long long)v3 >= v4 ) goto LABEL_58; do { v6 = *v3; if ( v6 <= 0xC ) { if ( v6 - 9 >= 2 ) goto LABEL_52; } else { if ( *v3 > 0x1Fu ) { if ( *v3 <= 0x25u ) { if ( v6 != 32 ) goto LABEL_52; goto LABEL_10; } if ( *v3 <= 0x3Cu ) { switch ( v6 ) { case '&': ++v3; v5 = 4; goto LABEL_58; case '/': ++v3; v5 = 8; goto LABEL_58; case '<': ++v3; *(_DWORD *)(a1 + 32) = 1; v5 = 1; if ( (unsigned long long)v3 >= v4 ) goto LABEL_58; v10 = 2; while ( *v3 == 60 && (unsigned int)(v10 - 1) < 4 ) { ++v3; *(_DWORD *)(a1 + 32) = v10++; if ( (unsigned long long)v3 >= v4 ) goto LABEL_11; } goto LABEL_58; } } else if ( *v3 > 0x5Bu ) { if ( v6 == 92 ) { result = v3 + 2; if ( (unsigned long long)(v3 + 2) < v4 && v3[1] == 117 && *(char *)(*(_QWORD *)&my_charset_utf8mb3_general_ci[16] + *result + 1LL) < 0 ) { *(_DWORD *)(a1 + 36) = 0; v11 = 0; while ( 1 ) { v12 = (char)*result; v13 = v12 - 48; if ( (unsigned int)(v12 - 48) >= 0xA ) { if ( (unsigned int)(v12 - 97) > 5 ) { v5 = 5; if ( (char)v12 < 55 || (unsigned int)(v12 - 65) > 5 ) goto LABEL_59; v14 = v12 - 55; } else { v14 = v12 - 87; } v13 = v14; } v11 = v13 + 16 * v11; *(_DWORD *)(a1 + 36) = v11; ++result; v5 = 5; if ( (unsigned long long)result >= v4 ) goto LABEL_59; } } goto LABEL_56; } if ( v6 == 124 ) { ++v3; v5 = 9; goto LABEL_58; } } else { if ( v6 == 61 ) { ++v3; *(_DWORD *)(a1 + 32) = 0; v5 = 1; goto LABEL_58; } if ( v6 == 91 ) { ++v3; v5 = 6; if ( (unsigned long long)v3 >= v4 ) goto LABEL_58; v8 = 1LL; while ( 1 ) { v9 = *v3; if ( v9 == 93 ) { if ( !--v8 ) { ++v3; v5 = 7; goto LABEL_58; } } else if ( v9 == 91 ) { ++v8; } if ( (unsigned long long)++v3 >= v4 ) goto LABEL_11; } } } LABEL_52: if ( (unsigned __int8)(v6 - 127) < 0xA2u ) { v5 = 6; if ( (v6 & 0x80u) != 0 ) { v15 = (*(long long ( **)(unsigned int *, _QWORD *, unsigned __int8 *))(*(_QWORD *)&my_charset_utf8mb3_general_ci[46] + 40LL))( my_charset_utf8mb3_general_ci, v16, v3); if ( v15 > 0 ) { v3 += (unsigned int)v15; *(_DWORD *)(a1 + 36) = v16[0]; LABEL_57: v5 = 5; } } LABEL_58: result = v3; goto LABEL_59; } LABEL_56: ++v3; *(_DWORD *)(a1 + 36) = v6; goto LABEL_57; } if ( v6 != 13 ) goto LABEL_52; } LABEL_10: ++v3; } while ( v3 != (unsigned __int8 *)v4 ); LABEL_11: result = (unsigned __int8 *)v4; LABEL_59: *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 8) = result; *(_DWORD *)a1 = v5; return result; }
my_coll_lexem_next: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOV R14,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RDI + 0x10] XOR R15D,R15D CMP R14,RCX JNC 0x001bc8dd LAB_001bc6c8: MOVZX EDX,byte ptr [R14] CMP EDX,0xc JLE 0x001bc6e5 CMP EDX,0x1f JLE 0x001bc6f2 CMP EDX,0x25 JG 0x001bc70b CMP EDX,0x20 JZ 0x001bc6fb JMP 0x001bc897 LAB_001bc6e5: LEA EAX,[RDX + -0x9] CMP EAX,0x2 JC 0x001bc6fb JMP 0x001bc897 LAB_001bc6f2: CMP EDX,0xd JNZ 0x001bc897 LAB_001bc6fb: INC R14 CMP R14,RCX JNZ 0x001bc6c8 LAB_001bc703: MOV RAX,RCX JMP 0x001bc8e0 LAB_001bc70b: CMP EDX,0x3c JLE 0x001bc768 CMP EDX,0x5b JG 0x001bc7c9 CMP EDX,0x3d JZ 0x001bc7e5 CMP EDX,0x5b JNZ 0x001bc897 INC R14 MOV R15D,0x6 CMP R14,RCX JNC 0x001bc8dd MOV EAX,0x1 LAB_001bc742: MOVZX EDX,byte ptr [R14] CMP EDX,0x5d JZ 0x001bc755 CMP EDX,0x5b JNZ 0x001bc75e INC RAX JMP 0x001bc75e LAB_001bc755: DEC RAX JZ 0x001bc8fa LAB_001bc75e: INC R14 CMP R14,RCX JC 0x001bc742 JMP 0x001bc703 LAB_001bc768: CMP EDX,0x26 JZ 0x001bc88c CMP EDX,0x2f JZ 0x001bc881 CMP EDX,0x3c JNZ 0x001bc897 INC R14 MOV dword ptr [RBX + 0x20],0x1 MOV R15D,0x1 CMP R14,RCX JNC 0x001bc8dd MOV EAX,0x2 LAB_001bc7a1: CMP byte ptr [R14],0x3c JNZ 0x001bc8dd LEA EDX,[RAX + -0x1] CMP EDX,0x4 JNC 0x001bc8dd INC R14 MOV dword ptr [RBX + 0x20],EAX INC EAX CMP R14,RCX JC 0x001bc7a1 JMP 0x001bc703 LAB_001bc7c9: CMP EDX,0x5c JZ 0x001bc7fa CMP EDX,0x7c JNZ 0x001bc897 INC R14 MOV R15D,0x9 JMP 0x001bc8dd LAB_001bc7e5: INC R14 MOV dword ptr [RBX + 0x20],0x0 MOV R15D,0x1 JMP 0x001bc8dd LAB_001bc7fa: LEA RAX,[R14 + 0x2] CMP RAX,RCX JNC 0x001bc8d1 CMP byte ptr [R14 + 0x1],0x75 JNZ 0x001bc8d1 LEA RSI,[0x4f8060] MOV RSI,qword ptr [RSI + 0x40] MOVZX EDI,byte ptr [RAX] CMP byte ptr [RSI + RDI*0x1 + 0x1],0x0 JNS 0x001bc8d1 MOV dword ptr [RBX + 0x24],0x0 XOR EDX,EDX LAB_001bc834: MOVSX ESI,byte ptr [RAX] LEA EDI,[RSI + -0x30] CMP EDI,0xa JC 0x001bc869 LEA EDI,[RSI + -0x61] CMP EDI,0x5 JA 0x001bc84c ADD ESI,-0x57 JMP 0x001bc867 LAB_001bc84c: MOV R15D,0x5 CMP SIL,0x37 JL 0x001bc8e0 LEA EDI,[RSI + -0x41] CMP EDI,0x5 JA 0x001bc8e0 ADD ESI,-0x37 LAB_001bc867: MOV EDI,ESI LAB_001bc869: SHL EDX,0x4 ADD EDX,EDI MOV dword ptr [RBX + 0x24],EDX INC RAX MOV R15D,0x5 CMP RAX,RCX JC 0x001bc834 JMP 0x001bc8e0 LAB_001bc881: INC R14 MOV R15D,0x8 JMP 0x001bc8dd LAB_001bc88c: INC R14 MOV R15D,0x4 JMP 0x001bc8dd LAB_001bc897: LEA EAX,[RDX + -0x7f] CMP AL,0xa2 JNC 0x001bc8d1 MOV R15D,0x6 TEST DL,DL JNS 0x001bc8dd LEA RDI,[0x4f8060] MOV RAX,qword ptr [RDI + 0xb8] LEA RSI,[RBP + -0x20] MOV RDX,R14 CALL qword ptr [RAX + 0x28] TEST EAX,EAX JLE 0x001bc8dd MOV EAX,EAX ADD R14,RAX MOV EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBX + 0x24],EAX JMP 0x001bc8d7 LAB_001bc8d1: INC R14 MOV dword ptr [RBX + 0x24],EDX LAB_001bc8d7: MOV R15D,0x5 LAB_001bc8dd: MOV RAX,R14 LAB_001bc8e0: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x18],RCX MOV qword ptr [RBX + 0x8],RAX MOV dword ptr [RBX],R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET LAB_001bc8fa: INC R14 MOV R15D,0x7 JMP 0x001bc8dd
void my_coll_lexem_next(int4 *param_1) { byte bVar1; byte *pbVar2; int4 in_EAX; uint uVar3; long lVar4; int iVar5; int iVar6; byte *pbVar7; byte *pbVar8; int4 uVar9; int4 local_28 [2]; pbVar7 = *(byte **)(param_1 + 2); pbVar2 = *(byte **)(param_1 + 4); uVar9 = 0; pbVar8 = pbVar7; if (pbVar7 < pbVar2) { do { bVar1 = *pbVar7; uVar3 = (uint)bVar1; if (0xc < bVar1) { if (bVar1 < 0x20) { if (uVar3 == 0xd) goto LAB_001bc6fb; LAB_001bc897: if (0xa1 < (byte)(bVar1 + 0x81)) goto LAB_001bc8d1; uVar9 = 6; pbVar8 = pbVar7; if ((-1 < (char)bVar1) || (local_28[0] = in_EAX, uVar3 = (**(code **)(my_charset_utf8mb3_general_ci._184_8_ + 0x28)) (my_charset_utf8mb3_general_ci,local_28,pbVar7), (int)uVar3 < 1)) break; pbVar8 = pbVar7 + uVar3; param_1[9] = local_28[0]; } else { if (bVar1 < 0x26) { if (uVar3 == 0x20) goto LAB_001bc6fb; goto LAB_001bc897; } if (bVar1 < 0x3d) { if (uVar3 == 0x26) { uVar9 = 4; pbVar8 = pbVar7 + 1; } else if (uVar3 == 0x2f) { uVar9 = 8; pbVar8 = pbVar7 + 1; } else { if (uVar3 != 0x3c) goto LAB_001bc897; pbVar7 = pbVar7 + 1; param_1[8] = 1; uVar9 = 1; pbVar8 = pbVar7; if (pbVar7 < pbVar2) { iVar5 = 2; goto LAB_001bc7a1; } } break; } if (bVar1 < 0x5c) { if (uVar3 == 0x3d) { param_1[8] = 0; uVar9 = 1; pbVar8 = pbVar7 + 1; } else { if (uVar3 != 0x5b) goto LAB_001bc897; pbVar7 = pbVar7 + 1; uVar9 = 6; pbVar8 = pbVar7; if (pbVar7 < pbVar2) { lVar4 = 1; goto LAB_001bc742; } } break; } if (uVar3 != 0x5c) { if (uVar3 != 0x7c) goto LAB_001bc897; uVar9 = 9; pbVar8 = pbVar7 + 1; break; } pbVar8 = pbVar7 + 2; if (((pbVar8 < pbVar2) && (pbVar7[1] == 0x75)) && (*(char *)(my_charset_utf8mb3_general_ci._64_8_ + 1 + (ulong)*pbVar8) < '\0')) { param_1[9] = 0; iVar5 = 0; goto LAB_001bc834; } LAB_001bc8d1: pbVar8 = pbVar7 + 1; param_1[9] = uVar3; } uVar9 = 5; break; } if (1 < bVar1 - 9) goto LAB_001bc897; LAB_001bc6fb: pbVar7 = pbVar7 + 1; pbVar8 = pbVar2; } while (pbVar7 != pbVar2); } goto LAB_001bc8e0; while( true ) { pbVar7 = pbVar7 + 1; param_1[8] = iVar5; iVar5 = iVar5 + 1; pbVar8 = pbVar2; if (pbVar2 <= pbVar7) break; LAB_001bc7a1: pbVar8 = pbVar7; if ((*pbVar7 != 0x3c) || (3 < iVar5 - 1U)) break; } goto LAB_001bc8e0; LAB_001bc742: do { if (*pbVar7 == 0x5d) { lVar4 = lVar4 + -1; if (lVar4 == 0) { uVar9 = 7; pbVar8 = pbVar7 + 1; break; } } else if (*pbVar7 == 0x5b) { lVar4 = lVar4 + 1; } pbVar7 = pbVar7 + 1; pbVar8 = pbVar2; } while (pbVar7 < pbVar2); goto LAB_001bc8e0; LAB_001bc834: do { iVar6 = (int)(char)*pbVar8; uVar3 = iVar6 - 0x30; if (9 < uVar3) { if (iVar6 - 0x61U < 6) { uVar3 = iVar6 - 0x57; } else { uVar9 = 5; if (((char)*pbVar8 < '7') || (5 < iVar6 - 0x41U)) break; uVar3 = iVar6 - 0x37; } } iVar5 = iVar5 * 0x10 + uVar3; param_1[9] = iVar5; pbVar8 = pbVar8 + 1; uVar9 = 5; } while (pbVar8 < pbVar2); LAB_001bc8e0: *(int8 *)(param_1 + 6) = *(int8 *)(param_1 + 2); *(byte **)(param_1 + 2) = pbVar8; *param_1 = uVar9; return; }
7,007
nglog::(anonymous namespace)::GetPC(void*)
ng-log[P]ng-log/src/signalhandler.cc
void* GetPC(void* ucontext_in_void) { # if (defined(HAVE_UCONTEXT_H) || defined(HAVE_SYS_UCONTEXT_H)) && \ defined(PC_FROM_UCONTEXT) if (ucontext_in_void != nullptr) { ucontext_t* context = reinterpret_cast<ucontext_t*>(ucontext_in_void); return (void*)context->PC_FROM_UCONTEXT; } # else (void)ucontext_in_void; # endif return nullptr; }
O0
cpp
nglog::(anonymous namespace)::GetPC(void*): pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x4a6c8 movq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq 0xa8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x4a6d0 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
_ZN5nglog12_GLOBAL__N_15GetPCEPv: push rbp mov rbp, rsp mov [rbp+var_10], rdi cmp [rbp+var_10], 0 jz short loc_4A6C8 mov rax, [rbp+var_10] mov [rbp+var_18], rax mov rax, [rbp+var_18] mov rax, [rax+0A8h] mov [rbp+var_8], rax jmp short loc_4A6D0 loc_4A6C8: mov [rbp+var_8], 0 loc_4A6D0: mov rax, [rbp+var_8] pop rbp retn
long long nglog::`anonymous namespace'::GetPC(nglog::_anonymous_namespace_ *this, void *a2) { if ( this ) return *((_QWORD *)this + 21); else return 0LL; }
GetPC: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI CMP qword ptr [RBP + -0x10],0x0 JZ 0x0014a6c8 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0xa8] MOV qword ptr [RBP + -0x8],RAX JMP 0x0014a6d0 LAB_0014a6c8: MOV qword ptr [RBP + -0x8],0x0 LAB_0014a6d0: MOV RAX,qword ptr [RBP + -0x8] POP RBP RET
/* nglog::(anonymous namespace)::GetPC(void*) */ int8 nglog::(anonymous_namespace)::GetPC(void *param_1) { int8 local_10; if (param_1 == (void *)0x0) { local_10 = 0; } else { local_10 = *(int8 *)((long)param_1 + 0xa8); } return local_10; }
7,008
bother::ping(unsigned int, char const*, unsigned short)
untodesu[P]voxelius/game/client/bother.cc
void bother::ping(unsigned int identity, const char *host, std::uint16_t port) { if(bother_set.count(identity)) { // Already in the process return; } for(const auto &item : bother_queue) { if(item.identity == identity) { // Already in the queue return; } } BotherQueueItem item; item.identity = identity; item.hostname = std::string(host); item.port = port; bother_queue.push_back(item); }
O2
cpp
bother::ping(unsigned int, char const*, unsigned short): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movl %edx, %ebx movq %rsi, %r14 leaq 0xc(%rsp), %rsi movl %edi, (%rsi) leaq 0x22a4dd(%rip), %rdi # 0x254580 callq 0x2c32c testq %rax, %rax jne 0x2a154 movq 0x22a510(%rip), %rcx # 0x2545c8 movq 0x22a519(%rip), %rdi # 0x2545d8 movq 0x22a51a(%rip), %rdx # 0x2545e0 movq 0x22a51b(%rip), %rsi # 0x2545e8 movl 0xc(%rsp), %eax cmpq %rsi, %rcx je 0x2a0f4 cmpl %eax, (%rcx) je 0x2a154 addq $0x30, %rcx cmpq %rdi, %rcx jne 0x2a0d1 movq 0x8(%rdx), %rcx addq $0x8, %rdx leaq 0x1e0(%rcx), %rdi jmp 0x2a0d1 leaq 0x48(%rsp), %rcx movq %rcx, -0x10(%rcx) andq $0x0, -0x8(%rcx) leaq 0x38(%rsp), %r15 movb $0x0, (%rcx) movl %eax, -0x18(%rcx) leaq 0x10(%rsp), %rdi leaq 0xb(%rsp), %rdx movq %r14, %rsi callq 0x2a464 leaq 0x10(%rsp), %r14 movq %r15, %rdi movq %r14, %rsi callq 0x26b30 movq %r14, %rdi callq 0x272a8 leaq 0x30(%rsp), %rsi movw %bx, 0x28(%rsi) leaq 0x22a471(%rip), %rdi # 0x2545b8 callq 0x2a4a0 movq %r15, %rdi callq 0x272a8 addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq jmp 0x2a160 movq %rax, %rbx movq %r15, %rdi callq 0x272a8 movq %rbx, %rdi callq 0x27040
_ZN6bother4pingEjPKct: push r15 push r14 push rbx sub rsp, 60h mov ebx, edx mov r14, rsi lea rsi, [rsp+78h+var_6C] mov [rsi], edi lea rdi, _ZL10bother_set; bother_set call _ZNKSt10_HashtableIjjSaIjENSt8__detail9_IdentityESt8equal_toIjESt4hashIjENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE5countERKj; std::_Hashtable<uint,uint,std::allocator<uint>,std::__detail::_Identity,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::count(uint const&) test rax, rax jnz loc_2A154 mov rcx, cs:qword_2545C8 mov rdi, cs:qword_2545D8 mov rdx, cs:qword_2545E0 mov rsi, cs:qword_2545E8 mov eax, [rsp+78h+var_6C] loc_2A0D1: cmp rcx, rsi jz short loc_2A0F4 cmp [rcx], eax jz short loc_2A154 add rcx, 30h ; '0' cmp rcx, rdi jnz short loc_2A0D1 mov rcx, [rdx+8] add rdx, 8 lea rdi, [rcx+1E0h] jmp short loc_2A0D1 loc_2A0F4: lea rcx, [rsp+78h+var_30] mov [rcx-10h], rcx and qword ptr [rcx-8], 0 lea r15, [rsp+78h+var_40] mov byte ptr [rcx], 0 mov [rcx-18h], eax lea rdi, [rsp+78h+var_68] lea rdx, [rsp+78h+var_6D] mov rsi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea r14, [rsp+78h+var_68] mov rdi, r15 mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rsi, [rsp+78h+var_48] mov [rsi+28h], bx lea rdi, _ZL12bother_queue; bother_queue call _ZNSt5dequeI15BotherQueueItemSaIS0_EE9push_backERKS0_; std::deque<BotherQueueItem>::push_back(BotherQueueItem const&) mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_2A154: add rsp, 60h pop rbx pop r14 pop r15 retn jmp short $+2 loc_2A160: mov rbx, rax mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
void bother::ping(bother *this, long long a2, const char *a3) { __int16 v3; // bx _DWORD *v4; // rcx long long v5; // rdi long long v6; // rdx char v7; // [rsp+Bh] [rbp-6Dh] BYREF int v8; // [rsp+Ch] [rbp-6Ch] _BYTE v9[32]; // [rsp+10h] [rbp-68h] BYREF int v10; // [rsp+30h] [rbp-48h] _QWORD v11[2]; // [rsp+38h] [rbp-40h] BYREF _BYTE v12[16]; // [rsp+48h] [rbp-30h] BYREF __int16 v13; // [rsp+58h] [rbp-20h] v3 = (__int16)a3; v8 = (int)this; if ( !std::_Hashtable<unsigned int,unsigned int,std::allocator<unsigned int>,std::__detail::_Identity,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>>::count(&bother_set) ) { v4 = (_DWORD *)qword_2545C8; v5 = qword_2545D8; v6 = qword_2545E0; while ( v4 != (_DWORD *)qword_2545E8 ) { if ( *v4 == v8 ) return; v4 += 12; if ( v4 == (_DWORD *)v5 ) { v4 = *(_DWORD **)(v6 + 8); v6 += 8LL; v5 = (long long)(v4 + 120); } } v11[0] = v12; v11[1] = 0LL; v12[0] = 0; v10 = v8; std::string::basic_string<std::allocator<char>>(v9, a2, &v7, v12); std::string::operator=(v11, v9); std::string::~string(v9); v13 = v3; std::deque<BotherQueueItem>::push_back(&bother_queue); std::string::~string(v11); } }
ping: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV EBX,EDX MOV R14,RSI LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EDI LEA RDI,[0x354580] CALL 0x0012c32c TEST RAX,RAX JNZ 0x0012a154 MOV RCX,qword ptr [0x003545c8] MOV RDI,qword ptr [0x003545d8] MOV RDX,qword ptr [0x003545e0] MOV RSI,qword ptr [0x003545e8] MOV EAX,dword ptr [RSP + 0xc] LAB_0012a0d1: CMP RCX,RSI JZ 0x0012a0f4 CMP dword ptr [RCX],EAX JZ 0x0012a154 ADD RCX,0x30 CMP RCX,RDI JNZ 0x0012a0d1 MOV RCX,qword ptr [RDX + 0x8] ADD RDX,0x8 LEA RDI,[RCX + 0x1e0] JMP 0x0012a0d1 LAB_0012a0f4: LEA RCX,[RSP + 0x48] MOV qword ptr [RCX + -0x10],RCX AND qword ptr [RCX + -0x8],0x0 LEA R15,[RSP + 0x38] MOV byte ptr [RCX],0x0 MOV dword ptr [RCX + -0x18],EAX LAB_0012a10d: LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0xb] MOV RSI,R14 CALL 0x0012a464 LEA R14,[RSP + 0x10] MOV RDI,R15 MOV RSI,R14 CALL 0x00126b30 MOV RDI,R14 CALL 0x001272a8 LEA RSI,[RSP + 0x30] MOV word ptr [RSI + 0x28],BX LAB_0012a140: LEA RDI,[0x3545b8] CALL 0x0012a4a0 LAB_0012a14c: MOV RDI,R15 CALL 0x001272a8 LAB_0012a154: ADD RSP,0x60 POP RBX POP R14 POP R15 RET
/* bother::ping(unsigned int, char const*, unsigned short) */ void bother::ping(uint param_1,char *param_2,ushort param_3) { int8 *puVar1; long lVar2; uint *puVar3; long lVar4; uint *puVar5; allocator local_6d; uint local_6c; string local_68 [32]; uint local_48 [2]; int1 *local_40; int8 local_38; int1 local_30 [16]; ushort local_20; local_6c = param_1; lVar2 = std:: _Hashtable<unsigned_int,unsigned_int,std::allocator<unsigned_int>,std::__detail::_Identity,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>> ::count((_Hashtable<unsigned_int,unsigned_int,std::allocator<unsigned_int>,std::__detail::_Identity,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,true,true>> *)bother_set,&local_6c); puVar3 = (uint *)bother_queue._16_8_; lVar4 = bother_queue._40_8_; puVar5 = (uint *)bother_queue._32_8_; if (lVar2 == 0) { while (puVar3 != (uint *)bother_queue._48_8_) { if (*puVar3 == local_6c) { return; } puVar3 = puVar3 + 0xc; if (puVar3 == puVar5) { puVar1 = (int8 *)(lVar4 + 8); puVar3 = (uint *)*puVar1; lVar4 = lVar4 + 8; puVar5 = (uint *)*puVar1 + 0x78; } } local_40 = local_30; local_38 = 0; local_30[0] = 0; local_48[0] = local_6c; /* try { // try from 0012a10d to 0012a11e has its CatchHandler @ 0012a160 */ std::__cxx11::string::string<std::allocator<char>>(local_68,param_2,&local_6d); std::__cxx11::string::operator=((string *)&local_40,local_68); std::__cxx11::string::~string(local_68); local_20 = param_3; /* try { // try from 0012a140 to 0012a14b has its CatchHandler @ 0012a15e */ std::deque<BotherQueueItem,std::allocator<BotherQueueItem>>::push_back ((deque<BotherQueueItem,std::allocator<BotherQueueItem>> *)bother_queue, (BotherQueueItem *)local_48); std::__cxx11::string::~string((string *)&local_40); } return; }
7,009
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char)
monkey531[P]llama/common/./json.hpp
static std::string hex_bytes(std::uint8_t byte) { std::string result = "FF"; constexpr const char* nibble_to_hex = "0123456789ABCDEF"; result[0] = nibble_to_hex[byte / 16]; result[1] = nibble_to_hex[byte % 16]; return result; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::serializer<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>>::hex_bytes(unsigned char): pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 leaq 0x10(%rdi), %rax movq %rax, (%rdi) leaq 0x531c0(%rip), %rsi # 0xbbe85 leaq 0x531bb(%rip), %rdx # 0xbbe87 callq 0x5abde movl %ebx, %eax shrl $0x4, %eax leaq 0x57297(%rip), %rcx # 0xbff74 movb (%rax,%rcx), %al movq (%r14), %rdx movb %al, (%rdx) andl $0xf, %ebx movb (%rbx,%rcx), %al movq (%r14), %rcx movb %al, 0x1(%rcx) movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9hex_bytesEh: push r14 push rbx push rax mov ebx, esi mov r14, rdi lea rax, [rdi+10h] mov [rdi], rax lea rsi, aInvalidStringS_0+41h; "FF" lea rdx, aInvalidStringS_0+43h; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov eax, ebx shr eax, 4 lea rcx, a0123456789abcd; "0123456789ABCDEF" mov al, [rax+rcx] mov rdx, [r14] mov [rdx], al and ebx, 0Fh mov al, [rbx+rcx] mov rcx, [r14] mov [rcx+1], al mov rax, r14 add rsp, 8 pop rbx pop r14 retn
_QWORD * nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::hex_bytes( _QWORD *a1, unsigned int a2) { *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, "FF", (long long)""); *(_BYTE *)*a1 = a0123456789abcd[a2 >> 4]; *(_BYTE *)(*a1 + 1LL) = a0123456789abcd[a2 & 0xF]; return a1; }
hex_bytes: PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX LEA RSI,[0x1bbe85] LEA RDX,[0x1bbe87] CALL 0x0015abde MOV EAX,EBX SHR EAX,0x4 LEA RCX,[0x1bff74] MOV AL,byte ptr [RAX + RCX*0x1] MOV RDX,qword ptr [R14] MOV byte ptr [RDX],AL AND EBX,0xf MOV AL,byte ptr [RBX + RCX*0x1] MOV RCX,qword ptr [R14] MOV byte ptr [RCX + 0x1],AL MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::hex_bytes(unsigned char) */ serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::hex_bytes(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,uchar param_1) { int7 in_register_00000031; *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 = this + 0x10; std::__cxx11::string::_M_construct<char_const*>(this,"FF",""); **(char **)this = "0123456789ABCDEF"[(CONCAT71(in_register_00000031,param_1) & 0xffffffff) >> 4]; *(char *)(*(long *)this + 1) = "0123456789ABCDEF"[(uint)CONCAT71(in_register_00000031,param_1) & 0xf]; return this; }
7,010
ft_init_stopwords
eloqsql/storage/myisam/ft_stopwords.c
int ft_init_stopwords() { DBUG_ENTER("ft_init_stopwords"); if (!stopwords3) { if (!(stopwords3=(TREE *)my_malloc(mi_key_memory_ft_stopwords, sizeof(TREE), MYF(0)))) DBUG_RETURN(-1); init_tree(stopwords3,0,0,sizeof(FT_STOPWORD),(qsort_cmp2)&FT_STOPWORD_cmp, (ft_stopword_file ? (tree_element_free)&FT_STOPWORD_free : 0), NULL, MYF(0)); /* Stopword engine currently does not support tricky character sets UCS2, UTF16, UTF32. Use latin1 to compare stopwords in case of these character sets. It's also fine to use latin1 with the built-in stopwords. */ ft_stopword_cs= default_charset_info->mbminlen == 1 ? default_charset_info : &my_charset_latin1; } if (ft_stopword_file) { File fd; size_t len; uchar *buffer, *start, *end; FT_WORD w; int error=-1; if (!*ft_stopword_file) DBUG_RETURN(0); if ((fd=my_open(ft_stopword_file, O_RDONLY, MYF(MY_WME))) == -1) DBUG_RETURN(-1); len=(size_t)my_seek(fd, 0L, MY_SEEK_END, MYF(0)); my_seek(fd, 0L, MY_SEEK_SET, MYF(0)); if (!(start= buffer= my_malloc(mi_key_memory_ft_stopwords, len+1, MYF(MY_WME)))) goto err0; len=my_read(fd, buffer, len, MYF(MY_WME)); end=start+len; while (ft_simple_get_word(ft_stopword_cs, &start, end, &w, TRUE)) { if (ft_add_stopword(my_strndup(mi_key_memory_ft_stopwords, (char*) w.pos, w.len, MYF(0)))) goto err1; } error=0; err1: my_free(buffer); err0: my_close(fd, MYF(MY_WME)); DBUG_RETURN(error); } else { /* compatibility mode: to be removed */ char **sws=(char **)ft_precompiled_stopwords; for (;*sws;sws++) { if (ft_add_stopword(*sws)) DBUG_RETURN(-1); } ft_stopword_file="(built-in)"; /* for SHOW VARIABLES */ } DBUG_RETURN(0); }
O3
c
ft_init_stopwords: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp cmpq $0x0, 0xb8f6f7(%rip) # 0xc01bf0 jne 0x72578 leaq 0xb8f73a(%rip), %rax # 0xc01c3c movl (%rax), %edi movl $0x298, %esi # imm = 0x298 xorl %edx, %edx callq 0xa0cdd movq %rax, 0xb8f6d9(%rip) # 0xc01bf0 testq %rax, %rax je 0x726aa leaq 0xb8f6c1(%rip), %rcx # 0xc01be8 movq (%rcx), %rcx testq %rcx, %rcx leaq 0x1cb(%rip), %r9 # 0x726ff cmoveq %rcx, %r9 xorps %xmm0, %xmm0 movups %xmm0, (%rsp) leaq 0x191(%rip), %r8 # 0x726d7 movq %rax, %rdi xorl %esi, %esi xorl %edx, %edx movl $0x10, %ecx callq 0xa556c leaq 0x31524a(%rip), %rax # 0x3877a8 movq (%rax), %rax cmpl $0x1, 0x98(%rax) je 0x72571 leaq 0x33ba5f(%rip), %rax # 0x3adfd0 movq %rax, 0xb8f680(%rip) # 0xc01bf8 leaq 0xb8f669(%rip), %rbx # 0xc01be8 movq (%rbx), %rdi testq %rdi, %rdi je 0x72673 cmpb $0x0, (%rdi) je 0x726a5 movl $0x10, %edx xorl %esi, %esi callq 0xa130c cmpl $-0x1, %eax je 0x726aa movl %eax, %r12d movl %eax, %edi xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0xa1acc movq %rax, %rbx movl %r12d, %edi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0xa1acc leaq 0xb8f668(%rip), %r15 # 0xc01c3c movl (%r15), %edi leaq 0x1(%rbx), %rsi movl $0x10, %edx callq 0xa0cdd movq %rax, -0x40(%rbp) testq %rax, %rax je 0x726b2 movq %rax, %r14 movl $0x10, %ecx movl %r12d, -0x2c(%rbp) movl %r12d, %edi movq %rax, %rsi movq %rbx, %rdx callq 0xa18cc movq %rax, %r12 movq %r14, -0x38(%rbp) addq %r14, %r12 leaq -0x40(%rbp), %r13 leaq -0x58(%rbp), %rbx xorl %r14d, %r14d movq 0xb8f5d0(%rip), %rdi # 0xc01bf8 movq %r13, %rsi movq %r12, %rdx movq %rbx, %rcx movl $0x1, %r8d callq 0x74b09 testb %al, %al je 0x72664 movl (%r15), %edi movq -0x58(%rbp), %rsi movq -0x48(%rbp), %rdx xorl %ecx, %ecx callq 0xa0ff4 movq %rax, %rdi callq 0x72714 testl %eax, %eax je 0x72621 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF movq -0x38(%rbp), %rdi callq 0xa0f0a movl -0x2c(%rbp), %r12d jmp 0x726b8 leaq 0x313c36(%rip), %r14 # 0x3862b0 movq (%r14), %rdi testq %rdi, %rdi je 0x7269b addq $0x8, %r14 callq 0x72714 testl %eax, %eax jne 0x726aa movq (%r14), %rdi addq $0x8, %r14 testq %rdi, %rdi jne 0x72686 leaq 0x6a522(%rip), %rax # 0xdcbc4 movq %rax, (%rbx) xorl %r14d, %r14d jmp 0x726c5 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF jmp 0x726c5 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF movl $0x10, %esi movl %r12d, %edi callq 0xa14b1 movl %r14d, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ft_init_stopwords: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h cmp cs:stopwords3, 0 jnz short loc_72578 lea rax, mi_key_memory_ft_stopwords mov edi, [rax] mov esi, 298h xor edx, edx call my_malloc mov cs:stopwords3, rax test rax, rax jz loc_726AA lea rcx, ft_stopword_file mov rcx, [rcx] test rcx, rcx lea r9, FT_STOPWORD_free cmovz r9, rcx xorps xmm0, xmm0 movups [rsp+70h+var_70], xmm0 lea r8, FT_STOPWORD_cmp mov rdi, rax xor esi, esi xor edx, edx mov ecx, 10h call init_tree lea rax, default_charset_info mov rax, [rax] cmp dword ptr [rax+98h], 1 jz short loc_72571 lea rax, my_charset_latin1 loc_72571: mov cs:ft_stopword_cs, rax loc_72578: lea rbx, ft_stopword_file mov rdi, [rbx] test rdi, rdi jz loc_72673 cmp byte ptr [rdi], 0 jz loc_726A5 mov edx, 10h xor esi, esi call my_open cmp eax, 0FFFFFFFFh jz loc_726AA mov r12d, eax mov edi, eax xor esi, esi mov edx, 2 xor ecx, ecx call my_seek mov rbx, rax mov edi, r12d xor esi, esi xor edx, edx xor ecx, ecx call my_seek lea r15, mi_key_memory_ft_stopwords mov edi, [r15] lea rsi, [rbx+1] mov edx, 10h call my_malloc mov [rbp+var_40], rax test rax, rax jz loc_726B2 mov r14, rax mov ecx, 10h mov [rbp+var_2C], r12d mov edi, r12d mov rsi, rax mov rdx, rbx call my_read mov r12, rax mov [rbp+var_38], r14 add r12, r14 lea r13, [rbp+var_40] lea rbx, [rbp+var_58] xor r14d, r14d loc_72621: mov rdi, cs:ft_stopword_cs mov rsi, r13 mov rdx, r12 mov rcx, rbx mov r8d, 1 call ft_simple_get_word test al, al jz short loc_72664 mov edi, [r15] mov rsi, [rbp+var_58] mov rdx, [rbp+var_48] xor ecx, ecx call my_strndup mov rdi, rax call ft_add_stopword test eax, eax jz short loc_72621 mov r14d, 0FFFFFFFFh loc_72664: mov rdi, [rbp+var_38] call my_free mov r12d, [rbp+var_2C] jmp short loc_726B8 loc_72673: lea r14, ft_precompiled_stopwords mov rdi, [r14] test rdi, rdi jz short loc_7269B add r14, 8 loc_72686: call ft_add_stopword test eax, eax jnz short loc_726AA mov rdi, [r14] add r14, 8 test rdi, rdi jnz short loc_72686 loc_7269B: lea rax, aBuiltIn; "(built-in)" mov [rbx], rax loc_726A5: xor r14d, r14d jmp short loc_726C5 loc_726AA: mov r14d, 0FFFFFFFFh jmp short loc_726C5 loc_726B2: mov r14d, 0FFFFFFFFh loc_726B8: mov esi, 10h mov edi, r12d call my_close loc_726C5: mov eax, r14d add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ft_init_stopwords() { long long v0; // rax long long ( *v1)(); // r9 void *v2; // rax unsigned int v3; // eax unsigned int v4; // r12d long long v5; // rbx long long v6; // rax long long v7; // r12 unsigned int v8; // r14d long long v9; // rax char **v10; // r14 _QWORD v13[3]; // [rsp+18h] [rbp-58h] BYREF long long v14; // [rsp+30h] [rbp-40h] BYREF long long v15; // [rsp+38h] [rbp-38h] unsigned int v16; // [rsp+44h] [rbp-2Ch] if ( !stopwords3 ) { v0 = my_malloc(mi_key_memory_ft_stopwords, 664LL, 0LL); stopwords3 = v0; if ( !v0 ) return (unsigned int)-1; v1 = FT_STOPWORD_free; if ( !ft_stopword_file ) LODWORD(v1) = 0; init_tree(v0, 0, 0, 16, (unsigned int)FT_STOPWORD_cmp, (_DWORD)v1, 0LL, 0LL); v2 = default_charset_info; if ( *((_DWORD *)default_charset_info + 38) != 1 ) v2 = &my_charset_latin1; ft_stopword_cs = (long long)v2; } if ( !ft_stopword_file ) { if ( ft_precompiled_stopwords ) { v10 = &ft_precompiled_stopwords + 1; while ( !(unsigned int)((long long (*)(void))ft_add_stopword)() ) { if ( !*v10++ ) goto LABEL_21; } return (unsigned int)-1; } LABEL_21: ft_stopword_file = "(built-in)"; return 0; } if ( !*ft_stopword_file ) return 0; v3 = my_open(ft_stopword_file, 0LL, 16LL); if ( v3 == -1 ) return (unsigned int)-1; v4 = v3; v5 = my_seek(v3, 0LL, 2LL, 0LL); my_seek(v4, 0LL, 0LL, 0LL); v6 = my_malloc(mi_key_memory_ft_stopwords, v5 + 1, 16LL); v14 = v6; if ( v6 ) { v16 = v4; v15 = v6; v7 = v6 + my_read(v4, v6, v5, 16LL); v8 = 0; while ( (unsigned __int8)ft_simple_get_word(ft_stopword_cs, &v14, v7, v13, 1LL) ) { v9 = my_strndup(mi_key_memory_ft_stopwords, v13[0], v13[2], 0LL); if ( (unsigned int)ft_add_stopword(v9) ) { v8 = -1; break; } } my_free(v15); v4 = v16; } else { v8 = -1; } my_close(v4, 16LL); return v8; }
ft_init_stopwords: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 CMP qword ptr [0x00d01bf0],0x0 JNZ 0x00172578 LEA RAX,[0xd01c3c] MOV EDI,dword ptr [RAX] MOV ESI,0x298 XOR EDX,EDX CALL 0x001a0cdd MOV qword ptr [0x00d01bf0],RAX TEST RAX,RAX JZ 0x001726aa LEA RCX,[0xd01be8] MOV RCX,qword ptr [RCX] TEST RCX,RCX LEA R9,[0x1726ff] CMOVZ R9,RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSP],XMM0 LEA R8,[0x1726d7] MOV RDI,RAX XOR ESI,ESI XOR EDX,EDX MOV ECX,0x10 CALL 0x001a556c LEA RAX,[0x4877a8] MOV RAX,qword ptr [RAX] CMP dword ptr [RAX + 0x98],0x1 JZ 0x00172571 LEA RAX,[0x4adfd0] LAB_00172571: MOV qword ptr [0x00d01bf8],RAX LAB_00172578: LEA RBX,[0xd01be8] MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x00172673 CMP byte ptr [RDI],0x0 JZ 0x001726a5 MOV EDX,0x10 XOR ESI,ESI CALL 0x001a130c CMP EAX,-0x1 JZ 0x001726aa MOV R12D,EAX MOV EDI,EAX XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x001a1acc MOV RBX,RAX MOV EDI,R12D XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX CALL 0x001a1acc LEA R15,[0xd01c3c] MOV EDI,dword ptr [R15] LEA RSI,[RBX + 0x1] MOV EDX,0x10 CALL 0x001a0cdd MOV qword ptr [RBP + -0x40],RAX TEST RAX,RAX JZ 0x001726b2 MOV R14,RAX MOV ECX,0x10 MOV dword ptr [RBP + -0x2c],R12D MOV EDI,R12D MOV RSI,RAX MOV RDX,RBX CALL 0x001a18cc MOV R12,RAX MOV qword ptr [RBP + -0x38],R14 ADD R12,R14 LEA R13,[RBP + -0x40] LEA RBX,[RBP + -0x58] XOR R14D,R14D LAB_00172621: MOV RDI,qword ptr [0x00d01bf8] MOV RSI,R13 MOV RDX,R12 MOV RCX,RBX MOV R8D,0x1 CALL 0x00174b09 TEST AL,AL JZ 0x00172664 MOV EDI,dword ptr [R15] MOV RSI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x48] XOR ECX,ECX CALL 0x001a0ff4 MOV RDI,RAX CALL 0x00172714 TEST EAX,EAX JZ 0x00172621 MOV R14D,0xffffffff LAB_00172664: MOV RDI,qword ptr [RBP + -0x38] CALL 0x001a0f0a MOV R12D,dword ptr [RBP + -0x2c] JMP 0x001726b8 LAB_00172673: LEA R14,[0x4862b0] MOV RDI,qword ptr [R14] TEST RDI,RDI JZ 0x0017269b ADD R14,0x8 LAB_00172686: CALL 0x00172714 TEST EAX,EAX JNZ 0x001726aa MOV RDI,qword ptr [R14] ADD R14,0x8 TEST RDI,RDI JNZ 0x00172686 LAB_0017269b: LEA RAX,[0x1dcbc4] MOV qword ptr [RBX],RAX LAB_001726a5: XOR R14D,R14D JMP 0x001726c5 LAB_001726aa: MOV R14D,0xffffffff JMP 0x001726c5 LAB_001726b2: MOV R14D,0xffffffff LAB_001726b8: MOV ESI,0x10 MOV EDI,R12D CALL 0x001a14b1 LAB_001726c5: MOV EAX,R14D ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ft_init_stopwords(void) { int *puVar1; char cVar2; int iVar3; long lVar4; long lVar5; int8 uVar6; code *pcVar7; int8 uVar8; int **ppuVar9; int8 local_60 [2]; int8 local_50; long local_48; long local_40; int local_34; if (stopwords3 == 0) { stopwords3 = my_malloc(mi_key_memory_ft_stopwords,0x298,0); if (stopwords3 != 0) { pcVar7 = FT_STOPWORD_free; if (ft_stopword_file == (char *)0x0) { pcVar7 = (code *)0x0; } init_tree(stopwords3,0,0,0x10,FT_STOPWORD_cmp,pcVar7,0,0); ft_stopword_cs = (int4 *)default_charset_info; if (*(int *)(default_charset_info + 0x98) != 1) { ft_stopword_cs = &my_charset_latin1; } goto LAB_00172578; } LAB_001726aa: uVar8 = 0xffffffff; } else { LAB_00172578: if (ft_stopword_file == (char *)0x0) { if (ft_precompiled_stopwords != (int *)0x0) { ppuVar9 = &PTR_s_able_004862b8; do { iVar3 = ft_add_stopword(); if (iVar3 != 0) goto LAB_001726aa; puVar1 = *ppuVar9; ppuVar9 = ppuVar9 + 1; } while (puVar1 != (int *)0x0); } ft_stopword_file = "(built-in)"; } else if (*ft_stopword_file != '\0') { iVar3 = my_open(ft_stopword_file,0,0x10); if (iVar3 != -1) { lVar4 = my_seek(iVar3,0,2,0); my_seek(iVar3,0,0,0); lVar5 = my_malloc(mi_key_memory_ft_stopwords,lVar4 + 1,0x10); local_48 = lVar5; if (lVar5 == 0) { uVar8 = 0xffffffff; } else { local_34 = iVar3; lVar4 = my_read(iVar3,lVar5,lVar4,0x10); uVar8 = 0; local_40 = lVar5; do { cVar2 = ft_simple_get_word(ft_stopword_cs,&local_48,lVar4 + lVar5,local_60,1); if (cVar2 == '\0') goto LAB_00172664; uVar6 = my_strndup(mi_key_memory_ft_stopwords,local_60[0],local_50,0); iVar3 = ft_add_stopword(uVar6); } while (iVar3 == 0); uVar8 = 0xffffffff; LAB_00172664: my_free(local_40); iVar3 = local_34; } my_close(iVar3,0x10); return uVar8; } goto LAB_001726aa; } uVar8 = 0; } return uVar8; }
7,011
recursivelyAssertProperNodeOwnership(YGNode*)
yoga-mod/tests/YGCloneNodeTest.cpp
static void recursivelyAssertProperNodeOwnership(YGNodeRef node) { for (size_t i = 0; i < YGNodeGetChildCount(node); ++i) { const auto child = YGNodeGetChild(node, i); ASSERT_EQ(node, YGNodeGetOwner(child)); recursivelyAssertProperNodeOwnership(child); } }
O0
cpp
recursivelyAssertProperNodeOwnership(YGNode*): pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq $0x0, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x8(%rbp), %rdi callq 0x6d7140 movq %rax, %rcx movq -0x60(%rbp), %rax cmpq %rcx, %rax jae 0xe2eb8 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x6d70d0 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0x6d7170 movq %rax, -0x30(%rbp) leaq 0x6623d3(%rip), %rsi # 0x745170 leaq 0x6653f3(%rip), %rdx # 0x748197 leaq -0x28(%rbp), %rdi movq %rdi, -0x70(%rbp) leaq -0x8(%rbp), %rcx leaq -0x30(%rbp), %r8 callq 0xe32b0 movq -0x70(%rbp), %rdi callq 0x91b40 movb %al, -0x61(%rbp) jmp 0xe2dc7 movb -0x61(%rbp), %al testb $0x1, %al jne 0xe2dd0 jmp 0xe2de6 jmp 0xe2e78 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) jmp 0xe2ead leaq -0x48(%rbp), %rdi callq 0x6ffad0 jmp 0xe2df1 leaq -0x28(%rbp), %rdi callq 0x91b60 movq %rax, -0x78(%rbp) jmp 0xe2e00 movq -0x78(%rbp), %r8 leaq 0x66531d(%rip), %rdx # 0x748128 leaq -0x50(%rbp), %rdi movl $0x2, %esi movl $0xe, %ecx callq 0x6fbe60 jmp 0xe2e20 leaq -0x50(%rbp), %rdi leaq -0x48(%rbp), %rsi callq 0x6f8a20 jmp 0xe2e2f leaq -0x50(%rbp), %rdi callq 0x6fbee0 leaq -0x48(%rbp), %rdi callq 0x91b80 movl $0x1, -0x54(%rbp) jmp 0xe2e7f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) jmp 0xe2e6d movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x50(%rbp), %rdi callq 0x6fbee0 leaq -0x48(%rbp), %rdi callq 0x91b80 jmp 0xe2ead movl $0x0, -0x54(%rbp) leaq -0x28(%rbp), %rdi callq 0x91ba0 movl -0x54(%rbp), %eax testl %eax, %eax je 0xe2e93 jmp 0xe2e91 jmp 0xe2eb8 movq -0x18(%rbp), %rdi callq 0xe2d40 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0xe2d57 leaq -0x28(%rbp), %rdi callq 0x91ba0 jmp 0xe2ec1 addq $0x80, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x35990 nopw (%rax,%rax)
_ZL36recursivelyAssertProperNodeOwnershipP6YGNode: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi mov [rbp+var_10], 0 loc_E2D57: mov rax, [rbp+var_10] mov [rbp+var_60], rax mov rdi, [rbp+var_8] call YGNodeGetChildCount mov rcx, rax mov rax, [rbp+var_60] cmp rax, rcx jnb loc_E2EB8 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call YGNodeGetChild mov [rbp+var_18], rax mov rdi, [rbp+var_18] call YGNodeGetOwner mov [rbp+var_30], rax lea rsi, aLasteventNode+0Ch; "node" lea rdx, aYgnodegetowner; "YGNodeGetOwner(child)" lea rdi, [rbp+var_28] mov [rbp+var_70], rdi lea rcx, [rbp+var_8] lea r8, [rbp+var_30] call _ZN7testing8internal8EqHelper7CompareIP6YGNodeS4_TnPNSt9enable_ifIXoontsr3std11is_integralIT_EE5valuentsr3std10is_pointerIT0_EE5valueEvE4typeELPv0EEENS_15AssertionResultEPKcSE_RKS6_RKS7_ mov rdi, [rbp+var_70] call _ZNK7testing15AssertionResultcvbEv; testing::AssertionResult::operator bool(void) mov [rbp+var_61], al jmp short $+2 loc_E2DC7: mov al, [rbp+var_61] test al, 1 jnz short loc_E2DD0 jmp short loc_E2DE6 loc_E2DD0: jmp loc_E2E78 mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax jmp loc_E2EAD loc_E2DE6: lea rdi, [rbp+var_48]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) jmp short $+2 loc_E2DF1: lea rdi, [rbp+var_28]; this call _ZNK7testing15AssertionResult15failure_messageEv; testing::AssertionResult::failure_message(void) mov [rbp+var_78], rax jmp short $+2 loc_E2E00: mov r8, [rbp+var_78] lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/yoga-m"... lea rdi, [rbp+var_50] mov esi, 2 mov ecx, 0Eh call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) jmp short $+2 loc_E2E20: lea rdi, [rbp+var_50] lea rsi, [rbp+var_48] call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) jmp short $+2 loc_E2E2F: lea rdi, [rbp+var_50]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() lea rdi, [rbp+var_48]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() mov [rbp+var_54], 1 jmp short loc_E2E7F mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax jmp short loc_E2E6D mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_50]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() loc_E2E6D: lea rdi, [rbp+var_48]; this call _ZN7testing7MessageD2Ev; testing::Message::~Message() jmp short loc_E2EAD loc_E2E78: mov [rbp+var_54], 0 loc_E2E7F: lea rdi, [rbp+var_28]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() mov eax, [rbp+var_54] test eax, eax jz short loc_E2E93 jmp short $+2 loc_E2E91: jmp short loc_E2EB8 loc_E2E93: mov rdi, [rbp+var_18] call _ZL36recursivelyAssertProperNodeOwnershipP6YGNode; recursivelyAssertProperNodeOwnership(YGNode *) mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp loc_E2D57 loc_E2EAD: lea rdi, [rbp+var_28]; this call _ZN7testing15AssertionResultD2Ev; testing::AssertionResult::~AssertionResult() jmp short loc_E2EC1 loc_E2EB8: add rsp, 80h pop rbp retn loc_E2EC1: mov rdi, [rbp+var_38] call __Unwind_Resume
unsigned long long recursivelyAssertProperNodeOwnership(long long a1) { unsigned long long ChildCount; // rcx unsigned long long result; // rax long long v3; // [rsp+8h] [rbp-78h] unsigned long long v4; // [rsp+20h] [rbp-60h] unsigned int v5; // [rsp+2Ch] [rbp-54h] char v6[8]; // [rsp+30h] [rbp-50h] BYREF _BYTE v7[12]; // [rsp+38h] [rbp-48h] BYREF long long Owner; // [rsp+50h] [rbp-30h] BYREF _BYTE v9[16]; // [rsp+58h] [rbp-28h] BYREF long long Child; // [rsp+68h] [rbp-18h] unsigned long long i; // [rsp+70h] [rbp-10h] long long v12; // [rsp+78h] [rbp-8h] BYREF v12 = a1; for ( i = 0LL; ; ++i ) { v4 = i; ChildCount = YGNodeGetChildCount(v12); result = v4; if ( v4 >= ChildCount ) break; Child = YGNodeGetChild(v12, i); Owner = YGNodeGetOwner(Child); ZN7testing8internal8EqHelper7CompareIP6YGNodeS4_TnPNSt9enable_ifIXoontsr3std11is_integralIT_EE5valuentsr3std10is_pointerIT0_EE5valueEvE4typeELPv0EEENS_15AssertionResultEPKcSE_RKS6_RKS7_( v9, "node", "YGNodeGetOwner(child)", &v12, &Owner); if ( (testing::AssertionResult::operator bool(v9) & 1) != 0 ) { v5 = 0; } else { testing::Message::Message((testing::Message *)v7); v3 = testing::AssertionResult::failure_message((testing::AssertionResult *)v9); testing::internal::AssertHelper::AssertHelper( v6, 2LL, "/workspace/llm4binary/github2025/yoga-mod/tests/YGCloneNodeTest.cpp", 14LL, v3); testing::internal::AssertHelper::operator=(v6, v7); testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)v6); testing::Message::~Message((testing::Message *)v7); v5 = 1; } testing::AssertionResult::~AssertionResult((testing::AssertionResult *)v9); result = v5; if ( v5 ) break; recursivelyAssertProperNodeOwnership(Child); } return result; }
recursivelyAssertProperNodeOwnership: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],0x0 LAB_001e2d57: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x60],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x007d7140 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x60] CMP RAX,RCX JNC 0x001e2eb8 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x007d70d0 MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x007d7170 MOV qword ptr [RBP + -0x30],RAX LEA RSI,[0x845170] LEA RDX,[0x848197] LEA RDI,[RBP + -0x28] MOV qword ptr [RBP + -0x70],RDI LEA RCX,[RBP + -0x8] LEA R8,[RBP + -0x30] CALL 0x001e32b0 MOV RDI,qword ptr [RBP + -0x70] LAB_001e2dbd: CALL 0x00191b40 MOV byte ptr [RBP + -0x61],AL JMP 0x001e2dc7 LAB_001e2dc7: MOV AL,byte ptr [RBP + -0x61] TEST AL,0x1 JNZ 0x001e2dd0 JMP 0x001e2de6 LAB_001e2dd0: JMP 0x001e2e78 LAB_001e2de6: LEA RDI,[RBP + -0x48] CALL 0x007ffad0 JMP 0x001e2df1 LAB_001e2df1: LEA RDI,[RBP + -0x28] CALL 0x00191b60 MOV qword ptr [RBP + -0x78],RAX JMP 0x001e2e00 LAB_001e2e00: MOV R8,qword ptr [RBP + -0x78] LEA RDX,[0x848128] LEA RDI,[RBP + -0x50] MOV ESI,0x2 MOV ECX,0xe CALL 0x007fbe60 JMP 0x001e2e20 LAB_001e2e20: LEA RDI,[RBP + -0x50] LEA RSI,[RBP + -0x48] CALL 0x007f8a20 LAB_001e2e2d: JMP 0x001e2e2f LAB_001e2e2f: LEA RDI,[RBP + -0x50] CALL 0x007fbee0 LEA RDI,[RBP + -0x48] CALL 0x00191b80 MOV dword ptr [RBP + -0x54],0x1 JMP 0x001e2e7f LAB_001e2e78: MOV dword ptr [RBP + -0x54],0x0 LAB_001e2e7f: LEA RDI,[RBP + -0x28] CALL 0x00191ba0 MOV EAX,dword ptr [RBP + -0x54] TEST EAX,EAX JZ 0x001e2e93 JMP 0x001e2e91 LAB_001e2e91: JMP 0x001e2eb8 LAB_001e2e93: MOV RDI,qword ptr [RBP + -0x18] CALL 0x001e2d40 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x001e2d57 LAB_001e2eb8: ADD RSP,0x80 POP RBP RET
/* recursivelyAssertProperNodeOwnership(YGNode*) */ void recursivelyAssertProperNodeOwnership(YGNode *param_1) { ulong uVar1; bool bVar2; ulong uVar3; int8 uVar4; AssertHelper local_58 [8]; Message local_50 [24]; int8 local_38; AssertionResult local_30 [16]; YGNode *local_20; ulong local_18; YGNode *local_10; local_18 = 0; local_10 = param_1; while( true ) { uVar1 = local_18; uVar3 = YGNodeGetChildCount(local_10); if (uVar3 <= uVar1) { return; } local_20 = (YGNode *)YGNodeGetChild(local_10,local_18); local_38 = YGNodeGetOwner(local_20); _ZN7testing8internal8EqHelper7CompareIP6YGNodeS4_TnPNSt9enable_ifIXoontsr3std11is_integralIT_EE5valuentsr3std10is_pointerIT0_EE5valueEvE4typeELPv0EEENS_15AssertionResultEPKcSE_RKS6_RKS7_ (local_30,"node","YGNodeGetOwner(child)",&local_10,&local_38); /* try { // try from 001e2dbd to 001e2dee has its CatchHandler @ 001e2dd5 */ bVar2 = testing::AssertionResult::operator_cast_to_bool(local_30); if (!bVar2) { testing::Message::Message(local_50); /* try { // try from 001e2df1 to 001e2e1d has its CatchHandler @ 001e2e4a */ uVar4 = testing::AssertionResult::failure_message(local_30); testing::internal::AssertHelper::AssertHelper (local_58,2,"/workspace/llm4binary/github2025/yoga-mod/tests/YGCloneNodeTest.cpp", 0xe,uVar4); /* try { // try from 001e2e20 to 001e2e2c has its CatchHandler @ 001e2e58 */ testing::internal::AssertHelper::operator=(local_58,local_50); testing::internal::AssertHelper::~AssertHelper(local_58); testing::Message::~Message(local_50); } testing::AssertionResult::~AssertionResult(local_30); if (!bVar2) break; recursivelyAssertProperNodeOwnership(local_20); local_18 = local_18 + 1; } return; }
7,012
recursivelyAssertProperNodeOwnership(YGNode*)
yoga-mod/tests/YGCloneNodeTest.cpp
static void recursivelyAssertProperNodeOwnership(YGNodeRef node) { for (size_t i = 0; i < YGNodeGetChildCount(node); ++i) { const auto child = YGNodeGetChild(node, i); ASSERT_EQ(node, YGNodeGetOwner(child)); recursivelyAssertProperNodeOwnership(child); } }
O3
cpp
recursivelyAssertProperNodeOwnership(YGNode*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, -0x50(%rbp) callq 0x3677cc testq %rax, %rax je 0x8ef49 xorl %r14d, %r14d leaq -0x40(%rbp), %r13 leaq -0x50(%rbp), %rbx leaq -0x30(%rbp), %r15 movq -0x50(%rbp), %rdi movq %r14, %rsi callq 0x3677a5 movq %rax, %r12 movq %rax, %rdi callq 0x3677e4 movq %rax, -0x30(%rbp) movq %r13, %rdi leaq 0x30a237(%rip), %rsi # 0x3990cc leaq 0x30c7cf(%rip), %rdx # 0x39b66b movq %rbx, %rcx movq %r15, %r8 callq 0x8f1d0 cmpb $0x0, -0x40(%rbp) je 0x8eeda movq -0x38(%rbp), %rsi testq %rsi, %rsi je 0x8eebf leaq -0x38(%rbp), %rdi callq 0x6fd1c movq %r12, %rdi callq 0x8ee3e incq %r14 movq -0x50(%rbp), %rdi callq 0x3677cc cmpq %rax, %r14 jb 0x8ee70 jmp 0x8ef49 leaq -0x30(%rbp), %rdi callq 0x37f68a movq -0x38(%rbp), %rax testq %rax, %rax je 0x8eef1 movq (%rax), %r8 jmp 0x8eef8 leaq 0x31a4b2(%rip), %r8 # 0x3a93aa leaq 0x30c6fd(%rip), %rdx # 0x39b5fc leaq -0x48(%rbp), %rdi movl $0x2, %esi movl $0xe, %ecx callq 0x37cfa4 leaq -0x48(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0x37bc92 leaq -0x48(%rbp), %rdi callq 0x37d01c movq -0x30(%rbp), %rdi testq %rdi, %rdi je 0x8ef37 movq (%rdi), %rax callq *0x8(%rax) movq -0x38(%rbp), %rsi testq %rsi, %rsi je 0x8ef49 leaq -0x38(%rbp), %rdi callq 0x6fd1c addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq -0x48(%rbp), %rdi callq 0x37d01c jmp 0x8ef69 movq %rax, %rbx movq -0x30(%rbp), %rdi testq %rdi, %rdi je 0x8ef7d movq (%rdi), %rax callq *0x8(%rax) jmp 0x8ef7d movq %rax, %rbx movq -0x38(%rbp), %rsi testq %rsi, %rsi je 0x8ef8f leaq -0x38(%rbp), %rdi callq 0x6fd1c movq %rbx, %rdi callq 0x32840 nop
_ZL36recursivelyAssertProperNodeOwnershipP6YGNode: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_50], rdi call YGNodeGetChildCount test rax, rax jz loc_8EF49 xor r14d, r14d lea r13, [rbp+var_40] lea rbx, [rbp+var_50] lea r15, [rbp+var_30] loc_8EE70: mov rdi, [rbp+var_50] mov rsi, r14 call YGNodeGetChild mov r12, rax mov rdi, rax call YGNodeGetOwner mov [rbp+var_30], rax mov rdi, r13; this lea rsi, aLasteventNode+0Ch; "node" lea rdx, aYgnodegetowner; "YGNodeGetOwner(child)" mov rcx, rbx mov r8, r15 call _ZN7testing8internal11CmpHelperEQIP6YGNodeS3_EENS_15AssertionResultEPKcS6_RKT_RKT0_; testing::internal::CmpHelperEQ<YGNode *,YGNode *>(char const*,char const*,YGNode * const&,YGNode * const&) cmp [rbp+var_40], 0 jz short loc_8EEDA mov rsi, [rbp+var_38] test rsi, rsi jz short loc_8EEBF lea rdi, [rbp+var_38] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_8EEBF: mov rdi, r12 call _ZL36recursivelyAssertProperNodeOwnershipP6YGNode; recursivelyAssertProperNodeOwnership(YGNode *) inc r14 mov rdi, [rbp+var_50] call YGNodeGetChildCount cmp r14, rax jb short loc_8EE70 jmp short loc_8EF49 loc_8EEDA: lea rdi, [rbp+var_30]; this call _ZN7testing7MessageC2Ev; testing::Message::Message(void) mov rax, [rbp+var_38] test rax, rax jz short loc_8EEF1 mov r8, [rax] jmp short loc_8EEF8 loc_8EEF1: lea r8, aSFromSSMsTotal+1Ah; "" loc_8EEF8: lea rdx, aWorkspaceLlm4b_5; "/workspace/llm4binary/github2025/yoga-m"... lea rdi, [rbp+var_48] mov esi, 2 mov ecx, 0Eh call _ZN7testing8internal12AssertHelperC2ENS_14TestPartResult4TypeEPKciS5_; testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,char const*,int,char const*) lea rdi, [rbp+var_48] lea rsi, [rbp+var_30] call _ZNK7testing8internal12AssertHelperaSERKNS_7MessageE; testing::internal::AssertHelper::operator=(testing::Message const&) lea rdi, [rbp+var_48]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() mov rdi, [rbp+var_30] test rdi, rdi jz short loc_8EF37 mov rax, [rdi] call qword ptr [rax+8] loc_8EF37: mov rsi, [rbp+var_38] test rsi, rsi jz short loc_8EF49 lea rdi, [rbp+var_38] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_8EF49: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rbp+var_48]; this call _ZN7testing8internal12AssertHelperD2Ev; testing::internal::AssertHelper::~AssertHelper() jmp short loc_8EF69 mov rbx, rax loc_8EF69: mov rdi, [rbp+var_30] test rdi, rdi jz short loc_8EF7D mov rax, [rdi] call qword ptr [rax+8] jmp short loc_8EF7D mov rbx, rax loc_8EF7D: mov rsi, [rbp+var_38] test rsi, rsi jz short loc_8EF8F lea rdi, [rbp+var_38] call _ZNKSt14default_deleteINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclEPS5_; std::default_delete<std::string>::operator()(std::string*) loc_8EF8F: mov rdi, rbx call __Unwind_Resume
void recursivelyAssertProperNodeOwnership(long long a1) { long long v1; // r14 long long Child; // r12 char *v3; // r8 double v4; // xmm0_8 _BYTE v5[8]; // [rsp+8h] [rbp-48h] BYREF _BYTE v6[8]; // [rsp+10h] [rbp-40h] BYREF char **v7; // [rsp+18h] [rbp-38h] BYREF _QWORD v8[6]; // [rsp+20h] [rbp-30h] BYREF if ( ((long long (*)(void))YGNodeGetChildCount)() ) { v1 = 0LL; while ( 1 ) { Child = YGNodeGetChild(a1, v1); v8[0] = YGNodeGetOwner(Child); testing::internal::CmpHelperEQ<YGNode *,YGNode *>((testing *)v6); if ( !v6[0] ) break; if ( v7 ) std::default_delete<std::string>::operator()((long long)&v7, (long long)v7); recursivelyAssertProperNodeOwnership(Child); if ( ++v1 >= (unsigned long long)YGNodeGetChildCount(a1) ) return; } testing::Message::Message((testing::Message *)v8); if ( v7 ) v3 = *v7; else v3 = ""; testing::internal::AssertHelper::AssertHelper( v5, 2LL, "/workspace/llm4binary/github2025/yoga-mod/tests/YGCloneNodeTest.cpp", 14LL, v3); v4 = testing::internal::AssertHelper::operator=(v5, v8); testing::internal::AssertHelper::~AssertHelper((testing::internal::AssertHelper *)v5); if ( v8[0] ) (*(void ( **)(_QWORD, double))(*(_QWORD *)v8[0] + 8LL))(v8[0], v4); if ( v7 ) std::default_delete<std::string>::operator()((long long)&v7, (long long)v7); } }
recursivelyAssertProperNodeOwnership: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x50],RDI CALL 0x004677cc TEST RAX,RAX JZ 0x0018ef49 XOR R14D,R14D LEA R13,[RBP + -0x40] LEA RBX,[RBP + -0x50] LEA R15,[RBP + -0x30] LAB_0018ee70: MOV RDI,qword ptr [RBP + -0x50] MOV RSI,R14 CALL 0x004677a5 MOV R12,RAX MOV RDI,RAX CALL 0x004677e4 MOV qword ptr [RBP + -0x30],RAX MOV RDI,R13 LEA RSI,[0x4990cc] LEA RDX,[0x49b66b] MOV RCX,RBX MOV R8,R15 CALL 0x0018f1d0 CMP byte ptr [RBP + -0x40],0x0 JZ 0x0018eeda MOV RSI,qword ptr [RBP + -0x38] TEST RSI,RSI JZ 0x0018eebf LEA RDI,[RBP + -0x38] CALL 0x0016fd1c LAB_0018eebf: MOV RDI,R12 CALL 0x0018ee3e INC R14 MOV RDI,qword ptr [RBP + -0x50] CALL 0x004677cc CMP R14,RAX JC 0x0018ee70 JMP 0x0018ef49 LAB_0018eeda: LEA RDI,[RBP + -0x30] CALL 0x0047f68a MOV RAX,qword ptr [RBP + -0x38] TEST RAX,RAX JZ 0x0018eef1 MOV R8,qword ptr [RAX] JMP 0x0018eef8 LAB_0018eef1: LEA R8,[0x4a93aa] LAB_0018eef8: LEA RDX,[0x49b5fc] LEA RDI,[RBP + -0x48] MOV ESI,0x2 MOV ECX,0xe CALL 0x0047cfa4 LAB_0018ef12: LEA RDI,[RBP + -0x48] LEA RSI,[RBP + -0x30] CALL 0x0047bc92 LAB_0018ef1f: LEA RDI,[RBP + -0x48] CALL 0x0047d01c MOV RDI,qword ptr [RBP + -0x30] TEST RDI,RDI JZ 0x0018ef37 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0018ef37: MOV RSI,qword ptr [RBP + -0x38] TEST RSI,RSI JZ 0x0018ef49 LEA RDI,[RBP + -0x38] CALL 0x0016fd1c LAB_0018ef49: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* recursivelyAssertProperNodeOwnership(YGNode*) */ void recursivelyAssertProperNodeOwnership(YGNode *param_1) { long lVar1; YGNode *pYVar2; ulong uVar3; char *pcVar4; ulong uVar5; YGNode *local_58; AssertHelper local_50 [8]; internal local_48 [8]; string *local_40; YGNode *local_38; local_58 = param_1; lVar1 = YGNodeGetChildCount(); if (lVar1 != 0) { uVar5 = 0; do { pYVar2 = (YGNode *)YGNodeGetChild(local_58,uVar5); local_38 = (YGNode *)YGNodeGetOwner(pYVar2); testing::internal::CmpHelperEQ<YGNode*,YGNode*> (local_48,"node","YGNodeGetOwner(child)",&local_58,&local_38); if (local_48[0] == (internal)0x0) { /* try { // try from 0018eeda to 0018eee2 has its CatchHandler @ 0018ef7a */ testing::Message::Message((Message *)&local_38); if (local_40 == (string *)0x0) { pcVar4 = ""; } else { pcVar4 = *(char **)local_40; } /* try { // try from 0018eef8 to 0018ef11 has its CatchHandler @ 0018ef66 */ testing::internal::AssertHelper::AssertHelper (local_50,2,"/workspace/llm4binary/github2025/yoga-mod/tests/YGCloneNodeTest.cpp", 0xe,pcVar4); /* try { // try from 0018ef12 to 0018ef1e has its CatchHandler @ 0018ef58 */ testing::internal::AssertHelper::operator=(local_50,(Message *)&local_38); testing::internal::AssertHelper::~AssertHelper(local_50); if (local_38 != (YGNode *)0x0) { (**(code **)(*(long *)local_38 + 8))(); } if (local_40 == (string *)0x0) { return; } std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_40,local_40); return; } if (local_40 != (string *)0x0) { std::default_delete<std::__cxx11::string>::operator() ((default_delete<std::__cxx11::string> *)&local_40,local_40); } recursivelyAssertProperNodeOwnership(pYVar2); uVar5 = uVar5 + 1; uVar3 = YGNodeGetChildCount(local_58); } while (uVar5 < uVar3); } return; }
7,013
my_charlen_utf8mb3
eloqsql/strings/ctype-utf8.c
static int my_charlen_utf8mb3(CHARSET_INFO *cs __attribute__((unused)), const uchar *s, const uchar *e) { uchar c; if (s >= e) return MY_CS_TOOSMALL; c= s[0]; if (c < 0xf0) return my_valid_mbcharlen_utf8mb3(s, e); return MY_CS_ILSEQ; }
O3
c
my_charlen_utf8mb3: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rdx, %rsi jae 0x4dffb movb (%rsi), %cl cmpb $-0x11, %cl ja 0x4dff9 movl $0x1, %eax testb %cl, %cl jns 0x4dffb cmpb $-0x3e, %cl jae 0x4dffd xorl %eax, %eax popq %rbp retq cmpb $-0x21, %cl ja 0x4e01d leaq 0x2(%rsi), %rcx movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rdx, %rcx ja 0x4dffb xorl %eax, %eax cmpb $-0x40, 0x1(%rsi) setl %al addl %eax, %eax jmp 0x4dffb leaq 0x3(%rsi), %rdi movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rdx, %rdi ja 0x4dffb movb 0x1(%rsi), %dl cmpb $-0x41, %dl jg 0x4dff9 cmpb $-0x41, 0x2(%rsi) movl $0x0, %eax jg 0x4dffb xorl %eax, %eax cmpb $-0x60, %dl setae %al cmpb $-0x20, %cl leal (%rax,%rax,2), %ecx movl $0x3, %eax cmovel %ecx, %eax jmp 0x4dffb
my_charlen_utf8mb3: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rsi, rdx jnb short loc_4DFFB mov cl, [rsi] cmp cl, 0EFh ja short loc_4DFF9 mov eax, 1 test cl, cl jns short loc_4DFFB cmp cl, 0C2h jnb short loc_4DFFD loc_4DFF9: xor eax, eax loc_4DFFB: pop rbp retn loc_4DFFD: cmp cl, 0DFh ja short loc_4E01D lea rcx, [rsi+2] mov eax, 0FFFFFF9Ah cmp rcx, rdx ja short loc_4DFFB xor eax, eax cmp byte ptr [rsi+1], 0C0h setl al add eax, eax jmp short loc_4DFFB loc_4E01D: lea rdi, [rsi+3] mov eax, 0FFFFFF99h cmp rdi, rdx ja short loc_4DFFB mov dl, [rsi+1] cmp dl, 0BFh jg short loc_4DFF9 cmp byte ptr [rsi+2], 0BFh mov eax, 0 jg short loc_4DFFB xor eax, eax cmp dl, 0A0h setnb al cmp cl, 0E0h lea ecx, [rax+rax*2] mov eax, 3 cmovz eax, ecx jmp short loc_4DFFB
long long my_charlen_utf8mb3(long long a1, char *a2, unsigned long long a3) { long long result; // rax char v4; // cl char v5; // dl result = 4294967195LL; if ( (unsigned long long)a2 < a3 ) { v4 = *a2; if ( (unsigned __int8)*a2 > 0xEFu ) return 0LL; result = 1LL; if ( v4 >= 0 ) return result; if ( (unsigned __int8)v4 < 0xC2u ) return 0LL; if ( (unsigned __int8)v4 > 0xDFu ) { result = 4294967193LL; if ( (unsigned long long)(a2 + 3) <= a3 ) { v5 = a2[1]; if ( v5 > -65 ) return 0LL; result = 0LL; if ( a2[2] <= -65 ) { result = 3LL; if ( v4 == -32 ) return 3 * (unsigned int)((unsigned __int8)v5 >= 0xA0u); } } } else { result = 4294967194LL; if ( (unsigned long long)(a2 + 2) <= a3 ) return 2 * (unsigned int)(a2[1] < -64); } } return result; }
my_charlen_utf8mb3: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RSI,RDX JNC 0x0014dffb MOV CL,byte ptr [RSI] CMP CL,0xef JA 0x0014dff9 MOV EAX,0x1 TEST CL,CL JNS 0x0014dffb CMP CL,0xc2 JNC 0x0014dffd LAB_0014dff9: XOR EAX,EAX LAB_0014dffb: POP RBP RET LAB_0014dffd: CMP CL,0xdf JA 0x0014e01d LEA RCX,[RSI + 0x2] MOV EAX,0xffffff9a CMP RCX,RDX JA 0x0014dffb XOR EAX,EAX CMP byte ptr [RSI + 0x1],0xc0 SETL AL ADD EAX,EAX JMP 0x0014dffb LAB_0014e01d: LEA RDI,[RSI + 0x3] MOV EAX,0xffffff99 CMP RDI,RDX JA 0x0014dffb MOV DL,byte ptr [RSI + 0x1] CMP DL,0xbf JG 0x0014dff9 CMP byte ptr [RSI + 0x2],0xbf MOV EAX,0x0 JG 0x0014dffb XOR EAX,EAX CMP DL,0xa0 SETNC AL CMP CL,0xe0 LEA ECX,[RAX + RAX*0x2] MOV EAX,0x3 CMOVZ EAX,ECX JMP 0x0014dffb
int my_charlen_utf8mb3(int8 param_1,byte *param_2,byte *param_3) { byte bVar1; if (param_3 <= param_2) { return -0x65; } bVar1 = *param_2; if (bVar1 < 0xf0) { if (-1 < (char)bVar1) { return 1; } if (0xc1 < bVar1) { if (bVar1 < 0xe0) { if (param_3 < param_2 + 2) { return -0x66; } return (uint)((char)param_2[1] < -0x40) * 2; } if (param_3 < param_2 + 3) { return -0x67; } if ((char)param_2[1] < -0x40) { if (-0x41 < (char)param_2[2]) { return 0; } if (bVar1 != 0xe0) { return 3; } return (uint)(0x9f < param_2[1]) * 3; } } } return 0; }
7,014
blst_expand_message_xmd
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/hash_to_field.c
void blst_expand_message_xmd(unsigned char *bytes, size_t len_in_bytes, const unsigned char *msg, size_t msg_len, const unsigned char *DST, size_t DST_len) { size_t buf_len = (len_in_bytes+31) & ((size_t)0-32); unsigned char *buf_ptr = bytes; if (buf_len > 255*32) return; if (buf_len != len_in_bytes) buf_ptr = alloca(buf_len); expand_message_xmd(buf_ptr, len_in_bytes, NULL, 0, msg, msg_len, DST, DST_len); if (buf_ptr != bytes) { unsigned char *ptr = buf_ptr; while (len_in_bytes--) *bytes++ = *ptr++; vec_zero(buf_ptr, buf_len); } }
O1
c
blst_expand_message_xmd: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx leaq 0x1f(%rsi), %r12 andq $-0x20, %r12 cmpq $0x1fe0, %r12 # imm = 0x1FE0 ja 0x18fa7 movq %r9, %r10 movq %r8, %rax movq %rcx, %r9 movq %rdx, %r8 movq %rsi, %r14 movq %rdi, %r15 movq %rdi, %rbx cmpq %rsi, %r12 je 0x18f5b movq %rsp, %rbx leaq 0xf(%r12), %rcx andq $-0x10, %rcx subq %rcx, %rbx movq %rbx, %rsp movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx xorl %ecx, %ecx pushq %r10 pushq %rax callq 0x18fb4 addq $0x10, %rsp cmpq %r15, %rbx je 0x18fa7 testq %r14, %r14 je 0x18f8c xorl %eax, %eax movb (%rbx,%rax), %cl movb %cl, (%r15,%rax) incq %rax cmpq %rax, %r14 jne 0x18f7d testq %r12, %r12 je 0x18fa7 shrq $0x3, %r12 xorl %eax, %eax movq $0x0, (%rbx,%rax,8) incq %rax cmpq %rax, %r12 jne 0x18f97 leaq -0x20(%rbp), %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
blst_expand_message_xmd: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx lea r12, [rsi+1Fh] and r12, 0FFFFFFFFFFFFFFE0h cmp r12, 1FE0h ja short loc_18FA7 mov r10, r9 mov rax, r8 mov r9, rcx mov r8, rdx mov r14, rsi mov r15, rdi mov rbx, rdi cmp r12, rsi jz short loc_18F5B mov rbx, rsp lea rcx, [r12+0Fh] and rcx, 0FFFFFFFFFFFFFFF0h sub rbx, rcx mov rsp, rbx loc_18F5B: mov rdi, rbx mov rsi, r14 xor edx, edx xor ecx, ecx push r10 push rax call expand_message_xmd add rsp, 10h cmp rbx, r15 jz short loc_18FA7 test r14, r14 jz short loc_18F8C xor eax, eax loc_18F7D: mov cl, [rbx+rax] mov [r15+rax], cl inc rax cmp r14, rax jnz short loc_18F7D loc_18F8C: test r12, r12 jz short loc_18FA7 shr r12, 3 xor eax, eax loc_18F97: mov qword ptr [rbx+rax*8], 0 inc rax cmp r12, rax jnz short loc_18F97 loc_18FA7: lea rsp, [rbp-20h] pop rbx pop r12 pop r14 pop r15 pop rbp retn
void blst_expand_message_xmd(char *a1, long long a2, int a3, int a4, long long a5, long long a6) { unsigned long long v6; // r12 char *v7; // rbx long long i; // rax unsigned long long v9; // r12 long long v10; // rax long long v11; // [rsp+0h] [rbp-20h] BYREF v6 = (a2 + 31) & 0xFFFFFFFFFFFFFFE0LL; if ( v6 <= 0x1FE0 ) { v7 = a1; if ( v6 != a2 ) v7 = (char *)&v11 - ((v6 + 15) & 0xFFFFFFFFFFFFFFF0LL); expand_message_xmd((_DWORD)v7, a2, 0, 0, a3, a4, a5, a6); if ( v7 != a1 ) { if ( a2 ) { for ( i = 0LL; i != a2; ++i ) a1[i] = v7[i]; } if ( v6 ) { v9 = v6 >> 3; v10 = 0LL; do *(_QWORD *)&v7[8 * v10++] = 0LL; while ( v9 != v10 ); } } } }
blst_expand_message_xmd: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX LEA R12,[RSI + 0x1f] AND R12,-0x20 CMP R12,0x1fe0 JA 0x00118fa7 MOV R10,R9 MOV RAX,R8 MOV R9,RCX MOV R8,RDX MOV R14,RSI MOV R15,RDI MOV RBX,RDI CMP R12,RSI JZ 0x00118f5b MOV RBX,RSP LEA RCX,[R12 + 0xf] AND RCX,-0x10 SUB RBX,RCX MOV RSP,RBX LAB_00118f5b: MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX XOR ECX,ECX PUSH R10 PUSH RAX CALL 0x00118fb4 ADD RSP,0x10 CMP RBX,R15 JZ 0x00118fa7 TEST R14,R14 JZ 0x00118f8c XOR EAX,EAX LAB_00118f7d: MOV CL,byte ptr [RBX + RAX*0x1] MOV byte ptr [R15 + RAX*0x1],CL INC RAX CMP R14,RAX JNZ 0x00118f7d LAB_00118f8c: TEST R12,R12 JZ 0x00118fa7 SHR R12,0x3 XOR EAX,EAX LAB_00118f97: MOV qword ptr [RBX + RAX*0x8],0x0 INC RAX CMP R12,RAX JNZ 0x00118f97 LAB_00118fa7: LEA RSP,[RBP + -0x20] POP RBX POP R12 POP R14 POP R15 POP RBP RET
void blst_expand_message_xmd (int1 *param_1,ulong param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { ulong uVar1; int1 *puVar2; int1 *puVar3; ulong uVar4; uVar4 = param_2 + 0x1f & 0xffffffffffffffe0; if (uVar4 < 0x1fe1) { puVar2 = param_1; puVar3 = &stack0xffffffffffffffd8; if (uVar4 != param_2) { puVar2 = &stack0xffffffffffffffd8 + -uVar4; puVar3 = puVar2; } *(int8 *)(puVar3 + -8) = param_6; *(int8 *)(puVar3 + -0x10) = param_5; *(int8 *)(puVar3 + -0x18) = 0x118f6d; expand_message_xmd(puVar2,param_2,0,0,param_3,param_4); if (puVar2 != param_1) { if (param_2 != 0) { uVar1 = 0; do { param_1[uVar1] = puVar2[uVar1]; uVar1 = uVar1 + 1; } while (param_2 != uVar1); } if (uVar4 != 0) { uVar1 = 0; do { *(int8 *)(puVar2 + uVar1 * 8) = 0; uVar1 = uVar1 + 1; } while (uVar4 >> 3 != uVar1); } } } return; }
7,015
my_dirend
eloqsql/mysys/my_lib.c
void my_dirend(MY_DIR *dir) { MY_DIR_HANDLE *dirh= (MY_DIR_HANDLE*) dir; DBUG_ENTER("my_dirend"); if (dirh) { delete_dynamic(&dirh->array); free_root(&dirh->root, MYF(0)); my_free(dirh); } DBUG_VOID_RETURN; }
O0
c
my_dirend: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0xf7a82 movq -0x10(%rbp), %rdi addq $0x10, %rdi callq 0xdc0d0 movq -0x10(%rbp), %rdi addq $0x38, %rdi xorl %eax, %eax movl %eax, %esi callq 0xeece0 movq -0x10(%rbp), %rdi callq 0xf86d0 jmp 0xf7a84 jmp 0xf7a86 addq $0x10, %rsp popq %rbp retq nopl (%rax)
my_dirend: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax cmp [rbp+var_10], 0 jz short loc_F7A82 mov rdi, [rbp+var_10] add rdi, 10h call delete_dynamic mov rdi, [rbp+var_10] add rdi, 38h ; '8' xor eax, eax mov esi, eax call free_root mov rdi, [rbp+var_10] call my_free loc_F7A82: jmp short $+2 loc_F7A84: jmp short $+2 loc_F7A86: add rsp, 10h pop rbp retn
long long my_dirend(long long a1) { long long result; // rax result = a1; if ( a1 ) { delete_dynamic(a1 + 16); free_root(a1 + 56, 0); return my_free(a1); } return result; }
my_dirend: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x001f7a82 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x10 CALL 0x001dc0d0 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x38 XOR EAX,EAX MOV ESI,EAX CALL 0x001eece0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f86d0 LAB_001f7a82: JMP 0x001f7a84 LAB_001f7a84: JMP 0x001f7a86 LAB_001f7a86: ADD RSP,0x10 POP RBP RET
void my_dirend(long param_1) { if (param_1 != 0) { delete_dynamic(param_1 + 0x10); free_root(param_1 + 0x38,0); my_free(param_1); } return; }
7,016
google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(google::protobuf::DescriptorProto_ExtensionRange const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from) : ::PROTOBUF_NAMESPACE_ID::Message() { DescriptorProto_ExtensionRange* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_._has_bits_){from._impl_._has_bits_} , /*decltype(_impl_._cached_size_)*/{} , decltype(_impl_.options_){nullptr} , decltype(_impl_.start_){} , decltype(_impl_.end_){}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_options()) { _this->_impl_.options_ = new ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions(*from._impl_.options_); } ::memcpy(&_impl_.start_, &from._impl_.start_, static_cast<size_t>(reinterpret_cast<char*>(&_impl_.end_) - reinterpret_cast<char*>(&_impl_.start_)) + sizeof(_impl_.end_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange) }
O3
cpp
google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(google::protobuf::DescriptorProto_ExtensionRange const&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rdi), %r14 movq $0x0, 0x8(%rdi) leaq 0x121044(%rip), %rax # 0x20c890 movq %rax, (%rdi) movl 0x10(%rsi), %eax movl %eax, 0x10(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x14(%rdi) movl $0x0, 0x24(%rdi) movq 0x8(%rsi), %rsi testb $0x1, %sil je 0xeb87d andq $-0x4, %rsi addq $0x8, %rsi movq %r14, %rdi callq 0x734be testb $0x1, 0x10(%r15) je 0xeb8a4 movq 0x18(%r15), %r13 movl $0x48, %edi callq 0x2d270 movq %rax, %r12 movq %rax, %rdi movq %r13, %rsi callq 0xedb06 movq %r12, 0x18(%rbx) movq 0x20(%r15), %rax movq %rax, 0x20(%rbx) popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r15 movq %r12, %rdi callq 0x2d160 jmp 0xeb8c6 movq %rax, %r15 leaq 0x11ec53(%rip), %rax # 0x20a520 addq $0x10, %rax movq %rax, (%rbx) movq %r14, %rdi callq 0x73456 movq %r15, %rdi callq 0x2e220
_ZN6google8protobuf30DescriptorProto_ExtensionRangeC2ERKS1_: push r15 push r14 push r13 push r12 push rbx mov r15, rsi mov rbx, rdi lea r14, [rdi+8] mov qword ptr [rdi+8], 0 lea rax, off_20C890 mov [rdi], rax mov eax, [rsi+10h] mov [rdi+10h], eax xorps xmm0, xmm0 movups xmmword ptr [rdi+14h], xmm0 mov dword ptr [rdi+24h], 0 mov rsi, [rsi+8] test sil, 1 jz short loc_EB87D and rsi, 0FFFFFFFFFFFFFFFCh add rsi, 8 mov rdi, r14 call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_EB87D: test byte ptr [r15+10h], 1 jz short loc_EB8A4 mov r13, [r15+18h] mov edi, 48h ; 'H'; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax mov rdi, rax; this mov rsi, r13; google::protobuf::ExtensionRangeOptions * call _ZN6google8protobuf21ExtensionRangeOptionsC2ERKS1_; google::protobuf::ExtensionRangeOptions::ExtensionRangeOptions(google::protobuf::ExtensionRangeOptions const&) mov [rbx+18h], r12 loc_EB8A4: mov rax, [r15+20h] mov [rbx+20h], rax pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r15, rax mov rdi, r12; void * call __ZdlPv; operator delete(void *) jmp short loc_EB8C6 mov r15, rax loc_EB8C6: lea rax, _ZTVN6google8protobuf11MessageLiteE; `vtable for'google::protobuf::MessageLite add rax, 10h mov [rbx], rax mov rdi, r14; this call _ZN6google8protobuf8internal16InternalMetadataD2Ev; google::protobuf::internal::InternalMetadata::~InternalMetadata() mov rdi, r15 call __Unwind_Resume
long long google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange( google::protobuf::DescriptorProto_ExtensionRange *this, const google::protobuf::DescriptorProto_ExtensionRange *a2) { long long v3; // rsi const google::protobuf::ExtensionRangeOptions *v4; // r13 google::protobuf::ExtensionRangeOptions *v5; // r12 long long result; // rax *((_QWORD *)this + 1) = 0LL; *(_QWORD *)this = off_20C890; *((_DWORD *)this + 4) = *((_DWORD *)a2 + 4); *(_OWORD *)((char *)this + 20) = 0LL; *((_DWORD *)this + 9) = 0; v3 = *((_QWORD *)a2 + 1); if ( (v3 & 1) != 0 ) google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (long long *)this + 1, (const google::protobuf::UnknownFieldSet *)((v3 & 0xFFFFFFFFFFFFFFFCLL) + 8)); if ( (*((_BYTE *)a2 + 16) & 1) != 0 ) { v4 = (const google::protobuf::ExtensionRangeOptions *)*((_QWORD *)a2 + 3); v5 = (google::protobuf::ExtensionRangeOptions *)operator new(0x48uLL); google::protobuf::ExtensionRangeOptions::ExtensionRangeOptions(v5, v4); *((_QWORD *)this + 3) = v5; } result = *((_QWORD *)a2 + 4); *((_QWORD *)this + 4) = result; return result; }
DescriptorProto_ExtensionRange: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RSI MOV RBX,RDI LEA R14,[RDI + 0x8] MOV qword ptr [RDI + 0x8],0x0 LEA RAX,[0x30c890] MOV qword ptr [RDI],RAX MOV EAX,dword ptr [RSI + 0x10] MOV dword ptr [RDI + 0x10],EAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x14],XMM0 MOV dword ptr [RDI + 0x24],0x0 MOV RSI,qword ptr [RSI + 0x8] TEST SIL,0x1 JZ 0x001eb87d AND RSI,-0x4 ADD RSI,0x8 LAB_001eb875: MOV RDI,R14 CALL 0x001734be LAB_001eb87d: TEST byte ptr [R15 + 0x10],0x1 JZ 0x001eb8a4 MOV R13,qword ptr [R15 + 0x18] MOV EDI,0x48 CALL 0x0012d270 LAB_001eb892: MOV R12,RAX MOV RDI,RAX MOV RSI,R13 CALL 0x001edb06 LAB_001eb8a0: MOV qword ptr [RBX + 0x18],R12 LAB_001eb8a4: MOV RAX,qword ptr [R15 + 0x20] MOV qword ptr [RBX + 0x20],RAX POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(google::protobuf::DescriptorProto_ExtensionRange const&) */ void __thiscall google::protobuf::DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange (DescriptorProto_ExtensionRange *this,DescriptorProto_ExtensionRange *param_1) { ExtensionRangeOptions *pEVar1; ExtensionRangeOptions *this_00; *(int8 *)(this + 8) = 0; *(int ***)this = &PTR__DescriptorProto_ExtensionRange_0030c890; *(int4 *)(this + 0x10) = *(int4 *)(param_1 + 0x10); *(int8 *)(this + 0x14) = 0; *(int8 *)(this + 0x1c) = 0; *(int4 *)(this + 0x24) = 0; if ((*(ulong *)(param_1 + 8) & 1) != 0) { /* try { // try from 001eb875 to 001eb891 has its CatchHandler @ 001eb8c3 */ internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(this + 8), (UnknownFieldSet *)((*(ulong *)(param_1 + 8) & 0xfffffffffffffffc) + 8)); } if (((byte)param_1[0x10] & 1) != 0) { pEVar1 = *(ExtensionRangeOptions **)(param_1 + 0x18); this_00 = (ExtensionRangeOptions *)operator_new(0x48); /* try { // try from 001eb892 to 001eb89f has its CatchHandler @ 001eb8b6 */ ExtensionRangeOptions::ExtensionRangeOptions(this_00,pEVar1); *(ExtensionRangeOptions **)(this + 0x18) = this_00; } *(int8 *)(this + 0x20) = *(int8 *)(param_1 + 0x20); return; }
7,017
stbi__pnm_test(stbi__context*)
monkey531[P]llama/examples/llava/../../common/stb_image.h
static int stbi__pnm_test(stbi__context *s) { char p, t; p = (char) stbi__get8(s); t = (char) stbi__get8(s); if (p != 'P' || (t != '5' && t != '6')) { stbi__rewind( s ); return 0; } return 1; }
O0
c
stbi__pnm_test(stbi__context*): subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rdi callq 0x9f080 movb %al, 0x7(%rsp) movq 0x8(%rsp), %rdi callq 0x9f080 movb %al, 0x6(%rsp) movsbl 0x7(%rsp), %eax cmpl $0x50, %eax jne 0x9d793 movsbl 0x6(%rsp), %eax cmpl $0x35, %eax je 0x9d7a7 movsbl 0x6(%rsp), %eax cmpl $0x36, %eax je 0x9d7a7 movq 0x8(%rsp), %rdi callq 0x9f040 movl $0x0, 0x14(%rsp) jmp 0x9d7af movl $0x1, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax,%rax)
_ZL14stbi__pnm_testP13stbi__context: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rdi, [rsp+18h+var_10] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov [rsp+18h+var_11], al mov rdi, [rsp+18h+var_10] call _ZL10stbi__get8P13stbi__context; stbi__get8(stbi__context *) mov [rsp+18h+var_12], al movsx eax, [rsp+18h+var_11] cmp eax, 50h ; 'P' jnz short loc_9D793 movsx eax, [rsp+18h+var_12] cmp eax, 35h ; '5' jz short loc_9D7A7 movsx eax, [rsp+18h+var_12] cmp eax, 36h ; '6' jz short loc_9D7A7 loc_9D793: mov rdi, [rsp+18h+var_10] call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *) mov [rsp+18h+var_4], 0 jmp short loc_9D7AF loc_9D7A7: mov [rsp+18h+var_4], 1 loc_9D7AF: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long stbi__pnm_test(long long a1) { char v2; // [rsp+6h] [rbp-12h] char v3; // [rsp+7h] [rbp-11h] v3 = stbi__get8(a1); v2 = stbi__get8(a1); if ( v3 == 80 && (v2 == 53 || v2 == 54) ) { return 1; } else { stbi__rewind(a1); return 0; } }
stbi__pnm_test: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019f080 MOV byte ptr [RSP + 0x7],AL MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019f080 MOV byte ptr [RSP + 0x6],AL MOVSX EAX,byte ptr [RSP + 0x7] CMP EAX,0x50 JNZ 0x0019d793 MOVSX EAX,byte ptr [RSP + 0x6] CMP EAX,0x35 JZ 0x0019d7a7 MOVSX EAX,byte ptr [RSP + 0x6] CMP EAX,0x36 JZ 0x0019d7a7 LAB_0019d793: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019f040 MOV dword ptr [RSP + 0x14],0x0 JMP 0x0019d7af LAB_0019d7a7: MOV dword ptr [RSP + 0x14],0x1 LAB_0019d7af: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* stbi__pnm_test(stbi__context*) */ int4 stbi__pnm_test(stbi__context *param_1) { char cVar1; char cVar2; int4 local_4; cVar1 = stbi__get8(param_1); cVar2 = stbi__get8(param_1); if ((cVar1 == 'P') && ((cVar2 == '5' || (cVar2 == '6')))) { local_4 = 1; } else { stbi__rewind(param_1); local_4 = 0; } return local_4; }
7,018
mysql_next_result_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_next_result_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_next_result, (parms->mysql), parms->mysql, int, r_int) }
O0
c
mysql_next_result_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi callq 0xa58f0 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_next_result_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] call mysql_next_result mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_next_result_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL); v2[2] = mysql_next_result(*a1); result = v2; *v2 = 0; return result; }
mysql_next_result_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] CALL 0x001a58f0 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_next_result_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_next_result(*param_1); puVar1[2] = uVar2; *puVar1 = 0; return; }
7,019
translog_put_sector_protection
eloqsql/storage/maria/ma_loghandler.c
static void translog_put_sector_protection(uchar *page, struct st_buffer_cursor *cursor) { uchar *table= page + log_descriptor.page_overhead - TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE; uint i, offset; uint16 last_protected_sector= ((cursor->previous_offset - 1) / DISK_DRIVE_SECTOR_SIZE); uint16 start_sector= cursor->previous_offset / DISK_DRIVE_SECTOR_SIZE; uint8 value= table[0] + cursor->write_counter; DBUG_ENTER("translog_put_sector_protection"); if (start_sector == 0) { /* First sector is protected by file & page numbers in the page header. */ start_sector= 1; } DBUG_PRINT("enter", ("Write counter:%u value:%u offset:%u, " "last protected:%u start sector:%u", (uint) cursor->write_counter, (uint) value, (uint) cursor->previous_offset, (uint) last_protected_sector, (uint) start_sector)); if (last_protected_sector == start_sector) { i= last_protected_sector; offset= last_protected_sector * DISK_DRIVE_SECTOR_SIZE; /* restore data, because we modified sector which was protected */ if (offset < cursor->previous_offset) page[offset]= table[i]; } for (i= start_sector, offset= start_sector * DISK_DRIVE_SECTOR_SIZE; i < TRANSLOG_PAGE_SIZE / DISK_DRIVE_SECTOR_SIZE; i++, (offset+= DISK_DRIVE_SECTOR_SIZE)) { DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x", i, offset, (uint) page[offset])); table[i]= page[offset]; page[offset]= value; DBUG_PRINT("info", ("sector:%u offset:%u data 0x%x", i, offset, (uint) page[offset])); } DBUG_VOID_RETURN; }
O3
c
translog_put_sector_protection: movzwl 0x3af794(%rip), %eax # 0x3fe7e4 movl $0xffff, %r9d # imm = 0xFFFF andl %r9d, %edx leal 0x1ffffff(%rdx), %ecx shrl $0x9, %ecx movl %edx, %r10d shrl $0x9, %r10d addb -0x10(%rdi,%rax), %sil cmpl $0x200, %edx # imm = 0x200 movl $0x1, %r8d cmovael %r10d, %r8d cmpw %cx, %r8w jne 0x4f0a2 andl %r9d, %ecx movl %ecx, %r9d shll $0x9, %r9d cmpl %edx, %r9d jae 0x4f0a2 leaq (%rdi,%rax), %rdx addq $-0x10, %rdx movb (%rdx,%rcx), %cl movb %cl, (%rdi,%r9) cmpw $0xf, %r8w ja 0x4f0d5 pushq %rbp movq %rsp, %rbp addq %rdi, %rax movzwl %r8w, %edx leaq -0x10(%rdx), %rcx shll $0x9, %edx addq %rdi, %rdx movb (%rdx), %dil movb %dil, (%rax,%rcx) movb %sil, (%rdx) addq $0x200, %rdx # imm = 0x200 incq %rcx jne 0x4f0be popq %rbp retq
translog_put_sector_protection: movzx eax, cs:word_3FE7E4 mov r9d, 0FFFFh and edx, r9d lea ecx, [rdx+1FFFFFFh] shr ecx, 9 mov r10d, edx shr r10d, 9 add sil, [rdi+rax-10h] cmp edx, 200h mov r8d, 1 cmovnb r8d, r10d cmp r8w, cx jnz short loc_4F0A2 and ecx, r9d mov r9d, ecx shl r9d, 9 cmp r9d, edx jnb short loc_4F0A2 lea rdx, [rdi+rax] add rdx, 0FFFFFFFFFFFFFFF0h mov cl, [rdx+rcx] mov [rdi+r9], cl loc_4F0A2: cmp r8w, 0Fh ja short locret_4F0D5 push rbp mov rbp, rsp add rax, rdi movzx edx, r8w lea rcx, [rdx-10h] shl edx, 9 add rdx, rdi loc_4F0BE: mov dil, [rdx] mov [rax+rcx], dil mov [rdx], sil add rdx, 200h inc rcx jnz short loc_4F0BE pop rbp locret_4F0D5: retn
long long translog_put_sector_protection(long long a1, char a2, unsigned __int16 a3) { long long result; // rax char v4; // si unsigned __int16 v5; // r8 long long v6; // rcx long long v7; // r9 long long v8; // rcx _BYTE *v9; // rdx result = (unsigned __int16)word_3FE7E4; v4 = *(_BYTE *)(a1 + (unsigned __int16)word_3FE7E4 - 16) + a2; v5 = 1; if ( a3 >= 0x200u ) v5 = a3 >> 9; if ( v5 == (unsigned __int16)(((unsigned int)a3 + 0x1FFFFFF) >> 9) ) { v6 = (unsigned __int16)(((unsigned int)a3 + 0x1FFFFFF) >> 9); v7 = (unsigned int)((_DWORD)v6 << 9); if ( (unsigned int)v7 < a3 ) *(_BYTE *)(a1 + v7) = *(_BYTE *)(a1 + (unsigned __int16)word_3FE7E4 - 16 + v6); } if ( v5 <= 0xFu ) { result += a1; v8 = v5 - 16LL; v9 = (_BYTE *)(a1 + (v5 << 9)); do { *(_BYTE *)(result + v8) = *v9; *v9 = v4; v9 += 512; ++v8; } while ( v8 ); } return result; }
translog_put_sector_protection: MOVZX EAX,word ptr [0x004fe7e4] MOV R9D,0xffff AND EDX,R9D LEA ECX,[RDX + 0x1ffffff] SHR ECX,0x9 MOV R10D,EDX SHR R10D,0x9 ADD SIL,byte ptr [RDI + RAX*0x1 + -0x10] CMP EDX,0x200 MOV R8D,0x1 CMOVNC R8D,R10D CMP R8W,CX JNZ 0x0014f0a2 AND ECX,R9D MOV R9D,ECX SHL R9D,0x9 CMP R9D,EDX JNC 0x0014f0a2 LEA RDX,[RDI + RAX*0x1] ADD RDX,-0x10 MOV CL,byte ptr [RDX + RCX*0x1] MOV byte ptr [RDI + R9*0x1],CL LAB_0014f0a2: CMP R8W,0xf JA 0x0014f0d5 PUSH RBP MOV RBP,RSP ADD RAX,RDI MOVZX EDX,R8W LEA RCX,[RDX + -0x10] SHL EDX,0x9 ADD RDX,RDI LAB_0014f0be: MOV DIL,byte ptr [RDX] MOV byte ptr [RAX + RCX*0x1],DIL MOV byte ptr [RDX],SIL ADD RDX,0x200 INC RCX JNZ 0x0014f0be POP RBP LAB_0014f0d5: RET
void translog_put_sector_protection(long param_1,char param_2,uint param_3) { char cVar1; ulong uVar2; uint uVar3; long lVar4; char *pcVar5; uint uVar6; uint uVar7; uVar2 = (ulong)DAT_004fe7e4; param_3 = param_3 & 0xffff; uVar3 = param_3 + 0x1ffffff >> 9; cVar1 = *(char *)(param_1 + -0x10 + uVar2); uVar6 = 1; if (0x1ff < param_3) { uVar6 = param_3 >> 9; } if ((ushort)uVar6 == (ushort)uVar3) { uVar3 = uVar3 & 0xffff; uVar7 = uVar3 << 9; if (uVar7 < param_3) { *(int1 *)(param_1 + (ulong)uVar7) = *(int1 *)(param_1 + uVar2 + -0x10 + (ulong)uVar3); } } if ((ushort)uVar6 < 0x10) { lVar4 = (ulong)uVar6 - 0x10; pcVar5 = (char *)((ulong)(uVar6 << 9) + param_1); do { *(char *)(uVar2 + param_1 + lVar4) = *pcVar5; *pcVar5 = param_2 + cVar1; pcVar5 = pcVar5 + 0x200; lVar4 = lVar4 + 1; } while (lVar4 != 0); } return; }
7,020
LefDefParser::lefwLayerACTableEntries(int, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerACTableEntries(int numEntries, double *entries) { int i; int j = 0; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERACCURRENT) return LEFW_BAD_ORDER; if (numEntries <= 0) return LEFW_BAD_DATA; // tableEntries are required if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " TABLEENTRIES\n "); for (i = 0; i < numEntries; i++) { if (++j > lefwTableLen) { encPrint(lefwFile, (char*) "\n "); j = 1; } encPrint(lefwFile, (char*) "%.11g ", *entries++); } encPrint(lefwFile, (char*) ";\n"); } else { fprintf(lefwFile, " TABLEENTRIES\n "); for (i = 0; i < numEntries; i++) { if (++j > lefwTableLen) { fprintf(lefwFile, "\n "); j = 1; } fprintf(lefwFile, "%.11g ", *entries++); } fprintf(lefwFile, ";\n"); } lefwState = lefwOldState; // restore the previous state lefwLines++; return LEFW_OK; }
O0
cpp
LefDefParser::lefwLayerACTableEntries(int, double*): subq $0x18, %rsp movl %edi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movl $0x0, (%rsp) leaq 0x1ef15(%rip), %rax # 0x32e00 cmpq $0x0, (%rax) jne 0x13efe movl $0x1, 0x14(%rsp) jmp 0x140ca leaq 0x1f14b(%rip), %rax # 0x33050 cmpl $0x1d, (%rax) je 0x13f17 movl $0x2, 0x14(%rsp) jmp 0x140ca cmpl $0x0, 0x10(%rsp) jg 0x13f2b movl $0x3, 0x14(%rsp) jmp 0x140ca cmpl $0x0, 0x1f1ba(%rip) # 0x330ec je 0x13fec leaq 0x1eec1(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x16aff(%rip), %rsi # 0x2aa48 movb $0x0, %al callq 0x289b0 movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax cmpl 0x10(%rsp), %eax jge 0x13fcf movl (%rsp), %eax addl $0x1, %eax movl %eax, (%rsp) leaq 0x1f16e(%rip), %rcx # 0x330e0 cmpl (%rcx), %eax jle 0x13f95 leaq 0x1ee83(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x16ad3(%rip), %rsi # 0x2aa5a movb $0x0, %al callq 0x289b0 movl $0x1, (%rsp) leaq 0x1ee64(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx movq %rcx, 0x8(%rsp) movsd (%rax), %xmm0 leaq 0x168df(%rip), %rsi # 0x2a89a movb $0x1, %al callq 0x289b0 movl 0x4(%rsp), %eax addl $0x1, %eax movl %eax, 0x4(%rsp) jmp 0x13f58 leaq 0x1ee2a(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x15f74(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x289b0 jmp 0x1409b leaq 0x1ee0d(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x16a4b(%rip), %rsi # 0x2aa48 movb $0x0, %al callq 0x1100 movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax cmpl 0x10(%rsp), %eax jge 0x14083 movl (%rsp), %eax addl $0x1, %eax movl %eax, (%rsp) leaq 0x1f0ba(%rip), %rcx # 0x330e0 cmpl (%rcx), %eax jle 0x14049 leaq 0x1edcf(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x16a1f(%rip), %rsi # 0x2aa5a movb $0x0, %al callq 0x1100 movl $0x1, (%rsp) leaq 0x1edb0(%rip), %rax # 0x32e00 movq (%rax), %rdi movq 0x8(%rsp), %rax movq %rax, %rcx addq $0x8, %rcx movq %rcx, 0x8(%rsp) movsd (%rax), %xmm0 leaq 0x1682b(%rip), %rsi # 0x2a89a movb $0x1, %al callq 0x1100 movl 0x4(%rsp), %eax addl $0x1, %eax movl %eax, 0x4(%rsp) jmp 0x1400c leaq 0x1ed76(%rip), %rax # 0x32e00 movq (%rax), %rdi leaq 0x15ec0(%rip), %rsi # 0x29f54 movb $0x0, %al callq 0x1100 leaq 0x1f03a(%rip), %rax # 0x330dc movl (%rax), %ecx leaq 0x1efa5(%rip), %rax # 0x33050 movl %ecx, (%rax) leaq 0x1ef98(%rip), %rax # 0x3304c movl (%rax), %ecx addl $0x1, %ecx leaq 0x1ef8c(%rip), %rax # 0x3304c movl %ecx, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN12LefDefParser23lefwLayerACTableEntriesEiPd: sub rsp, 18h mov [rsp+18h+var_8], edi mov [rsp+18h+var_10], rsi mov [rsp+18h+var_18], 0 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_13EFE mov [rsp+18h+var_4], 1 jmp loc_140CA loc_13EFE: lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 1Dh jz short loc_13F17 mov [rsp+18h+var_4], 2 jmp loc_140CA loc_13F17: cmp [rsp+18h+var_8], 0 jg short loc_13F2B mov [rsp+18h+var_4], 3 jmp loc_140CA loc_13F2B: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz loc_13FEC lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aTableentries; " TABLEENTRIES\n " mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov [rsp+18h+var_14], 0 loc_13F58: mov eax, [rsp+18h+var_14] cmp eax, [rsp+18h+var_8] jge short loc_13FCF mov eax, [rsp+18h+var_18] add eax, 1 mov [rsp+18h+var_18], eax lea rcx, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen cmp eax, [rcx] jle short loc_13F95 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aTableentries+12h; "\n " mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov [rsp+18h+var_18], 1 loc_13F95: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rcx, rax add rcx, 8 mov [rsp+18h+var_10], rcx movsd xmm0, qword ptr [rax] lea rsi, aMinenclosedare+13h; "%.11g " mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov eax, [rsp+18h+var_14] add eax, 1 mov [rsp+18h+var_14], eax jmp short loc_13F58 loc_13FCF: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp loc_1409B loc_13FEC: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aTableentries; " TABLEENTRIES\n " mov al, 0 call _fprintf mov [rsp+18h+var_14], 0 loc_1400C: mov eax, [rsp+18h+var_14] cmp eax, [rsp+18h+var_8] jge short loc_14083 mov eax, [rsp+18h+var_18] add eax, 1 mov [rsp+18h+var_18], eax lea rcx, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen cmp eax, [rcx] jle short loc_14049 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aTableentries+12h; "\n " mov al, 0 call _fprintf mov [rsp+18h+var_18], 1 loc_14049: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rcx, rax add rcx, 8 mov [rsp+18h+var_10], rcx movsd xmm0, qword ptr [rax] lea rsi, aMinenclosedare+13h; "%.11g " mov al, 1 call _fprintf mov eax, [rsp+18h+var_14] add eax, 1 mov [rsp+18h+var_14], eax jmp short loc_1400C loc_14083: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] lea rsi, aDividercharS+11h; ";\n" mov al, 0 call _fprintf loc_1409B: lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState mov ecx, [rax] lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov [rax], ecx lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx mov [rsp+18h+var_4], 0 loc_140CA: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwLayerACTableEntries( LefDefParser *this, double *a2, double *a3, int a4, int a5, int a6) { int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d double *v10; // rax int v12; // [rsp+0h] [rbp-18h] int i; // [rsp+4h] [rbp-14h] int j; // [rsp+4h] [rbp-14h] v12 = 0; if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwState == 29 ) { if ( (int)this > 0 ) { if ( LefDefParser::lefwWriteEncrypt ) { LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" TABLEENTRIES\n ", (_DWORD)a3, a4, a5, a6); for ( i = 0; i < (int)this; ++i ) { if ( ++v12 > LefDefParser::lefwTableLen ) { LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)"\n ", v6, (unsigned int)&LefDefParser::lefwTableLen, v8, v9); v12 = 1; } LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g ", v6, (_DWORD)++a2, v8, v9); } LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v6, v7, v8, v9); } else { fprintf(*(_QWORD *)&LefDefParser::lefwFile, " TABLEENTRIES\n "); for ( j = 0; j < (int)this; ++j ) { if ( ++v12 > LefDefParser::lefwTableLen ) { fprintf(*(_QWORD *)&LefDefParser::lefwFile, "\n "); v12 = 1; } v10 = a2++; fprintf(*(_QWORD *)&LefDefParser::lefwFile, "%.11g ", *v10); } fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n"); } LefDefParser::lefwState = LefDefParser::lefwOldState; ++LefDefParser::lefwLines; return 0; } else { return 3; } } else { return 2; } } else { return 1; } }
lefwLayerACTableEntries: SUB RSP,0x18 MOV dword ptr [RSP + 0x10],EDI MOV qword ptr [RSP + 0x8],RSI MOV dword ptr [RSP],0x0 LEA RAX,[0x132e00] CMP qword ptr [RAX],0x0 JNZ 0x00113efe MOV dword ptr [RSP + 0x14],0x1 JMP 0x001140ca LAB_00113efe: LEA RAX,[0x133050] CMP dword ptr [RAX],0x1d JZ 0x00113f17 MOV dword ptr [RSP + 0x14],0x2 JMP 0x001140ca LAB_00113f17: CMP dword ptr [RSP + 0x10],0x0 JG 0x00113f2b MOV dword ptr [RSP + 0x14],0x3 JMP 0x001140ca LAB_00113f2b: CMP dword ptr [0x001330ec],0x0 JZ 0x00113fec LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa48] MOV AL,0x0 CALL 0x001289b0 MOV dword ptr [RSP + 0x4],0x0 LAB_00113f58: MOV EAX,dword ptr [RSP + 0x4] CMP EAX,dword ptr [RSP + 0x10] JGE 0x00113fcf MOV EAX,dword ptr [RSP] ADD EAX,0x1 MOV dword ptr [RSP],EAX LEA RCX,[0x1330e0] CMP EAX,dword ptr [RCX] JLE 0x00113f95 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa5a] MOV AL,0x0 CALL 0x001289b0 MOV dword ptr [RSP],0x1 LAB_00113f95: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x8 MOV qword ptr [RSP + 0x8],RCX MOVSD XMM0,qword ptr [RAX] LEA RSI,[0x12a89a] MOV AL,0x1 CALL 0x001289b0 MOV EAX,dword ptr [RSP + 0x4] ADD EAX,0x1 MOV dword ptr [RSP + 0x4],EAX JMP 0x00113f58 LAB_00113fcf: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x001289b0 JMP 0x0011409b LAB_00113fec: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa48] MOV AL,0x0 CALL 0x00101100 MOV dword ptr [RSP + 0x4],0x0 LAB_0011400c: MOV EAX,dword ptr [RSP + 0x4] CMP EAX,dword ptr [RSP + 0x10] JGE 0x00114083 MOV EAX,dword ptr [RSP] ADD EAX,0x1 MOV dword ptr [RSP],EAX LEA RCX,[0x1330e0] CMP EAX,dword ptr [RCX] JLE 0x00114049 LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x12aa5a] MOV AL,0x0 CALL 0x00101100 MOV dword ptr [RSP],0x1 LAB_00114049: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RCX,RAX ADD RCX,0x8 MOV qword ptr [RSP + 0x8],RCX MOVSD XMM0,qword ptr [RAX] LEA RSI,[0x12a89a] MOV AL,0x1 CALL 0x00101100 MOV EAX,dword ptr [RSP + 0x4] ADD EAX,0x1 MOV dword ptr [RSP + 0x4],EAX JMP 0x0011400c LAB_00114083: LEA RAX,[0x132e00] MOV RDI,qword ptr [RAX] LEA RSI,[0x129f54] MOV AL,0x0 CALL 0x00101100 LAB_0011409b: LEA RAX,[0x1330dc] MOV ECX,dword ptr [RAX] LEA RAX,[0x133050] MOV dword ptr [RAX],ECX LEA RAX,[0x13304c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x13304c] MOV dword ptr [RAX],ECX MOV dword ptr [RSP + 0x14],0x0 LAB_001140ca: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwLayerACTableEntries(int, double*) */ int4 LefDefParser::lefwLayerACTableEntries(int param_1,double *param_2) { int local_18; int local_14; double *local_10; int4 local_4; local_18 = 0; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwState == 0x1d) { if (param_1 < 1) { local_4 = 3; } else { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," TABLEENTRIES\n "); local_10 = param_2; for (local_14 = 0; local_14 < param_1; local_14 = local_14 + 1) { local_18 = local_18 + 1; if (lefwTableLen < local_18) { fprintf(lefwFile,"\n "); local_18 = 1; } fprintf(lefwFile,"%.11g ",*local_10); local_10 = local_10 + 1; } fprintf(lefwFile,";\n"); } else { encPrint(lefwFile," TABLEENTRIES\n "); local_10 = param_2; for (local_14 = 0; local_14 < param_1; local_14 = local_14 + 1) { local_18 = local_18 + 1; if (lefwTableLen < local_18) { encPrint(lefwFile,"\n "); local_18 = 1; } encPrint(lefwFile,"%.11g ",*local_10); local_10 = local_10 + 1; } encPrint(lefwFile,";\n"); } lefwState = lefwOldState; lefwLines = lefwLines + 1; local_4 = 0; } } else { local_4 = 2; } return local_4; }
7,021
LefDefParser::lefwLayerACTableEntries(int, double*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwLayerACTableEntries(int numEntries, double *entries) { int i; int j = 0; if (!lefwFile) return LEFW_UNINITIALIZED; if (lefwState != LEFW_LAYERACCURRENT) return LEFW_BAD_ORDER; if (numEntries <= 0) return LEFW_BAD_DATA; // tableEntries are required if (lefwWriteEncrypt) { encPrint(lefwFile, (char*) " TABLEENTRIES\n "); for (i = 0; i < numEntries; i++) { if (++j > lefwTableLen) { encPrint(lefwFile, (char*) "\n "); j = 1; } encPrint(lefwFile, (char*) "%.11g ", *entries++); } encPrint(lefwFile, (char*) ";\n"); } else { fprintf(lefwFile, " TABLEENTRIES\n "); for (i = 0; i < numEntries; i++) { if (++j > lefwTableLen) { fprintf(lefwFile, "\n "); j = 1; } fprintf(lefwFile, "%.11g ", *entries++); } fprintf(lefwFile, ";\n"); } lefwState = lefwOldState; // restore the previous state lefwLines++; return LEFW_OK; }
O3
cpp
LefDefParser::lefwLayerACTableEntries(int, double*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax leaq 0x19057(%rip), %r13 # 0x24e00 movq (%r13), %rcx testq %rcx, %rcx je 0xbe5e leaq 0x19293(%rip), %rdx # 0x25050 movl $0x2, %eax cmpl $0x1d, (%rdx) jne 0xbf1b movl %edi, %ebp testl %edi, %edi jle 0xbe68 movq %rsi, %rbx cmpb $0x1, 0x1930d(%rip) # 0x250ec jne 0xbe72 leaq 0xef18(%rip), %rsi # 0x1ad04 movq %rcx, %rdi xorl %eax, %eax callq 0x18c35 movl %ebp, %r12d leaq 0xed56(%rip), %r14 # 0x1ab56 xorl %r15d, %r15d xorl %ebp, %ebp leaq 0x192d4(%rip), %rax # 0x250e0 cmpl (%rax), %ebp jge 0xbe14 incl %ebp jmp 0xbe2b movq (%r13), %rdi leaq 0xeef7(%rip), %rsi # 0x1ad16 xorl %eax, %eax callq 0x18c35 movl $0x1, %ebp movq (%r13), %rdi movsd (%rbx,%r15,8), %xmm0 movq %r14, %rsi movb $0x1, %al callq 0x18c35 incq %r15 cmpl %r15d, %r12d jne 0xbe05 movq (%r13), %rdi leaq 0xe3be(%rip), %rsi # 0x1a210 xorl %eax, %eax callq 0x18c35 jmp 0xbefe movl $0x1, %eax jmp 0xbf1b movl $0x3, %eax jmp 0xbf1b leaq 0xee8b(%rip), %rdi # 0x1ad04 movl $0x1b, %esi movl $0x1, %edx callq 0x1110 movl %ebp, %ebp xorl %r12d, %r12d leaq 0xecc2(%rip), %r14 # 0x1ab56 xorl %r15d, %r15d leaq 0x19242(%rip), %rax # 0x250e0 cmpl (%rax), %r15d jge 0xbea8 incl %r15d jmp 0xbec8 movq (%r13), %rcx movl $0x9, %esi movl $0x1, %edx leaq 0xee59(%rip), %rdi # 0x1ad16 callq 0x1110 movl $0x1, %r15d movq (%r13), %rdi movsd (%rbx,%r12,8), %xmm0 movq %r14, %rsi movb $0x1, %al callq 0x10f0 incq %r12 cmpl %r12d, %ebp jne 0xbe97 movq (%r13), %rcx leaq 0xe321(%rip), %rdi # 0x1a210 movl $0x2, %esi movl $0x1, %edx callq 0x1110 leaq 0x191d7(%rip), %rax # 0x250dc movl (%rax), %eax leaq 0x19142(%rip), %rcx # 0x25050 movl %eax, (%rcx) leaq 0x19135(%rip), %rax # 0x2504c incl (%rax) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN12LefDefParser23lefwLayerACTableEntriesEiPd: push rbp push r15 push r14 push r13 push r12 push rbx push rax lea r13, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [r13+0] test rcx, rcx jz loc_BE5E lea rdx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov eax, 2 cmp dword ptr [rdx], 1Dh jnz loc_BF1B mov ebp, edi test edi, edi jle loc_BE68 mov rbx, rsi cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz loc_BE72 lea rsi, aTableentries; " TABLEENTRIES\n " mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov r12d, ebp lea r14, aMinenclosedare+13h; "%.11g " xor r15d, r15d xor ebp, ebp loc_BE05: lea rax, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen cmp ebp, [rax] jge short loc_BE14 inc ebp jmp short loc_BE2B loc_BE14: mov rdi, [r13+0] lea rsi, aTableentries+12h; "\n " xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) mov ebp, 1 loc_BE2B: mov rdi, [r13+0] movsd xmm0, qword ptr [rbx+r15*8] mov rsi, r14 mov al, 1 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) inc r15 cmp r12d, r15d jnz short loc_BE05 mov rdi, [r13+0] lea rsi, aDividercharS+11h; ";\n" xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp loc_BEFE loc_BE5E: mov eax, 1 jmp loc_BF1B loc_BE68: mov eax, 3 jmp loc_BF1B loc_BE72: lea rdi, aTableentries; " TABLEENTRIES\n " mov esi, 1Bh mov edx, 1 call _fwrite mov ebp, ebp xor r12d, r12d lea r14, aMinenclosedare+13h; "%.11g " xor r15d, r15d loc_BE97: lea rax, _ZN12LefDefParser12lefwTableLenE; LefDefParser::lefwTableLen cmp r15d, [rax] jge short loc_BEA8 inc r15d jmp short loc_BEC8 loc_BEA8: mov rcx, [r13+0] mov esi, 9 mov edx, 1 lea rdi, aTableentries+12h; "\n " call _fwrite mov r15d, 1 loc_BEC8: mov rdi, [r13+0] movsd xmm0, qword ptr [rbx+r12*8] mov rsi, r14 mov al, 1 call _fprintf inc r12 cmp ebp, r12d jnz short loc_BE97 mov rcx, [r13+0] lea rdi, aDividercharS+11h; ";\n" mov esi, 2 mov edx, 1 call _fwrite loc_BEFE: lea rax, _ZN12LefDefParser12lefwOldStateE; LefDefParser::lefwOldState mov eax, [rax] lea rcx, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov [rcx], eax lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] xor eax, eax loc_BF1B: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long LefDefParser::lefwLayerACTableEntries( LefDefParser *this, long long a2, double *a3, long long a4, int a5, int a6) { long long result; // rax int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r15 int v12; // ebp long long v13; // r12 int v14; // r15d if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwState == 29 ) { if ( (int)this <= 0 ) { return 3LL; } else { if ( LefDefParser::lefwWriteEncrypt == 1 ) { LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" TABLEENTRIES\n ", (unsigned int)&LefDefParser::lefwState, LefDefParser::lefwFile, a5, a6); v11 = 0LL; v12 = 0; do { if ( v12 >= LefDefParser::lefwTableLen ) { LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"\n ", v7, v8, v9, v10); v12 = 1; } else { ++v12; } LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"%.11g ", v7, v8, v9, v10); ++v11; } while ( (_DWORD)this != (_DWORD)v11 ); LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v7, v8, v9, v10); } else { fwrite(" TABLEENTRIES\n ", 27LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); v13 = 0LL; v14 = 0; do { if ( v14 >= LefDefParser::lefwTableLen ) { fwrite("\n ", 9LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); v14 = 1; } else { ++v14; } fprintf(*(_QWORD *)&LefDefParser::lefwFile, "%.11g ", *(double *)(a2 + 8 * v13++)); } while ( (_DWORD)this != (_DWORD)v13 ); fwrite(";\n", 2LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); } LefDefParser::lefwState = LefDefParser::lefwOldState; ++LefDefParser::lefwLines; return 0LL; } } return result; }
lefwLayerACTableEntries: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX LEA R13,[0x124e00] MOV RCX,qword ptr [R13] TEST RCX,RCX JZ 0x0010be5e LEA RDX,[0x125050] MOV EAX,0x2 CMP dword ptr [RDX],0x1d JNZ 0x0010bf1b MOV EBP,EDI TEST EDI,EDI JLE 0x0010be68 MOV RBX,RSI CMP byte ptr [0x001250ec],0x1 JNZ 0x0010be72 LEA RSI,[0x11ad04] MOV RDI,RCX XOR EAX,EAX CALL 0x00118c35 MOV R12D,EBP LEA R14,[0x11ab56] XOR R15D,R15D XOR EBP,EBP LAB_0010be05: LEA RAX,[0x1250e0] CMP EBP,dword ptr [RAX] JGE 0x0010be14 INC EBP JMP 0x0010be2b LAB_0010be14: MOV RDI,qword ptr [R13] LEA RSI,[0x11ad16] XOR EAX,EAX CALL 0x00118c35 MOV EBP,0x1 LAB_0010be2b: MOV RDI,qword ptr [R13] MOVSD XMM0,qword ptr [RBX + R15*0x8] MOV RSI,R14 MOV AL,0x1 CALL 0x00118c35 INC R15 CMP R12D,R15D JNZ 0x0010be05 MOV RDI,qword ptr [R13] LEA RSI,[0x11a210] XOR EAX,EAX CALL 0x00118c35 JMP 0x0010befe LAB_0010be5e: MOV EAX,0x1 JMP 0x0010bf1b LAB_0010be68: MOV EAX,0x3 JMP 0x0010bf1b LAB_0010be72: LEA RDI,[0x11ad04] MOV ESI,0x1b MOV EDX,0x1 CALL 0x00101110 MOV EBP,EBP XOR R12D,R12D LEA R14,[0x11ab56] XOR R15D,R15D LAB_0010be97: LEA RAX,[0x1250e0] CMP R15D,dword ptr [RAX] JGE 0x0010bea8 INC R15D JMP 0x0010bec8 LAB_0010bea8: MOV RCX,qword ptr [R13] MOV ESI,0x9 MOV EDX,0x1 LEA RDI,[0x11ad16] CALL 0x00101110 MOV R15D,0x1 LAB_0010bec8: MOV RDI,qword ptr [R13] MOVSD XMM0,qword ptr [RBX + R12*0x8] MOV RSI,R14 MOV AL,0x1 CALL 0x001010f0 INC R12 CMP EBP,R12D JNZ 0x0010be97 MOV RCX,qword ptr [R13] LEA RDI,[0x11a210] MOV ESI,0x2 MOV EDX,0x1 CALL 0x00101110 LAB_0010befe: LEA RAX,[0x1250dc] MOV EAX,dword ptr [RAX] LEA RCX,[0x125050] MOV dword ptr [RCX],EAX LEA RAX,[0x12504c] INC dword ptr [RAX] XOR EAX,EAX LAB_0010bf1b: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* LefDefParser::lefwLayerACTableEntries(int, double*) */ int8 LefDefParser::lefwLayerACTableEntries(int param_1,double *param_2) { int8 uVar1; int iVar2; long lVar3; if (lefwFile == (_IO_FILE *)0x0) { uVar1 = 1; } else { uVar1 = 2; if (lefwState == 0x1d) { if (param_1 < 1) { uVar1 = 3; } else { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," TABLEENTRIES\n "); lVar3 = 0; iVar2 = 0; do { if (iVar2 < lefwTableLen) { iVar2 = iVar2 + 1; } else { encPrint(lefwFile,"\n "); iVar2 = 1; } encPrint(lefwFile,"%.11g ",param_2[lVar3]); lVar3 = lVar3 + 1; } while (param_1 != (int)lVar3); encPrint(lefwFile,";\n"); } else { fwrite(" TABLEENTRIES\n ",0x1b,1,lefwFile); lVar3 = 0; iVar2 = 0; do { if (iVar2 < lefwTableLen) { iVar2 = iVar2 + 1; } else { fwrite("\n ",9,1,lefwFile); iVar2 = 1; } fprintf(lefwFile,"%.11g ",param_2[lVar3]); lVar3 = lVar3 + 1; } while (param_1 != (int)lVar3); fwrite(";\n",2,1,lefwFile); } lefwState = lefwOldState; lefwLines = lefwLines + 1; uVar1 = 0; } } } return uVar1; }
7,022
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; }
O0
c
my_once_free: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp leaq 0x35b471(%rip), %rax # 0x38d340 movq (%rax), %rax movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x31efb movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x8(%rbp) movq -0x10(%rbp), %rdi callq 0x24370 jmp 0x31ed6 leaq 0x35b43e(%rip), %rax # 0x38d340 movq $0x0, (%rax) jmp 0x31f0b addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
my_once_free: push rbp mov rbp, rsp sub rsp, 10h lea rax, my_once_root_block mov rax, [rax] mov [rbp+var_8], rax loc_31ED6: cmp [rbp+var_8], 0 jz short loc_31EFB mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_8], rax mov rdi, [rbp+var_10] call _free jmp short loc_31ED6 loc_31EFB: lea rax, my_once_root_block mov qword ptr [rax], 0 jmp short $+2 loc_31F0B: add rsp, 10h pop rbp retn
_QWORD *my_once_free() { _QWORD *result; // rax _QWORD *v1; // [rsp+0h] [rbp-10h] _QWORD *v2; // [rsp+8h] [rbp-8h] v2 = (_QWORD *)my_once_root_block; while ( v2 ) { v1 = v2; v2 = (_QWORD *)*v2; free(v1); } result = &my_once_root_block; my_once_root_block = 0LL; return result; }
my_once_free: PUSH RBP MOV RBP,RSP SUB RSP,0x10 LEA RAX,[0x48d340] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x8],RAX LAB_00131ed6: CMP qword ptr [RBP + -0x8],0x0 JZ 0x00131efb MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x8],RAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00124370 JMP 0x00131ed6 LAB_00131efb: LEA RAX,[0x48d340] MOV qword ptr [RAX],0x0 JMP 0x00131f0b LAB_00131f0b: ADD RSP,0x10 POP RBP RET
void my_once_free(void) { int8 *puVar1; int8 local_10; local_10 = my_once_root_block; while (local_10 != (int8 *)0x0) { puVar1 = (int8 *)*local_10; free(local_10); local_10 = puVar1; } my_once_root_block = (int8 *)0x0; return; }
7,023
SchemaConverter::_not_strings(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&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
std::string _not_strings(const std::vector<std::string> & strings) { struct TrieNode { std::map<char, TrieNode> children; bool is_end_of_string; TrieNode() : is_end_of_string(false) {} void insert(const std::string & string) { auto node = this; for (char c : string) { node = &node->children[c]; } node->is_end_of_string = true; } }; TrieNode trie; for (const auto & s : strings) { trie.insert(s); } std::string char_rule = _add_primitive("char", PRIMITIVE_RULES.at("char")); std::ostringstream out; out << "[\"] ( "; std::function<void(const TrieNode &)> visit = [&](const TrieNode & node) { std::ostringstream rejects; auto first = true; for (const auto & kv : node.children) { rejects << kv.first; if (first) { first = false; } else { out << " | "; } out << "[" << kv.first << "]"; if (!kv.second.children.empty()) { out << " ("; visit(kv.second); out << ")"; } else if (kv.second.is_end_of_string) { out << " " << char_rule << "+"; } } if (!node.children.empty()) { if (!first) { out << " | "; } out << "[^\"" << rejects.str() << "] " << char_rule << "*"; } }; visit(trie); out << " )"; if (!trie.is_end_of_string) { out << "?"; } out << " [\"] space"; return out.str(); }
O1
cpp
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movq %rsi, %r12 movq %rdi, %rbx leaq 0x50(%rsp), %rax movl $0x0, (%rax) xorl %ecx, %ecx movq %rcx, 0x8(%rax) movq %rax, 0x10(%rax) movq %rax, 0x18(%rax) movq %rcx, 0x20(%rax) movb $0x0, 0x28(%rax) movq (%rdx), %r14 movq 0x8(%rdx), %r13 cmpq %r13, %r14 je 0xc8d65 leaq 0x48(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0xc94e0 addq $0x20, %r14 cmpq %r13, %r14 jne 0xc8d51 leaq 0x90(%rsp), %r13 movq %r13, -0x10(%r13) movl $0x72616863, %eax # imm = 0x72616863 movl %eax, (%r13) movl $0x4, %ecx movq %rcx, -0x8(%r13) xorl %edx, %edx movb %dl, 0x4(%r13) leaq 0x10(%rsp), %rbp movq %rbp, -0x10(%rbp) movl %eax, (%rbp) movq %rcx, -0x8(%rbp) movb %dl, 0x4(%rbp) leaq 0x67515(%rip), %rdi # 0x1302b8 movq %rsp, %r14 movq %r14, %rsi callq 0xcd36a testq %rax, %rax je 0xc8f50 addq $0x28, %rax leaq 0x28(%rsp), %r15 leaq 0x80(%rsp), %rdx movq %r15, %rdi movq %r12, %rsi movq %rax, %rcx callq 0xc7a58 movq (%rsp), %rdi cmpq %rbp, %rdi je 0xc8dec movq 0x10(%rsp), %rsi incq %rsi callq 0x1b900 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xc8e09 movq 0x90(%rsp), %rsi incq %rsi callq 0x1b900 leaq 0x80(%rsp), %rdi callq 0x1bbb0 leaq 0x2f35f(%rip), %rsi # 0xf817c leaq 0x80(%rsp), %r12 movl $0x6, %edx movq %r12, %rdi callq 0x1ba20 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movaps %xmm0, (%rsp) movl $0x18, %edi callq 0x1b8d0 movq %r12, (%rax) movq %r14, 0x8(%rax) movq %r15, 0x10(%rax) movq %rax, (%rsp) leaq 0x96c(%rip), %rcx # 0xc97ca movq %rcx, 0x18(%rsp) leaq 0x968(%rip), %rcx # 0xc97d2 movq %rcx, 0x10(%rsp) leaq 0x48(%rsp), %rsi movq %rax, %rdi callq 0xc97fa leaq 0x2f00f(%rip), %rsi # 0xf7e92 leaq 0x80(%rsp), %rdi movl $0x2, %edx callq 0x1ba20 cmpb $0x0, 0x78(%rsp) jne 0xc8eb5 leaq 0x2f11d(%rip), %rsi # 0xf7fc0 leaq 0x80(%rsp), %rdi movl $0x1, %edx callq 0x1ba20 leaq 0x2f2c7(%rip), %rsi # 0xf8183 leaq 0x80(%rsp), %rdi movl $0xa, %edx callq 0x1ba20 leaq 0x88(%rsp), %rsi movq %rbx, %rdi callq 0x1bdd0 movq 0x10(%rsp), %rax testq %rax, %rax je 0xc8ef5 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x6607c(%rip), %rsi # 0x12ef78 leaq 0x80(%rsp), %rdi callq 0x1b4b0 leaq 0xf0(%rsp), %rdi callq 0x1b2b0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc8f31 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b900 leaq 0x48(%rsp), %rdi callq 0xc9afc movq %rbx, %rax addq $0x1f8, %rsp # imm = 0x1F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x2f1d6(%rip), %rdi # 0xf812d callq 0x1bcd0 jmp 0xc8ff5 jmp 0xc8f63 movq %rax, %rbx jmp 0xc8fb7 movq %rax, %rbx jmp 0xc8fd8 movq %rax, %rbx movq (%rsp), %rdi cmpq %rbp, %rdi je 0xc8f86 movq 0x10(%rsp), %rsi incq %rsi callq 0x1b900 movq 0x80(%rsp), %rdi cmpq %r13, %rdi je 0xc9000 movq 0x90(%rsp), %rsi jmp 0xc8feb movq %rax, %rbx movq 0x10(%rsp), %rax testq %rax, %rax je 0xc8fb7 movq %rsp, %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq 0x65fba(%rip), %rsi # 0x12ef78 leaq 0x80(%rsp), %rdi callq 0x1b4b0 leaq 0xf0(%rsp), %rdi callq 0x1b2b0 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xc9000 movq 0x38(%rsp), %rsi incq %rsi callq 0x1b900 jmp 0xc9000 movq %rax, %rdi callq 0x23587 movq %rax, %rbx leaq 0x48(%rsp), %rdi callq 0xc9afc movq %rbx, %rdi callq 0x1bfc0
_ZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1F8h mov r12, rsi mov rbx, rdi lea rax, [rsp+228h+var_1D8] mov dword ptr [rax], 0 xor ecx, ecx mov [rax+8], rcx mov [rax+10h], rax mov [rax+18h], rax mov [rax+20h], rcx mov byte ptr [rax+28h], 0 mov r14, [rdx] mov r13, [rdx+8] cmp r14, r13 jz short loc_C8D65 lea r15, [rsp+228h+var_1E0] loc_C8D51: mov rdi, r15 mov rsi, r14 call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEN8TrieNode6insertERKS6_; SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(std::string const&) add r14, 20h ; ' ' cmp r14, r13 jnz short loc_C8D51 loc_C8D65: lea r13, [rsp+228h+var_198] mov [r13-10h], r13 mov eax, 72616863h mov [r13+0], eax mov ecx, 4 mov [r13-8], rcx xor edx, edx mov [r13+4], dl lea rbp, [rsp+228h+var_218] mov [rbp-10h], rbp mov [rbp+0], eax mov [rbp-8], rcx mov [rbp+4], dl lea rdi, _Z15PRIMITIVE_RULESB5cxx11; PRIMITIVE_RULES mov r14, rsp mov rsi, r14 call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_11BuiltinRuleESaIS9_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE4findERS7_; std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find(std::string const&) test rax, rax jz loc_C8F50 add rax, 28h ; '(' lea r15, [rsp+228h+var_200] lea rdx, [rsp+228h+var_1A8]; int mov rdi, r15; int mov rsi, r12; int mov rcx, rax; int call _ZN15SchemaConverter14_add_primitiveERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERK11BuiltinRule; SchemaConverter::_add_primitive(std::string const&,BuiltinRule const&) mov rdi, [rsp+228h+var_228]; void * cmp rdi, rbp jz short loc_C8DEC mov rsi, qword ptr [rsp+228h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C8DEC: mov rdi, [rsp+228h+var_1A8]; void * cmp rdi, r13 jz short loc_C8E09 mov rsi, [rsp+228h+var_198] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C8E09: lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) lea rsi, asc_F817C; "[\"] ( " lea r12, [rsp+228h+var_1A8] mov edx, 6 mov rdi, r12 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) xorps xmm0, xmm0 movaps [rsp+228h+var_218], xmm0 movaps xmmword ptr [rsp+228h+var_228], xmm0 mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r12 mov [rax+8], r14 mov [rax+10h], r15 mov [rsp+228h+var_228], rax lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E9_M_invokeERKSt9_Any_dataSE_; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke(std::_Any_data const&,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) mov qword ptr [rsp+228h+var_218+8], rcx lea rcx, _ZNSt17_Function_handlerIFvRKZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeEZNS0_12_not_stringsESB_EUlSE_E_E10_M_managerERSt9_Any_dataRKSI_St18_Manager_operation; std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov qword ptr [rsp+228h+var_218], rcx lea rsi, [rsp+228h+var_1E0] mov rdi, rax call _ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEENKUlRKZNS_12_not_stringsESA_E8TrieNodeE_clESD_; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&) lea rsi, a09401910201912+50h; " )" lea rdi, [rsp+228h+var_1A8] mov edx, 2 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) cmp [rsp+228h+var_1B0], 0 jnz short loc_C8EB5 lea rsi, asc_F7FBD+3; "?" lea rdi, [rsp+228h+var_1A8] mov edx, 1 call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) loc_C8EB5: lea rsi, aSpace_6; " [\"] space" lea rdi, [rsp+228h+var_1A8] mov edx, 0Ah call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rsi, [rsp+228h+var_1A0] mov rdi, rbx call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov rax, qword ptr [rsp+228h+var_218] test rax, rax jz short loc_C8EF5 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_C8EF5: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+228h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C8F31 mov rsi, [rsp+228h+var_1F0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C8F31: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rax, rbx add rsp, 1F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_C8F50: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*) jmp loc_C8FF5 jmp short $+2 loc_C8F63: mov rbx, rax jmp short loc_C8FB7 mov rbx, rax jmp short loc_C8FD8 mov rbx, rax mov rdi, [rsp+228h+var_228]; void * cmp rdi, rbp jz short loc_C8F86 mov rsi, qword ptr [rsp+228h+var_218] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_C8F86: mov rdi, [rsp+228h+var_1A8] cmp rdi, r13 jz short loc_C9000 mov rsi, [rsp+228h+var_198] jmp short loc_C8FEB mov rbx, rax mov rax, qword ptr [rsp+228h+var_218] test rax, rax jz short loc_C8FB7 mov rdi, rsp mov rsi, rdi mov edx, 3 call rax loc_C8FB7: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+228h+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+228h+var_138]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() loc_C8FD8: lea rax, [rsp+228h+var_1F0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_C9000 mov rsi, [rsp+228h+var_1F0] loc_C8FEB: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_C9000 loc_C8FF5: mov rdi, rax call __clang_call_terminate mov rbx, rax loc_C9000: lea rdi, [rsp+228h+var_1E0] call _ZNSt8_Rb_treeIcSt4pairIKcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS9_EEE8TrieNodeESt10_Select1stISF_ESt4lessIcESaISF_EED2Ev; std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree() mov rdi, rbx call __Unwind_Resume
long long SchemaConverter::_not_strings(long long a1, long long a2, long long *a3) { long long v3; // r14 long long v4; // r13 long long v5; // rax void ***v6; // rax void *v8[2]; // [rsp+0h] [rbp-228h] BYREF __int128 v9; // [rsp+10h] [rbp-218h] BYREF int v10[4]; // [rsp+28h] [rbp-200h] BYREF long long v11; // [rsp+38h] [rbp-1F0h] BYREF _BYTE v12[8]; // [rsp+48h] [rbp-1E0h] BYREF int v13; // [rsp+50h] [rbp-1D8h] BYREF long long v14; // [rsp+58h] [rbp-1D0h] int *v15; // [rsp+60h] [rbp-1C8h] int *v16; // [rsp+68h] [rbp-1C0h] long long v17; // [rsp+70h] [rbp-1B8h] char v18; // [rsp+78h] [rbp-1B0h] void *v19; // [rsp+80h] [rbp-1A8h] BYREF long long v20; // [rsp+88h] [rbp-1A0h] BYREF char v21[96]; // [rsp+90h] [rbp-198h] BYREF _BYTE v22[312]; // [rsp+F0h] [rbp-138h] BYREF v13 = 0; v14 = 0LL; v15 = &v13; v16 = &v13; v17 = 0LL; v18 = 0; v3 = *a3; v4 = a3[1]; if ( *a3 != v4 ) { do { SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert(v12, v3); v3 += 32LL; } while ( v3 != v4 ); } v19 = v21; strcpy(v21, "char"); v20 = 4LL; v8[0] = &v9; strcpy((char *)&v9, "char"); v8[1] = &byte_4; v5 = std::_Hashtable<std::string,std::pair<std::string const,BuiltinRule>,std::allocator<std::pair<std::string const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::find( PRIMITIVE_RULES[abi:cxx11], v8); if ( !v5 ) std::__throw_out_of_range("_Map_base::at"); SchemaConverter::_add_primitive((long long)v10, a2, (long long *)&v19, (_QWORD *)(v5 + 40)); if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); if ( v19 != v21 ) operator delete(v19, *(_QWORD *)v21 + 1LL); std::ostringstream::basic_ostringstream(&v19); std::__ostream_insert<char,std::char_traits<char>>(&v19, "[\"] ( ", 6LL); v9 = 0LL; *(_OWORD *)v8 = 0LL; v6 = (void ***)operator new(0x18uLL); *v6 = &v19; v6[1] = v8; v6[2] = (void **)v10; v8[0] = v6; *((_QWORD *)&v9 + 1) = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_invoke; *(_QWORD *)&v9 = std::_Function_handler<void ()(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&),SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}>::_M_manager; SchemaConverter::_not_strings(std::vector<std::string> const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode const&)#1}::operator()( v6, v12); std::__ostream_insert<char,std::char_traits<char>>(&v19, " )", 2LL); if ( !v18 ) std::__ostream_insert<char,std::char_traits<char>>(&v19, "?", 1LL); std::__ostream_insert<char,std::char_traits<char>>(&v19, " [\"] space", 10LL); std::stringbuf::str(a1, &v20); if ( (_QWORD)v9 ) ((void ( *)(void **, void **, long long))v9)(v8, v8, 3LL); std::ostringstream::~ostringstream(&v19, &`VTT for'std::ostringstream); std::ios_base::~ios_base((std::ios_base *)v22); if ( *(long long **)v10 != &v11 ) operator delete(*(void **)v10, v11 + 1); std::_Rb_tree<char,std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>,std::_Select1st<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::~_Rb_tree(v12); return a1; }
_not_strings: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1f8 MOV R12,RSI MOV RBX,RDI LEA RAX,[RSP + 0x50] MOV dword ptr [RAX],0x0 XOR ECX,ECX MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RAX + 0x10],RAX MOV qword ptr [RAX + 0x18],RAX MOV qword ptr [RAX + 0x20],RCX MOV byte ptr [RAX + 0x28],0x0 MOV R14,qword ptr [RDX] MOV R13,qword ptr [RDX + 0x8] CMP R14,R13 JZ 0x001c8d65 LEA R15,[RSP + 0x48] LAB_001c8d51: MOV RDI,R15 MOV RSI,R14 CALL 0x001c94e0 ADD R14,0x20 CMP R14,R13 JNZ 0x001c8d51 LAB_001c8d65: LEA R13,[RSP + 0x90] MOV qword ptr [R13 + -0x10],R13 MOV EAX,0x72616863 MOV dword ptr [R13],EAX MOV ECX,0x4 MOV qword ptr [R13 + -0x8],RCX XOR EDX,EDX MOV byte ptr [R13 + 0x4],DL LEA RBP,[RSP + 0x10] MOV qword ptr [RBP + -0x10],RBP MOV dword ptr [RBP],EAX MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RBP + 0x4],DL LAB_001c8d9c: LEA RDI,[0x2302b8] MOV R14,RSP MOV RSI,R14 CALL 0x001cd36a TEST RAX,RAX JZ 0x001c8f50 ADD RAX,0x28 LEA R15,[RSP + 0x28] LEA RDX,[RSP + 0x80] MOV RDI,R15 MOV RSI,R12 MOV RCX,RAX CALL 0x001c7a58 MOV RDI,qword ptr [RSP] CMP RDI,RBP JZ 0x001c8dec MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011b900 LAB_001c8dec: MOV RDI,qword ptr [RSP + 0x80] CMP RDI,R13 JZ 0x001c8e09 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011b900 LAB_001c8e09: LEA RDI,[RSP + 0x80] CALL 0x0011bbb0 LAB_001c8e16: LEA RSI,[0x1f817c] LEA R12,[RSP + 0x80] MOV EDX,0x6 MOV RDI,R12 CALL 0x0011ba20 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 MOVAPS xmmword ptr [RSP],XMM0 LAB_001c8e3e: MOV EDI,0x18 CALL 0x0011b8d0 MOV qword ptr [RAX],R12 MOV qword ptr [RAX + 0x8],R14 MOV qword ptr [RAX + 0x10],R15 MOV qword ptr [RSP],RAX LEA RCX,[0x1c97ca] MOV qword ptr [RSP + 0x18],RCX LEA RCX,[0x1c97d2] MOV qword ptr [RSP + 0x10],RCX LAB_001c8e6f: LEA RSI,[RSP + 0x48] MOV RDI,RAX CALL 0x001c97fa LEA RSI,[0x1f7e92] LEA RDI,[RSP + 0x80] MOV EDX,0x2 CALL 0x0011ba20 CMP byte ptr [RSP + 0x78],0x0 JNZ 0x001c8eb5 LEA RSI,[0x1f7fc0] LEA RDI,[RSP + 0x80] MOV EDX,0x1 CALL 0x0011ba20 LAB_001c8eb5: LEA RSI,[0x1f8183] LEA RDI,[RSP + 0x80] MOV EDX,0xa CALL 0x0011ba20 LEA RSI,[RSP + 0x88] MOV RDI,RBX CALL 0x0011bdd0 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x001c8ef5 LAB_001c8ee8: MOV RDI,RSP MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001c8ef5: MOV RSI,qword ptr [0x0022ef78] LEA RDI,[RSP + 0x80] CALL 0x0011b4b0 LEA RDI,[RSP + 0xf0] CALL 0x0011b2b0 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001c8f31 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x0011b900 LAB_001c8f31: LEA RDI,[RSP + 0x48] CALL 0x001c9afc MOV RAX,RBX ADD RSP,0x1f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001c8f50: LEA RDI,[0x1f812d] CALL 0x0011bcd0 LAB_001c8f5c: JMP 0x001c8ff5 LAB_001c8ff5: MOV RDI,RAX CALL 0x00123587
/* SchemaConverter::_not_strings(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&) */ vector * SchemaConverter::_not_strings(vector *param_1) { long lVar1; int8 uVar2; long *in_RDX; BuiltinRule *in_RSI; long lVar3; _lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *local_228; int8 uStack_220; code *local_218; code *pcStack_210; long *local_200 [2]; long local_1f0 [2]; TrieNode local_1e0 [8]; int4 local_1d8 [2]; int8 local_1d0; int4 *local_1c8; int4 *local_1c0; int8 local_1b8; char local_1b0; int4 *local_1a8; int8 local_1a0; int4 local_198; uint uStack_194; ios_base local_138 [264]; local_1c8 = local_1d8; local_1d8[0] = 0; local_1d0 = 0; local_1b8 = 0; local_1b0 = '\0'; lVar3 = *in_RDX; lVar1 = in_RDX[1]; local_1c0 = local_1c8; if (lVar3 != lVar1) { do { /* try { // try from 001c8d51 to 001c8d5b has its CatchHandler @ 001c8ffd */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: TrieNode::insert(std::__cxx11::string_const__(local_1e0,lVar3); lVar3 = lVar3 + 0x20; } while (lVar3 != lVar1); } local_198 = 0x72616863; local_1a0 = 4; uStack_194 = uStack_194 & 0xffffff00; uStack_220 = 4; local_218 = (code *)CONCAT35(local_218._5_3_,0x72616863); local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_218; local_1a8 = &local_198; /* try { // try from 001c8d9c to 001c8dd5 has its CatchHandler @ 001c8f6d */ lVar3 = std:: _Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> ::find((_Hashtable<std::__cxx11::string,std::pair<std::__cxx11::string_const,BuiltinRule>,std::allocator<std::pair<std::__cxx11::string_const,BuiltinRule>>,std::__detail::_Select1st,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>> *)PRIMITIVE_RULES_abi_cxx11_,(string *)&local_228); if (lVar3 != 0) { _add_primitive((string *)local_200,in_RSI); if (local_228 != (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)&local_218) { operator_delete(local_228,(long)local_218 + 1); } if (local_1a8 != &local_198) { operator_delete(local_1a8,CONCAT44(uStack_194,local_198) + 1); } /* try { // try from 001c8e09 to 001c8e15 has its CatchHandler @ 001c8f68 */ std::__cxx11::ostringstream::ostringstream((ostringstream *)&local_1a8); /* try { // try from 001c8e16 to 001c8e31 has its CatchHandler @ 001c8f63 */ std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"[\"] ( ",6); local_218 = (code *)0x0; pcStack_210 = (code *)0x0; local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)0x0; uStack_220 = 0; /* try { // try from 001c8e3e to 001c8e47 has its CatchHandler @ 001c8f61 */ local_228 = (_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ *)operator_new(0x18); *(ostream **)local_228 = (ostream *)&local_1a8; *(_lambda_SchemaConverter___not_strings_std__vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const____TrieNode_const___1_ ***)(local_228 + 8) = &local_228; *(string **)(local_228 + 0x10) = (string *)local_200; pcStack_210 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_invoke; local_218 = std:: _Function_handler<void(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&),SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::{lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1}> ::_M_manager; /* try { // try from 001c8e6f to 001c8edd has its CatchHandler @ 001c8f9d */ _not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&):: {lambda(SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode_const&)#1} ::operator()(local_228,local_1e0); std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," )",2); if (local_1b0 == '\0') { std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8,"?",1); } std::__ostream_insert<char,std::char_traits<char>>((ostream *)&local_1a8," [\"] space",10); std::__cxx11::stringbuf::str(); if (local_218 != (code *)0x0) { /* try { // try from 001c8ee8 to 001c8ef4 has its CatchHandler @ 001c8f5c */ (*local_218)(&local_228,&local_228,3); } std::__cxx11::ostringstream::~ostringstream((ostringstream *)&local_1a8); std::ios_base::~ios_base(local_138); if (local_200[0] != local_1f0) { operator_delete(local_200[0],local_1f0[0] + 1); } std:: _Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> ::~_Rb_tree((_Rb_tree<char,std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>,std::_Select1st<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *)local_1e0); return param_1; } /* try { // try from 001c8f50 to 001c8f5b has its CatchHandler @ 001c8f6d */ uVar2 = std::__throw_out_of_range("_Map_base::at"); /* catch(type#1 @ 00000000) { ... } // from try @ 001c8ee8 with catch @ 001c8f5c */ /* catch(type#1 @ 00000000) { ... } // from try @ 001c8faa with catch @ 001c8ff5 */ /* WARNING: Subroutine does not return */ __clang_call_terminate(uVar2); }
7,024
Catch::cleanupSingletons()
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp
static auto getSingletons() -> std::vector<ISingleton*>*& { static std::vector<ISingleton*>* g_singletons = nullptr; if( !g_singletons ) g_singletons = new std::vector<ISingleton*>(); return g_singletons; }
O3
cpp
Catch::cleanupSingletons(): pushq %r15 pushq %r14 pushq %rbx movq 0xe7975(%rip), %rbx # 0x134448 testq %rbx, %rbx je 0x4cadd movq (%rbx), %r14 jmp 0x4cb02 movl $0x18, %edi callq 0x171f0 movq %rax, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0xe7949(%rip) # 0x134448 xorl %r14d, %r14d movq 0x8(%rbx), %r15 cmpq %r15, %r14 je 0x4cb2e movq (%r14), %rdi testq %rdi, %rdi je 0x4cb19 movq (%rdi), %rax callq *0x8(%rax) addq $0x8, %r14 cmpq %r15, %r14 jne 0x4cb0b movq 0xe791f(%rip), %rbx # 0x134448 testq %rbx, %rbx je 0x4cb44 movq (%rbx), %rdi testq %rdi, %rdi je 0x4cb46 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x17150 jmp 0x4cb46 xorl %ebx, %ebx movl $0x18, %esi movq %rbx, %rdi callq 0x17150 movq $0x0, 0xe78ea(%rip) # 0x134448 popq %rbx popq %r14 popq %r15 retq
_ZN5Catch17cleanupSingletonsEv: push r15 push r14 push rbx mov rbx, cs:_ZZN5Catch12_GLOBAL__N_113getSingletonsEvE12g_singletons; Catch::`anonymous namespace'::getSingletons(void)::g_singletons test rbx, rbx jz short loc_4CADD mov r14, [rbx] jmp short loc_4CB02 loc_4CADD: mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) mov rbx, rax xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 mov cs:_ZZN5Catch12_GLOBAL__N_113getSingletonsEvE12g_singletons, rax; Catch::`anonymous namespace'::getSingletons(void)::g_singletons xor r14d, r14d loc_4CB02: mov r15, [rbx+8] cmp r14, r15 jz short loc_4CB2E loc_4CB0B: mov rdi, [r14] test rdi, rdi jz short loc_4CB19 mov rax, [rdi] call qword ptr [rax+8] loc_4CB19: add r14, 8 cmp r14, r15 jnz short loc_4CB0B mov rbx, cs:_ZZN5Catch12_GLOBAL__N_113getSingletonsEvE12g_singletons; Catch::`anonymous namespace'::getSingletons(void)::g_singletons test rbx, rbx jz short loc_4CB44 loc_4CB2E: mov rdi, [rbx]; void * test rdi, rdi jz short loc_4CB46 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_4CB46 loc_4CB44: xor ebx, ebx loc_4CB46: mov esi, 18h; unsigned __int64 mov rdi, rbx; void * call __ZdlPvm; operator delete(void *,ulong) mov cs:_ZZN5Catch12_GLOBAL__N_113getSingletonsEvE12g_singletons, 0; Catch::`anonymous namespace'::getSingletons(void)::g_singletons pop rbx pop r14 pop r15 retn
void Catch::cleanupSingletons(Catch *this) { _QWORD *v1; // rbx _QWORD *v2; // r14 _QWORD *v3; // r15 v1 = Catch::`anonymous namespace'::getSingletons(void)::g_singletons; if ( Catch::`anonymous namespace'::getSingletons(void)::g_singletons ) { v2 = *(_QWORD **)Catch::`anonymous namespace'::getSingletons(void)::g_singletons; } else { v1 = (_QWORD *)operator new(0x18uLL); *(_OWORD *)v1 = 0LL; v1[2] = 0LL; Catch::`anonymous namespace'::getSingletons(void)::g_singletons = v1; v2 = 0LL; } v3 = (_QWORD *)v1[1]; if ( v2 == v3 ) goto LABEL_15; do { if ( *v2 ) (*(void ( **)(_QWORD))(*(_QWORD *)*v2 + 8LL))(*v2); ++v2; } while ( v2 != v3 ); v1 = Catch::`anonymous namespace'::getSingletons(void)::g_singletons; if ( Catch::`anonymous namespace'::getSingletons(void)::g_singletons ) { LABEL_15: if ( *v1 ) operator delete((void *)*v1, v1[2] - *v1); } else { v1 = 0LL; } operator delete(v1, 0x18uLL); Catch::`anonymous namespace'::getSingletons(void)::g_singletons = 0LL; }
cleanupSingletons: PUSH R15 PUSH R14 PUSH RBX MOV RBX,qword ptr [0x00234448] TEST RBX,RBX JZ 0x0014cadd MOV R14,qword ptr [RBX] JMP 0x0014cb02 LAB_0014cadd: MOV EDI,0x18 CALL 0x001171f0 MOV RBX,RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 MOV qword ptr [0x00234448],RAX XOR R14D,R14D LAB_0014cb02: MOV R15,qword ptr [RBX + 0x8] CMP R14,R15 JZ 0x0014cb2e LAB_0014cb0b: MOV RDI,qword ptr [R14] TEST RDI,RDI JZ 0x0014cb19 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_0014cb19: ADD R14,0x8 CMP R14,R15 JNZ 0x0014cb0b MOV RBX,qword ptr [0x00234448] TEST RBX,RBX JZ 0x0014cb44 LAB_0014cb2e: MOV RDI,qword ptr [RBX] TEST RDI,RDI JZ 0x0014cb46 MOV RSI,qword ptr [RBX + 0x10] SUB RSI,RDI CALL 0x00117150 JMP 0x0014cb46 LAB_0014cb44: XOR EBX,EBX LAB_0014cb46: MOV ESI,0x18 MOV RDI,RBX CALL 0x00117150 MOV qword ptr [0x00234448],0x0 POP RBX POP R14 POP R15 RET
/* Catch::cleanupSingletons() */ void Catch::cleanupSingletons(void) { long *plVar1; void *pvVar2; int8 *puVar3; long *plVar4; if ((anonymous_namespace)::getSingletons()::g_singletons == (int8 *)0x0) { (anonymous_namespace)::getSingletons()::g_singletons = (int8 *)operator_new(0x18); *(anonymous_namespace)::getSingletons()::g_singletons = 0; (anonymous_namespace)::getSingletons()::g_singletons[1] = 0; (anonymous_namespace)::getSingletons()::g_singletons[2] = 0; plVar4 = (long *)0x0; } else { plVar4 = (long *)*(anonymous_namespace)::getSingletons()::g_singletons; } plVar1 = (long *)(anonymous_namespace)::getSingletons()::g_singletons[1]; if (plVar4 != plVar1) { do { if ((long *)*plVar4 != (long *)0x0) { (**(code **)(*(long *)*plVar4 + 8))(); } plVar4 = plVar4 + 1; } while (plVar4 != plVar1); if ((anonymous_namespace)::getSingletons()::g_singletons == (int8 *)0x0) { puVar3 = (int8 *)0x0; goto LAB_0014cb46; } } puVar3 = (anonymous_namespace)::getSingletons()::g_singletons; pvVar2 = (void *)*(anonymous_namespace)::getSingletons()::g_singletons; if (pvVar2 != (void *)0x0) { operator_delete(pvVar2,(anonymous_namespace)::getSingletons()::g_singletons[2] - (long)pvVar2); } LAB_0014cb46: operator_delete(puVar3,0x18); (anonymous_namespace)::getSingletons()::g_singletons = (int8 *)0x0; return; }
7,025
google::protobuf::util::converter::ProtoWriter::BeginNamed(google::protobuf::stringpiece_internal::StringPiece, bool)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/util/internal/proto_writer.cc
const google::protobuf::Field* ProtoWriter::BeginNamed(StringPiece name, bool is_list) { if (invalid_depth_ > 0) { ++invalid_depth_; return nullptr; } const google::protobuf::Field* field = Lookup(name); if (field == nullptr) { ++invalid_depth_; // InvalidName() already called in Lookup(). return nullptr; } if (is_list && !IsRepeated(*field)) { ++invalid_depth_; InvalidName(name, "Proto field is not repeating, cannot start list."); return nullptr; } return field; }
O0
cpp
google::protobuf::util::converter::ProtoWriter::BeginNamed(google::protobuf::stringpiece_internal::StringPiece, bool): subq $0x68, %rsp movb %cl, %al movq %rsi, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq %rdi, 0x48(%rsp) andb $0x1, %al movb %al, 0x47(%rsp) movq 0x48(%rsp), %rax movq %rax, (%rsp) cmpl $0x0, 0xc8(%rax) jle 0x5d2f1e movq (%rsp), %rax movl 0xc8(%rax), %ecx addl $0x1, %ecx movl %ecx, 0xc8(%rax) movq $0x0, 0x60(%rsp) jmp 0x5d2ff6 movq (%rsp), %rdi movq 0x50(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x28(%rsp), %rsi movq 0x30(%rsp), %rdx callq 0x5d3e80 movq %rax, 0x38(%rsp) cmpq $0x0, 0x38(%rsp) jne 0x5d2f73 movq (%rsp), %rax movl 0xc8(%rax), %ecx addl $0x1, %ecx movl %ecx, 0xc8(%rax) movq $0x0, 0x60(%rsp) jmp 0x5d2ff6 testb $0x1, 0x47(%rsp) je 0x5d2fec movq (%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x5d2100 testb $0x1, %al jne 0x5d2fec movq (%rsp), %rax movl 0xc8(%rax), %ecx addl $0x1, %ecx movl %ecx, 0xc8(%rax) movq 0x50(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x8(%rsp), %rdi leaq 0x2c0be(%rip), %rsi # 0x5ff07d callq 0x3ced60 movq (%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq 0x8(%rsp), %rcx movq 0x10(%rsp), %r8 callq 0x5d2a60 movq $0x0, 0x60(%rsp) jmp 0x5d2ff6 movq 0x38(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rax addq $0x68, %rsp retq
_ZN6google8protobuf4util9converter11ProtoWriter10BeginNamedENS0_20stringpiece_internal11StringPieceEb: sub rsp, 68h mov al, cl mov [rsp+68h+var_18], rsi mov [rsp+68h+var_10], rdx mov [rsp+68h+var_20], rdi and al, 1 mov [rsp+68h+var_21], al mov rax, [rsp+68h+var_20] mov [rsp+68h+var_68], rax cmp dword ptr [rax+0C8h], 0 jle short loc_5D2F1E mov rax, [rsp+68h+var_68] mov ecx, [rax+0C8h] add ecx, 1 mov [rax+0C8h], ecx mov [rsp+68h+var_8], 0 jmp loc_5D2FF6 loc_5D2F1E: mov rdi, [rsp+68h+var_68] mov rax, [rsp+68h+var_18] mov [rsp+68h+var_40], rax mov rax, [rsp+68h+var_10] mov [rsp+68h+var_38], rax mov rsi, [rsp+68h+var_40] mov rdx, [rsp+68h+var_38] call _ZN6google8protobuf4util9converter11ProtoWriter6LookupENS0_20stringpiece_internal11StringPieceE; google::protobuf::util::converter::ProtoWriter::Lookup(google::protobuf::stringpiece_internal::StringPiece) mov [rsp+68h+var_30], rax cmp [rsp+68h+var_30], 0 jnz short loc_5D2F73 mov rax, [rsp+68h+var_68] mov ecx, [rax+0C8h] add ecx, 1 mov [rax+0C8h], ecx mov [rsp+68h+var_8], 0 jmp loc_5D2FF6 loc_5D2F73: test [rsp+68h+var_21], 1 jz short loc_5D2FEC mov rdi, [rsp+68h+var_68]; this mov rsi, [rsp+68h+var_30]; google::protobuf::Field * call _ZN6google8protobuf4util9converter11ProtoWriter10IsRepeatedERKNS0_5FieldE; google::protobuf::util::converter::ProtoWriter::IsRepeated(google::protobuf::Field const&) test al, 1 jnz short loc_5D2FEC mov rax, [rsp+68h+var_68] mov ecx, [rax+0C8h] add ecx, 1 mov [rax+0C8h], ecx mov rax, [rsp+68h+var_18] mov [rsp+68h+var_50], rax mov rax, [rsp+68h+var_10] mov [rsp+68h+var_48], rax lea rdi, [rsp+68h+var_60]; this lea rsi, aProtoFieldIsNo; "Proto field is not repeating, cannot st"... call _ZN6google8protobuf20stringpiece_internal11StringPieceC2EPKc; google::protobuf::stringpiece_internal::StringPiece::StringPiece(char const*) mov rdi, [rsp+68h+var_68] mov rsi, [rsp+68h+var_50] mov rdx, [rsp+68h+var_48] mov rcx, [rsp+68h+var_60] mov r8, [rsp+68h+var_58] call _ZN6google8protobuf4util9converter11ProtoWriter11InvalidNameENS0_20stringpiece_internal11StringPieceES5_; google::protobuf::util::converter::ProtoWriter::InvalidName(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece) mov [rsp+68h+var_8], 0 jmp short loc_5D2FF6 loc_5D2FEC: mov rax, [rsp+68h+var_30] mov [rsp+68h+var_8], rax loc_5D2FF6: mov rax, [rsp+68h+var_8] add rsp, 68h retn
google::protobuf::Field * google::protobuf::util::converter::ProtoWriter::BeginNamed( google::protobuf::util::converter::ProtoWriter *a1, long long a2, long long a3, char a4) { long long v5[2]; // [rsp+8h] [rbp-60h] BYREF long long v6; // [rsp+18h] [rbp-50h] long long v7; // [rsp+20h] [rbp-48h] long long v8; // [rsp+28h] [rbp-40h] long long v9; // [rsp+30h] [rbp-38h] google::protobuf::Field *v10; // [rsp+38h] [rbp-30h] char v11; // [rsp+47h] [rbp-21h] google::protobuf::util::converter::ProtoWriter *v12; // [rsp+48h] [rbp-20h] long long v13; // [rsp+50h] [rbp-18h] long long v14; // [rsp+58h] [rbp-10h] v13 = a2; v14 = a3; v12 = a1; v11 = a4 & 1; if ( *((int *)a1 + 50) <= 0 ) { v8 = v13; v9 = v14; v10 = (google::protobuf::Field *)google::protobuf::util::converter::ProtoWriter::Lookup(a1, v13, v14); if ( v10 ) { if ( (v11 & 1) == 0 || google::protobuf::util::converter::ProtoWriter::IsRepeated(a1, v10) ) { return v10; } else { ++*((_DWORD *)a1 + 50); v6 = v13; v7 = v14; google::protobuf::stringpiece_internal::StringPiece::StringPiece( (google::protobuf::stringpiece_internal::StringPiece *)v5, "Proto field is not repeating, cannot start list."); google::protobuf::util::converter::ProtoWriter::InvalidName(a1, v6, v7, v5[0], v5[1]); return 0LL; } } else { ++*((_DWORD *)a1 + 50); return 0LL; } } else { ++*((_DWORD *)a1 + 50); return 0LL; } }
deallocate: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV qword ptr [RSP],RDX MOV RDI,qword ptr [RSP + 0x8] CALL 0x002961a0 ADD RSP,0x18 RET
/* __gnu_cxx::new_allocator<google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range>::deallocate(google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*, unsigned long) */ void __gnu_cxx:: new_allocator<google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range> ::deallocate(Range *param_1,ulong param_2) { operator_delete((void *)param_2); return; }
7,026
my_coll_rules_realloc
eloqsql/strings/ctype-uca.c
static int my_coll_rules_realloc(MY_COLL_RULES *rules, size_t n) { if (rules->nrules < rules->mrules || (rules->rule= rules->loader->realloc(rules->rule, sizeof(MY_COLL_RULE) * (rules->mrules= n + 128)))) return 0; return -1; }
O0
c
my_coll_rules_realloc: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x18(%rcx), %rax jb 0x50163 movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq 0x90(%rax), %rax movq -0x10(%rbp), %rcx movq 0x20(%rcx), %rdi movq -0x18(%rbp), %rcx addq $0x80, %rcx movq -0x10(%rbp), %rdx movq %rcx, 0x18(%rdx) imulq $0xa0, %rcx, %rsi callq *%rax movq -0x10(%rbp), %rcx movq %rax, 0x20(%rcx) cmpq $0x0, %rax je 0x5016c movl $0x0, -0x4(%rbp) jmp 0x50173 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax)
my_coll_rules_realloc: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] mov rax, [rax+10h] mov rcx, [rbp+var_10] cmp rax, [rcx+18h] jb short loc_50163 mov rax, [rbp+var_10] mov rax, [rax+28h] mov rax, [rax+90h] mov rcx, [rbp+var_10] mov rdi, [rcx+20h] mov rcx, [rbp+var_18] add rcx, 80h mov rdx, [rbp+var_10] mov [rdx+18h], rcx imul rsi, rcx, 0A0h call rax mov rcx, [rbp+var_10] mov [rcx+20h], rax cmp rax, 0 jz short loc_5016C loc_50163: mov [rbp+var_4], 0 jmp short loc_50173 loc_5016C: mov [rbp+var_4], 0FFFFFFFFh loc_50173: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long my_coll_rules_realloc(_QWORD *a1, long long a2) { long long ( *v2)(long long, long long); // rax long long v3; // rdi long long v4; // rax if ( a1[2] < a1[3] ) return 0; v2 = *(long long ( **)(long long, long long))(a1[5] + 144LL); v3 = a1[4]; a1[3] = a2 + 128; v4 = v2(v3, 160 * (a2 + 128)); if ( (a1[4] = v4) != 0LL ) return 0; else return (unsigned int)-1; }
my_coll_rules_realloc: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x18] JC 0x00150163 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RAX + 0x90] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x20] MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x80 MOV RDX,qword ptr [RBP + -0x10] MOV qword ptr [RDX + 0x18],RCX IMUL RSI,RCX,0xa0 CALL RAX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x20],RAX CMP RAX,0x0 JZ 0x0015016c LAB_00150163: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00150173 LAB_0015016c: MOV dword ptr [RBP + -0x4],0xffffffff LAB_00150173: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 my_coll_rules_realloc(long param_1,long param_2) { code *pcVar1; long lVar2; if (*(ulong *)(param_1 + 0x18) <= *(ulong *)(param_1 + 0x10)) { pcVar1 = *(code **)(*(long *)(param_1 + 0x28) + 0x90); *(long *)(param_1 + 0x18) = param_2 + 0x80; lVar2 = (*pcVar1)(*(int8 *)(param_1 + 0x20),(param_2 + 0x80) * 0xa0); *(long *)(param_1 + 0x20) = lVar2; if (lVar2 == 0) { return 0xffffffff; } } return 0; }
7,027
stbtt__csctx_v
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-truetype.h
static void stbtt__csctx_v(stbtt__csctx *c, stbtt_uint8 type, stbtt_int32 x, stbtt_int32 y, stbtt_int32 cx, stbtt_int32 cy, stbtt_int32 cx1, stbtt_int32 cy1) { if (c->bounds) { stbtt__track_vertex(c, x, y); if (type == STBTT_vcubic) { stbtt__track_vertex(c, cx, cy); stbtt__track_vertex(c, cx1, cy1); } } else { stbtt_setvertex(&c->pvertices[c->num_vertices], type, x, y, cx, cy); c->pvertices[c->num_vertices].cx1 = (stbtt_int16) cx1; c->pvertices[c->num_vertices].cy1 = (stbtt_int16) cy1; } c->num_vertices++; }
O1
c
stbtt__csctx_v: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %r9d, %r14d movl %r8d, %r12d movl %esi, %r13d movq %rdi, %rbx movl 0x48(%rsp), %ebp movl 0x40(%rsp), %r15d cmpl $0x0, (%rdi) je 0x7c6f movq %rbx, %rdi movl %edx, %esi movl %ecx, %edx callq 0x7cb9 cmpb $0x4, %r13b jne 0x7ca7 movq %rbx, %rdi movl %r12d, %esi movl %r14d, %edx callq 0x7cb9 movq %rbx, %rdi movl %r15d, %esi movl %ebp, %edx callq 0x7cb9 jmp 0x7ca7 movq 0x28(%rbx), %rax movslq 0x30(%rbx), %rsi leaq (%rsi,%rsi), %rdi shlq $0x4, %rsi subq %rdi, %rsi movb %r13b, 0xc(%rax,%rsi) movw %dx, (%rax,%rsi) movw %cx, 0x2(%rax,%rsi) movw %r12w, 0x4(%rax,%rsi) movw %r14w, 0x6(%rax,%rsi) movw %r15w, 0x8(%rax,%rsi) movw %bp, 0xa(%rax,%rsi) incl 0x30(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
stbtt__csctx_v: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14d, r9d mov r12d, r8d mov r13d, esi mov rbx, rdi mov ebp, [rsp+38h+arg_8] mov r15d, [rsp+38h+arg_0] cmp dword ptr [rdi], 0 jz short loc_7C6F mov rdi, rbx mov esi, edx mov edx, ecx call stbtt__track_vertex cmp r13b, 4 jnz short loc_7CA7 mov rdi, rbx mov esi, r12d mov edx, r14d call stbtt__track_vertex mov rdi, rbx mov esi, r15d mov edx, ebp call stbtt__track_vertex jmp short loc_7CA7 loc_7C6F: mov rax, [rbx+28h] movsxd rsi, dword ptr [rbx+30h] lea rdi, [rsi+rsi] shl rsi, 4 sub rsi, rdi mov [rax+rsi+0Ch], r13b mov [rax+rsi], dx mov [rax+rsi+2], cx mov [rax+rsi+4], r12w mov [rax+rsi+6], r14w mov [rax+rsi+8], r15w mov [rax+rsi+0Ah], bp loc_7CA7: inc dword ptr [rbx+30h] add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long stbtt__csctx_v( long long a1, char a2, unsigned int a3, unsigned int a4, unsigned int a5, unsigned int a6, unsigned int a7, unsigned int a8) { long long result; // rax long long v12; // rsi if ( *(_DWORD *)a1 ) { result = stbtt__track_vertex(a1, a3, a4); if ( a2 == 4 ) { stbtt__track_vertex(a1, a5, a6); result = stbtt__track_vertex(a1, a7, a8); } } else { result = *(_QWORD *)(a1 + 40); v12 = 14LL * *(int *)(a1 + 48); *(_BYTE *)(result + v12 + 12) = a2; *(_WORD *)(result + v12) = a3; *(_WORD *)(result + v12 + 2) = a4; *(_WORD *)(result + v12 + 4) = a5; *(_WORD *)(result + v12 + 6) = a6; *(_WORD *)(result + v12 + 8) = a7; *(_WORD *)(result + v12 + 10) = a8; } ++*(_DWORD *)(a1 + 48); return result; }
stbtt__csctx_v: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14D,R9D MOV R12D,R8D MOV R13D,ESI MOV RBX,RDI MOV EBP,dword ptr [RSP + 0x48] MOV R15D,dword ptr [RSP + 0x40] CMP dword ptr [RDI],0x0 JZ 0x00107c6f MOV RDI,RBX MOV ESI,EDX MOV EDX,ECX CALL 0x00107cb9 CMP R13B,0x4 JNZ 0x00107ca7 MOV RDI,RBX MOV ESI,R12D MOV EDX,R14D CALL 0x00107cb9 MOV RDI,RBX MOV ESI,R15D MOV EDX,EBP CALL 0x00107cb9 JMP 0x00107ca7 LAB_00107c6f: MOV RAX,qword ptr [RBX + 0x28] MOVSXD RSI,dword ptr [RBX + 0x30] LEA RDI,[RSI + RSI*0x1] SHL RSI,0x4 SUB RSI,RDI MOV byte ptr [RAX + RSI*0x1 + 0xc],R13B MOV word ptr [RAX + RSI*0x1],DX MOV word ptr [RAX + RSI*0x1 + 0x2],CX MOV word ptr [RAX + RSI*0x1 + 0x4],R12W MOV word ptr [RAX + RSI*0x1 + 0x6],R14W MOV word ptr [RAX + RSI*0x1 + 0x8],R15W MOV word ptr [RAX + RSI*0x1 + 0xa],BP LAB_00107ca7: INC dword ptr [RBX + 0x30] ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void stbtt__csctx_v(int *param_1,char param_2,int4 param_3,int4 param_4, int4 param_5,int4 param_6,int4 param_7,int4 param_8) { long lVar1; long lVar2; if (*param_1 == 0) { lVar1 = *(long *)(param_1 + 10); lVar2 = (long)param_1[0xc] * 0xe; *(char *)(lVar1 + 0xc + lVar2) = param_2; *(short *)(lVar1 + lVar2) = (short)param_3; *(short *)(lVar1 + 2 + lVar2) = (short)param_4; *(short *)(lVar1 + 4 + lVar2) = (short)param_5; *(short *)(lVar1 + 6 + lVar2) = (short)param_6; *(short *)(lVar1 + 8 + lVar2) = (short)param_7; *(short *)(lVar1 + 10 + lVar2) = (short)param_8; } else { stbtt__track_vertex(param_1,param_3,param_4); if (param_2 == '\x04') { stbtt__track_vertex(param_1,param_5,param_6); stbtt__track_vertex(param_1,param_7,param_8); } } param_1[0xc] = param_1[0xc] + 1; return; }
7,028
testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter(char const*)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
JsonUnitTestResultPrinter::JsonUnitTestResultPrinter(const char* output_file) : output_file_(output_file) { if (output_file_.empty()) { GTEST_LOG_(FATAL) << "JSON output file may not be null"; } }
O0
cpp
testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter(char const*): subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x4c8b0 movq 0x10(%rsp), %rax leaq 0x6694f(%rip), %rcx # 0x9ad88 addq $0x10, %rcx movq %rcx, (%rax) addq $0x8, %rax movq %rax, 0x18(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x47(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0xb920 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx callq 0xe840 jmp 0x34478 leaq 0x47(%rsp), %rdi callq 0xb500 movq 0x10(%rsp), %rdi addq $0x8, %rdi callq 0x45090 testb $0x1, %al jne 0x34499 jmp 0x3452a leaq 0x40187(%rip), %rdx # 0x74627 leaq 0x30(%rsp), %rdi movl $0x3, %esi movl $0x11bc, %ecx # imm = 0x11BC callq 0x1b8d0 jmp 0x344b6 leaq 0x30(%rsp), %rdi callq 0x107d0 movq %rax, 0x8(%rsp) jmp 0x344c7 movq 0x8(%rsp), %rdi leaq 0x410b2(%rip), %rsi # 0x75585 callq 0xb460 jmp 0x344da leaq 0x30(%rsp), %rdi callq 0x1ba40 jmp 0x3452a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x47(%rsp), %rdi callq 0xb500 jmp 0x34539 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x3452f movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x30(%rsp), %rdi callq 0x1ba40 jmp 0x3452f addq $0x58, %rsp retq movq 0x18(%rsp), %rdi callq 0xec60 movq 0x10(%rsp), %rdi callq 0x5a0a0 movq 0x38(%rsp), %rdi callq 0xb910 nopl (%rax)
_ZN7testing8internal25JsonUnitTestResultPrinterC2EPKc: sub rsp, 58h mov [rsp+58h+var_8], rdi mov qword ptr [rsp+58h+var_11+1], rsi; char mov rdi, [rsp+58h+var_8]; this mov qword ptr [rsp+58h+var_48], rdi; int call _ZN7testing22EmptyTestEventListenerC2Ev; testing::EmptyTestEventListener::EmptyTestEventListener(void) mov rax, qword ptr [rsp+58h+var_48] lea rcx, _ZTVN7testing8internal25JsonUnitTestResultPrinterE; `vtable for'testing::internal::JsonUnitTestResultPrinter add rcx, 10h mov [rax], rcx add rax, 8 mov qword ptr [rsp+58h+var_40], rax; int mov rax, qword ptr [rsp+58h+var_11+1] mov qword ptr [rsp+58h+var_38], rax; int lea rdi, [rsp+58h+var_11] mov qword ptr [rsp+58h+var_30], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, qword ptr [rsp+58h+var_40] mov rsi, qword ptr [rsp+58h+var_38] mov rdx, qword ptr [rsp+58h+var_30] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_34478: lea rdi, [rsp+58h+var_11] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, qword ptr [rsp+58h+var_48] add rdi, 8 call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_34499 jmp loc_3452A loc_34499: lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/AlayaL"... lea rdi, [rsp+58h+var_28]; int mov esi, 3 mov ecx, 11BCh call _ZN7testing8internal8GTestLogC2ENS0_16GTestLogSeverityEPKci; testing::internal::GTestLog::GTestLog(testing::internal::GTestLogSeverity,char const*,int) jmp short $+2 loc_344B6: lea rdi, [rsp+58h+var_28]; this call _ZN7testing8internal8GTestLog9GetStreamEv; testing::internal::GTestLog::GetStream(void) mov [rsp+58h+var_50], rax jmp short $+2 loc_344C7: mov rdi, [rsp+58h+var_50] lea rsi, aJsonOutputFile; "JSON output file may not be null" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_344DA: lea rdi, [rsp+58h+var_28]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_3452A mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_3F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() jmp short loc_34539 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_3452F mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_28]; this call _ZN7testing8internal8GTestLogD2Ev; testing::internal::GTestLog::~GTestLog() jmp short loc_3452F loc_3452A: add rsp, 58h retn loc_3452F: mov rdi, [rsp+arg_10]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_34539: mov rdi, [rsp+arg_8]; this call _ZN7testing22EmptyTestEventListenerD2Ev; testing::EmptyTestEventListener::~EmptyTestEventListener() mov rdi, [rsp+arg_30] call __Unwind_Resume
void testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter( testing::internal::JsonUnitTestResultPrinter *this, const char *a2) { long long v2; // rdx void *Stream; // [rsp+8h] [rbp-50h] long long v4; // [rsp+20h] [rbp-38h] int v5[5]; // [rsp+30h] [rbp-28h] BYREF _BYTE v6[9]; // [rsp+47h] [rbp-11h] BYREF testing::EmptyTestEventListener *v7; // [rsp+50h] [rbp-8h] v7 = this; *(_QWORD *)&v6[1] = a2; testing::EmptyTestEventListener::EmptyTestEventListener(this); *(_QWORD *)this = &`vtable for'testing::internal::JsonUnitTestResultPrinter + 2; v4 = *(_QWORD *)&v6[1]; std::allocator<char>::allocator(v6, a2, v2); std::string::basic_string<std::allocator<char>>((long long)this + 8, v4, (long long)v6); std::allocator<char>::~allocator(v6, v4); if ( (std::string::empty((char *)this + 8) & 1) != 0 ) { testing::internal::GTestLog::GTestLog( (testing::internal::GTestLog *)v5, 3, (long long)"/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc", 4540); Stream = testing::internal::GTestLog::GetStream((testing::internal::GTestLog *)v5); std::operator<<<std::char_traits<char>>(Stream, "JSON output file may not be null"); testing::internal::GTestLog::~GTestLog((testing::internal::GTestLog *)v5); } }
JsonUnitTestResultPrinter: SUB RSP,0x58 MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV RDI,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x10],RDI CALL 0x0014c8b0 MOV RAX,qword ptr [RSP + 0x10] LEA RCX,[0x19ad88] ADD RCX,0x10 MOV qword ptr [RAX],RCX ADD RAX,0x8 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x20],RAX LEA RDI,[RSP + 0x47] MOV qword ptr [RSP + 0x28],RDI CALL 0x0010b920 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] LAB_00134471: CALL 0x0010e840 JMP 0x00134478 LAB_00134478: LEA RDI,[RSP + 0x47] CALL 0x0010b500 MOV RDI,qword ptr [RSP + 0x10] ADD RDI,0x8 CALL 0x00145090 TEST AL,0x1 JNZ 0x00134499 JMP 0x0013452a LAB_00134499: LEA RDX,[0x174627] LEA RDI,[RSP + 0x30] MOV ESI,0x3 MOV ECX,0x11bc CALL 0x0011b8d0 JMP 0x001344b6 LAB_001344b6: LEA RDI,[RSP + 0x30] CALL 0x001107d0 MOV qword ptr [RSP + 0x8],RAX JMP 0x001344c7 LAB_001344c7: MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x175585] CALL 0x0010b460 LAB_001344d8: JMP 0x001344da LAB_001344da: LEA RDI,[RSP + 0x30] CALL 0x0011ba40 JMP 0x0013452a LAB_0013452a: ADD RSP,0x58 RET
/* testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter(char const*) */ void __thiscall testing::internal::JsonUnitTestResultPrinter::JsonUnitTestResultPrinter (JsonUnitTestResultPrinter *this,char *param_1) { char *pcVar1; ulong uVar2; ostream *poVar3; GTestLog local_28 [23]; allocator local_11; char *local_10; JsonUnitTestResultPrinter *local_8; local_10 = param_1; local_8 = this; EmptyTestEventListener::EmptyTestEventListener((EmptyTestEventListener *)this); pcVar1 = local_10; *(int ***)this = &PTR__JsonUnitTestResultPrinter_0019ad98; std::allocator<char>::allocator(); /* try { // try from 00134471 to 00134475 has its CatchHandler @ 001344e6 */ std::__cxx11::string::string<std::allocator<char>>((string *)(this + 8),pcVar1,&local_11); std::allocator<char>::~allocator((allocator<char> *)&local_11); uVar2 = std::__cxx11::string::empty((string *)(this + 8)); if ((uVar2 & 1) != 0) { /* try { // try from 00134499 to 001344b3 has its CatchHandler @ 00134500 */ GTestLog::GTestLog(local_28,3, "/workspace/llm4binary/github2025/AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc" ,0x11bc); /* try { // try from 001344b6 to 001344d7 has its CatchHandler @ 00134510 */ poVar3 = (ostream *)GTestLog::GetStream(); std::operator<<(poVar3,"JSON output file may not be null"); GTestLog::~GTestLog(local_28); } return; }
7,029
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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&, std::shared_ptr<minja::Expression>&&)
llama.cpp/common/minja/minja.hpp
SetNode(const Location & loc, const std::string & ns, const std::vector<std::string> & vns, std::shared_ptr<Expression> && v) : TemplateNode(loc), ns(ns), var_names(vns), value(std::move(v)) {}
O3
cpp
minja::SetNode::SetNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 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&, std::shared_ptr<minja::Expression>&&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %r14 movq %rcx, %r15 movq %rdi, %rbx leaq 0x6ed67(%rip), %r13 # 0x161510 addq $0x10, %r13 movq %r13, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0xf27d9 movq 0x6f7cd(%rip), %rcx # 0x161f98 cmpb $0x0, (%rcx) je 0xf27d5 incl 0x8(%rax) jmp 0xf27d9 lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rbx) leaq 0x6ef90(%rip), %rax # 0x161778 addq $0x10, %rax movq %rax, (%rbx) leaq 0x20(%rbx), %r12 leaq 0x30(%rbx), %rbp movq %rbp, 0x20(%rbx) movq (%rdx), %rsi movq 0x8(%rdx), %rdx addq %rsi, %rdx movq %r12, %rdi callq 0x28562 leaq 0x40(%rbx), %rdi movq %r15, %rsi callq 0x64a70 xorl %eax, %eax movq %rax, 0x60(%rbx) movups (%r14), %xmm0 movq %rax, 0x8(%r14) movups %xmm0, 0x58(%rbx) movq %rax, (%r14) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%r12), %rdi cmpq %rbp, %rdi je 0xf285a movq (%rbp), %rsi incq %rsi callq 0x20180 jmp 0xf285a movq %rax, %r14 movq %r13, (%rbx) addq $0x10, %rbx movq %rbx, %rdi callq 0x7028e movq %r14, %rdi callq 0x20af0 nop
_ZN5minja7SetNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIS9_SaIS9_EEOSt10shared_ptrINS_10ExpressionEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, r8 mov r15, rcx mov rbx, rdi lea r13, _ZTVN5minja12TemplateNodeE; `vtable for'minja::TemplateNode add r13, 10h mov [rdi], r13 mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_F27D9 mov rcx, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag cmp byte ptr [rcx], 0 jz short loc_F27D5 inc dword ptr [rax+8] jmp short loc_F27D9 loc_F27D5: lock inc dword ptr [rax+8] loc_F27D9: mov rax, [rsi+10h] mov [rbx+18h], rax lea rax, _ZTVN5minja7SetNodeE; `vtable for'minja::SetNode add rax, 10h mov [rbx], rax lea r12, [rbx+20h] lea rbp, [rbx+30h] mov [rbx+20h], rbp mov rsi, [rdx] mov rdx, [rdx+8] add rdx, rsi mov rdi, r12 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rdi, [rbx+40h] mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&) xor eax, eax mov [rbx+60h], rax movups xmm0, xmmword ptr [r14] mov [r14+8], rax movups xmmword ptr [rbx+58h], xmm0 mov [r14], rax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [r12]; void * cmp rdi, rbp jz short loc_F285A mov rsi, [rbp+0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_F285A mov r14, rax loc_F285A: mov [rbx], r13 add rbx, 10h mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, r14 call __Unwind_Resume
long long minja::SetNode::SetNode(long long a1, _QWORD *a2, long long a3, _QWORD *a4, __int128 *a5) { long long v7; // rax long long result; // rax __int128 v9; // xmm0 *(_QWORD *)a1 = &`vtable for'minja::TemplateNode + 2; *(_QWORD *)(a1 + 8) = *a2; v7 = a2[1]; *(_QWORD *)(a1 + 16) = v7; if ( v7 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v7 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v7 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &`vtable for'minja::SetNode + 2; *(_QWORD *)(a1 + 32) = a1 + 48; std::string::_M_construct<char *>(a1 + 32, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); std::vector<std::string>::vector(a1 + 64, a4); result = 0LL; *(_QWORD *)(a1 + 96) = 0LL; v9 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 88) = v9; *(_QWORD *)a5 = 0LL; return result; }
SetNode: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,R8 MOV R15,RCX MOV RBX,RDI LEA R13,[0x261510] ADD R13,0x10 MOV qword ptr [RDI],R13 MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RDI + 0x10],RAX TEST RAX,RAX JZ 0x001f27d9 MOV RCX,qword ptr [0x00261f98] CMP byte ptr [RCX],0x0 JZ 0x001f27d5 INC dword ptr [RAX + 0x8] JMP 0x001f27d9 LAB_001f27d5: INC.LOCK dword ptr [RAX + 0x8] LAB_001f27d9: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x261778] ADD RAX,0x10 MOV qword ptr [RBX],RAX LEA R12,[RBX + 0x20] LEA RBP,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RBP MOV RSI,qword ptr [RDX] MOV RDX,qword ptr [RDX + 0x8] ADD RDX,RSI LAB_001f2805: MOV RDI,R12 CALL 0x00128562 LEA RDI,[RBX + 0x40] LAB_001f2811: MOV RSI,R15 CALL 0x00164a70 LAB_001f2819: XOR EAX,EAX MOV qword ptr [RBX + 0x60],RAX MOVUPS XMM0,xmmword ptr [R14] MOV qword ptr [R14 + 0x8],RAX MOVUPS xmmword ptr [RBX + 0x58],XMM0 MOV qword ptr [R14],RAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::SetNode::SetNode(minja::Location const&, std::__cxx11::string const&, std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::SetNode::SetNode (SetNode *this,Location *param_1,string *param_2,vector *param_3,shared_ptr *param_4) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_00261520; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_00261f98 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } *(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10); *(int ***)this = &PTR_do_render_00261788; *(SetNode **)(this + 0x20) = this + 0x30; /* try { // try from 001f2805 to 001f280c has its CatchHandler @ 001f2857 */ std::__cxx11::string::_M_construct<char*> (this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); /* try { // try from 001f2811 to 001f2818 has its CatchHandler @ 001f283d */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x40), param_3); *(int8 *)(this + 0x60) = 0; uVar2 = *(int8 *)(param_4 + 8); *(int8 *)(param_4 + 8) = 0; *(int8 *)(this + 0x58) = *(int8 *)param_4; *(int8 *)(this + 0x60) = uVar2; *(int8 *)param_4 = 0; return; }
7,030
LefDefParser::defiSite::setName(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiSite.cpp
void defiSite::setName(const char* name) { int len = 1; char* from = (char*)name; clear(); while (*from++) len++; if (nameSize_ < len) bumpName(len); strcpy(siteName_, defData->DEFCASE(name)); }
O3
cpp
LefDefParser::defiSite::setName(char const*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq (%rdi), %rax testq %rax, %rax je 0x2a0cf movb $0x0, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x30(%r14) movups %xmm0, 0x20(%r14) movl $0x0, 0x40(%r14) cmpb $0x0, (%rbx) je 0x2a0fd movl $0x1, %r12d cmpb $0x0, (%rbx,%r12) leaq 0x1(%r12), %r12 jne 0x2a0ef jmp 0x2a103 movl $0x1, %r12d movq (%r14), %r15 cmpl %r12d, 0x8(%r14) jge 0x2a129 movq %r15, %rdi callq 0x6220 movl %r12d, %edi callq 0x6270 movq %rax, %r15 movq %rax, (%r14) movl %r12d, 0x8(%r14) movb $0x0, (%rax) movq 0x48(%r14), %rdi movq %rbx, %rsi callq 0x18aa0 movq %r15, %rdi movq %rax, %rsi addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 jmp 0x6190 nop
_ZN12LefDefParser8defiSite7setNameEPKc: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov rax, [rdi] test rax, rax jz short loc_2A0CF mov byte ptr [rax], 0 loc_2A0CF: xorps xmm0, xmm0 movups xmmword ptr [r14+30h], xmm0 movups xmmword ptr [r14+20h], xmm0 mov dword ptr [r14+40h], 0 cmp byte ptr [rbx], 0 jz short loc_2A0FD mov r12d, 1 loc_2A0EF: cmp byte ptr [rbx+r12], 0 lea r12, [r12+1] jnz short loc_2A0EF jmp short loc_2A103 loc_2A0FD: mov r12d, 1 loc_2A103: mov r15, [r14] cmp [r14+8], r12d jge short loc_2A129 mov rdi, r15 call _free mov edi, r12d call _malloc mov r15, rax mov [r14], rax mov [r14+8], r12d mov byte ptr [rax], 0 loc_2A129: mov rdi, [r14+48h]; this mov rsi, rbx; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, r15 mov rsi, rax add rsp, 8 pop rbx pop r12 pop r14 pop r15 jmp _strcpy
long long LefDefParser::defiSite::setName(LefDefParser::defiSite *this, const char *a2) { long long v2; // r12 _BYTE *v4; // r15 const char *v5; // rax if ( *(_QWORD *)this ) **(_BYTE **)this = 0; *((_OWORD *)this + 3) = 0LL; *((_OWORD *)this + 2) = 0LL; *((_DWORD *)this + 16) = 0; if ( *a2 ) { v2 = 1LL; while ( a2[v2++] != 0 ) ; } else { LODWORD(v2) = 1; } v4 = *(_BYTE **)this; if ( *((_DWORD *)this + 2) < (int)v2 ) { free(*(_QWORD *)this); v4 = (_BYTE *)malloc((unsigned int)v2); *(_QWORD *)this = v4; *((_DWORD *)this + 2) = v2; *v4 = 0; } v5 = LefDefParser::defrData::DEFCASE(*((LefDefParser::defrData **)this + 9), a2); return strcpy(v4, v5); }
setName: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0012a0cf MOV byte ptr [RAX],0x0 LAB_0012a0cf: XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x30],XMM0 MOVUPS xmmword ptr [R14 + 0x20],XMM0 MOV dword ptr [R14 + 0x40],0x0 CMP byte ptr [RBX],0x0 JZ 0x0012a0fd MOV R12D,0x1 LAB_0012a0ef: CMP byte ptr [RBX + R12*0x1],0x0 LEA R12,[R12 + 0x1] JNZ 0x0012a0ef JMP 0x0012a103 LAB_0012a0fd: MOV R12D,0x1 LAB_0012a103: MOV R15,qword ptr [R14] CMP dword ptr [R14 + 0x8],R12D JGE 0x0012a129 MOV RDI,R15 CALL 0x00106220 MOV EDI,R12D CALL 0x00106270 MOV R15,RAX MOV qword ptr [R14],RAX MOV dword ptr [R14 + 0x8],R12D MOV byte ptr [RAX],0x0 LAB_0012a129: MOV RDI,qword ptr [R14 + 0x48] MOV RSI,RBX CALL 0x00118aa0 MOV RDI,R15 MOV RSI,RAX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 JMP 0x00106190
/* LefDefParser::defiSite::setName(char const*) */ void __thiscall LefDefParser::defiSite::setName(defiSite *this,char *param_1) { char *pcVar1; char *__src; ulong uVar2; if (*(int1 **)this != (int1 *)0x0) { **(int1 **)this = 0; } *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int4 *)(this + 0x40) = 0; if (*param_1 == '\0') { uVar2 = 1; } else { uVar2 = 1; do { pcVar1 = param_1 + uVar2; uVar2 = uVar2 + 1; } while (*pcVar1 != '\0'); } pcVar1 = *(char **)this; if (*(int *)(this + 8) < (int)uVar2) { free(pcVar1); pcVar1 = (char *)malloc(uVar2 & 0xffffffff); *(char **)this = pcVar1; *(int *)(this + 8) = (int)uVar2; *pcVar1 = '\0'; } __src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x48),param_1); strcpy(pcVar1,__src); return; }
7,031
mysql_client_plugin_init
eloqsql/build_O0/libmariadb/libmariadb/ma_client_plugin.c
int mysql_client_plugin_init() { MYSQL mysql; struct st_mysql_client_plugin **builtin; va_list unused; LINT_INIT_STRUCT(unused); if (initialized) return 0; memset(&mysql, 0, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */ pthread_mutex_init(&LOCK_load_client_plugin, NULL); ma_init_alloc_root(&mem_root, 128, 128); memset(&plugin_list, 0, sizeof(plugin_list)); initialized= 1; pthread_mutex_lock(&LOCK_load_client_plugin); for (builtin= mysql_client_builtins; *builtin; builtin++) add_plugin(&mysql, *builtin, 0, 0, unused); pthread_mutex_unlock(&LOCK_load_client_plugin); load_env_plugins(&mysql); return 0; }
O0
c
mysql_client_plugin_init: pushq %rbp movq %rsp, %rbp subq $0x540, %rsp # imm = 0x540 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) leaq -0x530(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x14260 cmpb $0x0, 0x32d2e(%rip) # 0x82c20 je 0x4ff03 movl $0x0, -0x504(%rbp) jmp 0x4ffd4 leaq -0x500(%rbp), %rdi xorl %esi, %esi movl $0x4f8, %edx # imm = 0x4F8 callq 0x14260 leaq 0x32d0b(%rip), %rdi # 0x82c28 xorl %eax, %eax movl %eax, %esi callq 0x14680 leaq 0x32d23(%rip), %rdi # 0x82c50 movl $0x80, %edx movq %rdx, %rsi callq 0x3f0e0 leaq 0x32d4f(%rip), %rdi # 0x82c90 xorl %esi, %esi movl $0x40, %edx callq 0x14260 movb $0x1, 0x32ccc(%rip) # 0x82c20 leaq 0x32ccd(%rip), %rdi # 0x82c28 callq 0x14670 leaq 0x2fe39(%rip), %rax # 0x7fda0 movq %rax, -0x510(%rbp) movq -0x510(%rbp), %rax cmpq $0x0, (%rax) je 0x4ffb2 movq -0x510(%rbp), %rax movq (%rax), %rsi leaq -0x530(%rbp), %r8 leaq -0x500(%rbp), %rdi xorl %eax, %eax movl %eax, %edx xorl %ecx, %ecx callq 0x50010 movq -0x510(%rbp), %rax addq $0x8, %rax movq %rax, -0x510(%rbp) jmp 0x4ff6e leaq 0x32c6f(%rip), %rdi # 0x82c28 callq 0x14320 leaq -0x500(%rbp), %rdi callq 0x50240 movl $0x0, -0x504(%rbp) movl -0x504(%rbp), %eax movl %eax, -0x534(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x50001 movl -0x534(%rbp), %eax addq $0x540, %rsp # imm = 0x540 popq %rbp retq callq 0x144c0 nopw %cs:(%rax,%rax)
mysql_client_plugin_init: push rbp mov rbp, rsp sub rsp, 540h mov rax, fs:28h mov [rbp+var_8], rax lea rdi, [rbp+var_530] xor esi, esi mov edx, 18h call _memset cmp cs:initialized, 0 jz short loc_4FF03 mov [rbp+var_504], 0 jmp loc_4FFD4 loc_4FF03: lea rdi, [rbp+var_500] xor esi, esi mov edx, 4F8h call _memset lea rdi, LOCK_load_client_plugin xor eax, eax mov esi, eax call _pthread_mutex_init lea rdi, mem_root mov edx, 80h mov rsi, rdx call ma_init_alloc_root lea rdi, plugin_list xor esi, esi mov edx, 40h ; '@' call _memset mov cs:initialized, 1 lea rdi, LOCK_load_client_plugin call _pthread_mutex_lock lea rax, mysql_client_builtins mov [rbp+var_510], rax loc_4FF6E: mov rax, [rbp+var_510] cmp qword ptr [rax], 0 jz short loc_4FFB2 mov rax, [rbp+var_510] mov rsi, [rax] lea r8, [rbp+var_530] lea rdi, [rbp+var_500] xor eax, eax mov edx, eax xor ecx, ecx call add_plugin mov rax, [rbp+var_510] add rax, 8 mov [rbp+var_510], rax jmp short loc_4FF6E loc_4FFB2: lea rdi, LOCK_load_client_plugin call _pthread_mutex_unlock lea rdi, [rbp+var_500] call load_env_plugins mov [rbp+var_504], 0 loc_4FFD4: mov eax, [rbp+var_504] mov [rbp+var_534], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_50001 mov eax, [rbp+var_534] add rsp, 540h pop rbp retn loc_50001: call ___stack_chk_fail
long long mysql_client_plugin_init() { _BYTE v1[32]; // [rsp+10h] [rbp-530h] BYREF _QWORD *i; // [rsp+30h] [rbp-510h] _BYTE v4[1272]; // [rsp+40h] [rbp-500h] BYREF unsigned long long v5; // [rsp+538h] [rbp-8h] v5 = __readfsqword(0x28u); memset(v1, 0LL, 24LL); if ( initialized ) { return 0; } else { memset(v4, 0LL, sizeof(v4)); pthread_mutex_init(&LOCK_load_client_plugin, 0LL); ma_init_alloc_root(mem_root, 128LL, 128LL); memset(&plugin_list, 0LL, 64LL); initialized = 1; pthread_mutex_lock(&LOCK_load_client_plugin); for ( i = &mysql_client_builtins; *i; ++i ) add_plugin(v4, *i, 0LL, 0LL, v1); pthread_mutex_unlock(&LOCK_load_client_plugin); load_env_plugins(v4); return 0; } }
mysql_client_plugin_init: PUSH RBP MOV RBP,RSP SUB RSP,0x540 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX LEA RDI,[RBP + -0x530] XOR ESI,ESI MOV EDX,0x18 CALL 0x00114260 CMP byte ptr [0x00182c20],0x0 JZ 0x0014ff03 MOV dword ptr [RBP + -0x504],0x0 JMP 0x0014ffd4 LAB_0014ff03: LEA RDI,[RBP + -0x500] XOR ESI,ESI MOV EDX,0x4f8 CALL 0x00114260 LEA RDI,[0x182c28] XOR EAX,EAX MOV ESI,EAX CALL 0x00114680 LEA RDI,[0x182c50] MOV EDX,0x80 MOV RSI,RDX CALL 0x0013f0e0 LEA RDI,[0x182c90] XOR ESI,ESI MOV EDX,0x40 CALL 0x00114260 MOV byte ptr [0x00182c20],0x1 LEA RDI,[0x182c28] CALL 0x00114670 LEA RAX,[0x17fda0] MOV qword ptr [RBP + -0x510],RAX LAB_0014ff6e: MOV RAX,qword ptr [RBP + -0x510] CMP qword ptr [RAX],0x0 JZ 0x0014ffb2 MOV RAX,qword ptr [RBP + -0x510] MOV RSI,qword ptr [RAX] LEA R8,[RBP + -0x530] LEA RDI,[RBP + -0x500] XOR EAX,EAX MOV EDX,EAX XOR ECX,ECX CALL 0x00150010 MOV RAX,qword ptr [RBP + -0x510] ADD RAX,0x8 MOV qword ptr [RBP + -0x510],RAX JMP 0x0014ff6e LAB_0014ffb2: LEA RDI,[0x182c28] CALL 0x00114320 LEA RDI,[RBP + -0x500] CALL 0x00150240 MOV dword ptr [RBP + -0x504],0x0 LAB_0014ffd4: MOV EAX,dword ptr [RBP + -0x504] MOV dword ptr [RBP + -0x534],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00150001 MOV EAX,dword ptr [RBP + -0x534] ADD RSP,0x540 POP RBP RET LAB_00150001: CALL 0x001144c0
int4 mysql_client_plugin_init(void) { long in_FS_OFFSET; int1 local_538 [32]; int **local_518; int4 local_50c; int1 local_508 [1272]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); memset(local_538,0,0x18); if (initialized == '\0') { memset(local_508,0,0x4f8); pthread_mutex_init((pthread_mutex_t *)LOCK_load_client_plugin,(pthread_mutexattr_t *)0x0); ma_init_alloc_root(mem_root); memset(plugin_list,0,0x40); initialized = '\x01'; pthread_mutex_lock((pthread_mutex_t *)LOCK_load_client_plugin); for (local_518 = &mysql_client_builtins; *local_518 != (int *)0x0; local_518 = local_518 + 1) { add_plugin(local_508,*local_518,0,0,local_538); } pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin); load_env_plugins(local_508); } local_50c = 0; if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return 0; }
7,032
pcmp
eloqsql/strings/ctype-simple.c
static int pcmp(const void * f, const void * s) { const uni_idx *F= (const uni_idx*) f; const uni_idx *S= (const uni_idx*) s; int res; if (!(res=((S->nchars)-(F->nchars)))) res=((F->uidx.from)-(S->uidx.to)); return res; }
O3
c
pcmp: pushq %rbp movq %rsp, %rbp movl (%rsi), %eax subl (%rdi), %eax jne 0xb78e1 movzwl 0x8(%rdi), %eax movzwl 0xa(%rsi), %ecx subl %ecx, %eax popq %rbp retq nop
pcmp: push rbp mov rbp, rsp mov eax, [rsi] sub eax, [rdi] jnz short loc_B78E1 movzx eax, word ptr [rdi+8] movzx ecx, word ptr [rsi+0Ah] sub eax, ecx loc_B78E1: pop rbp retn
long long pcmp(long long a1, long long a2) { long long result; // rax result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1); if ( *(_DWORD *)a2 == *(_DWORD *)a1 ) return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10); return result; }
pcmp: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RSI] SUB EAX,dword ptr [RDI] JNZ 0x001b78e1 MOVZX EAX,word ptr [RDI + 0x8] MOVZX ECX,word ptr [RSI + 0xa] SUB EAX,ECX LAB_001b78e1: POP RBP RET
int pcmp(int *param_1,int *param_2) { int iVar1; iVar1 = *param_2 - *param_1; if (iVar1 == 0) { iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10); } return iVar1; }
7,033
ma_init_block_record_data
eloqsql/storage/maria/ma_blockrec.c
void _ma_init_block_record_data(void) { uint i; bzero(total_header_size, sizeof(total_header_size)); total_header_size[0]= FLAG_SIZE; /* Flag uchar */ for (i= 1; i < array_elements(total_header_size); i++) { uint size= FLAG_SIZE, j, bit; for (j= 0; (bit= (1 << j)) <= i; j++) { if (i & bit) size+= header_sizes[j]; } total_header_size[i]= size; } }
O3
c
ma_init_block_record_data: pushq %rbp movq %rsp, %rbp xorps %xmm0, %xmm0 movaps %xmm0, 0x3c0236(%rip) # 0x408b70 movb $0x1, 0x3c022f(%rip) # 0x408b70 movl $0x1, %eax leaq 0x3c0223(%rip), %rdx # 0x408b70 leaq 0xa1bb8(%rip), %rsi # 0xea50c movb $0x1, %dil xorl %ecx, %ecx movl $0x1, %r8d testl %eax, %r8d je 0x4896b movl %ecx, %r8d addb (%r8,%rsi), %dil incl %ecx movl $0x1, %r8d shll %cl, %r8d cmpq %r8, %rax jae 0x4895f movb %dil, (%rax,%rdx) incq %rax cmpq $0x10, %rax jne 0x48954 popq %rbp retq
_ma_init_block_record_data: push rbp mov rbp, rsp xorps xmm0, xmm0 movaps cs:total_header_size, xmm0 mov byte ptr cs:total_header_size, 1 mov eax, 1 lea rdx, total_header_size lea rsi, header_sizes loc_48954: mov dil, 1 xor ecx, ecx mov r8d, 1 loc_4895F: test r8d, eax jz short loc_4896B mov r8d, ecx add dil, [r8+rsi] loc_4896B: inc ecx mov r8d, 1 shl r8d, cl cmp rax, r8 jnb short loc_4895F mov [rax+rdx], dil inc rax cmp rax, 10h jnz short loc_48954 pop rbp retn
unsigned long long ma_init_block_record_data() { unsigned long long result; // rax char v1; // di int v2; // ecx unsigned long long v3; // r8 total_header_size = 0LL; LOBYTE(total_header_size) = 1; for ( result = 1LL; result != 16; ++result ) { v1 = 1; v2 = 0; LODWORD(v3) = 1; do { if ( ((unsigned int)result & (unsigned int)v3) != 0 ) v1 += header_sizes[v2]; v3 = (unsigned int)(1 << ++v2); } while ( result >= v3 ); *((_BYTE *)&total_header_size + result) = v1; } return result; }
_ma_init_block_record_data: PUSH RBP MOV RBP,RSP XORPS XMM0,XMM0 MOVAPS xmmword ptr [0x00508b70],XMM0 MOV byte ptr [0x00508b70],0x1 MOV EAX,0x1 LEA RDX,[0x508b70] LEA RSI,[0x1ea50c] LAB_00148954: MOV DIL,0x1 XOR ECX,ECX MOV R8D,0x1 LAB_0014895f: TEST R8D,EAX JZ 0x0014896b MOV R8D,ECX ADD DIL,byte ptr [R8 + RSI*0x1] LAB_0014896b: INC ECX MOV R8D,0x1 SHL R8D,CL CMP RAX,R8 JNC 0x0014895f MOV byte ptr [RAX + RDX*0x1],DIL INC RAX CMP RAX,0x10 JNZ 0x00148954 POP RBP RET
void _ma_init_block_record_data(void) { ulong uVar1; uint uVar2; ulong uVar3; char cVar4; ulong uVar5; total_header_size._8_8_ = 0; total_header_size._0_8_ = 1; uVar1 = 1; do { cVar4 = '\x01'; uVar3 = 0; uVar5 = 1; do { if (((uint)uVar5 & (uint)uVar1) != 0) { cVar4 = cVar4 + (&header_sizes)[uVar3]; } uVar2 = (int)uVar3 + 1; uVar3 = (ulong)uVar2; uVar5 = (ulong)(uint)(1 << ((byte)uVar2 & 0x1f)); } while (uVar5 <= uVar1); total_header_size[uVar1] = cVar4; uVar1 = uVar1 + 1; } while (uVar1 != 0x10); return; }
7,034
ft_stroker_outside
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-ft-stroker.c
static PVG_FT_Error ft_stroker_outside( PVG_FT_Stroker stroker, PVG_FT_Int side, PVG_FT_Fixed line_length ) { PVG_FT_StrokeBorder border = stroker->borders + side; PVG_FT_Error error; PVG_FT_Angle rotate; if ( stroker->line_join == PVG_FT_STROKER_LINEJOIN_ROUND ) error = ft_stroker_arcto( stroker, side ); else { /* this is a mitered (pointed) or beveled (truncated) corner */ PVG_FT_Fixed radius = stroker->radius; PVG_FT_Vector sigma = {0, 0}; PVG_FT_Angle theta = 0, phi = 0; PVG_FT_Bool bevel, fixed_bevel; rotate = PVG_FT_SIDE_TO_ROTATE( side ); bevel = PVG_FT_BOOL( stroker->line_join == PVG_FT_STROKER_LINEJOIN_BEVEL ); fixed_bevel = PVG_FT_BOOL( stroker->line_join != PVG_FT_STROKER_LINEJOIN_MITER_VARIABLE ); /* check miter limit first */ if ( !bevel ) { theta = PVG_FT_Angle_Diff( stroker->angle_in, stroker->angle_out ) / 2; if ( theta == PVG_FT_ANGLE_PI2 ) theta = -rotate; phi = stroker->angle_in + theta + rotate; PVG_FT_Vector_From_Polar( &sigma, stroker->miter_limit, theta ); /* is miter limit exceeded? */ if ( sigma.x < 0x10000L ) { /* don't create variable bevels for very small deviations; */ /* FT_Sin(x) = 0 for x <= 57 */ if ( fixed_bevel || ft_pos_abs( theta ) > 57 ) bevel = TRUE; } } if ( bevel ) /* this is a bevel (broken angle) */ { if ( fixed_bevel ) { /* the outer corners are simply joined together */ PVG_FT_Vector delta; /* add bevel */ PVG_FT_Vector_From_Polar( &delta, radius, stroker->angle_out + rotate ); delta.x += stroker->center.x; delta.y += stroker->center.y; border->movable = FALSE; error = ft_stroke_border_lineto( border, &delta, FALSE ); } else /* variable bevel or clipped miter */ { /* the miter is truncated */ PVG_FT_Vector middle, delta; PVG_FT_Fixed coef; /* compute middle point and first angle point */ PVG_FT_Vector_From_Polar( &middle, PVG_FT_MulFix( radius, stroker->miter_limit ), phi ); coef = PVG_FT_DivFix( 0x10000L - sigma.x, sigma.y ); delta.x = PVG_FT_MulFix( middle.y, coef ); delta.y = PVG_FT_MulFix( -middle.x, coef ); middle.x += stroker->center.x; middle.y += stroker->center.y; delta.x += middle.x; delta.y += middle.y; error = ft_stroke_border_lineto( border, &delta, FALSE ); if ( error ) goto Exit; /* compute second angle point */ delta.x = middle.x - delta.x + middle.x; delta.y = middle.y - delta.y + middle.y; error = ft_stroke_border_lineto( border, &delta, FALSE ); if ( error ) goto Exit; /* finally, add an end point; only needed if not lineto */ /* (line_length is zero for curves) */ if ( line_length == 0 ) { PVG_FT_Vector_From_Polar( &delta, radius, stroker->angle_out + rotate ); delta.x += stroker->center.x; delta.y += stroker->center.y; error = ft_stroke_border_lineto( border, &delta, FALSE ); } } } else /* this is a miter (intersection) */ { PVG_FT_Fixed length; PVG_FT_Vector delta; length = PVG_FT_MulDiv( stroker->radius, stroker->miter_limit, sigma.x ); PVG_FT_Vector_From_Polar( &delta, length, phi ); delta.x += stroker->center.x; delta.y += stroker->center.y; error = ft_stroke_border_lineto( border, &delta, FALSE ); if ( error ) goto Exit; /* now add an end point; only needed if not lineto */ /* (line_length is zero for curves) */ if ( line_length == 0 ) { PVG_FT_Vector_From_Polar( &delta, stroker->radius, stroker->angle_out + rotate ); delta.x += stroker->center.x; delta.y += stroker->center.y; error = ft_stroke_border_lineto( border, &delta, FALSE ); } } } Exit: return error; }
O0
c
ft_stroker_outside: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rax movslq -0xc(%rbp), %rcx imulq $0x28, %rcx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, 0x58(%rax) jne 0x85d1b movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi callq 0x86bb0 movl %eax, -0x24(%rbp) jmp 0x860f1 movq -0x8(%rbp), %rax movq 0x68(%rax), %rax movq %rax, -0x38(%rbp) leaq -0x48(%rbp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0xb1d0 movq $0x0, -0x50(%rbp) movq $0x0, -0x58(%rbp) movslq -0xc(%rbp), %rax imulq $0xb40000, %rax, %rcx # imm = 0xB40000 movl $0x5a0000, %eax # imm = 0x5A0000 subq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax cmpl $0x1, 0x58(%rax) sete %al andb $0x1, %al movzbl %al, %eax movb %al, -0x59(%rbp) movq -0x8(%rbp), %rax cmpl $0x2, 0x58(%rax) setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x5a(%rbp) cmpb $0x0, -0x59(%rbp) jne 0x85e16 movq -0x8(%rbp), %rax movq (%rax), %rdi movq -0x8(%rbp), %rax movq 0x8(%rax), %rsi callq 0x8b5b0 movl $0x2, %ecx cqto idivq %rcx movq %rax, -0x50(%rbp) cmpq $0x5a0000, -0x50(%rbp) # imm = 0x5A0000 jne 0x85dc4 xorl %eax, %eax subq -0x30(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax addq -0x50(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x8(%rbp), %rax movq 0x60(%rax), %rsi movq -0x50(%rbp), %rdx leaq -0x48(%rbp), %rdi callq 0x8b570 cmpq $0x10000, -0x48(%rbp) # imm = 0x10000 jge 0x85e14 movzbl -0x5a(%rbp), %eax cmpl $0x0, %eax jne 0x85e0e movq -0x50(%rbp), %rdi callq 0x842a0 cmpq $0x39, %rax jle 0x85e12 movb $0x1, -0x59(%rbp) jmp 0x85e14 jmp 0x85e16 cmpb $0x0, -0x59(%rbp) je 0x86005 cmpb $0x0, -0x5a(%rbp) je 0x85e7e movq -0x38(%rbp), %rsi movq -0x8(%rbp), %rax movq 0x8(%rax), %rdx addq -0x30(%rbp), %rdx leaq -0x70(%rbp), %rdi callq 0x8b570 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax addq -0x70(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax addq -0x68(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x20(%rbp), %rax movb $0x0, 0x18(%rax) movq -0x20(%rbp), %rdi leaq -0x70(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) jmp 0x86000 movq -0x38(%rbp), %rdi movq -0x8(%rbp), %rax movq 0x60(%rax), %rsi callq 0x8aa30 movq %rax, %rsi movq -0x58(%rbp), %rdx leaq -0x80(%rbp), %rdi callq 0x8b570 movl $0x10000, %edi # imm = 0x10000 subq -0x48(%rbp), %rdi movq -0x40(%rbp), %rsi callq 0x8ab90 movq %rax, -0x98(%rbp) movq -0x78(%rbp), %rdi movq -0x98(%rbp), %rsi callq 0x8aa30 movq %rax, -0x90(%rbp) xorl %eax, %eax movl %eax, %edi subq -0x80(%rbp), %rdi movq -0x98(%rbp), %rsi callq 0x8aa30 movq %rax, -0x88(%rbp) movq -0x8(%rbp), %rax movq 0x10(%rax), %rax addq -0x80(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax addq -0x78(%rbp), %rax movq %rax, -0x78(%rbp) movq -0x80(%rbp), %rax addq -0x90(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x78(%rbp), %rax addq -0x88(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x20(%rbp), %rdi leaq -0x90(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) cmpl $0x0, -0x24(%rbp) je 0x85f4e jmp 0x860f3 movq -0x80(%rbp), %rax subq -0x90(%rbp), %rax addq -0x80(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x78(%rbp), %rax subq -0x88(%rbp), %rax addq -0x78(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x20(%rbp), %rdi leaq -0x90(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) cmpl $0x0, -0x24(%rbp) je 0x85f9a jmp 0x860f3 cmpq $0x0, -0x18(%rbp) jne 0x85ffe movq -0x38(%rbp), %rsi movq -0x8(%rbp), %rax movq 0x8(%rax), %rdx addq -0x30(%rbp), %rdx leaq -0x90(%rbp), %rdi callq 0x8b570 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax addq -0x90(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax addq -0x88(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x20(%rbp), %rdi leaq -0x90(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) jmp 0x86000 jmp 0x860ef movq -0x8(%rbp), %rax movq 0x68(%rax), %rdi movq -0x8(%rbp), %rax movq 0x60(%rax), %rsi movq -0x48(%rbp), %rdx callq 0x8aac0 movq %rax, -0xa0(%rbp) movq -0xa0(%rbp), %rsi movq -0x58(%rbp), %rdx leaq -0xb0(%rbp), %rdi callq 0x8b570 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax addq -0xb0(%rbp), %rax movq %rax, -0xb0(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax addq -0xa8(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0x20(%rbp), %rdi leaq -0xb0(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) cmpl $0x0, -0x24(%rbp) je 0x86085 jmp 0x860f3 cmpq $0x0, -0x18(%rbp) jne 0x860ed movq -0x8(%rbp), %rax movq 0x68(%rax), %rsi movq -0x8(%rbp), %rax movq 0x8(%rax), %rdx addq -0x30(%rbp), %rdx leaq -0xb0(%rbp), %rdi callq 0x8b570 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax addq -0xb0(%rbp), %rax movq %rax, -0xb0(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax addq -0xa8(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0x20(%rbp), %rdi leaq -0xb0(%rbp), %rsi xorl %edx, %edx callq 0x836b0 movl %eax, -0x24(%rbp) jmp 0x860ef jmp 0x860f1 jmp 0x860f3 movl -0x24(%rbp), %eax addq $0xb0, %rsp popq %rbp retq nop
ft_stroker_outside: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov rax, [rbp+var_8] add rax, 70h ; 'p' movsxd rcx, [rbp+var_C] imul rcx, 28h ; '(' add rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 0 jnz short loc_85D1B mov rdi, [rbp+var_8] mov esi, [rbp+var_C] call ft_stroker_arcto mov [rbp+var_24], eax jmp loc_860F1 loc_85D1B: mov rax, [rbp+var_8] mov rax, [rax+68h] mov [rbp+var_38], rax lea rdi, [rbp+var_48] xor esi, esi mov edx, 10h call _memset mov [rbp+var_50], 0 mov [rbp+var_58], 0 movsxd rax, [rbp+var_C] imul rcx, rax, 0B40000h mov eax, 5A0000h sub rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 1 setz al and al, 1 movzx eax, al mov [rbp+var_59], al mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 2 setnz al and al, 1 movzx eax, al mov [rbp+var_5A], al cmp [rbp+var_59], 0 jnz loc_85E16 mov rax, [rbp+var_8] mov rdi, [rax] mov rax, [rbp+var_8] mov rsi, [rax+8] call PVG_FT_Angle_Diff mov ecx, 2 cqo idiv rcx mov [rbp+var_50], rax cmp [rbp+var_50], 5A0000h jnz short loc_85DC4 xor eax, eax sub rax, [rbp+var_30] mov [rbp+var_50], rax loc_85DC4: mov rax, [rbp+var_8] mov rax, [rax] add rax, [rbp+var_50] add rax, [rbp+var_30] mov [rbp+var_58], rax mov rax, [rbp+var_8] mov rsi, [rax+60h] mov rdx, [rbp+var_50] lea rdi, [rbp+var_48] call PVG_FT_Vector_From_Polar cmp [rbp+var_48], offset _ZNSt15__uniq_ptr_implIN7lunasvg7SVGNodeESt14default_deleteIS1_EE10_M_deleterEv; std::__uniq_ptr_impl<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::_M_deleter(void) jge short loc_85E14 movzx eax, [rbp+var_5A] cmp eax, 0 jnz short loc_85E0E mov rdi, [rbp+var_50] call ft_pos_abs cmp rax, 39h ; '9' jle short loc_85E12 loc_85E0E: mov [rbp+var_59], 1 loc_85E12: jmp short $+2 loc_85E14: jmp short $+2 loc_85E16: cmp [rbp+var_59], 0 jz loc_86005 cmp [rbp+var_5A], 0 jz short loc_85E7E mov rsi, [rbp+var_38] mov rax, [rbp+var_8] mov rdx, [rax+8] add rdx, [rbp+var_30] lea rdi, [rbp+var_70] call PVG_FT_Vector_From_Polar mov rax, [rbp+var_8] mov rax, [rax+10h] add rax, [rbp+var_70] mov [rbp+var_70], rax mov rax, [rbp+var_8] mov rax, [rax+18h] add rax, [rbp+var_68] mov [rbp+var_68], rax mov rax, [rbp+var_20] mov byte ptr [rax+18h], 0 mov rdi, [rbp+var_20] lea rsi, [rbp+var_70] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax jmp loc_86000 loc_85E7E: mov rdi, [rbp+var_38] mov rax, [rbp+var_8] mov rsi, [rax+60h] call PVG_FT_MulFix mov rsi, rax mov rdx, [rbp+var_58] lea rdi, [rbp+var_80] call PVG_FT_Vector_From_Polar mov edi, offset _ZNSt15__uniq_ptr_implIN7lunasvg7SVGNodeESt14default_deleteIS1_EE10_M_deleterEv; std::__uniq_ptr_impl<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::_M_deleter(void) sub rdi, [rbp+var_48] mov rsi, [rbp+var_40] call PVG_FT_DivFix mov [rbp+var_98], rax mov rdi, [rbp+var_78] mov rsi, [rbp+var_98] call PVG_FT_MulFix mov [rbp+var_90], rax xor eax, eax mov edi, eax sub rdi, [rbp+var_80] mov rsi, [rbp+var_98] call PVG_FT_MulFix mov [rbp+var_88], rax mov rax, [rbp+var_8] mov rax, [rax+10h] add rax, [rbp+var_80] mov [rbp+var_80], rax mov rax, [rbp+var_8] mov rax, [rax+18h] add rax, [rbp+var_78] mov [rbp+var_78], rax mov rax, [rbp+var_80] add rax, [rbp+var_90] mov [rbp+var_90], rax mov rax, [rbp+var_78] add rax, [rbp+var_88] mov [rbp+var_88], rax mov rdi, [rbp+var_20] lea rsi, [rbp+var_90] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax cmp [rbp+var_24], 0 jz short loc_85F4E jmp loc_860F3 loc_85F4E: mov rax, [rbp+var_80] sub rax, [rbp+var_90] add rax, [rbp+var_80] mov [rbp+var_90], rax mov rax, [rbp+var_78] sub rax, [rbp+var_88] add rax, [rbp+var_78] mov [rbp+var_88], rax mov rdi, [rbp+var_20] lea rsi, [rbp+var_90] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax cmp [rbp+var_24], 0 jz short loc_85F9A jmp loc_860F3 loc_85F9A: cmp [rbp+var_18], 0 jnz short loc_85FFE mov rsi, [rbp+var_38] mov rax, [rbp+var_8] mov rdx, [rax+8] add rdx, [rbp+var_30] lea rdi, [rbp+var_90] call PVG_FT_Vector_From_Polar mov rax, [rbp+var_8] mov rax, [rax+10h] add rax, [rbp+var_90] mov [rbp+var_90], rax mov rax, [rbp+var_8] mov rax, [rax+18h] add rax, [rbp+var_88] mov [rbp+var_88], rax mov rdi, [rbp+var_20] lea rsi, [rbp+var_90] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax loc_85FFE: jmp short $+2 loc_86000: jmp loc_860EF loc_86005: mov rax, [rbp+var_8] mov rdi, [rax+68h] mov rax, [rbp+var_8] mov rsi, [rax+60h] mov rdx, [rbp+var_48] call PVG_FT_MulDiv mov [rbp+var_A0], rax mov rsi, [rbp+var_A0] mov rdx, [rbp+var_58] lea rdi, [rbp+var_B0] call PVG_FT_Vector_From_Polar mov rax, [rbp+var_8] mov rax, [rax+10h] add rax, [rbp+var_B0] mov [rbp+var_B0], rax mov rax, [rbp+var_8] mov rax, [rax+18h] add rax, [rbp+var_A8] mov [rbp+var_A8], rax mov rdi, [rbp+var_20] lea rsi, [rbp+var_B0] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax cmp [rbp+var_24], 0 jz short loc_86085 jmp short loc_860F3 loc_86085: cmp [rbp+var_18], 0 jnz short loc_860ED mov rax, [rbp+var_8] mov rsi, [rax+68h] mov rax, [rbp+var_8] mov rdx, [rax+8] add rdx, [rbp+var_30] lea rdi, [rbp+var_B0] call PVG_FT_Vector_From_Polar mov rax, [rbp+var_8] mov rax, [rax+10h] add rax, [rbp+var_B0] mov [rbp+var_B0], rax mov rax, [rbp+var_8] mov rax, [rax+18h] add rax, [rbp+var_A8] mov [rbp+var_A8], rax mov rdi, [rbp+var_20] lea rsi, [rbp+var_B0] xor edx, edx call ft_stroke_border_lineto mov [rbp+var_24], eax loc_860ED: jmp short $+2 loc_860EF: jmp short $+2 loc_860F1: jmp short $+2 loc_860F3: mov eax, [rbp+var_24] add rsp, 0B0h pop rbp retn
long long ft_stroker_outside(long long a1, unsigned int a2, long long a3) { long long v3; // rax long long v5; // [rsp+0h] [rbp-B0h] BYREF long long v6; // [rsp+8h] [rbp-A8h] long long v7; // [rsp+10h] [rbp-A0h] long long v8; // [rsp+18h] [rbp-98h] long long v9; // [rsp+20h] [rbp-90h] BYREF long long v10; // [rsp+28h] [rbp-88h] long long v11; // [rsp+30h] [rbp-80h] BYREF long long v12; // [rsp+38h] [rbp-78h] long long v13; // [rsp+40h] [rbp-70h] BYREF long long v14; // [rsp+48h] [rbp-68h] bool v15; // [rsp+56h] [rbp-5Ah] bool v16; // [rsp+57h] [rbp-59h] long long v17; // [rsp+58h] [rbp-58h] long long v18; // [rsp+60h] [rbp-50h] _QWORD v19[2]; // [rsp+68h] [rbp-48h] BYREF long long v20; // [rsp+78h] [rbp-38h] long long v21; // [rsp+80h] [rbp-30h] unsigned int v22; // [rsp+8Ch] [rbp-24h] unsigned int *v23; // [rsp+90h] [rbp-20h] long long v24; // [rsp+98h] [rbp-18h] unsigned int v25; // [rsp+A4h] [rbp-Ch] long long v26; // [rsp+A8h] [rbp-8h] v26 = a1; v25 = a2; v24 = a3; v23 = (unsigned int *)(40LL * (int)a2 + a1 + 112); if ( *(_DWORD *)(a1 + 88) ) { v20 = *(_QWORD *)(v26 + 104); memset(v19, 0LL, sizeof(v19)); v18 = 0LL; v17 = 0LL; v21 = 5898240 - 11796480LL * (int)v25; v16 = *(_DWORD *)(v26 + 88) == 1; v15 = *(_DWORD *)(v26 + 88) != 2; if ( !v16 ) { v18 = PVG_FT_Angle_Diff(*(_QWORD *)v26, *(_QWORD *)(v26 + 8)) / 2; if ( v18 == 5898240 ) v18 = -v21; v17 = v21 + v18 + *(_QWORD *)v26; PVG_FT_Vector_From_Polar(v19, *(_QWORD *)(v26 + 96), v18); if ( v19[0] < (long long)std::__uniq_ptr_impl<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::_M_deleter && (v15 || ft_pos_abs(v18) > 57) ) { v16 = 1; } } if ( v16 ) { if ( v15 ) { PVG_FT_Vector_From_Polar(&v13, v20, v21 + *(_QWORD *)(v26 + 8)); v13 += *(_QWORD *)(v26 + 16); v14 += *(_QWORD *)(v26 + 24); *((_BYTE *)v23 + 24) = 0; return (unsigned int)ft_stroke_border_lineto(v23, &v13, 0); } else { v3 = PVG_FT_MulFix(v20, *(_QWORD *)(v26 + 96)); PVG_FT_Vector_From_Polar(&v11, v3, v17); v8 = PVG_FT_DivFix( (char *)std::__uniq_ptr_impl<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>::_M_deleter - v19[0], v19[1]); v9 = PVG_FT_MulFix(v12, v8); v10 = PVG_FT_MulFix(-v11, v8); v11 += *(_QWORD *)(v26 + 16); v12 += *(_QWORD *)(v26 + 24); v9 += v11; v10 += v12; v22 = ft_stroke_border_lineto(v23, &v9, 0); if ( !v22 ) { v9 = v11 + v11 - v9; v10 = v12 + v12 - v10; v22 = ft_stroke_border_lineto(v23, &v9, 0); if ( !v22 && !v24 ) { PVG_FT_Vector_From_Polar(&v9, v20, v21 + *(_QWORD *)(v26 + 8)); v9 += *(_QWORD *)(v26 + 16); v10 += *(_QWORD *)(v26 + 24); return (unsigned int)ft_stroke_border_lineto(v23, &v9, 0); } } } } else { v7 = PVG_FT_MulDiv(*(_QWORD *)(v26 + 104), *(_QWORD *)(v26 + 96), v19[0]); PVG_FT_Vector_From_Polar(&v5, v7, v17); v5 += *(_QWORD *)(v26 + 16); v6 += *(_QWORD *)(v26 + 24); v22 = ft_stroke_border_lineto(v23, &v5, 0); if ( !v22 && !v24 ) { PVG_FT_Vector_From_Polar(&v5, *(_QWORD *)(v26 + 104), v21 + *(_QWORD *)(v26 + 8)); v5 += *(_QWORD *)(v26 + 16); v6 += *(_QWORD *)(v26 + 24); return (unsigned int)ft_stroke_border_lineto(v23, &v5, 0); } } } else { return (unsigned int)ft_stroker_arcto(v26, v25); } return v22; }
ft_stroker_outside: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x70 MOVSXD RCX,dword ptr [RBP + -0xc] IMUL RCX,RCX,0x28 ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x0 JNZ 0x00185d1b MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] CALL 0x00186bb0 MOV dword ptr [RBP + -0x24],EAX JMP 0x001860f1 LAB_00185d1b: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [RBP + -0x38],RAX LEA RDI,[RBP + -0x48] XOR ESI,ESI MOV EDX,0x10 CALL 0x0010b1d0 MOV qword ptr [RBP + -0x50],0x0 MOV qword ptr [RBP + -0x58],0x0 MOVSXD RAX,dword ptr [RBP + -0xc] IMUL RCX,RAX,0xb40000 MOV EAX,0x5a0000 SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x1 SETZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x59],AL MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x2 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x5a],AL CMP byte ptr [RBP + -0x59],0x0 JNZ 0x00185e16 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x8] CALL 0x0018b5b0 MOV ECX,0x2 CQO IDIV RCX MOV qword ptr [RBP + -0x50],RAX CMP qword ptr [RBP + -0x50],0x5a0000 JNZ 0x00185dc4 XOR EAX,EAX SUB RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x50],RAX LAB_00185dc4: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] ADD RAX,qword ptr [RBP + -0x50] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x60] MOV RDX,qword ptr [RBP + -0x50] LEA RDI,[RBP + -0x48] CALL 0x0018b570 CMP qword ptr [RBP + -0x48],0x10000 JGE 0x00185e14 MOVZX EAX,byte ptr [RBP + -0x5a] CMP EAX,0x0 JNZ 0x00185e0e MOV RDI,qword ptr [RBP + -0x50] CALL 0x001842a0 CMP RAX,0x39 JLE 0x00185e12 LAB_00185e0e: MOV byte ptr [RBP + -0x59],0x1 LAB_00185e12: JMP 0x00185e14 LAB_00185e14: JMP 0x00185e16 LAB_00185e16: CMP byte ptr [RBP + -0x59],0x0 JZ 0x00186005 CMP byte ptr [RBP + -0x5a],0x0 JZ 0x00185e7e MOV RSI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,qword ptr [RBP + -0x30] LEA RDI,[RBP + -0x70] CALL 0x0018b570 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0x68] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x18],0x0 MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x70] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX JMP 0x00186000 LAB_00185e7e: MOV RDI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x60] CALL 0x0018aa30 MOV RSI,RAX MOV RDX,qword ptr [RBP + -0x58] LEA RDI,[RBP + -0x80] CALL 0x0018b570 MOV EDI,0x10000 SUB RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] CALL 0x0018ab90 MOV qword ptr [RBP + -0x98],RAX MOV RDI,qword ptr [RBP + -0x78] MOV RSI,qword ptr [RBP + -0x98] CALL 0x0018aa30 MOV qword ptr [RBP + -0x90],RAX XOR EAX,EAX MOV EDI,EAX SUB RDI,qword ptr [RBP + -0x80] MOV RSI,qword ptr [RBP + -0x98] CALL 0x0018aa30 MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x80] ADD RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x78] ADD RAX,qword ptr [RBP + -0x88] MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x90] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x0 JZ 0x00185f4e JMP 0x001860f3 LAB_00185f4e: MOV RAX,qword ptr [RBP + -0x80] SUB RAX,qword ptr [RBP + -0x90] ADD RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x78] SUB RAX,qword ptr [RBP + -0x88] ADD RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x90] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x0 JZ 0x00185f9a JMP 0x001860f3 LAB_00185f9a: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x00185ffe MOV RSI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,qword ptr [RBP + -0x30] LEA RDI,[RBP + -0x90] CALL 0x0018b570 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0x90] MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0x88] MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x90] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX LAB_00185ffe: JMP 0x00186000 LAB_00186000: JMP 0x001860ef LAB_00186005: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x68] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x60] MOV RDX,qword ptr [RBP + -0x48] CALL 0x0018aac0 MOV qword ptr [RBP + -0xa0],RAX MOV RSI,qword ptr [RBP + -0xa0] MOV RDX,qword ptr [RBP + -0x58] LEA RDI,[RBP + -0xb0] CALL 0x0018b570 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0xb0] MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0xa8],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0xb0] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x0 JZ 0x00186085 JMP 0x001860f3 LAB_00186085: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001860ed MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x68] MOV RAX,qword ptr [RBP + -0x8] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,qword ptr [RBP + -0x30] LEA RDI,[RBP + -0xb0] CALL 0x0018b570 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] ADD RAX,qword ptr [RBP + -0xb0] MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] ADD RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0xa8],RAX MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0xb0] XOR EDX,EDX CALL 0x001836b0 MOV dword ptr [RBP + -0x24],EAX LAB_001860ed: JMP 0x001860ef LAB_001860ef: JMP 0x001860f1 LAB_001860f1: JMP 0x001860f3 LAB_001860f3: MOV EAX,dword ptr [RBP + -0x24] ADD RSP,0xb0 POP RBP RET
int ft_stroker_outside(long *param_1,int param_2,long param_3) { long lVar1; int8 uVar2; long local_b8; long local_b0; int8 local_a8; int8 local_a0; long local_98; long local_90; long local_88; long local_80; long local_78; long local_70; char local_62; char local_61; long local_60; long local_58; long local_50; int8 local_48; long local_40; long local_38; int local_2c; long *local_28; long local_20; int local_14; long *local_10; local_28 = param_1 + (long)param_2 * 5 + 0xe; local_20 = param_3; local_14 = param_2; local_10 = param_1; if ((int)param_1[0xb] == 0) { local_2c = ft_stroker_arcto(param_1,param_2); } else { local_40 = param_1[0xd]; memset(&local_50,0,0x10); local_58 = 0; local_60 = 0; local_38 = (long)local_14 * -0xb40000 + 0x5a0000; local_61 = (int)local_10[0xb] == 1; local_62 = (int)local_10[0xb] != 2; if (!(bool)local_61) { local_58 = PVG_FT_Angle_Diff(*local_10,local_10[1]); local_58 = local_58 / 2; if (local_58 == 0x5a0000) { local_58 = -local_38; } local_60 = *local_10 + local_58 + local_38; PVG_FT_Vector_From_Polar(&local_50,local_10[0xc],local_58); if ((local_50 < 0x10000) && ((local_62 != '\0' || (lVar1 = ft_pos_abs(local_58), 0x39 < lVar1)))) { local_61 = '\x01'; } } if (local_61 == '\0') { local_a8 = PVG_FT_MulDiv(local_10[0xd],local_10[0xc],local_50); PVG_FT_Vector_From_Polar(&local_b8,local_a8,local_60); local_b8 = local_10[2] + local_b8; local_b0 = local_10[3] + local_b0; local_2c = ft_stroke_border_lineto(local_28,&local_b8,0); if ((local_2c == 0) && (local_20 == 0)) { PVG_FT_Vector_From_Polar(&local_b8,local_10[0xd],local_10[1] + local_38); local_b8 = local_10[2] + local_b8; local_b0 = local_10[3] + local_b0; local_2c = ft_stroke_border_lineto(local_28,&local_b8,0); } } else if (local_62 == '\0') { uVar2 = PVG_FT_MulFix(local_40,local_10[0xc]); PVG_FT_Vector_From_Polar(&local_88,uVar2,local_60); local_a0 = PVG_FT_DivFix(0x10000 - local_50,local_48); local_98 = PVG_FT_MulFix(local_80,local_a0); local_90 = PVG_FT_MulFix(-local_88,local_a0); local_88 = local_10[2] + local_88; local_80 = local_10[3] + local_80; local_98 = local_88 + local_98; local_90 = local_80 + local_90; local_2c = ft_stroke_border_lineto(local_28,&local_98,0); if (local_2c == 0) { local_98 = local_88 * 2 - local_98; local_90 = local_80 * 2 - local_90; local_2c = ft_stroke_border_lineto(local_28,&local_98,0); if ((local_2c == 0) && (local_20 == 0)) { PVG_FT_Vector_From_Polar(&local_98,local_40,local_10[1] + local_38); local_98 = local_10[2] + local_98; local_90 = local_10[3] + local_90; local_2c = ft_stroke_border_lineto(local_28,&local_98,0); } } } else { PVG_FT_Vector_From_Polar(&local_78,local_40,local_10[1] + local_38); local_78 = local_10[2] + local_78; local_70 = local_10[3] + local_70; *(int1 *)(local_28 + 3) = 0; local_2c = ft_stroke_border_lineto(local_28,&local_78,0); } } return local_2c; }
7,035
native_password_auth_client
eloqsql/libmariadb/plugins/auth/my_auth.c
static int native_password_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql) { int pkt_len; uchar *pkt; if (((MCPVIO_EXT *)vio)->mysql_change_user) { /* in mysql_change_user() the client sends the first packet. we use the old scramble. */ pkt= (uchar*)mysql->scramble_buff; pkt_len= SCRAMBLE_LENGTH + 1; } else { /* read the scramble */ if ((pkt_len= vio->read_packet(vio, &pkt)) < 0) return CR_ERROR; if (pkt_len != SCRAMBLE_LENGTH + 1) return CR_SERVER_HANDSHAKE_ERR; /* save it in MYSQL */ memmove(mysql->scramble_buff, pkt, SCRAMBLE_LENGTH); mysql->scramble_buff[SCRAMBLE_LENGTH] = 0; } if (mysql && mysql->passwd[0]) { char scrambled[SCRAMBLE_LENGTH + 1]; memset(scrambled, 0, SCRAMBLE_LENGTH + 1); ma_scramble_41((uchar *)scrambled, (char*)pkt, mysql->passwd); if (vio->write_packet(vio, (uchar*)scrambled, SCRAMBLE_LENGTH)) return CR_ERROR; } else if (vio->write_packet(vio, 0, 0)) /* no password */ return CR_ERROR; return CR_OK; }
O3
c
native_password_auth_client: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x20(%rbp) cmpb $0x0, 0x48(%rdi) je 0x2da58 leaq 0x48e(%r14), %rax movq %rax, -0x48(%rbp) testq %r14, %r14 jne 0x2da91 jmp 0x2dad3 leaq -0x48(%rbp), %rsi movq %rbx, %rdi callq *(%rbx) testl %eax, %eax js 0x2dace movl $0x7dc, %r15d # imm = 0x7DC cmpl $0x15, %eax jne 0x2daea movq -0x48(%rbp), %rax movups (%rax), %xmm0 movl 0x10(%rax), %eax movl %eax, 0x49e(%r14) movups %xmm0, 0x48e(%r14) movb $0x0, 0x4a2(%r14) movq 0x2c0(%r14), %rdx cmpb $0x0, (%rdx) je 0x2dad3 xorps %xmm0, %xmm0 leaq -0x40(%rbp), %r14 movaps %xmm0, (%r14) movq $0x0, 0xd(%r14) movq -0x48(%rbp), %rsi movq %r14, %rdi callq 0x3266e movq %rbx, %rdi movq %r14, %rsi movl $0x14, %edx callq *0x8(%rbx) testl %eax, %eax je 0x2dae4 xorl %r15d, %r15d jmp 0x2daea xorl %r15d, %r15d movq %rbx, %rdi xorl %esi, %esi xorl %edx, %edx callq *0x8(%rbx) testl %eax, %eax jne 0x2daea movl $0xffffffff, %r15d # imm = 0xFFFFFFFF movq %fs:0x28, %rax cmpq -0x20(%rbp), %rax jne 0x2db07 movl %r15d, %eax addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq callq 0x13500
native_password_auth_client: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 38h mov r14, rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_20], rax cmp byte ptr [rdi+48h], 0 jz short loc_2DA58 lea rax, [r14+48Eh] mov [rbp+var_48], rax test r14, r14 jnz short loc_2DA91 jmp short loc_2DAD3 loc_2DA58: lea rsi, [rbp+var_48] mov rdi, rbx call qword ptr [rbx] test eax, eax js short loc_2DACE mov r15d, 7DCh cmp eax, 15h jnz short loc_2DAEA mov rax, [rbp+var_48] movups xmm0, xmmword ptr [rax] mov eax, [rax+10h] mov [r14+49Eh], eax movups xmmword ptr [r14+48Eh], xmm0 mov byte ptr [r14+4A2h], 0 loc_2DA91: mov rdx, [r14+2C0h] cmp byte ptr [rdx], 0 jz short loc_2DAD3 xorps xmm0, xmm0 lea r14, [rbp+var_40] movaps xmmword ptr [r14], xmm0 mov qword ptr [r14+0Dh], 0 mov rsi, [rbp+var_48] mov rdi, r14 call ma_scramble_41 mov rdi, rbx mov rsi, r14 mov edx, 14h call qword ptr [rbx+8] test eax, eax jz short loc_2DAE4 loc_2DACE: xor r15d, r15d jmp short loc_2DAEA loc_2DAD3: xor r15d, r15d mov rdi, rbx xor esi, esi xor edx, edx call qword ptr [rbx+8] test eax, eax jnz short loc_2DAEA loc_2DAE4: mov r15d, 0FFFFFFFFh loc_2DAEA: mov rax, fs:28h cmp rax, [rbp+var_20] jnz short loc_2DB07 mov eax, r15d add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn loc_2DB07: call ___stack_chk_fail
long long native_password_auth_client(long long a1, long long a2) { int v2; // eax unsigned int v3; // r15d __int128 v4; // xmm0 __int128 *v6; // [rsp+8h] [rbp-48h] BYREF _BYTE v7[32]; // [rsp+10h] [rbp-40h] BYREF unsigned long long v8; // [rsp+30h] [rbp-20h] v8 = __readfsqword(0x28u); if ( !*(_BYTE *)(a1 + 72) ) { v2 = (*(long long ( **)(long long, __int128 **))a1)(a1, &v6); if ( v2 < 0 ) return 0; v3 = 2012; if ( v2 != 21 ) return v3; v4 = *v6; *(_DWORD *)(a2 + 1182) = *((_DWORD *)v6 + 4); *(_OWORD *)(a2 + 1166) = v4; *(_BYTE *)(a2 + 1186) = 0; LABEL_7: if ( !**(_BYTE **)(a2 + 704) ) goto LABEL_10; memset(v7, 0, 21); ma_scramble_41(v7, v6); if ( !(*(unsigned int ( **)(long long, _BYTE *, long long))(a1 + 8))(a1, v7, 20LL) ) return (unsigned int)-1; return 0; } v6 = (__int128 *)(a2 + 1166); if ( a2 ) goto LABEL_7; LABEL_10: v3 = 0; if ( !(*(unsigned int ( **)(long long, _QWORD, _QWORD))(a1 + 8))(a1, 0LL, 0LL) ) return (unsigned int)-1; return v3; }
native_password_auth_client: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x20],RAX CMP byte ptr [RDI + 0x48],0x0 JZ 0x0012da58 LEA RAX,[R14 + 0x48e] MOV qword ptr [RBP + -0x48],RAX TEST R14,R14 JNZ 0x0012da91 JMP 0x0012dad3 LAB_0012da58: LEA RSI,[RBP + -0x48] MOV RDI,RBX CALL qword ptr [RBX] TEST EAX,EAX JS 0x0012dace MOV R15D,0x7dc CMP EAX,0x15 JNZ 0x0012daea MOV RAX,qword ptr [RBP + -0x48] MOVUPS XMM0,xmmword ptr [RAX] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [R14 + 0x49e],EAX MOVUPS xmmword ptr [R14 + 0x48e],XMM0 MOV byte ptr [R14 + 0x4a2],0x0 LAB_0012da91: MOV RDX,qword ptr [R14 + 0x2c0] CMP byte ptr [RDX],0x0 JZ 0x0012dad3 XORPS XMM0,XMM0 LEA R14,[RBP + -0x40] MOVAPS xmmword ptr [R14],XMM0 MOV qword ptr [R14 + 0xd],0x0 MOV RSI,qword ptr [RBP + -0x48] MOV RDI,R14 CALL 0x0013266e MOV RDI,RBX MOV RSI,R14 MOV EDX,0x14 CALL qword ptr [RBX + 0x8] TEST EAX,EAX JZ 0x0012dae4 LAB_0012dace: XOR R15D,R15D JMP 0x0012daea LAB_0012dad3: XOR R15D,R15D MOV RDI,RBX XOR ESI,ESI XOR EDX,EDX CALL qword ptr [RBX + 0x8] TEST EAX,EAX JNZ 0x0012daea LAB_0012dae4: MOV R15D,0xffffffff LAB_0012daea: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0012db07 MOV EAX,R15D ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET LAB_0012db07: CALL 0x00113500
int8 native_password_auth_client(int8 *param_1,long param_2) { int4 uVar1; int4 uVar2; int4 uVar3; int4 uVar4; int iVar5; int8 uVar6; long in_FS_OFFSET; int4 *local_50; int8 local_48; int5 uStack_40; int3 uStack_3b; int5 uStack_38; long local_28; local_28 = *(long *)(in_FS_OFFSET + 0x28); if (*(char *)(param_1 + 9) == '\0') { iVar5 = (*(code *)*param_1)(param_1,&local_50); if (-1 < iVar5) { uVar6 = 0x7dc; if (iVar5 != 0x15) goto LAB_0012daea; uVar1 = *local_50; uVar2 = local_50[1]; uVar3 = local_50[2]; uVar4 = local_50[3]; *(int4 *)(param_2 + 0x49e) = local_50[4]; *(int4 *)(param_2 + 0x48e) = uVar1; *(int4 *)(param_2 + 0x492) = uVar2; *(int4 *)(param_2 + 0x496) = uVar3; *(int4 *)(param_2 + 0x49a) = uVar4; *(int1 *)(param_2 + 0x4a2) = 0; goto LAB_0012da91; } LAB_0012dace: uVar6 = 0; goto LAB_0012daea; } local_50 = (int4 *)(param_2 + 0x48e); if (param_2 == 0) { LAB_0012dad3: uVar6 = 0; iVar5 = (*(code *)param_1[1])(param_1,0,0); if (iVar5 != 0) goto LAB_0012daea; } else { LAB_0012da91: if (**(char **)(param_2 + 0x2c0) == '\0') goto LAB_0012dad3; local_48 = 0; uStack_40 = 0; uStack_3b = 0; uStack_38 = 0; ma_scramble_41(&local_48,local_50); iVar5 = (*(code *)param_1[1])(param_1,&local_48,0x14); if (iVar5 != 0) goto LAB_0012dace; } uVar6 = 0xffffffff; LAB_0012daea: if (*(long *)(in_FS_OFFSET + 0x28) != local_28) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar6; }
7,036
ma_write_abort_block_record
eloqsql/storage/maria/ma_blockrec.c
my_bool _ma_write_abort_block_record(MARIA_HA *info) { my_bool res= 0; MARIA_BITMAP_BLOCKS *blocks= &info->cur_row.insert_blocks; MARIA_BITMAP_BLOCK *block, *end; LSN lsn= LSN_IMPOSSIBLE; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_write_abort_block_record"); _ma_bitmap_lock(share); /* Lock bitmap from other insert threads */ if (delete_head_or_tail(info, ma_recordpos_to_page(info->cur_row.lastpos), ma_recordpos_to_dir_entry(info->cur_row.lastpos), 1, 0)) res= 1; for (block= blocks->block + 1, end= block + blocks->count - 1; block < end; block++) { if (block->used & BLOCKUSED_USED) { if (block->used & BLOCKUSED_TAIL) { /* block->page_count is set to the tail directory entry number in write_block_record() */ if (delete_head_or_tail(info, block->page, block->page_count & ~TAIL_BIT, 0, 0)) res= 1; } else { if (free_full_page_range(info, block->page, block->page_count)) res= 1; } } } _ma_bitmap_unlock(share); if (share->now_transactional) { /* Write clr to mark end of aborted row insert. The above delete_head_or_tail() calls will only log redo, not undo. The undo just before the row insert is stored in row->orig_undo_lsn. When applying undo's, we can skip all undo records between current lsn and row->orig_undo_lsn as logically things are as before the attempted insert. */ if (_ma_write_clr(info, info->cur_row.orig_undo_lsn, LOGREC_UNDO_ROW_INSERT, share->calc_checksum != 0, (ha_checksum) 0 - info->cur_row.checksum, &lsn, (void*) 0)) res= 1; } _ma_unpin_all_pages_and_finalize_row(info, lsn); DBUG_RETURN(res); }
O3
c
ma_write_abort_block_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdi, %r15 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq $0x0, -0x70(%rbp) movq (%rdi), %rdi movq %rdi, -0x60(%rbp) callq 0x55a07 movq 0x98(%r15), %rsi movzbl %sil, %edx shrq $0x8, %rsi movq %r15, %rdi movl $0x1, %ecx xorl %r8d, %r8d callq 0x4e0d1 testb %al, %al setne %r14b movl 0x88(%r15), %eax cmpq $0x2, %rax movq %r15, -0x48(%rbp) jb 0x4e025 movq 0x80(%r15), %rbx leaq (%rax,%rax,2), %rax leaq (%rbx,%rax,8), %rcx addq $0x18, %rbx leaq 0x470(%r15), %rax movq %rax, -0x68(%rbp) movq %rcx, -0x58(%rbp) movzbl 0x14(%rbx), %eax testb $0x1, %al je 0x4dfee movq (%rbx), %r12 movl 0x8(%rbx), %r13d movzbl %r14b, %r14d testb $0x4, %al jne 0x4dedf movl %r14d, -0x4c(%rbp) movq (%r15), %r14 leaq (%r12,%r13), %rax movl 0x7bc(%r14), %ecx imulq %rax, %rcx xorl %eax, %eax cmpq %rcx, 0x40(%r14) sete %al movl %r13d, %ecx subl %eax, %ecx je 0x4df09 movq 0x600(%r14), %rdi movq -0x68(%rbp), %rsi movq %r12, %rdx movl $0x4, %r8d movl $0x1, %r9d callq 0x3f420 testb %al, %al setne %al movl %eax, -0x40(%rbp) jmp 0x4df10 andl $0xffff7fff, %r13d # imm = 0xFFFF7FFF movq %r15, %rdi movq %r12, %rsi movl %r13d, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x4e0d1 testb %al, %al movl $0x1, %eax cmovnel %eax, %r14d jmp 0x4dfea movl $0x0, -0x40(%rbp) cmpb $0x0, 0x7e7(%r14) je 0x4df90 movw $0x1, -0x39(%rbp) movl %r12d, -0x37(%rbp) movq %r12, %rax shrq $0x20, %rax movb %al, -0x33(%rbp) movw %r13w, -0x32(%rbp) leaq -0x3b(%rbp), %rax movq %rax, -0x90(%rbp) movq $0xb, -0x88(%rbp) movq 0x8(%r15), %rdx subq $0x8, %rsp leaq -0x78(%rbp), %rdi movl $0x8, %esi movq %r15, %rcx movl $0xb, %r8d movl $0x3, %r9d pushq $0x0 pushq %rax leaq -0xb0(%rbp), %rax pushq %rax callq 0x2ad24 addq $0x20, %rsp testb %al, %al movl -0x40(%rbp), %ecx movzbl %cl, %ecx movl $0x1, %eax cmovnel %eax, %ecx movl %ecx, -0x40(%rbp) leaq 0xa98(%r14), %r15 cmpq $0x0, 0xad8(%r14) jne 0x4dffd movq %r15, %rdi callq 0x2a220 leaq 0xa10(%r14), %rsi movq -0x48(%rbp), %rdi movq %r12, %rdx movl %r13d, %ecx callq 0x56ec6 movl %eax, %r12d movq 0xad8(%r14), %rdi testq %rdi, %rdi jne 0x4e013 movq %r15, %rdi callq 0x2a1e0 orb -0x40(%rbp), %r12b movl -0x4c(%rbp), %r14d je 0x4dfe6 movl $0x1, %r14d movq -0x48(%rbp), %r15 movq -0x58(%rbp), %rcx addq $0x18, %rbx cmpq %rcx, %rbx jb 0x4de75 jmp 0x4e025 movq %r15, %rdi leaq 0x93dc6(%rip), %rsi # 0xe1dcd movl $0xa23, %edx # imm = 0xA23 callq 0x30603 jmp 0x4dfa9 leaq 0x34123e(%rip), %rax # 0x38f258 movq (%rax), %rax callq *0x160(%rax) jmp 0x4dfce movq -0x60(%rbp), %rbx movq %rbx, %rdi callq 0x55b08 xorl %r8d, %r8d cmpb $0x0, 0x7e7(%rbx) je 0x4e08e xorl %ecx, %ecx cmpq $0x0, 0x6a8(%rbx) movq 0xb8(%r15), %rsi setne %cl subl 0xb0(%r15), %r8d subq $0x8, %rsp leaq -0x70(%rbp), %r15 movq -0x48(%rbp), %rdi movl $0x12, %edx movq %r15, %r9 pushq $0x0 callq 0x42cbd addq $0x10, %rsp testb %al, %al movzbl %r14b, %eax movl $0x1, %r14d cmovel %eax, %r14d movq (%r15), %r8 movq -0x48(%rbp), %r15 movq %r15, %rdi movq %r8, %rsi callq 0x42c40 movq 0x8(%r15), %rax movq $0x0, 0x90(%rax) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x4e0cc movl %r14d, %eax addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2a270
_ma_write_abort_block_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r15, rdi mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_70], 0 mov rdi, [rdi] mov [rbp+var_60], rdi call _ma_bitmap_lock mov rsi, [r15+98h] movzx edx, sil shr rsi, 8 mov rdi, r15 mov ecx, 1 xor r8d, r8d call delete_head_or_tail test al, al setnz r14b mov eax, [r15+88h] cmp rax, 2 mov [rbp+var_48], r15 jb loc_4E025 mov rbx, [r15+80h] lea rax, [rax+rax*2] lea rcx, [rbx+rax*8] add rbx, 18h lea rax, [r15+470h] mov [rbp+var_68], rax mov [rbp+var_58], rcx loc_4DE75: movzx eax, byte ptr [rbx+14h] test al, 1 jz loc_4DFEE mov r12, [rbx] mov r13d, [rbx+8] movzx r14d, r14b test al, 4 jnz short loc_4DEDF mov [rbp+var_4C], r14d mov r14, [r15] lea rax, [r12+r13] mov ecx, [r14+7BCh] imul rcx, rax xor eax, eax cmp [r14+40h], rcx setz al mov ecx, r13d sub ecx, eax jz short loc_4DF09 mov rdi, [r14+600h] mov rsi, [rbp+var_68] mov rdx, r12 mov r8d, 4 mov r9d, 1 call pagecache_delete_pages test al, al setnz al mov [rbp+var_40], eax jmp short loc_4DF10 loc_4DEDF: and r13d, 0FFFF7FFFh mov rdi, r15 mov rsi, r12 mov edx, r13d xor ecx, ecx xor r8d, r8d call delete_head_or_tail test al, al mov eax, 1 cmovnz r14d, eax jmp loc_4DFEA loc_4DF09: mov [rbp+var_40], 0 loc_4DF10: cmp byte ptr [r14+7E7h], 0 jz short loc_4DF90 mov [rbp+var_39], 1 mov [rbp+var_37], r12d mov rax, r12 shr rax, 20h mov [rbp+var_33], al mov [rbp+var_32], r13w lea rax, [rbp+var_3B] mov [rbp+var_90], rax mov [rbp+var_88], 0Bh mov rdx, [r15+8] sub rsp, 8 lea rdi, [rbp+var_78] mov esi, 8 mov rcx, r15 mov r8d, 0Bh mov r9d, 3 push 0 push rax lea rax, [rbp+var_B0] push rax call translog_write_record add rsp, 20h test al, al mov ecx, [rbp+var_40] movzx ecx, cl mov eax, 1 cmovnz ecx, eax mov [rbp+var_40], ecx loc_4DF90: lea r15, [r14+0A98h] cmp qword ptr [r14+0AD8h], 0 jnz short loc_4DFFD mov rdi, r15 call _pthread_mutex_lock loc_4DFA9: lea rsi, [r14+0A10h] mov rdi, [rbp+var_48] mov rdx, r12 mov ecx, r13d call _ma_bitmap_reset_full_page_bits mov r12d, eax mov rdi, [r14+0AD8h] test rdi, rdi jnz short loc_4E013 loc_4DFCE: mov rdi, r15 call _pthread_mutex_unlock or r12b, byte ptr [rbp+var_40] mov r14d, [rbp+var_4C] jz short loc_4DFE6 mov r14d, 1 loc_4DFE6: mov r15, [rbp+var_48] loc_4DFEA: mov rcx, [rbp+var_58] loc_4DFEE: add rbx, 18h cmp rbx, rcx jb loc_4DE75 jmp short loc_4E025 loc_4DFFD: mov rdi, r15 lea rsi, aWorkspaceLlm4b_4; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0A23h call psi_mutex_lock jmp short loc_4DFA9 loc_4E013: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4DFCE loc_4E025: mov rbx, [rbp+var_60] mov rdi, rbx call _ma_bitmap_unlock xor r8d, r8d cmp byte ptr [rbx+7E7h], 0 jz short loc_4E08E xor ecx, ecx cmp qword ptr [rbx+6A8h], 0 mov rsi, [r15+0B8h] setnz cl sub r8d, [r15+0B0h] sub rsp, 8 lea r15, [rbp+var_70] mov rdi, [rbp+var_48] mov edx, 12h mov r9, r15 push 0 call _ma_write_clr add rsp, 10h test al, al movzx eax, r14b mov r14d, 1 cmovz r14d, eax mov r8, [r15] mov r15, [rbp+var_48] loc_4E08E: mov rdi, r15 mov rsi, r8 call _ma_unpin_all_pages mov rax, [r15+8] mov qword ptr [rax+90h], 0 mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_4E0CC mov eax, r14d add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4E0CC: call ___stack_chk_fail
long long ma_write_abort_block_record(long long a1) { unsigned int v1; // r14d long long *v2; // r15 unsigned long long v3; // rax long long v4; // rbx unsigned long long v5; // rcx _QWORD *v6; // rbx char v7; // al long long v8; // r12 long long v9; // r13 long long v10; // r14 int v11; // eax int v12; // eax char v13; // al int v14; // ecx unsigned __int8 v15; // r12 long long v16; // rbx signed long long v17; // r8 bool v18; // zf unsigned int v19; // eax __int128 v21; // [rsp+0h] [rbp-B0h] BYREF _WORD *v22; // [rsp+20h] [rbp-90h] long long v23; // [rsp+28h] [rbp-88h] char v24[8]; // [rsp+38h] [rbp-78h] BYREF signed long long v25; // [rsp+40h] [rbp-70h] BYREF long long v26; // [rsp+48h] [rbp-68h] long long v27; // [rsp+50h] [rbp-60h] unsigned long long v28; // [rsp+58h] [rbp-58h] unsigned int v29; // [rsp+64h] [rbp-4Ch] long long *v30; // [rsp+68h] [rbp-48h] int v31; // [rsp+70h] [rbp-40h] _WORD v32[2]; // [rsp+75h] [rbp-3Bh] BYREF int v33; // [rsp+79h] [rbp-37h] char v34; // [rsp+7Dh] [rbp-33h] __int16 v35; // [rsp+7Eh] [rbp-32h] unsigned long long v36; // [rsp+80h] [rbp-30h] v2 = (long long *)a1; v36 = __readfsqword(0x28u); v25 = 0LL; v27 = *(_QWORD *)a1; ma_bitmap_lock(); LOBYTE(v1) = (unsigned __int8)delete_head_or_tail( v2, (unsigned long long)v2[19] >> 8, (unsigned __int8)v2[19], 1LL, 0LL) != 0; v3 = *(unsigned int *)(a1 + 136); v30 = (long long *)a1; if ( v3 >= 2 ) { v4 = *(_QWORD *)(a1 + 128); v5 = v4 + 24 * v3; v6 = (_QWORD *)(v4 + 24); v26 = a1 + 1136; v28 = v5; do { v7 = *((_BYTE *)v6 + 20); if ( (v7 & 1) != 0 ) { v8 = *v6; v9 = *((unsigned int *)v6 + 2); v1 = (unsigned __int8)v1; if ( (v7 & 4) != 0 ) { if ( (unsigned __int8)delete_head_or_tail(v2, *v6, (unsigned int)v9 & 0xFFFF7FFF, 0LL, 0LL) ) v1 = 1; } else { v29 = (unsigned __int8)v1; v10 = *v2; v11 = *(_QWORD *)(*v2 + 64) == (v8 + v9) * *(unsigned int *)(*v2 + 1980); if ( (_DWORD)v9 == v11 ) { v31 = 0; } else { LOBYTE(v12) = pagecache_delete_pages(*(_QWORD *)(v10 + 1536), v26, v8, v9 - v11, 4u, 1) != 0; v31 = v12; } if ( *(_BYTE *)(v10 + 2023) ) { v32[1] = 1; v33 = v8; v34 = BYTE4(v8); v35 = v9; v22 = v32; v23 = 11LL; v13 = translog_write_record((unsigned long long)v24, &byte_8, v2[1], v2, 0xBu, 3, &v21, v32, 0LL); v14 = (unsigned __int8)v31; if ( v13 ) v14 = 1; v31 = v14; } if ( *(_QWORD *)(v10 + 2776) ) psi_mutex_lock( v10 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0xA23u); else pthread_mutex_lock(v10 + 2712); v15 = ma_bitmap_reset_full_page_bits(v30, v10 + 2576, v8, (unsigned int)v9); if ( *(_QWORD *)(v10 + 2776) ) PSI_server[44](); pthread_mutex_unlock(v10 + 2712); v1 = v29; if ( (unsigned __int8)v31 | v15 ) v1 = 1; v2 = v30; } v5 = v28; } v6 += 3; } while ( (unsigned long long)v6 < v5 ); } v16 = v27; ma_bitmap_unlock(v27); v17 = 0LL; if ( *(_BYTE *)(v16 + 2023) ) { v18 = (unsigned __int8)ma_write_clr( v30, v2[23], 18, *(_QWORD *)(v16 + 1704) != 0LL, -*((_DWORD *)v2 + 44), (unsigned long long)&v25, 0LL) == 0; v19 = (unsigned __int8)v1; v1 = 1; if ( v18 ) v1 = v19; v17 = v25; v2 = v30; } ma_unpin_all_pages((long long)v2, v17); *(_QWORD *)(v2[1] + 144) = 0LL; return v1; }
_ma_write_abort_block_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R15,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x70],0x0 MOV RDI,qword ptr [RDI] MOV qword ptr [RBP + -0x60],RDI CALL 0x00155a07 MOV RSI,qword ptr [R15 + 0x98] MOVZX EDX,SIL SHR RSI,0x8 MOV RDI,R15 MOV ECX,0x1 XOR R8D,R8D CALL 0x0014e0d1 TEST AL,AL SETNZ R14B MOV EAX,dword ptr [R15 + 0x88] CMP RAX,0x2 MOV qword ptr [RBP + -0x48],R15 JC 0x0014e025 MOV RBX,qword ptr [R15 + 0x80] LEA RAX,[RAX + RAX*0x2] LEA RCX,[RBX + RAX*0x8] ADD RBX,0x18 LEA RAX,[R15 + 0x470] MOV qword ptr [RBP + -0x68],RAX MOV qword ptr [RBP + -0x58],RCX LAB_0014de75: MOVZX EAX,byte ptr [RBX + 0x14] TEST AL,0x1 JZ 0x0014dfee MOV R12,qword ptr [RBX] MOV R13D,dword ptr [RBX + 0x8] MOVZX R14D,R14B TEST AL,0x4 JNZ 0x0014dedf MOV dword ptr [RBP + -0x4c],R14D MOV R14,qword ptr [R15] LEA RAX,[R12 + R13*0x1] MOV ECX,dword ptr [R14 + 0x7bc] IMUL RCX,RAX XOR EAX,EAX CMP qword ptr [R14 + 0x40],RCX SETZ AL MOV ECX,R13D SUB ECX,EAX JZ 0x0014df09 MOV RDI,qword ptr [R14 + 0x600] MOV RSI,qword ptr [RBP + -0x68] MOV RDX,R12 MOV R8D,0x4 MOV R9D,0x1 CALL 0x0013f420 TEST AL,AL SETNZ AL MOV dword ptr [RBP + -0x40],EAX JMP 0x0014df10 LAB_0014dedf: AND R13D,0xffff7fff MOV RDI,R15 MOV RSI,R12 MOV EDX,R13D XOR ECX,ECX XOR R8D,R8D CALL 0x0014e0d1 TEST AL,AL MOV EAX,0x1 CMOVNZ R14D,EAX JMP 0x0014dfea LAB_0014df09: MOV dword ptr [RBP + -0x40],0x0 LAB_0014df10: CMP byte ptr [R14 + 0x7e7],0x0 JZ 0x0014df90 MOV word ptr [RBP + -0x39],0x1 MOV dword ptr [RBP + -0x37],R12D MOV RAX,R12 SHR RAX,0x20 MOV byte ptr [RBP + -0x33],AL MOV word ptr [RBP + -0x32],R13W LEA RAX,[RBP + -0x3b] MOV qword ptr [RBP + -0x90],RAX MOV qword ptr [RBP + -0x88],0xb MOV RDX,qword ptr [R15 + 0x8] SUB RSP,0x8 LEA RDI,[RBP + -0x78] MOV ESI,0x8 MOV RCX,R15 MOV R8D,0xb MOV R9D,0x3 PUSH 0x0 PUSH RAX LEA RAX,[RBP + -0xb0] PUSH RAX CALL 0x0012ad24 ADD RSP,0x20 TEST AL,AL MOV ECX,dword ptr [RBP + -0x40] MOVZX ECX,CL MOV EAX,0x1 CMOVNZ ECX,EAX MOV dword ptr [RBP + -0x40],ECX LAB_0014df90: LEA R15,[R14 + 0xa98] CMP qword ptr [R14 + 0xad8],0x0 JNZ 0x0014dffd MOV RDI,R15 CALL 0x0012a220 LAB_0014dfa9: LEA RSI,[R14 + 0xa10] MOV RDI,qword ptr [RBP + -0x48] MOV RDX,R12 MOV ECX,R13D CALL 0x00156ec6 MOV R12D,EAX MOV RDI,qword ptr [R14 + 0xad8] TEST RDI,RDI JNZ 0x0014e013 LAB_0014dfce: MOV RDI,R15 CALL 0x0012a1e0 OR R12B,byte ptr [RBP + -0x40] MOV R14D,dword ptr [RBP + -0x4c] JZ 0x0014dfe6 MOV R14D,0x1 LAB_0014dfe6: MOV R15,qword ptr [RBP + -0x48] LAB_0014dfea: MOV RCX,qword ptr [RBP + -0x58] LAB_0014dfee: ADD RBX,0x18 CMP RBX,RCX JC 0x0014de75 JMP 0x0014e025 LAB_0014dffd: MOV RDI,R15 LEA RSI,[0x1e1dcd] MOV EDX,0xa23 CALL 0x00130603 JMP 0x0014dfa9 LAB_0014e013: LEA RAX,[0x48f258] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014dfce LAB_0014e025: MOV RBX,qword ptr [RBP + -0x60] MOV RDI,RBX CALL 0x00155b08 XOR R8D,R8D CMP byte ptr [RBX + 0x7e7],0x0 JZ 0x0014e08e XOR ECX,ECX CMP qword ptr [RBX + 0x6a8],0x0 MOV RSI,qword ptr [R15 + 0xb8] SETNZ CL SUB R8D,dword ptr [R15 + 0xb0] SUB RSP,0x8 LEA R15,[RBP + -0x70] MOV RDI,qword ptr [RBP + -0x48] MOV EDX,0x12 MOV R9,R15 PUSH 0x0 CALL 0x00142cbd ADD RSP,0x10 TEST AL,AL MOVZX EAX,R14B MOV R14D,0x1 CMOVZ R14D,EAX MOV R8,qword ptr [R15] MOV R15,qword ptr [RBP + -0x48] LAB_0014e08e: MOV RDI,R15 MOV RSI,R8 CALL 0x00142c40 MOV RAX,qword ptr [R15 + 0x8] MOV qword ptr [RAX + 0x90],0x0 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0014e0cc MOV EAX,R14D ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014e0cc: CALL 0x0012a270
ulong _ma_write_abort_block_record(long *param_1) { pthread_mutex_t *__mutex; uint uVar1; long lVar2; long lVar3; char cVar4; int8 uVar5; int iVar6; long *plVar7; long *plVar8; int8 unaff_R14; ulong uVar9; ulong uVar10; long in_FS_OFFSET; int1 local_b8 [32]; int1 *local_98; int8 local_90; int1 local_80 [8]; int8 local_78; long *local_70; long local_68; long *local_60; uint local_54; long *local_50; uint local_48; int1 local_43 [2]; int2 local_41; int4 local_3f; int1 local_3b; int2 local_3a; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_78 = 0; local_68 = *param_1; _ma_bitmap_lock(); cVar4 = delete_head_or_tail(param_1,(ulong)param_1[0x13] >> 8,param_1[0x13] & 0xff,1,0); uVar9 = CONCAT71((int7)((ulong)unaff_R14 >> 8),cVar4 != '\0'); local_50 = param_1; if (1 < (ulong)*(uint *)(param_1 + 0x11)) { plVar7 = (long *)(param_1[0x10] + (ulong)*(uint *)(param_1 + 0x11) * 0x18); plVar8 = (long *)(param_1[0x10] + 0x18); local_70 = param_1 + 0x8e; local_60 = plVar7; do { if ((*(byte *)((long)plVar8 + 0x14) & 1) != 0) { lVar2 = *plVar8; uVar1 = *(uint *)(plVar8 + 1); uVar9 = uVar9 & 0xff; if ((*(byte *)((long)plVar8 + 0x14) & 4) == 0) { lVar3 = *param_1; iVar6 = uVar1 - (*(long *)(lVar3 + 0x40) == (ulong)*(uint *)(lVar3 + 0x7bc) * (lVar2 + (ulong)uVar1)); local_54 = (uint)uVar9; if (iVar6 == 0) { local_48 = 0; } else { uVar5 = pagecache_delete_pages(*(int8 *)(lVar3 + 0x600),local_70,lVar2,iVar6,4,1); local_48 = (uint)CONCAT71((int7)((ulong)uVar5 >> 8),(char)uVar5 != '\0'); } if (*(char *)(lVar3 + 0x7e7) != '\0') { local_41 = 1; local_3f = (int4)lVar2; local_3b = (int1)((ulong)lVar2 >> 0x20); local_3a = (int2)uVar1; local_98 = local_43; local_90 = 0xb; cVar4 = translog_write_record(local_80,8,param_1[1],param_1,0xb,3,local_b8,local_98,0); local_48 = local_48 & 0xff; if (cVar4 != '\0') { local_48 = 1; } } __mutex = (pthread_mutex_t *)(lVar3 + 0xa98); if (*(long *)(lVar3 + 0xad8) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex, "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0xa23); } cVar4 = _ma_bitmap_reset_full_page_bits(local_50,lVar3 + 0xa10,lVar2,(ulong)uVar1); if (*(long *)(lVar3 + 0xad8) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); uVar9 = (ulong)local_54; plVar7 = local_60; param_1 = local_50; if (cVar4 != '\0' || (char)local_48 != '\0') { uVar9 = 1; } } else { cVar4 = delete_head_or_tail(param_1,lVar2,uVar1 & 0xffff7fff,0,0); plVar7 = local_60; if (cVar4 != '\0') { uVar9 = 1; } } } plVar8 = plVar8 + 3; } while (plVar8 < plVar7); } lVar2 = local_68; _ma_bitmap_unlock(local_68); uVar5 = 0; uVar10 = uVar9; if (*(char *)(lVar2 + 0x7e7) != '\0') { cVar4 = _ma_write_clr(local_50,param_1[0x17],0x12,*(long *)(lVar2 + 0x6a8) != 0, -(int)param_1[0x16],&local_78,0); uVar5 = local_78; uVar10 = 1; param_1 = local_50; if (cVar4 == '\0') { uVar10 = uVar9 & 0xff; } } _ma_unpin_all_pages(param_1,uVar5); *(int8 *)(param_1[1] + 0x90) = 0; if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar10 & 0xffffffff; }
7,037
js_not_slow
bluesky950520[P]quickjs/quickjs.c
static no_inline int js_not_slow(JSContext *ctx, JSValue *sp) { JSValue op1; op1 = JS_ToNumericFree(ctx, sp[-1]); if (JS_IsException(op1)) goto exception; if (JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT) { if (js_unary_arith_bigint(ctx, sp - 1, OP_not, op1)) goto exception; } else { int32_t v1; if (unlikely(JS_ToInt32Free(ctx, &v1, op1))) goto exception; sp[-1] = js_int32(~v1); } return 0; exception: sp[-1] = JS_UNDEFINED; return -1; }
O0
c
js_not_slow: subq $0x68, %rsp movq %rdi, 0x58(%rsp) movq %rsi, 0x50(%rsp) movq 0x58(%rsp), %rdi movq 0x50(%rsp), %rax movq -0x10(%rax), %rsi movq -0x8(%rax), %rdx callq 0x6f770 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0x22a00 cmpl $0x0, %eax je 0x6a93c jmp 0x6a9e5 movq 0x48(%rsp), %rax cmpl $-0x9, %eax jne 0x6a971 movq 0x58(%rsp), %rdi movq 0x50(%rsp), %rsi addq $-0x10, %rsi movq 0x40(%rsp), %rcx movq 0x48(%rsp), %r8 movl $0x95, %edx callq 0x70530 cmpl $0x0, %eax je 0x6a96f jmp 0x6a9e5 jmp 0x6a9db movq 0x58(%rsp), %rdi movq 0x40(%rsp), %rdx movq 0x48(%rsp), %rcx leaq 0x2c(%rsp), %rsi callq 0x37cd0 cmpl $0x0, %eax setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x6a9a3 jmp 0x6a9e5 movq 0x50(%rsp), %rax movq %rax, (%rsp) movl 0x2c(%rsp), %edi xorl $-0x1, %edi callq 0x32a00 movq %rax, %rcx movq (%rsp), %rax movq %rcx, 0x18(%rsp) movq %rdx, 0x20(%rsp) movq 0x18(%rsp), %rcx movq %rcx, -0x10(%rax) movq 0x20(%rsp), %rcx movq %rcx, -0x8(%rax) movl $0x0, 0x64(%rsp) jmp 0x6aa15 movq 0x50(%rsp), %rax movl $0x0, 0x8(%rsp) movq $0x3, 0x10(%rsp) movq 0x8(%rsp), %rcx movq %rcx, -0x10(%rax) movq 0x10(%rsp), %rcx movq %rcx, -0x8(%rax) movl $0xffffffff, 0x64(%rsp) # imm = 0xFFFFFFFF movl 0x64(%rsp), %eax addq $0x68, %rsp retq nop
js_not_slow: sub rsp, 68h mov [rsp+68h+var_10], rdi mov [rsp+68h+var_18], rsi mov rdi, [rsp+68h+var_10] mov rax, [rsp+68h+var_18] mov rsi, [rax-10h] mov rdx, [rax-8] call JS_ToNumericFree mov [rsp+68h+var_38], rax mov [rsp+68h+var_30], rdx mov rax, [rsp+68h+var_38] mov [rsp+68h+var_28], rax mov rax, [rsp+68h+var_30] mov [rsp+68h+var_20], rax mov rdi, [rsp+68h+var_28] mov rsi, [rsp+68h+var_20] call JS_IsException_1 cmp eax, 0 jz short loc_6A93C jmp loc_6A9E5 loc_6A93C: mov rax, [rsp+68h+var_20] cmp eax, 0FFFFFFF7h jnz short loc_6A971 mov rdi, [rsp+68h+var_10] mov rsi, [rsp+68h+var_18] add rsi, 0FFFFFFFFFFFFFFF0h mov rcx, [rsp+68h+var_28] mov r8, [rsp+68h+var_20] mov edx, 95h call js_unary_arith_bigint cmp eax, 0 jz short loc_6A96F jmp short loc_6A9E5 loc_6A96F: jmp short loc_6A9DB loc_6A971: mov rdi, [rsp+68h+var_10] mov rdx, [rsp+68h+var_28] mov rcx, [rsp+68h+var_20] lea rsi, [rsp+68h+var_3C] call JS_ToInt32Free cmp eax, 0 setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_6A9A3 jmp short loc_6A9E5 loc_6A9A3: mov rax, [rsp+68h+var_18] mov [rsp+68h+var_68], rax mov edi, [rsp+68h+var_3C] xor edi, 0FFFFFFFFh call js_int32 mov rcx, rax mov rax, [rsp+68h+var_68] mov [rsp+68h+var_50], rcx mov [rsp+68h+var_48], rdx mov rcx, [rsp+68h+var_50] mov [rax-10h], rcx mov rcx, [rsp+68h+var_48] mov [rax-8], rcx loc_6A9DB: mov [rsp+68h+var_4], 0 jmp short loc_6AA15 loc_6A9E5: mov rax, [rsp+68h+var_18] mov dword ptr [rsp+68h+var_60], 0 mov [rsp+68h+var_58], 3 mov rcx, [rsp+68h+var_60] mov [rax-10h], rcx mov rcx, [rsp+68h+var_58] mov [rax-8], rcx mov [rsp+68h+var_4], 0FFFFFFFFh loc_6AA15: mov eax, [rsp+68h+var_4] add rsp, 68h retn
long long js_not_slow(long long a1, long long a2) { long long v2; // rdx long long v3; // rdx long long v4; // rax long long v6; // [rsp+0h] [rbp-68h] long long v7; // [rsp+8h] [rbp-60h] int v8; // [rsp+2Ch] [rbp-3Ch] BYREF long long v9; // [rsp+30h] [rbp-38h] long long v10; // [rsp+38h] [rbp-30h] unsigned long long v11; // [rsp+40h] [rbp-28h] long long v12; // [rsp+48h] [rbp-20h] long long v13; // [rsp+50h] [rbp-18h] long long v14; // [rsp+58h] [rbp-10h] v14 = a1; v13 = a2; v9 = JS_ToNumericFree(a1, *(_QWORD *)(a2 - 16), *(_QWORD *)(a2 - 8)); v10 = v2; v11 = v9; v12 = v2; if ( JS_IsException_1(v9, v2) ) goto LABEL_8; if ( (_DWORD)v12 == -9 ) { if ( !(unsigned int)js_unary_arith_bigint(v14, v13 - 16, 149LL, v11, v12) ) return 0; LABEL_8: v4 = v13; LODWORD(v7) = 0; *(_QWORD *)(v13 - 16) = v7; *(_QWORD *)(v4 - 8) = 3LL; return (unsigned int)-1; } if ( (unsigned int)JS_ToInt32Free(v14, &v8, v11, v12) ) goto LABEL_8; v6 = v13; *(_QWORD *)(v6 - 16) = js_int32(~v8); *(_QWORD *)(v6 - 8) = v3; return 0; }
js_not_slow: SUB RSP,0x68 MOV qword ptr [RSP + 0x58],RDI MOV qword ptr [RSP + 0x50],RSI MOV RDI,qword ptr [RSP + 0x58] MOV RAX,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RAX + -0x10] MOV RDX,qword ptr [RAX + -0x8] CALL 0x0016f770 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x00122a00 CMP EAX,0x0 JZ 0x0016a93c JMP 0x0016a9e5 LAB_0016a93c: MOV RAX,qword ptr [RSP + 0x48] CMP EAX,-0x9 JNZ 0x0016a971 MOV RDI,qword ptr [RSP + 0x58] MOV RSI,qword ptr [RSP + 0x50] ADD RSI,-0x10 MOV RCX,qword ptr [RSP + 0x40] MOV R8,qword ptr [RSP + 0x48] MOV EDX,0x95 CALL 0x00170530 CMP EAX,0x0 JZ 0x0016a96f JMP 0x0016a9e5 LAB_0016a96f: JMP 0x0016a9db LAB_0016a971: MOV RDI,qword ptr [RSP + 0x58] MOV RDX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x48] LEA RSI,[RSP + 0x2c] CALL 0x00137cd0 CMP EAX,0x0 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x0016a9a3 JMP 0x0016a9e5 LAB_0016a9a3: MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP],RAX MOV EDI,dword ptr [RSP + 0x2c] XOR EDI,0xffffffff CALL 0x00132a00 MOV RCX,RAX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x18],RCX MOV qword ptr [RSP + 0x20],RDX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + -0x10],RCX MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + -0x8],RCX LAB_0016a9db: MOV dword ptr [RSP + 0x64],0x0 JMP 0x0016aa15 LAB_0016a9e5: MOV RAX,qword ptr [RSP + 0x50] MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP + 0x10],0x3 MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + -0x10],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + -0x8],RCX MOV dword ptr [RSP + 0x64],0xffffffff LAB_0016aa15: MOV EAX,dword ptr [RSP + 0x64] ADD RSP,0x68 RET
int4 js_not_slow(int8 param_1,long param_2) { long lVar1; int iVar2; int1 auVar3 [16]; uint uStack_5c; uint local_3c; int1 local_38 [16]; int1 local_28 [16]; long local_18; int8 local_10; local_18 = param_2; local_10 = param_1; local_38 = JS_ToNumericFree(param_1,*(int8 *)(param_2 + -0x10),*(int8 *)(param_2 + -8) ); local_28 = local_38; iVar2 = JS_IsException(local_38._0_8_,local_38._8_8_); if (iVar2 == 0) { if (local_28._8_4_ == -9) { iVar2 = js_unary_arith_bigint(local_10,local_18 + -0x10,0x95,local_28._0_8_,local_28._8_8_); if (iVar2 == 0) { return 0; } } else { iVar2 = JS_ToInt32Free(local_10,&local_3c,local_28._0_8_,local_28._8_8_); lVar1 = local_18; if (iVar2 == 0) { auVar3 = js_int32(local_3c ^ 0xffffffff); *(int1 (*) [16])(lVar1 + -0x10) = auVar3; return 0; } } } *(ulong *)(local_18 + -0x10) = (ulong)uStack_5c << 0x20; *(int8 *)(local_18 + -8) = 3; return 0xffffffff; }
7,038
mi_recinfo_write
eloqsql/storage/myisam/mi_open.c
uint mi_recinfo_write(File file, MI_COLUMNDEF *recinfo) { uchar buff[MI_COLUMNDEF_SIZE]; uchar *ptr=buff; mi_int2store(ptr,recinfo->type); ptr +=2; mi_int2store(ptr,recinfo->length); ptr +=2; *ptr++ = recinfo->null_bit; mi_int2store(ptr,recinfo->null_pos); ptr+= 2; return mysql_file_write(file, buff, (size_t) (ptr-buff), MYF(MY_NABP)) != 0; }
O3
c
mi_recinfo_write: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x60, %rsp movq %fs:0x28, %rax movq %rax, -0x18(%rbp) movzwl (%rsi), %eax rolw $0x8, %ax movw %ax, -0x1f(%rbp) movzwl 0x4(%rsi), %eax rolw $0x8, %ax movw %ax, -0x1d(%rbp) movb 0xc(%rsi), %al movb %al, -0x1b(%rbp) movzwl 0xe(%rsi), %eax rolw $0x8, %ax movl %edi, %ebx movw %ax, -0x1a(%rbp) leaq 0x3133e1(%rip), %rax # 0x3aea18 movq (%rax), %rax leaq -0x70(%rbp), %rdi movl %ebx, %esi movl $0x7, %edx callq *0x158(%rax) testq %rax, %rax jne 0x9b68a leaq -0x1f(%rbp), %rsi movl $0x7, %edx movl $0x4, %ecx movl %ebx, %edi callq 0x3175f movq %rax, %rcx xorl %eax, %eax testq %rcx, %rcx setne %cl movq %fs:0x28, %rdx cmpq -0x18(%rbp), %rdx jne 0x9b6a4 movb %cl, %al addq $0x60, %rsp popq %rbx popq %r14 popq %rbp retq leaq -0x1f(%rbp), %rdx leaq -0x28(%rbp), %r14 movq %rax, %rdi movl %ebx, %esi movq %r14, %rcx callq 0x2ff77 movq (%r14), %rcx jmp 0x9b668 callq 0x2a280
mi_recinfo_write: push rbp mov rbp, rsp push r14 push rbx sub rsp, 60h mov rax, fs:28h mov [rbp+var_18], rax movzx eax, word ptr [rsi] rol ax, 8 mov [rbp+var_1F], ax movzx eax, word ptr [rsi+4] rol ax, 8 mov [rbp+var_1D], ax mov al, [rsi+0Ch] mov [rbp+var_1B], al movzx eax, word ptr [rsi+0Eh] rol ax, 8 mov ebx, edi mov [rbp+var_1A], ax lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_70] mov esi, ebx mov edx, 7 call qword ptr [rax+158h] test rax, rax jnz short loc_9B68A lea rsi, [rbp+var_1F] mov edx, 7 mov ecx, 4 mov edi, ebx call my_write mov rcx, rax loc_9B668: xor eax, eax test rcx, rcx setnz cl mov rdx, fs:28h cmp rdx, [rbp+var_18] jnz short loc_9B6A4 mov al, cl add rsp, 60h pop rbx pop r14 pop rbp retn loc_9B68A: lea rdx, [rbp+var_1F] lea r14, [rbp+var_28] mov rdi, rax mov esi, ebx mov rcx, r14 call mi_recinfo_write_cold_1 mov rcx, [r14] jmp short loc_9B668 loc_9B6A4: call ___stack_chk_fail
bool mi_recinfo_write(unsigned int a1, long long a2) { long long v2; // rax long long v3; // rcx _BYTE v6[72]; // [rsp+0h] [rbp-70h] BYREF long long v7; // [rsp+48h] [rbp-28h] BYREF _WORD v8[2]; // [rsp+51h] [rbp-1Fh] BYREF char v9; // [rsp+55h] [rbp-1Bh] __int16 v10; // [rsp+56h] [rbp-1Ah] unsigned long long v11; // [rsp+58h] [rbp-18h] v11 = __readfsqword(0x28u); v8[0] = __ROL2__(*(_WORD *)a2, 8); v8[1] = __ROL2__(*(_WORD *)(a2 + 4), 8); v9 = *(_BYTE *)(a2 + 12); v10 = __ROL2__(*(_WORD *)(a2 + 14), 8); v2 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v6, a1, 7LL); if ( v2 ) { mi_recinfo_write_cold_1(v2, a1, (long long)v8, &v7); v3 = v7; } else { v3 = my_write(a1, (long long)v8, 7LL, 4LL); } return v3 != 0; }
mi_recinfo_write: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x60 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX MOVZX EAX,word ptr [RSI] ROL AX,0x8 MOV word ptr [RBP + -0x1f],AX MOVZX EAX,word ptr [RSI + 0x4] ROL AX,0x8 MOV word ptr [RBP + -0x1d],AX MOV AL,byte ptr [RSI + 0xc] MOV byte ptr [RBP + -0x1b],AL MOVZX EAX,word ptr [RSI + 0xe] ROL AX,0x8 MOV EBX,EDI MOV word ptr [RBP + -0x1a],AX LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x70] MOV ESI,EBX MOV EDX,0x7 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0019b68a LEA RSI,[RBP + -0x1f] MOV EDX,0x7 MOV ECX,0x4 MOV EDI,EBX CALL 0x0013175f MOV RCX,RAX LAB_0019b668: XOR EAX,EAX TEST RCX,RCX SETNZ CL MOV RDX,qword ptr FS:[0x28] CMP RDX,qword ptr [RBP + -0x18] JNZ 0x0019b6a4 MOV AL,CL ADD RSP,0x60 POP RBX POP R14 POP RBP RET LAB_0019b68a: LEA RDX,[RBP + -0x1f] LEA R14,[RBP + -0x28] MOV RDI,RAX MOV ESI,EBX MOV RCX,R14 CALL 0x0012ff77 MOV RCX,qword ptr [R14] JMP 0x0019b668 LAB_0019b6a4: CALL 0x0012a280
bool mi_recinfo_write(int4 param_1,ushort *param_2) { long lVar1; long in_FS_OFFSET; int1 local_78 [72]; long local_30; ushort local_27; ushort local_25; int1 local_23; ushort local_22; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); local_27 = *param_2 << 8 | *param_2 >> 8; local_25 = param_2[2] << 8 | param_2[2] >> 8; local_23 = (int1)param_2[6]; local_22 = param_2[7] << 8 | param_2[7] >> 8; lVar1 = (**(code **)(PSI_server + 0x158))(local_78,param_1,7); if (lVar1 == 0) { local_30 = my_write(param_1,&local_27,7,4); } else { mi_recinfo_write_cold_1(lVar1,param_1,&local_27,&local_30); } if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return local_30 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
7,039
my_context_yield
eloqsql/libmariadb/libmariadb/ma_context.c
int my_context_yield(struct my_context *c) { uint64_t *save= &c->save[0]; __asm__ __volatile__ ( "movl (%[save]), %%eax\n\t" "movl %%esp, (%[save])\n\t" "movl %%eax, %%esp\n\t" "movl 4(%[save]), %%eax\n\t" "movl %%ebp, 4(%[save])\n\t" "movl %%eax, %%ebp\n\t" "movl 8(%[save]), %%eax\n\t" "movl %%ebx, 8(%[save])\n\t" "movl %%eax, %%ebx\n\t" "movl 12(%[save]), %%eax\n\t" "movl %%esi, 12(%[save])\n\t" "movl %%eax, %%esi\n\t" "movl 16(%[save]), %%eax\n\t" "movl %%edi, 16(%[save])\n\t" "movl %%eax, %%edi\n\t" "movl 24(%[save]), %%eax\n\t" "call 1f\n" "1:\n\t" "popl %%ecx\n\t" "addl $(2f-1b), %%ecx\n\t" "movl %%ecx, 24(%[save])\n\t" "jmp *%%eax\n" "2:\n" : [save] "+d" (save) : : "eax", "ecx", "memory", "cc" ); return 0; }
O0
c
my_context_yield: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi movq (%rdi), %rax movq %rsp, (%rdi) movq %rax, %rsp movq 0x8(%rdi), %rax movq %rbp, 0x8(%rdi) movq %rax, %rbp movq 0x10(%rdi), %rax movq %rbx, 0x10(%rdi) movq %rax, %rbx movq 0x18(%rdi), %rax movq %r12, 0x18(%rdi) movq %rax, %r12 movq 0x20(%rdi), %rax movq %r13, 0x20(%rdi) movq %rax, %r13 movq 0x28(%rdi), %rax movq %r14, 0x28(%rdi) movq %rax, %r14 movq 0x30(%rdi), %rax movq %r15, 0x30(%rdi) movq %rax, %r15 movq 0x40(%rdi), %rax leaq 0x6(%rip), %rcx # 0x435a0 movq %rcx, 0x40(%rdi) jmpq *%rax movq %rdi, -0x10(%rbp) xorl %eax, %eax popq %rbp retq nopl (%rax,%rax)
my_context_yield: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rdi, [rbp+var_10] mov rax, [rdi] mov [rdi], rsp mov rsp, rax mov rax, [rdi+8] mov [rdi+8], rbp mov rbp, rax mov rax, [rdi+10h] mov [rdi+10h], rbx mov rbx, rax mov rax, [rdi+18h] mov [rdi+18h], r12 mov r12, rax mov rax, [rdi+20h] mov [rdi+20h], r13 mov r13, rax mov rax, [rdi+28h] mov [rdi+28h], r14 mov r14, rax mov rax, [rdi+30h] mov [rdi+30h], r15 mov r15, rax mov rax, [rdi+40h] lea rcx, qword_435A0 mov [rdi+40h], rcx jmp rax
long long my_context_yield(_QWORD *a1) { long long v1; // rbx long long v2; // r12 long long v3; // r13 long long v4; // r14 long long v5; // r15 long long (*v6)(void); // rax long long savedregs; // [rsp+10h] [rbp+0h] BYREF *a1 = &savedregs; a1[1] = &savedregs; a1[2] = v1; a1[3] = v2; a1[4] = v3; a1[5] = v4; a1[6] = v5; v6 = (long long (*)(void))a1[8]; a1[8] = qword_435A0; return v6(); }
my_context_yield: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RDI] MOV qword ptr [RDI],RSP MOV RSP,RAX MOV RAX,qword ptr [RDI + 0x8] MOV qword ptr [RDI + 0x8],RBP MOV RBP,RAX MOV RAX,qword ptr [RDI + 0x10] MOV qword ptr [RDI + 0x10],RBX MOV RBX,RAX MOV RAX,qword ptr [RDI + 0x18] MOV qword ptr [RDI + 0x18],R12 MOV R12,RAX MOV RAX,qword ptr [RDI + 0x20] MOV qword ptr [RDI + 0x20],R13 MOV R13,RAX MOV RAX,qword ptr [RDI + 0x28] MOV qword ptr [RDI + 0x28],R14 MOV R14,RAX MOV RAX,qword ptr [RDI + 0x30] MOV qword ptr [RDI + 0x30],R15 MOV R15,RAX MOV RAX,qword ptr [RDI + 0x40] LEA RCX,[0x1435a0] MOV qword ptr [RDI + 0x40],RCX JMP RAX
void my_context_yield(long param_1) { code *UNRECOVERED_JUMPTABLE; int8 unaff_RBX; int8 unaff_R12; int8 unaff_R13; int8 unaff_R14; int8 unaff_R15; *(int1 **)param_1 = &stack0xfffffffffffffff8; *(int1 **)(param_1 + 8) = &stack0xfffffffffffffff8; *(int8 *)(param_1 + 0x10) = unaff_RBX; *(int8 *)(param_1 + 0x18) = unaff_R12; *(int8 *)(param_1 + 0x20) = unaff_R13; *(int8 *)(param_1 + 0x28) = unaff_R14; *(int8 *)(param_1 + 0x30) = unaff_R15; UNRECOVERED_JUMPTABLE = *(code **)(param_1 + 0x40); *(int1 **)(param_1 + 0x40) = &LAB_001435a0; /* WARNING: Could not recover jumptable at 0x0014359e. Too many branches */ /* WARNING: Treating indirect jump as call */ (*UNRECOVERED_JUMPTABLE)(); return; }
7,040
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
monkey531[P]llama/common/json.hpp
void destroy(value_t t) { if ( (t == value_t::object && object == nullptr) || (t == value_t::array && array == nullptr) || (t == value_t::string && string == nullptr) || (t == value_t::binary && binary == nullptr) ) { //not initialized (e.g. due to exception in the ctor) return; } if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack std::vector<basic_json> stack; // move the top-level items to stack if (t == value_t::array) { stack.reserve(array->size()); std::move(array->begin(), array->end(), std::back_inserter(stack)); } else { stack.reserve(object->size()); for (auto&& it : *object) { stack.push_back(std::move(it.second)); } } while (!stack.empty()) { // move the last item to local variable to be processed basic_json current_item(std::move(stack.back())); stack.pop_back(); // if current_item is array/object, move // its children to the stack to be processed later if (current_item.is_array()) { std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack)); current_item.m_data.m_value.array->clear(); } else if (current_item.is_object()) { for (auto&& it : *current_item.m_data.m_value.object) { stack.push_back(std::move(it.second)); } current_item.m_data.m_value.object->clear(); } // it's now safe that current_item get destructed // since it doesn't have any children } } switch (t) { case value_t::object: { AllocatorType<object_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, object); std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1); break; } case value_t::array: { AllocatorType<array_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, array); std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1); break; } case value_t::string: { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1); break; } case value_t::binary: { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1); break; } case value_t::null: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::discarded: default: { break; } } }
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp cmpl $0x1, %esi sete %cl movq (%rdi), %rax testq %rax, %rax sete %dl testb %dl, %cl jne 0x3e31c movl %esi, %r14d testq %rax, %rax sete %cl movl %r14d, %edx andb $-0x2, %dl cmpb $0x2, %dl sete %dl cmpb $0x8, %r14b sete %sil orb %dl, %sil testb %cl, %sil jne 0x3e31c movq %rdi, %rbx leal -0x1(%r14), %ecx cmpb $0x1, %cl ja 0x3e297 xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq 0x8(%rax), %rsi subq (%rax), %rsi sarq $0x4, %rsi cmpb $0x2, %r14b jne 0x3e13d movq %rsp, %rdi callq 0x3e360 movq (%rbx), %rax movq (%rax), %r15 movq 0x8(%rax), %r13 subq %r15, %r13 sarq $0x4, %r13 testq %r13, %r13 jle 0x3e17e incq %r13 movq %rsp, %r12 movq %r12, %rdi movq %r15, %rsi callq 0x3e4c8 addq $0x10, %r15 decq %r13 cmpq $0x1, %r13 ja 0x3e123 jmp 0x3e17e movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB imulq %rsi, %rax movq %rsp, %rdi movq %rax, %rsi callq 0x3e360 movq (%rbx), %rax movq (%rax), %r12 movq 0x8(%rax), %r13 cmpq %r13, %r12 je 0x3e17e movq %rsp, %r15 leaq 0x20(%r12), %rsi movq %r15, %rdi callq 0x3e4c8 addq $0x30, %r12 cmpq %r13, %r12 jne 0x3e168 movq 0x8(%rsp), %r13 cmpq %r13, (%rsp) je 0x3e28f leaq 0x20(%rsp), %r15 movq %rsp, %r12 leaq -0x10(%r13), %rdi movups -0x10(%r13), %xmm0 movaps %xmm0, 0x20(%rsp) xorl %esi, %esi callq 0x3ce3c movb $0x0, -0x10(%r13) movq $0x0, -0x8(%r13) movq %r15, %rdi movl $0x1, %esi callq 0x3ce3c movq 0x8(%rsp), %r13 addq $-0x10, %r13 movq %r13, 0x8(%rsp) movq %r13, %rdi xorl %esi, %esi callq 0x3ce3c movq %r13, %rdi callq 0x49a2a movzbl 0x20(%rsp), %eax cmpl $0x1, %eax je 0x3e238 cmpl $0x2, %eax jne 0x3e26e movq 0x28(%rsp), %rdi movq (%rdi), %r13 movq 0x8(%rdi), %rbp subq %r13, %rbp sarq $0x4, %rbp testq %rbp, %rbp jle 0x3e22e incq %rbp movq %r12, %rdi movq %r13, %rsi callq 0x3e4c8 addq $0x10, %r13 decq %rbp cmpq $0x1, %rbp jg 0x3e20e movq 0x28(%rsp), %rdi movq (%rdi), %r13 movq %r13, %rsi callq 0x3e672 jmp 0x3e26e movq 0x28(%rsp), %rdi movq (%rdi), %r13 movq 0x8(%rdi), %rbp cmpq %rbp, %r13 je 0x3e266 leaq 0x20(%r13), %rsi movq %r12, %rdi callq 0x3e4c8 addq $0x30, %r13 cmpq %rbp, %r13 jne 0x3e249 movq 0x28(%rsp), %rdi movq (%rdi), %r13 movq %r13, %rsi callq 0x3e6ea movq %r15, %rdi xorl %esi, %esi callq 0x3ce3c movq %r15, %rdi callq 0x49a2a movq 0x8(%rsp), %r13 cmpq %r13, (%rsp) jne 0x3e195 movq %rsp, %rdi callq 0x3e3f4 movzbl %r14b, %eax decl %eax cmpl $0x7, %eax ja 0x3e31c leaq 0x69263(%rip), %rcx # 0xa750c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq (%rbx), %rdi callq 0x3e83c jmp 0x3e2d9 movq (%rbx), %rdi movq (%rdi), %rax leaq 0x10(%rdi), %rcx cmpq %rcx, %rax je 0x3e2dc movq (%rcx), %rsi incq %rsi movq %rax, %rdi callq 0x186a0 movq (%rbx), %rdi movl $0x20, %esi jmp 0x3e317 movq (%rbx), %rdi callq 0x3e3f4 movq (%rbx), %rdi movl $0x18, %esi jmp 0x3e317 movq (%rbx), %rdi movq (%rdi), %rax testq %rax, %rax je 0x3e312 movq 0x10(%rdi), %rsi subq %rax, %rsi movq %rax, %rdi callq 0x186a0 movq (%rbx), %rdi movl $0x28, %esi callq 0x186a0 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x3e32f jmp 0x3e32f movq %rax, %rbx jmp 0x3e350 jmp 0x3e336 movq %rax, %rbx leaq 0x20(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x3ce3c movq %r14, %rdi callq 0x49a2a movq %rsp, %rdi callq 0x3e3f4 movq %rbx, %rdi callq 0x18ba0
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h cmp esi, 1 setz cl mov rax, [rdi] test rax, rax setz dl test cl, dl jnz def_3E2B0; jumptable 000000000003E2B0 default case, cases 4-7 mov r14d, esi test rax, rax setz cl mov edx, r14d and dl, 0FEh cmp dl, 2 setz dl cmp r14b, 8 setz sil or sil, dl test sil, cl jnz def_3E2B0; jumptable 000000000003E2B0 default case, cases 4-7 mov rbx, rdi lea ecx, [r14-1] cmp cl, 1 ja loc_3E297 xorps xmm0, xmm0 movaps [rsp+68h+var_68], xmm0 mov [rsp+68h+var_58], 0 mov rsi, [rax+8] sub rsi, [rax] sar rsi, 4 cmp r14b, 2 jnz short loc_3E13D mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong) mov rax, [rbx] mov r15, [rax] mov r13, [rax+8] sub r13, r15 sar r13, 4 test r13, r13 jle short loc_3E17E inc r13 mov r12, rsp loc_3E123: mov rdi, r12 mov rsi, r15 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) add r15, 10h dec r13 cmp r13, 1 ja short loc_3E123 jmp short loc_3E17E loc_3E13D: mov rax, 0AAAAAAAAAAAAAAABh imul rax, rsi mov rdi, rsp mov rsi, rax call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::reserve(ulong) mov rax, [rbx] mov r12, [rax] mov r13, [rax+8] cmp r12, r13 jz short loc_3E17E mov r15, rsp loc_3E168: lea rsi, [r12+20h] mov rdi, r15 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) add r12, 30h ; '0' cmp r12, r13 jnz short loc_3E168 loc_3E17E: mov r13, qword ptr [rsp+68h+var_68+8] cmp qword ptr [rsp+68h+var_68], r13 jz loc_3E28F lea r15, [rsp+68h+var_48] mov r12, rsp loc_3E195: lea rdi, [r13-10h] movups xmm0, xmmword ptr [r13-10h] movaps [rsp+68h+var_48], xmm0 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r13-10h], 0 mov qword ptr [r13-8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov r13, qword ptr [rsp+68h+var_68+8] add r13, 0FFFFFFFFFFFFFFF0h mov qword ptr [rsp+68h+var_68+8], r13 mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() movzx eax, byte ptr [rsp+68h+var_48] cmp eax, 1 jz short loc_3E238 cmp eax, 2 jnz short loc_3E26E mov rdi, qword ptr [rsp+68h+var_48+8] mov r13, [rdi] mov rbp, [rdi+8] sub rbp, r13 sar rbp, 4 test rbp, rbp jle short loc_3E22E inc rbp loc_3E20E: mov rdi, r12 mov rsi, r13 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) add r13, 10h dec rbp cmp rbp, 1 jg short loc_3E20E mov rdi, qword ptr [rsp+68h+var_48+8] mov r13, [rdi] loc_3E22E: mov rsi, r13 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE15_M_erase_at_endEPSD_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::_M_erase_at_end(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>*) jmp short loc_3E26E loc_3E238: mov rdi, qword ptr [rsp+68h+var_48+8] mov r13, [rdi] mov rbp, [rdi+8] cmp r13, rbp jz short loc_3E266 loc_3E249: lea rsi, [r13+20h] mov rdi, r12 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&) add r13, 30h ; '0' cmp r13, rbp jnz short loc_3E249 mov rdi, qword ptr [rsp+68h+var_48+8] mov r13, [rdi] loc_3E266: mov rsi, r13 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE15_M_erase_at_endEPSG_; 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>>>::_M_erase_at_end(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>>*) loc_3E26E: mov rdi, r15 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov r13, qword ptr [rsp+68h+var_68+8] cmp qword ptr [rsp+68h+var_68], r13 jnz loc_3E195 loc_3E28F: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() loc_3E297: movzx eax, r14b dec eax; switch 8 cases cmp eax, 7 ja short def_3E2B0; jumptable 000000000003E2B0 default case, cases 4-7 lea rcx, jpt_3E2B0 movsxd rax, ds:(jpt_3E2B0 - 0A750Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_3E2B2: mov rdi, [rbx]; jumptable 000000000003E2B0 case 1 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EED2Ev; 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>>>::~vector() jmp short loc_3E2D9 loc_3E2BC: mov rdi, [rbx]; jumptable 000000000003E2B0 case 3 mov rax, [rdi] lea rcx, [rdi+10h] cmp rax, rcx jz short loc_3E2DC mov rsi, [rcx] inc rsi; unsigned __int64 mov rdi, rax; void * call __ZdlPvm; operator delete(void *,ulong) loc_3E2D9: mov rdi, [rbx] loc_3E2DC: mov esi, 20h ; ' ' jmp short loc_3E317 loc_3E2E3: mov rdi, [rbx]; jumptable 000000000003E2B0 case 2 call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() mov rdi, [rbx] mov esi, 18h jmp short loc_3E317 loc_3E2F5: mov rdi, [rbx]; jumptable 000000000003E2B0 case 8 mov rax, [rdi] test rax, rax jz short loc_3E312 mov rsi, [rdi+10h] sub rsi, rax; unsigned __int64 mov rdi, rax; void * call __ZdlPvm; operator delete(void *,ulong) mov rdi, [rbx]; void * loc_3E312: mov esi, 28h ; '('; unsigned __int64 loc_3E317: call __ZdlPvm; operator delete(void *,ulong) def_3E2B0: add rsp, 38h; jumptable 000000000003E2B0 default case, cases 4-7 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_3E32F jmp short $+2 loc_3E32F: mov rbx, rax jmp short loc_3E350 jmp short $+2 loc_3E336: mov rbx, rax lea r14, [rsp+arg_18] mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_3E350: mov rdi, rsp call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() mov rdi, rbx call __Unwind_Resume
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>::json_value::destroy( void ***a1, int a2) { void **v2; // rax char v3; // r14 long long v5; // rsi char *v6; // r15 long long v7; // r13 long long v8; // r13 bool v9; // cf char *v10; // r12 char *i; // r13 long long j; // r13 char *v13; // r13 long long v14; // rdi long long v15; // r13 long long v16; // rbp long long v17; // rbp long long v18; // rdi long long v19; // r13 long long v20; // rbp void **v21; // rdi _QWORD *v22; // rcx unsigned long long v23; // rsi _BYTE *v24; // rax __int128 v25; // [rsp+0h] [rbp-68h] BYREF long long v26; // [rsp+10h] [rbp-58h] _OWORD v27[4]; // [rsp+20h] [rbp-48h] BYREF v2 = *a1; if ( *a1 != 0LL || a2 != 1 ) { v3 = a2; if ( v2 != 0LL || (a2 & 0xFE) != 2 && (_BYTE)a2 != 8 ) { if ( (unsigned __int8)(a2 - 1) <= 1u ) { v25 = 0LL; v26 = 0LL; v5 = ((_BYTE *)v2[1] - (_BYTE *)*v2) >> 4; if ( v3 == 2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve( &v25, v5); v6 = (char *)**a1; v7 = ((_BYTE *)(*a1)[1] - v6) >> 4; if ( v7 > 0 ) { v8 = v7 + 1; do { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, v6); v6 += 16; v9 = v8-- == 1; } while ( !v9 && v8 != 1 ); } } else { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::reserve( &v25, 0xAAAAAAAAAAAAAAABLL * v5); v10 = (char *)**a1; for ( i = (char *)(*a1)[1]; v10 != i; v10 += 48 ) std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, v10 + 32); } for ( j = *((_QWORD *)&v25 + 1); (_QWORD)v25 != *((_QWORD *)&v25 + 1); j = *((_QWORD *)&v25 + 1) ) { v27[0] = *(_OWORD *)(j - 16); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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 *)(j - 16)); *(_BYTE *)(j - 16) = 0; *(_QWORD *)(j - 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); v13 = (char *)(*((_QWORD *)&v25 + 1) - 16LL); *((_QWORD *)&v25 + 1) = v13; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v13); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v13); if ( LOBYTE(v27[0]) == 1 ) { v18 = *((_QWORD *)&v27[0] + 1); v19 = **((_QWORD **)&v27[0] + 1); v20 = *(_QWORD *)(*((_QWORD *)&v27[0] + 1) + 8LL); if ( **((_QWORD **)&v27[0] + 1) != v20 ) { do { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, v19 + 32); v19 += 48LL; } while ( v19 != v20 ); v18 = *((_QWORD *)&v27[0] + 1); v19 = **((_QWORD **)&v27[0] + 1); } 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>>>::_M_erase_at_end( v18, v19); } else if ( LOBYTE(v27[0]) == 2 ) { v14 = *((_QWORD *)&v27[0] + 1); v15 = **((_QWORD **)&v27[0] + 1); v16 = (long long)(*(_QWORD *)(*((_QWORD *)&v27[0] + 1) + 8LL) - **((_QWORD **)&v27[0] + 1)) >> 4; if ( v16 > 0 ) { v17 = v16 + 1; do { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>( &v25, v15); v15 += 16LL; --v17; } while ( v17 > 1 ); v14 = *((_QWORD *)&v27[0] + 1); v15 = **((_QWORD **)&v27[0] + 1); } std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::_M_erase_at_end( v14, v15); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v27); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27); } std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(&v25); } switch ( v3 ) { case 1: 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>>>::~vector(*a1); goto LABEL_29; case 2: std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(*a1); v21 = *a1; v23 = 24LL; goto LABEL_35; case 3: v21 = *a1; v22 = *a1 + 2; if ( **a1 != v22 ) { operator delete(**a1, *v22 + 1LL); LABEL_29: v21 = *a1; } v23 = 32LL; goto LABEL_35; case 8: v21 = *a1; v24 = **a1; if ( v24 ) { operator delete(**a1, (_BYTE *)v21[2] - v24); v21 = *a1; } v23 = 40LL; LABEL_35: operator delete(v21, v23); break; default: return; } } } }
destroy: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 CMP ESI,0x1 SETZ CL MOV RAX,qword ptr [RDI] TEST RAX,RAX SETZ DL TEST CL,DL JNZ 0x0013e31c MOV R14D,ESI TEST RAX,RAX SETZ CL MOV EDX,R14D AND DL,0xfe CMP DL,0x2 SETZ DL CMP R14B,0x8 SETZ SIL OR SIL,DL TEST SIL,CL JNZ 0x0013e31c MOV RBX,RDI LEA ECX,[R14 + -0x1] CMP CL,0x1 JA 0x0013e297 XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 MOV qword ptr [RSP + 0x10],0x0 MOV RSI,qword ptr [RAX + 0x8] SUB RSI,qword ptr [RAX] SAR RSI,0x4 CMP R14B,0x2 JNZ 0x0013e13d LAB_0013e0ff: MOV RDI,RSP CALL 0x0013e360 MOV RAX,qword ptr [RBX] MOV R15,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] SUB R13,R15 SAR R13,0x4 TEST R13,R13 JLE 0x0013e17e INC R13 MOV R12,RSP LAB_0013e123: MOV RDI,R12 MOV RSI,R15 CALL 0x0013e4c8 ADD R15,0x10 DEC R13 CMP R13,0x1 JA 0x0013e123 JMP 0x0013e17e LAB_0013e13d: MOV RAX,-0x5555555555555555 IMUL RAX,RSI LAB_0013e14b: MOV RDI,RSP MOV RSI,RAX CALL 0x0013e360 MOV RAX,qword ptr [RBX] MOV R12,qword ptr [RAX] MOV R13,qword ptr [RAX + 0x8] CMP R12,R13 JZ 0x0013e17e MOV R15,RSP LAB_0013e168: LEA RSI,[R12 + 0x20] LAB_0013e16d: MOV RDI,R15 CALL 0x0013e4c8 ADD R12,0x30 CMP R12,R13 JNZ 0x0013e168 LAB_0013e17e: MOV R13,qword ptr [RSP + 0x8] CMP qword ptr [RSP],R13 JZ 0x0013e28f LEA R15,[RSP + 0x20] MOV R12,RSP LAB_0013e195: LEA RDI,[R13 + -0x10] MOVUPS XMM0,xmmword ptr [R13 + -0x10] MOVAPS xmmword ptr [RSP + 0x20],XMM0 XOR ESI,ESI CALL 0x0013ce3c MOV byte ptr [R13 + -0x10],0x0 MOV qword ptr [R13 + -0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0013ce3c MOV R13,qword ptr [RSP + 0x8] ADD R13,-0x10 MOV qword ptr [RSP + 0x8],R13 MOV RDI,R13 XOR ESI,ESI CALL 0x0013ce3c MOV RDI,R13 CALL 0x00149a2a MOVZX EAX,byte ptr [RSP + 0x20] CMP EAX,0x1 JZ 0x0013e238 CMP EAX,0x2 JNZ 0x0013e26e MOV RDI,qword ptr [RSP + 0x28] MOV R13,qword ptr [RDI] MOV RBP,qword ptr [RDI + 0x8] SUB RBP,R13 SAR RBP,0x4 TEST RBP,RBP JLE 0x0013e22e INC RBP LAB_0013e20e: MOV RDI,R12 MOV RSI,R13 CALL 0x0013e4c8 ADD R13,0x10 DEC RBP CMP RBP,0x1 JG 0x0013e20e MOV RDI,qword ptr [RSP + 0x28] MOV R13,qword ptr [RDI] LAB_0013e22e: MOV RSI,R13 CALL 0x0013e672 JMP 0x0013e26e LAB_0013e238: MOV RDI,qword ptr [RSP + 0x28] MOV R13,qword ptr [RDI] MOV RBP,qword ptr [RDI + 0x8] CMP R13,RBP JZ 0x0013e266 LAB_0013e249: LEA RSI,[R13 + 0x20] LAB_0013e24d: MOV RDI,R12 CALL 0x0013e4c8 LAB_0013e255: ADD R13,0x30 CMP R13,RBP JNZ 0x0013e249 MOV RDI,qword ptr [RSP + 0x28] MOV R13,qword ptr [RDI] LAB_0013e266: MOV RSI,R13 CALL 0x0013e6ea LAB_0013e26e: MOV RDI,R15 XOR ESI,ESI CALL 0x0013ce3c MOV RDI,R15 CALL 0x00149a2a MOV R13,qword ptr [RSP + 0x8] CMP qword ptr [RSP],R13 JNZ 0x0013e195 LAB_0013e28f: MOV RDI,RSP CALL 0x0013e3f4 LAB_0013e297: MOVZX EAX,R14B DEC EAX CMP EAX,0x7 JA 0x0013e31c LEA RCX,[0x1a750c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RDI,qword ptr [RBX] CALL 0x0013e83c JMP 0x0013e2d9 caseD_3: MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] LEA RCX,[RDI + 0x10] CMP RAX,RCX JZ 0x0013e2dc MOV RSI,qword ptr [RCX] INC RSI MOV RDI,RAX CALL 0x001186a0 LAB_0013e2d9: MOV RDI,qword ptr [RBX] LAB_0013e2dc: MOV ESI,0x20 JMP 0x0013e317 caseD_2: MOV RDI,qword ptr [RBX] CALL 0x0013e3f4 MOV RDI,qword ptr [RBX] MOV ESI,0x18 JMP 0x0013e317 caseD_8: MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] TEST RAX,RAX JZ 0x0013e312 MOV RSI,qword ptr [RDI + 0x10] SUB RSI,RAX MOV RDI,RAX CALL 0x001186a0 MOV RDI,qword ptr [RBX] LAB_0013e312: MOV ESI,0x28 LAB_0013e317: CALL 0x001186a0 caseD_4: ADD RSP,0x38 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */ 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> ::json_value::destroy(json_value *this,uint param_2) { long *plVar1; long lVar2; pair *ppVar3; void *pvVar4; byte bVar5; ulong uVar6; bool bVar7; int8 *puVar8; long lVar9; data *pdVar10; pair *ppVar11; basic_json *pbVar12; data *local_68; data *pdStack_60; int8 local_58; int8 local_48; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *pvStack_40; plVar1 = *(long **)this; if (param_2 == 1 && plVar1 == (long *)0x0) { return; } bVar5 = (byte)param_2; if ((bVar5 == 8 || (bVar5 & 0xfe) == 2) && plVar1 == (long *)0x0) { return; } if ((byte)(bVar5 - 1) < 2) { local_68 = (data *)0x0; pdStack_60 = (data *)0x0; local_58 = 0; uVar6 = plVar1[1] - *plVar1 >> 4; if (bVar5 == 2) { /* try { // try from 0013e0ff to 0013e106 has its CatchHandler @ 0013e32b */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,uVar6); pbVar12 = (basic_json *)**(long **)this; lVar9 = (*(long **)this)[1] - (long)pbVar12 >> 4; if (0 < lVar9) { uVar6 = lVar9 + 1; do { /* try { // try from 0013e123 to 0013e12d has its CatchHandler @ 0013e32f */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,pbVar12); pbVar12 = pbVar12 + 0x10; uVar6 = uVar6 - 1; } while (1 < uVar6); } } else { /* try { // try from 0013e14b to 0013e155 has its CatchHandler @ 0013e32b */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::reserve((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,uVar6 * -0x5555555555555555); lVar2 = (*(long **)this)[1]; for (lVar9 = **(long **)this; lVar9 != lVar2; lVar9 = lVar9 + 0x30) { /* try { // try from 0013e16d to 0013e174 has its CatchHandler @ 0013e32d */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,(basic_json *)(lVar9 + 0x20)); } } if (local_68 != pdStack_60) { do { pdVar10 = pdStack_60; local_48 = *(int8 *)(pdStack_60 + -0x10); pvStack_40 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(pdStack_60 + -8); assert_invariant((bool)((char)pdStack_60 + -0x10)); pdVar10[-0x10] = (data)0x0; *(int8 *)(pdVar10 + -8) = 0; bVar7 = SUB81((data *)&local_48,0); assert_invariant(bVar7); pdVar10 = pdStack_60 + -0x10; pdStack_60 = pdVar10; assert_invariant(SUB81(pdVar10,0)); data::~data(pdVar10); if (local_48._0_1_ == (data)0x1) { ppVar11 = *(pair **)pvStack_40; ppVar3 = *(pair **)(pvStack_40 + 8); if (ppVar11 != ppVar3) { do { /* try { // try from 0013e24d to 0013e254 has its CatchHandler @ 0013e336 */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,(basic_json *)(ppVar11 + 0x20)); ppVar11 = ppVar11 + 0x30; } while (ppVar11 != ppVar3); ppVar11 = *(pair **)pvStack_40; } 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>>>> ::_M_erase_at_end((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>>>> *)pvStack_40,ppVar11); } else if (local_48._0_1_ == (data)0x2) { pbVar12 = *(basic_json **)pvStack_40; lVar9 = *(long *)(pvStack_40 + 8) - (long)pbVar12 >> 4; if (0 < lVar9) { lVar9 = lVar9 + 1; do { /* try { // try from 0013e20e to 0013e218 has its CatchHandler @ 0013e334 */ std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> :: emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68,pbVar12); pbVar12 = pbVar12 + 0x10; lVar9 = lVar9 + -1; } while (1 < lVar9); pbVar12 = *(basic_json **)pvStack_40; } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::_M_erase_at_end(pvStack_40,pbVar12); } assert_invariant(bVar7); data::~data((data *)&local_48); } while (local_68 != pdStack_60); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *)&local_68); } switch(param_2 & 0xff) { case 1: 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>>>> ::~vector(*(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>>>> **)this); LAB_0013e2d9: puVar8 = *(int8 **)this; goto LAB_0013e2dc; case 2: std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::~vector(*(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)this); puVar8 = *(int8 **)this; uVar6 = 0x18; break; case 3: puVar8 = *(int8 **)this; if ((long *)*puVar8 != puVar8 + 2) { operator_delete((long *)*puVar8,puVar8[2] + 1); goto LAB_0013e2d9; } LAB_0013e2dc: uVar6 = 0x20; break; default: goto switchD_0013e2b0_caseD_4; case 8: puVar8 = *(int8 **)this; pvVar4 = (void *)*puVar8; if (pvVar4 != (void *)0x0) { operator_delete(pvVar4,puVar8[2] - (long)pvVar4); puVar8 = *(int8 **)this; } uVar6 = 0x28; } operator_delete(puVar8,uVar6); switchD_0013e2b0_caseD_4: return; }
7,041
testing::internal::PrintTo(char16_t const*, std::ostream*)
seiftnesse[P]memoryallocator/build_O3/_deps/googletest-src/googletest/src/gtest-printers.cc
void PrintTo(const char16_t* s, ostream* os) { PrintCStringTo(s, os); }
O3
cpp
testing::internal::PrintTo(char16_t const*, std::ostream*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx testq %rdi, %rdi je 0x1bd68 movq %rdi, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x93a0 leaq 0x28ca3(%rip), %rsi # 0x449d8 movl $0xd, %edx movq %rax, %rdi callq 0x95a0 movq $-0x1, %rsi cmpw $0x0, 0x2(%r14,%rsi,2) leaq 0x1(%rsi), %rsi jne 0x1bd49 movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1c161 leaq 0x24a5d(%rip), %rsi # 0x407cc movl $0x4, %edx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x95a0
_ZN7testing8internal7PrintToEPKDsPSo: push r14 push rbx push rax mov rbx, rsi test rdi, rdi jz short loc_1BD68 mov r14, rdi mov rdi, rbx mov rsi, r14 call __ZNSo9_M_insertIPKvEERSoT_; std::ostream::_M_insert<void const*>(void const*) lea rsi, aPointingTo; " pointing to " mov edx, 0Dh mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rsi, 0FFFFFFFFFFFFFFFFh loc_1BD49: cmp word ptr [r14+rsi*2+2], 0 lea rsi, [rsi+1] jnz short loc_1BD49 mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r14 jmp _ZN7testing8internalL20PrintCharsAsStringToIDsEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<char16_t>(char16_t const*,ulong,std::ostream *) loc_1BD68: lea rsi, aNull_0; "NULL" mov edx, 4 mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
long long testing::internal::PrintTo(long long a1, long long a2) { long long v3; // rax long long v4; // rsi if ( !a1 ) return std::__ostream_insert<char,std::char_traits<char>>(a2, "NULL", 4LL); v3 = std::ostream::_M_insert<void const*>(a2, a1); std::__ostream_insert<char,std::char_traits<char>>(v3, " pointing to ", 13LL); v4 = -1LL; while ( *(_WORD *)(a1 + 2 * v4++ + 2) != 0 ) ; return testing::internal::PrintCharsAsStringTo<char16_t>(a1, v4, a2); }
PrintTo: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI TEST RDI,RDI JZ 0x0011bd68 MOV R14,RDI MOV RDI,RBX MOV RSI,R14 CALL 0x001093a0 LEA RSI,[0x1449d8] MOV EDX,0xd MOV RDI,RAX CALL 0x001095a0 MOV RSI,-0x1 LAB_0011bd49: CMP word ptr [R14 + RSI*0x2 + 0x2],0x0 LEA RSI,[RSI + 0x1] JNZ 0x0011bd49 MOV RDI,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0011c161 LAB_0011bd68: LEA RSI,[0x1407cc] MOV EDX,0x4 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001095a0
/* testing::internal::PrintTo(char16_t const*, std::ostream*) */ void testing::internal::PrintTo(wchar16 *param_1,ostream *param_2) { long lVar1; ostream *poVar2; ulong uVar3; if (param_1 != (wchar16 *)0x0) { poVar2 = std::ostream::_M_insert<void_const*>(param_2); std::__ostream_insert<char,std::char_traits<char>>(poVar2," pointing to ",0xd); uVar3 = 0xffffffffffffffff; do { lVar1 = uVar3 + 1; uVar3 = uVar3 + 1; } while (param_1[lVar1] != L'\0'); PrintCharsAsStringTo<char16_t>(param_1,uVar3,param_2); return; } std::__ostream_insert<char,std::char_traits<char>>(param_2,"NULL",4); return; }
7,042
PAIRING_Aggregate_PK_in_G1
corpus-core[P]colibri-stateless/build_O1/_deps/blst-src/src/aggregate.c
static BLST_ERROR PAIRING_Aggregate_PK_in_G1(PAIRING *ctx, const POINTonE1_affine *PK, size_t pk_groupcheck, const POINTonE2_affine *sig, size_t sig_groupcheck, const byte *scalar, size_t nbits, const void *msg, size_t msg_len, const void *aug, size_t aug_len) { if (ctx->ctrl & AGGR_MIN_SIG) return BLST_AGGR_TYPE_MISMATCH; ctx->ctrl |= AGGR_MIN_PK; /* * Since we don't know if the signature is individual or aggregated, * the only sensible thing to do is to skip over infinite one and * count on the corresponding infinite public key to be rejected, * in case the signature is non-aggregated that is. */ if (sig != NULL && !vec_is_zero(sig, sizeof(*sig))) { POINTonE2 *S = &ctx->AggrSign.e2; POINTonE2 P[1]; FROM_AFFINE(P, sig); if (sig_groupcheck && !POINTonE2_in_G2(P)) return BLST_POINT_NOT_IN_GROUP; if (ctx->ctrl & AGGR_SIGN_SET) { if (nbits != 0 && scalar != NULL) { POINTonE2_mult_w5(P, P, scalar, nbits); POINTonE2_dadd(S, S, P, NULL); } else { POINTonE2_dadd_affine(S, S, sig); } } else { ctx->ctrl |= AGGR_SIGN_SET; if (nbits != 0 && scalar != NULL) POINTonE2_mult_w5(S, P, scalar, nbits); else vec_copy(S, P, sizeof(P)); } } if (PK != NULL) { unsigned int n; POINTonE2 H[1]; POINTonE1 pk[1]; const void *DST = pairing_get_dst(ctx); /* * Reject infinite public keys. */ if (vec_is_zero(PK, sizeof(*PK))) return BLST_PK_IS_INFINITY; if (pk_groupcheck) { POINTonE1 P[1]; FROM_AFFINE(P, PK); if (!POINTonE1_in_G1(P)) return BLST_POINT_NOT_IN_GROUP; } if (ctx->ctrl & AGGR_HASH_OR_ENCODE) Hash_to_G2(H, msg, msg_len, DST, ctx->DST_len, aug, aug_len); else Encode_to_G2(H, msg, msg_len, DST, ctx->DST_len, aug, aug_len); POINTonE2_from_Jacobian(H, H); if (nbits != 0 && scalar != NULL) { FROM_AFFINE(pk, PK); POINTonE1_mult_w5(pk, pk, scalar, nbits); POINTonE1_from_Jacobian(pk, pk); PK = (const POINTonE1_affine *)pk; } n = ctx->nelems; vec_copy(ctx->Q + n, H, sizeof(POINTonE2_affine)); vec_copy(ctx->P + n, PK, sizeof(POINTonE1_affine)); if (++n == N_MAX) { if (ctx->ctrl & AGGR_GT_SET) { vec384fp12 GT; miller_loop_n(GT, ctx->Q, ctx->P, n); mul_fp12(ctx->GT, ctx->GT, GT); } else { miller_loop_n(ctx->GT, ctx->Q, ctx->P, n); ctx->ctrl |= AGGR_GT_SET; } n = 0; } ctx->nelems = n; } return BLST_SUCCESS; }
O1
c
PAIRING_Aggregate_PK_in_G1: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x3f8, %rsp # imm = 0x3F8 movq %r9, -0x30(%rbp) movq %rcx, %r12 movl (%rdi), %ecx movl $0x4, %eax testb $0x1, %cl jne 0x21895 movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx orl $0x2, %ecx movl %ecx, (%rdi) testq %r12, %r12 je 0x21548 movq %r8, %r15 movl $0xc0, %esi movq %r12, %rdi callq 0x30680 testq %rax, %rax je 0x21586 testq %r14, %r14 je 0x21893 movq 0x8(%rbx), %rax leaq 0xc78(%rbx), %r12 cmpq $0x2a, %rax cmovneq %rax, %r12 movl $0x60, %esi movq %r14, %rdi callq 0x30680 testq %rax, %rax je 0x21622 movl $0x6, %eax xorl %ecx, %ecx jmp 0x2188f leaq -0x270(%rbp), %rdi movl $0xc0, %edx movq %r12, %rsi callq 0x5060 movl $0xc0, %esi movq %r12, %rdi callq 0x30680 leaq 0x1e5aa(%rip), %rdx # 0x3fb58 leaq -0x1b0(%rbp), %rdi movq %r12, %rsi movq %rax, %rcx callq 0x30060 testq %r15, %r15 je 0x215da leaq -0x270(%rbp), %rdi callq 0x1f18b testq %rax, %rax je 0x21824 leaq 0x258(%rbx), %r15 movl (%rbx), %eax testb $0x10, %al jne 0x216b8 orl $0x10, %eax movl %eax, (%rbx) movq 0x10(%rbp), %rcx testq %rcx, %rcx sete %al movq -0x30(%rbp), %rdx testq %rdx, %rdx sete %sil orb %al, %sil jne 0x21834 leaq -0x270(%rbp), %rsi movq %r15, %rdi callq 0x1e97d jmp 0x21548 testq %r13, %r13 je 0x21676 leaq -0x270(%rbp), %r15 movl $0xc, %ecx movq %r15, %rdi movq %r14, %rsi rep movsq (%rsi), %es:(%rdi) leaq -0x210(%rbp), %r13 movl $0x60, %esi movq %r14, %rdi callq 0x30680 leaq 0x1e501(%rip), %rdx # 0x3fb58 movq %r13, %rdi movq %r14, %rsi movq %rax, %rcx callq 0x2ffe0 movq %r15, %rdi callq 0x1bed0 testq %rax, %rax je 0x2182b movq 0x30(%rbp), %rcx movq 0x28(%rbp), %rdx movq 0x20(%rbp), %r9 movq 0x18(%rbp), %r8 testb $0x40, (%rbx) movq 0x10(%rbx), %rax leaq -0x270(%rbp), %r15 jne 0x216fd movl $0x2, %esi movq %r15, %rdi pushq %rax pushq %r12 callq 0x26dc2 addq $0x10, %rsp leaq -0x420(%rbp), %rdi movq %r15, %rsi xorl %edx, %edx jmp 0x21722 movq 0x10(%rbp), %rcx testq %rcx, %rcx sete %al movq -0x30(%rbp), %rdx testq %rdx, %rdx sete %sil orb %al, %sil jne 0x2184d leaq -0x270(%rbp), %r12 movq %r12, %rdi movq %r12, %rsi callq 0x1e97d movq %r15, %rdi movq %r15, %rsi movq %r12, %rdx xorl %ecx, %ecx callq 0x1d111 jmp 0x21548 movl $0x4, %esi movq %r15, %rdi pushq %rax pushq %r12 callq 0x26dc2 addq $0x10, %rsp leaq -0x210(%rbp), %rdx leaq -0x420(%rbp), %rdi movq %r15, %rsi callq 0x1ec0b leaq -0x420(%rbp), %rdi movq %rdi, %rsi callq 0x1c06a movq 0x10(%rbp), %rax testq %rax, %rax sete %al movq -0x30(%rbp), %r13 testq %r13, %r13 sete %cl orb %al, %cl jne 0x217ac leaq -0x300(%rbp), %r15 movl $0xc, %ecx movq %r15, %rdi movq %r14, %rsi rep movsq (%rsi), %es:(%rdi) leaq -0x2a0(%rbp), %r12 movl $0x60, %esi movq %r14, %rdi callq 0x30680 leaq 0x1e3da(%rip), %rdx # 0x3fb58 movq %r12, %rdi movq %r14, %rsi movq %rax, %rcx callq 0x2ffe0 movq %r15, %rdi movq %r15, %rsi movq %r13, %rdx movq 0x10(%rbp), %rcx callq 0x1b770 movq %r15, %rdi movq %r15, %rsi callq 0x192c4 movq %r15, %r14 movl 0x4(%rbx), %r15d leaq (%r15,%r15,2), %r12 movq %r12, %rax shlq $0x6, %rax leaq (%rbx,%rax), %rdi addq $0x378, %rdi # imm = 0x378 leaq -0x420(%rbp), %rsi movl $0xc0, %edx callq 0x5060 shlq $0x5, %r12 leaq (%rbx,%r12), %rdi addq $0x978, %rdi # imm = 0x978 movl $0xc, %ecx movq %r14, %rsi rep movsq (%rsi), %es:(%rdi) leal 0x1(%r15), %eax cmpl $0x8, %eax jne 0x21885 leaq 0x378(%rbx), %rsi leaq 0x978(%rbx), %rdx testb $0x20, (%rbx) jne 0x21860 leaq 0x18(%rbx), %rdi movl $0x8, %ecx callq 0x2043d orb $0x20, (%rbx) jmp 0x21883 movl $0x3, %eax jmp 0x21895 xorl %ecx, %ecx movl $0x3, %eax jmp 0x2188f leaq -0x270(%rbp), %rsi movl $0x120, %edx # imm = 0x120 movq %r15, %rdi callq 0x5060 jmp 0x21548 movq %r15, %rdi movq %r15, %rsi movq %r12, %rdx callq 0x1d811 jmp 0x21548 leaq -0x270(%rbp), %r14 movl $0x8, %ecx movq %r14, %rdi callq 0x2043d leaq 0x18(%rbx), %rdi movq %rdi, %rsi movq %r14, %rdx callq 0x1f662 xorl %eax, %eax movl %eax, 0x4(%rbx) movl $0x3, %eax movb $0x1, %cl testb %cl, %cl je 0x21895 xorl %eax, %eax addq $0x3f8, %rsp # imm = 0x3F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
PAIRING_Aggregate_PK_in_G1: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 3F8h mov [rbp+var_30], r9 mov r12, rcx mov ecx, [rdi] mov eax, 4 test cl, 1 jnz loc_21895 mov r13, rdx mov r14, rsi mov rbx, rdi or ecx, 2 mov [rdi], ecx test r12, r12 jz short loc_21548 mov r15, r8 mov esi, 0C0h mov rdi, r12 call vec_is_zero_16x test rax, rax jz short loc_21586 loc_21548: test r14, r14 jz loc_21893 mov rax, [rbx+8] lea r12, [rbx+0C78h] cmp rax, 2Ah ; '*' cmovnz r12, rax mov esi, 60h ; '`' mov rdi, r14 call vec_is_zero_16x test rax, rax jz loc_21622 mov eax, 6 xor ecx, ecx jmp loc_2188F loc_21586: lea rdi, [rbp+var_270] mov edx, 0C0h mov rsi, r12 call _memcpy mov esi, 0C0h mov rdi, r12 call vec_is_zero_16x lea rdx, BLS12_381_Rx lea rdi, [rbp+var_1B0] mov rsi, r12 mov rcx, rax call vec_select_96 test r15, r15 jz short loc_215DA lea rdi, [rbp+var_270] call POINTonE2_in_G2 test rax, rax jz loc_21824 loc_215DA: lea r15, [rbx+258h] mov eax, [rbx] test al, 10h jnz loc_216B8 or eax, 10h mov [rbx], eax mov rcx, [rbp+arg_0] test rcx, rcx setz al mov rdx, [rbp+var_30] test rdx, rdx setz sil or sil, al jnz loc_21834 lea rsi, [rbp+var_270] mov rdi, r15 call POINTonE2_mult_w5 jmp loc_21548 loc_21622: test r13, r13 jz short loc_21676 lea r15, [rbp+var_270] mov ecx, 0Ch mov rdi, r15 mov rsi, r14 rep movsq lea r13, [rbp+var_210] mov esi, 60h ; '`' mov rdi, r14 call vec_is_zero_16x lea rdx, BLS12_381_Rx mov rdi, r13 mov rsi, r14 mov rcx, rax call vec_select_48 mov rdi, r15 call POINTonE1_in_G1 test rax, rax jz loc_2182B loc_21676: mov rcx, [rbp+arg_20] mov rdx, [rbp+arg_18] mov r9, [rbp+arg_10] mov r8, [rbp+arg_8] test byte ptr [rbx], 40h mov rax, [rbx+10h] lea r15, [rbp+var_270] jnz short loc_216FD mov esi, 2 mov rdi, r15 push rax push r12 call hash_to_field add rsp, 10h lea rdi, [rbp+var_420] mov rsi, r15 xor edx, edx jmp short loc_21722 loc_216B8: mov rcx, [rbp+arg_0] test rcx, rcx setz al mov rdx, [rbp+var_30] test rdx, rdx setz sil or sil, al jnz loc_2184D lea r12, [rbp+var_270] mov rdi, r12 mov rsi, r12 call POINTonE2_mult_w5 mov rdi, r15 mov rsi, r15 mov rdx, r12 xor ecx, ecx call POINTonE2_dadd jmp loc_21548 loc_216FD: mov esi, 4 mov rdi, r15 push rax push r12 call hash_to_field add rsp, 10h lea rdx, [rbp+var_210] lea rdi, [rbp+var_420] mov rsi, r15 loc_21722: call map_to_g2 lea rdi, [rbp+var_420] mov rsi, rdi call POINTonE2_from_Jacobian mov rax, [rbp+arg_0] test rax, rax setz al mov r13, [rbp+var_30] test r13, r13 setz cl or cl, al jnz short loc_217AC lea r15, [rbp+var_300] mov ecx, 0Ch mov rdi, r15 mov rsi, r14 rep movsq lea r12, [rbp+var_2A0] mov esi, 60h ; '`' mov rdi, r14 call vec_is_zero_16x lea rdx, BLS12_381_Rx mov rdi, r12 mov rsi, r14 mov rcx, rax call vec_select_48 mov rdi, r15 mov rsi, r15 mov rdx, r13 mov rcx, [rbp+arg_0] call POINTonE1_mult_w5 mov rdi, r15 mov rsi, r15 call POINTonE1_from_Jacobian mov r14, r15 loc_217AC: mov r15d, [rbx+4] lea r12, [r15+r15*2] mov rax, r12 shl rax, 6 lea rdi, [rbx+rax] add rdi, 378h lea rsi, [rbp+var_420] mov edx, 0C0h call _memcpy shl r12, 5 lea rdi, [rbx+r12] add rdi, 978h mov ecx, 0Ch mov rsi, r14 rep movsq lea eax, [r15+1] cmp eax, 8 jnz loc_21885 lea rsi, [rbx+378h] lea rdx, [rbx+978h] test byte ptr [rbx], 20h jnz short loc_21860 lea rdi, [rbx+18h] mov ecx, 8 call miller_loop_n or byte ptr [rbx], 20h jmp short loc_21883 loc_21824: mov eax, 3 jmp short loc_21895 loc_2182B: xor ecx, ecx mov eax, 3 jmp short loc_2188F loc_21834: lea rsi, [rbp+var_270] mov edx, 120h mov rdi, r15 call _memcpy jmp loc_21548 loc_2184D: mov rdi, r15 mov rsi, r15 mov rdx, r12 call POINTonE2_dadd_affine jmp loc_21548 loc_21860: lea r14, [rbp+var_270] mov ecx, 8 mov rdi, r14 call miller_loop_n lea rdi, [rbx+18h] mov rsi, rdi mov rdx, r14 call mul_fp12 loc_21883: xor eax, eax loc_21885: mov [rbx+4], eax mov eax, 3 mov cl, 1 loc_2188F: test cl, cl jz short loc_21895 loc_21893: xor eax, eax loc_21895: add rsp, 3F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long PAIRING_Aggregate_PK_in_G1( long long a1, _BYTE *a2, long long a3, long long a4, long long a5, unsigned __int8 *a6, unsigned long long a7, long long a8, long long a9, long long a10, long long a11) { long long result; // rax _BYTE *v14; // r14 long long v16; // r12 char v17; // cl long long is_zero_16x; // rax long long v19; // rax _BYTE *v20; // rdx unsigned __int8 *v21; // r13 long long v22; // rax long long v23; // r15 int v24; // eax long long v25; // rsi long long v26; // rdx _BYTE v27[288]; // [rsp+0h] [rbp-420h] BYREF _BYTE v28[96]; // [rsp+120h] [rbp-300h] BYREF _BYTE v29[48]; // [rsp+180h] [rbp-2A0h] BYREF char v30[96]; // [rsp+1B0h] [rbp-270h] BYREF _BYTE v31[96]; // [rsp+210h] [rbp-210h] BYREF _BYTE v32[384]; // [rsp+270h] [rbp-1B0h] BYREF unsigned __int8 *v33; // [rsp+3F0h] [rbp-30h] v33 = a6; result = 4LL; if ( (*(_DWORD *)a1 & 1) == 0 ) { v14 = a2; *(_DWORD *)a1 |= 2u; if ( a4 && !vec_is_zero_16x(a4, 192LL) ) { memcpy(v30, a4, 192LL); is_zero_16x = vec_is_zero_16x(a4, 192LL); vec_select_96(v32, a4, &BLS12_381_Rx, is_zero_16x); if ( a5 && !POINTonE2_in_G2((long long)v30) ) return 3LL; if ( (*(_DWORD *)a1 & 0x10) != 0 ) { if ( a7 == 0 || v33 == 0LL ) { POINTonE2_dadd_affine(a1 + 600, a1 + 600, a4); } else { POINTonE2_mult_w5((long long)v30, (long long)v30, v33, a7); POINTonE2_dadd(a1 + 600, a1 + 600, (long long)v30, 0LL); } } else { *(_DWORD *)a1 |= 0x10u; if ( a7 == 0 || v33 == 0LL ) memcpy(a1 + 600, v30, 288LL); else POINTonE2_mult_w5(a1 + 600, (long long)v30, v33, a7); } } if ( !a2 ) return 0LL; v16 = a1 + 3192; if ( *(_QWORD *)(a1 + 8) != 42LL ) v16 = *(_QWORD *)(a1 + 8); if ( vec_is_zero_16x(a2, 96LL) ) { result = 6LL; v17 = 0; } else if ( a3 && (qmemcpy(v30, a2, sizeof(v30)), v19 = vec_is_zero_16x(a2, 96LL), vec_select_48(v31, a2, &BLS12_381_Rx, v19), !POINTonE1_in_G1(v30)) ) { v17 = 0; result = 3LL; } else { if ( (*(_BYTE *)a1 & 0x40) != 0 ) { hash_to_field((unsigned int)v30, 4, a10, a11, a8, a9, v16, *(_QWORD *)(a1 + 16)); v20 = v31; } else { hash_to_field((unsigned int)v30, 2, a10, a11, a8, a9, v16, *(_QWORD *)(a1 + 16)); v20 = 0LL; } map_to_g2((long long)v27, (long long)v30, (long long)v20); POINTonE2_from_Jacobian((long long)v27, (long long)v27); v21 = v33; if ( a7 != 0 && v33 != 0LL ) { qmemcpy(v28, a2, sizeof(v28)); v22 = vec_is_zero_16x(a2, 96LL); vec_select_48(v29, a2, &BLS12_381_Rx, v22); POINTonE1_mult_w5((long long)v28, (long long)v28, v21, a7); POINTonE1_from_Jacobian((long long)v28, (long long)v28); v14 = v28; } v23 = *(unsigned int *)(a1 + 4); memcpy(a1 + 192 * v23 + 888, v27, 192LL); qmemcpy((void *)(a1 + 96 * v23 + 2424), v14, 0x60uLL); v24 = v23 + 1; if ( (_DWORD)v23 == 7 ) { v25 = a1 + 888; v26 = a1 + 2424; if ( (*(_BYTE *)a1 & 0x20) != 0 ) { miller_loop_n((long long)v30, v25, v26, 8LL); mul_fp12(a1 + 24, a1 + 24, (long long)v30); } else { miller_loop_n(a1 + 24, v25, v26, 8LL); *(_BYTE *)a1 |= 0x20u; } v24 = 0; } *(_DWORD *)(a1 + 4) = v24; result = 3LL; v17 = 1; } if ( v17 ) return 0LL; } return result; }
PAIRING_Aggregate_PK_in_G1: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x3f8 MOV qword ptr [RBP + -0x30],R9 MOV R12,RCX MOV ECX,dword ptr [RDI] MOV EAX,0x4 TEST CL,0x1 JNZ 0x00121895 MOV R13,RDX MOV R14,RSI MOV RBX,RDI OR ECX,0x2 MOV dword ptr [RDI],ECX TEST R12,R12 JZ 0x00121548 MOV R15,R8 MOV ESI,0xc0 MOV RDI,R12 CALL 0x00130680 TEST RAX,RAX JZ 0x00121586 LAB_00121548: TEST R14,R14 JZ 0x00121893 MOV RAX,qword ptr [RBX + 0x8] LEA R12,[RBX + 0xc78] CMP RAX,0x2a CMOVNZ R12,RAX MOV ESI,0x60 MOV RDI,R14 CALL 0x00130680 TEST RAX,RAX JZ 0x00121622 MOV EAX,0x6 XOR ECX,ECX JMP 0x0012188f LAB_00121586: LEA RDI,[RBP + -0x270] MOV EDX,0xc0 MOV RSI,R12 CALL 0x00105060 MOV ESI,0xc0 MOV RDI,R12 CALL 0x00130680 LEA RDX,[0x13fb58] LEA RDI,[RBP + -0x1b0] MOV RSI,R12 MOV RCX,RAX CALL 0x00130060 TEST R15,R15 JZ 0x001215da LEA RDI,[RBP + -0x270] CALL 0x0011f18b TEST RAX,RAX JZ 0x00121824 LAB_001215da: LEA R15,[RBX + 0x258] MOV EAX,dword ptr [RBX] TEST AL,0x10 JNZ 0x001216b8 OR EAX,0x10 MOV dword ptr [RBX],EAX MOV RCX,qword ptr [RBP + 0x10] TEST RCX,RCX SETZ AL MOV RDX,qword ptr [RBP + -0x30] TEST RDX,RDX SETZ SIL OR SIL,AL JNZ 0x00121834 LEA RSI,[RBP + -0x270] MOV RDI,R15 CALL 0x0011e97d JMP 0x00121548 LAB_00121622: TEST R13,R13 JZ 0x00121676 LEA R15,[RBP + -0x270] MOV ECX,0xc MOV RDI,R15 MOV RSI,R14 MOVSQ.REP RDI,RSI LEA R13,[RBP + -0x210] MOV ESI,0x60 MOV RDI,R14 CALL 0x00130680 LEA RDX,[0x13fb58] MOV RDI,R13 MOV RSI,R14 MOV RCX,RAX CALL 0x0012ffe0 MOV RDI,R15 CALL 0x0011bed0 TEST RAX,RAX JZ 0x0012182b LAB_00121676: MOV RCX,qword ptr [RBP + 0x30] MOV RDX,qword ptr [RBP + 0x28] MOV R9,qword ptr [RBP + 0x20] MOV R8,qword ptr [RBP + 0x18] TEST byte ptr [RBX],0x40 MOV RAX,qword ptr [RBX + 0x10] LEA R15,[RBP + -0x270] JNZ 0x001216fd MOV ESI,0x2 MOV RDI,R15 PUSH RAX PUSH R12 CALL 0x00126dc2 ADD RSP,0x10 LEA RDI,[RBP + -0x420] MOV RSI,R15 XOR EDX,EDX JMP 0x00121722 LAB_001216b8: MOV RCX,qword ptr [RBP + 0x10] TEST RCX,RCX SETZ AL MOV RDX,qword ptr [RBP + -0x30] TEST RDX,RDX SETZ SIL OR SIL,AL JNZ 0x0012184d LEA R12,[RBP + -0x270] MOV RDI,R12 MOV RSI,R12 CALL 0x0011e97d MOV RDI,R15 MOV RSI,R15 MOV RDX,R12 XOR ECX,ECX CALL 0x0011d111 JMP 0x00121548 LAB_001216fd: MOV ESI,0x4 MOV RDI,R15 PUSH RAX PUSH R12 CALL 0x00126dc2 ADD RSP,0x10 LEA RDX,[RBP + -0x210] LEA RDI,[RBP + -0x420] MOV RSI,R15 LAB_00121722: CALL 0x0011ec0b LEA RDI,[RBP + -0x420] MOV RSI,RDI CALL 0x0011c06a MOV RAX,qword ptr [RBP + 0x10] TEST RAX,RAX SETZ AL MOV R13,qword ptr [RBP + -0x30] TEST R13,R13 SETZ CL OR CL,AL JNZ 0x001217ac LEA R15,[RBP + -0x300] MOV ECX,0xc MOV RDI,R15 MOV RSI,R14 MOVSQ.REP RDI,RSI LEA R12,[RBP + -0x2a0] MOV ESI,0x60 MOV RDI,R14 CALL 0x00130680 LEA RDX,[0x13fb58] MOV RDI,R12 MOV RSI,R14 MOV RCX,RAX CALL 0x0012ffe0 MOV RDI,R15 MOV RSI,R15 MOV RDX,R13 MOV RCX,qword ptr [RBP + 0x10] CALL 0x0011b770 MOV RDI,R15 MOV RSI,R15 CALL 0x001192c4 MOV R14,R15 LAB_001217ac: MOV R15D,dword ptr [RBX + 0x4] LEA R12,[R15 + R15*0x2] MOV RAX,R12 SHL RAX,0x6 LEA RDI,[RBX + RAX*0x1] ADD RDI,0x378 LEA RSI,[RBP + -0x420] MOV EDX,0xc0 CALL 0x00105060 SHL R12,0x5 LEA RDI,[RBX + R12*0x1] ADD RDI,0x978 MOV ECX,0xc MOV RSI,R14 MOVSQ.REP RDI,RSI LEA EAX,[R15 + 0x1] CMP EAX,0x8 JNZ 0x00121885 LEA RSI,[RBX + 0x378] LEA RDX,[RBX + 0x978] TEST byte ptr [RBX],0x20 JNZ 0x00121860 LEA RDI,[RBX + 0x18] MOV ECX,0x8 CALL 0x0012043d OR byte ptr [RBX],0x20 JMP 0x00121883 LAB_00121824: MOV EAX,0x3 JMP 0x00121895 LAB_0012182b: XOR ECX,ECX MOV EAX,0x3 JMP 0x0012188f LAB_00121834: LEA RSI,[RBP + -0x270] MOV EDX,0x120 MOV RDI,R15 CALL 0x00105060 JMP 0x00121548 LAB_0012184d: MOV RDI,R15 MOV RSI,R15 MOV RDX,R12 CALL 0x0011d811 JMP 0x00121548 LAB_00121860: LEA R14,[RBP + -0x270] MOV ECX,0x8 MOV RDI,R14 CALL 0x0012043d LEA RDI,[RBX + 0x18] MOV RSI,RDI MOV RDX,R14 CALL 0x0011f662 LAB_00121883: XOR EAX,EAX LAB_00121885: MOV dword ptr [RBX + 0x4],EAX MOV EAX,0x3 MOV CL,0x1 LAB_0012188f: TEST CL,CL JZ 0x00121895 LAB_00121893: XOR EAX,EAX LAB_00121895: ADD RSP,0x3f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 PAIRING_Aggregate_PK_in_G1 (uint *param_1,int8 *param_2,long param_3,void *param_4,long param_5,long param_6, long param_7,int8 param_8,int8 param_9,int8 param_10,int8 param_11 ) { bool bVar1; uint uVar2; long lVar3; int8 uVar4; long lVar5; int1 *puVar6; int8 *puVar7; int8 *puVar8; int8 *puVar9; uint *puVar10; byte bVar11; int1 local_428 [288]; int8 local_308 [12]; int1 local_2a8 [48]; int8 local_278 [12]; int1 local_218 [96]; int1 local_1b8 [384]; long local_38; bVar11 = 0; if ((*param_1 & 1) != 0) { return 4; } *param_1 = *param_1 | 2; local_38 = param_6; if ((param_4 != (void *)0x0) && (lVar3 = vec_is_zero_16x(param_4,0xc0), lVar3 == 0)) { memcpy(local_278,param_4,0xc0); uVar4 = vec_is_zero_16x(param_4,0xc0); vec_select_96(local_1b8,param_4,&BLS12_381_Rx,uVar4); if ((param_5 != 0) && (lVar3 = POINTonE2_in_G2(local_278), lVar3 == 0)) { return 3; } puVar10 = param_1 + 0x96; if ((*param_1 & 0x10) == 0) { *param_1 = *param_1 | 0x10; if (local_38 == 0 || param_7 == 0) { memcpy(puVar10,local_278,0x120); } else { POINTonE2_mult_w5(puVar10,local_278); } } else if (local_38 == 0 || param_7 == 0) { POINTonE2_dadd_affine(puVar10,puVar10,param_4); } else { POINTonE2_mult_w5(local_278,local_278); POINTonE2_dadd(puVar10,puVar10,local_278); } } if (param_2 == (int8 *)0x0) { return 0; } puVar10 = param_1 + 0x31e; if (*(uint **)(param_1 + 2) != (uint *)0x2a) { puVar10 = *(uint **)(param_1 + 2); } lVar3 = vec_is_zero_16x(param_2,0x60); if (lVar3 == 0) { if (param_3 != 0) { puVar8 = param_2; puVar7 = local_278; for (lVar3 = 0xc; lVar3 != 0; lVar3 = lVar3 + -1) { *puVar7 = *puVar8; puVar8 = puVar8 + (ulong)bVar11 * -2 + 1; puVar7 = puVar7 + (ulong)bVar11 * -2 + 1; } vec_is_zero_16x(param_2,0x60); vec_select_48(local_218,param_2,&BLS12_381_Rx); lVar3 = POINTonE1_in_G1(local_278); if (lVar3 == 0) { bVar1 = false; uVar4 = 3; goto LAB_0012188f; } } if ((*param_1 & 0x40) == 0) { hash_to_field(local_278,2,param_10,param_11,param_8,param_9,puVar10, *(int8 *)(param_1 + 4)); puVar6 = (int1 *)0x0; } else { hash_to_field(local_278,4,param_10,param_11,param_8,param_9,puVar10, *(int8 *)(param_1 + 4)); puVar6 = local_218; } map_to_g2(local_428,local_278,puVar6); POINTonE2_from_Jacobian(local_428,local_428); lVar3 = local_38; puVar8 = param_2; if (local_38 != 0 && param_7 != 0) { puVar8 = local_308; puVar7 = param_2; puVar9 = puVar8; for (lVar5 = 0xc; lVar5 != 0; lVar5 = lVar5 + -1) { *puVar9 = *puVar7; puVar7 = puVar7 + (ulong)bVar11 * -2 + 1; puVar9 = puVar9 + (ulong)bVar11 * -2 + 1; } uVar4 = vec_is_zero_16x(param_2,0x60); vec_select_48(local_2a8,param_2,&BLS12_381_Rx,uVar4); POINTonE1_mult_w5(puVar8,puVar8,lVar3,param_7); POINTonE1_from_Jacobian(puVar8,puVar8); } uVar2 = param_1[1]; memcpy(param_1 + (ulong)uVar2 * 0x30 + 0xde,local_428,0xc0); puVar10 = param_1 + (ulong)uVar2 * 0x18 + 0x25e; for (lVar3 = 0xc; lVar3 != 0; lVar3 = lVar3 + -1) { *(int8 *)puVar10 = *puVar8; puVar8 = puVar8 + (ulong)bVar11 * -2 + 1; puVar10 = puVar10 + (ulong)bVar11 * -4 + 2; } uVar2 = uVar2 + 1; if (uVar2 == 8) { if ((*param_1 & 0x20) == 0) { miller_loop_n(param_1 + 6,param_1 + 0xde,param_1 + 0x25e,8); *(byte *)param_1 = (byte)*param_1 | 0x20; } else { miller_loop_n(local_278,param_1 + 0xde,param_1 + 0x25e,8); mul_fp12(param_1 + 6,param_1 + 6,local_278); } uVar2 = 0; } param_1[1] = uVar2; uVar4 = 3; bVar1 = true; } else { uVar4 = 6; bVar1 = false; } LAB_0012188f: if (bVar1) { return 0; } return uVar4; }
7,043
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned long, 0>(unsigned long)
llama.cpp/common/json.hpp
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}}, {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}}, {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}}, {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}}, {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}}, {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}}, {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}}, {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}}, {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}}, } }; // special case for "0" if (x == 0) { o->write_character('0'); return; } // use a pointer to fill the buffer auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg) number_unsigned_t abs_value; unsigned int n_chars{}; if (is_negative_number(x)) { *buffer_ptr = '-'; abs_value = remove_sign(static_cast<number_integer_t>(x)); // account one more byte for the minus sign n_chars = 1 + count_digits(abs_value); } else { abs_value = static_cast<number_unsigned_t>(x); n_chars = count_digits(abs_value); } // spare 1 byte for '\0' JSON_ASSERT(n_chars < number_buffer.size() - 1); // jump to the end to generate the string from backward, // so we later avoid reversing the result buffer_ptr += n_chars; // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg while (abs_value >= 100) { const auto digits_index = static_cast<unsigned>((abs_value % 100)); abs_value /= 100; *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } if (abs_value >= 10) { const auto digits_index = static_cast<unsigned>(abs_value); *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } else { *(--buffer_ptr) = static_cast<char>('0' + abs_value); } o->write_characters(number_buffer.data(), n_chars); }
O3
cpp
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned long, 0>(unsigned long): pushq %rbx testq %rsi, %rsi je 0x7d700 movq %rsi, %rcx leaq 0x10(%rdi), %rsi cmpq $0xa, %rcx jae 0x7d711 leaq 0x11(%rdi), %r9 movl $0x1, %r8d jmp 0x7d7dc movq (%rdi), %rdi movq (%rdi), %rax movq (%rax), %rax movl $0x30, %esi popq %rbx jmpq *%rax movl $0x4, %r9d movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B movq %rcx, %r8 cmpq $0x63, %r8 jbe 0x7d75c cmpq $0x3e7, %r8 # imm = 0x3E7 jbe 0x7d762 cmpq $0x2710, %r8 # imm = 0x2710 jb 0x7d765 movq %r8, %rax mulq %r10 shrq $0xb, %rdx addl $0x4, %r9d cmpq $0x1869f, %r8 # imm = 0x1869F movq %rdx, %r8 ja 0x7d724 addl $-0x3, %r9d jmp 0x7d765 addl $-0x2, %r9d jmp 0x7d765 decl %r9d cmpl $0x3f, %r9d jae 0x7d7f3 movl %r9d, %r8d leaq (%rsi,%r8), %r9 cmpq $0x64, %rcx jb 0x7d7be movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3 leaq 0x9e777(%rip), %r11 # 0x11bf04 movq %rcx, %rax shrq $0x2, %rax mulq %r10 shrq $0x2, %rdx imull $0x64, %edx, %eax movl %ecx, %ebx subl %eax, %ebx movzwl (%r11,%rbx,2), %eax movw %ax, -0x2(%r9) addq $-0x2, %r9 cmpq $0x270f, %rcx # imm = 0x270F movq %rdx, %rcx ja 0x7d78d jmp 0x7d7c1 movq %rcx, %rdx cmpq $0xa, %rdx jb 0x7d7d9 leaq 0x9e736(%rip), %rax # 0x11bf04 movzwl (%rax,%rdx,2), %eax movw %ax, -0x2(%r9) jmp 0x7d7e3 movq %rdx, %rcx orb $0x30, %cl movb %cl, -0x1(%r9) movq (%rdi), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax movq %r8, %rdx popq %rbx jmpq *%rax leaq 0x9af28(%rip), %rdi # 0x118722 leaq 0x9af5c(%rip), %rdx # 0x11875d leaq 0x9c323(%rip), %rcx # 0x119b2b movl $0x4952, %esi # imm = 0x4952 xorl %eax, %eax callq 0x20e70
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: push rbx test rsi, rsi jz short loc_7D700 mov rcx, rsi lea rsi, [rdi+10h] cmp rcx, 0Ah jnb short loc_7D711 lea r9, [rdi+11h] mov r8d, 1 jmp loc_7D7DC loc_7D700: mov rdi, [rdi] mov rax, [rdi] mov rax, [rax] mov esi, 30h ; '0' pop rbx jmp rax loc_7D711: mov r9d, 4 mov r10, 346DC5D63886594Bh mov r8, rcx loc_7D724: cmp r8, 63h ; 'c' jbe short loc_7D75C cmp r8, 3E7h jbe short loc_7D762 cmp r8, 2710h jb short loc_7D765 mov rax, r8 mul r10 shr rdx, 0Bh add r9d, 4 cmp r8, 1869Fh mov r8, rdx ja short loc_7D724 add r9d, 0FFFFFFFDh jmp short loc_7D765 loc_7D75C: add r9d, 0FFFFFFFEh jmp short loc_7D765 loc_7D762: dec r9d loc_7D765: cmp r9d, 3Fh ; '?' jnb loc_7D7F3 mov r8d, r9d lea r9, [rsi+r8] cmp rcx, 64h ; 'd' jb short loc_7D7BE mov r10, 28F5C28F5C28F5C3h lea r11, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 loc_7D78D: mov rax, rcx shr rax, 2 mul r10 shr rdx, 2 imul eax, edx, 64h ; 'd' mov ebx, ecx sub ebx, eax movzx eax, word ptr [r11+rbx*2] mov [r9-2], ax add r9, 0FFFFFFFFFFFFFFFEh cmp rcx, 270Fh mov rcx, rdx ja short loc_7D78D jmp short loc_7D7C1 loc_7D7BE: mov rdx, rcx loc_7D7C1: cmp rdx, 0Ah jb short loc_7D7D9 lea rax, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 movzx eax, word ptr [rax+rdx*2] mov [r9-2], ax jmp short loc_7D7E3 loc_7D7D9: mov rcx, rdx loc_7D7DC: or cl, 30h mov [r9-1], cl loc_7D7E3: mov rdi, [rdi] mov rax, [rdi] mov rax, [rax+8] mov rdx, r8 pop rbx jmp rax loc_7D7F3: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1" mov esi, 4952h xor eax, eax call _ggml_abort
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_( _QWORD *a1, unsigned long long a2) { unsigned long long v2; // rcx _QWORD *v3; // rsi char *v4; // r9 long long v5; // r8 unsigned int v7; // r9d unsigned long long v8; // r8 bool v9; // cc unsigned long long v10; // rdx if ( !a2 ) return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL); v2 = a2; v3 = a1 + 2; if ( v2 < 0xA ) { v4 = (char *)a1 + 17; v5 = 1LL; goto LABEL_21; } v7 = 4; v8 = v2; while ( 1 ) { if ( v8 <= 0x63 ) { v7 -= 2; goto LABEL_13; } if ( v8 <= 0x3E7 ) break; if ( v8 < 0x2710 ) goto LABEL_13; v7 += 4; v9 = v8 <= 0x1869F; v8 /= 0x2710uLL; if ( v9 ) { v7 -= 3; goto LABEL_13; } } --v7; LABEL_13: if ( v7 < 0x3F ) { v5 = v7; v4 = (char *)v3 + v7; if ( v2 < 0x64 ) { v10 = v2; } else { do { v10 = v2 / 0x64; *((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v2 % 0x64]; v4 -= 2; v9 = v2 <= 0x270F; v2 /= 0x64uLL; } while ( !v9 ); } if ( v10 >= 0xA ) { *((_WORD *)v4 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[v10]; return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))( *a1, v3, v5, v2); } v2 = v10; LABEL_21: LOBYTE(v2) = v2 | 0x30; *(v4 - 1) = v2; return (*(long long ( **)(_QWORD, _QWORD *, long long, unsigned long long))(*(_QWORD *)*a1 + 8LL))( *a1, v3, v5, v2); } ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 18770LL, "GGML_ASSERT(%s) failed", "n_chars < number_buffer.size() - 1"); return ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 18770LL); }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: PUSH RBX TEST RSI,RSI JZ 0x0017d700 MOV RCX,RSI LEA RSI,[RDI + 0x10] CMP RCX,0xa JNC 0x0017d711 LEA R9,[RDI + 0x11] MOV R8D,0x1 JMP 0x0017d7dc LAB_0017d700: MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX] MOV ESI,0x30 POP RBX JMP RAX LAB_0017d711: MOV R9D,0x4 MOV R10,0x346dc5d63886594b MOV R8,RCX LAB_0017d724: CMP R8,0x63 JBE 0x0017d75c CMP R8,0x3e7 JBE 0x0017d762 CMP R8,0x2710 JC 0x0017d765 MOV RAX,R8 MUL R10 SHR RDX,0xb ADD R9D,0x4 CMP R8,0x1869f MOV R8,RDX JA 0x0017d724 ADD R9D,-0x3 JMP 0x0017d765 LAB_0017d75c: ADD R9D,-0x2 JMP 0x0017d765 LAB_0017d762: DEC R9D LAB_0017d765: CMP R9D,0x3f JNC 0x0017d7f3 MOV R8D,R9D LEA R9,[RSI + R8*0x1] CMP RCX,0x64 JC 0x0017d7be MOV R10,0x28f5c28f5c28f5c3 LEA R11,[0x21bf04] LAB_0017d78d: MOV RAX,RCX SHR RAX,0x2 MUL R10 SHR RDX,0x2 IMUL EAX,EDX,0x64 MOV EBX,ECX SUB EBX,EAX MOVZX EAX,word ptr [R11 + RBX*0x2] MOV word ptr [R9 + -0x2],AX ADD R9,-0x2 CMP RCX,0x270f MOV RCX,RDX JA 0x0017d78d JMP 0x0017d7c1 LAB_0017d7be: MOV RDX,RCX LAB_0017d7c1: CMP RDX,0xa JC 0x0017d7d9 LEA RAX,[0x21bf04] MOVZX EAX,word ptr [RAX + RDX*0x2] MOV word ptr [R9 + -0x2],AX JMP 0x0017d7e3 LAB_0017d7d9: MOV RCX,RDX LAB_0017d7dc: OR CL,0x30 MOV byte ptr [R9 + -0x1],CL LAB_0017d7e3: MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,R8 POP RBX JMP RAX LAB_0017d7f3: LEA RDI,[0x218722] LEA RDX,[0x21875d] LEA RCX,[0x219b2b] MOV ESI,0x4952 XOR EAX,EAX CALL 0x00120e70
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_ (int8 *param_1,ulong param_2) { bool bVar1; ulong uVar2; ulong uVar3; int iVar4; long lVar5; if (param_2 == 0) { /* WARNING: Could not recover jumptable at 0x0017d70f. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30); return; } if (param_2 < 10) { lVar5 = (long)param_1 + 0x11; uVar3 = 1; } else { uVar3 = 4; uVar2 = param_2; do { iVar4 = (int)uVar3; if (uVar2 < 100) { uVar3 = (ulong)(iVar4 - 2); goto LAB_0017d765; } if (uVar2 < 1000) { uVar3 = (ulong)(iVar4 - 1); goto LAB_0017d765; } if (uVar2 < 10000) goto LAB_0017d765; uVar3 = (ulong)(iVar4 + 4); bVar1 = 99999 < uVar2; uVar2 = uVar2 / 10000; } while (bVar1); uVar3 = (ulong)(iVar4 + 1); LAB_0017d765: if (0x3e < (uint)uVar3) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x4952, "GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1"); } lVar5 = (long)(param_1 + 2) + uVar3; if (99 < param_2) { do { uVar2 = param_2 / 100; *(int2 *)(lVar5 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + (ulong)(uint)((int)param_2 + (int)uVar2 * -100) * 2); lVar5 = lVar5 + -2; bVar1 = 9999 < param_2; param_2 = uVar2; } while (bVar1); } if (9 < param_2) { *(int2 *)(lVar5 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerImTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + param_2 * 2); goto LAB_0017d7e3; } } *(byte *)(lVar5 + -1) = (byte)param_2 | 0x30; LAB_0017d7e3: /* WARNING: Could not recover jumptable at 0x0017d7f1. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*(long *)*param_1 + 8))((long *)*param_1,param_1 + 2,uVar3); return; }
7,044
aimrt::Pb2CompactJson[abi:cxx11](google::protobuf::Message const&)
aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_protobuf_interface/util/protobuf_tools.h
inline std::string Pb2CompactJson(const ::google::protobuf::Message& st) { static ::google::protobuf::util::JsonPrintOptions op = []() { #if GOOGLE_PROTOBUF_VERSION >= 5026000 op.always_print_fields_with_no_presence = true; #else op.always_print_primitive_fields = true; #endif op.always_print_enums_as_ints = false; op.preserve_proto_field_names = true; op.add_whitespace = false; return op; }(); std::string str; std::ignore = ::google::protobuf::util::MessageToJsonString(st, &str, op); return str; }
O3
c
aimrt::Pb2CompactJson[abi:cxx11](google::protobuf::Message const&): pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movb 0x1b563e(%rip), %al # 0x213510 testb %al, %al je 0x5df28 leaq 0x10(%rbx), %r15 movq %r15, (%rbx) movq $0x0, 0x8(%rbx) movb $0x0, 0x10(%rbx) leaq 0x1b5619(%rip), %rcx # 0x213509 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rbx, %rdx callq 0xa467c leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x5df1b movq 0x20(%rsp), %rsi incq %rsi callq 0x2d2d0 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq callq 0x2ed24 jmp 0x5ded6 movq %rax, %r14 movq (%rbx), %rdi cmpq %r15, %rdi je 0x5df45 movq (%r15), %rsi incq %rsi callq 0x2d2d0 movq %r14, %rdi callq 0x2e220 nop
_ZN5aimrt14Pb2CompactJsonB5cxx11ERKN6google8protobuf7MessageE: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi mov al, cs:_ZGVZN5aimrt14Pb2CompactJsonB5cxx11ERKN6google8protobuf7MessageEE2op; `guard variable for'aimrt::Pb2CompactJson(google::protobuf::Message const&)::op test al, al jz short loc_5DF28 loc_5DED6: lea r15, [rbx+10h] mov [rbx], r15 mov qword ptr [rbx+8], 0 mov byte ptr [rbx+10h], 0 lea rcx, _ZZN5aimrt14Pb2CompactJsonB5cxx11ERKN6google8protobuf7MessageEE2op; aimrt::Pb2CompactJson(google::protobuf::Message const&)::op lea rdi, [rsp+48h+var_40] mov rsi, r14 mov rdx, rbx call _ZN6google8protobuf4util19MessageToJsonStringERKNS0_7MessageEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS1_16JsonPrintOptionsE; google::protobuf::util::MessageToJsonString(google::protobuf::Message const&,std::string *,google::protobuf::util::JsonPrintOptions const&) lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_5DF1B mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5DF1B: mov rax, rbx add rsp, 30h pop rbx pop r14 pop r15 retn loc_5DF28: call _ZN5aimrt14Pb2CompactJsonB5cxx11ERKN6google8protobuf7MessageE_cold_1; aimrt::Pb2CompactJson(google::protobuf::Message const&) [clone] jmp short loc_5DED6 mov r14, rax mov rdi, [rbx]; void * cmp rdi, r15 jz short loc_5DF45 mov rsi, [r15] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_5DF45: mov rdi, r14 call __Unwind_Resume
long long aimrt::Pb2CompactJson[abi:cxx11](long long a1, long long a2) { _BYTE v3[8]; // [rsp+8h] [rbp-40h] BYREF long long *v4; // [rsp+10h] [rbp-38h] long long v5; // [rsp+20h] [rbp-28h] BYREF if ( !(_BYTE)`guard variable for'aimrt::Pb2CompactJson[abi:cxx11](google::protobuf::Message const&)::op ) aimrt::Pb2CompactJson[abi:cxx11](); *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; google::protobuf::util::MessageToJsonString(v3, a2, a1); if ( v4 != &v5 ) operator delete(v4, v5 + 1); return a1; }
Pb2CompactJson[abi:cxx11]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV AL,byte ptr [0x00313510] TEST AL,AL JZ 0x0015df28 LAB_0015ded6: LEA R15,[RBX + 0x10] MOV qword ptr [RBX],R15 MOV qword ptr [RBX + 0x8],0x0 MOV byte ptr [RBX + 0x10],0x0 LAB_0015dee9: LEA RCX,[0x313509] LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV RDX,RBX CALL 0x001a467c LAB_0015df00: LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0015df1b MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x0012d2d0 LAB_0015df1b: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0015df28: CALL 0x0012ed24 JMP 0x0015ded6
/* aimrt::Pb2CompactJson[abi:cxx11](google::protobuf::Message const&) */ aimrt * __thiscall aimrt::Pb2CompactJson_abi_cxx11_(aimrt *this,Message *param_1) { util local_40 [8]; long *local_38; long local_28 [2]; if (Pb2CompactJson[abi:cxx11](google::protobuf::Message_const&)::op == '\0') { Pb2CompactJson_abi_cxx11_((Message *)this); } *(aimrt **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (aimrt)0x0; /* try { // try from 0015dee9 to 0015deff has its CatchHandler @ 0015df2f */ google::protobuf::util::MessageToJsonString (local_40,param_1,(string *)this, (JsonPrintOptions *)&Pb2CompactJson[abi:cxx11](google::protobuf::Message_const&)::op); if (local_38 != local_28) { operator_delete(local_38,local_28[0] + 1); } return this; }
7,045
lf_hash_init
eloqsql/mysys/lf_hash.cc
void lf_hash_init(LF_HASH *hash, uint element_size, uint flags, uint key_offset, uint key_length, my_hash_get_key get_key, CHARSET_INFO *charset) { lf_alloc_init(&hash->alloc, sizeof(LF_SLIST)+element_size, offsetof(LF_SLIST, key)); lf_dynarray_init(&hash->array, sizeof(LF_SLIST *)); hash->size= 1; hash->count= 0; hash->element_size= element_size; hash->flags= flags; hash->charset= charset ? charset : &my_charset_bin; hash->key_offset= key_offset; hash->key_length= key_length; hash->get_key= get_key; hash->initializer= default_initializer; hash->hash_function= calc_hash; DBUG_ASSERT(get_key ? !key_offset && !key_length : key_length); }
O0
cpp
lf_hash_init: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq %r9, -0x20(%rbp) movq -0x8(%rbp), %rdi addq $0x28, %rdi movl -0xc(%rbp), %eax addq $0x20, %rax movl %eax, %esi movl $0x8, %edx callq 0xfbd10 movq -0x8(%rbp), %rdi movl $0x8, %esi callq 0xfc210 movq -0x8(%rbp), %rax movl $0x1, 0xc0(%rax) movq -0x8(%rbp), %rax movl $0x0, 0xc4(%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb8(%rax) movl -0x10(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xbc(%rax) cmpq $0x0, 0x10(%rbp) je 0xfc8d1 movq 0x10(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0xfc8de leaq 0x1c5838(%rip), %rax # 0x2c2110 movq %rax, -0x28(%rbp) jmp 0xfc8de movq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xa8(%rax) movl -0x14(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb0(%rax) movl -0x18(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb4(%rax) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x90(%rax) movq -0x8(%rbp), %rax leaq 0x2f(%rip), %rcx # 0xfc950 movq %rcx, 0x98(%rax) movq -0x8(%rbp), %rax leaq 0x5d(%rip), %rcx # 0xfc990 movq %rcx, 0xa0(%rax) jmp 0xfc93c addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
lf_hash_init: push rbp mov rbp, rsp sub rsp, 30h mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_14], ecx mov [rbp+var_18], r8d mov [rbp+var_20], r9 mov rdi, [rbp+var_8] add rdi, 28h ; '(' mov eax, [rbp+var_C] add rax, 20h ; ' ' mov esi, eax mov edx, 8 call lf_alloc_init mov rdi, [rbp+var_8] mov esi, 8 call lf_dynarray_init mov rax, [rbp+var_8] mov dword ptr [rax+0C0h], 1 mov rax, [rbp+var_8] mov dword ptr [rax+0C4h], 0 mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+0B8h], ecx mov ecx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+0BCh], ecx cmp [rbp+arg_0], 0 jz short loc_FC8D1 mov rax, [rbp+arg_0] mov [rbp+var_28], rax jmp short loc_FC8DE loc_FC8D1: lea rax, my_charset_bin mov [rbp+var_28], rax jmp short $+2 loc_FC8DE: mov rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+0A8h], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_8] mov [rax+0B0h], ecx mov ecx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+0B4h], ecx mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+90h], rcx mov rax, [rbp+var_8] lea rcx, _ZL19default_initializerP10st_lf_hashPvPKv; default_initializer(st_lf_hash *,void *,void const*) mov [rax+98h], rcx mov rax, [rbp+var_8] lea rcx, _ZL9calc_hashPK15charset_info_stPKhm; calc_hash(charset_info_st const*,uchar const*,ulong) mov [rax+0A0h], rcx jmp short $+2 loc_FC93C: add rsp, 30h pop rbp retn
long long lf_hash_init(long long a1, int a2, int a3, int a4, int a5, long long a6, void *a7) { long long result; // rax void *v8; // [rsp+8h] [rbp-28h] lf_alloc_init(a1 + 40, a2 + 32, 8); lf_dynarray_init(a1, 8); *(_DWORD *)(a1 + 192) = 1; *(_DWORD *)(a1 + 196) = 0; *(_DWORD *)(a1 + 184) = a2; *(_DWORD *)(a1 + 188) = a3; if ( a7 ) v8 = a7; else v8 = &my_charset_bin; *(_QWORD *)(a1 + 168) = v8; *(_DWORD *)(a1 + 176) = a4; *(_DWORD *)(a1 + 180) = a5; *(_QWORD *)(a1 + 144) = a6; *(_QWORD *)(a1 + 152) = default_initializer; result = a1; *(_QWORD *)(a1 + 160) = calc_hash; return result; }
lf_hash_init: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV dword ptr [RBP + -0x14],ECX MOV dword ptr [RBP + -0x18],R8D MOV qword ptr [RBP + -0x20],R9 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 MOV EAX,dword ptr [RBP + -0xc] ADD RAX,0x20 MOV ESI,EAX MOV EDX,0x8 CALL 0x001fbd10 MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x8 CALL 0x001fc210 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc0],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc4],0x0 MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xb8],ECX MOV ECX,dword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xbc],ECX CMP qword ptr [RBP + 0x10],0x0 JZ 0x001fc8d1 MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x28],RAX JMP 0x001fc8de LAB_001fc8d1: LEA RAX,[0x3c2110] MOV qword ptr [RBP + -0x28],RAX JMP 0x001fc8de LAB_001fc8de: MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xa8],RCX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xb0],ECX MOV ECX,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xb4],ECX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x90],RCX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x1fc950] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x1fc990] MOV qword ptr [RAX + 0xa0],RCX JMP 0x001fc93c LAB_001fc93c: ADD RSP,0x30 POP RBP RET
void lf_hash_init(long param_1,int param_2,int4 param_3,int4 param_4,int4 param_5, int8 param_6,int1 *param_7) { int1 *local_30; lf_alloc_init(param_1 + 0x28,param_2 + 0x20,8); lf_dynarray_init(param_1,8); *(int4 *)(param_1 + 0xc0) = 1; *(int4 *)(param_1 + 0xc4) = 0; *(int *)(param_1 + 0xb8) = param_2; *(int4 *)(param_1 + 0xbc) = param_3; if (param_7 == (int1 *)0x0) { local_30 = my_charset_bin; } else { local_30 = param_7; } *(int1 **)(param_1 + 0xa8) = local_30; *(int4 *)(param_1 + 0xb0) = param_4; *(int4 *)(param_1 + 0xb4) = param_5; *(int8 *)(param_1 + 0x90) = param_6; *(code **)(param_1 + 0x98) = default_initializer; *(code **)(param_1 + 0xa0) = calc_hash; return; }
7,046
mi_ck_write_btree
eloqsql/storage/myisam/mi_write.c
int _mi_ck_write_btree(register MI_INFO *info, uint keynr, uchar *key, uint key_length) { int error; uint comp_flag; MI_KEYDEF *keyinfo=info->s->keyinfo+keynr; my_off_t *root=&info->s->state.key_root[keynr]; DBUG_ENTER("_mi_ck_write_btree"); if (keyinfo->flag & HA_SORT_ALLOWS_SAME) comp_flag=SEARCH_BIGGER; /* Put after same key */ else if (keyinfo->flag & (HA_NOSAME|HA_FULLTEXT)) { comp_flag=SEARCH_FIND | SEARCH_UPDATE | SEARCH_INSERT; /* No duplicates */ if (keyinfo->flag & HA_NULL_ARE_EQUAL) comp_flag|= SEARCH_NULL_ARE_EQUAL; } else comp_flag=SEARCH_SAME; /* Keys in rec-pos order */ error=_mi_ck_real_write_btree(info, keyinfo, key, key_length, root, comp_flag); if (info->ft1_to_ft2) { if (!error) error= _mi_ft_convert_to_ft2(info, keynr, key); delete_dynamic(info->ft1_to_ft2); my_free(info->ft1_to_ft2); info->ft1_to_ft2=0; } DBUG_RETURN(error); }
O3
c
mi_ck_write_btree: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r14 movl %esi, %r15d movq %rdi, %rbx movq (%rdi), %rdx movq 0x218(%rdx), %rax movl %esi, %r8d imulq $0x70, %r8, %rdi leaq (%rax,%rdi), %rsi shlq $0x3, %r8 movzwl 0xa(%rax,%rdi), %eax movl $0x8, %r9d addq 0x98(%rdx), %r8 btl $0x9, %eax jb 0x88204 testb $-0x7f, %al je 0x881fe andl $0x800, %eax # imm = 0x800 shll $0x4, %eax orl $0x20041, %eax # imm = 0x20041 movl %eax, %r9d jmp 0x88204 movl $0x4, %r9d movq %rbx, %rdi movq %r14, %rdx callq 0x88263 movl %eax, %r12d movq 0x88(%rbx), %rdi testq %rdi, %rdi je 0x88257 testl %r12d, %r12d jne 0x8823b movq %rbx, %rdi movl %r15d, %esi movq %r14, %rdx callq 0x7470f movl %eax, %r12d movq 0x88(%rbx), %rdi callq 0x91d04 movq 0x88(%rbx), %rdi callq 0x9fec2 movq $0x0, 0x88(%rbx) movl %r12d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
_mi_ck_write_btree: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14, rdx mov r15d, esi mov rbx, rdi mov rdx, [rdi] mov rax, [rdx+218h] mov r8d, esi imul rdi, r8, 70h ; 'p' lea rsi, [rax+rdi] shl r8, 3 movzx eax, word ptr [rax+rdi+0Ah] mov r9d, 8 add r8, [rdx+98h] bt eax, 9 jb short loc_88204 test al, 81h jz short loc_881FE and eax, 800h shl eax, 4 or eax, 20041h mov r9d, eax jmp short loc_88204 loc_881FE: mov r9d, 4 loc_88204: mov rdi, rbx mov rdx, r14 call _mi_ck_real_write_btree mov r12d, eax mov rdi, [rbx+88h] test rdi, rdi jz short loc_88257 test r12d, r12d jnz short loc_8823B mov rdi, rbx mov esi, r15d mov rdx, r14 call _mi_ft_convert_to_ft2 mov r12d, eax mov rdi, [rbx+88h] loc_8823B: call delete_dynamic mov rdi, [rbx+88h] call my_free mov qword ptr [rbx+88h], 0 loc_88257: mov eax, r12d pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long mi_ck_write_btree(long long *a1, unsigned int a2, unsigned __int8 *a3, long long a4) { long long v7; // r8 long long v8; // rsi __int16 v9; // ax long long v10; // r9 long long v11; // r8 unsigned int v12; // r12d long long v13; // rdi v7 = a2; v8 = *(_QWORD *)(*a1 + 536) + 112LL * a2; v9 = *(_WORD *)(v8 + 10); v10 = 8LL; v11 = *(_QWORD *)(*a1 + 152) + 8 * v7; if ( (v9 & 0x200) == 0 ) { if ( (v9 & 0x81) != 0 ) v10 = (16 * (v9 & 0x800)) | 0x20041u; else v10 = 4LL; } v12 = mi_ck_real_write_btree(a1, v8, a3, a4, v11, v10); v13 = a1[17]; if ( v13 ) { if ( !v12 ) { v12 = mi_ft_convert_to_ft2(a1, a2, a3); v13 = a1[17]; } delete_dynamic(v13); my_free(a1[17]); a1[17] = 0LL; } return v12; }
_mi_ck_write_btree: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,RDX MOV R15D,ESI MOV RBX,RDI MOV RDX,qword ptr [RDI] MOV RAX,qword ptr [RDX + 0x218] MOV R8D,ESI IMUL RDI,R8,0x70 LEA RSI,[RAX + RDI*0x1] SHL R8,0x3 MOVZX EAX,word ptr [RAX + RDI*0x1 + 0xa] MOV R9D,0x8 ADD R8,qword ptr [RDX + 0x98] BT EAX,0x9 JC 0x00188204 TEST AL,0x81 JZ 0x001881fe AND EAX,0x800 SHL EAX,0x4 OR EAX,0x20041 MOV R9D,EAX JMP 0x00188204 LAB_001881fe: MOV R9D,0x4 LAB_00188204: MOV RDI,RBX MOV RDX,R14 CALL 0x00188263 MOV R12D,EAX MOV RDI,qword ptr [RBX + 0x88] TEST RDI,RDI JZ 0x00188257 TEST R12D,R12D JNZ 0x0018823b MOV RDI,RBX MOV ESI,R15D MOV RDX,R14 CALL 0x0017470f MOV R12D,EAX MOV RDI,qword ptr [RBX + 0x88] LAB_0018823b: CALL 0x00191d04 MOV RDI,qword ptr [RBX + 0x88] CALL 0x0019fec2 MOV qword ptr [RBX + 0x88],0x0 LAB_00188257: MOV EAX,R12D POP RBX POP R12 POP R14 POP R15 POP RBP RET
int _mi_ck_write_btree(long *param_1,uint param_2,int8 param_3,int8 param_4) { ushort uVar1; uint uVar2; int iVar3; long lVar4; long lVar5; lVar5 = *(long *)(*param_1 + 0x218); lVar4 = (ulong)param_2 * 0x70; uVar1 = *(ushort *)(lVar5 + 10 + lVar4); uVar2 = 8; if ((uVar1 >> 9 & 1) == 0) { if ((uVar1 & 0x81) == 0) { uVar2 = 4; } else { uVar2 = (uVar1 & 0x800) << 4 | 0x20041; } } iVar3 = _mi_ck_real_write_btree (param_1,lVar5 + lVar4,param_3,param_4, (ulong)param_2 * 8 + *(long *)(*param_1 + 0x98),uVar2); lVar5 = param_1[0x11]; if (lVar5 != 0) { if (iVar3 == 0) { iVar3 = _mi_ft_convert_to_ft2(param_1,param_2,param_3); lVar5 = param_1[0x11]; } delete_dynamic(lVar5); my_free(param_1[0x11]); param_1[0x11] = 0; } return iVar3; }
7,047
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++; }
O3
c
bitmap_copy: movq (%rdi), %rax movq 0x8(%rdi), %rcx cmpq %rcx, %rax ja 0x9da40 pushq %rbp movq %rsp, %rbp movq (%rsi), %rdx movl (%rdx), %esi addq $0x4, %rdx movl %esi, (%rax) addq $0x4, %rax cmpq %rcx, %rax jbe 0x9da2e popq %rbp retq
bitmap_copy: mov rax, [rdi] mov rcx, [rdi+8] cmp rax, rcx ja short locret_9DA40 push rbp mov rbp, rsp mov rdx, [rsi] loc_9DA2E: mov esi, [rdx] add rdx, 4 mov [rax], esi add rax, 4 cmp rax, rcx jbe short loc_9DA2E pop rbp locret_9DA40: retn
_DWORD * bitmap_copy(long long a1, int **a2) { _DWORD *result; // rax unsigned long long v3; // rcx int *v4; // rdx int v5; // esi result = *(_DWORD **)a1; v3 = *(_QWORD *)(a1 + 8); if ( *(_QWORD *)a1 <= v3 ) { v4 = *a2; do { v5 = *v4++; *result++ = v5; } while ( (unsigned long long)result <= v3 ); } return result; }
bitmap_copy: MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RDI + 0x8] CMP RAX,RCX JA 0x0019da40 PUSH RBP MOV RBP,RSP MOV RDX,qword ptr [RSI] LAB_0019da2e: MOV ESI,dword ptr [RDX] ADD RDX,0x4 MOV dword ptr [RAX],ESI ADD RAX,0x4 CMP RAX,RCX JBE 0x0019da2e POP RBP LAB_0019da40: RET
void bitmap_copy(int8 *param_1,int8 *param_2) { int4 uVar1; int4 *puVar2; int4 *puVar3; int4 *puVar4; puVar3 = (int4 *)*param_1; puVar2 = (int4 *)param_1[1]; if (puVar3 <= puVar2) { puVar4 = (int4 *)*param_2; do { uVar1 = *puVar4; puVar4 = puVar4 + 1; *puVar3 = uVar1; puVar3 = puVar3 + 1; } while (puVar3 <= puVar2); } return; }
7,048
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; }
O0
c
tailoring_append: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax movq 0x140(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0x690(%rax), %rax addq -0x20(%rbp), %rax addq $0x40, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rdi movq -0x38(%rbp), %rsi callq 0x6d090 movl %eax, %ecx xorl %eax, %eax cmpl %ecx, %eax jne 0x6d07d movq -0x30(%rbp), %rax movq 0x688(%rax), %rax movq -0x30(%rbp), %rcx addq 0x690(%rcx), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rax movl %eax, %edx movq -0x28(%rbp), %rcx movb $0x0, %al callq 0x240b0 movq -0x40(%rbp), %rdi callq 0x24120 movq %rax, %rcx movq -0x30(%rbp), %rax addq 0x690(%rax), %rcx movq %rcx, 0x690(%rax) movl $0x0, -0x4(%rbp) jmp 0x6d084 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax)
tailoring_append: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_10] mov rax, [rax+140h] mov [rbp+var_30], rax mov rax, [rbp+var_30] mov rax, [rax+690h] add rax, [rbp+var_20] add rax, 40h ; '@' mov [rbp+var_38], rax mov rdi, [rbp+var_30] mov rsi, [rbp+var_38] call my_charset_file_tailoring_realloc mov ecx, eax xor eax, eax cmp eax, ecx jnz short loc_6D07D mov rax, [rbp+var_30] mov rax, [rax+688h] mov rcx, [rbp+var_30] add rax, [rcx+690h] mov [rbp+var_40], rax mov rdi, [rbp+var_40] mov rsi, [rbp+var_18] mov rax, [rbp+var_20] mov edx, eax mov rcx, [rbp+var_28] mov al, 0 call _sprintf mov rdi, [rbp+var_40] call _strlen mov rcx, rax mov rax, [rbp+var_30] add rcx, [rax+690h] mov [rax+690h], rcx mov [rbp+var_4], 0 jmp short loc_6D084 loc_6D07D: mov [rbp+var_4], 1 loc_6D084: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long tailoring_append(long long a1, const char *a2, long long a3, long long a4) { long long v5; // [rsp+0h] [rbp-40h] long long v6; // [rsp+10h] [rbp-30h] unsigned int v8; // [rsp+20h] [rbp-20h] v8 = a3; v6 = *(_QWORD *)(a1 + 320); if ( (unsigned int)my_charset_file_tailoring_realloc(v6, a3 + *(_QWORD *)(v6 + 1680) + 64) ) { return 1; } else { v5 = *(_QWORD *)(v6 + 1680) + *(_QWORD *)(v6 + 1672); sprintf(v5, a2, v8, a4); *(_QWORD *)(v6 + 1680) += strlen(v5); return 0; } }
tailoring_append: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x140] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x690] ADD RAX,qword ptr [RBP + -0x20] ADD RAX,0x40 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x38] CALL 0x0016d090 MOV ECX,EAX XOR EAX,EAX CMP EAX,ECX JNZ 0x0016d07d MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x688] MOV RCX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RCX + 0x690] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,EAX MOV RCX,qword ptr [RBP + -0x28] MOV AL,0x0 CALL 0x001240b0 MOV RDI,qword ptr [RBP + -0x40] CALL 0x00124120 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x30] ADD RCX,qword ptr [RAX + 0x690] MOV qword ptr [RAX + 0x690],RCX MOV dword ptr [RBP + -0x4],0x0 JMP 0x0016d084 LAB_0016d07d: MOV dword ptr [RBP + -0x4],0x1 LAB_0016d084: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
bool tailoring_append(long param_1,char *param_2,ulong param_3,int8 param_4) { long lVar1; int iVar2; char *__s; size_t sVar3; lVar1 = *(long *)(param_1 + 0x140); iVar2 = my_charset_file_tailoring_realloc(lVar1,*(long *)(lVar1 + 0x690) + param_3 + 0x40); if (iVar2 == 0) { __s = (char *)(*(long *)(lVar1 + 0x688) + *(long *)(lVar1 + 0x690)); sprintf(__s,param_2,param_3 & 0xffffffff,param_4); sVar3 = strlen(__s); *(size_t *)(lVar1 + 0x690) = sVar3 + *(long *)(lVar1 + 0x690); } return iVar2 != 0; }
7,049
js_iterator_helper_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_iterator_helper_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSIteratorHelperData *it = p->u.iterator_helper_data; if (it) { JS_FreeValueRT(rt, it->obj); JS_FreeValueRT(rt, it->func); JS_FreeValueRT(rt, it->next); JS_FreeValueRT(rt, it->inner); js_free_rt(rt, it); } }
O1
c
js_iterator_helper_finalizer: pushq %r14 pushq %rbx pushq %rax movq 0x30(%rsi), %rbx testq %rbx, %rbx je 0x3aff5 movq %rdi, %r14 movq (%rbx), %rsi movq 0x8(%rbx), %rdx callq 0x1d8c6 movq 0x20(%rbx), %rsi movq 0x28(%rbx), %rdx movq %r14, %rdi callq 0x1d8c6 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movq %r14, %rdi callq 0x1d8c6 movq 0x30(%rbx), %rsi movq 0x38(%rbx), %rdx movq %r14, %rdi callq 0x1d8c6 decq 0x28(%r14) movq %rbx, %rdi callq *0x20(%r14) movq 0x10(%r14), %rcx movq 0x30(%r14), %rdx subq %rax, %rdx addq $-0x8, %rdx movq %rdx, 0x30(%r14) movq 0x40(%r14), %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx addq $0x8, %rsp popq %rbx popq %r14 retq
js_iterator_helper_finalizer: push r14 push rbx push rax mov rbx, [rsi+30h] test rbx, rbx jz short loc_3AFF5 mov r14, rdi mov rsi, [rbx] mov rdx, [rbx+8] call JS_FreeValueRT mov rsi, [rbx+20h] mov rdx, [rbx+28h] mov rdi, r14 call JS_FreeValueRT mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov rdi, r14 call JS_FreeValueRT mov rsi, [rbx+30h] mov rdx, [rbx+38h] mov rdi, r14 call JS_FreeValueRT dec qword ptr [r14+28h] mov rdi, rbx call qword ptr [r14+20h] mov rcx, [r14+10h] mov rdx, [r14+30h] sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF8h mov [r14+30h], rdx mov rdi, [r14+40h] mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp rcx loc_3AFF5: add rsp, 8 pop rbx pop r14 retn
long long js_iterator_helper_finalizer(long long a1, long long a2) { long long v2; // rbx long long v3; // rax long long ( *v4)(_QWORD, long long); // rcx long long result; // rax v2 = *(_QWORD *)(a2 + 48); if ( v2 ) { JS_FreeValueRT(a1, *(_DWORD **)v2, *(_QWORD *)(v2 + 8)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 32), *(_QWORD *)(v2 + 40)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 16), *(_QWORD *)(v2 + 24)); JS_FreeValueRT(a1, *(_DWORD **)(v2 + 48), *(_QWORD *)(v2 + 56)); --*(_QWORD *)(a1 + 40); v3 = (*(long long ( **)(long long))(a1 + 32))(v2); v4 = *(long long ( **)(_QWORD, long long))(a1 + 16); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v3 - 8; return v4(*(_QWORD *)(a1 + 64), v2); } return result; }
7,050
js_iterator_helper_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_iterator_helper_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSIteratorHelperData *it = p->u.iterator_helper_data; if (it) { JS_FreeValueRT(rt, it->obj); JS_FreeValueRT(rt, it->func); JS_FreeValueRT(rt, it->next); JS_FreeValueRT(rt, it->inner); js_free_rt(rt, it); } }
O2
c
js_iterator_helper_finalizer: pushq %r14 pushq %rbx pushq %rax movq 0x30(%rsi), %rbx testq %rbx, %rbx je 0x33ec8 movq %rdi, %r14 movq (%rbx), %rsi movq 0x8(%rbx), %rdx callq 0x18031 movq 0x20(%rbx), %rsi movq 0x28(%rbx), %rdx movq %r14, %rdi callq 0x18031 movq 0x10(%rbx), %rsi movq 0x18(%rbx), %rdx movq %r14, %rdi callq 0x18031 movq 0x30(%rbx), %rsi movq 0x38(%rbx), %rdx movq %r14, %rdi callq 0x18031 movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x170cb addq $0x8, %rsp popq %rbx popq %r14 retq
js_iterator_helper_finalizer: push r14 push rbx push rax mov rbx, [rsi+30h] test rbx, rbx jz short loc_33EC8 mov r14, rdi mov rsi, [rbx] mov rdx, [rbx+8] call JS_FreeValueRT mov rsi, [rbx+20h] mov rdx, [rbx+28h] mov rdi, r14 call JS_FreeValueRT mov rsi, [rbx+10h] mov rdx, [rbx+18h] mov rdi, r14 call JS_FreeValueRT mov rsi, [rbx+30h] mov rdx, [rbx+38h] mov rdi, r14 call JS_FreeValueRT mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp js_free_rt loc_33EC8: add rsp, 8 pop rbx pop r14 retn
long long js_iterator_helper_finalizer(long long a1, long long a2) { long long v2; // rbx long long result; // rax v2 = *(_QWORD *)(a2 + 48); if ( v2 ) { JS_FreeValueRT(a1, *(unsigned int **)v2, *(_QWORD *)(v2 + 8)); JS_FreeValueRT(a1, *(unsigned int **)(v2 + 32), *(_QWORD *)(v2 + 40)); JS_FreeValueRT(a1, *(unsigned int **)(v2 + 16), *(_QWORD *)(v2 + 24)); JS_FreeValueRT(a1, *(unsigned int **)(v2 + 48), *(_QWORD *)(v2 + 56)); return js_free_rt(a1, v2); } return result; }
js_iterator_helper_finalizer: PUSH R14 PUSH RBX PUSH RAX MOV RBX,qword ptr [RSI + 0x30] TEST RBX,RBX JZ 0x00133ec8 MOV R14,RDI MOV RSI,qword ptr [RBX] MOV RDX,qword ptr [RBX + 0x8] CALL 0x00118031 MOV RSI,qword ptr [RBX + 0x20] MOV RDX,qword ptr [RBX + 0x28] MOV RDI,R14 CALL 0x00118031 MOV RSI,qword ptr [RBX + 0x10] MOV RDX,qword ptr [RBX + 0x18] MOV RDI,R14 CALL 0x00118031 MOV RSI,qword ptr [RBX + 0x30] MOV RDX,qword ptr [RBX + 0x38] MOV RDI,R14 CALL 0x00118031 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001170cb LAB_00133ec8: ADD RSP,0x8 POP RBX POP R14 RET
void js_iterator_helper_finalizer(int8 param_1,long param_2) { int8 *puVar1; puVar1 = *(int8 **)(param_2 + 0x30); if (puVar1 != (int8 *)0x0) { JS_FreeValueRT(param_1,*puVar1,puVar1[1]); JS_FreeValueRT(param_1,puVar1[4],puVar1[5]); JS_FreeValueRT(param_1,puVar1[2],puVar1[3]); JS_FreeValueRT(param_1,puVar1[6],puVar1[7]); js_free_rt(param_1,puVar1); return; } return; }
7,051
my_snprintf
eloqsql/strings/my_vsnprintf.c
size_t my_snprintf(char* to, size_t n, const char* fmt, ...) { size_t result; va_list args; va_start(args,fmt); result= my_vsnprintf(to, n, fmt, args); va_end(args); return result; }
O0
c
my_snprintf: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0x7690b movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rbp) movq %rcx, -0xd8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq -0xf0(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movl $0x30, -0x3c(%rbp) movl $0x18, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x76890 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0xf0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_snprintf: push rbp mov rbp, rsp sub rsp, 0F0h test al, al jz short loc_7690B movaps [rbp+var_C0], xmm0 movaps [rbp+var_B0], xmm1 movaps [rbp+var_A0], xmm2 movaps [rbp+var_90], xmm3 movaps [rbp+var_80], xmm4 movaps [rbp+var_70], xmm5 movaps [rbp+var_60], xmm6 movaps [rbp+var_50], xmm7 loc_7690B: mov [rbp+var_C8], r9 mov [rbp+var_D0], r8 mov [rbp+var_D8], rcx mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, [rbp+var_F0] mov [rbp+var_30], rax lea rax, [rbp+arg_0] mov [rbp+var_38], rax mov [rbp+var_3C], 30h ; '0' mov [rbp+var_40], 18h mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] lea rcx, [rbp+var_40] call my_vsnprintf mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 0F0h pop rbp retn
_BYTE * my_snprintf( _BYTE *a1, long long a2, char *a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-F0h] BYREF long long v17; // [rsp+18h] [rbp-D8h] long long v18; // [rsp+20h] [rbp-D0h] long long v19; // [rsp+28h] [rbp-C8h] __m128 v20; // [rsp+30h] [rbp-C0h] __m128 v21; // [rsp+40h] [rbp-B0h] __m128 v22; // [rsp+50h] [rbp-A0h] __m128 v23; // [rsp+60h] [rbp-90h] __m128 v24; // [rsp+70h] [rbp-80h] __m128 v25; // [rsp+80h] [rbp-70h] __m128 v26; // [rsp+90h] [rbp-60h] __m128 v27; // [rsp+A0h] [rbp-50h] int v28[2]; // [rsp+B0h] [rbp-40h] BYREF char *v29; // [rsp+B8h] [rbp-38h] char *v30; // [rsp+C0h] [rbp-30h] char *v31; // [rsp+D8h] [rbp-18h] long long v32; // [rsp+E0h] [rbp-10h] _BYTE *v33; // [rsp+E8h] [rbp-8h] v20 = a7; v21 = a8; v22 = a9; v23 = a10; v24 = a11; v25 = a12; v26 = a13; v27 = a14; v19 = a6; v18 = a5; v17 = a4; v33 = a1; v32 = a2; v31 = a3; v30 = &v16; v29 = &a15; v28[1] = 48; v28[0] = 24; return my_vsnprintf(a1, a2, a3, v28); }
my_snprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 TEST AL,AL JZ 0x0017690b MOVAPS xmmword ptr [RBP + -0xc0],XMM0 MOVAPS xmmword ptr [RBP + -0xb0],XMM1 MOVAPS xmmword ptr [RBP + -0xa0],XMM2 MOVAPS xmmword ptr [RBP + -0x90],XMM3 MOVAPS xmmword ptr [RBP + -0x80],XMM4 MOVAPS xmmword ptr [RBP + -0x70],XMM5 MOVAPS xmmword ptr [RBP + -0x60],XMM6 MOVAPS xmmword ptr [RBP + -0x50],XMM7 LAB_0017690b: MOV qword ptr [RBP + -0xc8],R9 MOV qword ptr [RBP + -0xd0],R8 MOV qword ptr [RBP + -0xd8],RCX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[RBP + -0xf0] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x3c],0x30 MOV dword ptr [RBP + -0x40],0x18 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] LEA RCX,[RBP + -0x40] CALL 0x00176890 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0xf0 POP RBP RET
int8 my_snprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int8 uVar1; int1 local_f8 [24]; int8 local_e0; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int4 local_48; int4 local_44; int1 *local_40; int1 *local_38; int8 local_20; int8 local_18; int8 local_10; if (in_AL != '\0') { local_c8 = param_1; local_b8 = param_2; local_a8 = param_3; local_98 = param_4; local_88 = param_5; local_78 = param_6; local_68 = param_7; local_58 = param_8; } local_38 = local_f8; local_40 = &stack0x00000008; local_44 = 0x30; local_48 = 0x18; local_e0 = param_12; local_d8 = param_13; local_d0 = param_14; local_20 = param_11; local_18 = param_10; local_10 = param_9; uVar1 = my_vsnprintf(param_9,param_10,param_11,&local_48); return uVar1; }
7,052
ftxui::Loop::RunOnce()
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/loop.cpp
void Loop::RunOnce() { screen_->RunOnce(component_); }
O1
cpp
ftxui::Loop::RunOnce(): pushq %rbx subq $0x10, %rsp movq %rdi, %rax movq (%rdi), %rdi movq 0x8(%rax), %rcx movq %rcx, (%rsp) movq 0x10(%rax), %rax movq %rax, 0x8(%rsp) testq %rax, %rax je 0x37418 movq 0x22ba6(%rip), %rcx # 0x59fb0 cmpb $0x0, (%rcx) je 0x37414 incl 0x8(%rax) jmp 0x37418 lock incl 0x8(%rax) movq %rsp, %rsi callq 0x2f102 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x3742f callq 0x14c7c addq $0x10, %rsp popq %rbx retq movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x37447 callq 0x14c7c movq %rbx, %rdi callq 0xb780 nop
_ZN5ftxui4Loop7RunOnceEv: push rbx; int sub rsp, 10h mov rax, rdi mov rdi, [rdi]; this mov rcx, [rax+8] mov [rsp+18h+var_18], rcx; __int64 mov rax, [rax+10h] mov qword ptr [rsp+18h+var_10], rax; int test rax, rax jz short loc_37418 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_37414 inc dword ptr [rax+8] jmp short loc_37418 loc_37414: lock inc dword ptr [rax+8] loc_37418: mov rsi, rsp call _ZN5ftxui17ScreenInteractive7RunOnceESt10shared_ptrINS_13ComponentBaseEE; ftxui::ScreenInteractive::RunOnce(std::shared_ptr<ftxui::ComponentBase>) mov rdi, qword ptr [rsp+18h+var_10] test rdi, rdi jz short loc_3742F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_3742F: add rsp, 10h pop rbx retn mov rbx, rax mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_37447 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_37447: mov rdi, rbx call __Unwind_Resume
RunOnce: PUSH RBX SUB RSP,0x10 MOV RAX,RDI MOV RDI,qword ptr [RDI] MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x8],RAX TEST RAX,RAX JZ 0x00137418 MOV RCX,qword ptr [0x00159fb0] CMP byte ptr [RCX],0x0 JZ 0x00137414 INC dword ptr [RAX + 0x8] JMP 0x00137418 LAB_00137414: INC.LOCK dword ptr [RAX + 0x8] LAB_00137418: MOV RSI,RSP CALL 0x0012f102 LAB_00137420: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0013742f CALL 0x00114c7c LAB_0013742f: ADD RSP,0x10 POP RBX RET
/* ftxui::Loop::RunOnce() */ void __thiscall ftxui::Loop::RunOnce(Loop *this) { ScreenInteractive *pSVar1; int8 local_18; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_10; pSVar1 = *(ScreenInteractive **)this; local_18 = *(int8 *)(this + 8); local_10 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10); if (local_10 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00159fb0 == '\0') { LOCK(); *(int *)(local_10 + 8) = *(int *)(local_10 + 8) + 1; UNLOCK(); } else { *(int *)(local_10 + 8) = *(int *)(local_10 + 8) + 1; } } /* try { // try from 00137418 to 0013741f has its CatchHandler @ 00137435 */ ScreenInteractive::RunOnce(pSVar1,&local_18); if (local_10 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_10); } return; }
7,053
string_getc
bluesky950520[P]quickjs/quickjs.c
static int string_getc(const JSString *p, int *pidx) { int idx, c, c1; idx = *pidx; if (p->is_wide_char) { c = p->u.str16[idx++]; if (is_hi_surrogate(c) && idx < p->len) { c1 = p->u.str16[idx]; if (is_lo_surrogate(c1)) { c = from_surrogate(c, c1); idx++; } } } else { c = p->u.str8[idx++]; } *pidx = idx; return c; }
O1
c
string_getc: movslq (%rsi), %rdx movq 0x4(%rdi), %r8 leal 0x1(%rdx), %ecx testl %r8d, %r8d js 0x4c5c3 movzbl 0x18(%rdi,%rdx), %eax jmp 0x4c624 movzwl 0x18(%rdi,%rdx,2), %eax movl %eax, %r9d andl $0xfc00, %r9d # imm = 0xFC00 cmpl $0xd800, %r9d # imm = 0xD800 sete %r9b andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF cmpl %r8d, %ecx setl %r8b andb %r9b, %r8b cmpb $0x1, %r8b jne 0x4c624 movzwl 0x1a(%rdi,%rdx,2), %edi movl %edi, %r8d andl $0xfc00, %r8d # imm = 0xFC00 cmpl $0xdc00, %r8d # imm = 0xDC00 jne 0x4c624 shll $0xa, %eax andl $0xffc00, %eax # imm = 0xFFC00 andl $0x3ff, %edi # imm = 0x3FF addl %edi, %eax addl $0x10000, %eax # imm = 0x10000 leal 0x2(%rdx), %ecx movl %ecx, (%rsi) retq
string_getc: movsxd rdx, dword ptr [rsi] mov r8, [rdi+4] lea ecx, [rdx+1] test r8d, r8d js short loc_4C5C3 movzx eax, byte ptr [rdi+rdx+18h] jmp short loc_4C624 loc_4C5C3: movzx eax, word ptr [rdi+rdx*2+18h] mov r9d, eax and r9d, 0FC00h cmp r9d, 0D800h setz r9b and r8d, 7FFFFFFFh cmp ecx, r8d setl r8b and r8b, r9b cmp r8b, 1 jnz short loc_4C624 movzx edi, word ptr [rdi+rdx*2+1Ah] mov r8d, edi and r8d, 0FC00h cmp r8d, 0DC00h jnz short loc_4C624 shl eax, 0Ah and eax, 0FFC00h and edi, 3FFh add eax, edi add eax, 10000h lea ecx, [rdx+2] loc_4C624: mov [rsi], ecx retn
long long string_getc(long long a1, int *a2) { long long v2; // rdx long long v3; // r8 int v4; // ecx long long result; // rax __int16 v6; // di v2 = *a2; v3 = *(_QWORD *)(a1 + 4); v4 = v2 + 1; if ( (int)v3 < 0 ) { result = *(unsigned __int16 *)(a1 + 2 * v2 + 24); if ( (*(_WORD *)(a1 + 2 * v2 + 24) & 0xFC00) == 55296 && v4 < (v3 & 0x7FFFFFFF) ) { v6 = *(_WORD *)(a1 + 2 * v2 + 26); if ( (v6 & 0xFC00) == 0xDC00 ) { result = (v6 & 0x3FF) + (((_DWORD)result << 10) & 0xFFC00u) + 0x10000; v4 = v2 + 2; } } } else { result = *(unsigned __int8 *)(a1 + v2 + 24); } *a2 = v4; return result; }
7,054
string_getc
bluesky950520[P]quickjs/quickjs.c
static int string_getc(const JSString *p, int *pidx) { int idx, c, c1; idx = *pidx; if (p->is_wide_char) { c = p->u.str16[idx++]; if (is_hi_surrogate(c) && idx < p->len) { c1 = p->u.str16[idx]; if (is_lo_surrogate(c1)) { c = from_surrogate(c, c1); idx++; } } } else { c = p->u.str8[idx++]; } *pidx = idx; return c; }
O2
c
string_getc: movslq (%rsi), %rdx movq 0x4(%rdi), %r8 leal 0x1(%rdx), %ecx testl %r8d, %r8d js 0x41a3e movzbl 0x18(%rdi,%rdx), %eax jmp 0x41a9f movzwl 0x18(%rdi,%rdx,2), %eax movl %eax, %r9d andl $0xfc00, %r9d # imm = 0xFC00 cmpl $0xd800, %r9d # imm = 0xD800 sete %r9b andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF cmpl %r8d, %ecx setl %r8b andb %r9b, %r8b cmpb $0x1, %r8b jne 0x41a9f movzwl 0x1a(%rdi,%rdx,2), %edi movl %edi, %r8d andl $0xfc00, %r8d # imm = 0xFC00 cmpl $0xdc00, %r8d # imm = 0xDC00 jne 0x41a9f shll $0xa, %eax andl $0xffc00, %eax # imm = 0xFFC00 andl $0x3ff, %edi # imm = 0x3FF addl %edi, %eax addl $0x10000, %eax # imm = 0x10000 leal 0x2(%rdx), %ecx movl %ecx, (%rsi) retq
string_getc: movsxd rdx, dword ptr [rsi] mov r8, [rdi+4] lea ecx, [rdx+1] test r8d, r8d js short loc_41A3E movzx eax, byte ptr [rdi+rdx+18h] jmp short loc_41A9F loc_41A3E: movzx eax, word ptr [rdi+rdx*2+18h] mov r9d, eax and r9d, 0FC00h cmp r9d, 0D800h setz r9b and r8d, 7FFFFFFFh cmp ecx, r8d setl r8b and r8b, r9b cmp r8b, 1 jnz short loc_41A9F movzx edi, word ptr [rdi+rdx*2+1Ah] mov r8d, edi and r8d, 0FC00h cmp r8d, 0DC00h jnz short loc_41A9F shl eax, 0Ah and eax, 0FFC00h and edi, 3FFh add eax, edi add eax, 10000h lea ecx, [rdx+2] loc_41A9F: mov [rsi], ecx retn
long long string_getc(long long a1, int *a2) { long long v2; // rdx long long v3; // r8 int v4; // ecx long long result; // rax __int16 v6; // di v2 = *a2; v3 = *(_QWORD *)(a1 + 4); v4 = v2 + 1; if ( (int)v3 < 0 ) { result = *(unsigned __int16 *)(a1 + 2 * v2 + 24); if ( (*(_WORD *)(a1 + 2 * v2 + 24) & 0xFC00) == 55296 && v4 < (v3 & 0x7FFFFFFF) ) { v6 = *(_WORD *)(a1 + 2 * v2 + 26); if ( (v6 & 0xFC00) == 0xDC00 ) { result = (v6 & 0x3FF) + (((_DWORD)result << 10) & 0xFFC00u) + 0x10000; v4 = v2 + 2; } } } else { result = *(unsigned __int8 *)(a1 + v2 + 24); } *a2 = v4; return result; }
string_getc: MOVSXD RDX,dword ptr [RSI] MOV R8,qword ptr [RDI + 0x4] LEA ECX,[RDX + 0x1] TEST R8D,R8D JS 0x00141a3e MOVZX EAX,byte ptr [RDI + RDX*0x1 + 0x18] JMP 0x00141a9f LAB_00141a3e: MOVZX EAX,word ptr [RDI + RDX*0x2 + 0x18] MOV R9D,EAX AND R9D,0xfc00 CMP R9D,0xd800 SETZ R9B AND R8D,0x7fffffff CMP ECX,R8D SETL R8B AND R8B,R9B CMP R8B,0x1 JNZ 0x00141a9f MOVZX EDI,word ptr [RDI + RDX*0x2 + 0x1a] MOV R8D,EDI AND R8D,0xfc00 CMP R8D,0xdc00 JNZ 0x00141a9f SHL EAX,0xa AND EAX,0xffc00 AND EDI,0x3ff ADD EAX,EDI ADD EAX,0x10000 LEA ECX,[RDX + 0x2] LAB_00141a9f: MOV dword ptr [RSI],ECX RET
uint string_getc(long param_1,int *param_2) { ushort uVar1; int iVar2; uint uVar3; int iVar4; long lVar5; uint uVar6; iVar2 = *param_2; lVar5 = (long)iVar2; iVar4 = iVar2 + 1; uVar6 = (uint)*(int8 *)(param_1 + 4); if ((int)uVar6 < 0) { uVar1 = *(ushort *)(param_1 + 0x18 + lVar5 * 2); uVar3 = (uint)uVar1; if ((iVar4 < (int)(uVar6 & 0x7fffffff) && (uVar1 & 0xfc00) == 0xd800) && (uVar6 = (uint)*(ushort *)(param_1 + 0x1a + lVar5 * 2), (uVar6 & 0xfc00) == 0xdc00)) { uVar3 = (uVar1 & 0x3ff) * 0x400 + (uVar6 & 0x3ff) + 0x10000; iVar4 = iVar2 + 2; } } else { uVar3 = (uint)*(byte *)(param_1 + 0x18 + lVar5); } *param_2 = iVar4; return uVar3; }
7,055
string_getc
bluesky950520[P]quickjs/quickjs.c
static int string_getc(const JSString *p, int *pidx) { int idx, c, c1; idx = *pidx; if (p->is_wide_char) { c = p->u.str16[idx++]; if (is_hi_surrogate(c) && idx < p->len) { c1 = p->u.str16[idx]; if (is_lo_surrogate(c1)) { c = from_surrogate(c, c1); idx++; } } } else { c = p->u.str8[idx++]; } *pidx = idx; return c; }
O3
c
string_getc: movslq (%rsi), %rdx movq 0x4(%rdi), %r8 leal 0x1(%rdx), %ecx testl %r8d, %r8d js 0x4e450 movzbl 0x18(%rdi,%rdx), %eax jmp 0x4e4b1 movzwl 0x18(%rdi,%rdx,2), %eax movl %eax, %r9d andl $0xfc00, %r9d # imm = 0xFC00 cmpl $0xd800, %r9d # imm = 0xD800 sete %r9b andl $0x7fffffff, %r8d # imm = 0x7FFFFFFF cmpl %r8d, %ecx setl %r8b andb %r9b, %r8b cmpb $0x1, %r8b jne 0x4e4b1 movzwl 0x1a(%rdi,%rdx,2), %edi movl %edi, %r8d andl $0xfc00, %r8d # imm = 0xFC00 cmpl $0xdc00, %r8d # imm = 0xDC00 jne 0x4e4b1 shll $0xa, %eax andl $0xffc00, %eax # imm = 0xFFC00 andl $0x3ff, %edi # imm = 0x3FF addl %edi, %eax addl $0x10000, %eax # imm = 0x10000 leal 0x2(%rdx), %ecx movl %ecx, (%rsi) retq
string_getc: movsxd rdx, dword ptr [rsi] mov r8, [rdi+4] lea ecx, [rdx+1] test r8d, r8d js short loc_4E450 movzx eax, byte ptr [rdi+rdx+18h] jmp short loc_4E4B1 loc_4E450: movzx eax, word ptr [rdi+rdx*2+18h] mov r9d, eax and r9d, 0FC00h cmp r9d, 0D800h setz r9b and r8d, 7FFFFFFFh cmp ecx, r8d setl r8b and r8b, r9b cmp r8b, 1 jnz short loc_4E4B1 movzx edi, word ptr [rdi+rdx*2+1Ah] mov r8d, edi and r8d, 0FC00h cmp r8d, 0DC00h jnz short loc_4E4B1 shl eax, 0Ah and eax, 0FFC00h and edi, 3FFh add eax, edi add eax, 10000h lea ecx, [rdx+2] loc_4E4B1: mov [rsi], ecx retn
long long string_getc(long long a1, int *a2) { long long v2; // rdx long long v3; // r8 int v4; // ecx long long result; // rax __int16 v6; // di v2 = *a2; v3 = *(_QWORD *)(a1 + 4); v4 = v2 + 1; if ( (int)v3 < 0 ) { result = *(unsigned __int16 *)(a1 + 2 * v2 + 24); if ( (*(_WORD *)(a1 + 2 * v2 + 24) & 0xFC00) == 55296 && v4 < (v3 & 0x7FFFFFFF) ) { v6 = *(_WORD *)(a1 + 2 * v2 + 26); if ( (v6 & 0xFC00) == 0xDC00 ) { result = (v6 & 0x3FF) + (((_DWORD)result << 10) & 0xFFC00u) + 0x10000; v4 = v2 + 2; } } } else { result = *(unsigned __int8 *)(a1 + v2 + 24); } *a2 = v4; return result; }
string_getc: MOVSXD RDX,dword ptr [RSI] MOV R8,qword ptr [RDI + 0x4] LEA ECX,[RDX + 0x1] TEST R8D,R8D JS 0x0014e450 MOVZX EAX,byte ptr [RDI + RDX*0x1 + 0x18] JMP 0x0014e4b1 LAB_0014e450: MOVZX EAX,word ptr [RDI + RDX*0x2 + 0x18] MOV R9D,EAX AND R9D,0xfc00 CMP R9D,0xd800 SETZ R9B AND R8D,0x7fffffff CMP ECX,R8D SETL R8B AND R8B,R9B CMP R8B,0x1 JNZ 0x0014e4b1 MOVZX EDI,word ptr [RDI + RDX*0x2 + 0x1a] MOV R8D,EDI AND R8D,0xfc00 CMP R8D,0xdc00 JNZ 0x0014e4b1 SHL EAX,0xa AND EAX,0xffc00 AND EDI,0x3ff ADD EAX,EDI ADD EAX,0x10000 LEA ECX,[RDX + 0x2] LAB_0014e4b1: MOV dword ptr [RSI],ECX RET
uint string_getc(long param_1,int *param_2) { ushort uVar1; int iVar2; uint uVar3; int iVar4; long lVar5; uint uVar6; iVar2 = *param_2; lVar5 = (long)iVar2; iVar4 = iVar2 + 1; uVar6 = (uint)*(int8 *)(param_1 + 4); if ((int)uVar6 < 0) { uVar1 = *(ushort *)(param_1 + 0x18 + lVar5 * 2); uVar3 = (uint)uVar1; if ((iVar4 < (int)(uVar6 & 0x7fffffff) && (uVar1 & 0xfc00) == 0xd800) && (uVar6 = (uint)*(ushort *)(param_1 + 0x1a + lVar5 * 2), (uVar6 & 0xfc00) == 0xdc00)) { uVar3 = (uVar1 & 0x3ff) * 0x400 + (uVar6 & 0x3ff) + 0x10000; iVar4 = iVar2 + 2; } } else { uVar3 = (uint)*(byte *)(param_1 + 0x18 + lVar5); } *param_2 = iVar4; return uVar3; }
7,056
ast_create_if
tsotchke[P]eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_if(Arena* arena, AstNode* condition, AstNode* then_branch, AstNode* else_branch, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_IF, line, column); if (!node) { return NULL; } node->as.if_expr.condition = condition; node->as.if_expr.then_branch = then_branch; node->as.if_expr.else_branch = else_branch; return node; }
O0
c
ast_create_if: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rdx movq -0x38(%rbp), %rcx movl $0x9, %esi callq 0x5160 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) jne 0x58fb movq $0x0, -0x8(%rbp) jmp 0x5927 movq -0x18(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x48(%rax) movq -0x20(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x50(%rax) movq -0x28(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, 0x58(%rax) movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ast_create_if: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rdi, [rbp+var_10] mov rdx, [rbp+var_30] mov rcx, [rbp+var_38] mov esi, 9 call ast_create_node mov [rbp+var_40], rax cmp [rbp+var_40], 0 jnz short loc_58FB mov [rbp+var_8], 0 jmp short loc_5927 loc_58FB: mov rcx, [rbp+var_18] mov rax, [rbp+var_40] mov [rax+48h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_40] mov [rax+50h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_40] mov [rax+58h], rcx mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_5927: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
_QWORD * ast_create_if(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6) { _QWORD *node; // [rsp+0h] [rbp-40h] node = (_QWORD *)ast_create_node(a1, 9, a5, a6); if ( !node ) return 0LL; node[9] = a2; node[10] = a3; node[11] = a4; return node; }
ast_create_if: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] MOV ESI,0x9 CALL 0x00105160 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 JNZ 0x001058fb MOV qword ptr [RBP + -0x8],0x0 JMP 0x00105927 LAB_001058fb: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x48],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x50],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x58],RCX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_00105927: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long ast_create_if(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { int8 local_10; local_10 = ast_create_node(param_1,9,param_5,param_6); if (local_10 == 0) { local_10 = 0; } else { *(int8 *)(local_10 + 0x48) = param_2; *(int8 *)(local_10 + 0x50) = param_3; *(int8 *)(local_10 + 0x58) = param_4; } return local_10; }
7,057
ast_create_if
tsotchke[P]eshkol/src/frontend/ast/create/ast_create.c
AstNode* ast_create_if(Arena* arena, AstNode* condition, AstNode* then_branch, AstNode* else_branch, size_t line, size_t column) { AstNode* node = ast_create_node(arena, AST_IF, line, column); if (!node) { return NULL; } node->as.if_expr.condition = condition; node->as.if_expr.then_branch = then_branch; node->as.if_expr.else_branch = else_branch; return node; }
O2
c
ast_create_if: pushq %r15 pushq %r14 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r15 pushq $0x9 popq %rsi movq %r8, %rdx movq %r9, %rcx callq 0x4488 testq %rax, %rax je 0x465e movq %r15, 0x48(%rax) movq %r14, 0x50(%rax) movq %rbx, 0x58(%rax) popq %rbx popq %r14 popq %r15 retq
ast_create_if: push r15 push r14 push rbx mov rbx, rcx mov r14, rdx mov r15, rsi push 9 pop rsi mov rdx, r8 mov rcx, r9 call ast_create_node test rax, rax jz short loc_465E mov [rax+48h], r15 mov [rax+50h], r14 mov [rax+58h], rbx loc_465E: pop rbx pop r14 pop r15 retn
_QWORD * ast_create_if(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6) { _QWORD *result; // rax result = (_QWORD *)ast_create_node(a1, 9, a5, a6); if ( result ) { result[9] = a2; result[10] = a3; result[11] = a4; } return result; }
ast_create_if: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15,RSI PUSH 0x9 POP RSI MOV RDX,R8 MOV RCX,R9 CALL 0x00104488 TEST RAX,RAX JZ 0x0010465e MOV qword ptr [RAX + 0x48],R15 MOV qword ptr [RAX + 0x50],R14 MOV qword ptr [RAX + 0x58],RBX LAB_0010465e: POP RBX POP R14 POP R15 RET
void ast_create_if(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { long lVar1; lVar1 = ast_create_node(param_1,9,param_5,param_6); if (lVar1 != 0) { *(int8 *)(lVar1 + 0x48) = param_2; *(int8 *)(lVar1 + 0x50) = param_3; *(int8 *)(lVar1 + 0x58) = param_4; } return; }
7,058
TraceLog
csit-sgu[P]mit-game-2025-team-tyler/Libraries/raylib/src/utils.c
void TraceLog(int logType, const char *text, ...) { #if defined(SUPPORT_TRACELOG) // Message has level below current threshold, don't emit if (logType < logTypeLevel) return; va_list args; va_start(args, text); if (traceLog) { traceLog(logType, text, args); va_end(args); return; } #if defined(PLATFORM_ANDROID) switch (logType) { case LOG_TRACE: __android_log_vprint(ANDROID_LOG_VERBOSE, "raylib", text, args); break; case LOG_DEBUG: __android_log_vprint(ANDROID_LOG_DEBUG, "raylib", text, args); break; case LOG_INFO: __android_log_vprint(ANDROID_LOG_INFO, "raylib", text, args); break; case LOG_WARNING: __android_log_vprint(ANDROID_LOG_WARN, "raylib", text, args); break; case LOG_ERROR: __android_log_vprint(ANDROID_LOG_ERROR, "raylib", text, args); break; case LOG_FATAL: __android_log_vprint(ANDROID_LOG_FATAL, "raylib", text, args); break; default: break; } #else char buffer[MAX_TRACELOG_MSG_LENGTH] = { 0 }; switch (logType) { case LOG_TRACE: strcpy(buffer, "TRACE: "); break; case LOG_DEBUG: strcpy(buffer, "DEBUG: "); break; case LOG_INFO: strcpy(buffer, "INFO: "); break; case LOG_WARNING: strcpy(buffer, "WARNING: "); break; case LOG_ERROR: strcpy(buffer, "ERROR: "); break; case LOG_FATAL: strcpy(buffer, "FATAL: "); break; default: break; } unsigned int textSize = (unsigned int)strlen(text); memcpy(buffer + strlen(buffer), text, (textSize < (MAX_TRACELOG_MSG_LENGTH - 12))? textSize : (MAX_TRACELOG_MSG_LENGTH - 12)); strcat(buffer, "\n"); vprintf(buffer, args); fflush(stdout); #endif va_end(args); if (logType == LOG_FATAL) exit(EXIT_FAILURE); // If fatal logging, exit program #endif // SUPPORT_TRACELOG }
O2
c
TraceLog: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1d8, %rsp # imm = 0x1D8 testb %al, %al je 0xa13a5 movaps %xmm0, 0x150(%rsp) movaps %xmm1, 0x160(%rsp) movaps %xmm2, 0x170(%rsp) movaps %xmm3, 0x180(%rsp) movaps %xmm4, 0x190(%rsp) movaps %xmm5, 0x1a0(%rsp) movaps %xmm6, 0x1b0(%rsp) movaps %xmm7, 0x1c0(%rsp) movq %rdx, 0x130(%rsp) movq %rcx, 0x138(%rsp) movq %r8, 0x140(%rsp) movq %r9, 0x148(%rsp) cmpl %edi, 0x81815(%rip) # 0x122be0 jg 0xa1501 movq %rsi, %r14 movl %edi, %ebx leaq 0x120(%rsp), %rax movq %rax, 0x10(%rsp) leaq 0x200(%rsp), %rax movq %rax, 0x8(%rsp) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rsp) movq 0x8f97b(%rip), %rax # 0x130d80 testq %rax, %rax je 0xa1419 movq %rsp, %rdx movl %ebx, %edi movq %r14, %rsi callq *%rax jmp 0xa1501 leaq 0x20(%rsp), %rdi movl $0x100, %edx # imm = 0x100 xorl %esi, %esi callq 0x92c0 leal -0x1(%rbx), %eax cmpl $0x5, %eax ja 0xa149f leaq 0x33b27(%rip), %rcx # 0xd4f60 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movabsq $0x203a4543415254, %rax # imm = 0x203A4543415254 jmp 0xa149a movabsq $0x203a524f525245, %rax # imm = 0x203A524F525245 jmp 0xa149a movl $0x203a4f, 0x23(%rsp) # imm = 0x203A4F movl $0x4f464e49, 0x20(%rsp) # imm = 0x4F464E49 jmp 0xa149f movabsq $0x3a474e494e524157, %rax # imm = 0x3A474E494E524157 movq %rax, 0x20(%rsp) movw $0x20, 0x28(%rsp) jmp 0xa149f movabsq $0x203a4755424544, %rax # imm = 0x203A4755424544 jmp 0xa149a movabsq $0x203a4c41544146, %rax # imm = 0x203A4C41544146 movq %rax, 0x20(%rsp) movq %r14, %rdi callq 0x9210 movq %rax, %r15 leaq 0x20(%rsp), %r12 movq %r12, %rdi callq 0x9210 leaq (%rsp,%rax), %rdi addq $0x20, %rdi movl $0xf4, %edx cmpl %edx, %r15d cmovbl %r15d, %edx movq %r14, %rsi callq 0x9400 movq %r12, %rdi callq 0x9210 movw $0xa, 0x20(%rsp,%rax) movq %rsp, %rsi movq %r12, %rdi callq 0x9560 movq 0x80ab4(%rip), %rax # 0x121fa8 movq (%rax), %rdi callq 0x9610 cmpl $0x6, %ebx je 0xa1510 addq $0x1d8, %rsp # imm = 0x1D8 popq %rbx popq %r12 popq %r14 popq %r15 retq pushq $0x1 popq %rdi callq 0x9660
TraceLog: push r15 push r14 push r12 push rbx sub rsp, 1D8h test al, al jz short loc_A13A5 movaps [rsp+1F8h+var_A8], xmm0 movaps [rsp+1F8h+var_98], xmm1 movaps [rsp+1F8h+var_88], xmm2 movaps [rsp+1F8h+var_78], xmm3 movaps [rsp+1F8h+var_68], xmm4 movaps [rsp+1F8h+var_58], xmm5 movaps [rsp+1F8h+var_48], xmm6 movaps [rsp+1F8h+var_38], xmm7 loc_A13A5: mov [rsp+1F8h+var_C8], rdx mov [rsp+1F8h+var_C0], rcx mov [rsp+1F8h+var_B8], r8 mov [rsp+1F8h+var_B0], r9 cmp cs:logTypeLevel, edi jg loc_A1501 mov r14, rsi mov ebx, edi lea rax, [rsp+1F8h+var_D8] mov [rsp+1F8h+var_1E8], rax lea rax, [rsp+1F8h+arg_0] mov [rsp+1F8h+var_1F0], rax mov rax, 3000000010h mov [rsp+1F8h+var_1F8], rax mov rax, cs:traceLog test rax, rax jz short loc_A1419 mov rdx, rsp mov edi, ebx mov rsi, r14 call rax ; traceLog jmp loc_A1501 loc_A1419: lea rdi, [rsp+1F8h+var_1D8] mov edx, 100h xor esi, esi call _memset lea eax, [rbx-1]; switch 6 cases cmp eax, 5 ja short def_A1440; jumptable 00000000000A1440 default case lea rcx, jpt_A1440 movsxd rax, ds:(jpt_A1440 - 0D4F60h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_A1442: mov rax, 203A4543415254h; jumptable 00000000000A1440 case 1 jmp short loc_A149A loc_A144E: mov rax, 203A524F525245h; jumptable 00000000000A1440 case 5 jmp short loc_A149A loc_A145A: mov dword ptr [rsp+1F8h+var_1D8+3], 203A4Fh; jumptable 00000000000A1440 case 3 mov dword ptr [rsp+1F8h+var_1D8], 4F464E49h jmp short def_A1440; jumptable 00000000000A1440 default case loc_A146C: mov rax, 3A474E494E524157h; jumptable 00000000000A1440 case 4 mov [rsp+1F8h+var_1D8], rax mov [rsp+1F8h+var_1D0], 20h ; ' ' jmp short def_A1440; jumptable 00000000000A1440 default case loc_A1484: mov rax, 203A4755424544h; jumptable 00000000000A1440 case 2 jmp short loc_A149A loc_A1490: mov rax, 203A4C41544146h; jumptable 00000000000A1440 case 6 loc_A149A: mov [rsp+1F8h+var_1D8], rax def_A1440: mov rdi, r14; jumptable 00000000000A1440 default case call _strlen mov r15, rax lea r12, [rsp+1F8h+var_1D8] mov rdi, r12 call _strlen lea rdi, [rsp+rax+1F8h+var_1F8] add rdi, 20h ; ' ' mov edx, 0F4h cmp r15d, edx cmovb edx, r15d mov rsi, r14 call _memcpy mov rdi, r12 call _strlen mov word ptr [rsp+rax+1F8h+var_1D8], 0Ah mov rsi, rsp mov rdi, r12 call _vprintf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush cmp ebx, 6 jz short loc_A1510 loc_A1501: add rsp, 1D8h pop rbx pop r12 pop r14 pop r15 retn loc_A1510: push 1 pop rdi call _exit
void TraceLog(int a1, long long a2, ...) { long long v3; // rax unsigned int v4; // r15d char *v5; // rdi long long v6; // rdx va_list va; // [rsp+0h] [rbp-1F8h] BYREF char v8[256]; // [rsp+20h] [rbp-1D8h] BYREF if ( logTypeLevel <= a1 ) { va_start(va, a2); if ( traceLog ) { ((void ( *)(_QWORD, long long, __va_list_tag *))traceLog)((unsigned int)a1, a2, va); } else { memset(v8, 0LL, sizeof(v8)); switch ( a1 ) { case 1: v3 = 0x203A4543415254LL; goto LABEL_11; case 2: v3 = 0x203A4755424544LL; goto LABEL_11; case 3: strcpy(v8, "INFO: "); break; case 4: strcpy(v8, "WARNING: "); break; case 5: v3 = 0x203A524F525245LL; goto LABEL_11; case 6: v3 = 0x203A4C41544146LL; LABEL_11: *(_QWORD *)v8 = v3; break; default: break; } v4 = strlen(a2); v5 = &v8[strlen(v8)]; v6 = 244LL; if ( v4 < 0xF4 ) v6 = v4; memcpy(v5, a2, v6); *(_WORD *)&v8[strlen(v8)] = 10; ((void ( *)(char *, __va_list_tag *))vprintf)(v8, va); fflush(stdout); if ( a1 == 6 ) exit(1LL); } } }
TraceLog: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1d8 TEST AL,AL JZ 0x001a13a5 MOVAPS xmmword ptr [RSP + 0x150],XMM0 MOVAPS xmmword ptr [RSP + 0x160],XMM1 MOVAPS xmmword ptr [RSP + 0x170],XMM2 MOVAPS xmmword ptr [RSP + 0x180],XMM3 MOVAPS xmmword ptr [RSP + 0x190],XMM4 MOVAPS xmmword ptr [RSP + 0x1a0],XMM5 MOVAPS xmmword ptr [RSP + 0x1b0],XMM6 MOVAPS xmmword ptr [RSP + 0x1c0],XMM7 LAB_001a13a5: MOV qword ptr [RSP + 0x130],RDX MOV qword ptr [RSP + 0x138],RCX MOV qword ptr [RSP + 0x140],R8 MOV qword ptr [RSP + 0x148],R9 CMP dword ptr [0x00222be0],EDI JG 0x001a1501 MOV R14,RSI MOV EBX,EDI LEA RAX,[RSP + 0x120] MOV qword ptr [RSP + 0x10],RAX LEA RAX,[RSP + 0x200] MOV qword ptr [RSP + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [0x00230d80] TEST RAX,RAX JZ 0x001a1419 MOV RDX,RSP MOV EDI,EBX MOV RSI,R14 CALL RAX JMP 0x001a1501 LAB_001a1419: LEA RDI,[RSP + 0x20] MOV EDX,0x100 XOR ESI,ESI CALL 0x001092c0 LEA EAX,[RBX + -0x1] CMP EAX,0x5 JA 0x001a149f LEA RCX,[0x1d4f60] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,0x203a4543415254 JMP 0x001a149a caseD_5: MOV RAX,0x203a524f525245 JMP 0x001a149a caseD_3: MOV dword ptr [RSP + 0x23],0x203a4f MOV dword ptr [RSP + 0x20],0x4f464e49 JMP 0x001a149f caseD_4: MOV RAX,0x3a474e494e524157 MOV qword ptr [RSP + 0x20],RAX MOV word ptr [RSP + 0x28],0x20 JMP 0x001a149f caseD_2: MOV RAX,0x203a4755424544 JMP 0x001a149a caseD_6: MOV RAX,0x203a4c41544146 LAB_001a149a: MOV qword ptr [RSP + 0x20],RAX default: MOV RDI,R14 CALL 0x00109210 MOV R15,RAX LEA R12,[RSP + 0x20] MOV RDI,R12 CALL 0x00109210 LEA RDI,[RSP + RAX*0x1] ADD RDI,0x20 MOV EDX,0xf4 CMP R15D,EDX CMOVC EDX,R15D MOV RSI,R14 CALL 0x00109400 MOV RDI,R12 CALL 0x00109210 MOV word ptr [RSP + RAX*0x1 + 0x20],0xa MOV RSI,RSP MOV RDI,R12 CALL 0x00109560 MOV RAX,qword ptr [0x00221fa8] MOV RDI,qword ptr [RAX] CALL 0x00109610 CMP EBX,0x6 JZ 0x001a1510 LAB_001a1501: ADD RSP,0x1d8 POP RBX POP R12 POP R14 POP R15 RET LAB_001a1510: PUSH 0x1 POP RDI CALL 0x00109660
void TraceLog(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8,int param_9 ,char *param_10,int8 param_11,int8 param_12,int8 param_13, int8 param_14) { char in_AL; size_t sVar1; size_t sVar2; size_t __n; int8 local_1f8; int1 *local_1f0; int1 *local_1e8; int8 local_1d8; int2 local_1d0; int1 local_d8 [16]; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } if (logTypeLevel <= param_9) { local_1e8 = local_d8; local_1f0 = &stack0x00000008; local_1f8 = 0x3000000010; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; if (traceLog == (code *)0x0) { memset(&local_1d8,0,0x100); switch(param_9) { case 1: local_1d8 = 0x203a4543415254; break; case 2: local_1d8 = 0x203a4755424544; break; case 3: local_1d8 = CONCAT17(local_1d8._7_1_,0x203a4f000000); local_1d8 = CONCAT44(local_1d8._4_4_,0x4f464e49); break; case 4: local_1d8 = 0x3a474e494e524157; local_1d0 = 0x20; break; case 5: local_1d8 = 0x203a524f525245; break; case 6: local_1d8 = 0x203a4c41544146; } sVar1 = strlen(param_10); sVar2 = strlen((char *)&local_1d8); __n = 0xf4; if ((uint)sVar1 < 0xf4) { __n = sVar1 & 0xffffffff; } memcpy((void *)((long)&local_1d8 + sVar2),param_10,__n); sVar1 = strlen((char *)&local_1d8); *(int2 *)((long)&local_1d8 + sVar1) = 10; vprintf((char *)&local_1d8,&local_1f8); fflush(*(FILE **)PTR_stdout_00221fa8); if (param_9 == 6) { /* WARNING: Subroutine does not return */ exit(1); } } else { (*traceLog)(param_9,param_10,&local_1f8); } } return; }
7,059
ftxui::Event::Special(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/event.cpp
Event Event::Special(std::string input) { Event event; event.input_ = std::move(input); return event; }
O1
cpp
ftxui::Event::Special(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %rbx movq %rdi, %rbx xorl %eax, %eax movq %rax, (%rdi) movabsq $0x300000000, %rcx # imm = 0x300000000 movq %rcx, 0x8(%rdi) movl $0x1, 0x10(%rdi) movw $0x0, 0x14(%rdi) movb %al, 0x16(%rdi) movq %rax, 0x18(%rdi) addq $0x20, %rdi leaq 0x30(%rbx), %rcx movq %rcx, 0x20(%rbx) movq %rax, 0x28(%rbx) movb %al, 0x30(%rbx) callq 0xb500 movq %rbx, %rax popq %rbx retq
_ZN5ftxui5Event7SpecialENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbx mov rbx, rdi xor eax, eax mov [rdi], rax mov rcx, 300000000h mov [rdi+8], rcx mov dword ptr [rdi+10h], 1 mov word ptr [rdi+14h], 0 mov [rdi+16h], al mov [rdi+18h], rax add rdi, 20h ; ' ' lea rcx, [rbx+30h] mov [rbx+20h], rcx mov [rbx+28h], rax mov [rbx+30h], al call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rax, rbx pop rbx retn
long long ftxui::Event::Special(long long a1, long long a2) { *(_QWORD *)a1 = 0LL; *(_QWORD *)(a1 + 8) = 0x300000000LL; *(_DWORD *)(a1 + 16) = 1; *(_WORD *)(a1 + 20) = 0; *(_BYTE *)(a1 + 22) = 0; *(_QWORD *)(a1 + 24) = 0LL; *(_QWORD *)(a1 + 32) = a1 + 48; *(_QWORD *)(a1 + 40) = 0LL; *(_BYTE *)(a1 + 48) = 0; std::string::operator=(a1 + 32, a2); return a1; }
Special: PUSH RBX MOV RBX,RDI XOR EAX,EAX MOV qword ptr [RDI],RAX MOV RCX,0x300000000 MOV qword ptr [RDI + 0x8],RCX MOV dword ptr [RDI + 0x10],0x1 MOV word ptr [RDI + 0x14],0x0 MOV byte ptr [RDI + 0x16],AL MOV qword ptr [RDI + 0x18],RAX ADD RDI,0x20 LEA RCX,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RCX MOV qword ptr [RBX + 0x28],RAX MOV byte ptr [RBX + 0x30],AL CALL 0x0010b500 MOV RAX,RBX POP RBX RET
/* ftxui::Event::Special(std::__cxx11::string) */ Event * __thiscall ftxui::Event::Special(Event *this,string *param_2) { *(int8 *)this = 0; *(int8 *)(this + 8) = 0x300000000; *(int4 *)(this + 0x10) = 1; *(int2 *)(this + 0x14) = 0; this[0x16] = (Event)0x0; *(int8 *)(this + 0x18) = 0; *(Event **)(this + 0x20) = this + 0x30; *(int8 *)(this + 0x28) = 0; this[0x30] = (Event)0x0; std::__cxx11::string::operator=((string *)(this + 0x20),param_2); return this; }
7,060
check_func_exist
xtate/src/probe-modules/lua-tcp-probe.c
static bool check_func_exist(const char *func) { lua_getglobal(luatcp_conf.Ltx, func); if (lua_isfunction(luatcp_conf.Ltx, -1) == 0) { LOG(LEVEL_ERROR, "" LUA_PROBE_NAME ": no `%s` func in script %s.\n", func, luatcp_conf.script); return false; } lua_pop(luatcp_conf.Ltx, 1); return true; }
O3
c
check_func_exist: pushq %rbp pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x179e20(%rip), %rax # 0x1a3fb8 movq 0x179b89(%rip), %rdi # 0x1a3d28 movq %rbx, %rsi callq *(%rax) leaq 0x179ed5(%rip), %rax # 0x1a4080 movq 0x179b76(%rip), %rdi # 0x1a3d28 movl $0xffffffff, %esi # imm = 0xFFFFFFFF callq *(%rax) movl %eax, %ebp cmpl $0x6, %eax jne 0x2a1d7 leaq 0x179e91(%rip), %rax # 0x1a4058 movq 0x179b5a(%rip), %rdi # 0x1a3d28 movl $0xfffffffe, %esi # imm = 0xFFFFFFFE callq *(%rax) jmp 0x2a1f4 movq 0x179b42(%rip), %rcx # 0x1a3d20 leaq 0x3cc33(%rip), %rsi # 0x66e18 movl $0xffffffff, %edi # imm = 0xFFFFFFFF movq %rbx, %rdx xorl %eax, %eax callq 0x536da cmpl $0x6, %ebp sete %al addq $0x8, %rsp popq %rbx popq %rbp retq
check_func_exist: push rbp push rbx push rax mov rbx, rdi lea rax, lua_getglobal mov rdi, cs:luatcp_conf_1 mov rsi, rbx call qword ptr [rax] lea rax, lua_type mov rdi, cs:luatcp_conf_1 mov esi, 0FFFFFFFFh call qword ptr [rax] mov ebp, eax cmp eax, 6 jnz short loc_2A1D7 lea rax, lua_settop mov rdi, cs:luatcp_conf_1 mov esi, 0FFFFFFFEh call qword ptr [rax] jmp short loc_2A1F4 loc_2A1D7: mov rcx, cs:luatcp_conf_0 lea rsi, aLuatcpprobeNoS; "LuaTcpProbe: no `%s` func in script %s."... mov edi, 0FFFFFFFFh mov rdx, rbx xor eax, eax call LOG loc_2A1F4: cmp ebp, 6 setz al add rsp, 8 pop rbx pop rbp retn
bool check_func_exist(long long a1) { int v1; // ebp int v2; // r8d int v3; // r9d lua_getglobal(luatcp_conf_1, a1); v1 = lua_type(luatcp_conf_1, 0xFFFFFFFFLL); if ( v1 == 6 ) lua_settop(luatcp_conf_1, 4294967294LL); else LOG(-1, (unsigned int)"LuaTcpProbe: no `%s` func in script %s.\n", a1, luatcp_conf_0, v2, v3); return v1 == 6; }
check_func_exist: PUSH RBP PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x2a3fb8] MOV RDI,qword ptr [0x002a3d28] MOV RSI,RBX CALL qword ptr [RAX] LEA RAX,[0x2a4080] MOV RDI,qword ptr [0x002a3d28] MOV ESI,0xffffffff CALL qword ptr [RAX] MOV EBP,EAX CMP EAX,0x6 JNZ 0x0012a1d7 LEA RAX,[0x2a4058] MOV RDI,qword ptr [0x002a3d28] MOV ESI,0xfffffffe CALL qword ptr [RAX] JMP 0x0012a1f4 LAB_0012a1d7: MOV RCX,qword ptr [0x002a3d20] LEA RSI,[0x166e18] MOV EDI,0xffffffff MOV RDX,RBX XOR EAX,EAX CALL 0x001536da LAB_0012a1f4: CMP EBP,0x6 SETZ AL ADD RSP,0x8 POP RBX POP RBP RET
bool check_func_exist(int8 param_1) { int iVar1; (*lua_getglobal)(luatcp_conf_1,param_1); iVar1 = (*lua_type)(luatcp_conf_1,0xffffffff); if (iVar1 == 6) { (*lua_settop)(luatcp_conf_1,0xfffffffe); } else { LOG(0xffffffff,"LuaTcpProbe: no `%s` func in script %s.\n",param_1,luatcp_conf_0); } return iVar1 == 6; }
7,061
my_hash_sort_simple
eloqsql/strings/ctype-simple.c
void my_hash_sort_simple(CHARSET_INFO *cs, const uchar *key, size_t len, ulong *nr1, ulong *nr2) { register const uchar *sort_order=cs->sort_order; const uchar *end; uint16 space_weight= sort_order[' ']; /* Remove all trailing characters that are equal to space. We have to do this to be able to compare 'A ' and 'A' as identical. If the key is long enough, cut the trailing spaces (0x20) using an optimized function implemented in skip_trailing_spaces(). "len > 16" is just some heuristic here. Calling skip_triling_space() for short values is not desirable, because its initialization block may be more expensive than the performance gained. */ end= len > 16 ? skip_trailing_space(key, len) : key + len; /* We removed all trailing characters that are binary equal to space 0x20. Now remove all trailing characters that have weights equal to space. Some 8bit simple collations may have such characters: - cp1250_general_ci 0xA0 NO-BREAK SPACE == 0x20 SPACE - cp1251_ukrainian_ci 0x60 GRAVE ACCENT == 0x20 SPACE - koi8u_general_ci 0x60 GRAVE ACCENT == 0x20 SPACE */ for ( ; key < end ; ) { if (sort_order[*--end] != space_weight) { end++; break; } } my_hash_sort_simple_nopad(cs, key, end - key, nr1, nr2); }
O0
c
my_hash_sort_simple: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movzbl 0x20(%rax), %eax movw %ax, -0x3a(%rbp) cmpq $0x10, -0x18(%rbp) jbe 0x4989e movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x49920 movq %rax, -0x48(%rbp) jmp 0x498aa movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x498ef movq -0x30(%rbp), %rax movq -0x38(%rbp), %rcx movq %rcx, %rdx addq $-0x1, %rdx movq %rdx, -0x38(%rbp) movzbl -0x1(%rcx), %ecx movzbl (%rax,%rcx), %eax movzwl -0x3a(%rbp), %ecx cmpl %ecx, %eax je 0x498ed movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x498ef jmp 0x498b2 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x38(%rbp), %rdx movq -0x10(%rbp), %rax subq %rax, %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x49790 addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_hash_sort_simple: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_8] mov rax, [rax+58h] mov [rbp+var_30], rax mov rax, [rbp+var_30] movzx eax, byte ptr [rax+20h] mov [rbp+var_3A], ax cmp [rbp+var_18], 10h jbe short loc_4989E mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call skip_trailing_space_2 mov [rbp+var_48], rax jmp short loc_498AA loc_4989E: mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_48], rax loc_498AA: mov rax, [rbp+var_48] mov [rbp+var_38], rax loc_498B2: mov rax, [rbp+var_10] cmp rax, [rbp+var_38] jnb short loc_498EF mov rax, [rbp+var_30] mov rcx, [rbp+var_38] mov rdx, rcx add rdx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rdx movzx ecx, byte ptr [rcx-1] movzx eax, byte ptr [rax+rcx] movzx ecx, [rbp+var_3A] cmp eax, ecx jz short loc_498ED mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp short loc_498EF loc_498ED: jmp short loc_498B2 loc_498EF: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_38] mov rax, [rbp+var_10] sub rdx, rax mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call my_hash_sort_simple_nopad add rsp, 50h pop rbp retn
_QWORD * my_hash_sort_simple(long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, _QWORD *a5) { unsigned long long v5; // rcx long long v7; // [rsp+8h] [rbp-48h] __int16 v8; // [rsp+16h] [rbp-3Ah] unsigned long long v9; // [rsp+18h] [rbp-38h] long long v10; // [rsp+20h] [rbp-30h] v10 = *(_QWORD *)(a1 + 88); v8 = *(unsigned __int8 *)(v10 + 32); if ( a3 <= 0x10 ) v7 = (long long)&a2[a3]; else v7 = skip_trailing_space_2(a2, a3); v9 = v7; while ( (unsigned long long)a2 < v9 ) { v5 = v9--; if ( *(unsigned __int8 *)(v10 + *(unsigned __int8 *)(v5 - 1)) != v8 ) return my_hash_sort_simple_nopad(a1, a2, ++v9 - (_QWORD)a2, a4, a5); } return my_hash_sort_simple_nopad(a1, a2, v9 - (_QWORD)a2, a4, a5); }
my_hash_sort_simple: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX + 0x20] MOV word ptr [RBP + -0x3a],AX CMP qword ptr [RBP + -0x18],0x10 JBE 0x0014989e MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00149920 MOV qword ptr [RBP + -0x48],RAX JMP 0x001498aa LAB_0014989e: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x48],RAX LAB_001498aa: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x38],RAX LAB_001498b2: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x38] JNC 0x001498ef MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x38] MOV RDX,RCX ADD RDX,-0x1 MOV qword ptr [RBP + -0x38],RDX MOVZX ECX,byte ptr [RCX + -0x1] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOVZX ECX,word ptr [RBP + -0x3a] CMP EAX,ECX JZ 0x001498ed MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x001498ef LAB_001498ed: JMP 0x001498b2 LAB_001498ef: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] SUB RDX,RAX MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL 0x00149790 ADD RSP,0x50 POP RBP RET
void my_hash_sort_simple(long param_1,ulong param_2,ulong param_3,int8 param_4, int8 param_5) { char cVar1; long lVar2; ulong uVar3; ulong local_50; ulong local_40; lVar2 = *(long *)(param_1 + 0x58); cVar1 = *(char *)(lVar2 + 0x20); if (param_3 < 0x11) { local_50 = param_2 + param_3; } else { local_50 = skip_trailing_space(param_2,param_3); } local_40 = local_50; uVar3 = local_40; do { local_40 = uVar3; if (local_40 <= param_2) break; uVar3 = local_40 - 1; } while (*(char *)(lVar2 + (ulong)*(byte *)(local_40 - 1)) == cVar1); my_hash_sort_simple_nopad(param_1,param_2,local_40 - param_2,param_4,param_5); return; }
7,062
trnman_destroy
eloqsql/storage/maria/trnman.c
void trnman_destroy() { DBUG_ENTER("trnman_destroy"); if (short_trid_to_active_trn == NULL) /* trnman already destroyed */ DBUG_VOID_RETURN; DBUG_ASSERT(trid_to_trn.count == 0); DBUG_ASSERT(trnman_active_transactions == 0); DBUG_ASSERT(trnman_committed_transactions == 0); DBUG_ASSERT(active_list_max.prev == &active_list_min); DBUG_ASSERT(active_list_min.next == &active_list_max); DBUG_ASSERT(committed_list_max.prev == &committed_list_min); DBUG_ASSERT(committed_list_min.next == &committed_list_max); while (pool) { TRN *trn= pool; pool= pool->next; DBUG_ASSERT(trn->wt == NULL); mysql_mutex_destroy(&trn->state_lock); my_free(trn); } lf_hash_destroy(&trid_to_trn); DBUG_PRINT("info", ("mysql_mutex_destroy LOCK_trn_list")); mysql_mutex_destroy(&LOCK_trn_list); my_free(short_trid_to_active_trn+1); short_trid_to_active_trn= NULL; DBUG_VOID_RETURN; }
O0
c
trnman_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp cmpq $0x0, 0xc09fb0(%rip) # 0xc80e00 jne 0x76e59 jmp 0x76e54 jmp 0x76eef jmp 0x76e5b jmp 0x76e5d jmp 0x76e5f jmp 0x76e61 jmp 0x76e63 jmp 0x76e65 jmp 0x76e67 jmp 0x76e69 jmp 0x76e6b jmp 0x76e6d jmp 0x76e6f jmp 0x76e71 jmp 0x76e73 jmp 0x76e75 jmp 0x76e77 cmpq $0x0, 0xc0a259(%rip) # 0xc810d8 je 0x76eb8 movq 0xc0a250(%rip), %rax # 0xc810d8 movq %rax, -0x8(%rbp) movq 0xc0a245(%rip), %rax # 0xc810d8 movq 0x68(%rax), %rax movq %rax, 0xc0a23a(%rip) # 0xc810d8 jmp 0x76ea0 movq -0x8(%rbp), %rdi addq $0x10, %rdi callq 0x76f00 movq -0x8(%rbp), %rdi callq 0xf9d70 jmp 0x76e77 leaq 0xc0a229(%rip), %rdi # 0xc810e8 callq 0x103f20 jmp 0x76ec6 leaq 0xc0a2e3(%rip), %rdi # 0xc811b0 callq 0x76f00 movq 0xc09f27(%rip), %rdi # 0xc80e00 addq $0x8, %rdi callq 0xf9d70 movq $0x0, 0xc09f13(%rip) # 0xc80e00 jmp 0x76eef addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
trnman_destroy: push rbp mov rbp, rsp sub rsp, 10h cmp cs:short_trid_to_active_trn, 0 jnz short loc_76E59 jmp short $+2 loc_76E54: jmp loc_76EEF loc_76E59: jmp short $+2 loc_76E5B: jmp short $+2 loc_76E5D: jmp short $+2 loc_76E5F: jmp short $+2 loc_76E61: jmp short $+2 loc_76E63: jmp short $+2 loc_76E65: jmp short $+2 loc_76E67: jmp short $+2 loc_76E69: jmp short $+2 loc_76E6B: jmp short $+2 loc_76E6D: jmp short $+2 loc_76E6F: jmp short $+2 loc_76E71: jmp short $+2 loc_76E73: jmp short $+2 loc_76E75: jmp short $+2 loc_76E77: cmp cs:pool, 0 jz short loc_76EB8 mov rax, cs:pool mov [rbp+var_8], rax mov rax, cs:pool mov rax, [rax+68h] mov cs:pool, rax jmp short $+2 loc_76EA0: mov rdi, [rbp+var_8] add rdi, 10h call inline_mysql_mutex_destroy_4 mov rdi, [rbp+var_8] call my_free jmp short loc_76E77 loc_76EB8: lea rdi, trid_to_trn call lf_hash_destroy jmp short $+2 loc_76EC6: lea rdi, LOCK_trn_list call inline_mysql_mutex_destroy_4 mov rdi, cs:short_trid_to_active_trn add rdi, 8 call my_free mov cs:short_trid_to_active_trn, 0 jmp short $+2 loc_76EEF: add rsp, 10h pop rbp retn
long long trnman_destroy() { long long result; // rax long long v1; // [rsp+8h] [rbp-8h] if ( short_trid_to_active_trn ) { while ( pool ) { v1 = pool; pool = *(_QWORD *)(pool + 104); inline_mysql_mutex_destroy_4(v1 + 16); my_free(v1); } lf_hash_destroy(&trid_to_trn); inline_mysql_mutex_destroy_4(&LOCK_trn_list); result = my_free(short_trid_to_active_trn + 8); short_trid_to_active_trn = 0LL; } return result; }
trnman_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 CMP qword ptr [0x00d80e00],0x0 JNZ 0x00176e59 JMP 0x00176e54 LAB_00176e54: JMP 0x00176eef LAB_00176e59: JMP 0x00176e5b LAB_00176e5b: JMP 0x00176e5d LAB_00176e5d: JMP 0x00176e5f LAB_00176e5f: JMP 0x00176e61 LAB_00176e61: JMP 0x00176e63 LAB_00176e63: JMP 0x00176e65 LAB_00176e65: JMP 0x00176e67 LAB_00176e67: JMP 0x00176e69 LAB_00176e69: JMP 0x00176e6b LAB_00176e6b: JMP 0x00176e6d LAB_00176e6d: JMP 0x00176e6f LAB_00176e6f: JMP 0x00176e71 LAB_00176e71: JMP 0x00176e73 LAB_00176e73: JMP 0x00176e75 LAB_00176e75: JMP 0x00176e77 LAB_00176e77: CMP qword ptr [0x00d810d8],0x0 JZ 0x00176eb8 MOV RAX,qword ptr [0x00d810d8] MOV qword ptr [RBP + -0x8],RAX MOV RAX,qword ptr [0x00d810d8] MOV RAX,qword ptr [RAX + 0x68] MOV qword ptr [0x00d810d8],RAX JMP 0x00176ea0 LAB_00176ea0: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x10 CALL 0x00176f00 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001f9d70 JMP 0x00176e77 LAB_00176eb8: LEA RDI,[0xd810e8] CALL 0x00203f20 JMP 0x00176ec6 LAB_00176ec6: LEA RDI,[0xd811b0] CALL 0x00176f00 MOV RDI,qword ptr [0x00d80e00] ADD RDI,0x8 CALL 0x001f9d70 MOV qword ptr [0x00d80e00],0x0 JMP 0x00176eef LAB_00176eef: ADD RSP,0x10 POP RBP RET
void trnman_destroy(void) { long lVar1; long lVar2; if (short_trid_to_active_trn != 0) { while (lVar1 = pool, pool != 0) { lVar2 = pool + 0x10; pool = *(long *)(pool + 0x68); inline_mysql_mutex_destroy(lVar2); my_free(lVar1); } lf_hash_destroy(trid_to_trn); inline_mysql_mutex_destroy(LOCK_trn_list); my_free(short_trid_to_active_trn + 8); short_trid_to_active_trn = 0; } return; }
7,063
std::shared_ptr<TextureGUI const> resource::load<TextureGUI>(char const*, unsigned int)
untodesu[P]voxelius/game/client/texture_gui.cc
resource_ptr<TextureGUI> resource::load<TextureGUI>(const char *name, unsigned int flags) { auto it = resource_map.find(name); if(it != resource_map.cend()) { // Return an existing resource return it->second; } unsigned int image_load_flags = 0U; if(flags & TEXTURE_GUI_LOAD_VFLIP) image_load_flags |= IMAGE_LOAD_FLIP; if(flags & TEXTURE_GUI_LOAD_GRAYSCALE) image_load_flags |= IMAGE_LOAD_GRAY; if(auto image = resource::load<Image>(name, image_load_flags)) { GLuint gl_texture; glGenTextures(1, &gl_texture); glBindTexture(GL_TEXTURE_2D, gl_texture); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, image->size.x, image->size.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, image->pixels); if(flags & TEXTURE_GUI_LOAD_CLAMP_S) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); if(flags & TEXTURE_GUI_LOAD_CLAMP_T) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); if(flags & TEXTURE_GUI_LOAD_LINEAR_MAG) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); if(flags & TEXTURE_GUI_LOAD_LINEAR_MIN) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); else glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); auto new_resource = std::make_shared<TextureGUI>(); new_resource->handle = static_cast<ImTextureID>(gl_texture); new_resource->size.x = image->size.x; new_resource->size.y = image->size.y; return resource_map.insert_or_assign(name, new_resource).first->second; } return nullptr; }
O1
cpp
std::shared_ptr<TextureGUI const> resource::load<TextureGUI>(char const*, unsigned int): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movl %edx, %ebp movq %rdi, %rbx leaq 0x18(%rsp), %rax movq %rsi, (%rax) leaq 0x1f0a90(%rip), %rdi # 0x25fbc8 movq %rax, %rsi callq 0x6fb16 cmpl 0x1f0aa2(%rip), %eax # 0x25fbe8 jne 0x6f2de movl %ebp, %eax shrl $0x3, %eax andl $0x2, %eax movl %ebp, %edx shrl $0x5, %edx andl $0x1, %edx orl %eax, %edx movq 0x18(%rsp), %rsi leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x131b18 cmpq $0x0, (%r14) je 0x6f31d leaq 0x1f2677(%rip), %rax # 0x2617f8 leaq 0x4(%rsp), %rsi movl $0x1, %edi callq *(%rax) leaq 0x1f238c(%rip), %rax # 0x261520 movl 0x4(%rsp), %esi movl $0xde1, %edi # imm = 0xDE1 callq *(%rax) leaq 0x1f2a62(%rip), %rax # 0x261c08 movq (%rax), %rax movq 0x8(%rsp), %r10 movl 0x8(%r10), %ecx movl 0xc(%r10), %r8d subq $0x8, %rsp movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl $0x8058, %edx # imm = 0x8058 xorl %r9d, %r9d pushq (%r10) pushq $0x1401 # imm = 0x1401 pushq $0x1908 # imm = 0x1908 callq *%rax addq $0x20, %rsp testb $0x1, %bpl leaq 0x1f2a61(%rip), %r15 # 0x261c48 movl $0x2901, %r12d # imm = 0x2901 movl $0x812f, %r14d # imm = 0x812F movl $0x812f, %edx # imm = 0x812F cmovel %r12d, %edx movl $0xde1, %edi # imm = 0xDE1 movl $0x2802, %esi # imm = 0x2802 callq *(%r15) testb $0x2, %bpl cmovel %r12d, %r14d movl $0xde1, %edi # imm = 0xDE1 movl $0x2803, %esi # imm = 0x2803 movl %r14d, %edx callq *(%r15) movl %ebp, %eax andl $0x4, %eax cmpl $0x1, %eax movl $0x2601, %r14d # imm = 0x2601 movl $0x2601, %edx # imm = 0x2601 sbbl $0x0, %edx movl $0xde1, %edi # imm = 0xDE1 movl $0x2800, %esi # imm = 0x2800 callq *(%r15) andl $0x8, %ebp cmpl $0x1, %ebp sbbl $0x0, %r14d movl $0xde1, %edi # imm = 0xDE1 movl $0x2801, %esi # imm = 0x2801 movl %r14d, %edx callq *(%r15) movl $0x20, %edi callq 0x268b0 movq %rax, %r14 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r14) leaq 0x1e6358(%rip), %rax # 0x2555d8 movq %rax, (%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%r14) movl 0x4(%rsp), %eax movq %rax, 0x10(%r14) movq 0x8(%rsp), %rax movl 0x8(%rax), %ecx movl %ecx, 0x18(%r14) movl 0xc(%rax), %eax movl %eax, 0x1c(%r14) movq 0x18(%rsp), %rsi leaq 0x30(%rsp), %rdi leaq 0x3(%rsp), %rdx callq 0x30012 movq %r14, %rax addq $0x10, %rax movq %rax, 0x20(%rsp) movq %r14, 0x28(%rsp) movq 0x1ebcc6(%rip), %r15 # 0x25af98 cmpb $0x0, (%r15) je 0x6f33d incl 0x8(%r14) jmp 0x6f342 cltq movq 0x1f08e9(%rip), %rcx # 0x25fbd0 leaq (%rax,%rax,2), %rax shlq $0x4, %rax movq 0x20(%rcx,%rax), %rdx movq %rdx, (%rbx) movq 0x28(%rcx,%rax), %rax movq %rax, 0x8(%rbx) testq %rax, %rax je 0x6f3bc movq 0x1ebc88(%rip), %rcx # 0x25af98 cmpb $0x0, (%rcx) je 0x6f337 incl 0x8(%rax) jmp 0x6f3bc movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x6f32c callq 0x2f77a xorps %xmm0, %xmm0 movups %xmm0, (%rbx) jmp 0x6f3bc lock incl 0x8(%rax) jmp 0x6f3bc lock incl 0x8(%r14) leaq 0x1f087f(%rip), %rdi # 0x25fbc8 leaq 0x30(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0x6fd56 movq 0x20(%rax), %rcx movq %rcx, (%rbx) movq 0x28(%rax), %rax movq %rax, 0x8(%rbx) testq %rax, %rax je 0x6f37b cmpb $0x0, (%r15) je 0x6f377 incl 0x8(%rax) jmp 0x6f37b lock incl 0x8(%rax) movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x6f38a callq 0x2f77a leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x6f3a5 movq 0x40(%rsp), %rsi incq %rsi callq 0x268d0 movq %r14, %rdi callq 0x2f77a movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x6f3bc callq 0x2f77a movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx movq %r14, %rdi callq 0x2f77a jmp 0x6f3de jmp 0x6f3db movq %rax, %rbx movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x6f3ed callq 0x2f77a movq %rbx, %rdi callq 0x26fe0
_ZN8resource4loadI10TextureGUIEESt10shared_ptrIKT_EPKcj: push rbp push r15 push r14 push r12 push rbx sub rsp, 50h mov ebp, edx mov rbx, rdi lea rax, [rsp+78h+var_60] mov [rax], rsi lea rdi, _ZL12resource_mapB5cxx11_0; resource_map mov rsi, rax call _ZNK7emhash87HashMapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIK10TextureGUIESt4hashIS6_ESt8equal_toIS6_EE16find_filled_slotIPKcEEjRKT_; emhash8::HashMap<std::string,std::shared_ptr<TextureGUI const>,std::hash<std::string>,std::equal_to<std::string>>::find_filled_slot<char const*>(char const* const&) cmp eax, dword ptr cs:qword_25FBE4+4 jnz loc_6F2DE mov eax, ebp shr eax, 3 and eax, 2 mov edx, ebp shr edx, 5 and edx, 1 or edx, eax mov rsi, [rsp+78h+var_60] lea r14, [rsp+78h+var_70] mov rdi, r14 call _ZN8resource4loadI5ImageEESt10shared_ptrIKT_EPKcj; resource::load<Image>(char const*,uint) cmp qword ptr [r14], 0 jz loc_6F31D lea rax, glad_glGenTextures lea rsi, [rsp+78h+var_74] mov edi, 1 call qword ptr [rax] lea rax, glad_glBindTexture mov esi, [rsp+78h+var_74] mov edi, 0DE1h call qword ptr [rax] lea rax, glad_glTexImage2D mov rax, [rax] mov r10, [rsp+78h+var_70] mov ecx, [r10+8] mov r8d, [r10+0Ch] sub rsp, 8 mov edi, 0DE1h xor esi, esi mov edx, 8058h xor r9d, r9d push qword ptr [r10] push 1401h push 1908h call rax add rsp, 20h test bpl, 1 lea r15, glad_glTexParameteri mov r12d, 2901h mov r14d, 812Fh mov edx, 812Fh cmovz edx, r12d mov edi, 0DE1h mov esi, 2802h call qword ptr [r15] test bpl, 2 cmovz r14d, r12d mov edi, 0DE1h mov esi, 2803h mov edx, r14d call qword ptr [r15] mov eax, ebp and eax, 4 cmp eax, 1 mov r14d, 2601h mov edx, 2601h sbb edx, 0 mov edi, 0DE1h mov esi, 2800h call qword ptr [r15] and ebp, 8 cmp ebp, 1 sbb r14d, 0 mov edi, 0DE1h mov esi, 2801h mov edx, r14d call qword ptr [r15] mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rax, 100000001h mov [r14+8], rax lea rax, off_2555D8 mov [r14], rax xorps xmm0, xmm0 movups xmmword ptr [r14+10h], xmm0 mov eax, [rsp+78h+var_74] mov [r14+10h], rax mov rax, [rsp+78h+var_70] mov ecx, [rax+8] mov [r14+18h], ecx mov eax, [rax+0Ch] mov [r14+1Ch], eax mov rsi, [rsp+78h+var_60] lea rdi, [rsp+78h+var_48] lea rdx, [rsp+78h+var_75] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rax, r14 add rax, 10h mov [rsp+78h+var_58], rax mov [rsp+78h+var_50], r14 mov r15, cs:__libc_single_threaded_ptr cmp byte ptr [r15], 0 jz short loc_6F33D inc dword ptr [r14+8] jmp short loc_6F342 loc_6F2DE: cdqe mov rcx, qword ptr cs:_ZL12resource_mapB5cxx11_0+8; resource_map lea rax, [rax+rax*2] shl rax, 4 mov rdx, [rcx+rax+20h] mov [rbx], rdx mov rax, [rcx+rax+28h] mov [rbx+8], rax test rax, rax jz loc_6F3BC mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_6F337 inc dword ptr [rax+8] jmp loc_6F3BC loc_6F31D: mov rdi, [rsp+78h+var_68] test rdi, rdi jz short loc_6F32C call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6F32C: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 jmp loc_6F3BC loc_6F337: lock inc dword ptr [rax+8] jmp short loc_6F3BC loc_6F33D: lock inc dword ptr [r14+8] loc_6F342: lea rdi, _ZL12resource_mapB5cxx11_0; resource_map lea rsi, [rsp+78h+var_48] lea rdx, [rsp+78h+var_58] call _ZN7emhash87HashMapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIK10TextureGUIESt4hashIS6_ESt8equal_toIS6_EE9do_assignIS6_SA_EESt4pairINSF_8iteratorEbEOT_OT0_; emhash8::HashMap<std::string,std::shared_ptr<TextureGUI const>,std::hash<std::string>,std::equal_to<std::string>>::do_assign<std::string,std::shared_ptr<TextureGUI const>>(std::string &&,std::shared_ptr<TextureGUI const> &&) mov rcx, [rax+20h] mov [rbx], rcx mov rax, [rax+28h] mov [rbx+8], rax test rax, rax jz short loc_6F37B cmp byte ptr [r15], 0 jz short loc_6F377 inc dword ptr [rax+8] jmp short loc_6F37B loc_6F377: lock inc dword ptr [rax+8] loc_6F37B: mov rdi, [rsp+78h+var_50] test rdi, rdi jz short loc_6F38A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6F38A: lea rax, [rsp+78h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_6F3A5 mov rsi, [rsp+78h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6F3A5: mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) mov rdi, [rsp+78h+var_68] test rdi, rdi jz short loc_6F3BC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6F3BC: mov rax, rbx add rsp, 50h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_6F3DE jmp short $+2 loc_6F3DB: mov rbx, rax loc_6F3DE: mov rdi, [rsp+arg_8] test rdi, rdi jz short loc_6F3ED call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6F3ED: mov rdi, rbx call __Unwind_Resume
_QWORD * resource::load<TextureGUI>(_QWORD *a1, long long a2, unsigned int a3) { int filled; // eax unsigned int v5; // r14d long long v6; // rdx long long v7; // r14 long long v8; // rax long long v9; // rcx long long v10; // rax long long v11; // rax long long v12; // rax long long v13; // rax unsigned int v15; // [rsp+4h] [rbp-74h] BYREF long long v16; // [rsp+8h] [rbp-70h] BYREF volatile signed __int32 *v17; // [rsp+10h] [rbp-68h] long long v18; // [rsp+18h] [rbp-60h] BYREF long long v19; // [rsp+20h] [rbp-58h] BYREF volatile signed __int32 *v20; // [rsp+28h] [rbp-50h] void *v21[2]; // [rsp+30h] [rbp-48h] BYREF long long v22; // [rsp+40h] [rbp-38h] BYREF v18 = a2; filled = emhash8::HashMap<std::string,std::shared_ptr<TextureGUI const>,std::hash<std::string>,std::equal_to<std::string>>::find_filled_slot<char const*>( &resource_map[abi:cxx11], &v18); if ( filled == HIDWORD(qword_25FBE4) ) { resource::load<Image>(&v16, v18, (a3 >> 3) & 2 | (a3 >> 5) & 1); if ( v16 ) { glad_glGenTextures(1LL, &v15); glad_glBindTexture(3553LL, v15); glad_glTexImage2D( 3553LL, 0LL, 32856LL, *(unsigned int *)(v16 + 8), *(unsigned int *)(v16 + 12), 0LL, 6408LL, 5121LL, *(_QWORD *)v16); v5 = 33071; v6 = 33071LL; if ( (a3 & 1) == 0 ) v6 = 10497LL; glad_glTexParameteri(3553LL, 10242LL, v6); if ( (a3 & 2) == 0 ) v5 = 10497; glad_glTexParameteri(3553LL, 10243LL, v5); glad_glTexParameteri(3553LL, 10240LL, ((a3 & 4 | 0x260100000000uLL) - 1) >> 32); glad_glTexParameteri(3553LL, 10241LL, ((a3 & 8 | 0x260100000000uLL) - 1) >> 32); v7 = operator new(0x20uLL); *(_QWORD *)(v7 + 8) = 0x100000001LL; *(_QWORD *)v7 = off_2555D8; *(_OWORD *)(v7 + 16) = 0LL; *(_QWORD *)(v7 + 16) = v15; v8 = v16; *(_DWORD *)(v7 + 24) = *(_DWORD *)(v16 + 8); *(_DWORD *)(v7 + 28) = *(_DWORD *)(v8 + 12); std::string::basic_string<std::allocator<char>>(v21, v18); v19 = v7 + 16; v20 = (volatile signed __int32 *)v7; if ( _libc_single_threaded ) ++*(_DWORD *)(v7 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v7 + 8)); v12 = emhash8::HashMap<std::string,std::shared_ptr<TextureGUI const>,std::hash<std::string>,std::equal_to<std::string>>::do_assign<std::string,std::shared_ptr<TextureGUI const>>( &resource_map[abi:cxx11], v21, &v19); *a1 = *(_QWORD *)(v12 + 32); v13 = *(_QWORD *)(v12 + 40); a1[1] = v13; if ( v13 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v13 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v13 + 8)); } if ( v20 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v20); if ( v21[0] != &v22 ) operator delete(v21[0], v22 + 1); std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release((volatile signed __int32 *)v7); if ( v17 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17); } else { if ( v17 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17); *(_OWORD *)a1 = 0LL; } } else { v9 = *((_QWORD *)&resource_map[abi:cxx11] + 1); v10 = 48LL * filled; *a1 = *(_QWORD *)(*((_QWORD *)&resource_map[abi:cxx11] + 1) + v10 + 32); v11 = *(_QWORD *)(v9 + v10 + 40); a1[1] = v11; if ( v11 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v11 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v11 + 8)); } } return a1; }
load<TextureGUI>: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x50 MOV EBP,EDX MOV RBX,RDI LEA RAX,[RSP + 0x18] MOV qword ptr [RAX],RSI LEA RDI,[0x35fbc8] MOV RSI,RAX CALL 0x0016fb16 CMP EAX,dword ptr [0x0035fbe8] JNZ 0x0016f2de MOV EAX,EBP SHR EAX,0x3 AND EAX,0x2 MOV EDX,EBP SHR EDX,0x5 AND EDX,0x1 OR EDX,EAX MOV RSI,qword ptr [RSP + 0x18] LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00231b18 CMP qword ptr [R14],0x0 JZ 0x0016f31d LEA RAX,[0x3617f8] LAB_0016f181: LEA RSI,[RSP + 0x4] MOV EDI,0x1 CALL qword ptr [RAX] LEA RAX,[0x361520] MOV ESI,dword ptr [RSP + 0x4] MOV EDI,0xde1 CALL qword ptr [RAX] LEA RAX,[0x361c08] MOV RAX,qword ptr [RAX] MOV R10,qword ptr [RSP + 0x8] MOV ECX,dword ptr [R10 + 0x8] MOV R8D,dword ptr [R10 + 0xc] SUB RSP,0x8 MOV EDI,0xde1 XOR ESI,ESI MOV EDX,0x8058 XOR R9D,R9D PUSH qword ptr [R10] PUSH 0x1401 PUSH 0x1908 CALL RAX ADD RSP,0x20 TEST BPL,0x1 LEA R15,[0x361c48] MOV R12D,0x2901 MOV R14D,0x812f MOV EDX,0x812f CMOVZ EDX,R12D MOV EDI,0xde1 MOV ESI,0x2802 CALL qword ptr [R15] TEST BPL,0x2 CMOVZ R14D,R12D MOV EDI,0xde1 MOV ESI,0x2803 MOV EDX,R14D CALL qword ptr [R15] MOV EAX,EBP AND EAX,0x4 CMP EAX,0x1 MOV R14D,0x2601 MOV EDX,0x2601 SBB EDX,0x0 MOV EDI,0xde1 MOV ESI,0x2800 CALL qword ptr [R15] AND EBP,0x8 CMP EBP,0x1 SBB R14D,0x0 MOV EDI,0xde1 MOV ESI,0x2801 MOV EDX,R14D CALL qword ptr [R15] LAB_0016f25e: MOV EDI,0x20 CALL 0x001268b0 MOV R14,RAX MOV RAX,0x100000001 MOV qword ptr [R14 + 0x8],RAX LEA RAX,[0x3555d8] MOV qword ptr [R14],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOV EAX,dword ptr [RSP + 0x4] MOV qword ptr [R14 + 0x10],RAX MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x8] MOV dword ptr [R14 + 0x18],ECX MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [R14 + 0x1c],EAX MOV RSI,qword ptr [RSP + 0x18] LAB_0016f2ab: LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0x3] CALL 0x00130012 LAB_0016f2ba: MOV RAX,R14 ADD RAX,0x10 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],R14 MOV R15,qword ptr [0x0035af98] CMP byte ptr [R15],0x0 JZ 0x0016f33d INC dword ptr [R14 + 0x8] JMP 0x0016f342 LAB_0016f2de: CDQE MOV RCX,qword ptr [0x0035fbd0] LEA RAX,[RAX + RAX*0x2] SHL RAX,0x4 MOV RDX,qword ptr [RCX + RAX*0x1 + 0x20] MOV qword ptr [RBX],RDX MOV RAX,qword ptr [RCX + RAX*0x1 + 0x28] MOV qword ptr [RBX + 0x8],RAX TEST RAX,RAX JZ 0x0016f3bc MOV RCX,qword ptr [0x0035af98] CMP byte ptr [RCX],0x0 JZ 0x0016f337 INC dword ptr [RAX + 0x8] JMP 0x0016f3bc LAB_0016f31d: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0016f32c CALL 0x0012f77a LAB_0016f32c: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 JMP 0x0016f3bc LAB_0016f337: INC.LOCK dword ptr [RAX + 0x8] JMP 0x0016f3bc LAB_0016f33d: INC.LOCK dword ptr [R14 + 0x8] LAB_0016f342: LEA RDI,[0x35fbc8] LEA RSI,[RSP + 0x30] LEA RDX,[RSP + 0x20] CALL 0x0016fd56 MOV RCX,qword ptr [RAX + 0x20] MOV qword ptr [RBX],RCX MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBX + 0x8],RAX TEST RAX,RAX JZ 0x0016f37b CMP byte ptr [R15],0x0 JZ 0x0016f377 INC dword ptr [RAX + 0x8] JMP 0x0016f37b LAB_0016f377: INC.LOCK dword ptr [RAX + 0x8] LAB_0016f37b: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x0016f38a CALL 0x0012f77a LAB_0016f38a: LEA RAX,[RSP + 0x40] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0016f3a5 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x001268d0 LAB_0016f3a5: MOV RDI,R14 CALL 0x0012f77a MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0016f3bc CALL 0x0012f77a LAB_0016f3bc: MOV RAX,RBX ADD RSP,0x50 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* std::shared_ptr<TextureGUI const> resource::load<TextureGUI>(char const*, unsigned int) */ resource * __thiscall resource::load<TextureGUI>(resource *this,char *param_1,uint param_2) { int *puVar1; uint uVar2; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00; long lVar3; int8 uVar4; int4 uVar5; allocator local_75; uint local_74; int8 *local_70; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68; char *local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; long *local_48 [2]; long local_38 [2]; local_60 = param_1; uVar2 = emhash8:: HashMap<std::__cxx11::string,std::shared_ptr<TextureGUI_const>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>> ::find_filled_slot<char_const*> ((HashMap<std::__cxx11::string,std::shared_ptr<TextureGUI_const>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>> *)resource_map_abi_cxx11_,&local_60); uVar4 = resource_map_abi_cxx11_._8_8_; if (uVar2 == resource_map_abi_cxx11_._32_4_) { load<Image>((resource *)&local_70,local_60,param_2 >> 5 & 1 | param_2 >> 3 & 2); if (local_70 == (int8 *)0x0) { if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68); } *(int8 *)this = 0; *(int8 *)(this + 8) = 0; } else { /* try { // try from 0016f181 to 0016f25d has its CatchHandler @ 0016f3db */ (*glad_glGenTextures)(1,&local_74); (*glad_glBindTexture)(0xde1,local_74); (*glad_glTexImage2D) (0xde1,0,0x8058,*(int4 *)(local_70 + 1),*(int4 *)((long)local_70 + 0xc), 0,0x1908,0x1401,*local_70); uVar4 = 0x812f; if ((param_2 & 1) == 0) { uVar4 = 0x2901; } (*glad_glTexParameteri)(0xde1,0x2802,uVar4); uVar5 = 0x812f; if ((param_2 & 2) == 0) { uVar5 = 0x2901; } (*glad_glTexParameteri)(0xde1,0x2803,uVar5); (*glad_glTexParameteri)(0xde1,0x2800,0x2601 - (uint)((param_2 & 4) == 0)); (*glad_glTexParameteri)(0xde1,0x2801,0x2601 - (uint)((param_2 & 8) == 0)); /* try { // try from 0016f25e to 0016f267 has its CatchHandler @ 0016f3d9 */ this_00 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x20); *(int8 *)(this_00 + 8) = 0x100000001; *(int ***)this_00 = &PTR___Sp_counted_ptr_inplace_003555d8; *(int8 *)(this_00 + 0x10) = 0; *(int8 *)(this_00 + 0x18) = 0; *(ulong *)(this_00 + 0x10) = (ulong)local_74; *(int4 *)(this_00 + 0x18) = *(int4 *)(local_70 + 1); *(int4 *)(this_00 + 0x1c) = *(int4 *)((long)local_70 + 0xc); /* try { // try from 0016f2ab to 0016f2b9 has its CatchHandler @ 0016f3cc */ std::__cxx11::string::string<std::allocator<char>>((string *)local_48,local_60,&local_75); puVar1 = PTR___libc_single_threaded_0035af98; local_58 = this_00 + 0x10; if (*PTR___libc_single_threaded_0035af98 == '\0') { LOCK(); *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; UNLOCK(); } else { *(int *)(this_00 + 8) = *(int *)(this_00 + 8) + 1; } local_50 = this_00; lVar3 = emhash8:: HashMap<std::__cxx11::string,std::shared_ptr<TextureGUI_const>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>> ::do_assign<std::__cxx11::string,std::shared_ptr<TextureGUI_const>> ((HashMap<std::__cxx11::string,std::shared_ptr<TextureGUI_const>,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>> *)resource_map_abi_cxx11_,(string *)local_48,(shared_ptr *)&local_58); *(int8 *)this = *(int8 *)(lVar3 + 0x20); lVar3 = *(long *)(lVar3 + 0x28); *(long *)(this + 8) = lVar3; if (lVar3 != 0) { if (*puVar1 == '\0') { LOCK(); *(int *)(lVar3 + 8) = *(int *)(lVar3 + 8) + 1; UNLOCK(); } else { *(int *)(lVar3 + 8) = *(int *)(lVar3 + 8) + 1; } } if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } if (local_48[0] != local_38) { operator_delete(local_48[0],local_38[0] + 1); } std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00); if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68); } } } else { *(int8 *)this = *(int8 *)(resource_map_abi_cxx11_._8_8_ + 0x20 + (long)(int)uVar2 * 0x30); lVar3 = *(long *)(uVar4 + 0x28 + (long)(int)uVar2 * 0x30); *(long *)(this + 8) = lVar3; if (lVar3 != 0) { if (*PTR___libc_single_threaded_0035af98 == '\0') { LOCK(); *(int *)(lVar3 + 8) = *(int *)(lVar3 + 8) + 1; UNLOCK(); } else { *(int *)(lVar3 + 8) = *(int *)(lVar3 + 8) + 1; } } } return this; }
7,064
fmt::v10::appender fmt::v10::detail::write_escaped_char<char, fmt::v10::appender>(fmt::v10::appender, char)
aimrt_mujoco_sim/_deps/fmt-src/include/fmt/format.h
auto write_escaped_char(OutputIt out, Char v) -> OutputIt { Char v_array[1] = {v}; *out++ = static_cast<Char>('\''); if ((needs_escape(static_cast<uint32_t>(v)) && v != static_cast<Char>('"')) || v == static_cast<Char>('\'')) { out = write_escaped_cp(out, find_escape_result<Char>{v_array, v_array + 1, static_cast<uint32_t>(v)}); } else { *out++ = v; } *out++ = static_cast<Char>('\''); return out; }
O3
c
fmt::v10::appender fmt::v10::detail::write_escaped_char<char, fmt::v10::appender>(fmt::v10::appender, char): pushq %rbp pushq %r14 pushq %rbx subq $0x20, %rsp movl %esi, %ebp movq %rdi, %rbx movb %bpl, 0x7(%rsp) movq 0x10(%rdi), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rdi) jae 0x27dbd movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb $0x27, (%rcx,%rax) movsbl %bpl, %r14d movb $0x1, %al cmpb $0x20, %bpl jae 0x27e71 cmpb $0x22, %bpl setne %cl cmpb $0x27, %bpl je 0x27e16 andb %al, %cl jne 0x27e16 movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x27e08 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb %bpl, (%rcx,%rax) jmp 0x27e3b leaq 0x7(%rsp), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) leaq 0x8(%rsp), %rax movq %rax, 0x8(%rsi) movl %r14d, 0x10(%rsi) movq %rbx, %rdi callq 0x27e9e movq %rax, %rbx movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi cmpq %rsi, 0x18(%rbx) jae 0x27e59 movq (%rbx), %rax movq %rbx, %rdi callq *(%rax) movq 0x10(%rbx), %rax leaq 0x1(%rax), %rsi movq 0x8(%rbx), %rcx movq %rsi, 0x10(%rbx) movb $0x27, (%rcx,%rax) movq %rbx, %rax addq $0x20, %rsp popq %rbx popq %r14 popq %rbp retq cmpl $0x22, %r14d je 0x27dd9 cmpl $0x5c, %r14d je 0x27dd9 cmpl $0x7f, %r14d je 0x27dd9 movl %r14d, %edi callq 0x28043 xorb $0x1, %al jmp 0x27dd9
_ZN3fmt3v106detail18write_escaped_charIcNS0_8appenderEEET0_S4_T_: push rbp push r14 push rbx sub rsp, 20h mov ebp, esi mov rbx, rdi mov [rsp+38h+var_31], bpl mov rax, [rdi+10h] lea rsi, [rax+1] cmp [rdi+18h], rsi jnb short loc_27DBD mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1]; unsigned int loc_27DBD: mov rcx, [rbx+8] mov [rbx+10h], rsi mov byte ptr [rcx+rax], 27h ; ''' movsx r14d, bpl mov al, 1 cmp bpl, 20h ; ' ' jnb loc_27E71 loc_27DD9: cmp bpl, 22h ; '"' setnz cl cmp bpl, 27h ; ''' jz short loc_27E16 and cl, al jnz short loc_27E16 mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_27E08 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_27E08: mov rcx, [rbx+8] mov [rbx+10h], rsi mov [rcx+rax], bpl jmp short loc_27E3B loc_27E16: lea rax, [rsp+38h+var_31] lea rsi, [rsp+38h+var_30] mov [rsi], rax lea rax, [rsp+38h+var_30] mov [rsi+8], rax mov [rsi+10h], r14d mov rdi, rbx call _ZN3fmt3v106detail16write_escaped_cpINS0_8appenderEcEET_S4_RKNS1_18find_escape_resultIT0_EE; fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(fmt::v10::appender,fmt::v10::detail::find_escape_result<char> const&) mov rbx, rax loc_27E3B: mov rax, [rbx+10h] lea rsi, [rax+1] cmp [rbx+18h], rsi jnb short loc_27E59 mov rax, [rbx] mov rdi, rbx call qword ptr [rax] mov rax, [rbx+10h] lea rsi, [rax+1] loc_27E59: mov rcx, [rbx+8] mov [rbx+10h], rsi mov byte ptr [rcx+rax], 27h ; ''' mov rax, rbx add rsp, 20h pop rbx pop r14 pop rbp retn loc_27E71: cmp r14d, 22h ; '"' jz loc_27DD9 cmp r14d, 5Ch ; '\' jz loc_27DD9 cmp r14d, 7Fh jz loc_27DD9 mov edi, r14d; this call _ZN3fmt3v106detail12is_printableEj; fmt::v10::detail::is_printable(uint) xor al, 1 jmp loc_27DD9
long long fmt::v10::detail::write_escaped_char<char,fmt::v10::appender>( long long a1, unsigned __int8 a2, long long a3) { long long v4; // rbx long long v5; // rax long long v6; // rsi long long v7; // rcx char v8; // al long long v9; // rax long long v10; // rsi long long v11; // rcx long long v12; // rax long long v13; // rsi long long v14; // rcx unsigned __int8 v16; // [rsp+7h] [rbp-31h] BYREF _QWORD v17[2]; // [rsp+8h] [rbp-30h] BYREF int v18; // [rsp+18h] [rbp-20h] v4 = a1; v16 = a2; v5 = *(_QWORD *)(a1 + 16); v6 = v5 + 1; if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v5 + 1) ) { (**(void ( ***)(long long))a1)(a1); v5 = *(_QWORD *)(a1 + 16); v6 = v5 + 1; } v7 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 16) = v6; *(_BYTE *)(v7 + v5) = 39; v8 = 1; if ( a2 >= 0x20u && a2 != 34 && a2 != 92 && a2 != 127 ) v8 = fmt::v10::detail::is_printable((fmt::v10::detail *)(unsigned int)(char)a2, v6) ^ 1; LOBYTE(v7) = a2 != 34; if ( a2 == 39 || (LOBYTE(v7) = v8 & v7, (_BYTE)v7) ) { v17[0] = &v16; v17[1] = v17; v18 = (char)a2; v4 = fmt::v10::detail::write_escaped_cp<fmt::v10::appender,char>(a1, v17, a3, v7); } else { v9 = *(_QWORD *)(a1 + 16); v10 = v9 + 1; if ( *(_QWORD *)(a1 + 24) < (unsigned long long)(v9 + 1) ) { (**(void ( ***)(long long))a1)(a1); v9 = *(_QWORD *)(a1 + 16); v10 = v9 + 1; } v11 = *(_QWORD *)(a1 + 8); *(_QWORD *)(a1 + 16) = v10; *(_BYTE *)(v11 + v9) = a2; } v12 = *(_QWORD *)(v4 + 16); v13 = v12 + 1; if ( *(_QWORD *)(v4 + 24) < (unsigned long long)(v12 + 1) ) { (**(void ( ***)(long long))v4)(v4); v12 = *(_QWORD *)(v4 + 16); v13 = v12 + 1; } v14 = *(_QWORD *)(v4 + 8); *(_QWORD *)(v4 + 16) = v13; *(_BYTE *)(v14 + v12) = 39; return v4; }
write_escaped_char<char,fmt::v10::appender>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x20 MOV EBP,ESI MOV RBX,RDI MOV byte ptr [RSP + 0x7],BPL MOV RAX,qword ptr [RDI + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RDI + 0x18],RSI JNC 0x00127dbd MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00127dbd: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],0x27 MOVSX R14D,BPL MOV AL,0x1 CMP BPL,0x20 JNC 0x00127e71 LAB_00127dd9: CMP BPL,0x22 SETNZ CL CMP BPL,0x27 JZ 0x00127e16 AND CL,AL JNZ 0x00127e16 MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00127e08 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00127e08: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],BPL JMP 0x00127e3b LAB_00127e16: LEA RAX,[RSP + 0x7] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX LEA RAX,[RSP + 0x8] MOV qword ptr [RSI + 0x8],RAX MOV dword ptr [RSI + 0x10],R14D MOV RDI,RBX CALL 0x00127e9e MOV RBX,RAX LAB_00127e3b: MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] CMP qword ptr [RBX + 0x18],RSI JNC 0x00127e59 MOV RAX,qword ptr [RBX] MOV RDI,RBX CALL qword ptr [RAX] MOV RAX,qword ptr [RBX + 0x10] LEA RSI,[RAX + 0x1] LAB_00127e59: MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x10],RSI MOV byte ptr [RCX + RAX*0x1],0x27 MOV RAX,RBX ADD RSP,0x20 POP RBX POP R14 POP RBP RET LAB_00127e71: CMP R14D,0x22 JZ 0x00127dd9 CMP R14D,0x5c JZ 0x00127dd9 CMP R14D,0x7f JZ 0x00127dd9 MOV EDI,R14D CALL 0x00128043 XOR AL,0x1 JMP 0x00127dd9
/* fmt::v10::appender fmt::v10::detail::write_escaped_char<char, fmt::v10::appender>(fmt::v10::appender, char) */ int8 * fmt::v10::detail::write_escaped_char<char,fmt::v10::appender>(int8 *param_1,byte param_2) { byte bVar1; long lVar2; ulong uVar3; uint uVar4; byte local_31; byte *local_30; int1 **local_28; uint local_20; lVar2 = param_1[2]; uVar3 = lVar2 + 1; local_31 = param_2; if ((ulong)param_1[3] < uVar3) { (**(code **)*param_1)(param_1); lVar2 = param_1[2]; uVar3 = lVar2 + 1; } param_1[2] = uVar3; *(int1 *)(param_1[1] + lVar2) = 0x27; uVar4 = (uint)(char)param_2; bVar1 = 1; if ((((0x1f < param_2) && (uVar4 != 0x22)) && (uVar4 != 0x5c)) && (uVar4 != 0x7f)) { bVar1 = is_printable(uVar4); bVar1 = bVar1 ^ 1; } if ((param_2 == 0x27) || ((param_2 != 0x22 & bVar1) != 0)) { local_30 = &local_31; local_28 = &local_30; local_20 = uVar4; param_1 = (int8 *)write_escaped_cp<fmt::v10::appender,char>(param_1); } else { lVar2 = param_1[2]; uVar3 = lVar2 + 1; if ((ulong)param_1[3] < uVar3) { (**(code **)*param_1)(param_1); lVar2 = param_1[2]; uVar3 = lVar2 + 1; } param_1[2] = uVar3; *(byte *)(param_1[1] + lVar2) = param_2; } lVar2 = param_1[2]; uVar3 = lVar2 + 1; if ((ulong)param_1[3] < uVar3) { (**(code **)*param_1)(param_1); lVar2 = param_1[2]; uVar3 = lVar2 + 1; } param_1[2] = uVar3; *(int1 *)(param_1[1] + lVar2) = 0x27; return param_1; }
7,065
js_parse_from_clause
bluesky950520[P]quickjs/quickjs.c
static __exception JSAtom js_parse_from_clause(JSParseState *s) { JSAtom module_name; if (!token_is_pseudo_keyword(s, JS_ATOM_from)) { js_parse_error(s, "from clause expected"); return JS_ATOM_NULL; } if (next_token(s)) return JS_ATOM_NULL; if (s->token.val != TOK_STRING) { js_parse_error(s, "string expected"); return JS_ATOM_NULL; } module_name = JS_ValueToAtom(s->ctx, s->token.u.str.str); if (module_name == JS_ATOM_NULL) return JS_ATOM_NULL; if (next_token(s)) { JS_FreeAtom(s->ctx, module_name); return JS_ATOM_NULL; } return module_name; }
O0
c
js_parse_from_clause: subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rdi movl $0x7b, %esi callq 0x9e640 cmpl $0x0, %eax jne 0xb00bd movq 0x8(%rsp), %rdi leaq 0x5eb29(%rip), %rsi # 0x10ebd2 movb $0x0, %al callq 0x473d0 movl $0x0, 0x14(%rsp) jmp 0xb0162 movq 0x8(%rsp), %rdi callq 0x9bd00 cmpl $0x0, %eax je 0xb00d9 movl $0x0, 0x14(%rsp) jmp 0xb0162 movq 0x8(%rsp), %rax cmpl $-0x7f, 0x20(%rax) je 0xb0101 movq 0x8(%rsp), %rdi leaq 0x5cc6a(%rip), %rsi # 0x10cd5a movb $0x0, %al callq 0x473d0 movl $0x0, 0x14(%rsp) jmp 0xb0162 movq 0x8(%rsp), %rax movq (%rax), %rdi movq 0x8(%rsp), %rax movq 0x38(%rax), %rsi movq 0x40(%rax), %rdx callq 0x2ff40 movl %eax, 0x4(%rsp) cmpl $0x0, 0x4(%rsp) jne 0xb0130 movl $0x0, 0x14(%rsp) jmp 0xb0162 movq 0x8(%rsp), %rdi callq 0x9bd00 cmpl $0x0, %eax je 0xb015a movq 0x8(%rsp), %rax movq (%rax), %rdi movl 0x4(%rsp), %esi callq 0x27d80 movl $0x0, 0x14(%rsp) jmp 0xb0162 movl 0x4(%rsp), %eax movl %eax, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax,%rax)
js_parse_from_clause: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rdi, [rsp+18h+var_10] mov esi, 7Bh ; '{' call token_is_pseudo_keyword cmp eax, 0 jnz short loc_B00BD mov rdi, [rsp+18h+var_10] lea rsi, aFromClauseExpe; "from clause expected" mov al, 0 call js_parse_error mov [rsp+18h+var_4], 0 jmp loc_B0162 loc_B00BD: mov rdi, [rsp+18h+var_10] call next_token cmp eax, 0 jz short loc_B00D9 mov [rsp+18h+var_4], 0 jmp loc_B0162 loc_B00D9: mov rax, [rsp+18h+var_10] cmp dword ptr [rax+20h], 0FFFFFF81h jz short loc_B0101 mov rdi, [rsp+18h+var_10] lea rsi, aStringExpected; "string expected" mov al, 0 call js_parse_error mov [rsp+18h+var_4], 0 jmp short loc_B0162 loc_B0101: mov rax, [rsp+18h+var_10] mov rdi, [rax] mov rax, [rsp+18h+var_10] mov rsi, [rax+38h] mov rdx, [rax+40h] call JS_ValueToAtom mov [rsp+18h+var_14], eax cmp [rsp+18h+var_14], 0 jnz short loc_B0130 mov [rsp+18h+var_4], 0 jmp short loc_B0162 loc_B0130: mov rdi, [rsp+18h+var_10] call next_token cmp eax, 0 jz short loc_B015A mov rax, [rsp+18h+var_10] mov rdi, [rax] mov esi, [rsp+18h+var_14] call JS_FreeAtom mov [rsp+18h+var_4], 0 jmp short loc_B0162 loc_B015A: mov eax, [rsp+18h+var_14] mov [rsp+18h+var_4], eax loc_B0162: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long js_parse_from_clause( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9) { long long v9; // rdx long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 long long v15; // rdx long long v16; // rcx long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 double v21; // xmm4_8 double v22; // xmm5_8 char v24; // [rsp+0h] [rbp-18h] unsigned int v25; // [rsp+4h] [rbp-14h] if ( (unsigned int)token_is_pseudo_keyword((_DWORD *)a1, 123) ) { if ( (unsigned int)next_token( (long long *)a1, a2, a3, a4, a5, *(double *)v13.m128_u64, *(double *)v14.m128_u64, a8, a9) ) { return 0; } else if ( *(_DWORD *)(a1 + 32) == -127 ) { v25 = JS_ValueToAtom(*(_QWORD *)a1, *(_QWORD *)(a1 + 56), *(_QWORD *)(a1 + 64)); if ( v25 ) { if ( (unsigned int)next_token((long long *)a1, a2, a3, a4, a5, v21, v22, a8, a9) ) { JS_FreeAtom(*(_QWORD *)a1, v25); return 0; } else { return v25; } } else { return 0; } } else { js_parse_error( (_QWORD *)a1, (long long)"string expected", v15, v16, v17, v18, a2, a3, a4, a5, v19, v20, a8, a9, v24); return 0; } } else { js_parse_error( (_QWORD *)a1, (long long)"from clause expected", v9, v10, v11, v12, a2, a3, a4, a5, v13, v14, a8, a9, v24); return 0; } }
js_parse_from_clause: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x7b CALL 0x0019e640 CMP EAX,0x0 JNZ 0x001b00bd MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x20ebd2] MOV AL,0x0 CALL 0x001473d0 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b0162 LAB_001b00bd: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019bd00 CMP EAX,0x0 JZ 0x001b00d9 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b0162 LAB_001b00d9: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX + 0x20],-0x7f JZ 0x001b0101 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[0x20cd5a] MOV AL,0x0 CALL 0x001473d0 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b0162 LAB_001b0101: MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX + 0x38] MOV RDX,qword ptr [RAX + 0x40] CALL 0x0012ff40 MOV dword ptr [RSP + 0x4],EAX CMP dword ptr [RSP + 0x4],0x0 JNZ 0x001b0130 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b0162 LAB_001b0130: MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019bd00 CMP EAX,0x0 JZ 0x001b015a MOV RAX,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RSP + 0x4] CALL 0x00127d80 MOV dword ptr [RSP + 0x14],0x0 JMP 0x001b0162 LAB_001b015a: MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP + 0x14],EAX LAB_001b0162: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
int js_parse_from_clause(int8 *param_1) { int iVar1; int local_4; iVar1 = token_is_pseudo_keyword(param_1,0x7b); if (iVar1 == 0) { js_parse_error(param_1,"from clause expected"); local_4 = 0; } else { iVar1 = next_token(param_1); if (iVar1 == 0) { if (*(int *)(param_1 + 4) == -0x7f) { local_4 = JS_ValueToAtom(*param_1,param_1[7],param_1[8]); if (local_4 == 0) { local_4 = 0; } else { iVar1 = next_token(param_1); if (iVar1 != 0) { JS_FreeAtom(*param_1,local_4); local_4 = 0; } } } else { js_parse_error(param_1,"string expected"); local_4 = 0; } } else { local_4 = 0; } } return local_4; }
7,066
js_parse_from_clause
bluesky950520[P]quickjs/quickjs.c
static __exception JSAtom js_parse_from_clause(JSParseState *s) { JSAtom module_name; if (!token_is_pseudo_keyword(s, JS_ATOM_from)) { js_parse_error(s, "from clause expected"); return JS_ATOM_NULL; } if (next_token(s)) return JS_ATOM_NULL; if (s->token.val != TOK_STRING) { js_parse_error(s, "string expected"); return JS_ATOM_NULL; } module_name = JS_ValueToAtom(s->ctx, s->token.u.str.str); if (module_name == JS_ATOM_NULL) return JS_ATOM_NULL; if (next_token(s)) { JS_FreeAtom(s->ctx, module_name); return JS_ATOM_NULL; } return module_name; }
O1
c
js_parse_from_clause: pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 cmpl $-0x7d, 0x20(%rdi) jne 0x6bc37 cmpl $0x7b, 0x38(%r14) jne 0x6bc37 cmpl $0x0, 0x3c(%r14) je 0x6bc51 leaq 0x33f98(%rip), %rsi # 0x9fbd6 xorl %ebx, %ebx movq %r14, %rdi xorl %eax, %eax callq 0x2f0d5 movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq movq %r14, %rdi callq 0x5c5bb xorl %ebx, %ebx testl %eax, %eax jne 0x6bc4a cmpl $-0x7f, 0x20(%r14) jne 0x6bc94 movq (%r14), %rdi movq 0x38(%r14), %rsi movq 0x40(%r14), %rdx callq 0x2347f testl %eax, %eax je 0x6bc4a movl %eax, %ebp movq %r14, %rdi callq 0x5c5bb testl %eax, %eax je 0x6bc9d movq (%r14), %rdi movl %ebp, %esi callq 0x1fbc4 jmp 0x6bc4a leaq 0x320c3(%rip), %rsi # 0x9dd5e jmp 0x6bc3e movl %ebp, %ebx jmp 0x6bc4a
js_parse_from_clause: push rbp push r14 push rbx mov r14, rdi cmp dword ptr [rdi+20h], 0FFFFFF83h jnz short loc_6BC37 cmp dword ptr [r14+38h], 7Bh ; '{' jnz short loc_6BC37 cmp dword ptr [r14+3Ch], 0 jz short loc_6BC51 loc_6BC37: lea rsi, aFromClauseExpe; "from clause expected" loc_6BC3E: xor ebx, ebx mov rdi, r14 xor eax, eax call js_parse_error loc_6BC4A: mov eax, ebx pop rbx pop r14 pop rbp retn loc_6BC51: mov rdi, r14 call next_token xor ebx, ebx test eax, eax jnz short loc_6BC4A cmp dword ptr [r14+20h], 0FFFFFF81h jnz short loc_6BC94 mov rdi, [r14] mov rsi, [r14+38h] mov rdx, [r14+40h] call JS_ValueToAtom test eax, eax jz short loc_6BC4A mov ebp, eax mov rdi, r14 call next_token test eax, eax jz short loc_6BC9D mov rdi, [r14] mov esi, ebp call JS_FreeAtom jmp short loc_6BC4A loc_6BC94: lea rsi, aStringExpected; "string expected" jmp short loc_6BC3E loc_6BC9D: mov ebx, ebp jmp short loc_6BC4A
long long js_parse_from_clause( 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) { const char *v14; // rsi unsigned int v15; // ebx long long v17; // rsi unsigned int v18; // eax long long v19; // rdx long long v20; // rcx long long v21; // r8 long long v22; // r9 __m128 v23; // xmm4 __m128 v24; // xmm5 unsigned int v25; // ebp char v26; // [rsp+0h] [rbp-18h] if ( *(_DWORD *)(a1 + 32) != -125 || *(_DWORD *)(a1 + 56) != 123 || *(_DWORD *)(a1 + 60) ) { v14 = "from clause expected"; LABEL_5: v15 = 0; js_parse_error((long long *)a1, (long long)v14, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v26); return v15; } v15 = 0; if ( (unsigned int)next_token(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6) ) return v15; if ( *(_DWORD *)(a1 + 32) != -127 ) { v14 = "string expected"; goto LABEL_5; } v17 = *(_QWORD *)(a1 + 56); v18 = JS_ValueToAtom(*(_QWORD *)a1, v17, *(_QWORD *)(a1 + 64)); if ( v18 ) { v25 = v18; if ( (unsigned int)next_token(a1, a7, a8, a9, a10, v23, v24, a13, a14, v17, v19, v20, v21, v22) ) JS_FreeAtom(*(_QWORD *)a1, v25); else return v25; } return v15; }
js_parse_from_clause: PUSH RBP PUSH R14 PUSH RBX MOV R14,RDI CMP dword ptr [RDI + 0x20],-0x7d JNZ 0x0016bc37 CMP dword ptr [R14 + 0x38],0x7b JNZ 0x0016bc37 CMP dword ptr [R14 + 0x3c],0x0 JZ 0x0016bc51 LAB_0016bc37: LEA RSI,[0x19fbd6] LAB_0016bc3e: XOR EBX,EBX MOV RDI,R14 XOR EAX,EAX CALL 0x0012f0d5 LAB_0016bc4a: MOV EAX,EBX POP RBX POP R14 POP RBP RET LAB_0016bc51: MOV RDI,R14 CALL 0x0015c5bb XOR EBX,EBX TEST EAX,EAX JNZ 0x0016bc4a CMP dword ptr [R14 + 0x20],-0x7f JNZ 0x0016bc94 MOV RDI,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x38] MOV RDX,qword ptr [R14 + 0x40] CALL 0x0012347f TEST EAX,EAX JZ 0x0016bc4a MOV EBP,EAX MOV RDI,R14 CALL 0x0015c5bb TEST EAX,EAX JZ 0x0016bc9d MOV RDI,qword ptr [R14] MOV ESI,EBP CALL 0x0011fbc4 JMP 0x0016bc4a LAB_0016bc94: LEA RSI,[0x19dd5e] JMP 0x0016bc3e LAB_0016bc9d: MOV EBX,EBP JMP 0x0016bc4a
int js_parse_from_clause(int8 *param_1) { int iVar1; int iVar2; char *pcVar3; if (((*(int *)(param_1 + 4) == -0x7d) && (*(int *)(param_1 + 7) == 0x7b)) && (*(int *)((long)param_1 + 0x3c) == 0)) { iVar1 = next_token(param_1); if (iVar1 != 0) { return 0; } if (*(int *)(param_1 + 4) == -0x7f) { iVar1 = JS_ValueToAtom(*param_1,param_1[7],param_1[8]); if (iVar1 == 0) { return 0; } iVar2 = next_token(param_1); if (iVar2 == 0) { return iVar1; } JS_FreeAtom(*param_1,iVar1); return 0; } pcVar3 = "string expected"; } else { pcVar3 = "from clause expected"; } js_parse_error(param_1,pcVar3); return 0; }
7,067
js_parse_from_clause
bluesky950520[P]quickjs/quickjs.c
static __exception JSAtom js_parse_from_clause(JSParseState *s) { JSAtom module_name; if (!token_is_pseudo_keyword(s, JS_ATOM_from)) { js_parse_error(s, "from clause expected"); return JS_ATOM_NULL; } if (next_token(s)) return JS_ATOM_NULL; if (s->token.val != TOK_STRING) { js_parse_error(s, "string expected"); return JS_ATOM_NULL; } module_name = JS_ValueToAtom(s->ctx, s->token.u.str.str); if (module_name == JS_ATOM_NULL) return JS_ATOM_NULL; if (next_token(s)) { JS_FreeAtom(s->ctx, module_name); return JS_ATOM_NULL; } return module_name; }
O3
c
js_parse_from_clause: pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 cmpl $-0x7d, 0x20(%rdi) jne 0x6ddd2 cmpl $0x7b, 0x38(%r14) jne 0x6ddd2 cmpl $0x0, 0x3c(%r14) je 0x6ddec leaq 0x34db7(%rip), %rsi # 0xa2b90 xorl %ebx, %ebx movq %r14, %rdi xorl %eax, %eax callq 0x2fed1 movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq movq %r14, %rdi callq 0x5f46a xorl %ebx, %ebx testl %eax, %eax jne 0x6dde5 cmpl $-0x7f, 0x20(%r14) jne 0x6de2f movq (%r14), %rdi movq 0x38(%r14), %rsi movq 0x40(%r14), %rdx callq 0x23ad1 testl %eax, %eax je 0x6dde5 movl %eax, %ebp movq %r14, %rdi callq 0x5f46a testl %eax, %eax je 0x6de38 movq (%r14), %rdi movl %ebp, %esi callq 0x202f5 jmp 0x6dde5 leaq 0x32ef8(%rip), %rsi # 0xa0d2e jmp 0x6ddd9 movl %ebp, %ebx jmp 0x6dde5
js_parse_from_clause: push rbp push r14 push rbx mov r14, rdi cmp dword ptr [rdi+20h], 0FFFFFF83h jnz short loc_6DDD2 cmp dword ptr [r14+38h], 7Bh ; '{' jnz short loc_6DDD2 cmp dword ptr [r14+3Ch], 0 jz short loc_6DDEC loc_6DDD2: lea rsi, aFromClauseExpe; "from clause expected" loc_6DDD9: xor ebx, ebx mov rdi, r14 xor eax, eax call js_parse_error loc_6DDE5: mov eax, ebx pop rbx pop r14 pop rbp retn loc_6DDEC: mov rdi, r14 call next_token xor ebx, ebx test eax, eax jnz short loc_6DDE5 cmp dword ptr [r14+20h], 0FFFFFF81h jnz short loc_6DE2F mov rdi, [r14] mov rsi, [r14+38h] mov rdx, [r14+40h] call JS_ValueToAtom test eax, eax jz short loc_6DDE5 mov ebp, eax mov rdi, r14 call next_token test eax, eax jz short loc_6DE38 mov rdi, [r14] mov esi, ebp call JS_FreeAtom jmp short loc_6DDE5 loc_6DE2F: lea rsi, aStringExpected; "string expected" jmp short loc_6DDD9 loc_6DE38: mov ebx, ebp jmp short loc_6DDE5
long long js_parse_from_clause( 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) { const char *v14; // rsi unsigned int v15; // ebx long long v17; // rsi unsigned int v18; // eax long long v19; // rdx long long v20; // rcx long long v21; // r8 long long v22; // r9 __m128 v23; // xmm4 __m128 v24; // xmm5 unsigned int v25; // ebp char v26; // [rsp+0h] [rbp-18h] if ( *(_DWORD *)(a1 + 32) != -125 || *(_DWORD *)(a1 + 56) != 123 || *(_DWORD *)(a1 + 60) ) { v14 = "from clause expected"; LABEL_5: v15 = 0; js_parse_error((long long *)a1, (long long)v14, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v26); return v15; } v15 = 0; if ( (unsigned int)next_token(a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6) ) return v15; if ( *(_DWORD *)(a1 + 32) != -127 ) { v14 = "string expected"; goto LABEL_5; } v17 = *(_QWORD *)(a1 + 56); v18 = JS_ValueToAtom(*(_QWORD *)a1, v17, *(_QWORD *)(a1 + 64)); if ( v18 ) { v25 = v18; if ( (unsigned int)next_token(a1, a7, a8, a9, a10, v23, v24, a13, a14, v17, v19, v20, v21, v22) ) JS_FreeAtom(*(_QWORD *)a1, v25); else return v25; } return v15; }
js_parse_from_clause: PUSH RBP PUSH R14 PUSH RBX MOV R14,RDI CMP dword ptr [RDI + 0x20],-0x7d JNZ 0x0016ddd2 CMP dword ptr [R14 + 0x38],0x7b JNZ 0x0016ddd2 CMP dword ptr [R14 + 0x3c],0x0 JZ 0x0016ddec LAB_0016ddd2: LEA RSI,[0x1a2b90] LAB_0016ddd9: XOR EBX,EBX MOV RDI,R14 XOR EAX,EAX CALL 0x0012fed1 LAB_0016dde5: MOV EAX,EBX POP RBX POP R14 POP RBP RET LAB_0016ddec: MOV RDI,R14 CALL 0x0015f46a XOR EBX,EBX TEST EAX,EAX JNZ 0x0016dde5 CMP dword ptr [R14 + 0x20],-0x7f JNZ 0x0016de2f MOV RDI,qword ptr [R14] MOV RSI,qword ptr [R14 + 0x38] MOV RDX,qword ptr [R14 + 0x40] CALL 0x00123ad1 TEST EAX,EAX JZ 0x0016dde5 MOV EBP,EAX MOV RDI,R14 CALL 0x0015f46a TEST EAX,EAX JZ 0x0016de38 MOV RDI,qword ptr [R14] MOV ESI,EBP CALL 0x001202f5 JMP 0x0016dde5 LAB_0016de2f: LEA RSI,[0x1a0d2e] JMP 0x0016ddd9 LAB_0016de38: MOV EBX,EBP JMP 0x0016dde5
int js_parse_from_clause(int8 *param_1) { int iVar1; int iVar2; char *pcVar3; if (((*(int *)(param_1 + 4) == -0x7d) && (*(int *)(param_1 + 7) == 0x7b)) && (*(int *)((long)param_1 + 0x3c) == 0)) { iVar1 = next_token(param_1); if (iVar1 != 0) { return 0; } if (*(int *)(param_1 + 4) == -0x7f) { iVar1 = JS_ValueToAtom(*param_1,param_1[7],param_1[8]); if (iVar1 == 0) { return 0; } iVar2 = next_token(param_1); if (iVar2 == 0) { return iVar1; } JS_FreeAtom(*param_1,iVar1); return 0; } pcVar3 = "string expected"; } else { pcVar3 = "from clause expected"; } js_parse_error(param_1,pcVar3); return 0; }
7,068
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
int Level::gatherQuadRegularInteriorPatchPoints( Index thisFace, Index patchPoints[], int rotation, int fvarChannel) const { Level const& level = *this; assert((0 <= rotation) && (rotation < 4)); static int const rotationSequence[7] = { 0, 1, 2, 3, 0, 1, 2 }; int const * rotatedVerts = &rotationSequence[rotation]; ConstIndexArray thisFaceVerts = level.getFaceVertices(thisFace); ConstIndexArray facePoints = (fvarChannel < 0) ? thisFaceVerts : level.getFaceFVarValues(thisFace, fvarChannel); patchPoints[0] = facePoints[rotatedVerts[0]]; patchPoints[1] = facePoints[rotatedVerts[1]]; patchPoints[2] = facePoints[rotatedVerts[2]]; patchPoints[3] = facePoints[rotatedVerts[3]]; // // For each of the four corner vertices, there is a face diagonally opposite // the given/central face. Each of these faces contains three points of the // entire ring of points around that given/central face. // int pointIndex = 4; for (int i = 0; i < 4; ++i) { Index v = thisFaceVerts[rotatedVerts[i]]; ConstIndexArray vFaces = level.getVertexFaces(v); ConstLocalIndexArray vInFaces = level.getVertexFaceLocalIndices(v); int thisFaceInVFaces = vFaces.FindIndexIn4Tuple(thisFace); int intFaceInVFaces = fastMod4(thisFaceInVFaces + 2); Index intFace = vFaces[intFaceInVFaces]; int vInIntFace = vInFaces[intFaceInVFaces]; facePoints = (fvarChannel < 0) ? level.getFaceVertices(intFace) : level.getFaceFVarValues(intFace, fvarChannel); patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 1)]; patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 2)]; patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 3)]; } assert(pointIndex == 16); return 16; }
O0
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const: pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) xorl %eax, %eax xorl %ecx, %ecx cmpl -0x1c(%rbp), %ecx movb %al, -0x101(%rbp) jg 0xece41 cmpl $0x4, -0x1c(%rbp) setl %al movb %al, -0x101(%rbp) movb -0x101(%rbp), %al testb $0x1, %al jne 0xece4d jmp 0xece4f jmp 0xece6e leaq 0xfe6f3(%rip), %rdi # 0x1eb549 leaq 0xfdcc0(%rip), %rsi # 0x1eab1d movl $0x352, %edx # imm = 0x352 leaq 0xfe76c(%rip), %rcx # 0x1eb5d5 callq 0xc9440 movslq -0x1c(%rbp), %rcx leaq 0xfdab7(%rip), %rax # 0x1ea930 leaq (%rax,%rcx,4), %rax movq %rax, -0x30(%rbp) movq -0x28(%rbp), %rdi movl -0xc(%rbp), %esi callq 0xce580 movl %edx, -0x48(%rbp) movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x40(%rbp) movl -0x48(%rbp), %eax movl %eax, -0x38(%rbp) cmpl $0x0, -0x20(%rbp) jge 0xeceba movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0xecede movq -0x28(%rbp), %rdi movl -0xc(%rbp), %esi movl -0x20(%rbp), %edx callq 0xd1780 movl %edx, -0x68(%rbp) movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rax movq %rax, -0x60(%rbp) movl -0x68(%rbp), %eax movl %eax, -0x58(%rbp) movq -0x30(%rbp), %rax movl (%rax), %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, (%rax) movq -0x30(%rbp), %rax movl 0x4(%rax), %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x30(%rbp), %rax movl 0x8(%rax), %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x30(%rbp), %rax movl 0xc(%rax), %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %ecx movq -0x18(%rbp), %rax movl %ecx, 0xc(%rax) movl $0x4, -0x74(%rbp) movl $0x0, -0x78(%rbp) cmpl $0x4, -0x78(%rbp) jge 0xed15e movq -0x30(%rbp), %rax movslq -0x78(%rbp), %rcx movl (%rax,%rcx,4), %esi leaq -0x40(%rbp), %rdi callq 0xcabf0 movl (%rax), %eax movl %eax, -0x7c(%rbp) movq -0x28(%rbp), %rdi movl -0x7c(%rbp), %esi callq 0xd7810 movl %edx, -0x98(%rbp) movq %rax, -0xa0(%rbp) movl -0x98(%rbp), %eax movl %eax, -0x88(%rbp) movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) movq -0x28(%rbp), %rdi movl -0x7c(%rbp), %esi callq 0xc7650 movl %edx, -0xb8(%rbp) movq %rax, -0xc0(%rbp) movq -0xc0(%rbp), %rax movq %rax, -0xb0(%rbp) movl -0xb8(%rbp), %eax movl %eax, -0xa8(%rbp) movl -0xc(%rbp), %esi leaq -0x90(%rbp), %rdi callq 0xc9e10 movl %eax, -0xc4(%rbp) movl -0xc4(%rbp), %edi addl $0x2, %edi callq 0xec9f0 movl %eax, -0xc8(%rbp) movl -0xc8(%rbp), %esi leaq -0x90(%rbp), %rdi callq 0xcabf0 movl (%rax), %eax movl %eax, -0xcc(%rbp) movl -0xc8(%rbp), %esi leaq -0xb0(%rbp), %rdi callq 0xcafa0 movzwl (%rax), %eax movl %eax, -0xd0(%rbp) cmpl $0x0, -0x20(%rbp) jge 0xed073 movq -0x28(%rbp), %rdi movl -0xcc(%rbp), %esi callq 0xce580 movl %edx, -0xe8(%rbp) movq %rax, -0xf0(%rbp) movq -0xf0(%rbp), %rax movq %rax, -0xe0(%rbp) movl -0xe8(%rbp), %eax movl %eax, -0xd8(%rbp) jmp 0xed0ac movq -0x28(%rbp), %rdi movl -0xcc(%rbp), %esi movl -0x20(%rbp), %edx callq 0xd1780 movl %edx, -0xf8(%rbp) movq %rax, -0x100(%rbp) movq -0x100(%rbp), %rax movq %rax, -0xe0(%rbp) movl -0xf8(%rbp), %eax movl %eax, -0xd8(%rbp) movq -0xe0(%rbp), %rax movq %rax, -0x60(%rbp) movl -0xd8(%rbp), %eax movl %eax, -0x58(%rbp) movl -0xd0(%rbp), %edi addl $0x1, %edi callq 0xec9f0 movl %eax, %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %edx movq -0x18(%rbp), %rax movl -0x74(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x74(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0xd0(%rbp), %edi addl $0x2, %edi callq 0xec9f0 movl %eax, %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %edx movq -0x18(%rbp), %rax movl -0x74(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x74(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0xd0(%rbp), %edi addl $0x3, %edi callq 0xec9f0 movl %eax, %esi leaq -0x60(%rbp), %rdi callq 0xcabf0 movl (%rax), %edx movq -0x18(%rbp), %rax movl -0x74(%rbp), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, -0x74(%rbp) movslq %ecx, %rcx movl %edx, (%rax,%rcx,4) movl -0x78(%rbp), %eax addl $0x1, %eax movl %eax, -0x78(%rbp) jmp 0xecf4e cmpl $0x10, -0x74(%rbp) jne 0xed166 jmp 0xed185 leaq 0xfe4db(%rip), %rdi # 0x1eb648 leaq 0xfd9a9(%rip), %rsi # 0x1eab1d movl $0x379, %edx # imm = 0x379 leaq 0xfe455(%rip), %rcx # 0x1eb5d5 callq 0xc9440 movl $0x10, %eax addq $0x110, %rsp # imm = 0x110 popq %rbp retq nopw %cs:(%rax,%rax)
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level36gatherQuadRegularInteriorPatchPointsEiPiii: push rbp mov rbp, rsp sub rsp, 110h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_20], r8d mov rax, [rbp+var_8] mov [rbp+var_28], rax xor eax, eax xor ecx, ecx cmp ecx, [rbp+var_1C] mov [rbp+var_101], al jg short loc_ECE41 cmp [rbp+var_1C], 4 setl al mov [rbp+var_101], al loc_ECE41: mov al, [rbp+var_101] test al, 1 jnz short loc_ECE4D jmp short loc_ECE4F loc_ECE4D: jmp short loc_ECE6E loc_ECE4F: lea rdi, a0RotationRotat; "(0 <= rotation) && (rotation < 4)" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 352h lea rcx, aIntOpensubdivV_4; "int OpenSubdiv::v3_6_0::Vtr::internal::"... call ___assert_fail loc_ECE6E: movsxd rcx, [rbp+var_1C] lea rax, _ZZNK10OpenSubdiv6v3_6_03Vtr8internal5Level36gatherQuadRegularInteriorPatchPointsEiPiiiE16rotationSequence; OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)::rotationSequence lea rax, [rax+rcx*4] mov [rbp+var_30], rax mov rdi, [rbp+var_28]; this mov esi, [rbp+var_C]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov [rbp+var_48], edx mov [rbp+var_50], rax mov rax, [rbp+var_50] mov [rbp+var_40], rax mov eax, [rbp+var_48] mov dword ptr [rbp+var_38], eax cmp [rbp+var_20], 0 jge short loc_ECEBA mov rax, [rbp+var_40] mov [rbp+var_60], rax mov rax, [rbp+var_38] mov [rbp+var_58], rax jmp short loc_ECEDE loc_ECEBA: mov rdi, [rbp+var_28]; this mov esi, [rbp+var_C]; int mov edx, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level17getFaceFVarValuesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(int,int) mov [rbp+var_68], edx mov [rbp+var_70], rax mov rax, [rbp+var_70] mov [rbp+var_60], rax mov eax, [rbp+var_68] mov dword ptr [rbp+var_58], eax loc_ECEDE: mov rax, [rbp+var_30] mov esi, [rax] lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov ecx, [rax] mov rax, [rbp+var_18] mov [rax], ecx mov rax, [rbp+var_30] mov esi, [rax+4] lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov ecx, [rax] mov rax, [rbp+var_18] mov [rax+4], ecx mov rax, [rbp+var_30] mov esi, [rax+8] lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov ecx, [rax] mov rax, [rbp+var_18] mov [rax+8], ecx mov rax, [rbp+var_30] mov esi, [rax+0Ch] lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov ecx, [rax] mov rax, [rbp+var_18] mov [rax+0Ch], ecx mov [rbp+var_74], 4 mov [rbp+var_78], 0 loc_ECF4E: cmp [rbp+var_78], 4 jge loc_ED15E mov rax, [rbp+var_30] movsxd rcx, [rbp+var_78] mov esi, [rax+rcx*4] lea rdi, [rbp+var_40] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov eax, [rax] mov [rbp+var_7C], eax mov rdi, [rbp+var_28]; this mov esi, [rbp+var_7C]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level14getVertexFacesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(int) mov [rbp+var_98], edx mov [rbp+var_A0], rax mov eax, [rbp+var_98] mov [rbp+var_88], eax mov rax, [rbp+var_A0] mov [rbp+var_90], rax mov rdi, [rbp+var_28]; this mov esi, [rbp+var_7C]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level25getVertexFaceLocalIndicesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(int) mov [rbp+var_B8], edx mov [rbp+var_C0], rax mov rax, [rbp+var_C0] mov [rbp+var_B0], rax mov eax, [rbp+var_B8] mov [rbp+var_A8], eax mov esi, [rbp+var_C] lea rdi, [rbp+var_90] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE17FindIndexIn4TupleEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) mov [rbp+var_C4], eax mov edi, [rbp+var_C4] add edi, 2 call _ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_18fastMod4IiEET_S5_; OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>(int) mov [rbp+var_C8], eax mov esi, [rbp+var_C8] lea rdi, [rbp+var_90] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov eax, [rax] mov [rbp+var_CC], eax mov esi, [rbp+var_C8] lea rdi, [rbp+var_B0] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayItEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<ushort>::operator[](int) movzx eax, word ptr [rax] mov [rbp+var_D0], eax cmp [rbp+var_20], 0 jge short loc_ED073 mov rdi, [rbp+var_28]; this mov esi, [rbp+var_CC]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int) mov [rbp+var_E8], edx mov [rbp+var_F0], rax mov rax, [rbp+var_F0] mov [rbp+var_E0], rax mov eax, [rbp+var_E8] mov [rbp+var_D8], eax jmp short loc_ED0AC loc_ED073: mov rdi, [rbp+var_28]; this mov esi, [rbp+var_CC]; int mov edx, [rbp+var_20]; int call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level17getFaceFVarValuesEii; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(int,int) mov [rbp+var_F8], edx mov [rbp+var_100], rax mov rax, [rbp+var_100] mov [rbp+var_E0], rax mov eax, [rbp+var_F8] mov [rbp+var_D8], eax loc_ED0AC: mov rax, [rbp+var_E0] mov [rbp+var_60], rax mov eax, [rbp+var_D8] mov dword ptr [rbp+var_58], eax mov edi, [rbp+var_D0] add edi, 1 call _ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_18fastMod4IiEET_S5_; OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>(int) mov esi, eax lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov edx, [rax] mov rax, [rbp+var_18] mov ecx, [rbp+var_74] mov esi, ecx add esi, 1 mov [rbp+var_74], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov edi, [rbp+var_D0] add edi, 2 call _ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_18fastMod4IiEET_S5_; OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>(int) mov esi, eax lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov edx, [rax] mov rax, [rbp+var_18] mov ecx, [rbp+var_74] mov esi, ecx add esi, 1 mov [rbp+var_74], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov edi, [rbp+var_D0] add edi, 3 call _ZN10OpenSubdiv6v3_6_03Vtr8internal12_GLOBAL__N_18fastMod4IiEET_S5_; OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>(int) mov esi, eax lea rdi, [rbp+var_60] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov edx, [rax] mov rax, [rbp+var_18] mov ecx, [rbp+var_74] mov esi, ecx add esi, 1 mov [rbp+var_74], esi movsxd rcx, ecx mov [rax+rcx*4], edx mov eax, [rbp+var_78] add eax, 1 mov [rbp+var_78], eax jmp loc_ECF4E loc_ED15E: cmp [rbp+var_74], 10h jnz short loc_ED166 jmp short loc_ED185 loc_ED166: lea rdi, aPointindex16; "pointIndex == 16" lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov edx, 379h lea rcx, aIntOpensubdivV_4; "int OpenSubdiv::v3_6_0::Vtr::internal::"... call ___assert_fail loc_ED185: mov eax, 10h add rsp, 110h pop rbp retn
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, int a2, int *a3, int a4, int a5) { long long FaceVertices; // rax int v6; // edx long long FaceFVarValues; // rax int v8; // edx int *v9; // rax int *v10; // rax int *v11; // rax int *v12; // rax long long VertexFaces; // rax int v14; // edx int v15; // edx long long v16; // rax int v17; // edx unsigned int v18; // eax int v19; // edx int v20; // ecx unsigned int v21; // eax int v22; // edx int v23; // ecx unsigned int v24; // eax int v25; // edx int v26; // ecx bool v28; // [rsp+Fh] [rbp-101h] __int16 v29; // [rsp+40h] [rbp-D0h] int v30; // [rsp+44h] [rbp-CCh] unsigned int v31; // [rsp+48h] [rbp-C8h] char IndexIn4Tuple; // [rsp+4Ch] [rbp-C4h] long long VertexFaceLocalIndices; // [rsp+60h] [rbp-B0h] BYREF int v34; // [rsp+68h] [rbp-A8h] long long v35; // [rsp+70h] [rbp-A0h] int v36; // [rsp+78h] [rbp-98h] long long v37; // [rsp+80h] [rbp-90h] BYREF int v38; // [rsp+88h] [rbp-88h] int v39; // [rsp+94h] [rbp-7Ch] int i; // [rsp+98h] [rbp-78h] int v41; // [rsp+9Ch] [rbp-74h] long long v42; // [rsp+A0h] [rbp-70h] int v43; // [rsp+A8h] [rbp-68h] long long v44; // [rsp+B0h] [rbp-60h] BYREF long long v45; // [rsp+B8h] [rbp-58h] long long v46; // [rsp+C0h] [rbp-50h] int v47; // [rsp+C8h] [rbp-48h] long long v48; // [rsp+D0h] [rbp-40h] BYREF long long v49; // [rsp+D8h] [rbp-38h] unsigned int *v50; // [rsp+E0h] [rbp-30h] OpenSubdiv::v3_6_0::Vtr::internal::Level *v51; // [rsp+E8h] [rbp-28h] int v52; // [rsp+F0h] [rbp-20h] int v53; // [rsp+F4h] [rbp-1Ch] int *v54; // [rsp+F8h] [rbp-18h] int v55; // [rsp+104h] [rbp-Ch] OpenSubdiv::v3_6_0::Vtr::internal::Level *v56; // [rsp+108h] [rbp-8h] v56 = this; v55 = a2; v54 = a3; v53 = a4; v52 = a5; v51 = this; v28 = 0; if ( a4 >= 0 ) v28 = v53 < 4; if ( !v28 ) __assert_fail( "(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp", 850LL, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const"); v50 = (unsigned int *)((char *)&OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence + 4 * v53); FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(v51, v55); v47 = v6; v46 = FaceVertices; v48 = FaceVertices; LODWORD(v49) = v6; if ( v52 >= 0 ) { FaceFVarValues = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(v51, v55, v52); v43 = v8; v42 = FaceFVarValues; v44 = FaceFVarValues; LODWORD(v45) = v8; } else { v44 = v48; v45 = v49; } v9 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, *v50); *v54 = *v9; v10 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v50[1]); v54[1] = *v10; v11 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v50[2]); v54[2] = *v11; v12 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v50[3]); v54[3] = *v12; v41 = 4; for ( i = 0; i < 4; ++i ) { v39 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v48, v50[i]); VertexFaces = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaces(v51, v39); v36 = v14; v35 = VertexFaces; v38 = v14; v37 = VertexFaces; VertexFaceLocalIndices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getVertexFaceLocalIndices(v51, v39); v34 = v15; IndexIn4Tuple = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(&v37, (unsigned int)v55); v31 = OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>(IndexIn4Tuple + 2); v30 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v37, v31); v29 = *(_WORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<unsigned short>::operator[](&VertexFaceLocalIndices, v31); if ( v52 >= 0 ) v16 = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceFVarValues(v51, v30, v52); else v16 = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(v51, v30); v44 = v16; LODWORD(v45) = v17; v18 = OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>((unsigned __int8)v29 + 1); v19 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v18); v20 = v41++; v54[v20] = v19; v21 = OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>((unsigned __int8)v29 + 2); v22 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v21); v23 = v41++; v54[v23] = v22; v24 = OpenSubdiv::v3_6_0::Vtr::internal::`anonymous namespace'::fastMod4<int>((unsigned __int8)v29 + 3); v25 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v44, v24); v26 = v41++; v54[v26] = v25; } if ( v41 != 16 ) __assert_fail( "pointIndex == 16", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp", 889LL, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const"); return 16LL; }
gatherQuadRegularInteriorPatchPoints: PUSH RBP MOV RBP,RSP SUB RSP,0x110 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV dword ptr [RBP + -0x20],R8D MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x28],RAX XOR EAX,EAX XOR ECX,ECX CMP ECX,dword ptr [RBP + -0x1c] MOV byte ptr [RBP + -0x101],AL JG 0x001ece41 CMP dword ptr [RBP + -0x1c],0x4 SETL AL MOV byte ptr [RBP + -0x101],AL LAB_001ece41: MOV AL,byte ptr [RBP + -0x101] TEST AL,0x1 JNZ 0x001ece4d JMP 0x001ece4f LAB_001ece4d: JMP 0x001ece6e LAB_001ece4f: LEA RDI,[0x2eb549] LEA RSI,[0x2eab1d] MOV EDX,0x352 LEA RCX,[0x2eb5d5] CALL 0x001c9440 LAB_001ece6e: MOVSXD RCX,dword ptr [RBP + -0x1c] LEA RAX,[0x2ea930] LEA RAX,[RAX + RCX*0x4] MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0xc] CALL 0x001ce580 MOV dword ptr [RBP + -0x48],EDX MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x38],EAX CMP dword ptr [RBP + -0x20],0x0 JGE 0x001eceba MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x58],RAX JMP 0x001ecede LAB_001eceba: MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0xc] MOV EDX,dword ptr [RBP + -0x20] CALL 0x001d1780 MOV dword ptr [RBP + -0x68],EDX MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x60],RAX MOV EAX,dword ptr [RBP + -0x68] MOV dword ptr [RBP + -0x58],EAX LAB_001ecede: MOV RAX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RAX] LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RAX + 0x4] LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RAX + 0x8] LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RAX + 0xc] LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV ECX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0xc],ECX MOV dword ptr [RBP + -0x74],0x4 MOV dword ptr [RBP + -0x78],0x0 LAB_001ecf4e: CMP dword ptr [RBP + -0x78],0x4 JGE 0x001ed15e MOV RAX,qword ptr [RBP + -0x30] MOVSXD RCX,dword ptr [RBP + -0x78] MOV ESI,dword ptr [RAX + RCX*0x4] LEA RDI,[RBP + -0x40] CALL 0x001cabf0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x7c],EAX MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x7c] CALL 0x001d7810 MOV dword ptr [RBP + -0x98],EDX MOV qword ptr [RBP + -0xa0],RAX MOV EAX,dword ptr [RBP + -0x98] MOV dword ptr [RBP + -0x88],EAX MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x7c] CALL 0x001c7650 MOV dword ptr [RBP + -0xb8],EDX MOV qword ptr [RBP + -0xc0],RAX MOV RAX,qword ptr [RBP + -0xc0] MOV qword ptr [RBP + -0xb0],RAX MOV EAX,dword ptr [RBP + -0xb8] MOV dword ptr [RBP + -0xa8],EAX MOV ESI,dword ptr [RBP + -0xc] LEA RDI,[RBP + -0x90] CALL 0x001c9e10 MOV dword ptr [RBP + -0xc4],EAX MOV EDI,dword ptr [RBP + -0xc4] ADD EDI,0x2 CALL 0x001ec9f0 MOV dword ptr [RBP + -0xc8],EAX MOV ESI,dword ptr [RBP + -0xc8] LEA RDI,[RBP + -0x90] CALL 0x001cabf0 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0xcc],EAX MOV ESI,dword ptr [RBP + -0xc8] LEA RDI,[RBP + -0xb0] CALL 0x001cafa0 MOVZX EAX,word ptr [RAX] MOV dword ptr [RBP + -0xd0],EAX CMP dword ptr [RBP + -0x20],0x0 JGE 0x001ed073 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0xcc] CALL 0x001ce580 MOV dword ptr [RBP + -0xe8],EDX MOV qword ptr [RBP + -0xf0],RAX MOV RAX,qword ptr [RBP + -0xf0] MOV qword ptr [RBP + -0xe0],RAX MOV EAX,dword ptr [RBP + -0xe8] MOV dword ptr [RBP + -0xd8],EAX JMP 0x001ed0ac LAB_001ed073: MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0xcc] MOV EDX,dword ptr [RBP + -0x20] CALL 0x001d1780 MOV dword ptr [RBP + -0xf8],EDX MOV qword ptr [RBP + -0x100],RAX MOV RAX,qword ptr [RBP + -0x100] MOV qword ptr [RBP + -0xe0],RAX MOV EAX,dword ptr [RBP + -0xf8] MOV dword ptr [RBP + -0xd8],EAX LAB_001ed0ac: MOV RAX,qword ptr [RBP + -0xe0] MOV qword ptr [RBP + -0x60],RAX MOV EAX,dword ptr [RBP + -0xd8] MOV dword ptr [RBP + -0x58],EAX MOV EDI,dword ptr [RBP + -0xd0] ADD EDI,0x1 CALL 0x001ec9f0 MOV ESI,EAX LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV EDX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x74] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x74],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV EDI,dword ptr [RBP + -0xd0] ADD EDI,0x2 CALL 0x001ec9f0 MOV ESI,EAX LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV EDX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x74] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x74],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV EDI,dword ptr [RBP + -0xd0] ADD EDI,0x3 CALL 0x001ec9f0 MOV ESI,EAX LEA RDI,[RBP + -0x60] CALL 0x001cabf0 MOV EDX,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x74] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RBP + -0x74],ESI MOVSXD RCX,ECX MOV dword ptr [RAX + RCX*0x4],EDX MOV EAX,dword ptr [RBP + -0x78] ADD EAX,0x1 MOV dword ptr [RBP + -0x78],EAX JMP 0x001ecf4e LAB_001ed15e: CMP dword ptr [RBP + -0x74],0x10 JNZ 0x001ed166 JMP 0x001ed185 LAB_001ed166: LEA RDI,[0x2eb648] LEA RSI,[0x2eab1d] MOV EDX,0x379 LEA RCX,[0x2eb5d5] CALL 0x001c9440 LAB_001ed185: MOV EAX,0x10 ADD RSP,0x110 POP RBP RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const */ int8 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints (Level *this,int param_1,int *param_2,int param_3,int param_4) { int iVar1; int iVar2; uint uVar3; int *piVar4; ushort *puVar5; int1 auVar6 [12]; bool local_109; int8 local_e8; int4 local_e0; int1 local_b8 [12]; int1 local_a8 [12]; int1 local_98 [12]; int local_84; int local_80; int local_7c; int1 local_78 [12]; int8 local_68; int8 local_60; int1 local_58 [12]; ConstArray<int> local_48 [12]; int4 uStack_3c; int *local_38; Level *local_30; int local_28; int local_24; int *local_20; int local_14; Level *local_10; local_109 = 3 < (uint)param_3; local_30 = this; local_28 = param_4; local_24 = param_3; local_20 = param_2; local_14 = param_1; local_10 = this; if (local_109) { /* WARNING: Subroutine does not return */ __assert_fail("(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp" ,0x352, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const" ); } local_38 = (int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int)::rotationSequence + (long)param_3 * 4); local_58 = getFaceVertices(this,param_1); local_68 = local_58._0_8_; local_48 = (ConstArray<int> [12])local_58; if (local_28 < 0) { local_60 = CONCAT44(uStack_3c,local_58._8_4_); } else { local_78 = getFaceFVarValues(local_30,local_14,local_28); local_68 = local_78._0_8_; local_60 = CONCAT44(local_60._4_4_,local_78._8_4_); } piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,*local_38); *local_20 = *piVar4; piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,local_38[1]); local_20[1] = *piVar4; piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,local_38[2]); local_20[2] = *piVar4; piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,local_38[3]); local_20[3] = *piVar4; local_7c = 4; for (local_80 = 0; local_80 < 4; local_80 = local_80 + 1) { piVar4 = (int *)ConstArray<int>::operator[](local_48,local_38[local_80]); local_84 = *piVar4; auVar6 = getVertexFaces(local_30,local_84); local_a8 = auVar6; local_98 = auVar6; auVar6 = getVertexFaceLocalIndices(local_30,local_84); local_b8 = auVar6; iVar1 = ConstArray<int>::FindIndexIn4Tuple((ConstArray<int> *)local_98,local_14); iVar2 = (anonymous_namespace)::fastMod4<int>(iVar1 + 2); piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)local_98,iVar2); iVar1 = *piVar4; puVar5 = (ushort *) ConstArray<unsigned_short>::operator[]((ConstArray<unsigned_short> *)local_b8,iVar2); uVar3 = (uint)*puVar5; if (local_28 < 0) { auVar6 = getFaceVertices(local_30,iVar1); } else { auVar6 = getFaceFVarValues(local_30,iVar1,local_28); } local_e0 = auVar6._8_4_; local_e8 = auVar6._0_8_; local_68 = local_e8; local_60 = CONCAT44(local_60._4_4_,local_e0); iVar1 = (anonymous_namespace)::fastMod4<int>(uVar3 + 1); piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,iVar1); local_20[local_7c] = *piVar4; local_7c = local_7c + 1; iVar1 = (anonymous_namespace)::fastMod4<int>(uVar3 + 2); piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,iVar1); local_20[local_7c] = *piVar4; local_7c = local_7c + 1; iVar1 = (anonymous_namespace)::fastMod4<int>(uVar3 + 3); piVar4 = (int *)ConstArray<int>::operator[]((ConstArray<int> *)&local_68,iVar1); local_20[local_7c] = *piVar4; local_7c = local_7c + 1; } if (local_7c == 0x10) { return 0x10; } /* WARNING: Subroutine does not return */ __assert_fail("pointIndex == 16", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp" ,0x379, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const" ); }
7,069
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp
int Level::gatherQuadRegularInteriorPatchPoints( Index thisFace, Index patchPoints[], int rotation, int fvarChannel) const { Level const& level = *this; assert((0 <= rotation) && (rotation < 4)); static int const rotationSequence[7] = { 0, 1, 2, 3, 0, 1, 2 }; int const * rotatedVerts = &rotationSequence[rotation]; ConstIndexArray thisFaceVerts = level.getFaceVertices(thisFace); ConstIndexArray facePoints = (fvarChannel < 0) ? thisFaceVerts : level.getFaceFVarValues(thisFace, fvarChannel); patchPoints[0] = facePoints[rotatedVerts[0]]; patchPoints[1] = facePoints[rotatedVerts[1]]; patchPoints[2] = facePoints[rotatedVerts[2]]; patchPoints[3] = facePoints[rotatedVerts[3]]; // // For each of the four corner vertices, there is a face diagonally opposite // the given/central face. Each of these faces contains three points of the // entire ring of points around that given/central face. // int pointIndex = 4; for (int i = 0; i < 4; ++i) { Index v = thisFaceVerts[rotatedVerts[i]]; ConstIndexArray vFaces = level.getVertexFaces(v); ConstLocalIndexArray vInFaces = level.getVertexFaceLocalIndices(v); int thisFaceInVFaces = vFaces.FindIndexIn4Tuple(thisFace); int intFaceInVFaces = fastMod4(thisFaceInVFaces + 2); Index intFace = vFaces[intFaceInVFaces]; int vInIntFace = vInFaces[intFaceInVFaces]; facePoints = (fvarChannel < 0) ? level.getFaceVertices(intFace) : level.getFaceFVarValues(intFace, fvarChannel); patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 1)]; patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 2)]; patchPoints[pointIndex++] = facePoints[fastMod4(vInIntFace + 3)]; } assert(pointIndex == 16); return 16; }
O3
cpp
OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp cmpl $0x4, %ecx jae 0x44e21 movq %rdx, %r14 movq %rdi, %r12 movl %ecx, %eax leaq 0x71ce4(%rip), %rcx # 0xb6960 leaq (%rcx,%rax,4), %rax movq %rax, 0x18(%rsp) leal 0x1(%rsi,%rsi), %eax cltq movq 0x18(%rdi), %rcx movslq (%rcx,%rax,4), %r13 shlq $0x2, %r13 addq 0x30(%rdi), %r13 testl %r8d, %r8d movl %r8d, 0xc(%rsp) js 0x44cce movl %r8d, %edx movq 0x1c8(%r12), %rcx movq %rdx, 0x10(%rsp) movq (%rcx,%rdx,8), %rcx movq (%rcx), %rdx movq 0x18(%rdx), %rdx movslq (%rdx,%rax,4), %rax shlq $0x2, %rax addq 0x18(%rcx), %rax jmp 0x44cd9 movl %r8d, %eax movq %rax, 0x10(%rsp) movq %r13, %rax leaq 0x30(%r12), %rcx movq %rcx, 0x20(%rsp) movq 0x18(%rsp), %rdx movslq (%rdx), %rcx movl (%rax,%rcx,4), %ecx movl %ecx, (%r14) movslq 0x4(%rdx), %rcx movl (%rax,%rcx,4), %ecx movl %ecx, 0x4(%r14) movslq 0x8(%rdx), %rcx movl (%rax,%rcx,4), %ecx movl %ecx, 0x8(%r14) movslq 0xc(%rdx), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0xc(%r14) addq $0x18, %r14 xorl %r15d, %r15d movq 0x18(%rsp), %rax movslq (%rax,%r15,4), %rax movslq (%r13,%rax,4), %rax leaq (%rax,%rax), %rcx movq 0x108(%r12), %rdx movslq 0x4(%rdx,%rax,8), %rdi shlq $0x2, %rdi addq 0x120(%r12), %rdi movslq %ecx, %rcx movl (%rdx,%rcx,4), %ecx movq %rdi, 0x28(%rsp) movl %ecx, 0x30(%rsp) movslq 0x4(%rdx,%rax,8), %rbx addq %rbx, %rbx addq 0x138(%r12), %rbx leaq 0x28(%rsp), %rdi movq %rsi, %rbp callq 0x396f0 andl $0x3, %eax xorl $0x2, %eax movq 0x28(%rsp), %rcx movslq (%rcx,%rax,4), %rdx cmpl $0x0, 0xc(%rsp) js 0x44db2 movq 0x1c8(%r12), %rcx movq 0x10(%rsp), %rsi movq (%rcx,%rsi,8), %rcx movq (%rcx), %rsi leal 0x1(,%rdx,2), %edx movslq %edx, %rdx shlq $0x2, %rdx addq 0x18(%rsi), %rdx addq $0x18, %rcx jmp 0x44dc4 movq 0x18(%r12), %rcx leaq (%rcx,%rdx,8), %rdx addq $0x4, %rdx movq 0x20(%rsp), %rcx movzwl (%rbx,%rax,2), %esi movslq (%rdx), %rax shlq $0x2, %rax addq (%rcx), %rax movl %esi, %ecx leal -0x1(%rsi), %edx incl %esi andl $0x3, %esi movl (%rax,%rsi,4), %esi movl %esi, -0x8(%r14) andl $0x3, %ecx xorl $0x2, %ecx movl (%rax,%rcx,4), %ecx movl %ecx, -0x4(%r14) andl $0x3, %edx movl (%rax,%rdx,4), %eax movl %eax, (%r14) incq %r15 addq $0xc, %r14 cmpq $0x4, %r15 movq %rbp, %rsi jne 0x44d19 movl $0x10, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x715b2(%rip), %rdi # 0xb63da leaq 0x70c3b(%rip), %rsi # 0xb5a6a leaq 0x71630(%rip), %rcx # 0xb6466 movl $0x352, %edx # imm = 0x352 callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level36gatherQuadRegularInteriorPatchPointsEiPiii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h cmp ecx, 4 jnb loc_44E21 mov r14, rdx mov r12, rdi mov eax, ecx lea rcx, _ZZNK10OpenSubdiv6v3_6_03Vtr8internal5Level36gatherQuadRegularInteriorPatchPointsEiPiiiE16rotationSequence; OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)::rotationSequence lea rax, [rcx+rax*4] mov [rsp+68h+var_50], rax lea eax, [rsi+rsi+1] cdqe mov rcx, [rdi+18h] movsxd r13, dword ptr [rcx+rax*4] shl r13, 2 add r13, [rdi+30h] test r8d, r8d mov [rsp+68h+var_5C], r8d js short loc_44CCE mov edx, r8d mov rcx, [r12+1C8h] mov [rsp+68h+var_58], rdx mov rcx, [rcx+rdx*8] mov rdx, [rcx] mov rdx, [rdx+18h] movsxd rax, dword ptr [rdx+rax*4] shl rax, 2 add rax, [rcx+18h] jmp short loc_44CD9 loc_44CCE: mov eax, r8d mov [rsp+68h+var_58], rax mov rax, r13 loc_44CD9: lea rcx, [r12+30h] mov [rsp+68h+var_48], rcx mov rdx, [rsp+68h+var_50] movsxd rcx, dword ptr [rdx] mov ecx, [rax+rcx*4] mov [r14], ecx movsxd rcx, dword ptr [rdx+4] mov ecx, [rax+rcx*4] mov [r14+4], ecx movsxd rcx, dword ptr [rdx+8] mov ecx, [rax+rcx*4] mov [r14+8], ecx movsxd rcx, dword ptr [rdx+0Ch] mov eax, [rax+rcx*4] mov [r14+0Ch], eax add r14, 18h xor r15d, r15d loc_44D19: mov rax, [rsp+68h+var_50] movsxd rax, dword ptr [rax+r15*4] movsxd rax, dword ptr [r13+rax*4+0] lea rcx, [rax+rax] mov rdx, [r12+108h] movsxd rdi, dword ptr [rdx+rax*8+4] shl rdi, 2 add rdi, [r12+120h] movsxd rcx, ecx mov ecx, [rdx+rcx*4] mov [rsp+68h+var_40], rdi mov [rsp+68h+var_38], ecx movsxd rbx, dword ptr [rdx+rax*8+4] add rbx, rbx add rbx, [r12+138h] lea rdi, [rsp+68h+var_40] mov rbp, rsi call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE17FindIndexIn4TupleEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(int) and eax, 3 xor eax, 2 mov rcx, [rsp+68h+var_40] movsxd rdx, dword ptr [rcx+rax*4] cmp [rsp+68h+var_5C], 0 js short loc_44DB2 mov rcx, [r12+1C8h] mov rsi, [rsp+68h+var_58] mov rcx, [rcx+rsi*8] mov rsi, [rcx] lea edx, ds:1[rdx*2] movsxd rdx, edx shl rdx, 2 add rdx, [rsi+18h] add rcx, 18h jmp short loc_44DC4 loc_44DB2: mov rcx, [r12+18h] lea rdx, [rcx+rdx*8] add rdx, 4 mov rcx, [rsp+68h+var_48] loc_44DC4: movzx esi, word ptr [rbx+rax*2] movsxd rax, dword ptr [rdx] shl rax, 2 add rax, [rcx] mov ecx, esi lea edx, [rsi-1] inc esi and esi, 3 mov esi, [rax+rsi*4] mov [r14-8], esi and ecx, 3 xor ecx, 2 mov ecx, [rax+rcx*4] mov [r14-4], ecx and edx, 3 mov eax, [rax+rdx*4] mov [r14], eax inc r15 add r14, 0Ch cmp r15, 4 mov rsi, rbp jnz loc_44D19 mov eax, 10h add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_44E21: lea rdi, a0RotationRotat; "(0 <= rotation) && (rotation < 4)" lea rsi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rcx, aIntOpensubdivV_4; "int OpenSubdiv::v3_6_0::Vtr::internal::"... mov edx, 352h call ___assert_fail
long long OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints( OpenSubdiv::v3_6_0::Vtr::internal::Level *this, long long a2, int *a3, unsigned int a4, int a5) { long long v5; // rax long long v6; // r13 _QWORD *v7; // rcx long long v8; // rax int *v9; // r14 long long i; // r15 long long v11; // rax long long v12; // rdx int v13; // ecx long long v14; // rbx long long v15; // rbp long long v16; // rax long long v17; // rdx _QWORD *v18; // rcx int *v19; // rdx _QWORD *v20; // rcx __int16 v21; // si long long v22; // rax long long v25; // [rsp+10h] [rbp-58h] int *v26; // [rsp+18h] [rbp-50h] long long v27; // [rsp+28h] [rbp-40h] BYREF int v28; // [rsp+30h] [rbp-38h] if ( a4 >= 4 ) __assert_fail( "(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp", 850LL, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const"); v26 = &OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int,int *,int,int)const::rotationSequence[a4]; v5 = 2 * (int)a2 + 1; v6 = *((_QWORD *)this + 6) + 4LL * *(int *)(*((_QWORD *)this + 3) + 4 * v5); v25 = (unsigned int)a5; if ( a5 < 0 ) { v8 = *((_QWORD *)this + 6) + 4LL * *(int *)(*((_QWORD *)this + 3) + 4 * v5); } else { v7 = *(_QWORD **)(*((_QWORD *)this + 57) + 8LL * (unsigned int)a5); v8 = v7[3] + 4LL * *(int *)(*(_QWORD *)(*v7 + 24LL) + 4 * v5); } *a3 = *(_DWORD *)(v8 + 4LL * *v26); a3[1] = *(_DWORD *)(v8 + 4LL * v26[1]); a3[2] = *(_DWORD *)(v8 + 4LL * v26[2]); a3[3] = *(_DWORD *)(v8 + 4LL * v26[3]); v9 = a3 + 6; for ( i = 0LL; i != 4; ++i ) { v11 = *(int *)(v6 + 4LL * v26[i]); v12 = *((_QWORD *)this + 33); v13 = *(_DWORD *)(v12 + 8LL * (_DWORD)v11); v27 = *((_QWORD *)this + 36) + 4LL * *(int *)(v12 + 8 * v11 + 4); v28 = v13; v14 = *((_QWORD *)this + 39) + 2LL * *(int *)(v12 + 8 * v11 + 4); v15 = a2; v16 = OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::FindIndexIn4Tuple(&v27) & 3 ^ 2; v17 = *(int *)(v27 + 4 * v16); if ( a5 < 0 ) { v19 = (int *)(*((_QWORD *)this + 3) + 8 * v17 + 4); v20 = (_QWORD *)((char *)this + 48); } else { v18 = *(_QWORD **)(*((_QWORD *)this + 57) + 8 * v25); v19 = (int *)(*(_QWORD *)(*v18 + 24LL) + 4LL * (2 * (int)v17 + 1)); v20 = v18 + 3; } v21 = *(_WORD *)(v14 + 2 * v16); v22 = *v20 + 4LL * *v19; *(v9 - 2) = *(_DWORD *)(v22 + 4LL * (((_BYTE)v21 + 1) & 3)); *(v9 - 1) = *(_DWORD *)(v22 + 4LL * (v21 & 3 ^ 2u)); *v9 = *(_DWORD *)(v22 + 4LL * (((_BYTE)v21 - 1) & 3)); v9 += 3; a2 = v15; } return 16LL; }
gatherQuadRegularInteriorPatchPoints: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 CMP ECX,0x4 JNC 0x00144e21 MOV R14,RDX MOV R12,RDI MOV EAX,ECX LEA RCX,[0x1b6960] LEA RAX,[RCX + RAX*0x4] MOV qword ptr [RSP + 0x18],RAX LEA EAX,[RSI + RSI*0x1 + 0x1] CDQE MOV RCX,qword ptr [RDI + 0x18] MOVSXD R13,dword ptr [RCX + RAX*0x4] SHL R13,0x2 ADD R13,qword ptr [RDI + 0x30] TEST R8D,R8D MOV dword ptr [RSP + 0xc],R8D JS 0x00144cce MOV EDX,R8D MOV RCX,qword ptr [R12 + 0x1c8] MOV qword ptr [RSP + 0x10],RDX MOV RCX,qword ptr [RCX + RDX*0x8] MOV RDX,qword ptr [RCX] MOV RDX,qword ptr [RDX + 0x18] MOVSXD RAX,dword ptr [RDX + RAX*0x4] SHL RAX,0x2 ADD RAX,qword ptr [RCX + 0x18] JMP 0x00144cd9 LAB_00144cce: MOV EAX,R8D MOV qword ptr [RSP + 0x10],RAX MOV RAX,R13 LAB_00144cd9: LEA RCX,[R12 + 0x30] MOV qword ptr [RSP + 0x20],RCX MOV RDX,qword ptr [RSP + 0x18] MOVSXD RCX,dword ptr [RDX] MOV ECX,dword ptr [RAX + RCX*0x4] MOV dword ptr [R14],ECX MOVSXD RCX,dword ptr [RDX + 0x4] MOV ECX,dword ptr [RAX + RCX*0x4] MOV dword ptr [R14 + 0x4],ECX MOVSXD RCX,dword ptr [RDX + 0x8] MOV ECX,dword ptr [RAX + RCX*0x4] MOV dword ptr [R14 + 0x8],ECX MOVSXD RCX,dword ptr [RDX + 0xc] MOV EAX,dword ptr [RAX + RCX*0x4] MOV dword ptr [R14 + 0xc],EAX ADD R14,0x18 XOR R15D,R15D LAB_00144d19: MOV RAX,qword ptr [RSP + 0x18] MOVSXD RAX,dword ptr [RAX + R15*0x4] MOVSXD RAX,dword ptr [R13 + RAX*0x4] LEA RCX,[RAX + RAX*0x1] MOV RDX,qword ptr [R12 + 0x108] MOVSXD RDI,dword ptr [RDX + RAX*0x8 + 0x4] SHL RDI,0x2 ADD RDI,qword ptr [R12 + 0x120] MOVSXD RCX,ECX MOV ECX,dword ptr [RDX + RCX*0x4] MOV qword ptr [RSP + 0x28],RDI MOV dword ptr [RSP + 0x30],ECX MOVSXD RBX,dword ptr [RDX + RAX*0x8 + 0x4] ADD RBX,RBX ADD RBX,qword ptr [R12 + 0x138] LEA RDI,[RSP + 0x28] MOV RBP,RSI CALL 0x001396f0 AND EAX,0x3 XOR EAX,0x2 MOV RCX,qword ptr [RSP + 0x28] MOVSXD RDX,dword ptr [RCX + RAX*0x4] CMP dword ptr [RSP + 0xc],0x0 JS 0x00144db2 MOV RCX,qword ptr [R12 + 0x1c8] MOV RSI,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RCX + RSI*0x8] MOV RSI,qword ptr [RCX] LEA EDX,[0x1 + RDX*0x2] MOVSXD RDX,EDX SHL RDX,0x2 ADD RDX,qword ptr [RSI + 0x18] ADD RCX,0x18 JMP 0x00144dc4 LAB_00144db2: MOV RCX,qword ptr [R12 + 0x18] LEA RDX,[RCX + RDX*0x8] ADD RDX,0x4 MOV RCX,qword ptr [RSP + 0x20] LAB_00144dc4: MOVZX ESI,word ptr [RBX + RAX*0x2] MOVSXD RAX,dword ptr [RDX] SHL RAX,0x2 ADD RAX,qword ptr [RCX] MOV ECX,ESI LEA EDX,[RSI + -0x1] INC ESI AND ESI,0x3 MOV ESI,dword ptr [RAX + RSI*0x4] MOV dword ptr [R14 + -0x8],ESI AND ECX,0x3 XOR ECX,0x2 MOV ECX,dword ptr [RAX + RCX*0x4] MOV dword ptr [R14 + -0x4],ECX AND EDX,0x3 MOV EAX,dword ptr [RAX + RDX*0x4] MOV dword ptr [R14],EAX INC R15 ADD R14,0xc CMP R15,0x4 MOV RSI,RBP JNZ 0x00144d19 MOV EAX,0x10 ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00144e21: LEA RDI,[0x1b63da] LEA RSI,[0x1b5a6a] LEA RCX,[0x1b6466] MOV EDX,0x352 CALL 0x00139540
/* OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(int, int*, int, int) const */ int8 __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints (Level *this,int param_1,int *param_2,int param_3,int param_4) { long lVar1; ushort uVar2; int iVar3; int iVar4; long *plVar5; uint uVar6; long lVar7; ulong uVar8; Level *pLVar9; int *piVar10; long lVar11; int *piVar12; long lVar13; ulong local_58; long local_40; int4 local_38; if (3 < (uint)param_3) { /* WARNING: Subroutine does not return */ __assert_fail("(0 <= rotation) && (rotation < 4)", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/level.cpp" ,0x352, "int OpenSubdiv::v3_6_0::Vtr::internal::Level::gatherQuadRegularInteriorPatchPoints(Index, Index *, int, int) const" ); } lVar1 = (ulong)(uint)param_3 * 4; lVar7 = (long)(param_1 * 2 + 1); lVar11 = (long)*(int *)(*(long *)(this + 0x18) + lVar7 * 4) * 4 + *(long *)(this + 0x30); lVar13 = lVar11; if (-1 < param_4) { plVar5 = *(long **)(*(long *)(this + 0x1c8) + (ulong)(uint)param_4 * 8); lVar13 = (long)*(int *)(*(long *)(*plVar5 + 0x18) + lVar7 * 4) * 4 + plVar5[3]; } local_58 = (ulong)(uint)param_4; *param_2 = *(int *)(lVar13 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + lVar1) * 4); param_2[1] = *(int *)(lVar13 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + lVar1 + 4) * 4); param_2[2] = *(int *)(lVar13 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + lVar1 + 8) * 4); param_2[3] = *(int *)(lVar13 + (long)*(int *)(gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + lVar1 + 0xc) * 4); piVar12 = param_2 + 6; lVar13 = 0; do { iVar3 = *(int *)(lVar11 + (long)*(int *)((long)( gatherQuadRegularInteriorPatchPoints(int,int*,int,int) ::rotationSequence + lVar1) + lVar13 * 4) * 4); lVar7 = *(long *)(this + 0x108); local_40 = (long)*(int *)(lVar7 + 4 + (long)iVar3 * 8) * 4 + *(long *)(this + 0x120); local_38 = *(int4 *)(lVar7 + (long)(iVar3 * 2) * 4); iVar3 = *(int *)(lVar7 + 4 + (long)iVar3 * 8); lVar7 = *(long *)(this + 0x138); uVar6 = ConstArray<int>::FindIndexIn4Tuple((ConstArray<int> *)&local_40,param_1); uVar8 = (ulong)(uVar6 & 3 ^ 2); iVar4 = *(int *)(local_40 + uVar8 * 4); if (param_4 < 0) { piVar10 = (int *)(*(long *)(this + 0x18) + (long)iVar4 * 8 + 4); pLVar9 = this + 0x30; } else { plVar5 = *(long **)(*(long *)(this + 0x1c8) + local_58 * 8); piVar10 = (int *)((long)(iVar4 * 2 + 1) * 4 + *(long *)(*plVar5 + 0x18)); pLVar9 = (Level *)(plVar5 + 3); } uVar2 = *(ushort *)((long)iVar3 * 2 + lVar7 + uVar8 * 2); lVar7 = (long)*piVar10 * 4 + *(long *)pLVar9; piVar12[-2] = *(int *)(lVar7 + (ulong)(uVar2 + 1 & 3) * 4); piVar12[-1] = *(int *)(lVar7 + (ulong)(uVar2 & 3 ^ 2) * 4); *piVar12 = *(int *)(lVar7 + (ulong)(uVar2 - 1 & 3) * 4); lVar13 = lVar13 + 1; piVar12 = piVar12 + 3; } while (lVar13 != 4); return 0x10; }
7,070
my_hash_sort_ucs2_bin
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_ucs2_bin(CHARSET_INFO *cs, const uchar *key, size_t len, ulong *nr1, ulong *nr2) { size_t lengthsp= my_lengthsp_mb2(cs, (const char *) key, len); my_hash_sort_ucs2_nopad_bin(cs, key, lengthsp, nr1, nr2); }
O3
c
my_hash_sort_ucs2_bin: movq %rdx, %rax cmpq $0x2, %rdx jl 0x4ce41 cmpb $0x20, -0x1(%rsi,%rax) jne 0x4ce39 leaq -0x2(%rax), %rdx cmpb $0x0, -0x2(%rsi,%rax) je 0x4ce1e movq (%rcx), %rdx movq (%r8), %rdi jmp 0x4ce4d movq (%rcx), %rdx movq (%r8), %rdi cmpq $0x1, %rax jne 0x4ce80 pushq %rbp movq %rsp, %rbp addq %rsi, %rax movl %edx, %r9d andl $0x3f, %r9d addq %rdi, %r9 movzbl (%rsi), %r10d imulq %r9, %r10 movq %rdx, %r9 shlq $0x8, %r9 addq %r10, %r9 xorq %r9, %rdx addq $0x3, %rdi incq %rsi cmpq %rax, %rsi jb 0x4ce54 popq %rbp movq %rdx, (%rcx) movq %rdi, (%r8) retq
my_hash_sort_ucs2_bin: mov rax, rdx cmp rdx, 2 jl short loc_4CE41 cmp byte ptr [rsi+rax-1], 20h ; ' ' jnz short loc_4CE39 lea rdx, [rax-2] cmp byte ptr [rsi+rax-2], 0 jz short my_hash_sort_ucs2_bin loc_4CE39: mov rdx, [rcx] mov rdi, [r8] jmp short loc_4CE4D loc_4CE41: mov rdx, [rcx] mov rdi, [r8] cmp rax, 1 jnz short loc_4CE80 loc_4CE4D: push rbp mov rbp, rsp add rax, rsi loc_4CE54: mov r9d, edx and r9d, 3Fh add r9, rdi movzx r10d, byte ptr [rsi] imul r10, r9 mov r9, rdx shl r9, 8 add r9, r10 xor rdx, r9 add rdi, 3 inc rsi cmp rsi, rax jb short loc_4CE54 pop rbp loc_4CE80: mov [rcx], rdx mov [r8], rdi retn
unsigned long long my_hash_sort_ucs2_bin( long long a1, unsigned long long a2, long long a3, long long *a4, long long *a5) { unsigned long long result; // rax long long v6; // rdx long long v7; // rdi while ( 1 ) { result = a3; if ( a3 < 2 ) break; if ( *(_BYTE *)(a2 + a3 - 1) == 32 ) { a3 -= 2LL; if ( !*(_BYTE *)(a2 + result - 2) ) continue; } v6 = *a4; v7 = *a5; goto LABEL_6; } v6 = *a4; v7 = *a5; if ( result != 1 ) goto LABEL_8; LABEL_6: result += a2; do { v6 ^= (v7 + (v6 & 0x3F)) * *(unsigned __int8 *)a2 + (v6 << 8); v7 += 3LL; ++a2; } while ( a2 < result ); LABEL_8: *a4 = v6; *a5 = v7; return result; }
my_hash_sort_ucs2_bin: MOV RAX,RDX CMP RDX,0x2 JL 0x0014ce41 CMP byte ptr [RSI + RAX*0x1 + -0x1],0x20 JNZ 0x0014ce39 LEA RDX,[RAX + -0x2] CMP byte ptr [RSI + RAX*0x1 + -0x2],0x0 JZ 0x0014ce1e LAB_0014ce39: MOV RDX,qword ptr [RCX] MOV RDI,qword ptr [R8] JMP 0x0014ce4d LAB_0014ce41: MOV RDX,qword ptr [RCX] MOV RDI,qword ptr [R8] CMP RAX,0x1 JNZ 0x0014ce80 LAB_0014ce4d: PUSH RBP MOV RBP,RSP ADD RAX,RSI LAB_0014ce54: MOV R9D,EDX AND R9D,0x3f ADD R9,RDI MOVZX R10D,byte ptr [RSI] IMUL R10,R9 MOV R9,RDX SHL R9,0x8 ADD R9,R10 XOR RDX,R9 ADD RDI,0x3 INC RSI CMP RSI,RAX JC 0x0014ce54 POP RBP LAB_0014ce80: MOV qword ptr [RCX],RDX MOV qword ptr [R8],RDI RET
void my_hash_sort_ucs2_bin (int8 param_1,byte *param_2,long param_3,ulong *param_4,long *param_5) { byte *pbVar1; long lVar2; ulong uVar3; long lVar4; do { lVar2 = param_3; if (lVar2 < 2) { uVar3 = *param_4; lVar4 = *param_5; if (lVar2 != 1) goto LAB_0014ce80; goto LAB_0014ce4d; } } while ((param_2[lVar2 + -1] == 0x20) && (param_3 = lVar2 + -2, param_2[lVar2 + -2] == 0)); uVar3 = *param_4; lVar4 = *param_5; LAB_0014ce4d: pbVar1 = param_2 + lVar2; do { uVar3 = uVar3 ^ uVar3 * 0x100 + (ulong)*param_2 * ((ulong)((uint)uVar3 & 0x3f) + lVar4); lVar4 = lVar4 + 3; param_2 = param_2 + 1; } while (param_2 < pbVar1); LAB_0014ce80: *param_4 = uVar3; *param_5 = lVar4; return; }
7,071
google::protobuf::internal::ExtensionSet::MaybeNewRepeatedExtension(google::protobuf::FieldDescriptor const*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set_heavy.cc
ExtensionSet::Extension* ExtensionSet::MaybeNewRepeatedExtension( const FieldDescriptor* descriptor) { Extension* extension; if (MaybeNewExtension(descriptor->number(), descriptor, &extension)) { extension->type = descriptor->type(); GOOGLE_DCHECK_EQ(cpp_type(extension->type), FieldDescriptor::CPPTYPE_MESSAGE); extension->is_repeated = true; extension->repeated_message_value = Arena::CreateMessage<RepeatedPtrField<MessageLite> >(arena_); } else { GOOGLE_DCHECK_TYPE(*extension, REPEATED, MESSAGE); } return extension; }
O3
cpp
google::protobuf::internal::ExtensionSet::MaybeNewRepeatedExtension(google::protobuf::FieldDescriptor const*): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx movl 0x4(%rsi), %esi movq %rsp, %rcx movq %r14, %rdx callq 0x94258 testb %al, %al je 0x6225e movq 0x18(%r14), %rdi testq %rdi, %rdi je 0x621f8 leaq -0x275c3(%rip), %rax # 0x3ac20 leaq 0x10(%rsp), %rsi movq %rax, (%rsi) leaq 0x8(%rsp), %rdx movq %r14, (%rdx) callq 0x3fc96 movb 0x2(%r14), %al movq (%rsp), %r14 movb %al, 0x8(%r14) movb $0x1, 0x9(%r14) movq (%rbx), %rbx testq %rbx, %rbx je 0x62243 leaq 0x9db90(%rip), %rdx # 0xffda8 movl $0x18, %esi movq %rbx, %rdi callq 0x92e40 movq %rax, (%rdx) leaq 0x1928(%rip), %rcx # 0x63b57 movq %rcx, 0x8(%rdx) movq %rbx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rax) movq (%rsp), %r14 jmp 0x6225b movl $0x18, %edi callq 0xf350 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, (%r14) movq (%rsp), %rax addq $0x18, %rsp popq %rbx popq %r14 retq
_ZN6google8protobuf8internal12ExtensionSet25MaybeNewRepeatedExtensionEPKNS0_15FieldDescriptorE: push r14 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi mov esi, [rsi+4]; int mov rcx, rsp; google::protobuf::internal::ExtensionSet::Extension ** mov rdx, r14; google::protobuf::FieldDescriptor * call _ZN6google8protobuf8internal12ExtensionSet17MaybeNewExtensionEiPKNS0_15FieldDescriptorEPPNS2_9ExtensionE; google::protobuf::internal::ExtensionSet::MaybeNewExtension(int,google::protobuf::FieldDescriptor const*,google::protobuf::internal::ExtensionSet::Extension **) test al, al jz loc_6225E mov rdi, [r14+18h] test rdi, rdi jz short loc_621F8 lea rax, _ZN6google8protobuf15FieldDescriptor12TypeOnceInitEPKS1_; google::protobuf::FieldDescriptor::TypeOnceInit(google::protobuf::FieldDescriptor const*) lea rsi, [rsp+28h+var_18] mov [rsi], rax lea rdx, [rsp+28h+var_20] mov [rdx], r14 call _ZSt9call_onceIPFvPKN6google8protobuf15FieldDescriptorEEJS4_EEvRSt9once_flagOT_DpOT0_; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>(std::once_flag &,void (*)(google::protobuf::FieldDescriptor const*) &&,google::protobuf::FieldDescriptor const* &&) loc_621F8: mov al, [r14+2] mov r14, [rsp+28h+var_28] mov [r14+8], al mov byte ptr [r14+9], 1 mov rbx, [rbx] test rbx, rbx jz short loc_62243 lea rdx, _ZTIN6google8protobuf16RepeatedPtrFieldINS0_11MessageLiteEEE; type_info * mov esi, 18h; unsigned __int64 mov rdi, rbx; this call _ZN6google8protobuf5Arena26AllocateAlignedWithCleanupEmPKSt9type_info; google::protobuf::Arena::AllocateAlignedWithCleanup(ulong,std::type_info const*) mov [rdx], rax lea rcx, _ZN6google8protobuf8internal21arena_destruct_objectINS0_16RepeatedPtrFieldINS0_11MessageLiteEEEEEvPv; google::protobuf::internal::arena_destruct_object<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>>(void *) mov [rdx+8], rcx mov [rax], rbx xorps xmm0, xmm0 movups xmmword ptr [rax+8], xmm0 mov r14, [rsp+28h+var_28] jmp short loc_6225B loc_62243: mov edi, 18h; unsigned __int64 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 loc_6225B: mov [r14], rax loc_6225E: mov rax, [rsp+28h+var_28] add rsp, 18h pop rbx pop r14 retn
google::protobuf::internal::ExtensionSet::Extension * google::protobuf::internal::ExtensionSet::MaybeNewRepeatedExtension( google::protobuf::Arena **this, const google::protobuf::FieldDescriptor *a2) { long long v3; // rcx long long v4; // r8 long long v5; // r9 long long v6; // rdi google::protobuf::internal::ExtensionSet::Extension *v7; // r14 google::protobuf::Arena *v8; // rbx long long AlignedWithCleanup; // rax long long *v10; // rdx google::protobuf::internal::ExtensionSet::Extension *v12; // [rsp+0h] [rbp-28h] BYREF const google::protobuf::FieldDescriptor *v13; // [rsp+8h] [rbp-20h] BYREF long long ( *v14[3])(google::protobuf::FieldDescriptor *, const google::protobuf::FieldDescriptor *); // [rsp+10h] [rbp-18h] BYREF if ( (unsigned __int8)google::protobuf::internal::ExtensionSet::MaybeNewExtension( (google::protobuf::internal::ExtensionSet *)this, *((_DWORD *)a2 + 1), a2, &v12) ) { v6 = *((_QWORD *)a2 + 3); if ( v6 ) { v14[0] = google::protobuf::FieldDescriptor::TypeOnceInit; v13 = a2; std::call_once<void (*)(google::protobuf::FieldDescriptor const*),google::protobuf::FieldDescriptor const*>( v6, (long long)v14, (long long)&v13, v3, v4, v5); } v7 = v12; *((_BYTE *)v12 + 8) = *((_BYTE *)a2 + 2); *((_BYTE *)v7 + 9) = 1; v8 = *this; if ( v8 ) { AlignedWithCleanup = google::protobuf::Arena::AllocateAlignedWithCleanup( v8, 0x18uLL, (const type_info *)&`typeinfo for'google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>); *v10 = AlignedWithCleanup; v10[1] = (long long)google::protobuf::internal::arena_destruct_object<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>>; *(_QWORD *)AlignedWithCleanup = v8; *(_OWORD *)(AlignedWithCleanup + 8) = 0LL; v7 = v12; } else { AlignedWithCleanup = operator new(0x18uLL); *(_OWORD *)AlignedWithCleanup = 0LL; *(_QWORD *)(AlignedWithCleanup + 16) = 0LL; } *(_QWORD *)v7 = AlignedWithCleanup; } return v12; }
MaybeNewRepeatedExtension: PUSH R14 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI MOV ESI,dword ptr [RSI + 0x4] MOV RCX,RSP MOV RDX,R14 CALL 0x00194258 TEST AL,AL JZ 0x0016225e MOV RDI,qword ptr [R14 + 0x18] TEST RDI,RDI JZ 0x001621f8 LEA RAX,[0x13ac20] LEA RSI,[RSP + 0x10] MOV qword ptr [RSI],RAX LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],R14 CALL 0x0013fc96 LAB_001621f8: MOV AL,byte ptr [R14 + 0x2] MOV R14,qword ptr [RSP] MOV byte ptr [R14 + 0x8],AL MOV byte ptr [R14 + 0x9],0x1 MOV RBX,qword ptr [RBX] TEST RBX,RBX JZ 0x00162243 LEA RDX,[0x1ffda8] MOV ESI,0x18 MOV RDI,RBX CALL 0x00192e40 MOV qword ptr [RDX],RAX LEA RCX,[0x163b57] MOV qword ptr [RDX + 0x8],RCX MOV qword ptr [RAX],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x8],XMM0 MOV R14,qword ptr [RSP] JMP 0x0016225b LAB_00162243: MOV EDI,0x18 CALL 0x0010f350 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV qword ptr [RAX + 0x10],0x0 LAB_0016225b: MOV qword ptr [R14],RAX LAB_0016225e: MOV RAX,qword ptr [RSP] ADD RSP,0x18 POP RBX POP R14 RET
/* google::protobuf::internal::ExtensionSet::MaybeNewRepeatedExtension(google::protobuf::FieldDescriptor const*) */ Extension * __thiscall google::protobuf::internal::ExtensionSet::MaybeNewRepeatedExtension (ExtensionSet *this,FieldDescriptor *param_1) { ulong uVar1; char cVar2; ulong *puVar3; Extension *pEVar4; int1 auVar5 [16]; Extension *local_28; FieldDescriptor *local_20; code *local_18; cVar2 = MaybeNewExtension(this,*(int *)(param_1 + 4),param_1,&local_28); if (cVar2 != '\0') { if (*(once_flag **)(param_1 + 0x18) != (once_flag *)0x0) { local_18 = FieldDescriptor::TypeOnceInit; local_20 = param_1; std:: call_once<void(*)(google::protobuf::FieldDescriptor_const*),google::protobuf::FieldDescriptor_const*> (*(once_flag **)(param_1 + 0x18),(_func_void_FieldDescriptor_ptr *)&local_18, &local_20); } pEVar4 = local_28; *(FieldDescriptor *)(local_28 + 8) = param_1[2]; local_28[9] = (Extension)0x1; uVar1 = *(ulong *)this; if (uVar1 == 0) { puVar3 = (ulong *)operator_new(0x18); *puVar3 = 0; puVar3[1] = 0; puVar3[2] = 0; } else { auVar5 = Arena::AllocateAlignedWithCleanup(uVar1,(type_info *)0x18); puVar3 = auVar5._0_8_; *auVar5._8_8_ = puVar3; auVar5._8_8_[1] = arena_destruct_object<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>>; *puVar3 = uVar1; puVar3[1] = 0; puVar3[2] = 0; pEVar4 = local_28; } *(ulong **)pEVar4 = puVar3; } return local_28; }
7,072
testing::internal::PrintTo(char const*, std::ostream*)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest-printers.cc
void PrintTo(const char* s, ostream* os) { PrintCStringTo(s, os); }
O3
cpp
testing::internal::PrintTo(char const*, std::ostream*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx testq %rdi, %rdi je 0x179c5 movq %rdi, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x83b0 leaq 0x2cdc9(%rip), %rsi # 0x44764 movl $0xd, %edx movq %rax, %rdi callq 0x85b0 movq %r14, %rdi callq 0x8200 movq %r14, %rdi movq %rax, %rsi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x17d45 leaq 0x2cca2(%rip), %rsi # 0x4466e movl $0x4, %edx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x85b0
_ZN7testing8internal7PrintToEPKcPSo: push r14 push rbx push rax mov rbx, rsi test rdi, rdi jz short loc_179C5 mov r14, rdi mov rdi, rbx mov rsi, r14 call __ZNSo9_M_insertIPKvEERSoT_; std::ostream::_M_insert<void const*>(void const*) lea rsi, aPointingTo; " pointing to " mov edx, 0Dh mov rdi, rax call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) mov rdi, r14 call _strlen mov rdi, r14 mov rsi, rax mov rdx, rbx add rsp, 8 pop rbx pop r14 jmp _ZN7testing8internalL20PrintCharsAsStringToIcEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<char>(char const*,ulong,std::ostream *) loc_179C5: lea rsi, aNull_0; "NULL" mov edx, 4 mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
long long testing::internal::PrintTo(testing::internal *this, const char *a2, std::ostream *a3) { long long v3; // rax long long v4; // rax long long v5; // rcx if ( !this ) return std::__ostream_insert<char,std::char_traits<char>>(a2, "NULL", 4LL); v3 = std::ostream::_M_insert<void const*>(a2, this, a3); std::__ostream_insert<char,std::char_traits<char>>(v3, " pointing to ", 13LL); v4 = strlen(this); return testing::internal::PrintCharsAsStringTo<char>(this, v4, a2, v5); }
PrintTo: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI TEST RDI,RDI JZ 0x001179c5 MOV R14,RDI MOV RDI,RBX MOV RSI,R14 CALL 0x001083b0 LEA RSI,[0x144764] MOV EDX,0xd MOV RDI,RAX CALL 0x001085b0 MOV RDI,R14 CALL 0x00108200 MOV RDI,R14 MOV RSI,RAX MOV RDX,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00117d45 LAB_001179c5: LEA RSI,[0x14466e] MOV EDX,0x4 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001085b0
/* testing::internal::PrintTo(char const*, std::ostream*) */ void testing::internal::PrintTo(char *param_1,ostream *param_2) { ostream *poVar1; size_t sVar2; if (param_1 != (char *)0x0) { poVar1 = std::ostream::_M_insert<void_const*>(param_2); std::__ostream_insert<char,std::char_traits<char>>(poVar1," pointing to ",0xd); sVar2 = strlen(param_1); PrintCharsAsStringTo<char>(param_1,sVar2,param_2); return; } std::__ostream_insert<char,std::char_traits<char>>(param_2,"NULL",4); return; }
7,073
CLI::CallForHelp::CallForHelp()
MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/Error.hpp
CallForHelp() : CallForHelp("This should be caught in your main function, see examples", ExitCodes::Success) {}
O1
cpp
CLI::CallForHelp::CallForHelp(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movl %edx, %ebp movq %rsi, %r15 movq %rdi, %r14 leaq 0x30(%rsp), %rbx movq %rbx, -0x10(%rbx) leaq 0x1296c(%rip), %rsi # 0x379e0 leaq 0x12970(%rip), %rdx # 0x379eb leaq 0x20(%rsp), %rdi callq 0x12040 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq (%r15), %rcx leaq 0x10(%r15), %rax cmpq %rax, %rcx je 0x250a9 movq %rcx, (%rsp) movq (%rax), %rcx movq %rcx, 0x10(%rsp) jmp 0x250b1 movups (%rax), %xmm0 movups %xmm0, (%r12) movq 0x8(%r15), %rcx movq %rsp, %rdx movq %rcx, 0x8(%rdx) movq %rax, (%r15) movq $0x0, 0x8(%r15) movb $0x0, 0x10(%r15) leaq 0x20(%rsp), %rsi movq %r14, %rdi movl %ebp, %ecx callq 0x24ec6 movq (%rsp), %rdi cmpq %r12, %rdi je 0x250f1 movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 movq 0x20(%rsp), %rdi cmpq %rbx, %rdi je 0x25108 movq 0x30(%rsp), %rsi incq %rsi callq 0x7430 leaq 0x245d1(%rip), %rax # 0x496e0 movq %rax, (%r14) addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0x25138 movq 0x10(%rsp), %rsi incq %rsi callq 0x7430 leaq 0x20(%rsp), %rdi movq %rbx, %rsi callq 0x7b3e movq %r14, %rdi callq 0x7780 nop
_ZN3CLI11CallForHelpC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9ExitCodesE: push rbp push r15 push r14 push r12 push rbx sub rsp, 40h mov ebp, edx mov r15, rsi mov r14, rdi lea rbx, [rsp+68h+var_38] mov [rbx-10h], rbx lea rsi, aCallforhelp; "CallForHelp" lea rdx, aCallforhelp+0Bh; "" lea rdi, [rsp+68h+var_48] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rcx, [r15] lea rax, [r15+10h] cmp rcx, rax jz short loc_250A9 mov [rsp+68h+var_68], rcx mov rcx, [rax] mov [rsp+68h+var_58], rcx jmp short loc_250B1 loc_250A9: movups xmm0, xmmword ptr [rax] movups xmmword ptr [r12], xmm0 loc_250B1: mov rcx, [r15+8] mov rdx, rsp mov [rdx+8], rcx mov [r15], rax mov qword ptr [r15+8], 0 mov byte ptr [r15+10h], 0 lea rsi, [rsp+68h+var_48] mov rdi, r14; int mov ecx, ebp call _ZN3CLI7SuccessC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_NS_9ExitCodesE; CLI::Success::Success(std::string,std::string,CLI::ExitCodes) mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_250F1 mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_250F1: mov rdi, [rsp+68h+var_48]; void * cmp rdi, rbx jz short loc_25108 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25108: lea rax, off_496E0 mov [r14], rax add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov r14, rax mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_25138 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_25138: lea rdi, [rsp+arg_18] mov rsi, rbx call _ZN3CLI11CallForHelpC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS_9ExitCodesE_cold_1; CLI::CallForHelp::CallForHelp(std::string,CLI::ExitCodes) [clone] mov rdi, r14 call __Unwind_Resume
void ( ** CLI::CallForHelp::CallForHelp(_QWORD *a1, long long a2, int a3))(CLI::Error *__hidden this) { int v4; // r8d int v5; // r9d __int128 *v6; // rax void ( **result)(CLI::Error *__hidden); // rax void *v8[2]; // [rsp+0h] [rbp-68h] BYREF __int128 v9; // [rsp+10h] [rbp-58h] BYREF void *v10[2]; // [rsp+20h] [rbp-48h] BYREF _QWORD v11[7]; // [rsp+30h] [rbp-38h] BYREF v10[0] = v11; std::string::_M_construct<char const*>(v10, "CallForHelp", (long long)""); v8[0] = &v9; v6 = (__int128 *)(a2 + 16); if ( *(_QWORD *)a2 == a2 + 16 ) { v9 = *v6; } else { v8[0] = *(void **)a2; *(_QWORD *)&v9 = *(_QWORD *)v6; } v8[1] = *(void **)(a2 + 8); *(_QWORD *)a2 = v6; *(_QWORD *)(a2 + 8) = 0LL; *(_BYTE *)(a2 + 16) = 0; CLI::Success::Success(a1, (long long)v10, (long long)v8, a3, v4, v5); if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); if ( v10[0] != v11 ) operator delete(v10[0], v11[0] + 1LL); result = off_496E0; *a1 = off_496E0; return result; }
CallForHelp: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV EBP,EDX MOV R15,RSI MOV R14,RDI LEA RBX,[RSP + 0x30] MOV qword ptr [RBX + -0x10],RBX LEA RSI,[0x1379e0] LEA RDX,[0x1379eb] LEA RDI,[RSP + 0x20] CALL 0x00112040 LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RCX,qword ptr [R15] LEA RAX,[R15 + 0x10] CMP RCX,RAX JZ 0x001250a9 MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX] MOV qword ptr [RSP + 0x10],RCX JMP 0x001250b1 LAB_001250a9: MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [R12],XMM0 LAB_001250b1: MOV RCX,qword ptr [R15 + 0x8] MOV RDX,RSP MOV qword ptr [RDX + 0x8],RCX MOV qword ptr [R15],RAX MOV qword ptr [R15 + 0x8],0x0 MOV byte ptr [R15 + 0x10],0x0 LAB_001250cc: LEA RSI,[RSP + 0x20] MOV RDI,R14 MOV ECX,EBP CALL 0x00124ec6 LAB_001250db: MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x001250f1 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107430 LAB_001250f1: MOV RDI,qword ptr [RSP + 0x20] CMP RDI,RBX JZ 0x00125108 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x00107430 LAB_00125108: LEA RAX,[0x1496e0] MOV qword ptr [R14],RAX ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* CLI::CallForHelp::CallForHelp(std::__cxx11::string, CLI::ExitCodes) */ void __thiscall CLI::CallForHelp::CallForHelp(CallForHelp *this,long *param_2,int4 param_3) { long *plVar1; long *local_68; long local_60; long local_58; int4 uStack_50; int4 uStack_4c; long *local_48 [2]; long local_38 [2]; local_48[0] = local_38; std::__cxx11::string::_M_construct<char_const*>(local_48,"CallForHelp",""); plVar1 = param_2 + 2; if ((long *)*param_2 == plVar1) { local_58 = *plVar1; uStack_50 = (int4)param_2[3]; uStack_4c = *(int4 *)((long)param_2 + 0x1c); local_68 = &local_58; } else { local_58 = *plVar1; local_68 = (long *)*param_2; } local_60 = param_2[1]; *param_2 = (long)plVar1; param_2[1] = 0; *(int1 *)(param_2 + 2) = 0; /* try { // try from 001250cc to 001250da has its CatchHandler @ 0012511f */ Success::Success((Success *)this,local_48,&local_68,param_3); if (local_68 != &local_58) { operator_delete(local_68,local_58 + 1); } if (local_48[0] != local_38) { operator_delete(local_48[0],local_38[0] + 1); } *(int ***)this = &PTR__Error_001496e0; return; }
7,074
num_keys_cmp
bluesky950520[P]quickjs/quickjs.c
static int num_keys_cmp(const void *p1, const void *p2, void *opaque) { JSContext *ctx = opaque; JSAtom atom1 = ((const JSPropertyEnum *)p1)->atom; JSAtom atom2 = ((const JSPropertyEnum *)p2)->atom; uint32_t v1, v2; BOOL atom1_is_integer, atom2_is_integer; atom1_is_integer = JS_AtomIsArrayIndex(ctx, &v1, atom1); atom2_is_integer = JS_AtomIsArrayIndex(ctx, &v2, atom2); assert(atom1_is_integer && atom2_is_integer); if (v1 < v2) return -1; else if (v1 == v2) return 0; else return 1; }
O1
c
num_keys_cmp: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movl 0x4(%rdi), %edx movl 0x4(%rsi), %ebp leaq 0x4(%rsp), %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x41849 movq %rsp, %r15 movq %rbx, %rdi movq %r15, %rsi movl %ebp, %edx callq 0x41849 movl (%r14), %eax xorl %ecx, %ecx cmpl (%r15), %eax setne %cl movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmovael %ecx, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
num_keys_cmp: push rbp push r15 push r14 push rbx push rax mov rbx, rdx mov edx, [rdi+4] mov ebp, [rsi+4] lea r14, [rsp+28h+var_24] mov rdi, rbx mov rsi, r14 call JS_AtomIsArrayIndex mov r15, rsp mov rdi, rbx mov rsi, r15 mov edx, ebp call JS_AtomIsArrayIndex mov eax, [r14] xor ecx, ecx cmp eax, [r15] setnz cl mov eax, 0FFFFFFFFh cmovnb eax, ecx add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long num_keys_cmp(long long a1, long long a2, long long a3) { long long v3; // rax int v5; // ebp long long result; // rax _QWORD v7[5]; // [rsp-4h] [rbp-28h] BYREF v7[0] = v3; v5 = *(_DWORD *)(a2 + 4); JS_AtomIsArrayIndex(a3, (_DWORD *)v7 + 1, *(_DWORD *)(a1 + 4)); JS_AtomIsArrayIndex(a3, v7, v5); result = 0xFFFFFFFFLL; if ( HIDWORD(v7[0]) >= LODWORD(v7[0]) ) return HIDWORD(v7[0]) != LODWORD(v7[0]); return result; }
num_keys_cmp: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV EDX,dword ptr [RDI + 0x4] MOV EBP,dword ptr [RSI + 0x4] LEA R14,[RSP + 0x4] MOV RDI,RBX MOV RSI,R14 CALL 0x00141849 MOV R15,RSP MOV RDI,RBX MOV RSI,R15 MOV EDX,EBP CALL 0x00141849 MOV EAX,dword ptr [R14] XOR ECX,ECX CMP EAX,dword ptr [R15] SETNZ CL MOV EAX,0xffffffff CMOVNC EAX,ECX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong num_keys_cmp(long param_1,long param_2,int8 param_3) { int4 uVar1; int8 in_RAX; ulong uVar2; int8 local_28; uVar1 = *(int4 *)(param_2 + 4); local_28 = in_RAX; JS_AtomIsArrayIndex(param_3,(long)&local_28 + 4,*(int4 *)(param_1 + 4)); JS_AtomIsArrayIndex(param_3,&local_28,uVar1); uVar2 = 0xffffffff; if ((uint)local_28 <= local_28._4_4_) { uVar2 = (ulong)(local_28._4_4_ != (uint)local_28); } return uVar2; }
7,075
minja::chat_template::add_system(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/chat-template.hpp
static nlohmann::ordered_json add_system(const nlohmann::ordered_json & messages, const std::string & system_prompt) { json messages_with_system = messages; if (messages_with_system.size() > 0 && messages_with_system[0].at("role") == "system") { std::string existing_system = messages_with_system.at(0).at("content"); messages_with_system[0] = json { {"role", "system"}, {"content", existing_system + "\n" + system_prompt}, }; } else { messages_with_system.insert(messages_with_system.begin(), json { {"role", "system"}, {"content", system_prompt}, }); } return messages_with_system; }
O2
cpp
minja::chat_template::add_system(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x120, %rsp # imm = 0x120 movq %rdx, %r14 movq %rdi, %rbx callq 0x4228c movq %rbx, %rdi callq 0x42134 testq %rax, %rax je 0x7a184 movq %rbx, %rdi xorl %esi, %esi callq 0x7d954 leaq 0x3b121(%rip), %rsi # 0xb50ff movq %rax, %rdi callq 0x7a4fa leaq 0x3b18d(%rip), %rsi # 0xb517a movq %rax, %rdi callq 0x7a936 testb %al, %al je 0x7a184 movq %rbx, %rdi xorl %esi, %esi callq 0x7da4e leaq 0x3b0fb(%rip), %rsi # 0xb5109 movq %rax, %rdi callq 0x7ad1a leaq 0xe0(%rsp), %rdi movq %rax, %rsi callq 0x63fea leaq 0x3b0d2(%rip), %rsi # 0xb50ff leaq 0x50(%rsp), %rdi callq 0x5c53a leaq 0x68(%rsp), %rdi leaq 0x3b137(%rip), %rsi # 0xb517a callq 0x5cdfa leaq 0x80(%rsp), %r15 leaq 0x50(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5c54a leaq 0x98(%rsp), %r15 leaq 0x3b09a(%rip), %rsi # 0xb5109 leaq 0x20(%rsp), %rdi callq 0x5c562 leaq 0x37858(%rip), %rdx # 0xb18d8 movq %rsp, %rdi leaq 0xe0(%rsp), %rsi callq 0x385b7 leaq 0xc0(%rsp), %rdi movq %rsp, %rsi movq %r14, %rdx callq 0x3ae20 leaq 0x38(%rsp), %rdi leaq 0xc0(%rsp), %rsi callq 0x7dbae leaq 0x20(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5c54a leaq 0xb0(%rsp), %rdi leaq 0x80(%rsp), %rsi pushq $0x2 popq %rdx pushq $0x1 popq %rcx pushq $0x2 popq %r8 callq 0x5cbe6 movq %rbx, %rdi xorl %esi, %esi callq 0x7d954 leaq 0xb0(%rsp), %r14 movq %rax, %rdi movq %r14, %rsi callq 0x400ba movq %r14, %rdi callq 0x3d534 pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x80, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a10d pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x20, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a12b leaq 0xc0(%rsp), %rdi callq 0x251b8 movq %rsp, %rdi callq 0x251b8 pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x50, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a15b leaq 0xe0(%rsp), %rdi callq 0x251b8 jmp 0x7a2bc leaq 0xe0(%rsp), %r15 movq %r15, %rdi movq %rbx, %rsi callq 0x4232c movq (%r15), %rax movq %rax, 0x100(%rsp) movups 0x8(%r15), %xmm0 movups %xmm0, 0x108(%rsp) movq 0x18(%r15), %rax movq %rax, 0x118(%rsp) leaq 0x3af3d(%rip), %rsi # 0xb50ff leaq 0x50(%rsp), %rdi callq 0x5c53a leaq 0x68(%rsp), %rdi leaq 0x3afa2(%rip), %rsi # 0xb517a callq 0x5cdfa leaq 0x80(%rsp), %r15 leaq 0x50(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5c54a leaq 0x98(%rsp), %r15 leaq 0x3af05(%rip), %rsi # 0xb5109 leaq 0x20(%rsp), %rdi callq 0x5c562 leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x5c708 leaq 0x20(%rsp), %rsi pushq $0x2 popq %rdx movq %r15, %rdi callq 0x5c54a movq %rsp, %rdi leaq 0x80(%rsp), %rsi pushq $0x2 popq %rdx pushq $0x1 popq %rcx pushq $0x2 popq %r8 callq 0x5cbe6 leaq 0xc0(%rsp), %rdi leaq 0x100(%rsp), %rdx movq %rsp, %rcx movq %rbx, %rsi callq 0x7dbbe movq %rsp, %rdi callq 0x3d534 pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x80, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a26c pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x20, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a28a pushq $0x18 popq %r14 leaq (%rsp,%r14), %rdi addq $0x50, %rdi callq 0x3d534 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x7a2a5 movq %rbx, %rax addq $0x120, %rsp # imm = 0x120 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0xb0(%rsp), %rdi callq 0x3d534 jmp 0x7a2e4 movq %rax, %r14 pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x80, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a2e8 xorl %ebp, %ebp jmp 0x7a30c movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x20, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a310 movb $0x1, %r12b jmp 0x7a335 movq %rax, %r14 movb $0x1, %bpl xorl %r12d, %r12d leaq 0xc0(%rsp), %rdi callq 0x251b8 jmp 0x7a34d movq %rax, %r14 movb $0x1, %bpl xorl %r12d, %r12d movq %rsp, %rdi callq 0x251b8 testb %r12b, %r12b je 0x7a362 jmp 0x7a376 movq %rax, %r14 movb $0x1, %bpl leaq 0x20(%rsp), %rdi callq 0x3d534 jmp 0x7a376 jmp 0x7a370 movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x50, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a37a leaq 0x80(%rsp), %r12 cmpq %r15, %r12 setne %al andb %al, %bpl cmpb $0x1, %bpl jne 0x7a3cd addq $-0x18, %r15 movq %r15, %rdi callq 0x3d534 cmpq %r12, %r15 jne 0x7a3a8 jmp 0x7a3cd movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0x3d534 jmp 0x7a3cd movq %rax, %r14 leaq 0xe0(%rsp), %rdi callq 0x251b8 jmp 0x7a4a6 movq %rax, %r14 movq %rsp, %rdi callq 0x3d534 jmp 0x7a3ef movq %rax, %r14 pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x80, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a3f3 xorl %ebp, %ebp jmp 0x7a417 movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x20, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a41b jmp 0x7a44b movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x3d534 jmp 0x7a448 jmp 0x7a445 movq %rax, %r14 movb $0x1, %bpl pushq $0x18 popq %r12 leaq (%rsp,%r12), %rdi addq $0x50, %rdi callq 0x3d534 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x7a44f leaq 0x80(%rsp), %r12 cmpq %r15, %r12 setne %al andb %al, %bpl cmpb $0x1, %bpl jne 0x7a4a6 addq $-0x18, %r15 movq %r15, %rdi callq 0x3d534 cmpq %r12, %r15 jne 0x7a47d jmp 0x7a4a6 movq %rax, %r14 leaq 0x50(%rsp), %rdi callq 0x3d534 jmp 0x7a4a6 jmp 0x7a4a3 jmp 0x7a4a3 movq %rax, %r14 movq %rbx, %rdi callq 0x3d534 movq %r14, %rdi callq 0x24f60
_ZN5minja13chat_template10add_systemERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEERKSB_: push rbp push r15 push r14 push r12 push rbx sub rsp, 120h mov r14, rdx mov rbx, rdi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rdi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void) test rax, rax jz loc_7A184 mov rdi, rbx xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](ulong) lea rsi, aRole; "role" mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_ lea rsi, aSystem; "system" mov rdi, rax call _ZN8nlohmann16json_abi_v3_11_3eqIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ test al, al jz loc_7A184 mov rdi, rbx xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atEm; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::at(ulong) lea rsi, aContent; "content" mov rdi, rax call _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_ lea rdi, [rsp+148h+var_68] mov rsi, rax call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE lea rsi, aRole; "role" lea rdi, [rsp+148h+var_F8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+148h+var_E0] lea rsi, aSystem; "system" call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea r15, [rsp+148h+var_C8] lea rsi, [rsp+148h+var_F8] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 r15, [rsp+148h+var_B0] lea rsi, aContent; "content" lea rdi, [rsp+148h+var_128] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdx, aErrorWhileHand_0+33h; "\n" mov rdi, rsp lea rsi, [rsp+148h+var_68] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*) lea rdi, [rsp+148h+var_88] mov rsi, rsp mov rdx, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&) lea rdi, [rsp+148h+var_110] lea rsi, [rsp+148h+var_88] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ lea rsi, [rsp+148h+var_128] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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+148h+var_98] lea rsi, [rsp+148h+var_C8] push 2 pop rdx push 1 pop rcx push 2 pop r8 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,nlohmann::json_abi_v3_11_3::detail::value_t) mov rdi, rbx xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](ulong) lea r14, [rsp+148h+var_98] mov rdi, rax mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 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() push 18h pop r14 loc_7A10D: lea rdi, [rsp+r14+148h+var_148] add rdi, 80h 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A10D push 18h pop r14 loc_7A12B: lea rdi, [rsp+r14+148h+var_148] add rdi, 20h ; ' ' 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A12B lea rdi, [rsp+148h+var_88]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() push 18h pop r14 loc_7A15B: lea rdi, [rsp+r14+148h+var_148] add rdi, 50h ; 'P' 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A15B lea rdi, [rsp+148h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_7A2BC loc_7A184: lea r15, [rsp+148h+var_68] mov rdi, r15 mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5beginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::begin(void) mov rax, [r15] mov [rsp+148h+var_48], rax movups xmm0, xmmword ptr [r15+8] movups [rsp+148h+var_40], xmm0 mov rax, [r15+18h] mov [rsp+148h+var_30], rax lea rsi, aRole; "role" lea rdi, [rsp+148h+var_F8] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+148h+var_E0] lea rsi, aSystem; "system" call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea r15, [rsp+148h+var_C8] lea rsi, [rsp+148h+var_F8] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 r15, [rsp+148h+var_B0] lea rsi, aContent; "content" lea rdi, [rsp+148h+var_128] call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ lea rdi, [rsp+148h+var_110] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ lea rsi, [rsp+148h+var_128] push 2 pop rdx mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>) mov rdi, rsp lea rsi, [rsp+148h+var_C8] push 2 pop rdx push 1 pop rcx push 2 pop r8 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,nlohmann::json_abi_v3_11_3::detail::value_t) lea rdi, [rsp+148h+var_88] lea rdx, [rsp+148h+var_48] mov rcx, rsp mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6insertENS0_6detail9iter_implIKSD_EEOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rdi, rsp 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() push 18h pop r14 loc_7A26C: lea rdi, [rsp+r14+148h+var_148] add rdi, 80h 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A26C push 18h pop r14 loc_7A28A: lea rdi, [rsp+r14+148h+var_148] add rdi, 20h ; ' ' 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A28A push 18h pop r14 loc_7A2A5: lea rdi, [rsp+r14+148h+var_148] add rdi, 50h ; 'P' 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() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_7A2A5 loc_7A2BC: mov rax, rbx add rsp, 120h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov r14, rax lea rdi, [rsp+arg_A8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A2E4 mov r14, rax loc_7A2E4: push 18h pop r12 loc_7A2E8: lea rdi, [rsp+r12+0] add rdi, 80h 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A2E8 xor ebp, ebp jmp short loc_7A30C mov r14, rax mov bpl, 1 loc_7A30C: push 18h pop r12 loc_7A310: lea rdi, [rsp+r12+0] add rdi, 20h ; ' ' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A310 mov r12b, 1 jmp short loc_7A335 mov r14, rax mov bpl, 1 xor r12d, r12d loc_7A335: lea rdi, [rsp+arg_B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7A34D mov r14, rax mov bpl, 1 xor r12d, r12d loc_7A34D: mov rdi, rsp; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test r12b, r12b jz short loc_7A362 jmp short loc_7A376 mov r14, rax mov bpl, 1 loc_7A362: lea rdi, [rsp+arg_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A376 jmp short $+2 loc_7A370: mov r14, rax mov bpl, 1 loc_7A376: push 18h pop r12 loc_7A37A: lea rdi, [rsp+r12+0] add rdi, 50h ; 'P' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A37A lea r12, [rsp+arg_78] cmp r12, r15 setnz al and bpl, al cmp bpl, 1 jnz short loc_7A3CD loc_7A3A8: add r15, 0FFFFFFFFFFFFFFE8h mov rdi, r15 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() cmp r15, r12 jnz short loc_7A3A8 jmp short loc_7A3CD mov r14, rax lea rdi, [rsp+arg_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A3CD mov r14, rax loc_7A3CD: lea rdi, [rsp+arg_D8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_7A4A6 mov r14, rax mov rdi, rsp call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A3EF mov r14, rax loc_7A3EF: push 18h pop r12 loc_7A3F3: lea rdi, [rsp+r12+0] add rdi, 80h 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A3F3 xor ebp, ebp jmp short loc_7A417 mov r14, rax mov bpl, 1 loc_7A417: push 18h pop r12 loc_7A41B: lea rdi, [rsp+r12+0] add rdi, 20h ; ' ' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A41B jmp short loc_7A44B mov r14, rax lea rdi, [rsp+arg_18] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A448 jmp short $+2 loc_7A445: mov r14, rax loc_7A448: mov bpl, 1 loc_7A44B: push 18h pop r12 loc_7A44F: lea rdi, [rsp+r12+0] add rdi, 50h ; 'P' 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() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_7A44F lea r12, [rsp+arg_78] cmp r12, r15 setnz al and bpl, al cmp bpl, 1 jnz short loc_7A4A6 loc_7A47D: add r15, 0FFFFFFFFFFFFFFE8h mov rdi, r15 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() cmp r15, r12 jnz short loc_7A47D jmp short loc_7A4A6 mov r14, rax lea rdi, [rsp+arg_48] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp short loc_7A4A6 jmp short loc_7A4A3 jmp short $+2 loc_7A4A3: mov r14, rax loc_7A4A6: 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
unsigned __int8 * minja::chat_template::add_system(unsigned __int8 *a1, unsigned __int8 *a2, long long a3) { long long v4; // rax long long v5; // rax long long v6; // rax long long v7; // rax long long v8; // rax long long i; // r14 long long j; // r14 long long k; // r14 long long m; // r14 long long n; // r14 long long ii; // r14 _BYTE v16[32]; // [rsp+0h] [rbp-148h] BYREF _BYTE v17[24]; // [rsp+20h] [rbp-128h] BYREF _BYTE v18[24]; // [rsp+38h] [rbp-110h] BYREF _BYTE v19[24]; // [rsp+50h] [rbp-F8h] BYREF _BYTE v20[24]; // [rsp+68h] [rbp-E0h] BYREF _BYTE v21[24]; // [rsp+80h] [rbp-C8h] BYREF _BYTE v22[24]; // [rsp+98h] [rbp-B0h] BYREF _BYTE v23[16]; // [rsp+B0h] [rbp-98h] BYREF _BYTE v24[32]; // [rsp+C0h] [rbp-88h] BYREF long long v25; // [rsp+E0h] [rbp-68h] BYREF __int128 v26; // [rsp+E8h] [rbp-60h] long long v27; // [rsp+F8h] [rbp-50h] long long v28; // [rsp+100h] [rbp-48h] BYREF __int128 v29; // [rsp+108h] [rbp-40h] long long v30; // [rsp+118h] [rbp-30h] nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, a2); if ( nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(a1) && (v4 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( a1, 0LL), v5 = ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_( v4, "role"), (unsigned __int8)ZN8nlohmann16json_abi_v3_11_3eqIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_( v5, "system")) ) { v6 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::at( a1, 0LL); v7 = 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_( v6, "content"); ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)&v25, v7); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v19); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v20); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_ref( (long long)v21, (long long)v19, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v17); std::operator+<char>((long long)v16, (long long)&v25, (long long)"\n"); std::operator+<char>((long long)v24, (long long)v16, a3); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_( v18, v24); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_ref( (long long)v22, (long long)v17, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v23, v21, 2LL, 1LL, 2LL); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( a1, 0LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=( v8, (long long)v23); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v23); for ( i = 24LL; i != -24; i -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v21[i]); for ( j = 24LL; j != -24; j -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v17[j]); std::string::~string(v24); std::string::~string(v16); for ( k = 24LL; k != -24; k -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v19[k]); std::string::~string(&v25); } else { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::begin( (long long)&v25, (long long)a1); v28 = v25; v29 = v26; v30 = v27; ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v19); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v20); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_ref( (long long)v21, (long long)v19, 2LL); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_((long long)v17); ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_( (long long)v18, a3); nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_ref( (long long)v22, (long long)v17, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v16, v21, 2LL, 1LL, 2LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert( v24, a1, &v28, v16); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v16); for ( m = 24LL; m != -24; m -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v21[m]); for ( n = 24LL; n != -24; n -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)&v17[n]); for ( ii = 24LL; ii != -24; ii -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)&v19[ii]); } return a1; }
add_system: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x120 MOV R14,RDX MOV RBX,RDI CALL 0x0014228c MOV RDI,RBX CALL 0x00142134 TEST RAX,RAX JZ 0x0017a184 LAB_00179fcd: MOV RDI,RBX XOR ESI,ESI CALL 0x0017d954 LEA RSI,[0x1b50ff] MOV RDI,RAX CALL 0x0017a4fa LEA RSI,[0x1b517a] MOV RDI,RAX CALL 0x0017a936 TEST AL,AL JZ 0x0017a184 LAB_00179ffd: MOV RDI,RBX XOR ESI,ESI CALL 0x0017da4e LEA RSI,[0x1b5109] MOV RDI,RAX CALL 0x0017ad1a LEA RDI,[RSP + 0xe0] MOV RSI,RAX CALL 0x00163fea LAB_0017a026: LEA RSI,[0x1b50ff] LEA RDI,[RSP + 0x50] CALL 0x0015c53a LEA RDI,[RSP + 0x68] LAB_0017a03c: LEA RSI,[0x1b517a] CALL 0x0015cdfa LAB_0017a048: LEA R15,[RSP + 0x80] LEA RSI,[RSP + 0x50] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015c54a LEA R15,[RSP + 0x98] LAB_0017a068: LEA RSI,[0x1b5109] LEA RDI,[RSP + 0x20] CALL 0x0015c562 LAB_0017a079: LEA RDX,[0x1b18d8] MOV RDI,RSP LEA RSI,[RSP + 0xe0] CALL 0x001385b7 LAB_0017a090: LEA RDI,[RSP + 0xc0] MOV RSI,RSP MOV RDX,R14 CALL 0x0013ae20 LAB_0017a0a3: LEA RDI,[RSP + 0x38] LEA RSI,[RSP + 0xc0] CALL 0x0017dbae LAB_0017a0b5: LEA RSI,[RSP + 0x20] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015c54a LAB_0017a0c5: LEA RDI,[RSP + 0xb0] LEA RSI,[RSP + 0x80] PUSH 0x2 POP RDX PUSH 0x1 POP RCX PUSH 0x2 POP R8 CALL 0x0015cbe6 LAB_0017a0e4: MOV RDI,RBX XOR ESI,ESI CALL 0x0017d954 LEA R14,[RSP + 0xb0] MOV RDI,RAX MOV RSI,R14 CALL 0x001400ba MOV RDI,R14 CALL 0x0013d534 PUSH 0x18 POP R14 LAB_0017a10d: LEA RDI,[RSP + R14*0x1] ADD RDI,0x80 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a10d PUSH 0x18 POP R14 LAB_0017a12b: LEA RDI,[RSP + R14*0x1] ADD RDI,0x20 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a12b LEA RDI,[RSP + 0xc0] CALL 0x001251b8 MOV RDI,RSP CALL 0x001251b8 PUSH 0x18 POP R14 LAB_0017a15b: LEA RDI,[RSP + R14*0x1] ADD RDI,0x50 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a15b LEA RDI,[RSP + 0xe0] CALL 0x001251b8 JMP 0x0017a2bc LAB_0017a184: LEA R15,[RSP + 0xe0] MOV RDI,R15 MOV RSI,RBX CALL 0x0014232c MOV RAX,qword ptr [R15] MOV qword ptr [RSP + 0x100],RAX MOVUPS XMM0,xmmword ptr [R15 + 0x8] MOVUPS xmmword ptr [RSP + 0x108],XMM0 MOV RAX,qword ptr [R15 + 0x18] MOV qword ptr [RSP + 0x118],RAX LAB_0017a1bb: LEA RSI,[0x1b50ff] LEA RDI,[RSP + 0x50] CALL 0x0015c53a LEA RDI,[RSP + 0x68] LAB_0017a1d1: LEA RSI,[0x1b517a] CALL 0x0015cdfa LAB_0017a1dd: LEA R15,[RSP + 0x80] LEA RSI,[RSP + 0x50] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015c54a LEA R15,[RSP + 0x98] LAB_0017a1fd: LEA RSI,[0x1b5109] LEA RDI,[RSP + 0x20] CALL 0x0015c562 LEA RDI,[RSP + 0x38] LAB_0017a213: MOV RSI,R14 CALL 0x0015c708 LAB_0017a21b: LEA RSI,[RSP + 0x20] PUSH 0x2 POP RDX MOV RDI,R15 CALL 0x0015c54a LAB_0017a22b: MOV RDI,RSP LEA RSI,[RSP + 0x80] PUSH 0x2 POP RDX PUSH 0x1 POP RCX PUSH 0x2 POP R8 CALL 0x0015cbe6 LAB_0017a245: LEA RDI,[RSP + 0xc0] LEA RDX,[RSP + 0x100] MOV RCX,RSP MOV RSI,RBX CALL 0x0017dbbe LAB_0017a260: MOV RDI,RSP CALL 0x0013d534 PUSH 0x18 POP R14 LAB_0017a26c: LEA RDI,[RSP + R14*0x1] ADD RDI,0x80 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a26c PUSH 0x18 POP R14 LAB_0017a28a: LEA RDI,[RSP + R14*0x1] ADD RDI,0x20 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a28a PUSH 0x18 POP R14 LAB_0017a2a5: LEA RDI,[RSP + R14*0x1] ADD RDI,0x50 CALL 0x0013d534 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x0017a2a5 LAB_0017a2bc: MOV RAX,RBX ADD RSP,0x120 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* minja::chat_template::add_system(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::__cxx11::string const&) */ chat_template * __thiscall minja::chat_template::add_system(chat_template *this,basic_json *param_1,string *param_2) { char cVar1; long lVar2; int8 uVar3; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *pbVar4; string asStack_148 [32]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_128 [24]; int1 local_110 [24]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_f8 [24]; int1 local_e0 [24]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_c8 [24]; int1 local_b0 [24]; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> local_98 [16]; string local_88 [32]; int8 local_68; int4 local_60; int4 uStack_5c; int4 uStack_58; int4 uStack_54; int8 local_50; int8 local_48; int4 local_40; int4 uStack_3c; int4 uStack_38; int4 uStack_34; int8 local_30; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)this,param_1); lVar2 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)this); if (lVar2 != 0) { /* try { // try from 00179fcd to 00179fe5 has its CatchHandler @ 0017a4a3 */ uVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::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,0); uVar3 = _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERSD_OSJ_ (uVar3,&DAT_001b50ff); cVar1 = _ZN8nlohmann16json_abi_v3_11_3eqIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ (uVar3); if (cVar1 != '\0') { /* try { // try from 00179ffd to 0017a025 has its CatchHandler @ 0017a4a1 */ uVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::at((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,0); uVar3 = _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_ (uVar3,"content"); _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (&local_68,uVar3); /* try { // try from 0017a026 to 0017a036 has its CatchHandler @ 0017a3ca */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_f8,&DAT_001b50ff); /* try { // try from 0017a03c to 0017a047 has its CatchHandler @ 0017a3bb */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_e0,"system"); /* try { // try from 0017a048 to 0017a05f has its CatchHandler @ 0017a370 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_ref(local_c8,local_f8,2); /* try { // try from 0017a068 to 0017a078 has its CatchHandler @ 0017a36e */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_128,"content"); /* try { // try from 0017a079 to 0017a08f has its CatchHandler @ 0017a35c */ std::operator+(asStack_148,(char *)&local_68); /* try { // try from 0017a090 to 0017a0a2 has its CatchHandler @ 0017a344 */ std::operator+(local_88,asStack_148); /* try { // try from 0017a0a3 to 0017a0b4 has its CatchHandler @ 0017a32c */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSJ_ (local_110,local_88); /* try { // try from 0017a0b5 to 0017a0c4 has its CatchHandler @ 0017a306 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_ref(local_b0,local_128,2); /* try { // try from 0017a0c5 to 0017a0e3 has its CatchHandler @ 0017a2e1 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_98,local_c8,2,1,2); /* try { // try from 0017a0e4 to 0017a0ed has its CatchHandler @ 0017a2cf */ pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,0); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator=(pbVar4,local_98); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_98); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_c8 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_128 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); std::__cxx11::string::~string(local_88); std::__cxx11::string::~string(asStack_148); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_f8 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); std::__cxx11::string::~string((string *)&local_68); return this; } } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::begin(); local_48 = local_68; local_40 = local_60; uStack_3c = uStack_5c; uStack_38 = uStack_58; uStack_34 = uStack_54; local_30 = local_50; /* try { // try from 0017a1bb to 0017a1cb has its CatchHandler @ 0017a49f */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA5_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_f8,&DAT_001b50ff); /* try { // try from 0017a1d1 to 0017a1dc has its CatchHandler @ 0017a490 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA7_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_e0,"system"); /* try { // try from 0017a1dd to 0017a1f4 has its CatchHandler @ 0017a445 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_ref(local_c8,local_f8,2); /* try { // try from 0017a1fd to 0017a20d has its CatchHandler @ 0017a443 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA8_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_ (local_128,"content"); /* try { // try from 0017a213 to 0017a21a has its CatchHandler @ 0017a434 */ _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_ (local_110,param_2); /* try { // try from 0017a21b to 0017a22a has its CatchHandler @ 0017a411 */ nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_ref(local_b0,local_128,2); /* try { // try from 0017a22b to 0017a244 has its CatchHandler @ 0017a3ec */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(asStack_148,local_c8,2,1,2); /* try { // try from 0017a245 to 0017a25f has its CatchHandler @ 0017a3df */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::insert((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_88,this,&local_48,asStack_148); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)asStack_148); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_c8 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_128 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); lVar2 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::~basic_json(local_f8 + lVar2); lVar2 = lVar2 + -0x18; } while (lVar2 != -0x18); return this; }
7,076
ps_fetch_float
eloqsql/libmariadb/libmariadb/ma_stmt_codec.c
static void ps_fetch_float(MYSQL_BIND *r_param, const MYSQL_FIELD * field, unsigned char **row) { switch(r_param->buffer_type) { case MYSQL_TYPE_FLOAT: { float *value= (float *)r_param->buffer; float4get(*value, *row); r_param->buffer_length= 4; *r_param->error= 0; } break; default: { float value; memcpy(&value, *row, sizeof(float)); float4get(value, (char *)*row); convert_from_float(r_param, field, value, sizeof(float)); } break; } (*row)+= 4; }
O3
c
ps_fetch_float: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x150, %rsp # imm = 0x150 movq %rdx, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) movl 0x60(%rdi), %r12d cmpl $0x4, %r12d jne 0x2c69e movq 0x10(%r14), %rax movq (%rbx), %rcx movl (%rcx), %ecx movl %ecx, (%rax) movq $0x4, 0x40(%r14) movq 0x18(%r14), %rax movb $0x0, (%rax) jmp 0x2c94f movq %rsi, %r15 movq (%rbx), %rax movss (%rax), %xmm1 xorps %xmm0, %xmm0 ucomiss %xmm0, %xmm1 movaps %xmm1, -0x170(%rbp) jbe 0x2c6c5 movaps %xmm1, %xmm0 callq 0x17200 cvtss2sd %xmm0, %xmm0 jmp 0x2c6df movaps 0xf184(%rip), %xmm0 # 0x3b850 xorps %xmm1, %xmm0 callq 0x17200 cvtss2sd %xmm0, %xmm0 xorps 0xf181(%rip), %xmm0 # 0x3b860 decl %r12d cmpl $0xc, %r12d ja 0x2c795 movq 0x10(%r14), %rax leaq 0xf319(%rip), %rcx # 0x3ba10 movslq (%rcx,%r12,4), %rdx addq %rcx, %rdx jmpq *%rdx cmpb $0x0, 0x65(%r14) movaps -0x170(%rbp), %xmm1 cvttss2si %xmm1, %ecx je 0x2c813 movzwl %cx, %edx jmp 0x2c816 cmpb $0x0, 0x65(%r14) movaps -0x170(%rbp), %xmm1 je 0x2c925 cvttss2si %xmm1, %rcx movq %rcx, %rdx subss 0xf3f8(%rip), %xmm1 # 0x3bb38 cvttss2si %xmm1, %rsi sarq $0x3f, %rdx andq %rdx, %rsi orq %rcx, %rsi movq %rsi, %xmm2 punpckldq 0xf0c4(%rip), %xmm2 # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1] subpd 0xf0cc(%rip), %xmm2 # 0x3b830 movq %rsi, (%rax) movapd %xmm2, %xmm1 unpckhpd %xmm2, %xmm1 # xmm1 = xmm1[1],xmm2[1] addsd %xmm2, %xmm1 jmp 0x2c935 cvttss2si -0x170(%rbp), %ecx movb %cl, (%rax) cmpb $0x0, 0x65(%r14) je 0x2c83f movzbl %cl, %eax jmp 0x2c842 movl 0x68(%r15), %edi cmpl $0x1f, %edi movaps -0x170(%rbp), %xmm0 jb 0x2c868 movq 0x40(%r14), %rax movl $0x12b, %esi # imm = 0x12B cmpq %rsi, %rax cmovbq %rax, %rsi cvtss2sd %xmm0, %xmm0 leaq -0x160(%rbp), %rdx xorl %edi, %edi xorl %ecx, %ecx callq 0x2f2f5 jmp 0x2c87a cmpb $0x0, 0x65(%r14) movaps -0x170(%rbp), %xmm1 cvttss2si %xmm1, %ecx cvttss2si %xmm1, %rdx cmovnel %edx, %ecx je 0x2c8ff movl %edx, %edx xorps %xmm1, %xmm1 cvtsi2sd %rdx, %xmm1 jmp 0x2c907 xorps %xmm0, %xmm0 cvtss2sd -0x170(%rbp), %xmm0 movsd %xmm0, (%rax) jmp 0x2c947 movswl %cx, %edx xorps %xmm1, %xmm1 cvtsi2sd %edx, %xmm1 movw %cx, (%rax) ucomisd %xmm1, %xmm0 setp %al setne %cl orb %al, %cl movq 0x18(%r14), %rax movb %cl, (%rax) movq $0x2, 0x40(%r14) jmp 0x2c94f movsbl %cl, %eax xorps %xmm1, %xmm1 cvtsi2sd %eax, %xmm1 ucomisd %xmm1, %xmm0 setp %al setne %cl orb %al, %cl movq 0x18(%r14), %rax movb %cl, (%rax) movq $0x1, 0x40(%r14) jmp 0x2c94f cvtss2sd %xmm0, %xmm0 leaq -0x160(%rbp), %rsi xorl %edx, %edx callq 0x2dd18 testb $0x40, 0x64(%r15) jne 0x2c886 movq %rax, %r15 jmp 0x2c8eb movq 0x38(%r15), %r15 movq %r15, %rdx subq %rax, %rdx setb %cl cmpq $0x12c, %r15 # imm = 0x12C setae %sil orb %cl, %sil jne 0x2c94f testq %rax, %rax je 0x2c8d5 leaq -0x160(%rbp), %rsi leaq (%rax,%rsi), %rcx decq %rcx negq %rax addq %r15, %rsi decq %rsi xorl %edi, %edi movb (%rcx,%rdi), %r8b movb %r8b, (%rsi,%rdi) decq %rdi cmpq %rdi, %rax jne 0x2c8c5 leaq -0x160(%rbp), %rdi movl $0x12c, %ecx # imm = 0x12C movl $0x30, %esi callq 0x177e0 leaq -0x160(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx callq 0x2d40d jmp 0x2c94f cvttps2dq %xmm1, %xmm1 cvtdq2pd %xmm1, %xmm1 movl %ecx, (%rax) ucomisd %xmm1, %xmm0 setp %al setne %cl orb %al, %cl movq 0x18(%r14), %rax movb %cl, (%rax) movq $0x4, 0x40(%r14) jmp 0x2c94f cvttss2si %xmm1, %rcx movq %rcx, (%rax) xorps %xmm1, %xmm1 cvtsi2sd %rcx, %xmm1 ucomisd %xmm1, %xmm0 setp %al setne %cl orb %al, %cl movq 0x18(%r14), %rax movb %cl, (%rax) movq $0x8, 0x40(%r14) addq $0x4, (%rbx) movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x2c972 addq $0x150, %rsp # imm = 0x150 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x17690
ps_fetch_float: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 150h mov rbx, rdx mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax mov r12d, [rdi+60h] cmp r12d, 4 jnz short loc_2C69E mov rax, [r14+10h] mov rcx, [rbx] mov ecx, [rcx] mov [rax], ecx mov qword ptr [r14+40h], 4 mov rax, [r14+18h] mov byte ptr [rax], 0 jmp loc_2C94F loc_2C69E: mov r15, rsi mov rax, [rbx] movss xmm1, dword ptr [rax] xorps xmm0, xmm0 ucomiss xmm1, xmm0 movaps [rbp+var_170], xmm1 jbe short loc_2C6C5 movaps xmm0, xmm1 call _floorf cvtss2sd xmm0, xmm0 jmp short loc_2C6DF loc_2C6C5: movaps xmm0, cs:xmmword_3B850 xorps xmm0, xmm1 call _floorf cvtss2sd xmm0, xmm0 xorps xmm0, cs:xmmword_3B860 loc_2C6DF: dec r12d; switch 13 cases cmp r12d, 0Ch ja def_2C6FE; jumptable 000000000002C6FE default case, cases 4,6,7,9-12 mov rax, [r14+10h] lea rcx, jpt_2C6FE movsxd rdx, ds:(jpt_2C6FE - 3BA10h)[rcx+r12*4] add rdx, rcx jmp rdx; switch jump loc_2C700: cmp byte ptr [r14+65h], 0; jumptable 000000000002C6FE cases 2,13 movaps xmm1, [rbp+var_170] cvttss2si ecx, xmm1 jz loc_2C813 movzx edx, cx jmp loc_2C816 loc_2C71E: cmp byte ptr [r14+65h], 0; jumptable 000000000002C6FE case 8 movaps xmm1, [rbp+var_170] jz loc_2C925 cvttss2si rcx, xmm1 mov rdx, rcx subss xmm1, cs:dword_3BB38 cvttss2si rsi, xmm1 sar rdx, 3Fh and rsi, rdx or rsi, rcx movq xmm2, rsi punpckldq xmm2, cs:xmmword_3B820 subpd xmm2, cs:xmmword_3B830 mov [rax], rsi movapd xmm1, xmm2 unpckhpd xmm1, xmm2 addsd xmm1, xmm2 jmp loc_2C935 loc_2C778: cvttss2si ecx, dword ptr [rbp+var_170]; jumptable 000000000002C6FE case 1 mov [rax], cl cmp byte ptr [r14+65h], 0 jz loc_2C83F movzx eax, cl jmp loc_2C842 def_2C6FE: mov edi, [r15+68h]; jumptable 000000000002C6FE default case, cases 4,6,7,9-12 cmp edi, 1Fh movaps xmm0, [rbp+var_170] jb loc_2C868 mov rax, [r14+40h] mov esi, 12Bh cmp rax, rsi cmovb rsi, rax cvtss2sd xmm0, xmm0 lea rdx, [rbp+var_160] xor edi, edi xor ecx, ecx call ma_gcvt jmp loc_2C87A loc_2C7D2: cmp byte ptr [r14+65h], 0; jumptable 000000000002C6FE case 3 movaps xmm1, [rbp+var_170] cvttss2si ecx, xmm1 cvttss2si rdx, xmm1 cmovnz ecx, edx jz loc_2C8FF mov edx, edx xorps xmm1, xmm1 cvtsi2sd xmm1, rdx jmp loc_2C907 loc_2C7FF: xorps xmm0, xmm0; jumptable 000000000002C6FE case 5 cvtss2sd xmm0, dword ptr [rbp+var_170] movsd qword ptr [rax], xmm0 jmp loc_2C947 loc_2C813: movsx edx, cx loc_2C816: xorps xmm1, xmm1 cvtsi2sd xmm1, edx mov [rax], cx ucomisd xmm0, xmm1 setp al setnz cl or cl, al mov rax, [r14+18h] mov [rax], cl mov qword ptr [r14+40h], 2 jmp loc_2C94F loc_2C83F: movsx eax, cl loc_2C842: xorps xmm1, xmm1 cvtsi2sd xmm1, eax ucomisd xmm0, xmm1 setp al setnz cl or cl, al mov rax, [r14+18h] mov [rax], cl mov qword ptr [r14+40h], 1 jmp loc_2C94F loc_2C868: cvtss2sd xmm0, xmm0 lea rsi, [rbp+var_160] xor edx, edx call ma_fcvt loc_2C87A: test byte ptr [r15+64h], 40h jnz short loc_2C886 mov r15, rax jmp short loc_2C8EB loc_2C886: mov r15, [r15+38h] mov rdx, r15 sub rdx, rax setb cl cmp r15, 12Ch setnb sil or sil, cl jnz loc_2C94F test rax, rax jz short loc_2C8D5 lea rsi, [rbp+var_160] lea rcx, [rax+rsi] dec rcx neg rax add rsi, r15 dec rsi xor edi, edi loc_2C8C5: mov r8b, [rcx+rdi] mov [rsi+rdi], r8b dec rdi cmp rax, rdi jnz short loc_2C8C5 loc_2C8D5: lea rdi, [rbp+var_160] mov ecx, 12Ch mov esi, 30h ; '0' call ___memset_chk loc_2C8EB: lea rsi, [rbp+var_160] mov rdi, r14 mov rdx, r15 call convert_froma_string jmp short loc_2C94F loc_2C8FF: cvttps2dq xmm1, xmm1 cvtdq2pd xmm1, xmm1 loc_2C907: mov [rax], ecx ucomisd xmm0, xmm1 setp al setnz cl or cl, al mov rax, [r14+18h] mov [rax], cl mov qword ptr [r14+40h], 4 jmp short loc_2C94F loc_2C925: cvttss2si rcx, xmm1 mov [rax], rcx xorps xmm1, xmm1 cvtsi2sd xmm1, rcx loc_2C935: ucomisd xmm0, xmm1 setp al setnz cl or cl, al mov rax, [r14+18h] mov [rax], cl loc_2C947: mov qword ptr [r14+40h], 8 loc_2C94F: add qword ptr [rbx], 4 mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_2C972 add rsp, 150h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_2C972: call ___stack_chk_fail
unsigned long long ps_fetch_float(long long a1, long long a2, _DWORD **a3) { int v5; // r12d double v7; // xmm1_8 double v8; // xmm0_8 _BYTE *v9; // rax int v10; // ecx int v11; // edx __m128d v12; // xmm2 double v13; // xmm1_8 int v14; // ecx int v15; // eax long long v16; // rdi long long v17; // rsi unsigned long long v18; // rax int v19; // ecx double v20; // xmm1_8 unsigned long long v21; // r15 unsigned long long v22; // rdx _BYTE *v23; // rcx long long v24; // rax long long v25; // rdi long long v26; // rcx __m128 v28; // [rsp+0h] [rbp-170h] _BYTE v29[312]; // [rsp+10h] [rbp-160h] BYREF unsigned long long v30; // [rsp+148h] [rbp-28h] v30 = __readfsqword(0x28u); v5 = *(_DWORD *)(a1 + 96); if ( v5 == 4 ) { **(_DWORD **)(a1 + 16) = **a3; *(_QWORD *)(a1 + 64) = 4LL; **(_BYTE **)(a1 + 24) = 0; } else { *(_QWORD *)&v7 = (unsigned int)**a3; v28 = (__m128)(unsigned int)**a3; if ( *(float *)&v7 <= 0.0 ) v8 = -floorf(COERCE_DOUBLE(*(_QWORD *)&v7 ^ 0x8000000080000000LL)); else v8 = floorf(v7); v9 = *(_BYTE **)(a1 + 16); switch ( v5 ) { case 1: v14 = (int)v28.m128_f32[0]; *v9 = (int)v28.m128_f32[0]; if ( *(_BYTE *)(a1 + 101) ) v15 = (unsigned __int8)v14; else v15 = (char)v14; **(_BYTE **)(a1 + 24) = v8 != (double)v15; *(_QWORD *)(a1 + 64) = 1LL; break; case 2: case 13: v10 = (int)v28.m128_f32[0]; if ( *(_BYTE *)(a1 + 101) ) v11 = (unsigned __int16)v10; else v11 = (__int16)v10; *(_WORD *)v9 = v10; **(_BYTE **)(a1 + 24) = v8 != (double)v11; *(_QWORD *)(a1 + 64) = 2LL; break; case 3: v19 = (int)v28.m128_f32[0]; if ( *(_BYTE *)(a1 + 101) ) { v19 = (int)v28.m128_f32[0]; v20 = (double)(int)v28.m128_f32[0]; } else { *(_QWORD *)&v20 = *(_OWORD *)&_mm_cvtepi32_pd(_mm_cvttps_epi32(v28)); } *(_DWORD *)v9 = v19; **(_BYTE **)(a1 + 24) = v8 != v20; *(_QWORD *)(a1 + 64) = 4LL; break; case 5: *(double *)v9 = v28.m128_f32[0]; goto LABEL_37; case 8: if ( *(_BYTE *)(a1 + 101) ) { v12 = _mm_sub_pd( (__m128d)_mm_unpacklo_epi32((__m128i)(unsigned int)(int)v28.m128_f32[0], (__m128i)xmmword_3B820), (__m128d)xmmword_3B830); *(_QWORD *)v9 = (unsigned int)(int)v28.m128_f32[0]; v13 = _mm_unpackhi_pd(v12, v12).m128d_f64[0] + v12.m128d_f64[0]; } else { v26 = (unsigned int)(int)v28.m128_f32[0]; *(_QWORD *)v9 = v26; v13 = (double)(int)v26; } **(_BYTE **)(a1 + 24) = v8 != v13; LABEL_37: *(_QWORD *)(a1 + 64) = 8LL; break; default: v16 = *(unsigned int *)(a2 + 104); if ( (unsigned int)v16 < 0x1F ) { v18 = ma_fcvt(v16, v29, 0LL, v28.m128_f32[0]); } else { v17 = 299LL; if ( *(_QWORD *)(a1 + 64) < 0x12BuLL ) v17 = *(_QWORD *)(a1 + 64); v18 = ma_gcvt(0LL, v17, v29, 0LL, v28.m128_f32[0]); } if ( (*(_BYTE *)(a2 + 100) & 0x40) != 0 ) { v21 = *(_QWORD *)(a2 + 56); v22 = v21 - v18; if ( v21 < v18 || v21 >= 0x12C ) break; if ( v18 ) { v23 = &v29[v18 - 1]; v24 = -(long long)v18; v25 = 0LL; do { v29[v21 - 1 + v25] = v23[v25]; --v25; } while ( v24 != v25 ); } __memset_chk(v29, 48LL, v22, 300LL); } else { v21 = v18; } convert_froma_string(a1, v29, v21); break; } } ++*a3; return __readfsqword(0x28u); }
ps_fetch_float: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x150 MOV RBX,RDX MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX MOV R12D,dword ptr [RDI + 0x60] CMP R12D,0x4 JNZ 0x0012c69e MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RBX] MOV ECX,dword ptr [RCX] MOV dword ptr [RAX],ECX MOV qword ptr [R14 + 0x40],0x4 MOV RAX,qword ptr [R14 + 0x18] MOV byte ptr [RAX],0x0 JMP 0x0012c94f LAB_0012c69e: MOV R15,RSI MOV RAX,qword ptr [RBX] MOVSS XMM1,dword ptr [RAX] XORPS XMM0,XMM0 UCOMISS XMM1,XMM0 MOVAPS xmmword ptr [RBP + -0x170],XMM1 JBE 0x0012c6c5 MOVAPS XMM0,XMM1 CALL 0x00117200 CVTSS2SD XMM0,XMM0 JMP 0x0012c6df LAB_0012c6c5: MOVAPS XMM0,xmmword ptr [0x0013b850] XORPS XMM0,XMM1 CALL 0x00117200 CVTSS2SD XMM0,XMM0 XORPS XMM0,xmmword ptr [0x0013b860] LAB_0012c6df: DEC R12D CMP R12D,0xc JA 0x0012c795 MOV RAX,qword ptr [R14 + 0x10] LEA RCX,[0x13ba10] MOVSXD RDX,dword ptr [RCX + R12*0x4] ADD RDX,RCX switchD: JMP RDX caseD_2: CMP byte ptr [R14 + 0x65],0x0 MOVAPS XMM1,xmmword ptr [RBP + -0x170] CVTTSS2SI ECX,XMM1 JZ 0x0012c813 MOVZX EDX,CX JMP 0x0012c816 caseD_8: CMP byte ptr [R14 + 0x65],0x0 MOVAPS XMM1,xmmword ptr [RBP + -0x170] JZ 0x0012c925 CVTTSS2SI RCX,XMM1 MOV RDX,RCX SUBSS XMM1,dword ptr [0x0013bb38] CVTTSS2SI RSI,XMM1 SAR RDX,0x3f AND RSI,RDX OR RSI,RCX MOVQ XMM2,RSI PUNPCKLDQ XMM2,xmmword ptr [0x0013b820] SUBPD XMM2,xmmword ptr [0x0013b830] MOV qword ptr [RAX],RSI MOVAPD XMM1,XMM2 UNPCKHPD XMM1,XMM2 ADDSD XMM1,XMM2 JMP 0x0012c935 caseD_1: CVTTSS2SI ECX,dword ptr [RBP + -0x170] MOV byte ptr [RAX],CL CMP byte ptr [R14 + 0x65],0x0 JZ 0x0012c83f MOVZX EAX,CL JMP 0x0012c842 caseD_4: MOV EDI,dword ptr [R15 + 0x68] CMP EDI,0x1f MOVAPS XMM0,xmmword ptr [RBP + -0x170] JC 0x0012c868 MOV RAX,qword ptr [R14 + 0x40] MOV ESI,0x12b CMP RAX,RSI CMOVC RSI,RAX CVTSS2SD XMM0,XMM0 LEA RDX,[RBP + -0x160] XOR EDI,EDI XOR ECX,ECX CALL 0x0012f2f5 JMP 0x0012c87a caseD_3: CMP byte ptr [R14 + 0x65],0x0 MOVAPS XMM1,xmmword ptr [RBP + -0x170] CVTTSS2SI ECX,XMM1 CVTTSS2SI RDX,XMM1 CMOVNZ ECX,EDX JZ 0x0012c8ff MOV EDX,EDX XORPS XMM1,XMM1 CVTSI2SD XMM1,RDX JMP 0x0012c907 caseD_5: XORPS XMM0,XMM0 CVTSS2SD XMM0,dword ptr [RBP + -0x170] MOVSD qword ptr [RAX],XMM0 JMP 0x0012c947 LAB_0012c813: MOVSX EDX,CX LAB_0012c816: XORPS XMM1,XMM1 CVTSI2SD XMM1,EDX MOV word ptr [RAX],CX UCOMISD XMM0,XMM1 SETP AL SETNZ CL OR CL,AL MOV RAX,qword ptr [R14 + 0x18] MOV byte ptr [RAX],CL MOV qword ptr [R14 + 0x40],0x2 JMP 0x0012c94f LAB_0012c83f: MOVSX EAX,CL LAB_0012c842: XORPS XMM1,XMM1 CVTSI2SD XMM1,EAX UCOMISD XMM0,XMM1 SETP AL SETNZ CL OR CL,AL MOV RAX,qword ptr [R14 + 0x18] MOV byte ptr [RAX],CL MOV qword ptr [R14 + 0x40],0x1 JMP 0x0012c94f LAB_0012c868: CVTSS2SD XMM0,XMM0 LEA RSI,[RBP + -0x160] XOR EDX,EDX CALL 0x0012dd18 LAB_0012c87a: TEST byte ptr [R15 + 0x64],0x40 JNZ 0x0012c886 MOV R15,RAX JMP 0x0012c8eb LAB_0012c886: MOV R15,qword ptr [R15 + 0x38] MOV RDX,R15 SUB RDX,RAX SETC CL CMP R15,0x12c SETNC SIL OR SIL,CL JNZ 0x0012c94f TEST RAX,RAX JZ 0x0012c8d5 LEA RSI,[RBP + -0x160] LEA RCX,[RAX + RSI*0x1] DEC RCX NEG RAX ADD RSI,R15 DEC RSI XOR EDI,EDI LAB_0012c8c5: MOV R8B,byte ptr [RCX + RDI*0x1] MOV byte ptr [RSI + RDI*0x1],R8B DEC RDI CMP RAX,RDI JNZ 0x0012c8c5 LAB_0012c8d5: LEA RDI,[RBP + -0x160] MOV ECX,0x12c MOV ESI,0x30 CALL 0x001177e0 LAB_0012c8eb: LEA RSI,[RBP + -0x160] MOV RDI,R14 MOV RDX,R15 CALL 0x0012d40d JMP 0x0012c94f LAB_0012c8ff: CVTTPS2DQ XMM1,XMM1 CVTDQ2PD XMM1,XMM1 LAB_0012c907: MOV dword ptr [RAX],ECX UCOMISD XMM0,XMM1 SETP AL SETNZ CL OR CL,AL MOV RAX,qword ptr [R14 + 0x18] MOV byte ptr [RAX],CL MOV qword ptr [R14 + 0x40],0x4 JMP 0x0012c94f LAB_0012c925: CVTTSS2SI RCX,XMM1 MOV qword ptr [RAX],RCX XORPS XMM1,XMM1 CVTSI2SD XMM1,RCX LAB_0012c935: UCOMISD XMM0,XMM1 SETP AL SETNZ CL OR CL,AL MOV RAX,qword ptr [R14 + 0x18] MOV byte ptr [RAX],CL LAB_0012c947: MOV qword ptr [R14 + 0x40],0x8 LAB_0012c94f: ADD qword ptr [RBX],0x4 MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x0012c972 ADD RSP,0x150 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0012c972: CALL 0x00117690
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void ps_fetch_float(long param_1,long param_2,long *param_3) { double *pdVar1; ulong uVar2; ulong uVar3; char cVar4; short sVar5; int iVar6; uint uVar7; double dVar8; long lVar9; long in_FS_OFFSET; float fVar10; double dVar11; double dVar12; int1 auVar13 [16]; double dVar14; int1 local_178 [16]; int1 local_168 [312]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); iVar6 = *(int *)(param_1 + 0x60); if (iVar6 == 4) { **(int4 **)(param_1 + 0x10) = *(int4 *)*param_3; *(int8 *)(param_1 + 0x40) = 4; **(int1 **)(param_1 + 0x18) = 0; goto LAB_0012c94f; } fVar10 = *(float *)*param_3; local_178 = ZEXT416((uint)fVar10); if (fVar10 <= 0.0) { fVar10 = floorf((float)(_DAT_0013b850 ^ (uint)fVar10)); dVar11 = (double)CONCAT44((uint)((ulong)(double)fVar10 >> 0x20) ^ _UNK_0013b864, SUB84((double)fVar10,0) ^ _DAT_0013b860); } else { fVar10 = floorf(fVar10); dVar11 = (double)fVar10; } if (0xc < iVar6 - 1U) { switchD_0012c6fe_caseD_4: if (*(uint *)(param_2 + 0x68) < 0x1f) { uVar3 = ma_fcvt((double)(float)local_178._0_4_,*(uint *)(param_2 + 0x68),local_168,0); } else { uVar3 = 299; if (*(ulong *)(param_1 + 0x40) < 299) { uVar3 = *(ulong *)(param_1 + 0x40); } uVar3 = ma_gcvt((double)(float)local_178._0_4_,0,uVar3,local_168,0); } if ((*(byte *)(param_2 + 100) & 0x40) != 0) { uVar2 = *(ulong *)(param_2 + 0x38); if (299 < uVar2 || uVar2 < uVar3) goto LAB_0012c94f; if (uVar3 != 0) { lVar9 = 0; do { local_178[lVar9 + uVar2 + 0xf] = local_178[lVar9 + uVar3 + 0xf]; lVar9 = lVar9 + -1; } while (-lVar9 != uVar3); } __memset_chk(local_168,0x30,uVar2 - uVar3,300); uVar3 = uVar2; } convert_froma_string(param_1,local_168,uVar3); goto LAB_0012c94f; } pdVar1 = *(double **)(param_1 + 0x10); switch(iVar6) { case 1: cVar4 = (char)(int)(float)local_178._0_4_; *(char *)pdVar1 = cVar4; if (*(char *)(param_1 + 0x65) == '\0') { uVar7 = (uint)cVar4; } else { uVar7 = (int)(float)local_178._0_4_ & 0xff; } *(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != (double)(int)uVar7; *(int8 *)(param_1 + 0x40) = 1; break; case 2: case 0xd: sVar5 = (short)(int)(float)local_178._0_4_; if (*(char *)(param_1 + 0x65) == '\0') { uVar7 = (uint)sVar5; } else { uVar7 = (int)(float)local_178._0_4_ & 0xffff; } *(short *)pdVar1 = sVar5; *(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != (double)(int)uVar7; *(int8 *)(param_1 + 0x40) = 2; break; case 3: iVar6 = (int)(float)local_178._0_4_; if (*(char *)(param_1 + 0x65) == '\0') { dVar14 = (double)(int)(float)local_178._0_4_; } else { iVar6 = (int)(long)(float)local_178._0_4_; dVar14 = (double)((long)(float)local_178._0_4_ & 0xffffffff); } *(int *)pdVar1 = iVar6; *(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != dVar14; *(int8 *)(param_1 + 0x40) = 4; break; default: goto switchD_0012c6fe_caseD_4; case 5: *pdVar1 = (double)(float)local_178._0_4_; goto LAB_0012c947; case 8: if (*(char *)(param_1 + 0x65) == '\0') { *pdVar1 = (double)(long)(float)local_178._0_4_; dVar14 = (double)(long)(float)local_178._0_4_; } else { dVar8 = (double)((long)((float)local_178._0_4_ - _DAT_0013bb38) & (long)(float)local_178._0_4_ >> 0x3f | (long)(float)local_178._0_4_); auVar13._8_4_ = (int)((ulong)dVar8 >> 0x20); auVar13._0_8_ = dVar8; auVar13._12_4_ = _UNK_0013b824; dVar12 = (double)CONCAT44(_DAT_0013b820,SUB84(dVar8,0)) - _DAT_0013b830; dVar14 = auVar13._8_8_ - _UNK_0013b838; *pdVar1 = dVar8; dVar14 = dVar14 + dVar12; } *(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != dVar14; LAB_0012c947: *(int8 *)(param_1 + 0x40) = 8; } LAB_0012c94f: *param_3 = *param_3 + 4; if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
7,077
my_collation_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_collation_get_by_name(MY_CHARSET_LOADER *loader, const char *name, myf flags) { uint cs_number; CHARSET_INFO *cs; my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_collation_number(name,flags); my_charset_loader_init_mysys(loader); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), name, index_file); } return cs; }
O0
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movq %rdx, -0x238(%rbp) leaq 0xbad7f0(%rip), %rdi # 0xc89494 leaq -0x90b(%rip), %rsi # 0xdb3a0 callq 0x2a220 movq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi callq 0xdb2f0 movl %eax, -0x23c(%rbp) movq -0x228(%rbp), %rdi callq 0xda9c0 cmpl $0x0, -0x23c(%rbp) je 0xdbd00 movq -0x228(%rbp), %rdi movl -0x23c(%rbp), %esi movq -0x238(%rbp), %rdx callq 0xdb9f0 movq %rax, -0x250(%rbp) jmp 0xdbd0b xorl %eax, %eax movq %rax, -0x250(%rbp) jmp 0xdbd0b movq -0x250(%rbp), %rax movq %rax, -0x248(%rbp) cmpq $0x0, -0x248(%rbp) jne 0xdbd6e movq -0x238(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0xdbd6e leaq -0x220(%rbp), %rdi callq 0xdb060 movq %rax, %rdi leaq 0x7dff3(%rip), %rsi # 0x159d3d callq 0x2a720 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x1c, %edi movl $0x4, %esi movb $0x0, %al callq 0xf1ba0 movq -0x248(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0xdbd9e movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x2a250 nopw %cs:(%rax,%rax)
my_collation_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_238], rdx lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov rsi, [rbp+var_238] call get_collation_number mov [rbp+var_23C], eax mov rdi, [rbp+var_228] call my_charset_loader_init_mysys cmp [rbp+var_23C], 0 jz short loc_DBD00 mov rdi, [rbp+var_228] mov esi, [rbp+var_23C] mov rdx, [rbp+var_238] call get_internal_charset mov [rbp+var_250], rax jmp short loc_DBD0B loc_DBD00: xor eax, eax mov [rbp+var_250], rax jmp short $+2 loc_DBD0B: mov rax, [rbp+var_250] mov [rbp+var_248], rax cmp [rbp+var_248], 0 jnz short loc_DBD6E mov rax, [rbp+var_238] and rax, 10h cmp rax, 0 jz short loc_DBD6E lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 1Ch mov esi, 4 mov al, 0 call my_error loc_DBD6E: mov rax, [rbp+var_248] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_DBD9E mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_DBD9E: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { long long charsets_dir; // rax int v4; // r8d int v5; // r9d long long internal_charset; // [rsp+10h] [rbp-250h] unsigned int collation_number; // [rsp+24h] [rbp-23Ch] _BYTE v10[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); my_charset_loader_init_mysys(a1); if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( !internal_charset && (a3 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v10); stpcpy(charsets_dir, "Index.xml"); my_error(28, 4, a2, (unsigned int)v10, v4, v5); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV qword ptr [RBP + -0x238],RDX LEA RDI,[0xd89494] LEA RSI,[0x1db3a0] CALL 0x0012a220 MOV RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] CALL 0x001db2f0 MOV dword ptr [RBP + -0x23c],EAX MOV RDI,qword ptr [RBP + -0x228] CALL 0x001da9c0 CMP dword ptr [RBP + -0x23c],0x0 JZ 0x001dbd00 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x23c] MOV RDX,qword ptr [RBP + -0x238] CALL 0x001db9f0 MOV qword ptr [RBP + -0x250],RAX JMP 0x001dbd0b LAB_001dbd00: XOR EAX,EAX MOV qword ptr [RBP + -0x250],RAX JMP 0x001dbd0b LAB_001dbd0b: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x248],RAX CMP qword ptr [RBP + -0x248],0x0 JNZ 0x001dbd6e MOV RAX,qword ptr [RBP + -0x238] AND RAX,0x10 CMP RAX,0x0 JZ 0x001dbd6e LEA RDI,[RBP + -0x220] CALL 0x001db060 MOV RDI,RAX LEA RSI,[0x259d3d] CALL 0x0012a720 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x1c MOV ESI,0x4 MOV AL,0x0 CALL 0x001f1ba0 LAB_001dbd6e: MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001dbd9e MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_001dbd9e: CALL 0x0012a250
long my_collation_get_by_name(int8 param_1,int8 param_2,ulong param_3) { int iVar1; char *__dest; long in_FS_OFFSET; long local_258; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); my_charset_loader_init_mysys(param_1); if (iVar1 == 0) { local_258 = 0; } else { local_258 = get_internal_charset(param_1,iVar1,param_3); } if ((local_258 == 0) && ((param_3 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x1c,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_258; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
7,078
mi_mempack_get_block_info
eloqsql/storage/myisam/mi_packrec.c
static uchar *_mi_mempack_get_block_info(MI_INFO *myisam, MI_BIT_BUFF *bit_buff, MI_BLOCK_INFO *info, uchar **rec_buff_p, uchar *header) { header+= read_pack_length((uint) myisam->s->pack.version, header, &info->rec_len); if (myisam->s->base.blobs) { header+= read_pack_length((uint) myisam->s->pack.version, header, &info->blob_len); /* mi_alloc_rec_buff sets my_errno on error */ if (!(mi_alloc_rec_buff(myisam, info->blob_len , rec_buff_p))) return 0; /* not enough memory */ bit_buff->blob_pos= (uchar*) *rec_buff_p; bit_buff->blob_end= (uchar*) *rec_buff_p + info->blob_len; } return header; }
O3
c
mi_mempack_get_block_info: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movq %rcx, %r12 movq %rdx, %r15 movq %rsi, %r14 movzbl (%r8), %eax cmpq $0xfd, %rax ja 0x9eaab movl $0x1, %ecx jmp 0x9eae6 cmpl $0xfe, %eax jne 0x9eabd movzwl 0x1(%rbx), %eax movl $0x3, %ecx jmp 0x9eae6 movq (%rdi), %rax cmpb $0x1, 0x244(%rax) jne 0x9eade movzwl 0x1(%rbx), %ecx movzbl 0x3(%rbx), %eax shll $0x10, %eax orq %rcx, %rax movl $0x4, %ecx jmp 0x9eae6 movl 0x1(%rbx), %eax movl $0x5, %ecx movq %rax, 0x18(%r15) addq %rcx, %rbx movq (%rdi), %rax cmpl $0x0, 0x188(%rax) je 0x9eb71 movzbl (%rbx), %esi cmpq $0xfd, %rsi ja 0x9eb0d movl $0x1, %r13d jmp 0x9eb49 cmpl $0xfe, %esi jne 0x9eb21 movzwl 0x1(%rbx), %esi movl $0x3, %r13d jmp 0x9eb49 cmpb $0x1, 0x244(%rax) jne 0x9eb40 movzwl 0x1(%rbx), %eax movzbl 0x3(%rbx), %esi shll $0x10, %esi orq %rax, %rsi movl $0x4, %r13d jmp 0x9eb49 movl 0x1(%rbx), %esi movl $0x5, %r13d movq %rsi, 0x30(%r15) movq %r12, %rdx callq 0x9aba9 testq %rax, %rax je 0x9eb6f addq %r13, %rbx movq (%r12), %rax movq %rax, 0x18(%r14) addq 0x30(%r15), %rax movq %rax, 0x20(%r14) jmp 0x9eb71 xorl %ebx, %ebx movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_mi_mempack_get_block_info: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, r8 mov r12, rcx mov r15, rdx mov r14, rsi movzx eax, byte ptr [r8] cmp rax, 0FDh ja short loc_9EAAB mov ecx, 1 jmp short loc_9EAE6 loc_9EAAB: cmp eax, 0FEh jnz short loc_9EABD movzx eax, word ptr [rbx+1] mov ecx, 3 jmp short loc_9EAE6 loc_9EABD: mov rax, [rdi] cmp byte ptr [rax+244h], 1 jnz short loc_9EADE movzx ecx, word ptr [rbx+1] movzx eax, byte ptr [rbx+3] shl eax, 10h or rax, rcx mov ecx, 4 jmp short loc_9EAE6 loc_9EADE: mov eax, [rbx+1] mov ecx, 5 loc_9EAE6: mov [r15+18h], rax add rbx, rcx mov rax, [rdi] cmp dword ptr [rax+188h], 0 jz short loc_9EB71 movzx esi, byte ptr [rbx] cmp rsi, 0FDh ja short loc_9EB0D mov r13d, 1 jmp short loc_9EB49 loc_9EB0D: cmp esi, 0FEh jnz short loc_9EB21 movzx esi, word ptr [rbx+1] mov r13d, 3 jmp short loc_9EB49 loc_9EB21: cmp byte ptr [rax+244h], 1 jnz short loc_9EB40 movzx eax, word ptr [rbx+1] movzx esi, byte ptr [rbx+3] shl esi, 10h or rsi, rax mov r13d, 4 jmp short loc_9EB49 loc_9EB40: mov esi, [rbx+1] mov r13d, 5 loc_9EB49: mov [r15+30h], rsi mov rdx, r12 call mi_alloc_rec_buff test rax, rax jz short loc_9EB6F add rbx, r13 mov rax, [r12] mov [r14+18h], rax add rax, [r15+30h] mov [r14+20h], rax jmp short loc_9EB71 loc_9EB6F: xor ebx, ebx loc_9EB71: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
unsigned __int8 * mi_mempack_get_block_info( long long *a1, long long a2, long long a3, long long *a4, unsigned __int8 *a5) { unsigned long long v8; // rax long long v9; // rcx unsigned __int8 *v10; // rbx unsigned long long v11; // rsi long long v12; // r13 long long v13; // rax v8 = *a5; if ( v8 > 0xFD ) { if ( (_DWORD)v8 == 254 ) { v8 = *(unsigned __int16 *)(a5 + 1); v9 = 3LL; } else if ( *(_BYTE *)(*a1 + 580) == 1 ) { v8 = *(unsigned __int16 *)(a5 + 1) | (unsigned long long)(a5[3] << 16); v9 = 4LL; } else { v8 = *(unsigned int *)(a5 + 1); v9 = 5LL; } } else { v9 = 1LL; } *(_QWORD *)(a3 + 24) = v8; v10 = &a5[v9]; if ( *(_DWORD *)(*a1 + 392) ) { v11 = *v10; if ( v11 > 0xFD ) { if ( (_DWORD)v11 == 254 ) { v11 = *(unsigned __int16 *)(v10 + 1); v12 = 3LL; } else if ( *(_BYTE *)(*a1 + 580) == 1 ) { v11 = *(unsigned __int16 *)(v10 + 1) | (unsigned long long)(v10[3] << 16); v12 = 4LL; } else { v11 = *(unsigned int *)(v10 + 1); v12 = 5LL; } } else { v12 = 1LL; } *(_QWORD *)(a3 + 48) = v11; if ( mi_alloc_rec_buff(a1, v11, a4) ) { v10 += v12; v13 = *a4; *(_QWORD *)(a2 + 24) = *a4; *(_QWORD *)(a2 + 32) = *(_QWORD *)(a3 + 48) + v13; } else { return 0LL; } } return v10; }
_mi_mempack_get_block_info: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,R8 MOV R12,RCX MOV R15,RDX MOV R14,RSI MOVZX EAX,byte ptr [R8] CMP RAX,0xfd JA 0x0019eaab MOV ECX,0x1 JMP 0x0019eae6 LAB_0019eaab: CMP EAX,0xfe JNZ 0x0019eabd MOVZX EAX,word ptr [RBX + 0x1] MOV ECX,0x3 JMP 0x0019eae6 LAB_0019eabd: MOV RAX,qword ptr [RDI] CMP byte ptr [RAX + 0x244],0x1 JNZ 0x0019eade MOVZX ECX,word ptr [RBX + 0x1] MOVZX EAX,byte ptr [RBX + 0x3] SHL EAX,0x10 OR RAX,RCX MOV ECX,0x4 JMP 0x0019eae6 LAB_0019eade: MOV EAX,dword ptr [RBX + 0x1] MOV ECX,0x5 LAB_0019eae6: MOV qword ptr [R15 + 0x18],RAX ADD RBX,RCX MOV RAX,qword ptr [RDI] CMP dword ptr [RAX + 0x188],0x0 JZ 0x0019eb71 MOVZX ESI,byte ptr [RBX] CMP RSI,0xfd JA 0x0019eb0d MOV R13D,0x1 JMP 0x0019eb49 LAB_0019eb0d: CMP ESI,0xfe JNZ 0x0019eb21 MOVZX ESI,word ptr [RBX + 0x1] MOV R13D,0x3 JMP 0x0019eb49 LAB_0019eb21: CMP byte ptr [RAX + 0x244],0x1 JNZ 0x0019eb40 MOVZX EAX,word ptr [RBX + 0x1] MOVZX ESI,byte ptr [RBX + 0x3] SHL ESI,0x10 OR RSI,RAX MOV R13D,0x4 JMP 0x0019eb49 LAB_0019eb40: MOV ESI,dword ptr [RBX + 0x1] MOV R13D,0x5 LAB_0019eb49: MOV qword ptr [R15 + 0x30],RSI MOV RDX,R12 CALL 0x0019aba9 TEST RAX,RAX JZ 0x0019eb6f ADD RBX,R13 MOV RAX,qword ptr [R12] MOV qword ptr [R14 + 0x18],RAX ADD RAX,qword ptr [R15 + 0x30] MOV qword ptr [R14 + 0x20],RAX JMP 0x0019eb71 LAB_0019eb6f: XOR EBX,EBX LAB_0019eb71: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
byte * _mi_mempack_get_block_info (long *param_1,long param_2,long param_3,long *param_4,byte *param_5) { long lVar1; long lVar2; ulong uVar3; uVar3 = (ulong)*param_5; if (uVar3 < 0xfe) { lVar2 = 1; } else if (*param_5 == 0xfe) { uVar3 = (ulong)*(ushort *)(param_5 + 1); lVar2 = 3; } else if (*(char *)(*param_1 + 0x244) == '\x01') { uVar3 = (ulong)*(uint3 *)(param_5 + 1); lVar2 = 4; } else { uVar3 = (ulong)*(uint *)(param_5 + 1); lVar2 = 5; } *(ulong *)(param_3 + 0x18) = uVar3; param_5 = param_5 + lVar2; if (*(int *)(*param_1 + 0x188) != 0) { uVar3 = (ulong)*param_5; if (uVar3 < 0xfe) { lVar2 = 1; } else if (*param_5 == 0xfe) { uVar3 = (ulong)*(ushort *)(param_5 + 1); lVar2 = 3; } else if (*(char *)(*param_1 + 0x244) == '\x01') { uVar3 = (ulong)*(uint3 *)(param_5 + 1); lVar2 = 4; } else { uVar3 = (ulong)*(uint *)(param_5 + 1); lVar2 = 5; } *(ulong *)(param_3 + 0x30) = uVar3; lVar1 = mi_alloc_rec_buff(param_1,uVar3,param_4); if (lVar1 == 0) { param_5 = (byte *)0x0; } else { param_5 = param_5 + lVar2; lVar2 = *param_4; *(long *)(param_2 + 0x18) = lVar2; *(long *)(param_2 + 0x20) = lVar2 + *(long *)(param_3 + 0x30); } } return param_5; }
7,079
chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char>>)
Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp
constexpr explicit PieceType(std::string_view type) : pt(underlying::NONE) { assert(type.size() > 0); switch (type.data()[0]) { case 'P': pt = underlying::PAWN; break; case 'N': pt = underlying::KNIGHT; break; case 'B': pt = underlying::BISHOP; break; case 'R': pt = underlying::ROOK; break; case 'Q': pt = underlying::QUEEN; break; case 'K': pt = underlying::KING; break; case 'p': pt = underlying::PAWN; break; case 'n': pt = underlying::KNIGHT; break; case 'b': pt = underlying::BISHOP; break; case 'r': pt = underlying::ROOK; break; case 'q': pt = underlying::QUEEN; break; case 'k': pt = underlying::KING; break; default: pt = underlying::NONE; break; } }
O1
cpp
chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char>>): movb $0x6, (%rdi) testq %rsi, %rsi je 0x808b movzbl (%rdx), %ecx xorl %eax, %eax cmpl $0x61, %ecx jg 0x8050 leal -0x4b(%rcx), %edx cmpl $0x7, %edx ja 0x8078 leaq 0x8b3d(%rip), %rcx # 0x10b84 movslq (%rcx,%rdx,4), %rdx addq %rcx, %rdx jmpq *%rdx leal -0x6b(%rcx), %edx cmpl $0x7, %edx ja 0x8081 leaq 0x8b45(%rip), %rcx # 0x10ba4 movslq (%rcx,%rdx,4), %rdx addq %rcx, %rdx jmpq *%rdx movb $0x5, %al jmp 0x8088 movb $0x3, %al jmp 0x8088 movb $0x4, %al jmp 0x8088 movb $0x1, %al jmp 0x8088 cmpl $0x42, %ecx jne 0x8086 movb $0x2, %al jmp 0x8088 cmpl $0x62, %ecx je 0x807d movb $0x6, %al movb %al, (%rdi) retq pushq %rax leaq 0x8d41(%rip), %rdi # 0x10dd4 leaq 0x8b42(%rip), %rsi # 0x10bdc leaq 0x8d43(%rip), %rcx # 0x10de4 movl $0x3d9, %edx # imm = 0x3D9 callq 0x3130 nop
_ZN5chess9PieceTypeC2ESt17basic_string_viewIcSt11char_traitsIcEE: mov byte ptr [rdi], 6 test rsi, rsi jz short loc_808B movzx ecx, byte ptr [rdx] xor eax, eax cmp ecx, 61h ; 'a' jg short loc_8050 lea edx, [rcx-4Bh]; switch 8 cases cmp edx, 7 ja short def_804E; jumptable 000000000000804E default case lea rcx, jpt_804E movsxd rdx, ds:(jpt_804E - 10B84h)[rcx+rdx*4] add rdx, rcx jmp rdx; switch jump loc_8050: lea edx, [rcx-6Bh]; switch 8 cases cmp edx, 7 ja short def_8066; jumptable 0000000000008066 default case lea rcx, jpt_8066 movsxd rdx, ds:(jpt_8066 - 10BA4h)[rcx+rdx*4] add rdx, rcx jmp rdx; switch jump loc_8068: mov al, 5; jumptable 000000000000804E case 75 jmp short loc_8088; jumptable 000000000000804E case 80 loc_806C: mov al, 3; jumptable 000000000000804E case 82 jmp short loc_8088; jumptable 000000000000804E case 80 loc_8070: mov al, 4; jumptable 000000000000804E case 81 jmp short loc_8088; jumptable 000000000000804E case 80 loc_8074: mov al, 1; jumptable 000000000000804E case 78 jmp short loc_8088; jumptable 000000000000804E case 80 def_804E: cmp ecx, 42h ; 'B'; jumptable 000000000000804E default case jnz short loc_8086; jumptable 000000000000804E cases 76,77,79 loc_807D: mov al, 2 jmp short loc_8088; jumptable 000000000000804E case 80 def_8066: cmp ecx, 62h ; 'b'; jumptable 0000000000008066 default case jz short loc_807D loc_8086: mov al, 6; jumptable 000000000000804E cases 76,77,79 loc_8088: mov [rdi], al; jumptable 000000000000804E case 80 retn loc_808B: push rax lea rdi, aTypeSize0; "type.size() > 0" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aChessPiecetype; "chess::PieceType::PieceType(std::string"... mov edx, 3D9h call ___assert_fail
char chess::PieceType::PieceType(char *a1, long long a2, _BYTE *a3) { unsigned int v3; // ecx char result; // al *a1 = 6; if ( !a2 ) __assert_fail( "type.size() > 0", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp", 985LL, "chess::PieceType::PieceType(std::string_view)"); v3 = (unsigned __int8)*a3; result = 0; if ( v3 > 0x61 ) { switch ( *a3 ) { case 'k': LABEL_5: result = 5; break; case 'l': case 'm': case 'o': goto LABEL_12; case 'n': LABEL_8: result = 1; break; case 'p': break; case 'q': LABEL_7: result = 4; break; case 'r': LABEL_6: result = 3; break; default: if ( v3 == 98 ) LABEL_10: result = 2; else LABEL_12: result = 6; break; } } else { switch ( *a3 ) { case 'K': goto LABEL_5; case 'L': case 'M': case 'O': goto LABEL_12; case 'N': goto LABEL_8; case 'P': break; case 'Q': goto LABEL_7; case 'R': goto LABEL_6; default: if ( v3 == 66 ) goto LABEL_10; goto LABEL_12; } } *a1 = result; return result; }
PieceType: MOV byte ptr [RDI],0x6 TEST RSI,RSI JZ 0x0010808b MOVZX ECX,byte ptr [RDX] XOR EAX,EAX CMP ECX,0x61 JG 0x00108050 LEA EDX,[RCX + -0x4b] CMP EDX,0x7 JA 0x00108078 LEA RCX,[0x110b84] MOVSXD RDX,dword ptr [RCX + RDX*0x4] ADD RDX,RCX switchD: JMP RDX LAB_00108050: LEA EDX,[RCX + -0x6b] CMP EDX,0x7 JA 0x00108081 LEA RCX,[0x110ba4] MOVSXD RDX,dword ptr [RCX + RDX*0x4] ADD RDX,RCX switchD: JMP RDX caseD_4b: MOV AL,0x5 JMP 0x00108088 caseD_52: MOV AL,0x3 JMP 0x00108088 caseD_51: MOV AL,0x4 JMP 0x00108088 caseD_4e: MOV AL,0x1 JMP 0x00108088 default: CMP ECX,0x42 JNZ 0x00108086 LAB_0010807d: MOV AL,0x2 JMP 0x00108088 default: CMP ECX,0x62 JZ 0x0010807d caseD_4c: MOV AL,0x6 caseD_50: MOV byte ptr [RDI],AL RET LAB_0010808b: PUSH RAX LEA RDI,[0x110dd4] LEA RSI,[0x110bdc] LEA RCX,[0x110de4] MOV EDX,0x3d9 CALL 0x00103130
/* chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char> >) */ void __thiscall chess::PieceType::PieceType(PieceType *this,long param_2,byte *param_3) { byte bVar1; PieceType PVar2; *this = (PieceType)0x6; if (param_2 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("type.size() > 0", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp" ,0x3d9,"chess::PieceType::PieceType(std::string_view)"); } bVar1 = *param_3; PVar2 = (PieceType)0x0; if (bVar1 < 0x62) { switch(bVar1) { case 0x4b: switchD_0010804e_caseD_4b: PVar2 = (PieceType)0x5; goto switchD_0010804e_caseD_50; case 0x4c: case 0x4d: case 0x4f: break; case 0x4e: switchD_0010804e_caseD_4e: PVar2 = (PieceType)0x1; case 0x50: goto switchD_0010804e_caseD_50; case 0x51: switchD_0010804e_caseD_51: PVar2 = (PieceType)0x4; goto switchD_0010804e_caseD_50; case 0x52: switchD_0010804e_caseD_52: PVar2 = (PieceType)0x3; goto switchD_0010804e_caseD_50; default: if (bVar1 == 0x42) { LAB_0010807d: PVar2 = (PieceType)0x2; goto switchD_0010804e_caseD_50; } } } else { switch(bVar1) { case 0x6b: goto switchD_0010804e_caseD_4b; case 0x6c: case 0x6d: case 0x6f: break; case 0x6e: goto switchD_0010804e_caseD_4e; case 0x70: goto switchD_0010804e_caseD_50; case 0x71: goto switchD_0010804e_caseD_51; case 0x72: goto switchD_0010804e_caseD_52; default: if (bVar1 == 0x62) goto LAB_0010807d; } } PVar2 = (PieceType)0x6; switchD_0010804e_caseD_50: *this = PVar2; return; }
7,080
chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char>>)
Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp
constexpr explicit PieceType(std::string_view type) : pt(underlying::NONE) { assert(type.size() > 0); switch (type.data()[0]) { case 'P': pt = underlying::PAWN; break; case 'N': pt = underlying::KNIGHT; break; case 'B': pt = underlying::BISHOP; break; case 'R': pt = underlying::ROOK; break; case 'Q': pt = underlying::QUEEN; break; case 'K': pt = underlying::KING; break; case 'p': pt = underlying::PAWN; break; case 'n': pt = underlying::KNIGHT; break; case 'b': pt = underlying::BISHOP; break; case 'r': pt = underlying::ROOK; break; case 'q': pt = underlying::QUEEN; break; case 'k': pt = underlying::KING; break; default: pt = underlying::NONE; break; } }
O3
cpp
chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char>>): movb $0x6, (%rdi) testq %rsi, %rsi je 0x6f44 movzbl (%rdx), %ecx xorl %eax, %eax cmpl $0x61, %ecx jg 0x6f0c leal -0x4b(%rcx), %edx cmpl $0x7, %edx ja 0x6f34 leaq 0x7c51(%rip), %rcx # 0xeb54 movslq (%rcx,%rdx,4), %rdx addq %rcx, %rdx jmpq *%rdx leal -0x6b(%rcx), %edx cmpl $0x7, %edx ja 0x6f3a leaq 0x7c59(%rip), %rcx # 0xeb74 movslq (%rcx,%rdx,4), %rdx addq %rcx, %rdx jmpq *%rdx movb $0x5, %al jmp 0x6f41 movb $0x3, %al jmp 0x6f41 movb $0x4, %al jmp 0x6f41 movb $0x1, %al jmp 0x6f41 cmpl $0x42, %ecx je 0x6f3f retq cmpl $0x62, %ecx jne 0x6f39 movb $0x2, %al movb %al, (%rdi) retq pushq %rax leaq 0x7e58(%rip), %rdi # 0xeda4 leaq 0x7c59(%rip), %rsi # 0xebac leaq 0x7e5a(%rip), %rcx # 0xedb4 movl $0x3d9, %edx # imm = 0x3D9 callq 0x2130
_ZN5chess9PieceTypeC2ESt17basic_string_viewIcSt11char_traitsIcEE: mov byte ptr [rdi], 6 test rsi, rsi jz short loc_6F44 movzx ecx, byte ptr [rdx] xor eax, eax cmp ecx, 61h ; 'a' jg short loc_6F0C lea edx, [rcx-4Bh]; switch 8 cases cmp edx, 7 ja short def_6F0A; jumptable 0000000000006F0A default case lea rcx, jpt_6F0A movsxd rdx, ds:(jpt_6F0A - 0EB54h)[rcx+rdx*4] add rdx, rcx jmp rdx; switch jump loc_6F0C: lea edx, [rcx-6Bh]; switch 8 cases cmp edx, 7 ja short def_6F22; jumptable 0000000000006F22 default case lea rcx, jpt_6F22 movsxd rdx, ds:(jpt_6F22 - 0EB74h)[rcx+rdx*4] add rdx, rcx jmp rdx; switch jump loc_6F24: mov al, 5; jumptable 0000000000006F0A case 75 jmp short loc_6F41; jumptable 0000000000006F0A case 80 loc_6F28: mov al, 3; jumptable 0000000000006F0A case 82 jmp short loc_6F41; jumptable 0000000000006F0A case 80 loc_6F2C: mov al, 4; jumptable 0000000000006F0A case 81 jmp short loc_6F41; jumptable 0000000000006F0A case 80 loc_6F30: mov al, 1; jumptable 0000000000006F0A case 78 jmp short loc_6F41; jumptable 0000000000006F0A case 80 def_6F0A: cmp ecx, 42h ; 'B'; jumptable 0000000000006F0A default case jz short loc_6F3F locret_6F39: retn; jumptable 0000000000006F0A cases 76,77,79 def_6F22: cmp ecx, 62h ; 'b'; jumptable 0000000000006F22 default case jnz short locret_6F39; jumptable 0000000000006F0A cases 76,77,79 loc_6F3F: mov al, 2 loc_6F41: mov [rdi], al; jumptable 0000000000006F0A case 80 retn loc_6F44: push rax lea rdi, aTypeSize0; "type.size() > 0" lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rcx, aChessPiecetype; "chess::PieceType::PieceType(std::string"... mov edx, 3D9h call ___assert_fail
char chess::PieceType::PieceType(char *a1, long long a2, _BYTE *a3) { unsigned int v3; // ecx char result; // al *a1 = 6; if ( !a2 ) __assert_fail( "type.size() > 0", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp", 985LL, "chess::PieceType::PieceType(std::string_view)"); v3 = (unsigned __int8)*a3; result = 0; if ( v3 > 0x61 ) { switch ( *a3 ) { case 'k': LABEL_5: result = 5; goto LABEL_13; case 'l': case 'm': case 'o': return result; case 'n': LABEL_8: result = 1; goto LABEL_13; case 'p': goto LABEL_13; case 'q': LABEL_7: result = 4; goto LABEL_13; case 'r': LABEL_6: result = 3; goto LABEL_13; default: if ( v3 != 98 ) return result; LABEL_12: result = 2; LABEL_13: *a1 = result; break; } } else { switch ( *a3 ) { case 'K': goto LABEL_5; case 'L': case 'M': case 'O': return result; case 'N': goto LABEL_8; case 'P': goto LABEL_13; case 'Q': goto LABEL_7; case 'R': goto LABEL_6; default: if ( v3 == 66 ) goto LABEL_12; break; } } return result; }
PieceType: MOV byte ptr [RDI],0x6 TEST RSI,RSI JZ 0x00106f44 MOVZX ECX,byte ptr [RDX] XOR EAX,EAX CMP ECX,0x61 JG 0x00106f0c LEA EDX,[RCX + -0x4b] CMP EDX,0x7 JA 0x00106f34 LEA RCX,[0x10eb54] MOVSXD RDX,dword ptr [RCX + RDX*0x4] ADD RDX,RCX switchD: JMP RDX LAB_00106f0c: LEA EDX,[RCX + -0x6b] CMP EDX,0x7 JA 0x00106f3a LEA RCX,[0x10eb74] MOVSXD RDX,dword ptr [RCX + RDX*0x4] ADD RDX,RCX switchD: JMP RDX caseD_4b: MOV AL,0x5 JMP 0x00106f41 caseD_52: MOV AL,0x3 JMP 0x00106f41 caseD_51: MOV AL,0x4 JMP 0x00106f41 caseD_4e: MOV AL,0x1 JMP 0x00106f41 default: CMP ECX,0x42 JZ 0x00106f3f caseD_4c: RET default: CMP ECX,0x62 JNZ 0x00106f39 LAB_00106f3f: MOV AL,0x2 caseD_50: MOV byte ptr [RDI],AL RET LAB_00106f44: PUSH RAX LEA RDI,[0x10eda4] LEA RSI,[0x10ebac] LEA RCX,[0x10edb4] MOV EDX,0x3d9 CALL 0x00102130
/* chess::PieceType::PieceType(std::basic_string_view<char, std::char_traits<char> >) */ void __thiscall chess::PieceType::PieceType(PieceType *this,long param_2,byte *param_3) { byte bVar1; PieceType PVar2; *this = (PieceType)0x6; if (param_2 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("type.size() > 0", "/workspace/llm4binary/github/2025_star3/Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp" ,0x3d9,"chess::PieceType::PieceType(std::string_view)"); } bVar1 = *param_3; PVar2 = (PieceType)0x0; if (0x61 < bVar1) { switch(bVar1) { case 0x6b: switchD_00106f0a_caseD_4b: PVar2 = (PieceType)0x5; break; case 0x6c: case 0x6d: case 0x6f: switchD_00106f0a_caseD_4c: return; case 0x6e: switchD_00106f0a_caseD_4e: PVar2 = (PieceType)0x1; break; case 0x70: break; case 0x71: switchD_00106f0a_caseD_51: PVar2 = (PieceType)0x4; break; case 0x72: switchD_00106f0a_caseD_52: PVar2 = (PieceType)0x3; break; default: if (bVar1 != 0x62) { return; } LAB_00106f3f: PVar2 = (PieceType)0x2; } switchD_00106f0a_caseD_50: *this = PVar2; return; } switch(bVar1) { case 0x4b: goto switchD_00106f0a_caseD_4b; case 0x4c: case 0x4d: case 0x4f: goto switchD_00106f0a_caseD_4c; case 0x4e: goto switchD_00106f0a_caseD_4e; case 0x50: goto switchD_00106f0a_caseD_50; case 0x51: goto switchD_00106f0a_caseD_51; case 0x52: goto switchD_00106f0a_caseD_52; default: if (bVar1 != 0x42) { return; } goto LAB_00106f3f; } }
7,081
UCIAdapter::handleSetOption(std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>&)
Razamindset[P]pawnstar-chess-engine/src/main.cpp
void handleSetOption(std::istringstream& iss) { std::string token, name, value; iss >> token; // "name" if (token != "name") return; // Get option name (might contain spaces) std::string nameStr; while (iss >> token && token != "value") { if (!nameStr.empty()) nameStr += " "; nameStr += token; } // Get option value std::string valueStr; while (iss >> token) { if (!valueStr.empty()) valueStr += " "; valueStr += token; } // Set the option in your engine // engine->setOption(nameStr, valueStr); }
O1
cpp
UCIAdapter::handleSetOption(std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rsi, %rbx leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) xorl %eax, %eax movq %rax, -0x8(%r14) movb %al, (%r14) leaq 0x78(%rsp), %r15 movq %r15, -0x10(%r15) movq %rax, -0x8(%r15) movb %al, (%r15) leaq 0x98(%rsp), %rbp movq %rbp, -0x10(%rbp) movq %rax, -0x8(%rbp) movb %al, (%rbp) leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x3280 leaq 0x82dc(%rip), %rsi # 0xebad leaq 0x8(%rsp), %rdi callq 0x3060 testl %eax, %eax jne 0x6a02 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x8(%rsp), %r14 leaq 0x82af(%rip), %r15 # 0xebb2 leaq 0x28(%rsp), %r12 leaq 0xa389(%rip), %r13 # 0x10c98 movq %rbx, %rdi movq %r14, %rsi callq 0x3280 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x695e movq %r14, %rdi movq %r15, %rsi callq 0x3060 testl %eax, %eax je 0x695e cmpq $0x0, 0x30(%rsp) je 0x694a movq %r12, %rdi movq %r13, %rsi callq 0x33b0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r12, %rdi callq 0x3070 jmp 0x690f leaq 0x58(%rsp), %r13 movq %r13, -0x10(%r13) movq $0x0, -0x8(%r13) movb $0x0, (%r13) leaq 0x8(%rsp), %r14 leaq 0x48(%rsp), %r15 leaq 0xa313(%rip), %r12 # 0x10c98 movq %rbx, %rdi movq %r14, %rsi callq 0x3280 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x69c5 cmpq $0x0, 0x50(%rsp) je 0x69b1 movq %r15, %rdi movq %r12, %rsi callq 0x33b0 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %r15, %rdi callq 0x3070 jmp 0x6985 movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x69dc movq 0x58(%rsp), %rsi incq %rsi callq 0x3210 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi leaq 0x18(%rsp), %r14 leaq 0x78(%rsp), %r15 je 0x6a02 movq 0x38(%rsp), %rsi incq %rsi callq 0x3210 movq 0x88(%rsp), %rdi cmpq %rbp, %rdi je 0x6a1f movq 0x98(%rsp), %rsi incq %rsi callq 0x3210 movq 0x68(%rsp), %rdi cmpq %r15, %rdi je 0x6a36 movq 0x78(%rsp), %rsi incq %rsi callq 0x3210 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x6a4d movq 0x18(%rsp), %rsi incq %rsi callq 0x3210 addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x6a9f movq %rax, %rbx jmp 0x6a83 movq %rax, %rbx movq 0x48(%rsp), %rdi cmpq %r13, %rdi je 0x6a83 movq 0x58(%rsp), %rsi incq %rsi callq 0x3210 movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x6a9f movq 0x38(%rsp), %rsi incq %rsi callq 0x3210 movq 0x88(%rsp), %rdi cmpq %rbp, %rdi je 0x6abc movq 0x98(%rsp), %rsi incq %rsi callq 0x3210 movq 0x68(%rsp), %rdi leaq 0x78(%rsp), %rax cmpq %rax, %rdi je 0x6ad8 movq 0x78(%rsp), %rsi incq %rsi callq 0x3210 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x6af4 movq 0x18(%rsp), %rsi incq %rsi callq 0x3210 movq %rbx, %rdi callq 0x3360
_ZN10UCIAdapter15handleSetOptionERNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov rbx, rsi lea r14, [rsp+0D8h+var_C0] mov [r14-10h], r14 xor eax, eax mov [r14-8], rax mov [r14], al lea r15, [rsp+0D8h+var_60] mov [r15-10h], r15 mov [r15-8], rax mov [r15], al lea rbp, [rsp+0D8h+var_40] mov [rbp-10h], rbp mov [rbp-8], rax mov [rbp+0], al lea rsi, [rsp+0D8h+var_D0] mov rdi, rbx call __ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator>><char>(std::istream &,std::string &) lea rsi, aName; "name" lea rdi, [rsp+0D8h+var_D0] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jnz loc_6A02 lea rax, [rsp+0D8h+var_A0] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r14, [rsp+0D8h+var_D0] lea r15, aValue; "value" lea r12, [rsp+0D8h+var_B0] lea r13, aEp+3; " " loc_690F: mov rdi, rbx mov rsi, r14 call __ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator>><char>(std::istream &,std::string &) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_695E mov rdi, r14 mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_695E cmp [rsp+0D8h+var_A8], 0 jz short loc_694A mov rdi, r12 mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_694A: mov rsi, [rsp+0D8h+var_D0] mov rdx, [rsp+0D8h+var_C8] mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_690F loc_695E: lea r13, [rsp+0D8h+var_80] mov [r13-10h], r13 mov qword ptr [r13-8], 0 mov byte ptr [r13+0], 0 lea r14, [rsp+0D8h+var_D0] lea r15, [rsp+0D8h+var_90] lea r12, aEp+3; " " loc_6985: mov rdi, rbx mov rsi, r14 call __ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator>><char>(std::istream &,std::string &) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_69C5 cmp [rsp+0D8h+var_88], 0 jz short loc_69B1 mov rdi, r15 mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_69B1: mov rsi, [rsp+0D8h+var_D0] mov rdx, [rsp+0D8h+var_C8] mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_6985 loc_69C5: mov rdi, [rsp+0D8h+var_90]; void * cmp rdi, r13 jz short loc_69DC mov rsi, [rsp+0D8h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_69DC: mov rdi, [rsp+0D8h+var_B0]; void * lea rax, [rsp+0D8h+var_A0] cmp rdi, rax lea r14, [rsp+0D8h+var_C0] lea r15, [rsp+0D8h+var_60] jz short loc_6A02 mov rsi, [rsp+0D8h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A02: mov rdi, [rsp+0D8h+var_50]; void * cmp rdi, rbp jz short loc_6A1F mov rsi, [rsp+0D8h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A1F: mov rdi, [rsp+0D8h+var_70]; void * cmp rdi, r15 jz short loc_6A36 mov rsi, [rsp+0D8h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A36: mov rdi, [rsp+0D8h+var_D0]; void * cmp rdi, r14 jz short loc_6A4D mov rsi, [rsp+0D8h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A4D: add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_6A9F mov rbx, rax jmp short loc_6A83 mov rbx, rax mov rdi, [rsp+arg_40]; void * cmp rdi, r13 jz short loc_6A83 mov rsi, [rsp+arg_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A83: mov rdi, [rsp+arg_20]; void * lea rax, [rsp+arg_30] cmp rdi, rax jz short loc_6A9F mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6A9F: mov rdi, [rsp+arg_80]; void * cmp rdi, rbp jz short loc_6ABC mov rsi, [rsp+arg_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6ABC: mov rdi, [rsp+arg_60]; void * lea rax, [rsp+arg_70] cmp rdi, rax jz short loc_6AD8 mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6AD8: mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] cmp rdi, rax jz short loc_6AF4 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6AF4: mov rdi, rbx call __Unwind_Resume
void UCIAdapter::handleSetOption(int a1, long long a2) { _QWORD *v2; // rax _QWORD *v3; // rax void *v4; // [rsp+8h] [rbp-D0h] BYREF long long v5; // [rsp+10h] [rbp-C8h] _QWORD v6[2]; // [rsp+18h] [rbp-C0h] BYREF void *v7; // [rsp+28h] [rbp-B0h] BYREF long long v8; // [rsp+30h] [rbp-A8h] _QWORD v9[2]; // [rsp+38h] [rbp-A0h] BYREF void *v10; // [rsp+48h] [rbp-90h] BYREF long long v11; // [rsp+50h] [rbp-88h] _QWORD v12[2]; // [rsp+58h] [rbp-80h] BYREF void *v13; // [rsp+68h] [rbp-70h] long long v14; // [rsp+70h] [rbp-68h] _QWORD v15[2]; // [rsp+78h] [rbp-60h] BYREF void *v16; // [rsp+88h] [rbp-50h] long long v17; // [rsp+90h] [rbp-48h] _QWORD v18[8]; // [rsp+98h] [rbp-40h] BYREF v4 = v6; v5 = 0LL; LOBYTE(v6[0]) = 0; v13 = v15; v14 = 0LL; LOBYTE(v15[0]) = 0; v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; std::operator>><char>(a2, &v4); if ( !(unsigned int)std::string::compare(&v4, "name") ) { v7 = v9; v8 = 0LL; LOBYTE(v9[0]) = 0; while ( 1 ) { v2 = (_QWORD *)std::operator>><char>(a2, &v4); if ( (*((_BYTE *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) & 5) != 0 || !(unsigned int)std::string::compare(&v4, "value") ) break; if ( v8 ) std::string::append(&v7, " "); std::string::_M_append(&v7, v4, v5); } v10 = v12; v11 = 0LL; LOBYTE(v12[0]) = 0; while ( 1 ) { v3 = (_QWORD *)std::operator>><char>(a2, &v4); if ( (*((_BYTE *)v3 + *(_QWORD *)(*v3 - 24LL) + 32) & 5) != 0 ) break; if ( v11 ) std::string::append(&v10, " "); std::string::_M_append(&v10, v4, v5); } if ( v10 != v12 ) operator delete(v10, v12[0] + 1LL); if ( v7 != v9 ) operator delete(v7, v9[0] + 1LL); } if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); if ( v13 != v15 ) operator delete(v13, v15[0] + 1LL); if ( v4 != v6 ) operator delete(v4, v6[0] + 1LL); }
handleSetOption: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV RBX,RSI LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 XOR EAX,EAX MOV qword ptr [R14 + -0x8],RAX MOV byte ptr [R14],AL LEA R15,[RSP + 0x78] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],RAX MOV byte ptr [R15],AL LEA RBP,[RSP + 0x98] MOV qword ptr [RBP + -0x10],RBP MOV qword ptr [RBP + -0x8],RAX MOV byte ptr [RBP],AL LAB_001068bd: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00103280 LEA RSI,[0x10ebad] LEA RDI,[RSP + 0x8] CALL 0x00103060 TEST EAX,EAX JNZ 0x00106a02 LEA RAX,[RSP + 0x38] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R14,[RSP + 0x8] LEA R15,[0x10ebb2] LEA R12,[RSP + 0x28] LEA R13,[0x110c98] LAB_0010690f: MOV RDI,RBX MOV RSI,R14 CALL 0x00103280 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x0010695e MOV RDI,R14 MOV RSI,R15 CALL 0x00103060 TEST EAX,EAX JZ 0x0010695e CMP qword ptr [RSP + 0x30],0x0 JZ 0x0010694a MOV RDI,R12 MOV RSI,R13 CALL 0x001033b0 LAB_0010694a: MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RDI,R12 CALL 0x00103070 JMP 0x0010690f LAB_0010695e: LEA R13,[RSP + 0x58] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],0x0 MOV byte ptr [R13],0x0 LEA R14,[RSP + 0x8] LEA R15,[RSP + 0x48] LEA R12,[0x110c98] LAB_00106985: MOV RDI,RBX MOV RSI,R14 CALL 0x00103280 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x001069c5 CMP qword ptr [RSP + 0x50],0x0 JZ 0x001069b1 MOV RDI,R15 MOV RSI,R12 CALL 0x001033b0 LAB_001069b1: MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] MOV RDI,R15 CALL 0x00103070 LAB_001069c3: JMP 0x00106985 LAB_001069c5: MOV RDI,qword ptr [RSP + 0x48] CMP RDI,R13 JZ 0x001069dc MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x00103210 LAB_001069dc: MOV RDI,qword ptr [RSP + 0x28] LEA RAX,[RSP + 0x38] CMP RDI,RAX LEA R14,[RSP + 0x18] LEA R15,[RSP + 0x78] JZ 0x00106a02 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00103210 LAB_00106a02: MOV RDI,qword ptr [RSP + 0x88] CMP RDI,RBP JZ 0x00106a1f MOV RSI,qword ptr [RSP + 0x98] INC RSI CALL 0x00103210 LAB_00106a1f: MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R15 JZ 0x00106a36 MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x00103210 LAB_00106a36: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x00106a4d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00103210 LAB_00106a4d: ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* UCIAdapter::handleSetOption(std::__cxx11::istringstream&) */ void __thiscall UCIAdapter::handleSetOption(UCIAdapter *this,istringstream *param_1) { int iVar1; istream *piVar2; int1 *local_d0; int8 local_c8; int1 local_c0; int7 uStack_bf; int1 *local_b0; long local_a8; int1 local_a0; int7 uStack_9f; int1 *local_90; long local_88; int1 local_80; int7 uStack_7f; int1 *local_70; int8 local_68; int1 local_60; int7 uStack_5f; int1 *local_50; int8 local_48; int1 local_40; int7 uStack_3f; local_d0 = &local_c0; local_c8 = 0; local_c0 = 0; local_70 = &local_60; local_68 = 0; local_60 = 0; local_48 = 0; local_40 = 0; /* try { // try from 001068bd to 001068c9 has its CatchHandler @ 00106a5f */ local_50 = &local_40; std::operator>>((istream *)param_1,(string *)&local_d0); iVar1 = std::__cxx11::string::compare((char *)&local_d0); if (iVar1 == 0) { local_b0 = &local_a0; local_a8 = 0; local_a0 = 0; while( true ) { /* try { // try from 0010690f to 0010695b has its CatchHandler @ 00106a64 */ piVar2 = std::operator>>((istream *)param_1,(string *)&local_d0); if (((byte)piVar2[*(long *)(*(long *)piVar2 + -0x18) + 0x20] & 5) != 0) break; iVar1 = std::__cxx11::string::compare((char *)&local_d0); if (iVar1 == 0) break; if (local_a8 != 0) { std::__cxx11::string::append((char *)&local_b0); } std::__cxx11::string::_M_append((char *)&local_b0,(ulong)local_d0); } local_88 = 0; local_80 = 0; local_90 = &local_80; while( true ) { /* try { // try from 00106985 to 001069c2 has its CatchHandler @ 00106a69 */ piVar2 = std::operator>>((istream *)param_1,(string *)&local_d0); if (((byte)piVar2[*(long *)(*(long *)piVar2 + -0x18) + 0x20] & 5) != 0) break; if (local_88 != 0) { std::__cxx11::string::append((char *)&local_90); } std::__cxx11::string::_M_append((char *)&local_90,(ulong)local_d0); } if (local_90 != &local_80) { operator_delete(local_90,CONCAT71(uStack_7f,local_80) + 1); } if (local_b0 != &local_a0) { operator_delete(local_b0,CONCAT71(uStack_9f,local_a0) + 1); } } if (local_50 != &local_40) { operator_delete(local_50,CONCAT71(uStack_3f,local_40) + 1); } if (local_70 != &local_60) { operator_delete(local_70,CONCAT71(uStack_5f,local_60) + 1); } if (local_d0 != &local_c0) { operator_delete(local_d0,CONCAT71(uStack_bf,local_c0) + 1); } return; }
7,082
inline_mysql_mutex_init
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_mutex_init( #ifdef HAVE_PSI_MUTEX_INTERFACE PSI_mutex_key key, #endif mysql_mutex_t *that, const pthread_mutexattr_t *attr #ifdef SAFE_MUTEX , const char *src_name, const char *src_file, uint src_line #endif ) { #ifdef HAVE_PSI_MUTEX_INTERFACE that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex); #else that->m_psi= NULL; #endif #ifdef COROUTINE_ENABLED that->l.data= that; that->l.prev= that->l.next= NULL; #endif #ifdef SAFE_MUTEX return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line); #else return pthread_mutex_init(&that->m_mutex, attr); #endif }
O0
c
inline_mysql_mutex_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x1d204e(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x40(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x38(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x28(%rax) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x2a340 addq $0x20, %rsp popq %rbp retq nopl (%rax)
inline_mysql_mutex_init_9: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, PSI_server mov rax, [rax] mov rax, [rax+40h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+40h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_10] mov [rax+38h], rcx mov rax, [rbp+var_10] mov qword ptr [rax+30h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+28h], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _pthread_mutex_init add rsp, 20h pop rbp retn
long long inline_mysql_mutex_init_9(unsigned int a1, _QWORD *a2, long long a3) { a2[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(a1, a2); a2[7] = a2; a2[6] = 0LL; a2[5] = 0LL; return pthread_mutex_init(a2, a3); }
inline_mysql_mutex_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x40] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x28],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0012a340 ADD RSP,0x20 POP RBP RET
void inline_mysql_mutex_init (int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2); *(int8 *)((long)param_2 + 0x40) = uVar1; *(pthread_mutex_t **)((long)param_2 + 0x38) = param_2; *(int8 *)((long)param_2 + 0x30) = 0; param_2[1].__align = 0; pthread_mutex_init(param_2,param_3); return; }
7,083
testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int)
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
GTEST_LOCK_EXCLUDED_(mutex_) { #ifdef GTEST_HAS_ABSL std::string result; if (max_depth <= 0) { return result; } max_depth = std::min(max_depth, kMaxStackTraceDepth); std::vector<void*> raw_stack(max_depth); // Skips the frames requested by the caller, plus this function. const int raw_stack_size = absl::GetStackTrace(&raw_stack[0], max_depth, skip_count + 1); void* caller_frame = nullptr; { MutexLock lock(&mutex_); caller_frame = caller_frame_; } for (int i = 0; i < raw_stack_size; ++i) { if (raw_stack[i] == caller_frame && !GTEST_FLAG_GET(show_internal_stack_frames)) { // Add a marker to the trace and stop adding frames. absl::StrAppend(&result, kElidedFramesMarker, "\n"); break; } char tmp[1024]; const char* symbol = "(unknown)"; if (absl::Symbolize(raw_stack[i], tmp, sizeof(tmp))) { symbol = tmp; } char line[1024]; snprintf(line, sizeof(line), " %p: %s\n", raw_stack[i], symbol); result += line; } return result; #else // !GTEST_HAS_ABSL static_cast<void>(max_depth); static_cast<void>(skip_count); return ""; #endif // GTEST_HAS_ABSL }
O0
cpp
testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int): subq $0x48, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, (%rsp) movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movl %edx, 0x34(%rsp) movl %ecx, 0x30(%rsp) leaq 0x2f(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xb920 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rdx leaq 0x39d3c(%rip), %rsi # 0x7521e callq 0xe840 jmp 0x3b4e9 leaq 0x2f(%rsp), %rdi callq 0xb500 movq (%rsp), %rax addq $0x48, %rsp retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0x20(%rsp) movl %eax, 0x1c(%rsp) leaq 0x2f(%rsp), %rdi callq 0xb500 movq 0x20(%rsp), %rdi callq 0xb910 nop
_ZN7testing8internal18OsStackTraceGetter17CurrentStackTraceB5cxx11Eii: sub rsp, 48h mov [rsp+48h+var_40], rdi mov rax, rdi mov [rsp+48h+var_48], rax mov [rsp+48h+var_8], rdi mov [rsp+48h+var_10], rsi mov [rsp+48h+var_14], edx mov [rsp+48h+var_18], ecx lea rdi, [rsp+48h+var_19] mov [rsp+48h+var_38], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdi, [rsp+48h+var_40] mov rdx, [rsp+48h+var_38] lea rsi, aSFromSSMsTotal+1Ah; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_3B4E9: lea rdi, [rsp+48h+var_19] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rax, [rsp+48h+var_48] add rsp, 48h retn mov rcx, rax mov eax, edx mov [rsp+arg_18], rcx mov [rsp+arg_14], eax lea rdi, [rsp+arg_27] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rsp+arg_18] call __Unwind_Resume
long long testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11]( long long a1, long long a2, long long a3, int a4) { char v5; // [rsp+2Fh] [rbp-19h] BYREF int v6; // [rsp+30h] [rbp-18h] int v7; // [rsp+34h] [rbp-14h] long long v8; // [rsp+38h] [rbp-10h] long long v9; // [rsp+40h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v6 = a4; std::allocator<char>::allocator(&v5, a2, a3); std::string::basic_string<std::allocator<char>>(a1, (long long)"", (long long)&v5); std::allocator<char>::~allocator(&v5, ""); return a1; }
CurrentStackTrace[abi:cxx11]: SUB RSP,0x48 MOV qword ptr [RSP + 0x8],RDI MOV RAX,RDI MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x40],RDI MOV qword ptr [RSP + 0x38],RSI MOV dword ptr [RSP + 0x34],EDX MOV dword ptr [RSP + 0x30],ECX LEA RDI,[RSP + 0x2f] MOV qword ptr [RSP + 0x10],RDI CALL 0x0010b920 MOV RDI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_0013b4db: LEA RSI,[0x17521e] CALL 0x0010e840 LAB_0013b4e7: JMP 0x0013b4e9 LAB_0013b4e9: LEA RDI,[RSP + 0x2f] CALL 0x0010b500 MOV RAX,qword ptr [RSP] ADD RSP,0x48 RET
/* testing::internal::OsStackTraceGetter::CurrentStackTrace[abi:cxx11](int, int) */ string * testing::internal::OsStackTraceGetter::CurrentStackTrace_abi_cxx11_ (int param_1,int param_2) { int4 in_register_00000034; int4 in_register_0000003c; string *this; allocator local_19 [9]; int8 local_10; string *local_8; this = (string *)CONCAT44(in_register_0000003c,param_1); local_10 = CONCAT44(in_register_00000034,param_2); local_8 = this; std::allocator<char>::allocator(); /* try { // try from 0013b4db to 0013b4e6 has its CatchHandler @ 0013b4fc */ std::__cxx11::string::string<std::allocator<char>>(this,"",local_19); std::allocator<char>::~allocator((allocator<char> *)local_19); return this; }
7,084
exit_status
eloqsql/unittest/mytap/tap.c
int exit_status() { char buff[60]; /* If there were no plan, we write one last instead. */ if (g_test.plan == NO_PLAN) plan(g_test.last); if (g_test.plan != g_test.last) { diag("%d tests planned but%s %d executed", g_test.plan, (g_test.plan > g_test.last ? " only" : ""), g_test.last); return EXIT_FAILURE; } if (g_test.failed > 0) { diag("Failed %d tests!", g_test.failed); return EXIT_FAILURE; } if (start_time) { end_timer(start_time, buff); printf("Test took %s\n", buff); fflush(stdout); } return EXIT_SUCCESS; }
O0
c
exit_status: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) cmpl $0x0, 0x15f7c(%rip) # 0x17c98 jne 0x1d29 movl 0x15f78(%rip), %edi # 0x17c9c callq 0x1670 movl 0x15f69(%rip), %eax # 0x17c98 cmpl 0x15f67(%rip), %eax # 0x17c9c je 0x1d7a movl 0x15f5b(%rip), %esi # 0x17c98 movl 0x15f55(%rip), %ecx # 0x17c98 movl 0x15f53(%rip), %edi # 0x17c9c leaq 0xb3db(%rip), %rdx # 0xd12b leaq 0xb40f(%rip), %rax # 0xd166 cmpl %edi, %ecx cmovgq %rax, %rdx movl 0x15f39(%rip), %ecx # 0x17c9c leaq 0xb3d9(%rip), %rdi # 0xd143 movb $0x0, %al callq 0x15a0 movl $0x1, -0x54(%rbp) jmp 0x1de2 cmpl $0x0, 0x15f1f(%rip) # 0x17ca0 jle 0x1da0 movl 0x15f17(%rip), %esi # 0x17ca0 leaq 0xb3dc(%rip), %rdi # 0xd16c movb $0x0, %al callq 0x15a0 movl $0x1, -0x54(%rbp) jmp 0x1de2 cmpq $0x0, 0x15f80(%rip) # 0x17d28 je 0x1ddb movq 0x15f77(%rip), %rdi # 0x17d28 leaq -0x50(%rbp), %rsi callq 0x1e10 leaq -0x50(%rbp), %rsi leaq 0xb3b8(%rip), %rdi # 0xd17d movb $0x0, %al callq 0x1040 movq 0xe1fd(%rip), %rax # 0xffd0 movq (%rax), %rdi callq 0x10b0 movl $0x0, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x58(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x1e03 movl -0x58(%rbp), %eax addq $0x60, %rsp popq %rbp retq callq 0x10a0 nopl (%rax,%rax)
exit_status: push rbp mov rbp, rsp sub rsp, 60h mov rax, fs:28h mov [rbp+var_8], rax cmp cs:g_test, 0 jnz short loc_1D29 mov edi, cs:dword_17C9C call plan loc_1D29: mov eax, cs:g_test cmp eax, cs:dword_17C9C jz short loc_1D7A mov esi, cs:g_test mov ecx, cs:g_test mov edi, cs:dword_17C9C lea rdx, a1D+6; "" lea rax, aOnly; " only" cmp ecx, edi cmovg rdx, rax mov ecx, cs:dword_17C9C lea rdi, aDTestsPlannedB; "%d tests planned but%s %d executed" mov al, 0 call diag mov [rbp+var_54], 1 jmp short loc_1DE2 loc_1D7A: cmp cs:dword_17CA0, 0 jle short loc_1DA0 mov esi, cs:dword_17CA0 lea rdi, aFailedDTests; "Failed %d tests!" mov al, 0 call diag mov [rbp+var_54], 1 jmp short loc_1DE2 loc_1DA0: cmp cs:start_time, 0 jz short loc_1DDB mov rdi, cs:start_time lea rsi, [rbp+var_50] call end_timer lea rsi, [rbp+var_50] lea rdi, aTestTookS; "Test took %s\n" mov al, 0 call _printf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush loc_1DDB: mov [rbp+var_54], 0 loc_1DE2: mov eax, [rbp+var_54] mov [rbp+var_58], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_1E03 mov eax, [rbp+var_58] add rsp, 60h pop rbp retn loc_1E03: call ___stack_chk_fail
long long exit_status( __m128 a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, long long a9, long long a10, long long a11, long long a12, long long a13, long long a14) { char *v14; // rdx char v16; // [rsp+0h] [rbp-60h] char v18[72]; // [rsp+10h] [rbp-50h] BYREF unsigned long long v19; // [rsp+58h] [rbp-8h] v19 = __readfsqword(0x28u); if ( !g_test ) plan(dword_17C9C); if ( g_test == dword_17C9C ) { if ( dword_17CA0 <= 0 ) { if ( start_time ) { end_timer(start_time, v18); printf("Test took %s\n", v18); fflush(stdout); } return 0; } else { diag( (long long)"Failed %d tests!", (unsigned int)dword_17CA0, a11, a12, a13, a14, a1, a2, a3, a4, a5, a6, a7, a8, v16); return 1; } } else { v14 = ""; if ( g_test > dword_17C9C ) v14 = " only"; diag( (long long)"%d tests planned but%s %d executed", (unsigned int)g_test, (long long)v14, (unsigned int)dword_17C9C, a13, a14, a1, a2, a3, a4, a5, a6, a7, a8, v16); return 1; } }
exit_status: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX CMP dword ptr [0x00117c98],0x0 JNZ 0x00101d29 MOV EDI,dword ptr [0x00117c9c] CALL 0x00101670 LAB_00101d29: MOV EAX,dword ptr [0x00117c98] CMP EAX,dword ptr [0x00117c9c] JZ 0x00101d7a MOV ESI,dword ptr [0x00117c98] MOV ECX,dword ptr [0x00117c98] MOV EDI,dword ptr [0x00117c9c] LEA RDX,[0x10d12b] LEA RAX,[0x10d166] CMP ECX,EDI CMOVG RDX,RAX MOV ECX,dword ptr [0x00117c9c] LEA RDI,[0x10d143] MOV AL,0x0 CALL 0x001015a0 MOV dword ptr [RBP + -0x54],0x1 JMP 0x00101de2 LAB_00101d7a: CMP dword ptr [0x00117ca0],0x0 JLE 0x00101da0 MOV ESI,dword ptr [0x00117ca0] LEA RDI,[0x10d16c] MOV AL,0x0 CALL 0x001015a0 MOV dword ptr [RBP + -0x54],0x1 JMP 0x00101de2 LAB_00101da0: CMP qword ptr [0x00117d28],0x0 JZ 0x00101ddb MOV RDI,qword ptr [0x00117d28] LEA RSI,[RBP + -0x50] CALL 0x00101e10 LEA RSI,[RBP + -0x50] LEA RDI,[0x10d17d] MOV AL,0x0 CALL 0x00101040 MOV RAX,qword ptr [0x0010ffd0] MOV RDI,qword ptr [RAX] CALL 0x001010b0 LAB_00101ddb: MOV dword ptr [RBP + -0x54],0x0 LAB_00101de2: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x58],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00101e03 MOV EAX,dword ptr [RBP + -0x58] ADD RSP,0x60 POP RBP RET LAB_00101e03: CALL 0x001010a0
int4 exit_status(void) { char *pcVar1; long in_FS_OFFSET; int4 local_5c; int1 local_58 [72]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (g_test == 0) { plan(DAT_00117c9c); } if (g_test == DAT_00117c9c) { if (DAT_00117ca0 < 1) { if (start_time != 0) { end_timer(start_time,local_58); printf("Test took %s\n",local_58); fflush(*(FILE **)PTR_stdout_0010ffd0); } local_5c = 0; } else { diag("Failed %d tests!",DAT_00117ca0); local_5c = 1; } } else { pcVar1 = ""; if (DAT_00117c9c < g_test) { pcVar1 = " only"; } diag("%d tests planned but%s %d executed",g_test,pcVar1,DAT_00117c9c); local_5c = 1; } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_5c; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
7,085
mysql_send_query_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_send_query_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_send_query, (parms->mysql, parms->q, parms->length), parms->mysql, int, r_int) }
O0
c
mysql_send_query_start_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x480(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rsi movq -0x10(%rbp), %rax movq 0x10(%rax), %rdx callq 0x22e70 movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx movq -0x20(%rbp), %rax movl %ecx, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_send_query_start_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_10], rax mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+480h] mov rax, [rax+28h] mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rdi, [rax] mov rax, [rbp+var_10] mov rsi, [rax+8] mov rax, [rbp+var_10] mov rdx, [rax+10h] call mysql_send_query mov [rbp+var_14], eax mov ecx, [rbp+var_14] mov rax, [rbp+var_20] mov [rax+8], ecx mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
_DWORD * mysql_send_query_start_internal(long long *a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL); v2[2] = mysql_send_query(*a1, a1[1], a1[2]); result = v2; *v2 = 0; return result; }
mysql_send_query_start_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x10] CALL 0x00122e70 MOV dword ptr [RBP + -0x14],EAX MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX + 0x8],ECX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_send_query_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_send_query(*param_1,param_1[1],param_1[2]); puVar1[2] = uVar2; *puVar1 = 0; return; }
7,086
js_symbol_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_symbol_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue str; JSString *p; if (!JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "not a constructor"); if (argc == 0 || JS_IsUndefined(argv[0])) { p = NULL; } else { str = JS_ToString(ctx, argv[0]); if (JS_IsException(str)) return JS_EXCEPTION; p = JS_VALUE_GET_STRING(str); } return JS_NewSymbolInternal(ctx, p, JS_ATOM_TYPE_SYMBOL); }
O1
c
js_symbol_constructor: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpl $0x3, %edx jne 0x37f5c testl %ecx, %ecx je 0x37f3b movq 0x8(%r8), %rdx cmpl $0x3, %edx jne 0x37f85 xorl %esi, %esi movq %rbx, %rdi movl $0x3, %edx callq 0x3b00b movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r14d jmp 0x37f77 leaq 0x66075(%rip), %rsi # 0x9dfd8 xorl %r14d, %r14d movq %rbx, %rdi xorl %eax, %eax callq 0x21953 movl $0x6, %edx xorl %ecx, %ecx orq %rcx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq movq (%r8), %rsi xorl %r14d, %r14d movq %rbx, %rdi xorl %ecx, %ecx callq 0x26ec9 movq %rax, (%rsp) cmpl $0x6, %edx je 0x37f70 movq (%rsp), %rsi jmp 0x37f3d
js_symbol_constructor: push r14 push rbx push rax mov rbx, rdi cmp edx, 3 jnz short loc_37F5C test ecx, ecx jz short loc_37F3B mov rdx, [r8+8] cmp edx, 3 jnz short loc_37F85 loc_37F3B: xor esi, esi loc_37F3D: mov rdi, rbx mov edx, 3 call JS_NewSymbolInternal mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r14d, eax jmp short loc_37F77 loc_37F5C: lea rsi, aNotAConstructo; "not a constructor" xor r14d, r14d mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_37F70: mov edx, 6 xor ecx, ecx loc_37F77: or r14, rcx mov rax, r14 add rsp, 8 pop rbx pop r14 retn loc_37F85: mov rsi, [r8] xor r14d, r14d mov rdi, rbx xor ecx, ecx call JS_ToStringInternal mov [rsp+18h+var_18], rax cmp edx, 6 jz short loc_37F70 mov rsi, [rsp+18h+var_18] jmp short loc_37F3D
unsigned long long js_symbol_constructor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long *a13, long long a14) { char v14; // al long long v15; // rdx unsigned long long v16; // rsi long long v17; // rax unsigned long long v18; // rcx long long v19; // r14 int v21; // edx unsigned long long v22; // [rsp+0h] [rbp-18h] if ( (_DWORD)a11 != 3 ) { v19 = 0LL; JS_ThrowTypeError( a1, (long long)"not a constructor", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v14); goto LABEL_7; } if ( (_DWORD)a12 ) { v15 = a13[1]; if ( (_DWORD)v15 != 3 ) { v19 = 0LL; v22 = JS_ToStringInternal(a1, *a13, v15, 0, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); if ( v21 != 6 ) { v16 = v22; goto LABEL_5; } LABEL_7: v18 = 0LL; return v18 | v19; } } v16 = 0LL; LABEL_5: v17 = JS_NewSymbolInternal(a1, v16, 3LL); v18 = v17 & 0xFFFFFFFF00000000LL; v19 = (unsigned int)v17; return v18 | v19; }
js_symbol_constructor: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP EDX,0x3 JNZ 0x00137f5c TEST ECX,ECX JZ 0x00137f3b MOV RDX,qword ptr [R8 + 0x8] CMP EDX,0x3 JNZ 0x00137f85 LAB_00137f3b: XOR ESI,ESI LAB_00137f3d: MOV RDI,RBX MOV EDX,0x3 CALL 0x0013b00b MOV RCX,-0x100000000 AND RCX,RAX MOV R14D,EAX JMP 0x00137f77 LAB_00137f5c: LEA RSI,[0x19dfd8] XOR R14D,R14D MOV RDI,RBX XOR EAX,EAX CALL 0x00121953 LAB_00137f70: MOV EDX,0x6 XOR ECX,ECX LAB_00137f77: OR R14,RCX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET LAB_00137f85: MOV RSI,qword ptr [R8] XOR R14D,R14D MOV RDI,RBX XOR ECX,ECX CALL 0x00126ec9 MOV qword ptr [RSP],RAX CMP EDX,0x6 JZ 0x00137f70 MOV RSI,qword ptr [RSP] JMP 0x00137f3d
ulong js_symbol_constructor (int8 param_1,int8 param_2,int param_3,int param_4,int8 *param_5) { ulong uVar1; ulong uVar2; int8 uVar3; int1 auVar4 [12]; if (param_3 == 3) { if ((param_4 == 0) || ((int)param_5[1] == 3)) { uVar3 = 0; } else { auVar4 = JS_ToStringInternal(param_1,*param_5,param_5[1],0); uVar3 = auVar4._0_8_; if (auVar4._8_4_ == 6) goto LAB_00137f70; } uVar1 = JS_NewSymbolInternal(param_1,uVar3,3); uVar2 = uVar1 & 0xffffffff00000000; uVar1 = uVar1 & 0xffffffff; } else { JS_ThrowTypeError(param_1,"not a constructor"); LAB_00137f70: uVar1 = 0; uVar2 = 0; } return uVar1 | uVar2; }
7,087
js_symbol_constructor
bluesky950520[P]quickjs/quickjs.c
static JSValue js_symbol_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) { JSValue str; JSString *p; if (!JS_IsUndefined(new_target)) return JS_ThrowTypeError(ctx, "not a constructor"); if (argc == 0 || JS_IsUndefined(argv[0])) { p = NULL; } else { str = JS_ToString(ctx, argv[0]); if (JS_IsException(str)) return JS_EXCEPTION; p = JS_VALUE_GET_STRING(str); } return JS_NewSymbolInternal(ctx, p, JS_ATOM_TYPE_SYMBOL); }
O3
c
js_symbol_constructor: pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpl $0x3, %edx jne 0x3920f testl %ecx, %ecx je 0x391ee movq 0x8(%r8), %rdx cmpl $0x3, %edx jne 0x39238 xorl %esi, %esi movq %rbx, %rdi movl $0x3, %edx callq 0x3c6a0 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r14d jmp 0x3922a leaq 0x67d92(%rip), %rsi # 0xa0fa8 xorl %r14d, %r14d movq %rbx, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %edx xorl %ecx, %ecx orq %rcx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r14 retq movq (%r8), %rsi xorl %r14d, %r14d movq %rbx, %rdi xorl %ecx, %ecx callq 0x27518 cmpl $0x6, %edx je 0x39223 movq %rax, %rsi jmp 0x391f0
js_symbol_constructor: push r14 push rbx push rax mov rbx, rdi cmp edx, 3 jnz short loc_3920F test ecx, ecx jz short loc_391EE mov rdx, [r8+8] cmp edx, 3 jnz short loc_39238 loc_391EE: xor esi, esi loc_391F0: mov rdi, rbx mov edx, 3 call JS_NewSymbolInternal mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r14d, eax jmp short loc_3922A loc_3920F: lea rsi, aNotAConstructo; "not a constructor" xor r14d, r14d mov rdi, rbx xor eax, eax call JS_ThrowTypeError loc_39223: mov edx, 6 xor ecx, ecx loc_3922A: or r14, rcx mov rax, r14 add rsp, 8 pop rbx pop r14 retn loc_39238: mov rsi, [r8] xor r14d, r14d mov rdi, rbx xor ecx, ecx call JS_ToStringInternal cmp edx, 6 jz short loc_39223 mov rsi, rax jmp short loc_391F0
unsigned long long js_symbol_constructor( long long a1, __m128 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, long long a13, long long a14) { char v14; // al long long v15; // rdx unsigned long long v16; // rsi long long v17; // rax unsigned long long v18; // rcx long long v19; // r14 unsigned long long v21; // rax int v22; // edx if ( (_DWORD)a11 != 3 ) { v19 = 0LL; JS_ThrowTypeError(a1, (long long)"not a constructor", a11, a12, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v14); goto LABEL_7; } if ( (_DWORD)a12 ) { v15 = *(_QWORD *)(a13 + 8); if ( (_DWORD)v15 != 3 ) { v19 = 0LL; v21 = JS_ToStringInternal(a1, *(_DWORD **)a13, v15, 0LL, a13, a14, a2, a3, a4, a5, a6, a7, a8, a9); if ( v22 != 6 ) { v16 = v21; goto LABEL_5; } LABEL_7: v18 = 0LL; return v18 | v19; } } v16 = 0LL; LABEL_5: v17 = JS_NewSymbolInternal(a1, v16, 3LL); v18 = v17 & 0xFFFFFFFF00000000LL; v19 = (unsigned int)v17; return v18 | v19; }
js_symbol_constructor: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI CMP EDX,0x3 JNZ 0x0013920f TEST ECX,ECX JZ 0x001391ee MOV RDX,qword ptr [R8 + 0x8] CMP EDX,0x3 JNZ 0x00139238 LAB_001391ee: XOR ESI,ESI LAB_001391f0: MOV RDI,RBX MOV EDX,0x3 CALL 0x0013c6a0 MOV RCX,-0x100000000 AND RCX,RAX MOV R14D,EAX JMP 0x0013922a LAB_0013920f: LEA RSI,[0x1a0fa8] XOR R14D,R14D MOV RDI,RBX XOR EAX,EAX CALL 0x0012214f LAB_00139223: MOV EDX,0x6 XOR ECX,ECX LAB_0013922a: OR R14,RCX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R14 RET LAB_00139238: MOV RSI,qword ptr [R8] XOR R14D,R14D MOV RDI,RBX XOR ECX,ECX CALL 0x00127518 CMP EDX,0x6 JZ 0x00139223 MOV RSI,RAX JMP 0x001391f0
ulong js_symbol_constructor (int8 param_1,int8 param_2,int param_3,int param_4,int8 *param_5) { ulong uVar1; ulong uVar2; int8 uVar3; int1 auVar4 [12]; if (param_3 == 3) { if ((param_4 == 0) || ((int)param_5[1] == 3)) { uVar3 = 0; } else { auVar4 = JS_ToStringInternal(param_1,*param_5,param_5[1],0); uVar3 = auVar4._0_8_; if (auVar4._8_4_ == 6) goto LAB_00139223; } uVar1 = JS_NewSymbolInternal(param_1,uVar3,3); uVar2 = uVar1 & 0xffffffff00000000; uVar1 = uVar1 & 0xffffffff; } else { JS_ThrowTypeError(param_1,"not a constructor"); LAB_00139223: uVar1 = 0; uVar2 = 0; } return uVar1 | uVar2; }
7,088
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); }
O0
c
wait_for_free_space: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) jne 0x3961f movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) callq 0x33e30 movq -0x18(%rbp), %rdx movl (%rax), %ecx movl $0x14, %edi movl $0x844, %esi # imm = 0x844 movl $0x3c, %r8d movb $0x0, %al callq 0x2ca80 movl -0xc(%rbp), %eax movl $0xa, %ecx cltd idivl %ecx cmpl $0x0, %edx jne 0x39652 movl $0x14, %edi leaq 0x52dc4(%rip), %rsi # 0x8c3ff movl $0x844, %edx # imm = 0x844 movl $0x3c, %ecx movl $0x258, %r8d # imm = 0x258 movb $0x0, %al callq 0x2cbd0 movl $0x3c, %edi callq 0x25200 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
wait_for_free_space: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi cmp [rbp+var_C], 0 jnz short loc_3961F mov rax, [rbp+var_8] mov [rbp+var_18], rax call _my_thread_var mov rdx, [rbp+var_18] mov ecx, [rax] mov edi, 14h mov esi, 844h mov r8d, 3Ch ; '<' mov al, 0 call my_error loc_3961F: mov eax, [rbp+var_C] mov ecx, 0Ah cdq idiv ecx cmp edx, 0 jnz short loc_39652 mov edi, 14h lea rsi, aRetryInDSecsMe; "Retry in %d secs. Message reprinted in "... mov edx, 844h mov ecx, 3Ch ; '<' mov r8d, 258h mov al, 0 call my_printf_error loc_39652: mov edi, 3Ch ; '<' call _sleep add rsp, 20h pop rbp retn
long long wait_for_free_space(long long a1, int a2) { unsigned int *v2; // rax if ( !a2 ) { v2 = (unsigned int *)my_thread_var(); my_error(0x14u, 2116LL, a1, *v2, 60LL); } if ( !(a2 % 10) ) my_printf_error(20, (long long)"Retry in %d secs. Message reprinted in %d secs", 2116LL, 60LL, 600LL); return sleep(60LL); }
wait_for_free_space: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI CMP dword ptr [RBP + -0xc],0x0 JNZ 0x0013961f MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX CALL 0x00133e30 MOV RDX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX] MOV EDI,0x14 MOV ESI,0x844 MOV R8D,0x3c MOV AL,0x0 CALL 0x0012ca80 LAB_0013961f: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,0xa CDQ IDIV ECX CMP EDX,0x0 JNZ 0x00139652 MOV EDI,0x14 LEA RSI,[0x18c3ff] MOV EDX,0x844 MOV ECX,0x3c MOV R8D,0x258 MOV AL,0x0 CALL 0x0012cbd0 LAB_00139652: MOV EDI,0x3c CALL 0x00125200 ADD RSP,0x20 POP RBP RET
void wait_for_free_space(int8 param_1,int param_2) { int4 *puVar1; if (param_2 == 0) { puVar1 = (int4 *)_my_thread_var(); my_error(0x14,0x844,param_1,*puVar1,0x3c); } if (param_2 % 10 == 0) { my_printf_error(0x14,"Retry in %d secs. Message reprinted in %d secs",0x844,0x3c,600); } sleep(0x3c); return; }
7,089
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 0x315d5 imull $0xcccccccd, %esi, %eax # imm = 0xCCCCCCCD movl $0x19999998, %ecx # imm = 0x19999998 addl %ecx, %eax rorl %eax cmpl %ecx, %eax ja 0x3161c jmp 0x315f9 movq %rdi, %rbx callq 0x2ec32 movl (%rax), %ecx movl $0x844, %esi # imm = 0x844 movl $0x14, %edi movq %rbx, %rdx movl $0x3c, %r8d xorl %eax, %eax callq 0x2a00f leaq 0x32dd8(%rip), %rsi # 0x643d8 movl $0x844, %edx # imm = 0x844 movl $0x14, %edi movl $0x3c, %ecx movl $0x258, %r8d # imm = 0x258 xorl %eax, %eax callq 0x2a129 movl $0x3c, %edi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x24210
wait_for_free_space: push rbp mov rbp, rsp push rbx push rax test esi, esi jz short loc_315D5 imul eax, esi, 0CCCCCCCDh mov ecx, 19999998h add eax, ecx ror eax, 1 cmp eax, ecx ja short loc_3161C jmp short loc_315F9 loc_315D5: 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_315F9: 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_3161C: 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 0x001315d5 IMUL EAX,ESI,-0x33333333 MOV ECX,0x19999998 ADD EAX,ECX ROR EAX,0x1 CMP EAX,ECX JA 0x0013161c JMP 0x001315f9 LAB_001315d5: MOV RBX,RDI CALL 0x0012ec32 MOV ECX,dword ptr [RAX] MOV ESI,0x844 MOV EDI,0x14 MOV RDX,RBX MOV R8D,0x3c XOR EAX,EAX CALL 0x0012a00f LAB_001315f9: LEA RSI,[0x1643d8] MOV EDX,0x844 MOV EDI,0x14 MOV ECX,0x3c MOV R8D,0x258 XOR EAX,EAX CALL 0x0012a129 LAB_0013161c: MOV EDI,0x3c ADD RSP,0x8 POP RBX POP RBP JMP 0x00124210
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_0013161c; } my_printf_error(0x14,"Retry in %d secs. Message reprinted in %d secs",0x844,0x3c,600); LAB_0013161c: sleep(0x3c); return; }
7,090
my_casedn_8bit
eloqsql/strings/ctype-simple.c
size_t my_casedn_8bit(CHARSET_INFO * cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused))) { const char *end= src + srclen; register const uchar *map=cs->to_lower; DBUG_ASSERT(srclen <= dstlen); for ( ; src != end ; src++) *dst++= (char) map[(uchar) *src]; return srclen; }
O3
c
my_casedn_8bit: movq %rdx, %rax testq %rdx, %rdx je 0xb486c pushq %rbp movq %rsp, %rbp movq 0x48(%rdi), %rdx xorl %edi, %edi movzbl (%rsi,%rdi), %r8d movb (%rdx,%r8), %r8b movb %r8b, (%rcx,%rdi) incq %rdi cmpq %rdi, %rax jne 0xb4856 popq %rbp retq
my_casedn_8bit: mov rax, rdx test rdx, rdx jz short locret_B486C push rbp mov rbp, rsp mov rdx, [rdi+48h] xor edi, edi loc_B4856: movzx r8d, byte ptr [rsi+rdi] mov r8b, [rdx+r8] mov [rcx+rdi], r8b inc rdi cmp rax, rdi jnz short loc_B4856 pop rbp locret_B486C: retn
long long my_casedn_8bit(long long a1, long long a2, long long a3, long long a4) { long long result; // rax long long v5; // rdx long long v6; // rdi result = a3; if ( a3 ) { v5 = *(_QWORD *)(a1 + 72); v6 = 0LL; do { *(_BYTE *)(a4 + v6) = *(_BYTE *)(v5 + *(unsigned __int8 *)(a2 + v6)); ++v6; } while ( result != v6 ); } return result; }
my_casedn_8bit: MOV RAX,RDX TEST RDX,RDX JZ 0x001b486c PUSH RBP MOV RBP,RSP MOV RDX,qword ptr [RDI + 0x48] XOR EDI,EDI LAB_001b4856: MOVZX R8D,byte ptr [RSI + RDI*0x1] MOV R8B,byte ptr [RDX + R8*0x1] MOV byte ptr [RCX + RDI*0x1],R8B INC RDI CMP RAX,RDI JNZ 0x001b4856 POP RBP LAB_001b486c: RET
void my_casedn_8bit(long param_1,long param_2,long param_3,long param_4) { long lVar1; long lVar2; if (param_3 != 0) { lVar1 = *(long *)(param_1 + 0x48); lVar2 = 0; do { *(int1 *)(param_4 + lVar2) = *(int1 *)(lVar1 + (ulong)*(byte *)(param_2 + lVar2)); lVar2 = lVar2 + 1; } while (param_3 != lVar2); } return; }
7,091
ma_kpointer
eloqsql/storage/maria/ma_search.c
void _ma_kpointer(register MARIA_HA *info, register uchar *buff, my_off_t pos) { pos/=maria_block_size; switch (info->s->base.key_reflength) { #if SIZEOF_OFF_T > 4 case 7: mi_int7store(buff,pos); break; case 6: mi_int6store(buff,pos); break; case 5: mi_int5store(buff,pos); break; #else case 7: *buff++=0; /* fall through */ case 6: *buff++=0; /* fall through */ case 5: *buff++=0; /* fall through */ #endif case 4: mi_int4store(buff,pos); break; case 3: mi_int3store(buff,pos); break; case 2: mi_int2store(buff,(uint) pos); break; case 1: buff[0]= (uchar) pos; break; default: abort(); /* impossible */ } }
O0
c
ma_kpointer: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x251a65(%rip), %rax # 0x2bc200 movq (%rax), %rcx movq -0x18(%rbp), %rax xorl %edx, %edx divq %rcx movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movl 0x3e4(%rax), %eax decl %eax movl %eax, %ecx movq %rcx, -0x68(%rbp) subl $0x6, %eax ja 0x6a9f1 movq -0x68(%rbp), %rax leaq 0xed560(%rip), %rcx # 0x157d34 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x6(%rax) movq -0x20(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x5(%rax) movq -0x20(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x20(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x28(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x28(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x28(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x5(%rax) movq -0x30(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x30(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x30(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x38(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x38(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax shrq $0x20, %rax movq %rax, -0x48(%rbp) movq -0x40(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x4(%rax) movq -0x40(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x40(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x40(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x48(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x3(%rax) movq -0x50(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x50(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x50(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x2(%rax) movq -0x58(%rbp), %rax shrq $0x8, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movq -0x58(%rbp), %rax shrq $0x10, %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movl %eax, -0x5c(%rbp) movl -0x5c(%rbp), %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, 0x1(%rax) movl -0x5c(%rbp), %eax shrl $0x8, %eax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 movq -0x18(%rbp), %rax movb %al, %cl movq -0x10(%rbp), %rax movb %cl, (%rax) jmp 0x6a9f6 callq 0x2a5d0 addq $0x70, %rsp popq %rbp retq nopl (%rax)
_ma_kpointer: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, maria_block_size mov rcx, [rax] mov rax, [rbp+var_18] xor edx, edx div rcx mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax] mov eax, [rax+3E4h] dec eax; switch 7 cases mov ecx, eax mov [rbp+var_68], rcx sub eax, 6 ja def_6A7DB; jumptable 000000000006A7DB default case mov rax, [rbp+var_68] lea rcx, jpt_6A7DB movsxd rax, ds:(jpt_6A7DB - 157D34h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6A7DD: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 7 mov [rbp+var_20], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_28], rax mov rax, [rbp+var_20] mov cl, al mov rax, [rbp+var_10] mov [rax+6], cl mov rax, [rbp+var_20] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+5], cl mov rax, [rbp+var_20] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_20] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_28] mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_28] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_28] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6A9F6 loc_6A864: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 6 mov [rbp+var_30], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_38], rax mov rax, [rbp+var_30] mov cl, al mov rax, [rbp+var_10] mov [rax+5], cl mov rax, [rbp+var_30] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_30] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_30] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_38] mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_38] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6A9F6 loc_6A8DA: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 5 mov [rbp+var_40], rax mov rax, [rbp+var_18] shr rax, 20h mov [rbp+var_48], rax mov rax, [rbp+var_40] mov cl, al mov rax, [rbp+var_10] mov [rax+4], cl mov rax, [rbp+var_40] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_40] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_40] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_48] mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp loc_6A9F6 loc_6A93F: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 4 mov [rbp+var_50], rax mov rax, [rbp+var_50] mov cl, al mov rax, [rbp+var_10] mov [rax+3], cl mov rax, [rbp+var_50] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_50] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_50] shr rax, 18h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6A9F6 loc_6A988: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 3 mov [rbp+var_58], rax mov rax, [rbp+var_58] mov cl, al mov rax, [rbp+var_10] mov [rax+2], cl mov rax, [rbp+var_58] shr rax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov rax, [rbp+var_58] shr rax, 10h mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6A9F6 loc_6A9C0: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 2 mov [rbp+var_5C], eax mov eax, [rbp+var_5C] mov cl, al mov rax, [rbp+var_10] mov [rax+1], cl mov eax, [rbp+var_5C] shr eax, 8 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6A9F6 loc_6A9E3: mov rax, [rbp+var_18]; jumptable 000000000006A7DB case 1 mov cl, al mov rax, [rbp+var_10] mov [rax], cl jmp short loc_6A9F6 def_6A7DB: call _abort; jumptable 000000000006A7DB default case loc_6A9F6: add rsp, 70h pop rbp retn
_BYTE * ma_kpointer(long long a1, _BYTE *a2, unsigned long long a3) { unsigned long long v3; // rdx _BYTE *result; // rax unsigned long long v6; // [rsp+58h] [rbp-18h] v3 = a3 % *(_QWORD *)&maria_block_size; v6 = a3 / *(_QWORD *)&maria_block_size; switch ( *(_DWORD *)(*(_QWORD *)a1 + 996LL) ) { case 1: result = a2; *a2 = v6; break; case 2: a2[1] = v6; result = a2; *a2 = BYTE1(v6); break; case 3: a2[2] = v6; a2[1] = BYTE1(v6); result = a2; *a2 = BYTE2(v6); break; case 4: a2[3] = v6; a2[2] = BYTE1(v6); a2[1] = BYTE2(v6); result = a2; *a2 = BYTE3(v6); break; case 5: a2[4] = v6; a2[3] = BYTE1(v6); a2[2] = BYTE2(v6); a2[1] = BYTE3(v6); result = a2; *a2 = BYTE4(v6); break; case 6: a2[5] = v6; a2[4] = BYTE1(v6); a2[3] = BYTE2(v6); a2[2] = BYTE3(v6); a2[1] = BYTE4(v6); result = a2; *a2 = BYTE5(v6); break; case 7: a2[6] = v6; a2[5] = BYTE1(v6); a2[4] = BYTE2(v6); a2[3] = BYTE3(v6); a2[2] = BYTE4(v6); a2[1] = BYTE5(v6); result = a2; *a2 = BYTE6(v6); break; default: abort(a1, a2, v3); } return result; }
_ma_kpointer: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[0x3bc200] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x3e4] DEC EAX MOV ECX,EAX MOV qword ptr [RBP + -0x68],RCX SUB EAX,0x6 JA 0x0016a9f1 MOV RAX,qword ptr [RBP + -0x68] LEA RCX,[0x257d34] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_7: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x20] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x6],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x5],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x20] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x28] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x28] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x28] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_6: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x5],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x30] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x38] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x38] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_5: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x20 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x40] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x40] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x48] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_4: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x50] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x50] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_3: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x58] SHR RAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x58] SHR RAX,0x10 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_2: MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x5c],EAX MOV EAX,dword ptr [RBP + -0x5c] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x1],CL MOV EAX,dword ptr [RBP + -0x5c] SHR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 caseD_1: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],CL JMP 0x0016a9f6 default: CALL 0x0012a5d0 LAB_0016a9f6: ADD RSP,0x70 POP RBP RET
void _ma_kpointer(long *param_1,int1 *param_2,ulong param_3) { int1 uVar1; int1 uVar2; int1 uVar3; int1 uVar4; int1 uVar5; int1 uVar6; param_3 = param_3 / maria_block_size; uVar1 = (int1)param_3; uVar2 = (int1)(param_3 >> 8); uVar3 = (int1)(param_3 >> 0x10); uVar4 = (int1)(param_3 >> 0x18); uVar5 = (int1)(param_3 >> 0x20); uVar6 = (int1)(param_3 >> 0x28); switch(*(int4 *)(*param_1 + 0x3e4)) { case 1: *param_2 = uVar1; break; case 2: param_2[1] = uVar1; *param_2 = uVar2; break; case 3: param_2[2] = uVar1; param_2[1] = uVar2; *param_2 = uVar3; break; case 4: param_2[3] = uVar1; param_2[2] = uVar2; param_2[1] = uVar3; *param_2 = uVar4; break; case 5: param_2[4] = uVar1; param_2[3] = uVar2; param_2[2] = uVar3; param_2[1] = uVar4; *param_2 = uVar5; break; case 6: param_2[5] = uVar1; param_2[4] = uVar2; param_2[3] = uVar3; param_2[2] = uVar4; param_2[1] = uVar5; *param_2 = uVar6; break; case 7: param_2[6] = uVar1; param_2[5] = uVar2; param_2[4] = uVar3; param_2[3] = uVar4; param_2[2] = uVar5; param_2[1] = uVar6; *param_2 = (char)(param_3 >> 0x30); break; default: /* WARNING: Subroutine does not return */ abort(); } return; }
7,092
init_shape_hash
bluesky950520[P]quickjs/quickjs.c
static int init_shape_hash(JSRuntime *rt) { rt->shape_hash_bits = 4; /* 16 shapes */ rt->shape_hash_size = 1 << rt->shape_hash_bits; rt->shape_hash_count = 0; rt->shape_hash = js_mallocz_rt(rt, sizeof(rt->shape_hash[0]) * rt->shape_hash_size); if (!rt->shape_hash) return -1; return 0; }
O0
c
init_shape_hash: subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rax movl $0x4, 0x184(%rax) movq 0x8(%rsp), %rax movl 0x184(%rax), %ecx movl $0x1, %eax shll %cl, %eax movl %eax, %ecx movq 0x8(%rsp), %rax movl %ecx, 0x188(%rax) movq 0x8(%rsp), %rax movl $0x0, 0x18c(%rax) movq 0x8(%rsp), %rdi movq 0x8(%rsp), %rax movslq 0x188(%rax), %rsi shlq $0x3, %rsi callq 0x21b60 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x190(%rax) movq 0x8(%rsp), %rax cmpq $0x0, 0x190(%rax) jne 0x233e8 movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF jmp 0x233f0 movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax)
init_shape_hash: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rax, [rsp+18h+var_10] mov dword ptr [rax+184h], 4 mov rax, [rsp+18h+var_10] mov ecx, [rax+184h] mov eax, 1 shl eax, cl mov ecx, eax mov rax, [rsp+18h+var_10] mov [rax+188h], ecx mov rax, [rsp+18h+var_10] mov dword ptr [rax+18Ch], 0 mov rdi, [rsp+18h+var_10] mov rax, [rsp+18h+var_10] movsxd rsi, dword ptr [rax+188h] shl rsi, 3 call js_mallocz_rt mov rcx, rax mov rax, [rsp+18h+var_10] mov [rax+190h], rcx mov rax, [rsp+18h+var_10] cmp qword ptr [rax+190h], 0 jnz short loc_233E8 mov [rsp+18h+var_4], 0FFFFFFFFh jmp short loc_233F0 loc_233E8: mov [rsp+18h+var_4], 0 loc_233F0: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long init_shape_hash(long long a1) { *(_DWORD *)(a1 + 388) = 4; *(_QWORD *)(a1 + 392) = (unsigned int)(1 << *(_DWORD *)(a1 + 388)); *(_QWORD *)(a1 + 400) = js_mallocz_rt(a1, 8LL * *(int *)(a1 + 392)); if ( *(_QWORD *)(a1 + 400) ) return 0; else return (unsigned int)-1; }
init_shape_hash: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x184],0x4 MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x184] MOV EAX,0x1 SHL EAX,CL MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x188],ECX MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x18c],0x0 MOV RDI,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x8] MOVSXD RSI,dword ptr [RAX + 0x188] SHL RSI,0x3 CALL 0x00121b60 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x190],RCX MOV RAX,qword ptr [RSP + 0x8] CMP qword ptr [RAX + 0x190],0x0 JNZ 0x001233e8 MOV dword ptr [RSP + 0x14],0xffffffff JMP 0x001233f0 LAB_001233e8: MOV dword ptr [RSP + 0x14],0x0 LAB_001233f0: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
int4 init_shape_hash(long param_1) { int8 uVar1; int4 local_4; *(int4 *)(param_1 + 0x184) = 4; *(int *)(param_1 + 0x188) = 1 << ((byte)*(int4 *)(param_1 + 0x184) & 0x1f); *(int4 *)(param_1 + 0x18c) = 0; uVar1 = js_mallocz_rt(param_1,(long)*(int *)(param_1 + 0x188) << 3); *(int8 *)(param_1 + 400) = uVar1; if (*(long *)(param_1 + 400) == 0) { local_4 = 0xffffffff; } else { local_4 = 0; } return local_4; }
7,093
js_atomics_store
bluesky950520[P]quickjs/quickjs.c
static JSValue js_atomics_store(JSContext *ctx, JSValue this_obj, int argc, JSValue *argv) { int size_log2; void *ptr; JSValue ret; JSArrayBuffer *abuf; ptr = js_atomics_get_ptr(ctx, &abuf, &size_log2, NULL, argv[0], argv[1], 0); if (!ptr) return JS_EXCEPTION; if (size_log2 == 3) { int64_t v64; ret = JS_ToBigIntValueFree(ctx, js_dup(argv[2])); if (JS_IsException(ret)) return ret; if (JS_ToBigInt64(ctx, &v64, ret)) { JS_FreeValue(ctx, ret); return JS_EXCEPTION; } if (abuf->detached) return JS_ThrowTypeErrorDetachedArrayBuffer(ctx); atomic_store((_Atomic uint64_t *)ptr, v64); } else { uint32_t v; /* XXX: spec, would be simpler to return the written value */ ret = JS_ToIntegerFree(ctx, js_dup(argv[2])); if (JS_IsException(ret)) return ret; if (JS_ToUint32(ctx, &v, ret)) { JS_FreeValue(ctx, ret); return JS_EXCEPTION; } if (abuf->detached) return JS_ThrowTypeErrorDetachedArrayBuffer(ctx); switch(size_log2) { case 0: atomic_store((_Atomic uint8_t *)ptr, v); break; case 1: atomic_store((_Atomic uint16_t *)ptr, v); break; case 2: atomic_store((_Atomic uint32_t *)ptr, v); break; default: abort(); } } return ret; }
O3
c
js_atomics_store: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %r8, %r12 movq %rdi, %rbx movabsq $-0x100000000, %r13 # imm = 0xFFFFFFFF00000000 movq (%r8), %r8 movq 0x8(%r12), %r9 movups 0x10(%r12), %xmm0 movups %xmm0, (%rsp) movl $0x0, 0x10(%rsp) xorl %r15d, %r15d leaq 0x38(%rsp), %rsi leaq 0x24(%rsp), %rdx xorl %ecx, %ecx callq 0x81840 testq %rax, %rax je 0x81057 movq %rax, %r14 cmpl $0x3, 0x24(%rsp) jne 0x81064 movq 0x20(%r12), %rbp movq 0x28(%r12), %r12 cmpl $-0x9, %r12d jb 0x81033 incl (%rbp) cmpl $-0x9, %r12d jne 0x8120b movq %rbp, %rcx andq %r13, %rcx movl %ebp, %r15d orq %rcx, %r15 cmpl $0x6, %r12d jne 0x81091 movq %r12, %rbx jmp 0x811b6 movl $0x6, %r12d xorl %ecx, %ecx jmp 0x811b9 movq 0x20(%r12), %rsi movq 0x28(%r12), %rdx cmpl $-0x9, %edx jb 0x81075 incl (%rsi) movq %rbx, %rdi callq 0x74dda movq %rax, %r15 movq %rdx, %r12 cmpl $0x6, %r12d jne 0x810dd movq %r12, %rbx jmp 0x811b3 cmpl $-0x9, %r12d jb 0x81125 incl (%r15) leaq 0x30(%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r12, %rcx callq 0x27de2 testl %eax, %eax je 0x81167 movq 0x18(%rbx), %rdi movl (%r15), %eax leal -0x1(%rax), %ecx movl %ecx, (%r15) movl $0x6, %ebx cmpl $0x1, %eax jg 0x81141 movq %r15, %rsi movq %r12, %rdx callq 0x20d90 jmp 0x81141 cmpl $-0x9, %r12d jb 0x81146 incl (%r15) leaq 0x40(%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r12, %rcx callq 0x27408 testl %eax, %eax je 0x8118f movq 0x18(%rbx), %rdi movl (%r15), %eax leal -0x1(%rax), %ecx movl %ecx, (%r15) movl $0x6, %ebx cmpl $0x1, %eax jg 0x81162 movq %r15, %rsi movq %r12, %rdx callq 0x20d90 jmp 0x81162 leaq 0x30(%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r12, %rcx callq 0x27de2 testl %eax, %eax je 0x81167 movl $0x6, %ebx xorl %r15d, %r15d jmp 0x8118b leaq 0x40(%rsp), %rsi movq %rbx, %rdi movq %r15, %rdx movq %r12, %rcx callq 0x27408 testl %eax, %eax je 0x8118f movl $0x6, %ebx xorl %r15d, %r15d jmp 0x811b3 movq 0x38(%rsp), %rax cmpb $0x0, 0x8(%rax) je 0x811d4 leaq 0x22b32(%rip), %rsi # 0xa3cab xorl %r15d, %r15d movq %rbx, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %ebx xorl %ecx, %ecx jmp 0x811b6 movq 0x38(%rsp), %rax cmpb $0x0, 0x8(%rax) je 0x811e1 leaq 0x22b0a(%rip), %rsi # 0xa3cab xorl %r15d, %r15d movq %rbx, %rdi xorl %eax, %eax callq 0x2214f movl $0x6, %ebx movq %r15, %rcx movq %rbx, %r12 andq %r13, %rcx movl %r15d, %eax orq %rcx, %rax movq %r12, %rdx addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x30(%rsp), %rax xchgq %rax, (%r14) jmp 0x812a6 movl 0x24(%rsp), %eax cmpl $0x2, %eax je 0x8129f cmpl $0x1, %eax je 0x81294 testl %eax, %eax jne 0x8130b movb 0x40(%rsp), %al xchgb %al, (%r14) jmp 0x812a6 movq %rbx, %rdi callq 0xffa8 movq %rdx, %r15 cmpl $0x6, %r15d je 0x812d1 movq %rax, 0x28(%rsp) leaq 0x40(%rsp), %rsi movq %rbx, %rdi movq %rbp, %rdx movq %r12, %rcx callq 0x3efa8 testq %rax, %rax je 0x812ae movq %rax, %r12 movq 0x28(%rsp), %rax leaq 0x8(%rax), %rdi movq %r12, %rsi callq 0x86a9a movl %eax, %ebp leaq 0x40(%rsp), %rdx movq %rbx, %rdi movq %r12, %rsi callq 0x3ef64 testl %ebp, %ebp je 0x812e3 cmpl $-0x9, %r15d movq 0x28(%rsp), %rsi jb 0x8128a movq 0x18(%rbx), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x8128a movq %r15, %rdx callq 0x20d90 movq %rbx, %rdi callq 0x1c80f jmp 0x812d1 movzwl 0x40(%rsp), %eax xchgw %ax, (%r14) jmp 0x812a6 movl 0x40(%rsp), %eax xchgl %eax, (%r14) movq %r15, %rcx jmp 0x811b9 cmpl $-0x9, %r15d movq 0x28(%rsp), %rsi jb 0x812d1 movq 0x18(%rbx), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x812d1 movq %r15, %rdx callq 0x20d90 xorl %ebp, %ebp xorl %ecx, %ecx movl $0x6, %r15d movq %r15, %r12 jmp 0x81043 cmpq $-0x9, %r15 movq 0x28(%rsp), %rbp jne 0x81303 xorl %eax, %eax cmpq 0x18(%rbp), %rax jno 0x81303 cmpl $0x0, 0x10(%rbp) je 0x81303 movl $0x0, 0x10(%rbp) movq %rbp, %rcx andq %r13, %rcx jmp 0x812db callq 0xe090
js_atomics_store: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r12, r8 mov rbx, rdi mov r13, 0FFFFFFFF00000000h mov r8, [r8] mov r9, [r12+8] movups xmm0, xmmword ptr [r12+10h] movups [rsp+98h+var_98], xmm0 mov [rsp+98h+var_88], 0 xor r15d, r15d lea rsi, [rsp+98h+var_60] lea rdx, [rsp+98h+var_74] xor ecx, ecx call js_atomics_get_ptr test rax, rax jz short loc_81057 mov r14, rax cmp [rsp+98h+var_74], 3 jnz short loc_81064 mov rbp, [r12+20h] mov r12, [r12+28h] cmp r12d, 0FFFFFFF7h jb short loc_81033 inc dword ptr [rbp+0] loc_81033: cmp r12d, 0FFFFFFF7h jnz loc_8120B mov rcx, rbp and rcx, r13 loc_81043: mov r15d, ebp or r15, rcx cmp r12d, 6 jnz short loc_81091 mov rbx, r12 jmp loc_811B6 loc_81057: mov r12d, 6 xor ecx, ecx jmp loc_811B9 loc_81064: mov rsi, [r12+20h] mov rdx, [r12+28h] cmp edx, 0FFFFFFF7h jb short loc_81075 inc dword ptr [rsi] loc_81075: mov rdi, rbx call JS_ToIntegerFree mov r15, rax mov r12, rdx cmp r12d, 6 jnz short loc_810DD mov rbx, r12 jmp loc_811B3 loc_81091: cmp r12d, 0FFFFFFF7h jb loc_81125 inc dword ptr [r15] lea rsi, [rsp+98h+var_68] mov rdi, rbx mov rdx, r15 mov rcx, r12 call JS_ToBigInt64Free test eax, eax jz loc_81167 mov rdi, [rbx+18h] mov eax, [r15] lea ecx, [rax-1] mov [r15], ecx mov ebx, 6 cmp eax, 1 jg short loc_81141 mov rsi, r15 mov rdx, r12 call js_free_value_rt jmp short loc_81141 loc_810DD: cmp r12d, 0FFFFFFF7h jb short loc_81146 inc dword ptr [r15] lea rsi, [rsp+98h+var_58] mov rdi, rbx mov rdx, r15 mov rcx, r12 call JS_ToInt32Free test eax, eax jz loc_8118F mov rdi, [rbx+18h] mov eax, [r15] lea ecx, [rax-1] mov [r15], ecx mov ebx, 6 cmp eax, 1 jg short loc_81162 mov rsi, r15 mov rdx, r12 call js_free_value_rt jmp short loc_81162 loc_81125: lea rsi, [rsp+98h+var_68] mov rdi, rbx mov rdx, r15 mov rcx, r12 call JS_ToBigInt64Free test eax, eax jz short loc_81167 mov ebx, 6 loc_81141: xor r15d, r15d jmp short loc_8118B loc_81146: lea rsi, [rsp+98h+var_58] mov rdi, rbx mov rdx, r15 mov rcx, r12 call JS_ToInt32Free test eax, eax jz short loc_8118F mov ebx, 6 loc_81162: xor r15d, r15d jmp short loc_811B3 loc_81167: mov rax, [rsp+98h+var_60] cmp byte ptr [rax+8], 0 jz short loc_811D4 lea rsi, aArraybufferIsD; "ArrayBuffer is detached" xor r15d, r15d mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov ebx, 6 loc_8118B: xor ecx, ecx jmp short loc_811B6 loc_8118F: mov rax, [rsp+98h+var_60] cmp byte ptr [rax+8], 0 jz short loc_811E1 lea rsi, aArraybufferIsD; "ArrayBuffer is detached" xor r15d, r15d mov rdi, rbx xor eax, eax call JS_ThrowTypeError mov ebx, 6 loc_811B3: mov rcx, r15 loc_811B6: mov r12, rbx loc_811B9: and rcx, r13 mov eax, r15d or rax, rcx mov rdx, r12 add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_811D4: mov rax, [rsp+98h+var_68] xchg rax, [r14] jmp loc_812A6 loc_811E1: mov eax, [rsp+98h+var_74] cmp eax, 2 jz loc_8129F cmp eax, 1 jz loc_81294 test eax, eax jnz loc_8130B mov al, byte ptr [rsp+98h+var_58] xchg al, [r14] jmp loc_812A6 loc_8120B: mov rdi, rbx call JS_NewBigInt mov r15, rdx cmp r15d, 6 jz loc_812D1 mov [rsp+98h+var_70], rax lea rsi, [rsp+98h+var_58] mov rdi, rbx mov rdx, rbp mov rcx, r12 call JS_ToBigIntFree test rax, rax jz short loc_812AE mov r12, rax mov rax, [rsp+98h+var_70] lea rdi, [rax+8] mov rsi, r12 call bf_set mov ebp, eax lea rdx, [rsp+98h+var_58] mov rdi, rbx mov rsi, r12 call JS_FreeBigInt test ebp, ebp jz short loc_812E3 cmp r15d, 0FFFFFFF7h mov rsi, [rsp+98h+var_70] jb short loc_8128A mov rdi, [rbx+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_8128A mov rdx, r15 call js_free_value_rt loc_8128A: mov rdi, rbx call JS_ThrowOutOfMemory jmp short loc_812D1 loc_81294: movzx eax, word ptr [rsp+98h+var_58] xchg ax, [r14] jmp short loc_812A6 loc_8129F: mov eax, [rsp+98h+var_58] xchg eax, [r14] loc_812A6: mov rcx, r15 jmp loc_811B9 loc_812AE: cmp r15d, 0FFFFFFF7h mov rsi, [rsp+98h+var_70] jb short loc_812D1 mov rdi, [rbx+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_812D1 mov rdx, r15 call js_free_value_rt loc_812D1: xor ebp, ebp xor ecx, ecx mov r15d, 6 loc_812DB: mov r12, r15 jmp loc_81043 loc_812E3: cmp r15, 0FFFFFFFFFFFFFFF7h mov rbp, [rsp+98h+var_70] jnz short loc_81303 xor eax, eax cmp rax, [rbp+18h] jno short loc_81303 cmp dword ptr [rbp+10h], 0 jz short loc_81303 mov dword ptr [rbp+10h], 0 loc_81303: mov rcx, rbp and rcx, r13 jmp short loc_812DB loc_8130B: call _abort
unsigned long long js_atomics_store( long long a1, double a2, __m128 a3, __m128 a4, __m128 a5, double a6, double a7, __m128 a8, __m128 a9, long long a10, long long a11, long long a12, __m128 *a13) { __m128 v15; // xmm0 _QWORD *v16; // r15 long long ptr; // rax long long v18; // rcx long long v19; // r8 long long v20; // r9 __m128 v21; // xmm4 __m128 v22; // xmm5 volatile long long *v23; // r14 long long v24; // rbp long long v25; // r12 unsigned long long v26; // rcx int *v27; // rsi long long v28; // rdx int *v29; // rax long long v30; // rdx long long v31; // r12 long long v32; // rdx long long v33; // rcx long long v34; // r8 long long v35; // r9 __m128 v36; // xmm4 __m128 v37; // xmm5 long long v38; // rdi int v39; // eax long long v40; // rcx long long v41; // rdx long long v42; // rcx long long v43; // r8 long long v44; // r9 __m128 v45; // xmm4 __m128 v46; // xmm5 long long v47; // rdi int v48; // eax long long v49; // rcx _DWORD *v51; // rax long long v52; // r8 long long v53; // r9 __m128 v54; // xmm4 __m128 v55; // xmm5 long long v56; // rdx long long v57; // r15 long long *v58; // rax long long v59; // r8 long long v60; // r9 long long *v61; // r12 int v62; // ebp long long v63; // rcx long long v64; // r8 long long v65; // r9 int v66; // edx long long v67; // rcx long long v68; // r8 long long v69; // r9 _QWORD *v70; // rsi long long v71; // rdi int v72; // eax _QWORD *v73; // rsi long long v74; // rdi int v75; // eax long long v76; // rcx char v77; // [rsp+0h] [rbp-98h] int v78; // [rsp+24h] [rbp-74h] BYREF _DWORD *v79; // [rsp+28h] [rbp-70h] long long v80; // [rsp+30h] [rbp-68h] BYREF long long v81; // [rsp+38h] [rbp-60h] BYREF long long v82[11]; // [rsp+40h] [rbp-58h] BYREF v15 = a13[1]; LODWORD(v16) = 0; ptr = js_atomics_get_ptr( a1, (unsigned int)&v81, (unsigned int)&v78, 0, a13->m128_u64[0], a13->m128_u64[1], a13[1].m128_i64[0], a13[1].m128_i64[1], 0); if ( ptr ) { v23 = (volatile long long *)ptr; if ( v78 == 3 ) { v24 = a13[2].m128_i64[0]; v25 = a13[2].m128_i64[1]; if ( (unsigned int)v25 >= 0xFFFFFFF7 ) ++*(_DWORD *)v24; if ( (_DWORD)v25 == -9 ) { v26 = v24 & 0xFFFFFFFF00000000LL; LABEL_7: v16 = (_QWORD *)(v26 | (unsigned int)v24); if ( (_DWORD)v25 == 6 ) return v26 & 0xFFFFFFFF00000000LL | (unsigned int)v16; if ( (unsigned int)v25 < 0xFFFFFFF7 ) { if ( (unsigned int)JS_ToBigInt64Free(a1, &v80) ) { LABEL_23: LODWORD(v16) = 0; LABEL_28: v26 = 0LL; return v26 & 0xFFFFFFFF00000000LL | (unsigned int)v16; } } else { ++*(_DWORD *)v16; if ( (unsigned int)JS_ToBigInt64Free(a1, &v80) ) { v38 = *(_QWORD *)(a1 + 24); v39 = *(_DWORD *)v16; v40 = (unsigned int)(*(_DWORD *)v16 - 1); *(_DWORD *)v16 = v40; if ( v39 <= 1 ) js_free_value_rt(v38, v16, v25, v40, v34, v35); goto LABEL_23; } } if ( *(_BYTE *)(v81 + 8) ) { LODWORD(v16) = 0; JS_ThrowTypeError( a1, (long long)"ArrayBuffer is detached", v32, v33, v34, v35, v15, a3, a4, a5, v36, v37, a8, a9, v77); goto LABEL_28; } _InterlockedExchange64(v23, v80); LABEL_47: v26 = (unsigned long long)v16; return v26 & 0xFFFFFFFF00000000LL | (unsigned int)v16; } v51 = JS_NewBigInt(a1); v57 = v56; if ( (_DWORD)v56 != 6 ) { v79 = v51; v58 = JS_ToBigIntFree(a1, (long long)v82, v24, v25, v52, v53, v15, a3, a4, a5, v54, v55, a8, a9); if ( v58 ) { v61 = v58; v62 = bf_set(v79 + 2, v58); JS_FreeBigInt(a1, v61, v82, v63, v64, v65); if ( !v62 ) { v24 = (long long)v79; if ( v57 == -9 && __OFSUB__(0LL, *((_QWORD *)v79 + 3)) && v79[4] ) v79[4] = 0; v26 = v24 & 0xFFFFFFFF00000000LL; goto LABEL_52; } v70 = v79; if ( (unsigned int)v57 >= 0xFFFFFFF7 ) { v71 = *(_QWORD *)(a1 + 24); v72 = *v79; v67 = (unsigned int)(*v79 - 1); *v79 = v67; if ( v72 <= 1 ) js_free_value_rt(v71, v70, v57, v67, v68, v69); } JS_ThrowOutOfMemory(a1, (long long)v70, v66, v67, v68, v69); } else { v73 = v79; if ( (unsigned int)v57 >= 0xFFFFFFF7 ) { v74 = *(_QWORD *)(a1 + 24); v75 = *v79; v76 = (unsigned int)(*v79 - 1); *v79 = v76; if ( v75 <= 1 ) js_free_value_rt(v74, v73, v57, v76, v59, v60); } } } LODWORD(v24) = 0; v26 = 0LL; v57 = 6LL; LABEL_52: v25 = v57; goto LABEL_7; } v27 = (int *)a13[2].m128_u64[0]; v28 = a13[2].m128_i64[1]; if ( (unsigned int)v28 >= 0xFFFFFFF7 ) ++*v27; v29 = JS_ToIntegerFree(a1, v27, v28, v15, a3, a4, a5, v21, v22, a8, a9, v18, v19, v20); v16 = v29; v31 = v30; if ( (_DWORD)v30 == 6 ) { LABEL_31: v26 = (unsigned long long)v16; return v26 & 0xFFFFFFFF00000000LL | (unsigned int)v16; } if ( (unsigned int)v30 < 0xFFFFFFF7 ) { if ( (unsigned int)JS_ToInt32Free(a1, (int *)v82, (unsigned long long)v29, v30) ) { LABEL_25: v16 = 0LL; goto LABEL_31; } } else { ++*v29; if ( (unsigned int)JS_ToInt32Free(a1, (int *)v82, (unsigned long long)v29, v30) ) { v47 = *(_QWORD *)(a1 + 24); v48 = *(_DWORD *)v16; v49 = (unsigned int)(*(_DWORD *)v16 - 1); *(_DWORD *)v16 = v49; if ( v48 <= 1 ) js_free_value_rt(v47, v16, v31, v49, v43, v44); goto LABEL_25; } } if ( !*(_BYTE *)(v81 + 8) ) { if ( v78 == 2 ) { _InterlockedExchange((volatile __int32 *)v23, v82[0]); } else if ( v78 == 1 ) { *(_WORD *)v23 = v82[0]; } else { if ( v78 ) abort((const char *)a1); *(_BYTE *)v23 = v82[0]; } goto LABEL_47; } v16 = 0LL; JS_ThrowTypeError( a1, (long long)"ArrayBuffer is detached", v41, v42, v43, v44, v15, a3, a4, a5, v45, v46, a8, a9, v77); goto LABEL_31; } v26 = 0LL; return v26 & 0xFFFFFFFF00000000LL | (unsigned int)v16; }
js_atomics_store: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R12,R8 MOV RBX,RDI MOV R13,-0x100000000 MOV R8,qword ptr [R8] MOV R9,qword ptr [R12 + 0x8] MOVUPS XMM0,xmmword ptr [R12 + 0x10] MOVUPS xmmword ptr [RSP],XMM0 MOV dword ptr [RSP + 0x10],0x0 XOR R15D,R15D LEA RSI,[RSP + 0x38] LEA RDX,[RSP + 0x24] XOR ECX,ECX CALL 0x00181840 TEST RAX,RAX JZ 0x00181057 MOV R14,RAX CMP dword ptr [RSP + 0x24],0x3 JNZ 0x00181064 MOV RBP,qword ptr [R12 + 0x20] MOV R12,qword ptr [R12 + 0x28] CMP R12D,-0x9 JC 0x00181033 INC dword ptr [RBP] LAB_00181033: CMP R12D,-0x9 JNZ 0x0018120b MOV RCX,RBP AND RCX,R13 LAB_00181043: MOV R15D,EBP OR R15,RCX CMP R12D,0x6 JNZ 0x00181091 MOV RBX,R12 JMP 0x001811b6 LAB_00181057: MOV R12D,0x6 XOR ECX,ECX JMP 0x001811b9 LAB_00181064: MOV RSI,qword ptr [R12 + 0x20] MOV RDX,qword ptr [R12 + 0x28] CMP EDX,-0x9 JC 0x00181075 INC dword ptr [RSI] LAB_00181075: MOV RDI,RBX CALL 0x00174dda MOV R15,RAX MOV R12,RDX CMP R12D,0x6 JNZ 0x001810dd MOV RBX,R12 JMP 0x001811b3 LAB_00181091: CMP R12D,-0x9 JC 0x00181125 INC dword ptr [R15] LEA RSI,[RSP + 0x30] MOV RDI,RBX MOV RDX,R15 MOV RCX,R12 CALL 0x00127de2 TEST EAX,EAX JZ 0x00181167 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R15] LEA ECX,[RAX + -0x1] MOV dword ptr [R15],ECX MOV EBX,0x6 CMP EAX,0x1 JG 0x00181141 MOV RSI,R15 MOV RDX,R12 CALL 0x00120d90 JMP 0x00181141 LAB_001810dd: CMP R12D,-0x9 JC 0x00181146 INC dword ptr [R15] LEA RSI,[RSP + 0x40] MOV RDI,RBX MOV RDX,R15 MOV RCX,R12 CALL 0x00127408 TEST EAX,EAX JZ 0x0018118f MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [R15] LEA ECX,[RAX + -0x1] MOV dword ptr [R15],ECX MOV EBX,0x6 CMP EAX,0x1 JG 0x00181162 MOV RSI,R15 MOV RDX,R12 CALL 0x00120d90 JMP 0x00181162 LAB_00181125: LEA RSI,[RSP + 0x30] MOV RDI,RBX MOV RDX,R15 MOV RCX,R12 CALL 0x00127de2 TEST EAX,EAX JZ 0x00181167 MOV EBX,0x6 LAB_00181141: XOR R15D,R15D JMP 0x0018118b LAB_00181146: LEA RSI,[RSP + 0x40] MOV RDI,RBX MOV RDX,R15 MOV RCX,R12 CALL 0x00127408 TEST EAX,EAX JZ 0x0018118f MOV EBX,0x6 LAB_00181162: XOR R15D,R15D JMP 0x001811b3 LAB_00181167: MOV RAX,qword ptr [RSP + 0x38] CMP byte ptr [RAX + 0x8],0x0 JZ 0x001811d4 LEA RSI,[0x1a3cab] XOR R15D,R15D MOV RDI,RBX XOR EAX,EAX CALL 0x0012214f MOV EBX,0x6 LAB_0018118b: XOR ECX,ECX JMP 0x001811b6 LAB_0018118f: MOV RAX,qword ptr [RSP + 0x38] CMP byte ptr [RAX + 0x8],0x0 JZ 0x001811e1 LEA RSI,[0x1a3cab] XOR R15D,R15D MOV RDI,RBX XOR EAX,EAX CALL 0x0012214f MOV EBX,0x6 LAB_001811b3: MOV RCX,R15 LAB_001811b6: MOV R12,RBX LAB_001811b9: AND RCX,R13 MOV EAX,R15D OR RAX,RCX MOV RDX,R12 ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001811d4: MOV RAX,qword ptr [RSP + 0x30] XCHG qword ptr [R14],RAX JMP 0x001812a6 LAB_001811e1: MOV EAX,dword ptr [RSP + 0x24] CMP EAX,0x2 JZ 0x0018129f CMP EAX,0x1 JZ 0x00181294 TEST EAX,EAX JNZ 0x0018130b MOV AL,byte ptr [RSP + 0x40] XCHG byte ptr [R14],AL JMP 0x001812a6 LAB_0018120b: MOV RDI,RBX CALL 0x0010ffa8 MOV R15,RDX CMP R15D,0x6 JZ 0x001812d1 MOV qword ptr [RSP + 0x28],RAX LEA RSI,[RSP + 0x40] MOV RDI,RBX MOV RDX,RBP MOV RCX,R12 CALL 0x0013efa8 TEST RAX,RAX JZ 0x001812ae MOV R12,RAX MOV RAX,qword ptr [RSP + 0x28] LEA RDI,[RAX + 0x8] MOV RSI,R12 CALL 0x00186a9a MOV EBP,EAX LEA RDX,[RSP + 0x40] MOV RDI,RBX MOV RSI,R12 CALL 0x0013ef64 TEST EBP,EBP JZ 0x001812e3 CMP R15D,-0x9 MOV RSI,qword ptr [RSP + 0x28] JC 0x0018128a MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0018128a MOV RDX,R15 CALL 0x00120d90 LAB_0018128a: MOV RDI,RBX CALL 0x0011c80f JMP 0x001812d1 LAB_00181294: MOVZX EAX,word ptr [RSP + 0x40] XCHG word ptr [R14],AX JMP 0x001812a6 LAB_0018129f: MOV EAX,dword ptr [RSP + 0x40] XCHG dword ptr [R14],EAX LAB_001812a6: MOV RCX,R15 JMP 0x001811b9 LAB_001812ae: CMP R15D,-0x9 MOV RSI,qword ptr [RSP + 0x28] JC 0x001812d1 MOV RDI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x001812d1 MOV RDX,R15 CALL 0x00120d90 LAB_001812d1: XOR EBP,EBP XOR ECX,ECX MOV R15D,0x6 LAB_001812db: MOV R12,R15 JMP 0x00181043 LAB_001812e3: CMP R15,-0x9 MOV RBP,qword ptr [RSP + 0x28] JNZ 0x00181303 XOR EAX,EAX CMP RAX,qword ptr [RBP + 0x18] JNO 0x00181303 CMP dword ptr [RBP + 0x10],0x0 JZ 0x00181303 MOV dword ptr [RBP + 0x10],0x0 LAB_00181303: MOV RCX,RBP AND RCX,R13 JMP 0x001812db LAB_0018130b: CALL 0x0010e090
/* WARNING: Removing unreachable block (ram,0x001812f6) */ /* WARNING: Removing unreachable block (ram,0x001812fc) */ int1 [16] js_atomics_store(long param_1) { int8 uVar1; int1 auVar2 [16]; int iVar3; int8 *puVar4; long lVar5; int *piVar6; int8 *in_R8; uint uVar7; int *piVar8; int8 uVar9; int1 auVar10 [16]; int1 auVar11 [16]; int local_74; int *local_70; int8 local_68; long local_60; int4 local_58 [10]; puVar4 = (int8 *) js_atomics_get_ptr(param_1,&local_60,&local_74,0,*in_R8,in_R8[1], *(int4 *)(in_R8 + 2),*(int4 *)(in_R8 + 3),0); if (puVar4 == (int8 *)0x0) { piVar6 = (int *)0x0; auVar11 = ZEXT816(6) << 0x40; goto LAB_001811b9; } if (local_74 != 3) { if (0xfffffff6 < (uint)in_R8[5]) { *(int *)in_R8[4] = *(int *)in_R8[4] + 1; } auVar11 = JS_ToIntegerFree(param_1); uVar9 = auVar11._8_8_; piVar6 = auVar11._0_8_; if (auVar11._8_4_ == 6) goto LAB_001811b9; if (auVar11._8_4_ < 0xfffffff7) { iVar3 = JS_ToInt32Free(param_1,local_58,piVar6,uVar9); if (iVar3 == 0) goto LAB_0018118f; } else { *piVar6 = *piVar6 + 1; iVar3 = JS_ToInt32Free(param_1,local_58,piVar6,uVar9); if (iVar3 == 0) { LAB_0018118f: if (*(char *)(local_60 + 8) == '\0') { if (local_74 == 2) { LOCK(); *(int4 *)puVar4 = local_58[0]; UNLOCK(); } else if (local_74 == 1) { LOCK(); *(int2 *)puVar4 = (int2)local_58[0]; UNLOCK(); } else { if (local_74 != 0) { /* WARNING: Subroutine does not return */ abort(); } LOCK(); *(int1 *)puVar4 = (int1)local_58[0]; UNLOCK(); } } else { piVar6 = (int *)0x0; JS_ThrowTypeError(param_1,"ArrayBuffer is detached"); auVar11 = ZEXT816(6) << 0x40; } goto LAB_001811b9; } uVar1 = *(int8 *)(param_1 + 0x18); iVar3 = *piVar6; *piVar6 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar1,piVar6,uVar9); } } piVar6 = (int *)0x0; auVar11 = ZEXT816(6) << 0x40; goto LAB_001811b9; } piVar8 = (int *)in_R8[4]; uVar9 = in_R8[5]; if (0xfffffff6 < (uint)uVar9) { *piVar8 = *piVar8 + 1; } if ((uint)uVar9 == 0xfffffff7) { piVar6 = (int *)((ulong)piVar8 & 0xffffffff00000000); } else { auVar11 = JS_NewBigInt(param_1); uVar9 = auVar11._8_8_; uVar7 = auVar11._8_4_; if (uVar7 != 6) { local_70 = auVar11._0_8_; lVar5 = JS_ToBigIntFree(param_1,local_58,piVar8); if (lVar5 == 0) { if (0xfffffff6 < uVar7) { uVar1 = *(int8 *)(param_1 + 0x18); iVar3 = *local_70; *local_70 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar1,local_70,uVar9); } } } else { iVar3 = bf_set(local_70 + 2,lVar5); JS_FreeBigInt(param_1,lVar5,local_58); if (iVar3 == 0) { piVar6 = (int *)((ulong)local_70 & 0xffffffff00000000); piVar8 = local_70; goto LAB_00181043; } if (0xfffffff6 < uVar7) { uVar1 = *(int8 *)(param_1 + 0x18); iVar3 = *local_70; *local_70 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar1,local_70,uVar9); } } JS_ThrowOutOfMemory(param_1); } } piVar6 = (int *)0x0; uVar9 = 6; piVar8 = (int *)0x0; } LAB_00181043: piVar8 = (int *)((ulong)piVar8 & 0xffffffff | (ulong)piVar6); auVar11._8_8_ = uVar9; auVar11._0_8_ = piVar8; auVar2._8_8_ = uVar9; auVar2._0_8_ = piVar8; if ((uint)uVar9 == 6) goto LAB_001811b9; if ((uint)uVar9 < 0xfffffff7) { iVar3 = JS_ToBigInt64Free(param_1,&local_68,piVar8,uVar9); if (iVar3 == 0) goto LAB_00181167; } else { *piVar8 = *piVar8 + 1; iVar3 = JS_ToBigInt64Free(param_1,&local_68,piVar8,uVar9); if (iVar3 == 0) { LAB_00181167: if (*(char *)(local_60 + 8) == '\0') { LOCK(); *puVar4 = local_68; UNLOCK(); piVar6 = piVar8; auVar11 = auVar2; goto LAB_001811b9; } JS_ThrowTypeError(param_1,"ArrayBuffer is detached"); } else { uVar1 = *(int8 *)(param_1 + 0x18); iVar3 = *piVar8; *piVar8 = iVar3 + -1; if (iVar3 < 2) { js_free_value_rt(uVar1,piVar8,uVar9); } } } auVar11 = ZEXT816(6) << 0x40; piVar6 = (int *)0x0; LAB_001811b9: auVar10._0_8_ = auVar11._0_8_ & 0xffffffff | (ulong)piVar6 & 0xffffffff00000000; auVar10._8_8_ = auVar11._8_8_; return auVar10; }
7,094
my_8bit_collation_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_collation_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (cs->sort_order && cs->sort_order['A'] < cs->sort_order['a'] && cs->sort_order['a'] < cs->sort_order['B']) flags|= MY_CS_CSSORT; return flags; }
O0
c
my_8bit_collation_flags_from_data: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl $0x0, -0xc(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x58(%rax) je 0x94ffd movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x41(%rax), %eax movq -0x8(%rbp), %rcx movq 0x58(%rcx), %rcx movzbl 0x61(%rcx), %ecx cmpl %ecx, %eax jge 0x94ffd movq -0x8(%rbp), %rax movq 0x58(%rax), %rax movzbl 0x61(%rax), %eax movq -0x8(%rbp), %rcx movq 0x58(%rcx), %rcx movzbl 0x42(%rcx), %ecx cmpl %ecx, %eax jge 0x94ffd movl -0xc(%rbp), %eax orl $0x400, %eax # imm = 0x400 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_8bit_collation_flags_from_data: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_C], 0 mov rax, [rbp+var_8] cmp qword ptr [rax+58h], 0 jz short loc_94FFD mov rax, [rbp+var_8] mov rax, [rax+58h] movzx eax, byte ptr [rax+41h] mov rcx, [rbp+var_8] mov rcx, [rcx+58h] movzx ecx, byte ptr [rcx+61h] cmp eax, ecx jge short loc_94FFD mov rax, [rbp+var_8] mov rax, [rax+58h] movzx eax, byte ptr [rax+61h] mov rcx, [rbp+var_8] mov rcx, [rcx+58h] movzx ecx, byte ptr [rcx+42h] cmp eax, ecx jge short loc_94FFD mov eax, [rbp+var_C] or eax, 400h mov [rbp+var_C], eax loc_94FFD: mov eax, [rbp+var_C] pop rbp retn
long long my_8bit_collation_flags_from_data(long long a1) { unsigned int v2; // [rsp+0h] [rbp-Ch] v2 = 0; if ( *(_QWORD *)(a1 + 88) && *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 65LL) < (int)*(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 97LL) && *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 97LL) < (int)*(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + 66LL) ) { return 1024; } return v2; }
my_8bit_collation_flags_from_data: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x58],0x0 JZ 0x00194ffd MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOVZX EAX,byte ptr [RAX + 0x41] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x58] MOVZX ECX,byte ptr [RCX + 0x61] CMP EAX,ECX JGE 0x00194ffd MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x58] MOVZX EAX,byte ptr [RAX + 0x61] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x58] MOVZX ECX,byte ptr [RCX + 0x42] CMP EAX,ECX JGE 0x00194ffd MOV EAX,dword ptr [RBP + -0xc] OR EAX,0x400 MOV dword ptr [RBP + -0xc],EAX LAB_00194ffd: MOV EAX,dword ptr [RBP + -0xc] POP RBP RET
int4 my_8bit_collation_flags_from_data(long param_1) { int4 local_14; local_14 = 0; if (((*(long *)(param_1 + 0x58) != 0) && (*(byte *)(*(long *)(param_1 + 0x58) + 0x41) < *(byte *)(*(long *)(param_1 + 0x58) + 0x61))) && (*(byte *)(*(long *)(param_1 + 0x58) + 0x61) < *(byte *)(*(long *)(param_1 + 0x58) + 0x42))) { local_14 = 0x400; } return local_14; }
7,095
change_pagecache_param
eloqsql/storage/maria/ma_pagecache.c
void change_pagecache_param(PAGECACHE *pagecache, uint division_limit, uint age_threshold) { DBUG_ENTER("change_pagecache_param"); pagecache_pthread_mutex_lock(&pagecache->cache_lock); if (division_limit) pagecache->min_warm_blocks= (pagecache->disk_blocks * division_limit / 100 + 1); if (age_threshold) pagecache->age_threshold= (pagecache->disk_blocks * age_threshold / 100); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O3
c
change_pagecache_param: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r15d movl %esi, %r12d movq %rdi, %r14 leaq 0xc8(%rdi), %rbx cmpq $0x0, 0x108(%rdi) jne 0x6d8f8 movq %rbx, %rdi callq 0x291e0 movabsq $-0x5c28f5c28f5c28f5, %rsi # imm = 0xA3D70A3D70A3D70B testl %r12d, %r12d je 0x6d8b4 movl %r12d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rdx, %rax incq %rax movq %rax, 0x8(%r14) testl %r15d, %r15d je 0x6d8dc movl %r15d, %ecx imulq 0x40(%r14), %rcx movq %rcx, %rax imulq %rsi addq %rcx, %rdx movq %rdx, %rax shrq $0x3f, %rax sarq $0x6, %rdx addq %rax, %rdx movq %rdx, 0x10(%r14) movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x6d911 movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x291b0 leaq 0x6f205(%rip), %rsi # 0xdcb04 movq %rbx, %rdi movl $0x46d, %edx # imm = 0x46D callq 0x2ee5b jmp 0x6d87f leaq 0x31b748(%rip), %rax # 0x389060 movq (%rax), %rax callq *0x160(%rax) jmp 0x6d8e8
change_pagecache_param: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r15d, edx mov r12d, esi mov r14, rdi lea rbx, [rdi+0C8h] cmp qword ptr [rdi+108h], 0 jnz loc_6D8F8 mov rdi, rbx call _pthread_mutex_lock loc_6D87F: mov rsi, 0A3D70A3D70A3D70Bh test r12d, r12d jz short loc_6D8B4 mov ecx, r12d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rax, rdx inc rax mov [r14+8], rax loc_6D8B4: test r15d, r15d jz short loc_6D8DC mov ecx, r15d imul rcx, [r14+40h] mov rax, rcx imul rsi add rdx, rcx mov rax, rdx shr rax, 3Fh sar rdx, 6 add rdx, rax mov [r14+10h], rdx loc_6D8DC: mov rdi, [r14+108h] test rdi, rdi jnz short loc_6D911 loc_6D8E8: mov rdi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_6D8F8: lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 46Dh call psi_mutex_lock jmp loc_6D87F loc_6D911: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_6D8E8
long long change_pagecache_param(_QWORD *a1, unsigned int a2, unsigned int a3) { _QWORD *v4; // rbx long long v5; // rdi v4 = a1 + 25; if ( a1[33] ) psi_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46Du); else pthread_mutex_lock(a1 + 25); if ( a2 ) a1[1] = a1[8] * a2 / 100LL + 1; if ( a3 ) a1[2] = a1[8] * a3 / 100LL; v5 = a1[33]; if ( v5 ) ((void ( *)(long long, unsigned long long))PSI_server[44])(v5, 0xA3D70A3D70A3D70BLL); return pthread_mutex_unlock(v4); }
change_pagecache_param: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R15D,EDX MOV R12D,ESI MOV R14,RDI LEA RBX,[RDI + 0xc8] CMP qword ptr [RDI + 0x108],0x0 JNZ 0x0016d8f8 MOV RDI,RBX CALL 0x001291e0 LAB_0016d87f: MOV RSI,-0x5c28f5c28f5c28f5 TEST R12D,R12D JZ 0x0016d8b4 MOV ECX,R12D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RAX,RDX INC RAX MOV qword ptr [R14 + 0x8],RAX LAB_0016d8b4: TEST R15D,R15D JZ 0x0016d8dc MOV ECX,R15D IMUL RCX,qword ptr [R14 + 0x40] MOV RAX,RCX IMUL RSI ADD RDX,RCX MOV RAX,RDX SHR RAX,0x3f SAR RDX,0x6 ADD RDX,RAX MOV qword ptr [R14 + 0x10],RDX LAB_0016d8dc: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x0016d911 LAB_0016d8e8: MOV RDI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x001291b0 LAB_0016d8f8: LEA RSI,[0x1dcb04] MOV RDI,RBX MOV EDX,0x46d CALL 0x0012ee5b JMP 0x0016d87f LAB_0016d911: LEA RAX,[0x489060] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0016d8e8
void change_pagecache_param(long param_1,uint param_2,uint param_3) { pthread_mutex_t *__mutex; __mutex = (pthread_mutex_t *)(param_1 + 200); if (*(long *)(param_1 + 0x108) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0x46d); } if (param_2 != 0) { *(long *)(param_1 + 8) = (long)((ulong)param_2 * *(long *)(param_1 + 0x40)) / 100 + 1; } if (param_3 != 0) { *(long *)(param_1 + 0x10) = (long)((ulong)param_3 * *(long *)(param_1 + 0x40)) / 100; } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
7,096
string_process_escapes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
monkey531[P]llama/common/common.cpp
void string_process_escapes(std::string & input) { std::size_t input_len = input.length(); std::size_t output_idx = 0; for (std::size_t input_idx = 0; input_idx < input_len; ++input_idx) { if (input[input_idx] == '\\' && input_idx + 1 < input_len) { switch (input[++input_idx]) { case 'n': input[output_idx++] = '\n'; break; case 'r': input[output_idx++] = '\r'; break; case 't': input[output_idx++] = '\t'; break; case '\'': input[output_idx++] = '\''; break; case '\"': input[output_idx++] = '\"'; break; case '\\': input[output_idx++] = '\\'; break; case 'x': // Handle \x12, etc if (input_idx + 2 < input_len) { const char x[3] = { input[input_idx + 1], input[input_idx + 2], 0 }; char *err_p = nullptr; const long val = std::strtol(x, &err_p, 16); if (err_p == x + 2) { input_idx += 2; input[output_idx++] = char(val); break; } } // fall through default: input[output_idx++] = '\\'; input[output_idx++] = input[input_idx]; break; } } else { input[output_idx++] = input[input_idx]; } } input.resize(output_idx); }
O3
cpp
string_process_escapes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq 0x8(%rdi), %r13 testq %r13, %r13 je 0x1eeeb leaq 0xf(%rsp), %r12 xorl %r14d, %r14d leaq 0xd(%rsp), %rdi leaq 0x10(%rsp), %rsi xorl %ecx, %ecx movq (%rbx), %rax movb (%rax,%rcx), %dl cmpb $0x5c, %dl jne 0x1ee0a leaq 0x1(%rcx), %rbp cmpq %r13, %rbp jae 0x1ee0a movzbl (%rax,%rbp), %edx cmpl $0x6d, %edx jle 0x1ee24 cmpl $0x73, %edx jg 0x1ee45 cmpl $0x6e, %edx je 0x1eeb4 cmpl $0x72, %edx jne 0x1ee94 movb $0xd, (%rax,%r14) jmp 0x1eec7 movb %dl, (%rax,%r14) incq %r14 movq %rcx, %rbp incq %rbp movq %rbp, %rcx cmpq %r13, %rbp jb 0x1edcc jmp 0x1eeee cmpl $0x22, %edx je 0x1eead cmpl $0x27, %edx je 0x1eec2 cmpl $0x5c, %edx jne 0x1ee94 movb $0x5c, (%rax,%r14) jmp 0x1eec7 cmpl $0x74, %edx je 0x1eebb cmpl $0x78, %edx jne 0x1ee94 leaq 0x3(%rcx), %r15 cmpq %r13, %r15 jae 0x1ee94 movb 0x2(%rax,%rcx), %dl movb %dl, 0xd(%rsp) movb 0x3(%rax,%rcx), %al movb %al, 0xe(%rsp) movb $0x0, 0xf(%rsp) movq $0x0, 0x10(%rsp) movl $0x10, %edx callq 0x18930 cmpq %r12, 0x10(%rsp) je 0x1eecf movq (%rbx), %rax leaq 0xd(%rsp), %rdi leaq 0x10(%rsp), %rsi movb $0x5c, (%rax,%r14) movq (%rbx), %rax movb (%rax,%rbp), %cl movb %cl, 0x1(%rax,%r14) addq $0x2, %r14 jmp 0x1ee14 movb $0x22, (%rax,%r14) jmp 0x1eec7 movb $0xa, (%rax,%r14) jmp 0x1eec7 movb $0x9, (%rax,%r14) jmp 0x1eec7 movb $0x27, (%rax,%r14) incq %r14 jmp 0x1ee14 movq (%rbx), %rcx movb %al, (%rcx,%r14) incq %r14 movq %r15, %rbp leaq 0xd(%rsp), %rdi leaq 0x10(%rsp), %rsi jmp 0x1ee14 xorl %r14d, %r14d movq %rbx, %rdi movq %r14, %rsi xorl %edx, %edx callq 0x181c0 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z22string_process_escapesRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi mov r13, [rdi+8] test r13, r13 jz loc_1EEEB lea r12, [rsp+48h+var_39] xor r14d, r14d lea rdi, [rsp+48h+var_3B] lea rsi, [rsp+48h+var_38] xor ecx, ecx loc_1EDCC: mov rax, [rbx] mov dl, [rax+rcx] cmp dl, 5Ch ; '\' jnz short loc_1EE0A lea rbp, [rcx+1] cmp rbp, r13 jnb short loc_1EE0A movzx edx, byte ptr [rax+rbp] cmp edx, 6Dh ; 'm' jle short loc_1EE24 cmp edx, 73h ; 's' jg short loc_1EE45 cmp edx, 6Eh ; 'n' jz loc_1EEB4 cmp edx, 72h ; 'r' jnz loc_1EE94 mov byte ptr [rax+r14], 0Dh jmp loc_1EEC7 loc_1EE0A: mov [rax+r14], dl inc r14 mov rbp, rcx loc_1EE14: inc rbp mov rcx, rbp cmp rbp, r13 jb short loc_1EDCC jmp loc_1EEEE loc_1EE24: cmp edx, 22h ; '"' jz loc_1EEAD cmp edx, 27h ; ''' jz loc_1EEC2 cmp edx, 5Ch ; '\' jnz short loc_1EE94 mov byte ptr [rax+r14], 5Ch ; '\' jmp loc_1EEC7 loc_1EE45: cmp edx, 74h ; 't' jz short loc_1EEBB cmp edx, 78h ; 'x' jnz short loc_1EE94 lea r15, [rcx+3] cmp r15, r13 jnb short loc_1EE94 mov dl, [rax+rcx+2] mov [rsp+48h+var_3B], dl mov al, [rax+rcx+3] mov [rsp+48h+var_3A], al mov [rsp+48h+var_39], 0 mov [rsp+48h+var_38], 0 mov edx, 10h call _strtol cmp [rsp+48h+var_38], r12 jz short loc_1EECF mov rax, [rbx] lea rdi, [rsp+48h+var_3B] lea rsi, [rsp+48h+var_38] loc_1EE94: mov byte ptr [rax+r14], 5Ch ; '\' mov rax, [rbx] mov cl, [rax+rbp] mov [rax+r14+1], cl add r14, 2 jmp loc_1EE14 loc_1EEAD: mov byte ptr [rax+r14], 22h ; '"' jmp short loc_1EEC7 loc_1EEB4: mov byte ptr [rax+r14], 0Ah jmp short loc_1EEC7 loc_1EEBB: mov byte ptr [rax+r14], 9 jmp short loc_1EEC7 loc_1EEC2: mov byte ptr [rax+r14], 27h ; ''' loc_1EEC7: inc r14 jmp loc_1EE14 loc_1EECF: mov rcx, [rbx] mov [rcx+r14], al inc r14 mov rbp, r15 lea rdi, [rsp+48h+var_3B] lea rsi, [rsp+48h+var_38] jmp loc_1EE14 loc_1EEEB: xor r14d, r14d loc_1EEEE: mov rdi, rbx mov rsi, r14 xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char) add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long string_process_escapes(long long *a1, long long a2, long long a3, long long a4) { unsigned long long v4; // r13 long long v5; // r14 long long v6; // rax char v7; // dl long long v8; // rbp unsigned int v9; // edx long long v10; // r15 char v11; // al _BYTE v13[2]; // [rsp+Dh] [rbp-3Bh] BYREF char v14; // [rsp+Fh] [rbp-39h] BYREF char *v15; // [rsp+10h] [rbp-38h] BYREF v4 = a1[1]; if ( v4 ) { v5 = 0LL; a4 = 0LL; while ( 1 ) { v6 = *a1; v7 = *(_BYTE *)(*a1 + a4); if ( v7 == 92 && (v8 = a4 + 1, a4 + 1 < v4) ) { v9 = *(unsigned __int8 *)(v6 + v8); if ( v9 <= 0x6D ) { switch ( v9 ) { case '"': *(_BYTE *)(v6 + v5) = 34; goto LABEL_27; case '\'': *(_BYTE *)(v6 + v5) = 39; goto LABEL_27; case '\\': *(_BYTE *)(v6 + v5) = 92; goto LABEL_27; } } else if ( *(unsigned __int8 *)(v6 + v8) > 0x73u ) { if ( v9 == 116 ) { *(_BYTE *)(v6 + v5) = 9; goto LABEL_27; } if ( v9 == 120 ) { v10 = a4 + 3; if ( a4 + 3 < v4 ) { v13[0] = *(_BYTE *)(v6 + a4 + 2); v13[1] = *(_BYTE *)(v6 + a4 + 3); v14 = 0; v15 = 0LL; v11 = strtol(v13, &v15, 16LL); if ( v15 == &v14 ) { *(_BYTE *)(*a1 + v5++) = v11; v8 = v10; goto LABEL_11; } v6 = *a1; } } } else { if ( v9 == 110 ) { *(_BYTE *)(v6 + v5) = 10; goto LABEL_27; } if ( v9 == 114 ) { *(_BYTE *)(v6 + v5) = 13; LABEL_27: ++v5; goto LABEL_11; } } *(_BYTE *)(v6 + v5) = 92; *(_BYTE *)(*a1 + v5 + 1) = *(_BYTE *)(*a1 + v8); v5 += 2LL; } else { *(_BYTE *)(v6 + v5++) = v7; v8 = a4; } LABEL_11: a4 = v8 + 1; if ( v8 + 1 >= v4 ) return std::string::resize(a1, v5, 0LL, a4); } } v5 = 0LL; return std::string::resize(a1, v5, 0LL, a4); }
string_process_escapes: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI MOV R13,qword ptr [RDI + 0x8] TEST R13,R13 JZ 0x0011eeeb LEA R12,[RSP + 0xf] XOR R14D,R14D LEA RDI,[RSP + 0xd] LEA RSI,[RSP + 0x10] XOR ECX,ECX LAB_0011edcc: MOV RAX,qword ptr [RBX] MOV DL,byte ptr [RAX + RCX*0x1] CMP DL,0x5c JNZ 0x0011ee0a LEA RBP,[RCX + 0x1] CMP RBP,R13 JNC 0x0011ee0a MOVZX EDX,byte ptr [RAX + RBP*0x1] CMP EDX,0x6d JLE 0x0011ee24 CMP EDX,0x73 JG 0x0011ee45 CMP EDX,0x6e JZ 0x0011eeb4 CMP EDX,0x72 JNZ 0x0011ee94 MOV byte ptr [RAX + R14*0x1],0xd JMP 0x0011eec7 LAB_0011ee0a: MOV byte ptr [RAX + R14*0x1],DL INC R14 MOV RBP,RCX LAB_0011ee14: INC RBP MOV RCX,RBP CMP RBP,R13 JC 0x0011edcc JMP 0x0011eeee LAB_0011ee24: CMP EDX,0x22 JZ 0x0011eead CMP EDX,0x27 JZ 0x0011eec2 CMP EDX,0x5c JNZ 0x0011ee94 MOV byte ptr [RAX + R14*0x1],0x5c JMP 0x0011eec7 LAB_0011ee45: CMP EDX,0x74 JZ 0x0011eebb CMP EDX,0x78 JNZ 0x0011ee94 LEA R15,[RCX + 0x3] CMP R15,R13 JNC 0x0011ee94 MOV DL,byte ptr [RAX + RCX*0x1 + 0x2] MOV byte ptr [RSP + 0xd],DL MOV AL,byte ptr [RAX + RCX*0x1 + 0x3] MOV byte ptr [RSP + 0xe],AL MOV byte ptr [RSP + 0xf],0x0 MOV qword ptr [RSP + 0x10],0x0 MOV EDX,0x10 CALL 0x00118930 CMP qword ptr [RSP + 0x10],R12 JZ 0x0011eecf MOV RAX,qword ptr [RBX] LEA RDI,[RSP + 0xd] LEA RSI,[RSP + 0x10] LAB_0011ee94: MOV byte ptr [RAX + R14*0x1],0x5c MOV RAX,qword ptr [RBX] MOV CL,byte ptr [RAX + RBP*0x1] MOV byte ptr [RAX + R14*0x1 + 0x1],CL ADD R14,0x2 JMP 0x0011ee14 LAB_0011eead: MOV byte ptr [RAX + R14*0x1],0x22 JMP 0x0011eec7 LAB_0011eeb4: MOV byte ptr [RAX + R14*0x1],0xa JMP 0x0011eec7 LAB_0011eebb: MOV byte ptr [RAX + R14*0x1],0x9 JMP 0x0011eec7 LAB_0011eec2: MOV byte ptr [RAX + R14*0x1],0x27 LAB_0011eec7: INC R14 JMP 0x0011ee14 LAB_0011eecf: MOV RCX,qword ptr [RBX] MOV byte ptr [RCX + R14*0x1],AL INC R14 MOV RBP,R15 LEA RDI,[RSP + 0xd] LEA RSI,[RSP + 0x10] JMP 0x0011ee14 LAB_0011eeeb: XOR R14D,R14D LAB_0011eeee: MOV RDI,RBX MOV RSI,R14 XOR EDX,EDX CALL 0x001181c0 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_process_escapes(std::__cxx11::string&) */ void string_process_escapes(string *param_1) { ulong uVar1; byte bVar2; ulong uVar3; long lVar4; ulong uVar5; long lVar6; char local_3b; int1 local_3a; char local_39; char *local_38; uVar3 = *(ulong *)(param_1 + 8); if (uVar3 == 0) { lVar6 = 0; } else { lVar6 = 0; uVar5 = 0; do { lVar4 = *(long *)param_1; if ((*(char *)(lVar4 + uVar5) == '\\') && (uVar1 = uVar5 + 1, uVar1 < uVar3)) { bVar2 = *(byte *)(lVar4 + uVar1); if (bVar2 < 0x6e) { if (bVar2 == 0x22) { *(int1 *)(lVar4 + lVar6) = 0x22; } else if (bVar2 == 0x27) { *(int1 *)(lVar4 + lVar6) = 0x27; } else { if (bVar2 != 0x5c) goto LAB_0011ee94; *(int1 *)(lVar4 + lVar6) = 0x5c; } } else if (bVar2 < 0x74) { if (bVar2 == 0x6e) { *(int1 *)(lVar4 + lVar6) = 10; } else { if (bVar2 != 0x72) goto LAB_0011ee94; *(int1 *)(lVar4 + lVar6) = 0xd; } } else { if (bVar2 != 0x74) { if ((bVar2 == 0x78) && (uVar5 + 3 < uVar3)) { local_3b = *(char *)(lVar4 + 2 + uVar5); local_3a = *(int1 *)(lVar4 + 3 + uVar5); local_39 = '\0'; local_38 = (char *)0x0; lVar4 = strtol(&local_3b,&local_38,0x10); if (local_38 == &local_39) { *(char *)(*(long *)param_1 + lVar6) = (char)lVar4; lVar6 = lVar6 + 1; uVar5 = uVar5 + 3; goto LAB_0011ee14; } lVar4 = *(long *)param_1; } LAB_0011ee94: *(int1 *)(lVar4 + lVar6) = 0x5c; *(int1 *)(*(long *)param_1 + 1 + lVar6) = *(int1 *)(*(long *)param_1 + uVar1); lVar6 = lVar6 + 2; uVar5 = uVar1; goto LAB_0011ee14; } *(int1 *)(lVar4 + lVar6) = 9; } lVar6 = lVar6 + 1; uVar5 = uVar1; } else { *(char *)(lVar4 + lVar6) = *(char *)(lVar4 + uVar5); lVar6 = lVar6 + 1; } LAB_0011ee14: uVar5 = uVar5 + 1; } while (uVar5 < uVar3); } std::__cxx11::string::resize((ulong)param_1,(char)lVar6); return; }
7,097
mi_open_keyfile
eloqsql/storage/myisam/mi_open.c
int mi_open_keyfile(MYISAM_SHARE *share) { if ((share->kfile= mysql_file_open(mi_key_file_kfile, share->unique_file_name, share->mode | O_SHARE | O_NOFOLLOW | O_CLOEXEC, MYF(MY_NOSYMLINKS | MY_WME))) < 0) return 1; return 0; }
O0
c
mi_open_keyfile: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) leaq 0xbc06b9(%rip), %rax # 0xc7b87c movl (%rax), %edi movq -0x10(%rbp), %rax movq 0x258(%rax), %rcx movq -0x10(%rbp), %rax movl 0x358(%rax), %r8d orl $0x0, %r8d orl $0x20000, %r8d # imm = 0x20000 orl $0x80000, %r8d # imm = 0x80000 leaq 0x99c72(%rip), %rsi # 0x154e66 movl $0x504, %edx # imm = 0x504 movl $0x210, %r9d # imm = 0x210 callq 0xb5f40 movq -0x10(%rbp), %rcx movl %eax, 0x350(%rcx) cmpl $0x0, %eax jge 0xbb21c movl $0x1, -0x4(%rbp) jmp 0xbb223 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopl (%rax)
mi_open_keyfile: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi lea rax, mi_key_file_kfile mov edi, [rax] mov rax, [rbp+var_10] mov rcx, [rax+258h] mov rax, [rbp+var_10] mov r8d, [rax+358h] or r8d, 0 or r8d, 20000h or r8d, 80000h lea rsi, aWorkspaceLlm4b_29; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 504h mov r9d, 210h call inline_mysql_file_open_2 mov rcx, [rbp+var_10] mov [rcx+350h], eax cmp eax, 0 jge short loc_BB21C mov [rbp+var_4], 1 jmp short loc_BB223 loc_BB21C: mov [rbp+var_4], 0 loc_BB223: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
_BOOL8 mi_open_keyfile(long long a1) { int v1; // eax v1 = inline_mysql_file_open_2( mi_key_file_kfile, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c", 0x504u, *(_QWORD *)(a1 + 600), *(_DWORD *)(a1 + 856) | 0xA0000u, 528LL); *(_DWORD *)(a1 + 848) = v1; return v1 < 0; }
mi_open_keyfile: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI LEA RAX,[0xd7b87c] MOV EDI,dword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x258] MOV RAX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RAX + 0x358] OR R8D,0x0 OR R8D,0x20000 OR R8D,0x80000 LEA RSI,[0x254e66] MOV EDX,0x504 MOV R9D,0x210 CALL 0x001b5f40 MOV RCX,qword ptr [RBP + -0x10] MOV dword ptr [RCX + 0x350],EAX CMP EAX,0x0 JGE 0x001bb21c MOV dword ptr [RBP + -0x4],0x1 JMP 0x001bb223 LAB_001bb21c: MOV dword ptr [RBP + -0x4],0x0 LAB_001bb223: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
bool mi_open_keyfile(long param_1) { int iVar1; iVar1 = inline_mysql_file_open (mi_key_file_kfile, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_open.c",0x504, *(int8 *)(param_1 + 600),*(uint *)(param_1 + 0x358) | 0xa0000,0x210); *(int *)(param_1 + 0x350) = iVar1; return iVar1 < 0; }
7,098
minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const
llama.cpp/common/minja/minja.hpp
Value evaluate(const std::shared_ptr<Context> & context) const { try { return do_evaluate(context); } catch (const std::exception & e) { std::ostringstream out; out << e.what(); if (location.source) out << error_location_suffix(*location.source, location.pos); throw std::runtime_error(out.str()); } }
O3
cpp
minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r14 pushq %rbx subq $0x1a0, %rsp # imm = 0x1A0 movq %rsi, %r14 movq %rdi, %rbx movq (%rsi), %rax callq *(%rax) movq %rbx, %rax addq $0x1a0, %rsp # imm = 0x1A0 popq %rbx popq %r14 popq %rbp retq movq %rax, %rbx cmpl $0x1, %edx jne 0xe0b42 movq %rbx, %rdi callq 0x210b0 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x22000 movq (%rbx), %rax movq %rbx, %rdi callq *0x10(%rax) leaq 0x28(%rsp), %rdi movq %rax, %rsi callq 0x21990 movq 0x8(%r14), %rsi testq %rsi, %rsi jne 0xe0a81 movl $0x10, %edi callq 0x21630 movq %rax, %r14 leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rdi callq 0x21640 movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %r14, %rdi callq 0x21450 xorl %ebp, %ebp movq 0x8454e(%rip), %rsi # 0x164fc0 movq 0x844ff(%rip), %rdx # 0x164f78 movq %r14, %rdi callq 0x21a50 movq 0x18(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x9dd2b movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx leaq 0x28(%rsp), %rdi callq 0x22060 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe0a3d movq 0x18(%rsp), %rsi incq %rsi callq 0x21170 jmp 0xe0a3d movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe0b1a movq 0x18(%rsp), %rsi incq %rsi callq 0x21170 jmp 0xe0b1a jmp 0xe0b17 movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe0b03 movq 0x18(%rsp), %rsi incq %rsi callq 0x21170 testb %bpl, %bpl jne 0xe0b0d jmp 0xe0b1a movq %rax, %rbx movq %r14, %rdi callq 0x21ef0 jmp 0xe0b1a movq %rax, %rbx movq 0x8442f(%rip), %rsi # 0x164f50 leaq 0x28(%rsp), %rdi callq 0x21c70 leaq 0x98(%rsp), %rdi callq 0x21c40 jmp 0xe0b3d movq %rax, %rbx callq 0x21d60 movq %rbx, %rdi callq 0x21af0 movq %rax, %rdi callq 0x27f2f
_ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r14 push rbx sub rsp, 1A0h mov r14, rsi mov rbx, rdi mov rax, [rsi] call qword ptr [rax] mov rax, rbx add rsp, 1A0h pop rbx pop r14 pop rbp retn mov rbx, rax cmp edx, 1 jnz loc_E0B42 mov rdi, rbx; void * call ___cxa_begin_catch mov rbx, rax lea rdi, [rsp+arg_20] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [rbx] mov rdi, rbx call qword ptr [rax+10h] lea rdi, [rsp+arg_20] mov rsi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rsi, [r14+8]; int test rsi, rsi jnz short loc_E0A81 loc_E0A3D: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, [rsp+arg_28] lea rdi, [rsp+arg_0] call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) mov bpl, 1 lea rsi, [rsp+arg_0] mov rdi, r14 call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_E0A81: mov rdx, [r14+18h]; int lea rdi, [rsp+arg_0]; int call _ZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm; minja::error_location_suffix(std::string const&,ulong) mov rsi, qword ptr [rsp+arg_0] mov rdx, [rsp+arg_8] lea rdi, [rsp+arg_20] call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long) lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E0A3D mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_E0A3D mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E0B1A mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_E0B1A jmp short loc_E0B17 mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E0B03 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E0B03: test bpl, bpl jnz short loc_E0B0D jmp short loc_E0B1A mov rbx, rax loc_E0B0D: mov rdi, r14; void * call ___cxa_free_exception jmp short loc_E0B1A loc_E0B17: mov rbx, rax loc_E0B1A: mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr lea rdi, [rsp+arg_20] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream() lea rdi, [rsp+arg_90]; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() jmp short loc_E0B3D mov rbx, rax loc_E0B3D: call ___cxa_end_catch loc_E0B42: mov rdi, rbx call __Unwind_Resume mov rdi, rax call __clang_call_terminate
long long minja::Expression::evaluate(long long a1, void (***a2)(void)) { (**a2)(); return a1; }
evaluate: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x1a0 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] LAB_001e09ec: CALL qword ptr [RAX] LAB_001e09ee: MOV RAX,RBX ADD RSP,0x1a0 POP RBX POP R14 POP RBP RET
/* minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) const */ Expression * __thiscall minja::Expression::evaluate(Expression *this,shared_ptr *param_1) { /* try { // try from 001e09ec to 001e09ed has its CatchHandler @ 001e09fd */ (*(code *)**(int8 **)param_1)(); return this; }
7,099
lf_dynarray_lvalue
eloqsql/mysys/lf_dynarray.c
void *lf_dynarray_lvalue(LF_DYNARRAY *array, uint idx) { void * ptr, * volatile * ptr_ptr= 0; int i; for (i= LF_DYNARRAY_LEVELS-1; idx < dynarray_idxes_in_prev_levels[i]; i--) /* no-op */; ptr_ptr= &array->level[i]; idx-= dynarray_idxes_in_prev_levels[i]; for (; i > 0; i--) { if (!(ptr= *ptr_ptr)) { void *alloc= my_malloc(key_memory_lf_dynarray, LF_DYNARRAY_LEVEL_LENGTH * sizeof(void *), MYF(MY_WME|MY_ZEROFILL)); if (unlikely(!alloc)) return(NULL); if (my_atomic_casptr(ptr_ptr, &ptr, alloc)) ptr= alloc; else my_free(alloc); } ptr_ptr= ((void **)ptr) + idx / dynarray_idxes_in_prev_level[i]; idx%= dynarray_idxes_in_prev_level[i]; } if (!(ptr= *ptr_ptr)) { uchar *alloc, *data; alloc= my_malloc(key_memory_lf_dynarray, LF_DYNARRAY_LEVEL_LENGTH * array->size_of_element + MY_MAX(array->size_of_element, sizeof(void *)), MYF(MY_WME|MY_ZEROFILL)); if (unlikely(!alloc)) return(NULL); /* reserve the space for free() address */ data= alloc + sizeof(void *); { /* alignment */ intptr mod= ((intptr)data) % array->size_of_element; if (mod) data+= array->size_of_element - mod; } ((void **)data)[-1]= alloc; /* free() will need the original pointer */ if (my_atomic_casptr(ptr_ptr, &ptr, data)) ptr= data; else my_free(alloc); } return ((uchar*)ptr) + array->size_of_element * idx; }
O0
c
lf_dynarray_lvalue: pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq $0x0, -0x28(%rbp) movl $0x3, -0x2c(%rbp) movl -0x14(%rbp), %eax movslq -0x2c(%rbp), %rdx leaq 0x5c2f1(%rip), %rcx # 0x158610 cmpq (%rcx,%rdx,8), %rax jae 0xfc332 jmp 0xfc327 movl -0x2c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x2c(%rbp) jmp 0xfc311 movq -0x10(%rbp), %rax movslq -0x2c(%rbp), %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movslq -0x2c(%rbp), %rcx leaq 0x5c2c0(%rip), %rax # 0x158610 movq (%rax,%rcx,8), %rcx movl -0x14(%rbp), %eax subq %rcx, %rax movl %eax, -0x14(%rbp) cmpl $0x0, -0x2c(%rbp) jle 0xfc47a movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0xfc41c leaq 0xb858f9(%rip), %rax # 0xc81c7c movl (%rax), %edi movl $0x800, %esi # imm = 0x800 movl $0x30, %edx callq 0xf2e30 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xfc3c7 movq $0x0, -0x8(%rbp) jmp 0xfc5ef movq -0x28(%rbp), %rcx movq -0x38(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax movq -0x40(%rbp), %rdx lock cmpxchgq %rdx, (%rcx) movq %rax, %rcx sete %al movb %al, -0x79(%rbp) movq %rcx, -0x78(%rbp) testb $0x1, %al jne 0xfc3f9 movq -0x78(%rbp), %rax movq %rax, -0x20(%rbp) movb -0x79(%rbp), %al andb $0x1, %al movb %al, -0x41(%rbp) testb $0x1, -0x41(%rbp) je 0xfc411 movq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0xfc41a movq -0x38(%rbp), %rdi callq 0xf31b0 jmp 0xfc41c movq -0x20(%rbp), %rax movq %rax, -0x88(%rbp) movl -0x14(%rbp), %eax movslq -0x2c(%rbp), %rsi leaq 0x5c1fb(%rip), %rcx # 0x158630 xorl %edx, %edx divq (%rcx,%rsi,8) movq %rax, %rcx movq -0x88(%rbp), %rax shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movslq -0x2c(%rbp), %rcx leaq 0x5c1d5(%rip), %rax # 0x158630 movq (%rax,%rcx,8), %rcx movl -0x14(%rbp), %eax xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x14(%rbp) movl -0x2c(%rbp), %eax addl $-0x1, %eax movl %eax, -0x2c(%rbp) jmp 0xfc35d movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0xfc5d7 leaq 0xb857e6(%rip), %rax # 0xc81c7c movl (%rax), %eax movl %eax, -0x94(%rbp) movq -0x10(%rbp), %rax movl 0x20(%rax), %eax shll $0x8, %eax movl %eax, %eax movq %rax, -0x90(%rbp) movq -0x10(%rbp), %rax movl 0x20(%rax), %eax cmpq $0x8, %rax jbe 0xfc4ce movq -0x10(%rbp), %rax movl 0x20(%rax), %eax movq %rax, -0xa0(%rbp) jmp 0xfc4dc movl $0x8, %eax movq %rax, -0xa0(%rbp) jmp 0xfc4dc movl -0x94(%rbp), %edi movq -0x90(%rbp), %rsi movq -0xa0(%rbp), %rax addq %rax, %rsi movl $0x30, %edx callq 0xf2e30 movq %rax, -0x50(%rbp) cmpq $0x0, -0x50(%rbp) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xfc530 movq $0x0, -0x8(%rbp) jmp 0xfc5ef movq -0x50(%rbp), %rax addq $0x8, %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x20(%rcx), %ecx xorl %edx, %edx divq %rcx movq %rdx, -0x60(%rbp) cmpq $0x0, -0x60(%rbp) je 0xfc56a movq -0x10(%rbp), %rax movl 0x20(%rax), %eax subq -0x60(%rbp), %rax addq -0x58(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, -0x8(%rax) movq -0x28(%rbp), %rcx movq -0x58(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x20(%rbp), %rax movq -0x68(%rbp), %rdx lock cmpxchgq %rdx, (%rcx) movq %rax, %rcx sete %al movb %al, -0xa9(%rbp) movq %rcx, -0xa8(%rbp) testb $0x1, %al jne 0xfc5b1 movq -0xa8(%rbp), %rax movq %rax, -0x20(%rbp) movb -0xa9(%rbp), %al andb $0x1, %al movb %al, -0x69(%rbp) testb $0x1, -0x69(%rbp) je 0xfc5cc movq -0x58(%rbp), %rax movq %rax, -0x20(%rbp) jmp 0xfc5d5 movq -0x50(%rbp), %rdi callq 0xf31b0 jmp 0xfc5d7 movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x20(%rcx), %ecx imull -0x14(%rbp), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xb0, %rsp popq %rbp retq nopl (%rax)
lf_dynarray_lvalue: push rbp mov rbp, rsp sub rsp, 0B0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_28], 0 mov [rbp+var_2C], 3 loc_FC311: mov eax, [rbp+var_14] movsxd rdx, [rbp+var_2C] lea rcx, dynarray_idxes_in_prev_levels cmp rax, [rcx+rdx*8] jnb short loc_FC332 jmp short $+2 loc_FC327: mov eax, [rbp+var_2C] add eax, 0FFFFFFFFh mov [rbp+var_2C], eax jmp short loc_FC311 loc_FC332: mov rax, [rbp+var_10] movsxd rcx, [rbp+var_2C] shl rcx, 3 add rax, rcx mov [rbp+var_28], rax movsxd rcx, [rbp+var_2C] lea rax, dynarray_idxes_in_prev_levels mov rcx, [rax+rcx*8] mov eax, [rbp+var_14] sub rax, rcx mov [rbp+var_14], eax loc_FC35D: cmp [rbp+var_2C], 0 jle loc_FC47A mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_20], rax cmp rax, 0 jnz loc_FC41C lea rax, key_memory_lf_dynarray mov edi, [rax] mov esi, 800h mov edx, 30h ; '0' call my_malloc mov [rbp+var_38], rax cmp [rbp+var_38], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_FC3C7 mov [rbp+var_8], 0 jmp loc_FC5EF loc_FC3C7: mov rcx, [rbp+var_28] mov rax, [rbp+var_38] mov [rbp+var_40], rax mov rax, [rbp+var_20] mov rdx, [rbp+var_40] lock cmpxchg [rcx], rdx mov rcx, rax setz al mov [rbp+var_79], al mov [rbp+var_78], rcx test al, 1 jnz short loc_FC3F9 mov rax, [rbp+var_78] mov [rbp+var_20], rax loc_FC3F9: mov al, [rbp+var_79] and al, 1 mov [rbp+var_41], al test [rbp+var_41], 1 jz short loc_FC411 mov rax, [rbp+var_38] mov [rbp+var_20], rax jmp short loc_FC41A loc_FC411: mov rdi, [rbp+var_38] call my_free loc_FC41A: jmp short $+2 loc_FC41C: mov rax, [rbp+var_20] mov [rbp+var_88], rax mov eax, [rbp+var_14] movsxd rsi, [rbp+var_2C] lea rcx, dynarray_idxes_in_prev_level xor edx, edx div qword ptr [rcx+rsi*8] mov rcx, rax mov rax, [rbp+var_88] shl rcx, 3 add rax, rcx mov [rbp+var_28], rax movsxd rcx, [rbp+var_2C] lea rax, dynarray_idxes_in_prev_level mov rcx, [rax+rcx*8] mov eax, [rbp+var_14] xor edx, edx div rcx mov eax, edx mov [rbp+var_14], eax mov eax, [rbp+var_2C] add eax, 0FFFFFFFFh mov [rbp+var_2C], eax jmp loc_FC35D loc_FC47A: mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_20], rax cmp rax, 0 jnz loc_FC5D7 lea rax, key_memory_lf_dynarray mov eax, [rax] mov [rbp+var_94], eax mov rax, [rbp+var_10] mov eax, [rax+20h] shl eax, 8 mov eax, eax mov [rbp+var_90], rax mov rax, [rbp+var_10] mov eax, [rax+20h] cmp rax, 8 jbe short loc_FC4CE mov rax, [rbp+var_10] mov eax, [rax+20h] mov [rbp+var_A0], rax jmp short loc_FC4DC loc_FC4CE: mov eax, 8 mov [rbp+var_A0], rax jmp short $+2 loc_FC4DC: mov edi, [rbp+var_94] mov rsi, [rbp+var_90] mov rax, [rbp+var_A0] add rsi, rax mov edx, 30h ; '0' call my_malloc mov [rbp+var_50], rax cmp [rbp+var_50], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_FC530 mov [rbp+var_8], 0 jmp loc_FC5EF loc_FC530: mov rax, [rbp+var_50] add rax, 8 mov [rbp+var_58], rax mov rax, [rbp+var_58] mov rcx, [rbp+var_10] mov ecx, [rcx+20h] xor edx, edx div rcx mov [rbp+var_60], rdx cmp [rbp+var_60], 0 jz short loc_FC56A mov rax, [rbp+var_10] mov eax, [rax+20h] sub rax, [rbp+var_60] add rax, [rbp+var_58] mov [rbp+var_58], rax loc_FC56A: mov rcx, [rbp+var_50] mov rax, [rbp+var_58] mov [rax-8], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_58] mov [rbp+var_68], rax mov rax, [rbp+var_20] mov rdx, [rbp+var_68] lock cmpxchg [rcx], rdx mov rcx, rax setz al mov [rbp+var_A9], al mov [rbp+var_A8], rcx test al, 1 jnz short loc_FC5B1 mov rax, [rbp+var_A8] mov [rbp+var_20], rax loc_FC5B1: mov al, [rbp+var_A9] and al, 1 mov [rbp+var_69], al test [rbp+var_69], 1 jz short loc_FC5CC mov rax, [rbp+var_58] mov [rbp+var_20], rax jmp short loc_FC5D5 loc_FC5CC: mov rdi, [rbp+var_50] call my_free loc_FC5D5: jmp short $+2 loc_FC5D7: mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov ecx, [rcx+20h] imul ecx, [rbp+var_14] mov ecx, ecx add rax, rcx mov [rbp+var_8], rax loc_FC5EF: mov rax, [rbp+var_8] add rsp, 0B0h pop rbp retn
signed long long lf_dynarray_lvalue(long long a1, unsigned int a2, double a3) { signed long long v3; // rcx signed long long v4; // rcx long long v6; // [rsp+10h] [rbp-A0h] unsigned long long v7; // [rsp+50h] [rbp-60h] signed long long v8; // [rsp+58h] [rbp-58h] long long v9; // [rsp+60h] [rbp-50h] signed long long v10; // [rsp+78h] [rbp-38h] int i; // [rsp+84h] [rbp-2Ch] volatile signed long long *v12; // [rsp+88h] [rbp-28h] volatile signed long long v13; // [rsp+90h] [rbp-20h] volatile signed long long v14; // [rsp+90h] [rbp-20h] unsigned int v15; // [rsp+9Ch] [rbp-14h] for ( i = 3; (unsigned long long)a2 < dynarray_idxes_in_prev_levels[i]; --i ) ; v12 = (volatile signed long long *)(8LL * i + a1); v15 = a2 - dynarray_idxes_in_prev_levels[i]; while ( i > 0 ) { v13 = *v12; if ( !*v12 ) { v10 = my_malloc(key_memory_lf_dynarray, 2048LL, 48, a3); if ( !v10 ) return 0LL; v3 = _InterlockedCompareExchange64(v12, v10, 0LL); if ( v3 ) { v13 = v3; my_free(v10); } else { v13 = v10; } } v12 = (volatile signed long long *)(8 * ((unsigned long long)v15 / dynarray_idxes_in_prev_level[i]) + v13); v15 = (unsigned long long)v15 % dynarray_idxes_in_prev_level[i--]; } v14 = *v12; if ( *v12 ) return v15 * *(_DWORD *)(a1 + 32) + v14; if ( *(unsigned int *)(a1 + 32) <= 8uLL ) v6 = 8LL; else v6 = *(unsigned int *)(a1 + 32); v9 = my_malloc(key_memory_lf_dynarray, v6 + (unsigned int)(*(_DWORD *)(a1 + 32) << 8), 48, a3); if ( v9 ) { v8 = v9 + 8; v7 = (v9 + 8) % (unsigned long long)*(unsigned int *)(a1 + 32); if ( v7 ) v8 += *(unsigned int *)(a1 + 32) - v7; *(_QWORD *)(v8 - 8) = v9; v4 = _InterlockedCompareExchange64(v12, v8, 0LL); if ( v4 ) { v14 = v4; my_free(v9); } else { v14 = v8; } return v15 * *(_DWORD *)(a1 + 32) + v14; } return 0LL; }
lf_dynarray_lvalue: PUSH RBP MOV RBP,RSP SUB RSP,0xb0 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x28],0x0 MOV dword ptr [RBP + -0x2c],0x3 LAB_001fc311: MOV EAX,dword ptr [RBP + -0x14] MOVSXD RDX,dword ptr [RBP + -0x2c] LEA RCX,[0x258610] CMP RAX,qword ptr [RCX + RDX*0x8] JNC 0x001fc332 JMP 0x001fc327 LAB_001fc327: MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001fc311 LAB_001fc332: MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x2c] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOVSXD RCX,dword ptr [RBP + -0x2c] LEA RAX,[0x258610] MOV RCX,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x14] SUB RAX,RCX MOV dword ptr [RBP + -0x14],EAX LAB_001fc35d: CMP dword ptr [RBP + -0x2c],0x0 JLE 0x001fc47a MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001fc41c LEA RAX,[0xd81c7c] MOV EDI,dword ptr [RAX] MOV ESI,0x800 MOV EDX,0x30 CALL 0x001f2e30 MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001fc3c7 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001fc5ef LAB_001fc3c7: MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x40] CMPXCHG.LOCK qword ptr [RCX],RDX MOV RCX,RAX SETZ AL MOV byte ptr [RBP + -0x79],AL MOV qword ptr [RBP + -0x78],RCX TEST AL,0x1 JNZ 0x001fc3f9 MOV RAX,qword ptr [RBP + -0x78] MOV qword ptr [RBP + -0x20],RAX LAB_001fc3f9: MOV AL,byte ptr [RBP + -0x79] AND AL,0x1 MOV byte ptr [RBP + -0x41],AL TEST byte ptr [RBP + -0x41],0x1 JZ 0x001fc411 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX JMP 0x001fc41a LAB_001fc411: MOV RDI,qword ptr [RBP + -0x38] CALL 0x001f31b0 LAB_001fc41a: JMP 0x001fc41c LAB_001fc41c: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x88],RAX MOV EAX,dword ptr [RBP + -0x14] MOVSXD RSI,dword ptr [RBP + -0x2c] LEA RCX,[0x258630] XOR EDX,EDX DIV qword ptr [RCX + RSI*0x8] MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x88] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOVSXD RCX,dword ptr [RBP + -0x2c] LEA RAX,[0x258630] MOV RCX,qword ptr [RAX + RCX*0x8] MOV EAX,dword ptr [RBP + -0x14] XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RBP + -0x2c] ADD EAX,-0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001fc35d LAB_001fc47a: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX CMP RAX,0x0 JNZ 0x001fc5d7 LEA RAX,[0xd81c7c] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x94],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] SHL EAX,0x8 MOV EAX,EAX MOV qword ptr [RBP + -0x90],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] CMP RAX,0x8 JBE 0x001fc4ce MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001fc4dc LAB_001fc4ce: MOV EAX,0x8 MOV qword ptr [RBP + -0xa0],RAX JMP 0x001fc4dc LAB_001fc4dc: MOV EDI,dword ptr [RBP + -0x94] MOV RSI,qword ptr [RBP + -0x90] MOV RAX,qword ptr [RBP + -0xa0] ADD RSI,RAX MOV EDX,0x30 CALL 0x001f2e30 MOV qword ptr [RBP + -0x50],RAX CMP qword ptr [RBP + -0x50],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001fc530 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001fc5ef LAB_001fc530: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,0x8 MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x20] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x60],RDX CMP qword ptr [RBP + -0x60],0x0 JZ 0x001fc56a MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] SUB RAX,qword ptr [RBP + -0x60] ADD RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x58],RAX LAB_001fc56a: MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + -0x8],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x68] CMPXCHG.LOCK qword ptr [RCX],RDX MOV RCX,RAX SETZ AL MOV byte ptr [RBP + -0xa9],AL MOV qword ptr [RBP + -0xa8],RCX TEST AL,0x1 JNZ 0x001fc5b1 MOV RAX,qword ptr [RBP + -0xa8] MOV qword ptr [RBP + -0x20],RAX LAB_001fc5b1: MOV AL,byte ptr [RBP + -0xa9] AND AL,0x1 MOV byte ptr [RBP + -0x69],AL TEST byte ptr [RBP + -0x69],0x1 JZ 0x001fc5cc MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x20],RAX JMP 0x001fc5d5 LAB_001fc5cc: MOV RDI,qword ptr [RBP + -0x50] CALL 0x001f31b0 LAB_001fc5d5: JMP 0x001fc5d7 LAB_001fc5d7: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x20] IMUL ECX,dword ptr [RBP + -0x14] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX LAB_001fc5ef: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xb0 POP RBP RET
long lf_dynarray_lvalue(long param_1,uint param_2) { ulong uVar1; long lVar2; ulong uVar3; bool bVar4; ulong local_a8; ulong local_60; int local_34; ulong *local_30; ulong local_28; uint local_1c; local_34 = 3; while ((ulong)param_2 < *(ulong *)(dynarray_idxes_in_prev_levels + (long)local_34 * 8)) { local_34 = local_34 + -1; } local_30 = (ulong *)(param_1 + (long)local_34 * 8); local_1c = param_2 - (int)*(int8 *)(dynarray_idxes_in_prev_levels + (long)local_34 * 8); for (; 0 < local_34; local_34 = local_34 + -1) { uVar1 = *local_30; local_28 = uVar1; if (uVar1 == 0) { local_28 = my_malloc(key_memory_lf_dynarray,0x800,0x30); if (local_28 == 0) { return 0; } LOCK(); uVar3 = *local_30; bVar4 = uVar3 == 0; if (bVar4) { *local_30 = local_28; uVar3 = uVar1; } UNLOCK(); if (!bVar4) { my_free(local_28); local_28 = uVar3; } } local_30 = (ulong *)(local_28 + ((ulong)local_1c / *(ulong *)(dynarray_idxes_in_prev_level + (long)local_34 * 8)) * 8); local_1c = (uint)((ulong)local_1c % *(ulong *)(dynarray_idxes_in_prev_level + (long)local_34 * 8)); } uVar1 = *local_30; local_28 = uVar1; if (uVar1 == 0) { if (*(uint *)(param_1 + 0x20) < 9) { local_a8 = 8; } else { local_a8 = (ulong)*(uint *)(param_1 + 0x20); } lVar2 = my_malloc(key_memory_lf_dynarray,(uint)(*(int *)(param_1 + 0x20) << 8) + local_a8,0x30); if (lVar2 == 0) { return 0; } local_60 = lVar2 + 8; uVar3 = local_60 % (ulong)*(uint *)(param_1 + 0x20); if (uVar3 != 0) { local_60 = (*(uint *)(param_1 + 0x20) - uVar3) + local_60; } *(long *)(local_60 - 8) = lVar2; LOCK(); local_28 = *local_30; bVar4 = local_28 == 0; if (bVar4) { *local_30 = local_60; local_28 = uVar1; } UNLOCK(); if (bVar4) { local_28 = local_60; } else { my_free(lVar2); } } return local_28 + *(int *)(param_1 + 0x20) * local_1c; }