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
59,700
mysql_stmt_send_long_data
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
my_bool STDCALL mysql_stmt_send_long_data(MYSQL_STMT *stmt, uint param_number, const char *data, unsigned long length) { CLEAR_CLIENT_ERROR(stmt->mysql); CLEAR_CLIENT_STMT_ERROR(stmt); if (stmt->state < MYSQL_STMT_PREPARED || !stmt->params) { SET_CLIENT_STMT_ERROR(stmt, CR_NO_PREPARE_STMT, SQLSTATE_UNKNOWN, 0); return(1); } if (param_number >= stmt->param_count) { SET_CLIENT_STMT_ERROR(stmt, CR_INVALID_PARAMETER_NO, SQLSTATE_UNKNOWN, 0); return(1); } if (length || !stmt->params[param_number].long_data_used) { int ret; size_t packet_len= STMT_ID_LENGTH + 2 + length; uchar *cmd_buff= (uchar *)calloc(1, packet_len); int4store(cmd_buff, stmt->stmt_id); int2store(cmd_buff + STMT_ID_LENGTH, param_number); memcpy(cmd_buff + STMT_ID_LENGTH + 2, data, length); stmt->params[param_number].long_data_used= 1; ret= stmt->mysql->methods->db_command(stmt->mysql, COM_STMT_SEND_LONG_DATA, (char *)cmd_buff, packet_len, 1, stmt); if (ret) UPDATE_STMT_ERROR(stmt); free(cmd_buff); return(ret); } return(0); }
O3
c
mysql_stmt_send_long_data: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, %r12 movl %esi, %ecx movq %rdi, %rbx movq 0x38(%rdi), %rax movl $0x0, 0x90(%rax) movq 0x38(%rdi), %rax movw $0x30, 0x29b(%rax) movl $0x30303030, 0x297(%rax) # imm = 0x30303030 movq 0x38(%rdi), %rax movb $0x0, 0x97(%rax) movq 0x38(%rdi), %rax movq 0x2a0(%rax), %rax testq %rax, %rax je 0x24d50 movl $0x0, 0x4(%rax) movl $0x0, 0x108(%rbx) leaq 0x30d(%rbx), %r15 movl $0x30303030, 0x30d(%rbx) # imm = 0x30303030 movw $0x30, 0x311(%rbx) leaq 0x10c(%rbx), %r14 movb $0x0, 0x10c(%rbx) cmpl $0x0, 0x50(%rbx) je 0x24e94 movq 0x70(%rbx), %r13 testq %r13, %r13 je 0x24e94 cmpl %ecx, 0x64(%rbx) jbe 0x24ecf movl %ecx, %r8d testq %r12, %r12 je 0x24f31 movq %r14, -0x30(%rbp) leaq 0x6(%r12), %rsi movq %rsi, -0x48(%rbp) movl $0x1, %edi movq %r8, -0x40(%rbp) movq %rdx, -0x38(%rbp) movl %ecx, %r14d callq 0x132e0 movq 0x40(%rbx), %rdx movb %dl, (%rax) movb %dh, 0x1(%rax) movl %edx, %ecx shrl $0x10, %ecx movb %cl, 0x2(%rax) shrl $0x18, %edx movb %dl, 0x3(%rax) movl %r14d, %ecx movb %cl, 0x4(%rax) movb %ch, 0x5(%rax) leaq 0x6(%rax), %rdi movq %rax, %r14 movq -0x38(%rbp), %rsi movq %r12, %rdx callq 0x13390 imulq $0x70, -0x40(%rbp), %rax movb $0x1, 0x66(%r13,%rax) movq 0x38(%rbx), %rdi movq 0x4d0(%rdi), %rax movl $0x18, %esi movq %r14, %r13 movq %r14, %rdx movq -0x48(%rbp), %rcx movl $0x1, %r8d movq %rbx, %r9 callq *0x10(%rax) movl %eax, %r12d testl %eax, %eax je 0x24e87 movq 0x38(%rbx), %rsi movl 0x90(%rsi), %eax movl %eax, 0x108(%rbx) addq $0x297, %rsi # imm = 0x297 movl $0x5, %edx movq %r15, %rdi callq 0x13220 xorl %r15d, %r15d movb %r15b, 0x312(%rbx) movl $0x97, %esi addq 0x38(%rbx), %rsi movl $0x200, %edx # imm = 0x200 movq -0x30(%rbp), %rdi callq 0x13220 movb %r15b, 0x30b(%rbx) movq %r13, %rdi callq 0x13570 jmp 0x24f1f movl $0x7ee, 0x108(%rbx) # imm = 0x7EE leaq 0x28edb(%rip), %rax # 0x4dd80 movq (%rax), %rsi movl $0x5, %edx movq %r15, %rdi callq 0x13220 xorl %r15d, %r15d movb %r15b, 0x312(%rbx) leaq 0x28eca(%rip), %rax # 0x4dd90 movq 0xf0(%rax), %rsi jmp 0x24f08 movl $0x7f2, 0x108(%rbx) # imm = 0x7F2 leaq 0x28ea0(%rip), %rax # 0x4dd80 movq (%rax), %rsi movl $0x5, %edx movq %r15, %rdi callq 0x13220 xorl %r15d, %r15d movb %r15b, 0x312(%rbx) leaq 0x28e8f(%rip), %rax # 0x4dd90 movq 0x110(%rax), %rsi movl $0x200, %edx # imm = 0x200 movq %r14, %rdi callq 0x13220 movb %r15b, 0x30b(%rbx) movb $0x1, %r12b movl %r12d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq imulq $0x70, %r8, %rax cmpb $0x0, 0x66(%r13,%rax) je 0x24dae xorl %r12d, %r12d jmp 0x24f1f
mysql_stmt_send_long_data: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r12, rcx mov ecx, esi mov rbx, rdi mov rax, [rdi+38h] mov dword ptr [rax+90h], 0 mov rax, [rdi+38h] mov word ptr [rax+29Bh], 30h ; '0' mov dword ptr [rax+297h], 30303030h mov rax, [rdi+38h] mov byte ptr [rax+97h], 0 mov rax, [rdi+38h] mov rax, [rax+2A0h] test rax, rax jz short loc_24D50 mov dword ptr [rax+4], 0 loc_24D50: mov dword ptr [rbx+108h], 0 lea r15, [rbx+30Dh] mov dword ptr [rbx+30Dh], 30303030h mov word ptr [rbx+311h], 30h ; '0' lea r14, [rbx+10Ch] mov byte ptr [rbx+10Ch], 0 cmp dword ptr [rbx+50h], 0 jz loc_24E94 mov r13, [rbx+70h] test r13, r13 jz loc_24E94 cmp [rbx+64h], ecx jbe loc_24ECF mov r8d, ecx test r12, r12 jz loc_24F31 loc_24DAE: mov [rbp+var_30], r14 lea rsi, [r12+6] mov [rbp+var_48], rsi mov edi, 1 mov [rbp+var_40], r8 mov [rbp+var_38], rdx mov r14d, ecx call _calloc mov rdx, [rbx+40h] mov [rax], dl mov [rax+1], dh mov ecx, edx shr ecx, 10h mov [rax+2], cl shr edx, 18h mov [rax+3], dl mov ecx, r14d mov [rax+4], cl mov [rax+5], ch lea rdi, [rax+6] mov r14, rax mov rsi, [rbp+var_38] mov rdx, r12 call _memcpy imul rax, [rbp+var_40], 70h ; 'p' mov byte ptr [r13+rax+66h], 1 mov rdi, [rbx+38h] mov rax, [rdi+4D0h] mov esi, 18h mov r13, r14 mov rdx, r14 mov rcx, [rbp+var_48] mov r8d, 1 mov r9, rbx call qword ptr [rax+10h] mov r12d, eax test eax, eax jz short loc_24E87 mov rsi, [rbx+38h] mov eax, [rsi+90h] mov [rbx+108h], eax add rsi, 297h mov edx, 5 mov rdi, r15 call _strncpy xor r15d, r15d mov [rbx+312h], r15b mov esi, 97h add rsi, [rbx+38h] mov edx, 200h mov rdi, [rbp+var_30] call _strncpy mov [rbx+30Bh], r15b loc_24E87: mov rdi, r13 call _free jmp loc_24F1F loc_24E94: mov dword ptr [rbx+108h], 7EEh lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 mov rdi, r15 call _strncpy xor r15d, r15d mov [rbx+312h], r15b lea rax, client_errors mov rsi, [rax+0F0h] jmp short loc_24F08 loc_24ECF: mov dword ptr [rbx+108h], 7F2h lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 mov rdi, r15 call _strncpy xor r15d, r15d mov [rbx+312h], r15b lea rax, client_errors mov rsi, [rax+110h] loc_24F08: mov edx, 200h mov rdi, r14 call _strncpy mov [rbx+30Bh], r15b mov r12b, 1 loc_24F1F: mov eax, r12d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_24F31: imul rax, r8, 70h ; 'p' cmp byte ptr [r13+rax+66h], 0 jz loc_24DAE xor r12d, r12d jmp short loc_24F1F
long long mysql_stmt_send_long_data(long long a1, unsigned int a2, long long a3, long long a4) { long long v4; // r12 long long v5; // rax long long v6; // r13 long long v7; // rax long long v8; // rdx long long v9; // r14 long long v10; // rsi char *v11; // rsi v4 = a4; *(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL) = 0; strcpy((char *)(*(_QWORD *)(a1 + 56) + 663LL), "00000"); *(_BYTE *)(*(_QWORD *)(a1 + 56) + 151LL) = 0; v5 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 672LL); if ( v5 ) *(_DWORD *)(v5 + 4) = 0; *(_DWORD *)(a1 + 264) = 0; strcpy((char *)(a1 + 781), "00000"); *(_BYTE *)(a1 + 268) = 0; if ( !*(_DWORD *)(a1 + 80) || (v6 = *(_QWORD *)(a1 + 112)) == 0 ) { *(_DWORD *)(a1 + 264) = 2030; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; v11 = client_errors[30]; LABEL_12: strncpy(a1 + 268, v11, 512LL); *(_BYTE *)(a1 + 779) = 0; LOBYTE(v4) = 1; return (unsigned int)v4; } if ( *(_DWORD *)(a1 + 100) <= a2 ) { *(_DWORD *)(a1 + 264) = 2034; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; v11 = client_errors[34]; goto LABEL_12; } if ( a4 || !*(_BYTE *)(v6 + 112LL * a2 + 102) ) { v7 = calloc(1LL, a4 + 6); v8 = *(_QWORD *)(a1 + 64); *(_WORD *)v7 = v8; *(_BYTE *)(v7 + 2) = BYTE2(v8); *(_BYTE *)(v7 + 3) = BYTE3(v8); *(_WORD *)(v7 + 4) = a2; v9 = v7; memcpy(v7 + 6, a3, v4); *(_BYTE *)(v6 + 112LL * a2 + 102) = 1; LODWORD(v4) = (*(long long ( **)(_QWORD, long long, long long, long long, long long, long long))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 16LL))( *(_QWORD *)(a1 + 56), 24LL, v9, v4 + 6, 1LL, a1); if ( (_DWORD)v4 ) { v10 = *(_QWORD *)(a1 + 56); *(_DWORD *)(a1 + 264) = *(_DWORD *)(v10 + 144); strncpy(a1 + 781, v10 + 663, 5LL); *(_BYTE *)(a1 + 786) = 0; strncpy(a1 + 268, *(_QWORD *)(a1 + 56) + 151LL, 512LL); *(_BYTE *)(a1 + 779) = 0; } free(v9); } else { LODWORD(v4) = 0; } return (unsigned int)v4; }
mysql_stmt_send_long_data: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R12,RCX MOV ECX,ESI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x38] MOV dword ptr [RAX + 0x90],0x0 MOV RAX,qword ptr [RDI + 0x38] MOV word ptr [RAX + 0x29b],0x30 MOV dword ptr [RAX + 0x297],0x30303030 MOV RAX,qword ptr [RDI + 0x38] MOV byte ptr [RAX + 0x97],0x0 MOV RAX,qword ptr [RDI + 0x38] MOV RAX,qword ptr [RAX + 0x2a0] TEST RAX,RAX JZ 0x00124d50 MOV dword ptr [RAX + 0x4],0x0 LAB_00124d50: MOV dword ptr [RBX + 0x108],0x0 LEA R15,[RBX + 0x30d] MOV dword ptr [RBX + 0x30d],0x30303030 MOV word ptr [RBX + 0x311],0x30 LEA R14,[RBX + 0x10c] MOV byte ptr [RBX + 0x10c],0x0 CMP dword ptr [RBX + 0x50],0x0 JZ 0x00124e94 MOV R13,qword ptr [RBX + 0x70] TEST R13,R13 JZ 0x00124e94 CMP dword ptr [RBX + 0x64],ECX JBE 0x00124ecf MOV R8D,ECX TEST R12,R12 JZ 0x00124f31 LAB_00124dae: MOV qword ptr [RBP + -0x30],R14 LEA RSI,[R12 + 0x6] MOV qword ptr [RBP + -0x48],RSI MOV EDI,0x1 MOV qword ptr [RBP + -0x40],R8 MOV qword ptr [RBP + -0x38],RDX MOV R14D,ECX CALL 0x001132e0 MOV RDX,qword ptr [RBX + 0x40] MOV byte ptr [RAX],DL MOV byte ptr [RAX + 0x1],DH MOV ECX,EDX SHR ECX,0x10 MOV byte ptr [RAX + 0x2],CL SHR EDX,0x18 MOV byte ptr [RAX + 0x3],DL MOV ECX,R14D MOV byte ptr [RAX + 0x4],CL MOV byte ptr [RAX + 0x5],CH LEA RDI,[RAX + 0x6] MOV R14,RAX MOV RSI,qword ptr [RBP + -0x38] MOV RDX,R12 CALL 0x00113390 IMUL RAX,qword ptr [RBP + -0x40],0x70 MOV byte ptr [R13 + RAX*0x1 + 0x66],0x1 MOV RDI,qword ptr [RBX + 0x38] MOV RAX,qword ptr [RDI + 0x4d0] MOV ESI,0x18 MOV R13,R14 MOV RDX,R14 MOV RCX,qword ptr [RBP + -0x48] MOV R8D,0x1 MOV R9,RBX CALL qword ptr [RAX + 0x10] MOV R12D,EAX TEST EAX,EAX JZ 0x00124e87 MOV RSI,qword ptr [RBX + 0x38] MOV EAX,dword ptr [RSI + 0x90] MOV dword ptr [RBX + 0x108],EAX ADD RSI,0x297 MOV EDX,0x5 MOV RDI,R15 CALL 0x00113220 XOR R15D,R15D MOV byte ptr [RBX + 0x312],R15B MOV ESI,0x97 ADD RSI,qword ptr [RBX + 0x38] MOV EDX,0x200 MOV RDI,qword ptr [RBP + -0x30] CALL 0x00113220 MOV byte ptr [RBX + 0x30b],R15B LAB_00124e87: MOV RDI,R13 CALL 0x00113570 JMP 0x00124f1f LAB_00124e94: MOV dword ptr [RBX + 0x108],0x7ee LEA RAX,[0x14dd80] MOV RSI,qword ptr [RAX] MOV EDX,0x5 MOV RDI,R15 CALL 0x00113220 XOR R15D,R15D MOV byte ptr [RBX + 0x312],R15B LEA RAX,[0x14dd90] MOV RSI,qword ptr [RAX + 0xf0] JMP 0x00124f08 LAB_00124ecf: MOV dword ptr [RBX + 0x108],0x7f2 LEA RAX,[0x14dd80] MOV RSI,qword ptr [RAX] MOV EDX,0x5 MOV RDI,R15 CALL 0x00113220 XOR R15D,R15D MOV byte ptr [RBX + 0x312],R15B LEA RAX,[0x14dd90] MOV RSI,qword ptr [RAX + 0x110] LAB_00124f08: MOV EDX,0x200 MOV RDI,R14 CALL 0x00113220 MOV byte ptr [RBX + 0x30b],R15B MOV R12B,0x1 LAB_00124f1f: MOV EAX,R12D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00124f31: IMUL RAX,R8,0x70 CMP byte ptr [R13 + RAX*0x1 + 0x66],0x0 JZ 0x00124dae XOR R12D,R12D JMP 0x00124f1f
ulong mysql_stmt_send_long_data(long param_1,uint param_2,void *param_3,size_t param_4) { long lVar1; int8 uVar2; uint uVar3; int1 *__ptr; char *pcVar4; ulong uVar5; *(int4 *)(*(long *)(param_1 + 0x38) + 0x90) = 0; lVar1 = *(long *)(param_1 + 0x38); *(int2 *)(lVar1 + 0x29b) = 0x30; *(int4 *)(lVar1 + 0x297) = 0x30303030; *(int1 *)(*(long *)(param_1 + 0x38) + 0x97) = 0; lVar1 = *(long *)(*(long *)(param_1 + 0x38) + 0x2a0); if (lVar1 != 0) { *(int4 *)(lVar1 + 4) = 0; } *(int4 *)(param_1 + 0x108) = 0; pcVar4 = (char *)(param_1 + 0x30d); *(int4 *)(param_1 + 0x30d) = 0x30303030; *(int2 *)(param_1 + 0x311) = 0x30; *(int1 *)(param_1 + 0x10c) = 0; if ((*(int *)(param_1 + 0x50) == 0) || (lVar1 = *(long *)(param_1 + 0x70), lVar1 == 0)) { *(int4 *)(param_1 + 0x108) = 0x7ee; strncpy(pcVar4,SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; pcVar4 = PTR_s_Statement_is_not_prepared_0014de80; } else { if (param_2 < *(uint *)(param_1 + 100)) { if ((param_4 == 0) && (*(char *)(lVar1 + 0x66 + (ulong)param_2 * 0x70) != '\0')) { uVar5 = 0; } else { __ptr = (int1 *)calloc(1,param_4 + 6); uVar2 = *(int8 *)(param_1 + 0x40); *__ptr = (char)uVar2; __ptr[1] = (char)((ulong)uVar2 >> 8); __ptr[2] = (char)((ulong)uVar2 >> 0x10); __ptr[3] = (char)((ulong)uVar2 >> 0x18); __ptr[4] = (char)param_2; __ptr[5] = (char)(param_2 >> 8); memcpy(__ptr + 6,param_3,param_4); *(int1 *)(lVar1 + 0x66 + (ulong)param_2 * 0x70) = 1; uVar3 = (**(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x10)) (*(long *)(param_1 + 0x38),0x18,__ptr,param_4 + 6,1,param_1); uVar5 = (ulong)uVar3; if (uVar3 != 0) { *(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90); strncpy(pcVar4,(char *)(*(long *)(param_1 + 0x38) + 0x297),5); *(int1 *)(param_1 + 0x312) = 0; strncpy((char *)(param_1 + 0x10c),(char *)(*(long *)(param_1 + 0x38) + 0x97),0x200); *(int1 *)(param_1 + 0x30b) = 0; } free(__ptr); } goto LAB_00124f1f; } *(int4 *)(param_1 + 0x108) = 0x7f2; strncpy(pcVar4,SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; pcVar4 = PTR_s_Invalid_parameter_number_0014dea0; } strncpy((char *)(param_1 + 0x10c),pcVar4,0x200); *(int1 *)(param_1 + 0x30b) = 0; uVar5 = CONCAT71((int7)(param_4 >> 8),1); LAB_00124f1f: return uVar5 & 0xffffffff; }
59,701
my_uni_utf16
eloqsql/strings/ctype-ucs2.c
int my_uni_utf16(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { if (wc <= 0xFFFF) { if (s + 2 > e) return MY_CS_TOOSMALL2; if (MY_UTF16_SURROGATE(wc)) return MY_CS_ILUNI; *s++= (uchar) (wc >> 8); *s= (uchar) (wc & 0xFF); return 2; } if (wc <= 0x10FFFF) { if (s + 4 > e) return MY_CS_TOOSMALL4; *s++= (uchar) ((wc-= 0x10000) >> 18) | 0xD8; *s++= (uchar) (wc >> 10) & 0xFF; *s++= (uchar) ((wc >> 8) & 3) | 0xDC; *s= (uchar) wc & 0xFF; return 4; } return MY_CS_ILUNI; }
O3
c
my_uni_utf16: pushq %rbp movq %rsp, %rbp pushq %rbx movq %rsi, %rbx cmpq $0xffff, %rsi # imm = 0xFFFF ja 0x7e057 leaq 0x2(%rdx), %rsi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rsi ja 0x7e09f movl %ebx, %eax andl $0xf800, %eax # imm = 0xF800 cmpl $0xd800, %eax # imm = 0xD800 je 0x7e09d movb %bh, (%rdx) incq %rdx movl $0x2, %eax jmp 0x7e099 cmpq $0x10ffff, %rbx # imm = 0x10FFFF ja 0x7e09d leaq 0x4(%rdx), %rsi movl $0xffffff98, %eax # imm = 0xFFFFFF98 cmpq %rcx, %rsi ja 0x7e09f leal -0x10000(%rbx), %eax movl %eax, %ecx shrl $0x12, %ecx orb $-0x28, %cl movb %cl, (%rdx) shrl $0xa, %eax movb %al, 0x1(%rdx) movl %ebx, %eax shrl $0x8, %eax andb $0x3, %al orb $-0x24, %al movb %al, 0x2(%rdx) addq $0x3, %rdx movl $0x4, %eax movb %bl, (%rdx) jmp 0x7e09f xorl %eax, %eax popq %rbx popq %rbp retq
my_uni_utf16: push rbp mov rbp, rsp push rbx mov rbx, rsi cmp rsi, 0FFFFh ja short loc_7E057 lea rsi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rsi, rcx ja short loc_7E09F mov eax, ebx and eax, 0F800h cmp eax, 0D800h jz short loc_7E09D mov [rdx], bh inc rdx mov eax, 2 jmp short loc_7E099 loc_7E057: cmp rbx, offset unk_10FFFF ja short loc_7E09D lea rsi, [rdx+4] mov eax, 0FFFFFF98h cmp rsi, rcx ja short loc_7E09F lea eax, [rbx-10000h] mov ecx, eax shr ecx, 12h or cl, 0D8h mov [rdx], cl shr eax, 0Ah mov [rdx+1], al mov eax, ebx shr eax, 8 and al, 3 or al, 0DCh mov [rdx+2], al add rdx, 3 mov eax, 4 loc_7E099: mov [rdx], bl jmp short loc_7E09F loc_7E09D: xor eax, eax loc_7E09F: pop rbx pop rbp retn
long long my_uni_utf16(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax _BYTE *v5; // rdx if ( a2 > 0xFFFF ) { if ( a2 <= (unsigned long long)&unk_10FFFF ) { result = 4294967192LL; if ( (unsigned long long)(a3 + 4) > a4 ) return result; *a3 = ((unsigned int)(a2 - 0x10000) >> 18) | 0xD8; a3[1] = (unsigned int)(a2 - 0x10000) >> 10; a3[2] = BYTE1(a2) & 3 | 0xDC; v5 = a3 + 3; result = 4LL; goto LABEL_8; } } else { result = 4294967194LL; if ( (unsigned long long)(a3 + 2) > a4 ) return result; if ( (a2 & 0xF800) != 0xD800 ) { *a3 = BYTE1(a2); v5 = a3 + 1; result = 2LL; LABEL_8: *v5 = a2; return result; } } return 0LL; }
my_uni_utf16: PUSH RBP MOV RBP,RSP PUSH RBX MOV RBX,RSI CMP RSI,0xffff JA 0x0017e057 LEA RSI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RSI,RCX JA 0x0017e09f MOV EAX,EBX AND EAX,0xf800 CMP EAX,0xd800 JZ 0x0017e09d MOV byte ptr [RDX],BH INC RDX MOV EAX,0x2 JMP 0x0017e099 LAB_0017e057: CMP RBX,0x10ffff JA 0x0017e09d LEA RSI,[RDX + 0x4] MOV EAX,0xffffff98 CMP RSI,RCX JA 0x0017e09f LEA EAX,[RBX + -0x10000] MOV ECX,EAX SHR ECX,0x12 OR CL,0xd8 MOV byte ptr [RDX],CL SHR EAX,0xa MOV byte ptr [RDX + 0x1],AL MOV EAX,EBX SHR EAX,0x8 AND AL,0x3 OR AL,0xdc MOV byte ptr [RDX + 0x2],AL ADD RDX,0x3 MOV EAX,0x4 LAB_0017e099: MOV byte ptr [RDX],BL JMP 0x0017e09f LAB_0017e09d: XOR EAX,EAX LAB_0017e09f: POP RBX POP RBP RET
int8 my_uni_utf16(int8 param_1,ulong param_2,byte *param_3,byte *param_4) { uint uVar1; int8 uVar2; byte bVar3; bVar3 = (byte)(param_2 >> 8); if (param_2 < 0x10000) { if (param_4 < param_3 + 2) { return 0xffffff9a; } if (((uint)param_2 & 0xf800) == 0xd800) { return 0; } *param_3 = bVar3; param_3 = param_3 + 1; uVar2 = 2; } else { if (0x10ffff < param_2) { return 0; } if (param_4 < param_3 + 4) { return 0xffffff98; } uVar1 = (uint)param_2 - 0x10000; *param_3 = (byte)(uVar1 >> 0x12) | 0xd8; param_3[1] = (byte)(uVar1 >> 10); param_3[2] = bVar3 & 3 | 0xdc; param_3 = param_3 + 3; uVar2 = 4; } *param_3 = (byte)param_2; return uVar2; }
59,702
prepare_resize_simple_key_cache
eloqsql/mysys/mf_keycache.c
static int prepare_resize_simple_key_cache(SIMPLE_KEY_CACHE_CB *keycache, my_bool release_lock) { int res= 0; DBUG_ENTER("prepare_resize_simple_key_cache"); keycache_pthread_mutex_lock(&keycache->cache_lock); /* We may need to wait for another thread which is doing a resize already. This cannot happen in the MySQL server though. It allows one resizer only. In set_var.cc keycache->in_init is used to block multiple attempts. */ while (keycache->in_resize) { /* purecov: begin inspected */ wait_on_queue(&keycache->resize_queue, &keycache->cache_lock); /* purecov: end */ } /* Mark the operation in progress. This blocks other threads from doing a resize in parallel. It prohibits new blocks to enter the cache. Read/write requests can bypass the cache during the flush phase. */ keycache->in_resize= 1; /* Need to flush only if keycache is enabled. */ if (keycache->can_be_used && keycache->disk_blocks != -1) { /* Start the flush phase. */ keycache->resize_in_flush= 1; if (flush_all_key_blocks(keycache)) { /* TODO: if this happens, we should write a warning in the log file ! */ keycache->resize_in_flush= 0; keycache->can_be_used= 0; res= 1; goto finish; } DBUG_SLOW_ASSERT(cache_empty(keycache)); /* End the flush phase. */ keycache->resize_in_flush= 0; } /* Some direct read/write operations (bypassing the cache) may still be unfinished. Wait until they are done. If the key cache can be used, direct I/O is done in increments of key_cache_block_size. That is, every block is checked if it is in the cache. We need to wait for pending I/O before re-initializing the cache, because we may change the block size. Otherwise they could check for blocks at file positions where the new block division has none. We do also want to wait for I/O done when (if) the cache was disabled. It must not run in parallel with normal cache operation. */ while (keycache->cnt_for_resize_op) wait_on_queue(&keycache->waiting_for_resize_cnt, &keycache->cache_lock); end_simple_key_cache(keycache, 0); finish: if (release_lock) keycache_pthread_mutex_unlock(&keycache->cache_lock); DBUG_RETURN(res); }
O3
c
prepare_resize_simple_key_cache: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %esi, %r15d movq %rdi, %r14 leaq 0xc0(%rdi), %rbx cmpq $0x0, 0x100(%rdi) jne 0x99c23 movq %rbx, %rdi callq 0x29200 cmpb $0x0, 0x1(%r14) je 0x99abe leaq 0x108(%r14), %r12 movq %r12, %rdi movq %rbx, %rsi callq 0x974f0 cmpb $0x0, 0x1(%r14) jne 0x99aac movb $0x1, 0x1(%r14) cmpb $0x0, 0x3(%r14) je 0x99bb8 cmpl $-0x1, 0x48(%r14) je 0x99bb8 movl %r15d, -0x2c(%rbp) movb $0x1, 0x2(%r14) movl 0x3c(%r14), %ecx movq %rcx, -0x38(%rbp) testq %rcx, %rcx je 0x99b3f xorl %r13d, %r13d xorl %r15d, %r15d movq 0x128(%r14), %rax movq (%rax,%r13,8), %rax testq %rax, %rax je 0x99b25 incl %r15d movq 0x20(%rax), %rax movl 0x18(%rax), %esi movq %r14, %rdi movl $0x3, %edx callq 0x99c9a testl %eax, %eax je 0x99af5 jmp 0x99be7 incq %r13 movq -0x38(%rbp), %rcx cmpq %rcx, %r13 jne 0x99af5 xorl %r13d, %r13d testl %r15d, %r15d movl $0x0, %r15d jne 0x99af5 xorl %eax, %eax testq %rcx, %rcx je 0x99baf xorl %r13d, %r13d xorl %ecx, %ecx movl %eax, -0x3c(%rbp) movl %ecx, %r12d xorl %r15d, %r15d movq 0x130(%r14), %rax movq (%rax,%r13,8), %rax testq %rax, %rax je 0x99b81 movq 0x20(%rax), %rax movl 0x18(%rax), %esi movq %r14, %rdi movl $0x1, %edx callq 0x99c9a decl %r15d testl %eax, %eax je 0x99b54 jmp 0x99be7 incq %r13 movl -0x3c(%rbp), %edx movl %edx, %eax subl %r15d, %eax movl %r12d, %ecx subl %r15d, %ecx cmpq -0x38(%rbp), %r13 jne 0x99b4b movl %edx, %eax subl %r15d, %eax cmpl %r15d, %r12d movq -0x38(%rbp), %rcx jne 0x99b41 cmpl %r15d, %edx jne 0x99aea movb $0x0, 0x2(%r14) movl -0x2c(%rbp), %r15d cmpq $0x0, 0x70(%r14) je 0x99bd8 leaq 0x110(%r14), %r12 movq %r12, %rdi movq %rbx, %rsi callq 0x974f0 cmpq $0x0, 0x70(%r14) jne 0x99bc6 xorl %r12d, %r12d movq %r14, %rdi xorl %esi, %esi callq 0x99956 jmp 0x99bf8 movw $0x0, 0x2(%r14) movl $0x1, %r12d movl -0x2c(%rbp), %r15d testb %r15b, %r15b je 0x99c11 movq 0x100(%r14), %rdi testq %rdi, %rdi jne 0x99c3c movq %rbx, %rdi callq 0x291c0 movl %r12d, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x423e6(%rip), %rsi # 0xdc010 movq %rbx, %rdi movl $0x2a9, %edx # imm = 0x2A9 callq 0x2eb6f jmp 0x99a9e leaq 0x2ec3cd(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x99c09
prepare_resize_simple_key_cache: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15d, esi mov r14, rdi lea rbx, [rdi+0C0h] cmp qword ptr [rdi+100h], 0 jnz loc_99C23 mov rdi, rbx call _pthread_mutex_lock loc_99A9E: cmp byte ptr [r14+1], 0 jz short loc_99ABE lea r12, [r14+108h] loc_99AAC: mov rdi, r12 mov rsi, rbx call wait_on_queue cmp byte ptr [r14+1], 0 jnz short loc_99AAC loc_99ABE: mov byte ptr [r14+1], 1 cmp byte ptr [r14+3], 0 jz loc_99BB8 cmp dword ptr [r14+48h], 0FFFFFFFFh jz loc_99BB8 mov [rbp+var_2C], r15d mov byte ptr [r14+2], 1 mov ecx, [r14+3Ch] mov [rbp+var_38], rcx loc_99AEA: test rcx, rcx jz short loc_99B3F xor r13d, r13d xor r15d, r15d loc_99AF5: mov rax, [r14+128h] mov rax, [rax+r13*8] test rax, rax jz short loc_99B25 inc r15d mov rax, [rax+20h] mov esi, [rax+18h] mov rdi, r14 mov edx, 3 call flush_key_blocks_int test eax, eax jz short loc_99AF5 jmp loc_99BE7 loc_99B25: inc r13 mov rcx, [rbp+var_38] cmp r13, rcx jnz short loc_99AF5 xor r13d, r13d test r15d, r15d mov r15d, 0 jnz short loc_99AF5 loc_99B3F: xor eax, eax loc_99B41: test rcx, rcx jz short loc_99BAF xor r13d, r13d xor ecx, ecx loc_99B4B: mov [rbp+var_3C], eax mov r12d, ecx xor r15d, r15d loc_99B54: mov rax, [r14+130h] mov rax, [rax+r13*8] test rax, rax jz short loc_99B81 mov rax, [rax+20h] mov esi, [rax+18h] mov rdi, r14 mov edx, 1 call flush_key_blocks_int dec r15d test eax, eax jz short loc_99B54 jmp short loc_99BE7 loc_99B81: inc r13 mov edx, [rbp+var_3C] mov eax, edx sub eax, r15d mov ecx, r12d sub ecx, r15d cmp r13, [rbp+var_38] jnz short loc_99B4B mov eax, edx sub eax, r15d cmp r12d, r15d mov rcx, [rbp+var_38] jnz short loc_99B41 cmp edx, r15d jnz loc_99AEA loc_99BAF: mov byte ptr [r14+2], 0 mov r15d, [rbp+var_2C] loc_99BB8: cmp qword ptr [r14+70h], 0 jz short loc_99BD8 lea r12, [r14+110h] loc_99BC6: mov rdi, r12 mov rsi, rbx call wait_on_queue cmp qword ptr [r14+70h], 0 jnz short loc_99BC6 loc_99BD8: xor r12d, r12d mov rdi, r14 xor esi, esi call end_simple_key_cache jmp short loc_99BF8 loc_99BE7: mov word ptr [r14+2], 0 mov r12d, 1 mov r15d, [rbp+var_2C] loc_99BF8: test r15b, r15b jz short loc_99C11 mov rdi, [r14+100h] test rdi, rdi jnz short loc_99C3C loc_99C09: mov rdi, rbx call _pthread_mutex_unlock loc_99C11: mov eax, r12d add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_99C23: lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 2A9h call psi_mutex_lock jmp loc_99A9E loc_99C3C: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_99C09
long long prepare_resize_simple_key_cache(long long a1, char a2) { char v2; // r15 long long v3; // rbx long long v4; // rcx long long v5; // r13 int v6; // r15d long long v7; // rax bool v8; // zf int v9; // eax long long v10; // r13 int v11; // ecx int v12; // r12d int v13; // r15d long long v14; // rax unsigned int v15; // r12d int v17; // [rsp+4h] [rbp-3Ch] long long v18; // [rsp+8h] [rbp-38h] v2 = a2; v3 = a1 + 192; if ( *(_QWORD *)(a1 + 256) ) psi_mutex_lock(a1 + 192, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x2A9u); else pthread_mutex_lock(a1 + 192); while ( *(_BYTE *)(a1 + 1) ) wait_on_queue((long long *)(a1 + 264), v3); *(_BYTE *)(a1 + 1) = 1; if ( !*(_BYTE *)(a1 + 3) || *(_DWORD *)(a1 + 72) == -1 ) { LABEL_26: while ( *(_QWORD *)(a1 + 112) ) wait_on_queue((long long *)(a1 + 272), v3); v15 = 0; end_simple_key_cache(a1, 0); goto LABEL_30; } *(_BYTE *)(a1 + 2) = 1; v4 = *(unsigned int *)(a1 + 60); v18 = v4; LABEL_8: if ( !v4 ) { LABEL_15: v9 = 0; while ( v4 ) { v10 = 0LL; v11 = 0; do { v17 = v9; v12 = v11; v13 = 0; while ( 1 ) { v14 = *(_QWORD *)(*(_QWORD *)(a1 + 304) + 8 * v10); if ( !v14 ) break; --v13; if ( (unsigned int)flush_key_blocks_int(a1, *(unsigned int *)(*(_QWORD *)(v14 + 32) + 24LL), 1LL) ) goto LABEL_29; } ++v10; v9 = v17 - v13; v11 = v12 - v13; } while ( v10 != v18 ); v9 = v17 - v13; v4 = v18; if ( v12 == v13 ) { if ( v17 != v13 ) goto LABEL_8; break; } } *(_BYTE *)(a1 + 2) = 0; v2 = a2; goto LABEL_26; } v5 = 0LL; v6 = 0; do { while ( 1 ) { v7 = *(_QWORD *)(*(_QWORD *)(a1 + 296) + 8 * v5); if ( v7 ) break; ++v5; v4 = v18; if ( v5 == v18 ) { v5 = 0LL; v8 = v6 == 0; v6 = 0; if ( v8 ) goto LABEL_15; } } ++v6; } while ( !(unsigned int)flush_key_blocks_int(a1, *(unsigned int *)(*(_QWORD *)(v7 + 32) + 24LL), 3LL) ); LABEL_29: *(_WORD *)(a1 + 2) = 0; v15 = 1; v2 = a2; LABEL_30: if ( v2 ) { if ( *(_QWORD *)(a1 + 256) ) PSI_server[44](); pthread_mutex_unlock(v3); } return v15; }
prepare_resize_simple_key_cache: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15D,ESI MOV R14,RDI LEA RBX,[RDI + 0xc0] CMP qword ptr [RDI + 0x100],0x0 JNZ 0x00199c23 MOV RDI,RBX CALL 0x00129200 LAB_00199a9e: CMP byte ptr [R14 + 0x1],0x0 JZ 0x00199abe LEA R12,[R14 + 0x108] LAB_00199aac: MOV RDI,R12 MOV RSI,RBX CALL 0x001974f0 CMP byte ptr [R14 + 0x1],0x0 JNZ 0x00199aac LAB_00199abe: MOV byte ptr [R14 + 0x1],0x1 CMP byte ptr [R14 + 0x3],0x0 JZ 0x00199bb8 CMP dword ptr [R14 + 0x48],-0x1 JZ 0x00199bb8 MOV dword ptr [RBP + -0x2c],R15D MOV byte ptr [R14 + 0x2],0x1 MOV ECX,dword ptr [R14 + 0x3c] MOV qword ptr [RBP + -0x38],RCX LAB_00199aea: TEST RCX,RCX JZ 0x00199b3f XOR R13D,R13D XOR R15D,R15D LAB_00199af5: MOV RAX,qword ptr [R14 + 0x128] MOV RAX,qword ptr [RAX + R13*0x8] TEST RAX,RAX JZ 0x00199b25 INC R15D MOV RAX,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RAX + 0x18] MOV RDI,R14 MOV EDX,0x3 CALL 0x00199c9a TEST EAX,EAX JZ 0x00199af5 JMP 0x00199be7 LAB_00199b25: INC R13 MOV RCX,qword ptr [RBP + -0x38] CMP R13,RCX JNZ 0x00199af5 XOR R13D,R13D TEST R15D,R15D MOV R15D,0x0 JNZ 0x00199af5 LAB_00199b3f: XOR EAX,EAX LAB_00199b41: TEST RCX,RCX JZ 0x00199baf XOR R13D,R13D XOR ECX,ECX LAB_00199b4b: MOV dword ptr [RBP + -0x3c],EAX MOV R12D,ECX XOR R15D,R15D LAB_00199b54: MOV RAX,qword ptr [R14 + 0x130] MOV RAX,qword ptr [RAX + R13*0x8] TEST RAX,RAX JZ 0x00199b81 MOV RAX,qword ptr [RAX + 0x20] MOV ESI,dword ptr [RAX + 0x18] MOV RDI,R14 MOV EDX,0x1 CALL 0x00199c9a DEC R15D TEST EAX,EAX JZ 0x00199b54 JMP 0x00199be7 LAB_00199b81: INC R13 MOV EDX,dword ptr [RBP + -0x3c] MOV EAX,EDX SUB EAX,R15D MOV ECX,R12D SUB ECX,R15D CMP R13,qword ptr [RBP + -0x38] JNZ 0x00199b4b MOV EAX,EDX SUB EAX,R15D CMP R12D,R15D MOV RCX,qword ptr [RBP + -0x38] JNZ 0x00199b41 CMP EDX,R15D JNZ 0x00199aea LAB_00199baf: MOV byte ptr [R14 + 0x2],0x0 MOV R15D,dword ptr [RBP + -0x2c] LAB_00199bb8: CMP qword ptr [R14 + 0x70],0x0 JZ 0x00199bd8 LEA R12,[R14 + 0x110] LAB_00199bc6: MOV RDI,R12 MOV RSI,RBX CALL 0x001974f0 CMP qword ptr [R14 + 0x70],0x0 JNZ 0x00199bc6 LAB_00199bd8: XOR R12D,R12D MOV RDI,R14 XOR ESI,ESI CALL 0x00199956 JMP 0x00199bf8 LAB_00199be7: MOV word ptr [R14 + 0x2],0x0 MOV R12D,0x1 MOV R15D,dword ptr [RBP + -0x2c] LAB_00199bf8: TEST R15B,R15B JZ 0x00199c11 MOV RDI,qword ptr [R14 + 0x100] TEST RDI,RDI JNZ 0x00199c3c LAB_00199c09: MOV RDI,RBX CALL 0x001291c0 LAB_00199c11: MOV EAX,R12D ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00199c23: LEA RSI,[0x1dc010] MOV RDI,RBX MOV EDX,0x2a9 CALL 0x0012eb6f JMP 0x00199a9e LAB_00199c3c: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00199c09
int8 prepare_resize_simple_key_cache(long param_1,char param_2) { pthread_mutex_t *__mutex; long lVar1; int iVar2; int iVar3; int iVar4; ulong uVar5; int8 uVar6; ulong uVar7; int iVar8; int iVar9; bool bVar10; __mutex = (pthread_mutex_t *)(param_1 + 0xc0); if (*(long *)(param_1 + 0x100) == 0) { pthread_mutex_lock(__mutex); } else { psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",0x2a9); } if (*(char *)(param_1 + 1) != '\0') { do { wait_on_queue(param_1 + 0x108,__mutex); } while (*(char *)(param_1 + 1) != '\0'); } *(int1 *)(param_1 + 1) = 1; if ((*(char *)(param_1 + 3) != '\0') && (*(int *)(param_1 + 0x48) != -1)) { *(int1 *)(param_1 + 2) = 1; uVar5 = (ulong)*(uint *)(param_1 + 0x3c); do { if (uVar5 != 0) { uVar7 = 0; iVar8 = 0; do { do { while (lVar1 = *(long *)(*(long *)(param_1 + 0x128) + uVar7 * 8), lVar1 != 0) { iVar8 = iVar8 + 1; iVar2 = flush_key_blocks_int (param_1,*(int4 *)(*(long *)(lVar1 + 0x20) + 0x18),3); if (iVar2 != 0) goto LAB_00199be7; } uVar7 = uVar7 + 1; } while (uVar7 != uVar5); uVar7 = 0; bVar10 = iVar8 != 0; iVar8 = 0; } while (bVar10); } iVar8 = 0; do { if (uVar5 == 0) goto LAB_00199baf; uVar7 = 0; iVar2 = 0; do { iVar3 = iVar8; iVar4 = iVar2; iVar9 = 0; while (lVar1 = *(long *)(*(long *)(param_1 + 0x130) + uVar7 * 8), lVar1 != 0) { iVar8 = flush_key_blocks_int(param_1,*(int4 *)(*(long *)(lVar1 + 0x20) + 0x18),1); iVar9 = iVar9 + -1; if (iVar8 != 0) goto LAB_00199be7; } uVar7 = uVar7 + 1; iVar2 = iVar4 - iVar9; iVar8 = iVar3 - iVar9; } while (uVar7 != uVar5); iVar8 = iVar3 - iVar9; } while (iVar4 != iVar9); } while (iVar3 != iVar9); LAB_00199baf: *(int1 *)(param_1 + 2) = 0; } if (*(long *)(param_1 + 0x70) != 0) { do { wait_on_queue(param_1 + 0x110,__mutex); } while (*(long *)(param_1 + 0x70) != 0); } uVar6 = 0; end_simple_key_cache(param_1,0); LAB_00199bf8: if (param_2 != '\0') { if (*(long *)(param_1 + 0x100) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); } return uVar6; LAB_00199be7: *(int2 *)(param_1 + 2) = 0; uVar6 = 1; goto LAB_00199bf8; }
59,703
ma_tls_verify_server_cert
eloqsql/libmariadb/libmariadb/secure/openssl.c
int ma_tls_verify_server_cert(MARIADB_TLS *ctls) { X509 *cert; MYSQL *mysql; SSL *ssl; MARIADB_PVIO *pvio; #if !defined(HAVE_OPENSSL_CHECK_HOST) X509_NAME *x509sn; int cn_pos; X509_NAME_ENTRY *cn_entry; ASN1_STRING *cn_asn1; const char *cn_str; #endif if (!ctls || !ctls->ssl) return 1; ssl= (SSL *)ctls->ssl; mysql= (MYSQL *)SSL_get_app_data(ssl); pvio= mysql->net.pvio; if (!mysql->host) { pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, ER(CR_SSL_CONNECTION_ERROR), "Invalid (empty) hostname"); return 1; } if (!(cert= SSL_get_peer_certificate(ssl))) { pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, ER(CR_SSL_CONNECTION_ERROR), "Unable to get server certificate"); return 1; } #ifdef HAVE_OPENSSL_CHECK_HOST if (X509_check_host(cert, mysql->host, 0, 0, 0) != 1 && X509_check_ip_asc(cert, mysql->host, 0) != 1) goto error; #else x509sn= X509_get_subject_name(cert); if ((cn_pos= X509_NAME_get_index_by_NID(x509sn, NID_commonName, -1)) < 0) goto error; if (!(cn_entry= X509_NAME_get_entry(x509sn, cn_pos))) goto error; if (!(cn_asn1 = X509_NAME_ENTRY_get_data(cn_entry))) goto error; cn_str = (char *)ASN1_STRING_data(cn_asn1); /* Make sure there is no embedded \0 in the CN */ if ((size_t)ASN1_STRING_length(cn_asn1) != strlen(cn_str)) goto error; if (strcmp(cn_str, mysql->host)) goto error; #endif X509_free(cert); return 0; error: X509_free(cert); pvio->set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN, ER(CR_SSL_CONNECTION_ERROR), "Validation of SSL server certificate failed"); return 1; }
O3
c
ma_tls_verify_server_cert: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl $0x1, %r14d testq %rdi, %rdi je 0x2b3ac movq 0x10(%rdi), %r15 testq %r15, %r15 je 0x2b3ac movq %r15, %rdi xorl %esi, %esi callq 0x13160 movq %rax, %rbx movq (%rax), %r12 cmpq $0x0, 0x2b0(%rax) je 0x2b32e movq %r15, %rdi callq 0x137e0 testq %rax, %rax je 0x2b34f movq %rax, %r15 movq 0x2b0(%rbx), %rsi xorl %r14d, %r14d movq %rax, %rdi xorl %edx, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x13860 cmpl $0x1, %eax je 0x2b324 movq 0x2b0(%rbx), %rsi movq %r15, %rdi xorl %edx, %edx callq 0x13340 cmpl $0x1, %eax jne 0x2b370 movq %r15, %rdi callq 0x13240 jmp 0x2b3ac leaq 0x2095b(%rip), %rax # 0x4bc90 movq (%rax), %rdx leaq 0x20961(%rip), %rax # 0x4bca0 movq 0xd0(%rax), %rcx leaq 0xe6c9(%rip), %r8 # 0x39a16 jmp 0x2b397 leaq 0x2093a(%rip), %rax # 0x4bc90 movq (%rax), %rdx leaq 0x20940(%rip), %rax # 0x4bca0 movq 0xd0(%rax), %rcx leaq 0xe6c1(%rip), %r8 # 0x39a2f jmp 0x2b397 movq %r15, %rdi callq 0x13240 leaq 0x20911(%rip), %rax # 0x4bc90 movq (%rax), %rdx leaq 0x20917(%rip), %rax # 0x4bca0 movq 0xd0(%rax), %rcx leaq 0xe6b9(%rip), %r8 # 0x39a50 movq %rbx, %rdi movl $0x7ea, %esi # imm = 0x7EA xorl %eax, %eax callq *0x50(%r12) movl $0x1, %r14d movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
ma_tls_verify_server_cert: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14d, 1 test rdi, rdi jz loc_2B3AC mov r15, [rdi+10h] test r15, r15 jz loc_2B3AC mov rdi, r15 xor esi, esi call _SSL_get_ex_data mov rbx, rax mov r12, [rax] cmp qword ptr [rax+2B0h], 0 jz short loc_2B32E mov rdi, r15 call _SSL_get1_peer_certificate test rax, rax jz short loc_2B34F mov r15, rax mov rsi, [rbx+2B0h] xor r14d, r14d mov rdi, rax xor edx, edx xor ecx, ecx xor r8d, r8d call _X509_check_host cmp eax, 1 jz short loc_2B324 mov rsi, [rbx+2B0h] mov rdi, r15 xor edx, edx call _X509_check_ip_asc cmp eax, 1 jnz short loc_2B370 loc_2B324: mov rdi, r15 call _X509_free jmp short loc_2B3AC loc_2B32E: lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea rax, client_errors mov rcx, [rax+0D0h] lea r8, aInvalidEmptyHo; "Invalid (empty) hostname" jmp short loc_2B397 loc_2B34F: lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea rax, client_errors mov rcx, [rax+0D0h] lea r8, aUnableToGetSer; "Unable to get server certificate" jmp short loc_2B397 loc_2B370: mov rdi, r15 call _X509_free lea rax, SQLSTATE_UNKNOWN mov rdx, [rax] lea rax, client_errors mov rcx, [rax+0D0h] lea r8, aValidationOfSs; "Validation of SSL server certificate fa"... loc_2B397: mov rdi, rbx mov esi, 7EAh xor eax, eax call qword ptr [r12+50h] mov r14d, 1 loc_2B3AC: mov eax, r14d pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long ma_tls_verify_server_cert(long long a1) { unsigned int v1; // r14d long long v2; // r15 long long *v3; // rbx long long v4; // r12 long long v5; // rax long long v6; // r15 char *v7; // rdx char *v8; // rcx const char *v9; // r8 v1 = 1; if ( a1 ) { v2 = *(_QWORD *)(a1 + 16); if ( v2 ) { v3 = (long long *)SSL_get_ex_data(*(_QWORD *)(a1 + 16), 0LL); v4 = *v3; if ( v3[86] ) { v5 = SSL_get1_peer_certificate(v2); if ( v5 ) { v6 = v5; v1 = 0; if ( (unsigned int)X509_check_host(v5, v3[86], 0LL, 0LL, 0LL) == 1 || (unsigned int)X509_check_ip_asc(v6, v3[86], 0LL) == 1 ) { X509_free(v6); return v1; } X509_free(v6); v7 = SQLSTATE_UNKNOWN; v8 = client_errors[26]; v9 = "Validation of SSL server certificate failed"; } else { v7 = SQLSTATE_UNKNOWN; v8 = client_errors[26]; v9 = "Unable to get server certificate"; } } else { v7 = SQLSTATE_UNKNOWN; v8 = client_errors[26]; v9 = "Invalid (empty) hostname"; } (*(void ( **)(long long *, long long, char *, char *, const char *))(v4 + 80))(v3, 2026LL, v7, v8, v9); return 1; } } return v1; }
ma_tls_verify_server_cert: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14D,0x1 TEST RDI,RDI JZ 0x0012b3ac MOV R15,qword ptr [RDI + 0x10] TEST R15,R15 JZ 0x0012b3ac MOV RDI,R15 XOR ESI,ESI CALL 0x00113160 MOV RBX,RAX MOV R12,qword ptr [RAX] CMP qword ptr [RAX + 0x2b0],0x0 JZ 0x0012b32e MOV RDI,R15 CALL 0x001137e0 TEST RAX,RAX JZ 0x0012b34f MOV R15,RAX MOV RSI,qword ptr [RBX + 0x2b0] XOR R14D,R14D MOV RDI,RAX XOR EDX,EDX XOR ECX,ECX XOR R8D,R8D CALL 0x00113860 CMP EAX,0x1 JZ 0x0012b324 MOV RSI,qword ptr [RBX + 0x2b0] MOV RDI,R15 XOR EDX,EDX CALL 0x00113340 CMP EAX,0x1 JNZ 0x0012b370 LAB_0012b324: MOV RDI,R15 CALL 0x00113240 JMP 0x0012b3ac LAB_0012b32e: LEA RAX,[0x14bc90] MOV RDX,qword ptr [RAX] LEA RAX,[0x14bca0] MOV RCX,qword ptr [RAX + 0xd0] LEA R8,[0x139a16] JMP 0x0012b397 LAB_0012b34f: LEA RAX,[0x14bc90] MOV RDX,qword ptr [RAX] LEA RAX,[0x14bca0] MOV RCX,qword ptr [RAX + 0xd0] LEA R8,[0x139a2f] JMP 0x0012b397 LAB_0012b370: MOV RDI,R15 CALL 0x00113240 LEA RAX,[0x14bc90] MOV RDX,qword ptr [RAX] LEA RAX,[0x14bca0] MOV RCX,qword ptr [RAX + 0xd0] LEA R8,[0x139a50] LAB_0012b397: MOV RDI,RBX MOV ESI,0x7ea XOR EAX,EAX CALL qword ptr [R12 + 0x50] MOV R14D,0x1 LAB_0012b3ac: MOV EAX,R14D POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 ma_tls_verify_server_cert(long param_1) { SSL *ssl; long lVar1; int iVar2; long *plVar3; X509 *a; char *pcVar4; if (param_1 == 0) { return 1; } ssl = *(SSL **)(param_1 + 0x10); if (ssl != (SSL *)0x0) { plVar3 = (long *)SSL_get_ex_data(ssl,0); lVar1 = *plVar3; if (plVar3[0x56] == 0) { pcVar4 = "Invalid (empty) hostname"; } else { a = (X509 *)SSL_get1_peer_certificate(ssl); if (a == (X509 *)0x0) { pcVar4 = "Unable to get server certificate"; } else { iVar2 = X509_check_host(a,plVar3[0x56],0,0,0); if ((iVar2 == 1) || (iVar2 = X509_check_ip_asc(a,plVar3[0x56],0), iVar2 == 1)) { X509_free(a); return 0; } X509_free(a); pcVar4 = "Validation of SSL server certificate failed"; } } (**(code **)(lVar1 + 0x50)) (plVar3,0x7ea,SQLSTATE_UNKNOWN,PTR_s_TLS_SSL_error_____100s_0014bd70,pcVar4); return 1; } return 1; }
59,704
google::protobuf::TextFormat::Printer::Print(google::protobuf::Message const&, google::protobuf::TextFormat::Printer::TextGenerator*) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/text_format.cc
void TextFormat::Printer::Print(const Message& message, TextGenerator* generator) const { const Reflection* reflection = message.GetReflection(); if (!reflection) { // This message does not provide any way to describe its structure. // Parse it again in an UnknownFieldSet, and display this instead. UnknownFieldSet unknown_fields; { std::string serialized = message.SerializeAsString(); io::ArrayInputStream input(serialized.data(), serialized.size()); unknown_fields.ParseFromZeroCopyStream(&input); } PrintUnknownFields(unknown_fields, generator, kUnknownFieldRecursionLimit); return; } const Descriptor* descriptor = message.GetDescriptor(); auto itr = custom_message_printers_.find(descriptor); if (itr != custom_message_printers_.end()) { itr->second->Print(message, single_line_mode_, generator); return; } if (descriptor->full_name() == internal::kAnyFullTypeName && expand_any_ && PrintAny(message, generator)) { return; } std::vector<const FieldDescriptor*> fields; if (descriptor->options().map_entry()) { fields.push_back(descriptor->field(0)); fields.push_back(descriptor->field(1)); } else { reflection->ListFieldsOmitStripped(message, &fields); if (reflection->IsMessageStripped(message.GetDescriptor())) { generator->Print(kDoNotParse, std::strlen(kDoNotParse)); } } if (print_message_fields_in_index_order_) { std::sort(fields.begin(), fields.end(), FieldIndexSorter()); } for (const FieldDescriptor* field : fields) { PrintField(message, reflection, field, generator); } if (!hide_unknown_fields_) { PrintUnknownFields(reflection->GetUnknownFields(message), generator, kUnknownFieldRecursionLimit); } }
O0
cpp
google::protobuf::TextFormat::Printer::Print(google::protobuf::Message const&, google::protobuf::TextFormat::Printer::TextGenerator*) const: subq $0x168, %rsp # imm = 0x168 movq %rdi, 0x160(%rsp) movq %rsi, 0x158(%rsp) movq %rdx, 0x150(%rsp) movq 0x160(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x158(%rsp), %rdi callq 0x410a00 movq %rax, 0x148(%rsp) cmpq $0x0, 0x148(%rsp) jne 0x56ad20 leaq 0x130(%rsp), %rdi callq 0x3b8a80 movq 0x158(%rsp), %rsi leaq 0x110(%rsp), %rdi callq 0x3c91e0 jmp 0x56ac14 leaq 0x110(%rsp), %rdi movq %rdi, 0x50(%rsp) callq 0x1a4a00 movq 0x50(%rsp), %rdi movq %rax, 0x58(%rsp) callq 0x1a5f60 movq 0x58(%rsp), %rsi movl %eax, %edx leaq 0xe0(%rsp), %rdi movl $0xffffffff, %ecx # imm = 0xFFFFFFFF callq 0x3c49a0 jmp 0x56ac50 leaq 0x130(%rsp), %rdi leaq 0xe0(%rsp), %rsi callq 0x43ba20 jmp 0x56ac67 leaq 0xe0(%rsp), %rdi callq 0x3c6cb0 leaq 0x110(%rsp), %rdi callq 0x19b990 movq 0x60(%rsp), %rdi movq 0x150(%rsp), %rdx leaq 0x130(%rsp), %rsi movl $0xa, %ecx callq 0x56b0d0 jmp 0x56aca2 leaq 0x130(%rsp), %rdi callq 0x3b82b0 jmp 0x56b0b3 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x56ad0e movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) jmp 0x56ad01 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) leaq 0xe0(%rsp), %rdi callq 0x3c6cb0 leaq 0x110(%rsp), %rdi callq 0x19b990 leaq 0x130(%rsp), %rdi callq 0x3b82b0 jmp 0x56b0bb movq 0x158(%rsp), %rdi callq 0x411a00 movq 0x60(%rsp), %rdi movq %rax, 0xd8(%rsp) addq $0x50, %rdi leaq 0xd8(%rsp), %rsi callq 0x571900 movq 0x60(%rsp), %rdi movq %rax, 0xd0(%rsp) addq $0x50, %rdi callq 0x571950 movq %rax, 0xc8(%rsp) leaq 0xd0(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x18c9c0 testb $0x1, %al jne 0x56ad84 jmp 0x56adc9 leaq 0xd0(%rsp), %rdi callq 0x571980 movq %rax, %rdi addq $0x8, %rdi callq 0x5719a0 movq %rax, %rdi movq 0x60(%rsp), %rax movq 0x158(%rsp), %rsi movb 0x4(%rax), %dl movq 0x150(%rsp), %rcx movq (%rdi), %rax andb $0x1, %dl movzbl %dl, %edx callq *0x10(%rax) jmp 0x56b0b3 movq 0xd8(%rsp), %rdi callq 0x411a30 movq %rax, %rdi leaq 0x94e70(%rip), %rsi # 0x5ffc50 callq 0x194ff0 testb $0x1, %al jne 0x56adeb jmp 0x56ae1b movq 0x60(%rsp), %rax testb $0x1, 0xa(%rax) je 0x56ae1b movq 0x60(%rsp), %rdi movq 0x158(%rsp), %rsi movq 0x150(%rsp), %rdx callq 0x56bbd0 testb $0x1, %al jne 0x56ae16 jmp 0x56ae1b jmp 0x56b0b3 leaq 0xb0(%rsp), %rdi callq 0x416190 movq 0xd8(%rsp), %rdi callq 0x43abb0 movq %rax, 0x48(%rsp) jmp 0x56ae3c movq 0x48(%rsp), %rdi callq 0x43abc0 movb %al, 0x47(%rsp) jmp 0x56ae4c movb 0x47(%rsp), %al testb $0x1, %al jne 0x56ae59 jmp 0x56aefb movq 0xd8(%rsp), %rdi xorl %esi, %esi callq 0x40f680 movq %rax, 0x38(%rsp) jmp 0x56ae6f movq 0x38(%rsp), %rax movq %rax, 0xa8(%rsp) leaq 0xb0(%rsp), %rdi leaq 0xa8(%rsp), %rsi callq 0x456d10 jmp 0x56ae93 movq 0xd8(%rsp), %rdi movl $0x1, %esi callq 0x40f680 movq %rax, 0x30(%rsp) jmp 0x56aeac movq 0x30(%rsp), %rax movq %rax, 0xa0(%rsp) leaq 0xb0(%rsp), %rdi leaq 0xa0(%rsp), %rsi callq 0x456d10 jmp 0x56aed0 jmp 0x56af7d movq %rax, %rcx movl %edx, %eax movq %rcx, 0x108(%rsp) movl %eax, 0x104(%rsp) leaq 0xb0(%rsp), %rdi callq 0x416430 jmp 0x56b0bb movq 0x148(%rsp), %rdi movq 0x158(%rsp), %rsi leaq 0xb0(%rsp), %rdx callq 0x404ac0 jmp 0x56af1a movq 0x148(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x158(%rsp), %rdi callq 0x411a00 movq %rax, 0x28(%rsp) jmp 0x56af3b movq 0x28(%rsp), %rsi movq 0x20(%rsp), %rdi callq 0x5719b0 movb %al, 0x1f(%rsp) jmp 0x56af50 movb 0x1f(%rsp), %al testb $0x1, %al jne 0x56af5a jmp 0x56af7b movq 0x150(%rsp), %rdi movq (%rdi), %rax movq 0x28(%rax), %rax leaq 0x924a9(%rip), %rsi # 0x5fd419 movl $0x32, %edx callq *%rax jmp 0x56af79 jmp 0x56af7b jmp 0x56af7d movq 0x60(%rsp), %rax testb $0x1, 0x9(%rax) je 0x56afcd leaq 0xb0(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x413e10 movq 0x10(%rsp), %rdi movq %rax, 0x98(%rsp) callq 0x413e40 movq %rax, 0x90(%rsp) movq 0x98(%rsp), %rdi movq 0x90(%rsp), %rsi callq 0x56c240 jmp 0x56afcb jmp 0x56afcd leaq 0xb0(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x80(%rsp), %rdi callq 0x413e10 movq %rax, 0x78(%rsp) movq 0x80(%rsp), %rdi callq 0x413e40 movq %rax, 0x70(%rsp) leaq 0x78(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0x4161a0 testb $0x1, %al jne 0x56b016 jmp 0x56b05f leaq 0x78(%rsp), %rdi callq 0x4161e0 movq 0x60(%rsp), %rdi movq (%rax), %rax movq %rax, 0x68(%rsp) movq 0x158(%rsp), %rsi movq 0x148(%rsp), %rdx movq 0x68(%rsp), %rcx movq 0x150(%rsp), %r8 callq 0x56c280 jmp 0x56b051 jmp 0x56b053 leaq 0x78(%rsp), %rdi callq 0x416410 jmp 0x56b001 movq 0x60(%rsp), %rax testb $0x1, 0x8(%rax) jne 0x56b0a6 movq 0x148(%rsp), %rdi movq 0x158(%rsp), %rsi callq 0x400810 movq %rax, 0x8(%rsp) jmp 0x56b086 movq 0x8(%rsp), %rsi movq 0x60(%rsp), %rdi movq 0x150(%rsp), %rdx movl $0xa, %ecx callq 0x56b0d0 jmp 0x56b0a4 jmp 0x56b0a6 leaq 0xb0(%rsp), %rdi callq 0x416430 addq $0x168, %rsp # imm = 0x168 retq movq 0x108(%rsp), %rdi callq 0x198ce0 nopl (%rax,%rax)
_ZNK6google8protobuf10TextFormat7Printer5PrintERKNS0_7MessageEPNS2_13TextGeneratorE: sub rsp, 168h mov [rsp+168h+var_8], rdi mov [rsp+168h+var_10], rsi mov [rsp+168h+var_18], rdx mov rax, [rsp+168h+var_8] mov [rsp+168h+var_108], rax mov rdi, [rsp+168h+var_10]; this call _ZNK6google8protobuf7Message13GetReflectionEv; google::protobuf::Message::GetReflection(void) mov [rsp+168h+var_20], rax cmp [rsp+168h+var_20], 0 jnz loc_56AD20 lea rdi, [rsp+168h+var_38]; this call _ZN6google8protobuf15UnknownFieldSetC2Ev; google::protobuf::UnknownFieldSet::UnknownFieldSet(void) mov rsi, [rsp+168h+var_10] lea rdi, [rsp+168h+var_58] call _ZNK6google8protobuf11MessageLite17SerializeAsStringB5cxx11Ev; google::protobuf::MessageLite::SerializeAsString(void) jmp short $+2 loc_56AC14: lea rdi, [rsp+168h+var_58] mov [rsp+168h+var_118], rdi call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void) mov rdi, [rsp+168h+var_118] mov [rsp+168h+var_110], rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rsi, [rsp+168h+var_110]; void * mov edx, eax; int lea rdi, [rsp+168h+var_88]; this mov ecx, 0FFFFFFFFh; int call _ZN6google8protobuf2io16ArrayInputStreamC2EPKvii; google::protobuf::io::ArrayInputStream::ArrayInputStream(void const*,int,int) jmp short $+2 loc_56AC50: lea rdi, [rsp+168h+var_38]; this lea rsi, [rsp+168h+var_88]; google::protobuf::io::ZeroCopyInputStream * call _ZN6google8protobuf15UnknownFieldSet23ParseFromZeroCopyStreamEPNS0_2io19ZeroCopyInputStreamE; google::protobuf::UnknownFieldSet::ParseFromZeroCopyStream(google::protobuf::io::ZeroCopyInputStream *) jmp short $+2 loc_56AC67: lea rdi, [rsp+168h+var_88]; this call _ZN6google8protobuf2io16ArrayInputStreamD2Ev; google::protobuf::io::ArrayInputStream::~ArrayInputStream() lea rdi, [rsp+168h+var_58] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rsp+168h+var_108]; this mov rdx, [rsp+168h+var_18]; google::protobuf::TextFormat::Printer::TextGenerator * lea rsi, [rsp+168h+var_38]; google::protobuf::UnknownFieldSet * mov ecx, 0Ah; int call _ZNK6google8protobuf10TextFormat7Printer18PrintUnknownFieldsERKNS0_15UnknownFieldSetEPNS2_13TextGeneratorEi; google::protobuf::TextFormat::Printer::PrintUnknownFields(google::protobuf::UnknownFieldSet const&,google::protobuf::TextFormat::Printer::TextGenerator *,int) jmp short $+2 loc_56ACA2: lea rdi, [rsp+168h+var_38]; this call _ZN6google8protobuf15UnknownFieldSetD2Ev; google::protobuf::UnknownFieldSet::~UnknownFieldSet() jmp loc_56B0B3 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp short loc_56AD0E mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax jmp short loc_56AD01 mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax lea rdi, [rsp+arg_D8]; this call _ZN6google8protobuf2io16ArrayInputStreamD2Ev; google::protobuf::io::ArrayInputStream::~ArrayInputStream() loc_56AD01: lea rdi, [rsp+arg_108] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_56AD0E: lea rdi, [rsp+arg_128]; this call _ZN6google8protobuf15UnknownFieldSetD2Ev; google::protobuf::UnknownFieldSet::~UnknownFieldSet() jmp loc_56B0BB loc_56AD20: mov rdi, [rsp+168h+var_10]; this call _ZNK6google8protobuf7Message13GetDescriptorEv; google::protobuf::Message::GetDescriptor(void) mov rdi, [rsp+168h+var_108] mov [rsp+168h+var_90], rax add rdi, 50h ; 'P' lea rsi, [rsp+168h+var_90] call _ZNKSt3mapIPKN6google8protobuf10DescriptorESt10unique_ptrIKNS1_10TextFormat14MessagePrinterESt14default_deleteIS8_EESt4lessIS4_ESaISt4pairIKS4_SB_EEE4findERSF_; std::map<google::protobuf::Descriptor const*,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>::find(google::protobuf::Descriptor const* const&) mov rdi, [rsp+168h+var_108] mov [rsp+168h+var_98], rax add rdi, 50h ; 'P' call _ZNKSt3mapIPKN6google8protobuf10DescriptorESt10unique_ptrIKNS1_10TextFormat14MessagePrinterESt14default_deleteIS8_EESt4lessIS4_ESaISt4pairIKS4_SB_EEE3endEv; std::map<google::protobuf::Descriptor const*,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>::end(void) mov [rsp+168h+var_A0], rax lea rdi, [rsp+168h+var_98] lea rsi, [rsp+168h+var_A0] call __ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKPKN6google8protobuf10DescriptorESt10unique_ptrIKNS2_10TextFormat14MessagePrinterESt14default_deleteISA_EEEESH_; std::operator!=(std::_Rb_tree_const_iterator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>> const&,std::_Rb_tree_const_iterator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>> const&) test al, 1 jnz short loc_56AD84 jmp short loc_56ADC9 loc_56AD84: lea rdi, [rsp+168h+var_98] call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKPKN6google8protobuf10DescriptorESt10unique_ptrIKNS2_10TextFormat14MessagePrinterESt14default_deleteISA_EEEEptEv; std::_Rb_tree_const_iterator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>::operator->(void) mov rdi, rax add rdi, 8 call _ZNKSt10unique_ptrIKN6google8protobuf10TextFormat14MessagePrinterESt14default_deleteIS4_EEptEv; std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>::operator->(void) mov rdi, rax mov rax, [rsp+168h+var_108] mov rsi, [rsp+168h+var_10] mov dl, [rax+4] mov rcx, [rsp+168h+var_18] mov rax, [rdi] and dl, 1 movzx edx, dl call qword ptr [rax+10h] jmp loc_56B0B3 loc_56ADC9: mov rdi, [rsp+168h+var_90] call _ZNK6google8protobuf10Descriptor9full_nameB5cxx11Ev; google::protobuf::Descriptor::full_name(void) mov rdi, rax lea rsi, _ZN6google8protobuf8internal16kAnyFullTypeNameE; "google.protobuf.Any" call __ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, 1 jnz short loc_56ADEB jmp short loc_56AE1B loc_56ADEB: mov rax, [rsp+168h+var_108] test byte ptr [rax+0Ah], 1 jz short loc_56AE1B mov rdi, [rsp+168h+var_108]; this mov rsi, [rsp+168h+var_10]; google::protobuf::Message * mov rdx, [rsp+168h+var_18]; google::protobuf::TextFormat::Printer::TextGenerator * call _ZNK6google8protobuf10TextFormat7Printer8PrintAnyERKNS0_7MessageEPNS2_13TextGeneratorE; google::protobuf::TextFormat::Printer::PrintAny(google::protobuf::Message const&,google::protobuf::TextFormat::Printer::TextGenerator *) test al, 1 jnz short loc_56AE16 jmp short loc_56AE1B loc_56AE16: jmp loc_56B0B3 loc_56AE1B: lea rdi, [rsp+168h+var_B8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EEC2Ev; std::vector<google::protobuf::FieldDescriptor const*>::vector(void) mov rdi, [rsp+168h+var_90]; this call _ZNK6google8protobuf10Descriptor7optionsEv; google::protobuf::Descriptor::options(void) mov [rsp+168h+var_120], rax jmp short $+2 loc_56AE3C: mov rdi, [rsp+168h+var_120]; this call _ZNK6google8protobuf14MessageOptions9map_entryEv; google::protobuf::MessageOptions::map_entry(void) mov [rsp+168h+var_121], al jmp short $+2 loc_56AE4C: mov al, [rsp+168h+var_121] test al, 1 jnz short loc_56AE59 jmp loc_56AEFB loc_56AE59: mov rdi, [rsp+168h+var_90]; this xor esi, esi; int call _ZNK6google8protobuf10Descriptor5fieldEi; google::protobuf::Descriptor::field(int) mov [rsp+168h+var_130], rax jmp short $+2 loc_56AE6F: mov rax, [rsp+168h+var_130] mov [rsp+168h+var_C0], rax lea rdi, [rsp+168h+var_B8] lea rsi, [rsp+168h+var_C0] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE9push_backEOS4_; std::vector<google::protobuf::FieldDescriptor const*>::push_back(google::protobuf::FieldDescriptor const*&&) jmp short $+2 loc_56AE93: mov rdi, [rsp+168h+var_90]; this mov esi, 1; int call _ZNK6google8protobuf10Descriptor5fieldEi; google::protobuf::Descriptor::field(int) mov [rsp+168h+var_138], rax jmp short $+2 loc_56AEAC: mov rax, [rsp+168h+var_138] mov [rsp+168h+var_C8], rax lea rdi, [rsp+168h+var_B8] lea rsi, [rsp+168h+var_C8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE9push_backEOS4_; std::vector<google::protobuf::FieldDescriptor const*>::push_back(google::protobuf::FieldDescriptor const*&&) jmp short $+2 loc_56AED0: jmp loc_56AF7D mov rcx, rax mov eax, edx mov [rsp+arg_100], rcx mov [rsp+arg_FC], eax lea rdi, [rsp+arg_A8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EED2Ev; std::vector<google::protobuf::FieldDescriptor const*>::~vector() jmp loc_56B0BB loc_56AEFB: mov rdi, [rsp+168h+var_20] mov rsi, [rsp+168h+var_10] lea rdx, [rsp+168h+var_B8] call _ZNK6google8protobuf10Reflection22ListFieldsOmitStrippedERKNS0_7MessageEPSt6vectorIPKNS0_15FieldDescriptorESaIS8_EE; google::protobuf::Reflection::ListFieldsOmitStripped(google::protobuf::Message const&,std::vector<google::protobuf::FieldDescriptor const*> *) jmp short $+2 loc_56AF1A: mov rax, [rsp+168h+var_20] mov [rsp+168h+var_148], rax mov rdi, [rsp+168h+var_10]; this call _ZNK6google8protobuf7Message13GetDescriptorEv; google::protobuf::Message::GetDescriptor(void) mov [rsp+168h+var_140], rax jmp short $+2 loc_56AF3B: mov rsi, [rsp+168h+var_140]; google::protobuf::Descriptor * mov rdi, [rsp+168h+var_148]; this call _ZNK6google8protobuf10Reflection17IsMessageStrippedEPKNS0_10DescriptorE; google::protobuf::Reflection::IsMessageStripped(google::protobuf::Descriptor const*) mov [rsp+168h+var_149], al jmp short $+2 loc_56AF50: mov al, [rsp+168h+var_149] test al, 1 jnz short loc_56AF5A jmp short loc_56AF7B loc_56AF5A: mov rdi, [rsp+168h+var_18] mov rax, [rdi] mov rax, [rax+28h] lea rsi, aDoNotParseFiel; "DO NOT PARSE: fields may be stripped an"... mov edx, 32h ; '2' call rax jmp short $+2 loc_56AF79: jmp short $+2 loc_56AF7B: jmp short $+2 loc_56AF7D: mov rax, [rsp+168h+var_108] test byte ptr [rax+9], 1 jz short loc_56AFCD lea rdi, [rsp+168h+var_B8] mov [rsp+168h+var_158], rdi call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE5beginEv; std::vector<google::protobuf::FieldDescriptor const*>::begin(void) mov rdi, [rsp+168h+var_158] mov [rsp+168h+var_D0], rax call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE3endEv; std::vector<google::protobuf::FieldDescriptor const*>::end(void) mov [rsp+168h+var_D8], rax mov rdi, [rsp+168h+var_D0] mov rsi, [rsp+168h+var_D8] call _ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf15FieldDescriptorESt6vectorIS6_SaIS6_EEEENS3_12_GLOBAL__N_116FieldIndexSorterEEvT_SE_T0_; std::sort<__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>,google::protobuf::`anonymous namespace'::FieldIndexSorter>(__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>,__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>,google::protobuf::`anonymous namespace'::FieldIndexSorter) jmp short $+2 loc_56AFCB: jmp short $+2 loc_56AFCD: lea rax, [rsp+168h+var_B8] mov [rsp+168h+var_E8], rax mov rdi, [rsp+168h+var_E8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE5beginEv; std::vector<google::protobuf::FieldDescriptor const*>::begin(void) mov [rsp+168h+var_F0], rax mov rdi, [rsp+168h+var_E8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EE3endEv; std::vector<google::protobuf::FieldDescriptor const*>::end(void) mov [rsp+168h+var_F8], rax loc_56B001: lea rdi, [rsp+168h+var_F0] lea rsi, [rsp+168h+var_F8] call _ZN9__gnu_cxxneIPPKN6google8protobuf15FieldDescriptorESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_; __gnu_cxx::operator!=<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>(__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>> const&,__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>> const&) test al, 1 jnz short loc_56B016 jmp short loc_56B05F loc_56B016: lea rdi, [rsp+168h+var_F0] call _ZNK9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf15FieldDescriptorESt6vectorIS5_SaIS5_EEEdeEv; __gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>::operator*(void) mov rdi, [rsp+168h+var_108]; this mov rax, [rax] mov [rsp+168h+var_100], rax mov rsi, [rsp+168h+var_10]; google::protobuf::Message * mov rdx, [rsp+168h+var_20]; google::protobuf::Reflection * mov rcx, [rsp+168h+var_100]; google::protobuf::FieldDescriptor * mov r8, [rsp+168h+var_18]; google::protobuf::TextFormat::Printer::TextGenerator * call _ZNK6google8protobuf10TextFormat7Printer10PrintFieldERKNS0_7MessageEPKNS0_10ReflectionEPKNS0_15FieldDescriptorEPNS2_13TextGeneratorE; google::protobuf::TextFormat::Printer::PrintField(google::protobuf::Message const&,google::protobuf::Reflection const*,google::protobuf::FieldDescriptor const*,google::protobuf::TextFormat::Printer::TextGenerator *) jmp short $+2 loc_56B051: jmp short $+2 loc_56B053: lea rdi, [rsp+168h+var_F0] call _ZN9__gnu_cxx17__normal_iteratorIPPKN6google8protobuf15FieldDescriptorESt6vectorIS5_SaIS5_EEEppEv; __gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>::operator++(void) jmp short loc_56B001 loc_56B05F: mov rax, [rsp+168h+var_108] test byte ptr [rax+8], 1 jnz short loc_56B0A6 mov rdi, [rsp+168h+var_20]; this mov rsi, [rsp+168h+var_10]; google::protobuf::Message * call _ZNK6google8protobuf10Reflection16GetUnknownFieldsERKNS0_7MessageE; google::protobuf::Reflection::GetUnknownFields(google::protobuf::Message const&) mov [rsp+168h+var_160], rax jmp short $+2 loc_56B086: mov rsi, [rsp+168h+var_160]; google::protobuf::UnknownFieldSet * mov rdi, [rsp+168h+var_108]; this mov rdx, [rsp+168h+var_18]; google::protobuf::TextFormat::Printer::TextGenerator * mov ecx, 0Ah; int call _ZNK6google8protobuf10TextFormat7Printer18PrintUnknownFieldsERKNS0_15UnknownFieldSetEPNS2_13TextGeneratorEi; google::protobuf::TextFormat::Printer::PrintUnknownFields(google::protobuf::UnknownFieldSet const&,google::protobuf::TextFormat::Printer::TextGenerator *,int) jmp short $+2 loc_56B0A4: jmp short $+2 loc_56B0A6: lea rdi, [rsp+168h+var_B8] call _ZNSt6vectorIPKN6google8protobuf15FieldDescriptorESaIS4_EED2Ev; std::vector<google::protobuf::FieldDescriptor const*>::~vector() loc_56B0B3: add rsp, 168h retn loc_56B0BB: mov rdi, [rsp+arg_100] call __Unwind_Resume
void google::protobuf::TextFormat::Printer::Print( google::protobuf::TextFormat::Printer *this, const google::protobuf::Message *a2, google::protobuf::TextFormat::Printer::TextGenerator *a3) { int v3; // eax long long v4; // rax long long v5; // rax long long v6; // rax const google::protobuf::FieldDescriptor **v7; // rax google::protobuf::UnknownFieldSet *UnknownFields; // [rsp+8h] [rbp-160h] google::protobuf::Reflection *v9; // [rsp+20h] [rbp-148h] google::protobuf::Descriptor *v10; // [rsp+28h] [rbp-140h] google::protobuf::MessageOptions *v11; // [rsp+48h] [rbp-120h] void *v12; // [rsp+58h] [rbp-110h] long long v13; // [rsp+70h] [rbp-F8h] BYREF _QWORD v14[3]; // [rsp+78h] [rbp-F0h] BYREF long long v15; // [rsp+90h] [rbp-D8h] long long v16; // [rsp+98h] [rbp-D0h] long long v17; // [rsp+A0h] [rbp-C8h] BYREF long long v18; // [rsp+A8h] [rbp-C0h] BYREF long long v19[3]; // [rsp+B0h] [rbp-B8h] BYREF long long v20; // [rsp+C8h] [rbp-A0h] BYREF long long v21; // [rsp+D0h] [rbp-98h] BYREF google::protobuf::Descriptor *Descriptor; // [rsp+D8h] [rbp-90h] BYREF _BYTE v23[48]; // [rsp+E0h] [rbp-88h] BYREF _BYTE v24[32]; // [rsp+110h] [rbp-58h] BYREF _BYTE v25[24]; // [rsp+130h] [rbp-38h] BYREF google::protobuf::Reflection *Reflection; // [rsp+148h] [rbp-20h] google::protobuf::TextFormat::Printer::TextGenerator *v27; // [rsp+150h] [rbp-18h] google::protobuf::Message *v28; // [rsp+158h] [rbp-10h] google::protobuf::TextFormat::Printer *v29; // [rsp+160h] [rbp-8h] v29 = this; v28 = a2; v27 = a3; Reflection = (google::protobuf::Reflection *)google::protobuf::Message::GetReflection(a2); if ( Reflection ) { Descriptor = (google::protobuf::Descriptor *)google::protobuf::Message::GetDescriptor(v28); v21 = std::map<google::protobuf::Descriptor const*,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>::find( (char *)this + 80, &Descriptor); v20 = std::map<google::protobuf::Descriptor const*,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>::end((char *)this + 80); if ( (std::operator!=(&v21, &v20) & 1) != 0 ) { v4 = std::_Rb_tree_const_iterator<std::pair<google::protobuf::Descriptor const* const,std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>>>::operator->(&v21); v5 = std::unique_ptr<google::protobuf::TextFormat::MessagePrinter const>::operator->(v4 + 8); (*(void ( **)(long long, google::protobuf::Message *, _QWORD, google::protobuf::TextFormat::Printer::TextGenerator *))(*(_QWORD *)v5 + 16LL))( v5, v28, *((_BYTE *)this + 4) & 1, v27); } else { v6 = google::protobuf::Descriptor::full_name[abi:cxx11]((long long)Descriptor); if ( (std::operator==<char>(v6, "google.protobuf.Any") & 1) == 0 || (*((_BYTE *)this + 10) & 1) == 0 || (google::protobuf::TextFormat::Printer::PrintAny(this, v28, v27) & 1) == 0 ) { std::vector<google::protobuf::FieldDescriptor const*>::vector((long long)v19); v11 = (google::protobuf::MessageOptions *)google::protobuf::Descriptor::options(Descriptor); if ( (google::protobuf::MessageOptions::map_entry(v11) & 1) != 0 ) { v18 = google::protobuf::Descriptor::field(Descriptor, 0); std::vector<google::protobuf::FieldDescriptor const*>::push_back((long long)v19, (long long)&v18); v17 = google::protobuf::Descriptor::field(Descriptor, 1); std::vector<google::protobuf::FieldDescriptor const*>::push_back((long long)v19, (long long)&v17); } else { google::protobuf::Reflection::ListFieldsOmitStripped((int *)Reflection, v28, (long long)v19); v9 = Reflection; v10 = (google::protobuf::Descriptor *)google::protobuf::Message::GetDescriptor(v28); if ( (google::protobuf::Reflection::IsMessageStripped(v9, v10) & 1) != 0 ) (*(void ( **)(google::protobuf::TextFormat::Printer::TextGenerator *, const char *, long long))(*(_QWORD *)v27 + 40LL))( v27, "DO NOT PARSE: fields may be stripped and missing.\n", 50LL); } if ( (*((_BYTE *)this + 9) & 1) != 0 ) { v16 = std::vector<google::protobuf::FieldDescriptor const*>::begin((long long)v19); v15 = std::vector<google::protobuf::FieldDescriptor const*>::end((long long)v19); std::sort<__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>,google::protobuf::`anonymous namespace'::FieldIndexSorter>( v16, v15); } v14[1] = v19; v14[0] = std::vector<google::protobuf::FieldDescriptor const*>::begin((long long)v19); v13 = std::vector<google::protobuf::FieldDescriptor const*>::end((long long)v19); while ( __gnu_cxx::operator!=<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>( (long long)v14, (long long)&v13) ) { v7 = (const google::protobuf::FieldDescriptor **)__gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>::operator*((long long)v14); google::protobuf::TextFormat::Printer::PrintField(this, v28, Reflection, *v7, v27); __gnu_cxx::__normal_iterator<google::protobuf::FieldDescriptor const**,std::vector<google::protobuf::FieldDescriptor const*>>::operator++(v14); } if ( (*((_BYTE *)this + 8) & 1) == 0 ) { UnknownFields = (google::protobuf::UnknownFieldSet *)google::protobuf::Reflection::GetUnknownFields( Reflection, v28); google::protobuf::TextFormat::Printer::PrintUnknownFields(this, UnknownFields, v27, 10); } std::vector<google::protobuf::FieldDescriptor const*>::~vector(v19); } } } else { google::protobuf::UnknownFieldSet::UnknownFieldSet((google::protobuf::UnknownFieldSet *)v25); google::protobuf::MessageLite::SerializeAsString[abi:cxx11]((long long)v24, (long long)v28); v12 = (void *)std::string::data(v24); v3 = std::string::size(v24); google::protobuf::io::ArrayInputStream::ArrayInputStream((google::protobuf::io::ArrayInputStream *)v23, v12, v3, -1); google::protobuf::UnknownFieldSet::ParseFromZeroCopyStream( (google::protobuf::UnknownFieldSet *)v25, (google::protobuf::io::ZeroCopyInputStream *)v23); google::protobuf::io::ArrayInputStream::~ArrayInputStream((google::protobuf::io::ArrayInputStream *)v23); std::string::~string(v24); google::protobuf::TextFormat::Printer::PrintUnknownFields( this, (const google::protobuf::UnknownFieldSet *)v25, v27, 10); google::protobuf::UnknownFieldSet::~UnknownFieldSet((google::protobuf::UnknownFieldSet *)v25); } }
SetRepeatedInt32: SUB RSP,0x128 MOV qword ptr [RSP + 0x120],RDI MOV dword ptr [RSP + 0x11c],ESI MOV dword ptr [RSP + 0x118],EDX MOV dword ptr [RSP + 0x114],ECX MOV RDI,qword ptr [RSP + 0x120] MOV ESI,dword ptr [RSP + 0x11c] CALL 0x00569c60 MOV qword ptr [RSP + 0x108],RAX MOV RAX,qword ptr [RSP + 0x108] MOV byte ptr [RSP + 0xcf],0x0 CMP RAX,0x0 JZ 0x0056abf8 JMP 0x0056ac69 LAB_0056abf8: LEA RDX,[0x6f6be8] LEA RDI,[RSP + 0xd0] MOV qword ptr [RSP + 0x28],RDI MOV ESI,0x3 MOV ECX,0x16f CALL 0x004ef0b0 MOV RDI,qword ptr [RSP + 0x28] MOV byte ptr [RSP + 0xcf],0x1 LAB_0056ac28: LEA RSI,[0x6f6f20] CALL 0x004ee970 MOV qword ptr [RSP + 0x30],RAX JMP 0x0056ac3b LAB_0056ac3b: MOV RDI,qword ptr [RSP + 0x30] LEA RSI,[0x6f6f45] CALL 0x004ee970 MOV qword ptr [RSP + 0x20],RAX JMP 0x0056ac53 LAB_0056ac53: MOV RSI,qword ptr [RSP + 0x20] LEA RDI,[RSP + 0xbb] CALL 0x004eeb20 LAB_0056ac65: JMP 0x0056ac67 LAB_0056ac67: JMP 0x0056ac69 LAB_0056ac69: TEST byte ptr [RSP + 0xcf],0x1 JNZ 0x0056ac75 JMP 0x0056ac82 LAB_0056ac75: LEA RDI,[RSP + 0xd0] CALL 0x004ef0f0 LAB_0056ac82: JMP 0x0056ac84 LAB_0056ac84: XOR EAX,EAX TEST AL,0x1 JNZ 0x0056ac8f JMP 0x0056ad82 LAB_0056ac8f: MOV RAX,qword ptr [RSP + 0x108] MOV DL,byte ptr [RAX + 0x9] MOV EAX,0x1 XOR ECX,ECX TEST DL,0x1 CMOVNZ EAX,ECX MOV byte ptr [RSP + 0x7f],0x0 CMP EAX,0x0 JNZ 0x0056acb3 JMP 0x0056ad06 LAB_0056acb3: LEA RDX,[0x6f6be8] LEA RDI,[RSP + 0x80] MOV qword ptr [RSP + 0x10],RDI MOV ESI,0x3 MOV ECX,0x16f CALL 0x004ef0b0 MOV RDI,qword ptr [RSP + 0x10] MOV byte ptr [RSP + 0x7f],0x1 LAB_0056ace0: LEA RSI,[0x6f6f6b] CALL 0x004ee970 MOV qword ptr [RSP + 0x18],RAX JMP 0x0056acf3 LAB_0056acf3: MOV RSI,qword ptr [RSP + 0x18] LEA RDI,[RSP + 0x7e] CALL 0x004eeb20 LAB_0056ad02: JMP 0x0056ad04 LAB_0056ad04: JMP 0x0056ad06 LAB_0056ad06: TEST byte ptr [RSP + 0x7f],0x1 JNZ 0x0056ad0f JMP 0x0056ad1c LAB_0056ad0f: LEA RDI,[RSP + 0x80] CALL 0x004ef0f0 LAB_0056ad1c: JMP 0x0056ac84 LAB_0056ad82: JMP 0x0056ad84 LAB_0056ad84: XOR EAX,EAX TEST AL,0x1 JNZ 0x0056ad8f JMP 0x0056ae3b LAB_0056ad8f: MOV RAX,qword ptr [RSP + 0x108] MOVZX EDI,byte ptr [RAX + 0x8] CALL 0x0056a020 MOV byte ptr [RSP + 0x3f],0x0 CMP EAX,0x1 JNZ 0x0056adac JMP 0x0056adfa LAB_0056adac: LEA RDX,[0x6f6be8] LEA RDI,[RSP + 0x40] MOV qword ptr [RSP],RDI MOV ESI,0x3 MOV ECX,0x16f CALL 0x004ef0b0 MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x3f],0x1 LAB_0056add4: LEA RSI,[0x6f6e80] CALL 0x004ee970 MOV qword ptr [RSP + 0x8],RAX JMP 0x0056ade7 LAB_0056ade7: MOV RSI,qword ptr [RSP + 0x8] LEA RDI,[RSP + 0x3e] CALL 0x004eeb20 LAB_0056adf6: JMP 0x0056adf8 LAB_0056adf8: JMP 0x0056adfa LAB_0056adfa: TEST byte ptr [RSP + 0x3f],0x1 JNZ 0x0056ae03 JMP 0x0056ae0d LAB_0056ae03: LEA RDI,[RSP + 0x40] CALL 0x004ef0f0 LAB_0056ae0d: JMP 0x0056ad84 LAB_0056ae3b: MOV RAX,qword ptr [RSP + 0x108] MOV RDI,qword ptr [RAX] MOV ESI,dword ptr [RSP + 0x118] LEA RDX,[RSP + 0x114] CALL 0x004d7350 ADD RSP,0x128 RET
/* WARNING: Removing unreachable block (ram,0x0056ac8f) */ /* WARNING: Removing unreachable block (ram,0x0056aca4) */ /* WARNING: Removing unreachable block (ram,0x0056aca7) */ /* WARNING: Removing unreachable block (ram,0x0056acb3) */ /* WARNING: Removing unreachable block (ram,0x0056acb1) */ /* WARNING: Removing unreachable block (ram,0x0056ad06) */ /* WARNING: Removing unreachable block (ram,0x0056ad0f) */ /* WARNING: Removing unreachable block (ram,0x0056ad0d) */ /* WARNING: Removing unreachable block (ram,0x0056ad1c) */ /* WARNING: Removing unreachable block (ram,0x0056ad8f) */ /* WARNING: Removing unreachable block (ram,0x0056adac) */ /* WARNING: Removing unreachable block (ram,0x0056adaa) */ /* WARNING: Removing unreachable block (ram,0x0056adfa) */ /* WARNING: Removing unreachable block (ram,0x0056ae03) */ /* WARNING: Removing unreachable block (ram,0x0056ae01) */ /* WARNING: Removing unreachable block (ram,0x0056ae0d) */ /* google::protobuf::internal::ExtensionSet::SetRepeatedInt32(int, int, int) */ void __thiscall google::protobuf::internal::ExtensionSet::SetRepeatedInt32 (ExtensionSet *this,int param_1,int param_2,int param_3) { LogMessage *pLVar1; LogFinisher local_6d [20]; byte local_59; LogMessage local_58 [56]; int8 *local_20; int local_14; int local_10; int local_c; ExtensionSet *local_8; local_14 = param_3; local_10 = param_2; local_c = param_1; local_8 = this; local_20 = (int8 *)FindOrNull(this,param_1); local_59 = 0; if (local_20 == (int8 *)0x0) { LogMessage::LogMessage (local_58,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/extension_set.cc" ); local_59 = 1; /* try { // try from 0056ac28 to 0056ac64 has its CatchHandler @ 0056ad21 */ pLVar1 = (LogMessage *)LogMessage::operator<<(local_58,"CHECK failed: extension != nullptr: "); pLVar1 = (LogMessage *)LogMessage::operator<<(pLVar1,"Index out-of-bounds (field is empty)."); LogFinisher::operator=(local_6d,pLVar1); } if ((local_59 & 1) != 0) { LogMessage::~LogMessage(local_58); } RepeatedField<int>::Set((RepeatedField<int> *)*local_20,local_10,&local_14); return; }
59,705
mthd_stmt_read_all_rows
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
int mthd_stmt_read_all_rows(MYSQL_STMT *stmt) { MYSQL_DATA *result= &stmt->result; MYSQL_ROWS *current, **pprevious; ulong packet_len; unsigned char *p; pprevious= &result->data; while ((packet_len = ma_net_safe_read(stmt->mysql)) != packet_error) { p= stmt->mysql->net.read_pos; if (packet_len > 7 || p[0] != 254) { /* allocate space for rows */ if (!(current= (MYSQL_ROWS *)ma_alloc_root(&result->alloc, sizeof(MYSQL_ROWS) + packet_len))) { SET_CLIENT_STMT_ERROR(stmt, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0); return(1); } current->data= (MYSQL_ROW)(current + 1); *pprevious= current; pprevious= &current->next; /* copy binary row, we will encode it during mysql_stmt_fetch */ memcpy((char *)current->data, (char *)p, packet_len); if (stmt->update_max_length) { uchar *null_ptr, bit_offset= 4; uchar *cp= p; unsigned int i; cp++; /* skip first byte */ null_ptr= cp; cp+= (stmt->field_count + 9) / 8; for (i=0; i < stmt->field_count; i++) { if (!(*null_ptr & bit_offset)) { if (mysql_ps_fetch_functions[stmt->fields[i].type].pack_len < 0) { /* We need to calculate the sizes for date and time types */ size_t len= net_field_length(&cp); switch(stmt->fields[i].type) { case MYSQL_TYPE_TIME: case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATETIME: case MYSQL_TYPE_TIMESTAMP: stmt->fields[i].max_length= mysql_ps_fetch_functions[stmt->fields[i].type].max_len; break; default: if (len > stmt->fields[i].max_length) stmt->fields[i].max_length= (ulong)len; break; } cp+= len; } else { if (stmt->fields[i].flags & ZEROFILL_FLAG) { /* The -1 is because a ZEROFILL:ed field is always unsigned */ size_t len= MAX(stmt->fields[i].length, mysql_ps_fetch_functions[stmt->fields[i].type].max_len-1); if (len > stmt->fields[i].max_length) stmt->fields[i].max_length= (unsigned long)len; } else if (!stmt->fields[i].max_length) { stmt->fields[i].max_length= mysql_ps_fetch_functions[stmt->fields[i].type].max_len; if (stmt->fields[i].flags & UNSIGNED_FLAG && stmt->fields[i].type != MYSQL_TYPE_INT24 && stmt->fields[i].type != MYSQL_TYPE_LONGLONG) { /* Unsigned integers has one character less than signed integers as '-' is counted as part of max_length */ stmt->fields[i].max_length--; } } cp+= mysql_ps_fetch_functions[stmt->fields[i].type].pack_len; } } if (!((bit_offset <<=1) & 255)) { bit_offset= 1; /* To next byte */ null_ptr++; } } } current->length= packet_len; result->rows++; } else /* end of stream */ { *pprevious= 0; /* sace status info */ p++; stmt->upsert_status.warning_count= stmt->mysql->warning_count= uint2korr(p); p+=2; stmt->upsert_status.server_status= stmt->mysql->server_status= uint2korr(p); stmt->result_cursor= result->data; return(0); } } stmt->result_cursor= 0; SET_CLIENT_STMT_ERROR(stmt, stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate, stmt->mysql->net.last_error); return(1); }
O3
c
mthd_stmt_read_all_rows: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x38(%rdi), %rdi callq 0x15e47 movq %rax, %r15 movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r15 je 0x1ef42 leaq 0x80(%rbx), %r14 leaq 0x90(%rbx), %rax movq %rax, -0x38(%rbp) movq 0x38(%rbx), %rax movq 0x20(%rax), %r13 cmpq $0x7, %r15 ja 0x1ed72 cmpb $-0x2, (%r13) je 0x1eff7 leaq 0x18(%r15), %rsi movq -0x38(%rbp), %rdi callq 0x1e67f testq %rax, %rax je 0x1ef91 movq %rax, %r12 addq $0x18, %rax movq %rax, 0x8(%r12) movq %r12, (%r14) movq 0x8(%r12), %rdi movq %r13, %rsi movq %r15, %rdx callq 0x13390 cmpb $0x0, 0x313(%rbx) je 0x1ef19 movq %r12, -0x40(%rbp) movq %r15, -0x48(%rbp) movl 0x60(%rbx), %eax leal 0x9(%rax), %ecx shrl $0x3, %ecx addq %r13, %rcx incq %rcx movq %rcx, -0x30(%rbp) testl %eax, %eax leaq 0x2d228(%rip), %rsi # 0x4c000 movl $0x1, %edi je 0x1ef11 incq %r13 movl $0x4, %r14d xorl %r15d, %r15d xorl %r12d, %r12d movzbl (%r13), %eax testl %eax, %r14d jne 0x1eecc movq 0x58(%rbx), %rax movl 0x70(%rax,%r15), %ecx leaq (%rcx,%rcx,2), %rcx cmpl $0x0, 0x8(%rsi,%rcx,8) js 0x1ee55 leaq (%rsi,%rcx,8), %rcx testb $0x40, 0x64(%rax,%r15) jne 0x1ee97 cmpq $0x0, 0x40(%rax,%r15) jne 0x1eeb6 movq 0x10(%rcx), %rcx movq %rcx, 0x40(%rax,%r15) movq 0x58(%rbx), %rax testb $0x20, 0x64(%rax,%r15) je 0x1eeb6 movl 0x70(%rax,%r15), %ecx andl $-0x2, %ecx cmpl $0x8, %ecx je 0x1eeb6 decq 0x40(%rax,%r15) jmp 0x1eeb6 leaq -0x30(%rbp), %rdi callq 0x16225 movq 0x58(%rbx), %rcx movl 0x70(%rcx,%r15), %edx cmpq $0xc, %rdx ja 0x1eef7 movl $0x1c80, %esi # imm = 0x1C80 btl %edx, %esi jae 0x1eef7 leaq (%rdx,%rdx,2), %rdx leaq 0x2d17a(%rip), %rsi # 0x4c000 movq 0x10(%rsi,%rdx,8), %rdx movq %rdx, 0x40(%rcx,%r15) movl $0x1, %edi jmp 0x1eec8 movq 0x38(%rax,%r15), %rdx movq 0x10(%rcx), %rcx decq %rcx cmpq %rcx, %rdx cmovaq %rdx, %rcx cmpq 0x40(%rax,%r15), %rcx jbe 0x1eeb6 movq %rcx, 0x40(%rax,%r15) movq 0x58(%rbx), %rax movl 0x70(%rax,%r15), %eax leaq (%rax,%rax,2), %rax movslq 0x8(%rsi,%rax,8), %rax addq %rax, -0x30(%rbp) movzbl %r14b, %eax leal (%rax,%rax), %r14d xorl %ecx, %ecx testb $0x7f, %al sete %cl cmovel %edi, %r14d addq %rcx, %r13 incq %r12 movl 0x60(%rbx), %eax subq $-0x80, %r15 cmpq %rax, %r12 jb 0x1edf2 jmp 0x1ef11 cmpq 0x40(%rcx,%r15), %rax leaq 0x2d0fd(%rip), %rsi # 0x4c000 movl $0x1, %edi jbe 0x1eec8 movq %rax, 0x40(%rcx,%r15) jmp 0x1eec8 movq -0x48(%rbp), %r15 movq -0x40(%rbp), %r12 movq %r15, 0x10(%r12) incq 0xc8(%rbx) movq 0x38(%rbx), %rdi callq 0x15e47 movq %rax, %r15 movq %r12, %r14 movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r15 jne 0x1ed59 movq $0x0, 0xe0(%rbx) movq 0x38(%rbx), %rsi movl 0x90(%rsi), %eax movl %eax, 0x108(%rbx) leaq 0x30d(%rbx), %rdi addq $0x297, %rsi # imm = 0x297 movl $0x5, %edx callq 0x13220 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi movl $0x97, %esi addq 0x38(%rbx), %rsi jmp 0x1efd2 movl $0x7d8, 0x108(%rbx) # imm = 0x7D8 leaq 0x30d(%rbx), %rdi leaq 0x2cb17(%rip), %rax # 0x4bac0 movq (%rax), %rsi movl $0x5, %edx callq 0x13220 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi leaq 0x2cb02(%rip), %rax # 0x4bad0 movq 0x40(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x13220 movb %r14b, 0x30b(%rbx) movl $0x1, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq $0x0, (%r14) movzwl 0x1(%r13), %eax movq 0x38(%rbx), %rcx movl %eax, 0x388(%rcx) movl %eax, 0xf0(%rbx) movzwl 0x3(%r13), %eax movq 0x38(%rbx), %rcx movl %eax, 0x380(%rcx) movl %eax, 0xf4(%rbx) movq 0x80(%rbx), %rax movq %rax, 0xe0(%rbx) xorl %eax, %eax jmp 0x1efe8
mthd_stmt_read_all_rows: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov rdi, [rdi+38h] call ma_net_safe_read mov r15, rax mov eax, 0FFFFFFFFh cmp r15, rax jz loc_1EF42 lea r14, [rbx+80h] lea rax, [rbx+90h] mov [rbp+var_38], rax loc_1ED59: mov rax, [rbx+38h] mov r13, [rax+20h] cmp r15, 7 ja short loc_1ED72 cmp byte ptr [r13+0], 0FEh jz loc_1EFF7 loc_1ED72: lea rsi, [r15+18h] mov rdi, [rbp+var_38] call ma_alloc_root test rax, rax jz loc_1EF91 mov r12, rax add rax, 18h mov [r12+8], rax mov [r14], r12 mov rdi, [r12+8] mov rsi, r13 mov rdx, r15 call _memcpy cmp byte ptr [rbx+313h], 0 jz loc_1EF19 mov [rbp+var_40], r12 mov [rbp+var_48], r15 mov eax, [rbx+60h] lea ecx, [rax+9] shr ecx, 3 add rcx, r13 inc rcx mov [rbp+var_30], rcx test eax, eax lea rsi, mysql_ps_fetch_functions mov edi, 1 jz loc_1EF11 inc r13 mov r14d, 4 xor r15d, r15d xor r12d, r12d loc_1EDF2: movzx eax, byte ptr [r13+0] test r14d, eax jnz loc_1EECC mov rax, [rbx+58h] mov ecx, [rax+r15+70h] lea rcx, [rcx+rcx*2] cmp dword ptr [rsi+rcx*8+8], 0 js short loc_1EE55 lea rcx, [rsi+rcx*8] test byte ptr [rax+r15+64h], 40h jnz short loc_1EE97 cmp qword ptr [rax+r15+40h], 0 jnz loc_1EEB6 mov rcx, [rcx+10h] mov [rax+r15+40h], rcx mov rax, [rbx+58h] test byte ptr [rax+r15+64h], 20h jz short loc_1EEB6 mov ecx, [rax+r15+70h] and ecx, 0FFFFFFFEh cmp ecx, 8 jz short loc_1EEB6 dec qword ptr [rax+r15+40h] jmp short loc_1EEB6 loc_1EE55: lea rdi, [rbp+var_30] call net_field_length mov rcx, [rbx+58h] mov edx, [rcx+r15+70h] cmp rdx, 0Ch ja loc_1EEF7 mov esi, 1C80h bt esi, edx jnb short loc_1EEF7 lea rdx, [rdx+rdx*2] lea rsi, mysql_ps_fetch_functions mov rdx, [rsi+rdx*8+10h] mov [rcx+r15+40h], rdx mov edi, 1 jmp short loc_1EEC8 loc_1EE97: mov rdx, [rax+r15+38h] mov rcx, [rcx+10h] dec rcx cmp rdx, rcx cmova rcx, rdx cmp rcx, [rax+r15+40h] jbe short loc_1EEB6 mov [rax+r15+40h], rcx loc_1EEB6: mov rax, [rbx+58h] mov eax, [rax+r15+70h] lea rax, [rax+rax*2] movsxd rax, dword ptr [rsi+rax*8+8] loc_1EEC8: add [rbp+var_30], rax loc_1EECC: movzx eax, r14b lea r14d, [rax+rax] xor ecx, ecx test al, 7Fh setz cl cmovz r14d, edi add r13, rcx inc r12 mov eax, [rbx+60h] sub r15, 0FFFFFFFFFFFFFF80h cmp r12, rax jb loc_1EDF2 jmp short loc_1EF11 loc_1EEF7: cmp rax, [rcx+r15+40h] lea rsi, mysql_ps_fetch_functions mov edi, 1 jbe short loc_1EEC8 mov [rcx+r15+40h], rax jmp short loc_1EEC8 loc_1EF11: mov r15, [rbp+var_48] mov r12, [rbp+var_40] loc_1EF19: mov [r12+10h], r15 inc qword ptr [rbx+0C8h] mov rdi, [rbx+38h] call ma_net_safe_read mov r15, rax mov r14, r12 mov eax, 0FFFFFFFFh cmp r15, rax jnz loc_1ED59 loc_1EF42: mov qword ptr [rbx+0E0h], 0 mov rsi, [rbx+38h] mov eax, [rsi+90h] mov [rbx+108h], eax lea rdi, [rbx+30Dh] add rsi, 297h mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] mov esi, 97h add rsi, [rbx+38h] jmp short loc_1EFD2 loc_1EF91: mov dword ptr [rbx+108h], 7D8h lea rdi, [rbx+30Dh] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] lea rax, client_errors mov rsi, [rax+40h] loc_1EFD2: mov edx, 200h call _strncpy mov [rbx+30Bh], r14b mov eax, 1 loc_1EFE8: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1EFF7: mov qword ptr [r14], 0 movzx eax, word ptr [r13+1] mov rcx, [rbx+38h] mov [rcx+388h], eax mov [rbx+0F0h], eax movzx eax, word ptr [r13+3] mov rcx, [rbx+38h] mov [rcx+380h], eax mov [rbx+0F4h], eax mov rax, [rbx+80h] mov [rbx+0E0h], rax xor eax, eax jmp short loc_1EFE8
long long mthd_stmt_read_all_rows(long long a1, long long a2, long long a3, long long a4, unsigned long long a5, int a6) { unsigned long long v7; // r15 char **v8; // r14 _BYTE *v9; // r13 char *v10; // rax char *v11; // r12 void *v12; // rsi unsigned long long v13; // rdx long long v14; // rcx unsigned long long v15; // r8 int v16; // r9d int v17; // eax _BYTE *v18; // r13 char v19; // r14 long long v20; // r15 unsigned long long v21; // r12 long long v22; // rax char *v23; // rcx long long v24; // rax unsigned long long v25; // rax long long v26; // rcx int v27; // esi unsigned long long v28; // rcx char v29; // al long long v30; // rsi long long v31; // rdi char *v32; // rsi int v34; // eax int v35; // eax unsigned long long v36; // [rsp+8h] [rbp-48h] char *v37; // [rsp+10h] [rbp-40h] unsigned __int8 *v38; // [rsp+20h] [rbp-30h] BYREF v7 = ma_net_safe_read(*(_QWORD *)(a1 + 56), a2, a3, a4, a5, a6); if ( v7 == 0xFFFFFFFF ) { LABEL_33: *(_QWORD *)(a1 + 224) = 0LL; v30 = *(_QWORD *)(a1 + 56); *(_DWORD *)(a1 + 264) = *(_DWORD *)(v30 + 144); strncpy(a1 + 781, v30 + 663, 5LL); *(_BYTE *)(a1 + 786) = 0; v31 = a1 + 268; v32 = (char *)(*(_QWORD *)(a1 + 56) + 151LL); LABEL_35: strncpy(v31, v32, 512LL); *(_BYTE *)(a1 + 779) = 0; return 1LL; } else { v8 = (char **)(a1 + 128); while ( 1 ) { v9 = *(_BYTE **)(*(_QWORD *)(a1 + 56) + 32LL); if ( v7 <= 7 && *v9 == 0xFE ) break; v10 = ma_alloc_root(a1 + 144, v7 + 24); if ( !v10 ) { *(_DWORD *)(a1 + 264) = 2008; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; v31 = a1 + 268; v32 = client_errors[8]; goto LABEL_35; } v11 = v10; *((_QWORD *)v10 + 1) = v10 + 24; *v8 = v10; v12 = v9; memcpy(*((_QWORD *)v10 + 1), v9, v7); if ( *(_BYTE *)(a1 + 787) ) { v37 = v11; v36 = v7; v17 = *(_DWORD *)(a1 + 96); v14 = (long long)&v9[((unsigned int)(v17 + 9) >> 3) + 1]; v38 = (unsigned __int8 *)v14; v12 = &mysql_ps_fetch_functions; if ( v17 ) { v18 = v9 + 1; v19 = 4; v20 = 0LL; v21 = 0LL; do { if ( (*v18 & (unsigned __int8)v19) == 0 ) { v22 = *(_QWORD *)(a1 + 88); if ( *((int *)&mysql_ps_fetch_functions + 6 * *(unsigned int *)(v22 + v20 + 112) + 2) < 0 ) { v25 = net_field_length(&v38); v26 = *(_QWORD *)(a1 + 88); v13 = *(unsigned int *)(v26 + v20 + 112); if ( v13 <= 0xC && (v27 = 7296, _bittest(&v27, v13)) ) { v12 = &mysql_ps_fetch_functions; v13 = *((_QWORD *)&mysql_ps_fetch_functions + 3 * v13 + 2); *(_QWORD *)(v26 + v20 + 64) = v13; } else { v12 = &mysql_ps_fetch_functions; if ( v25 > *(_QWORD *)(v26 + v20 + 64) ) *(_QWORD *)(v26 + v20 + 64) = v25; } } else { v23 = (char *)&mysql_ps_fetch_functions + 24 * *(unsigned int *)(v22 + v20 + 112); if ( (*(_BYTE *)(v22 + v20 + 100) & 0x40) != 0 ) { v13 = *(_QWORD *)(v22 + v20 + 56); v28 = *((_QWORD *)v23 + 2) - 1LL; if ( v13 > v28 ) v28 = *(_QWORD *)(v22 + v20 + 56); if ( v28 > *(_QWORD *)(v22 + v20 + 64) ) *(_QWORD *)(v22 + v20 + 64) = v28; } else if ( !*(_QWORD *)(v22 + v20 + 64) ) { *(_QWORD *)(v22 + v20 + 64) = *((_QWORD *)v23 + 2); v24 = *(_QWORD *)(a1 + 88); if ( (*(_BYTE *)(v24 + v20 + 100) & 0x20) != 0 && (*(_DWORD *)(v24 + v20 + 112) & 0xFFFFFFFE) != 8 ) --*(_QWORD *)(v24 + v20 + 64); } v25 = *((int *)&mysql_ps_fetch_functions + 6 * *(unsigned int *)(*(_QWORD *)(a1 + 88) + v20 + 112) + 2); } v38 += v25; } v29 = v19; v19 *= 2; v14 = (v29 & 0x7F) == 0; if ( (v29 & 0x7F) == 0 ) v19 = 1; v18 += v14; ++v21; v20 += 128LL; } while ( v21 < *(unsigned int *)(a1 + 96) ); } v7 = v36; v11 = v37; } *((_QWORD *)v11 + 2) = v7; ++*(_QWORD *)(a1 + 200); v7 = ma_net_safe_read(*(_QWORD *)(a1 + 56), (long long)v12, v13, v14, v15, v16); v8 = (char **)v11; if ( v7 == 0xFFFFFFFF ) goto LABEL_33; } *v8 = 0LL; v34 = *(unsigned __int16 *)(v9 + 1); *(_DWORD *)(*(_QWORD *)(a1 + 56) + 904LL) = v34; *(_DWORD *)(a1 + 240) = v34; v35 = *(unsigned __int16 *)(v9 + 3); *(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) = v35; *(_DWORD *)(a1 + 244) = v35; *(_QWORD *)(a1 + 224) = *(_QWORD *)(a1 + 128); return 0LL; } }
mthd_stmt_read_all_rows: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x38] CALL 0x00115e47 MOV R15,RAX MOV EAX,0xffffffff CMP R15,RAX JZ 0x0011ef42 LEA R14,[RBX + 0x80] LEA RAX,[RBX + 0x90] MOV qword ptr [RBP + -0x38],RAX LAB_0011ed59: MOV RAX,qword ptr [RBX + 0x38] MOV R13,qword ptr [RAX + 0x20] CMP R15,0x7 JA 0x0011ed72 CMP byte ptr [R13],0xfe JZ 0x0011eff7 LAB_0011ed72: LEA RSI,[R15 + 0x18] MOV RDI,qword ptr [RBP + -0x38] CALL 0x0011e67f TEST RAX,RAX JZ 0x0011ef91 MOV R12,RAX ADD RAX,0x18 MOV qword ptr [R12 + 0x8],RAX MOV qword ptr [R14],R12 MOV RDI,qword ptr [R12 + 0x8] MOV RSI,R13 MOV RDX,R15 CALL 0x00113390 CMP byte ptr [RBX + 0x313],0x0 JZ 0x0011ef19 MOV qword ptr [RBP + -0x40],R12 MOV qword ptr [RBP + -0x48],R15 MOV EAX,dword ptr [RBX + 0x60] LEA ECX,[RAX + 0x9] SHR ECX,0x3 ADD RCX,R13 INC RCX MOV qword ptr [RBP + -0x30],RCX TEST EAX,EAX LEA RSI,[0x14c000] MOV EDI,0x1 JZ 0x0011ef11 INC R13 MOV R14D,0x4 XOR R15D,R15D XOR R12D,R12D LAB_0011edf2: MOVZX EAX,byte ptr [R13] TEST R14D,EAX JNZ 0x0011eecc MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RAX + R15*0x1 + 0x70] LEA RCX,[RCX + RCX*0x2] CMP dword ptr [RSI + RCX*0x8 + 0x8],0x0 JS 0x0011ee55 LEA RCX,[RSI + RCX*0x8] TEST byte ptr [RAX + R15*0x1 + 0x64],0x40 JNZ 0x0011ee97 CMP qword ptr [RAX + R15*0x1 + 0x40],0x0 JNZ 0x0011eeb6 MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RAX + R15*0x1 + 0x40],RCX MOV RAX,qword ptr [RBX + 0x58] TEST byte ptr [RAX + R15*0x1 + 0x64],0x20 JZ 0x0011eeb6 MOV ECX,dword ptr [RAX + R15*0x1 + 0x70] AND ECX,0xfffffffe CMP ECX,0x8 JZ 0x0011eeb6 DEC qword ptr [RAX + R15*0x1 + 0x40] JMP 0x0011eeb6 LAB_0011ee55: LEA RDI,[RBP + -0x30] CALL 0x00116225 MOV RCX,qword ptr [RBX + 0x58] MOV EDX,dword ptr [RCX + R15*0x1 + 0x70] CMP RDX,0xc JA 0x0011eef7 MOV ESI,0x1c80 BT ESI,EDX JNC 0x0011eef7 LEA RDX,[RDX + RDX*0x2] LEA RSI,[0x14c000] MOV RDX,qword ptr [RSI + RDX*0x8 + 0x10] MOV qword ptr [RCX + R15*0x1 + 0x40],RDX MOV EDI,0x1 JMP 0x0011eec8 LAB_0011ee97: MOV RDX,qword ptr [RAX + R15*0x1 + 0x38] MOV RCX,qword ptr [RCX + 0x10] DEC RCX CMP RDX,RCX CMOVA RCX,RDX CMP RCX,qword ptr [RAX + R15*0x1 + 0x40] JBE 0x0011eeb6 MOV qword ptr [RAX + R15*0x1 + 0x40],RCX LAB_0011eeb6: MOV RAX,qword ptr [RBX + 0x58] MOV EAX,dword ptr [RAX + R15*0x1 + 0x70] LEA RAX,[RAX + RAX*0x2] MOVSXD RAX,dword ptr [RSI + RAX*0x8 + 0x8] LAB_0011eec8: ADD qword ptr [RBP + -0x30],RAX LAB_0011eecc: MOVZX EAX,R14B LEA R14D,[RAX + RAX*0x1] XOR ECX,ECX TEST AL,0x7f SETZ CL CMOVZ R14D,EDI ADD R13,RCX INC R12 MOV EAX,dword ptr [RBX + 0x60] SUB R15,-0x80 CMP R12,RAX JC 0x0011edf2 JMP 0x0011ef11 LAB_0011eef7: CMP RAX,qword ptr [RCX + R15*0x1 + 0x40] LEA RSI,[0x14c000] MOV EDI,0x1 JBE 0x0011eec8 MOV qword ptr [RCX + R15*0x1 + 0x40],RAX JMP 0x0011eec8 LAB_0011ef11: MOV R15,qword ptr [RBP + -0x48] MOV R12,qword ptr [RBP + -0x40] LAB_0011ef19: MOV qword ptr [R12 + 0x10],R15 INC qword ptr [RBX + 0xc8] MOV RDI,qword ptr [RBX + 0x38] CALL 0x00115e47 MOV R15,RAX MOV R14,R12 MOV EAX,0xffffffff CMP R15,RAX JNZ 0x0011ed59 LAB_0011ef42: MOV qword ptr [RBX + 0xe0],0x0 MOV RSI,qword ptr [RBX + 0x38] MOV EAX,dword ptr [RSI + 0x90] MOV dword ptr [RBX + 0x108],EAX LEA RDI,[RBX + 0x30d] ADD RSI,0x297 MOV EDX,0x5 CALL 0x00113220 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] MOV ESI,0x97 ADD RSI,qword ptr [RBX + 0x38] JMP 0x0011efd2 LAB_0011ef91: MOV dword ptr [RBX + 0x108],0x7d8 LEA RDI,[RBX + 0x30d] LEA RAX,[0x14bac0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x00113220 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] LEA RAX,[0x14bad0] MOV RSI,qword ptr [RAX + 0x40] LAB_0011efd2: MOV EDX,0x200 CALL 0x00113220 MOV byte ptr [RBX + 0x30b],R14B MOV EAX,0x1 LAB_0011efe8: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011eff7: MOV qword ptr [R14],0x0 MOVZX EAX,word ptr [R13 + 0x1] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x388],EAX MOV dword ptr [RBX + 0xf0],EAX MOVZX EAX,word ptr [R13 + 0x3] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x380],EAX MOV dword ptr [RBX + 0xf4],EAX MOV RAX,qword ptr [RBX + 0x80] MOV qword ptr [RBX + 0xe0],RAX XOR EAX,EAX JMP 0x0011efe8
int8 mthd_stmt_read_all_rows(long param_1) { long *plVar1; ushort uVar2; uint uVar3; long lVar4; ulong uVar5; ulong __n; int8 *puVar6; ulong uVar7; ulong uVar8; char *pcVar9; ulong uVar10; byte *pbVar11; byte bVar12; int8 *puVar13; long lVar14; bool bVar15; char *local_38; __n = ma_net_safe_read(*(int8 *)(param_1 + 0x38)); if (__n != 0xffffffff) { puVar13 = (int8 *)(param_1 + 0x80); do { pcVar9 = *(char **)(*(long *)(param_1 + 0x38) + 0x20); if ((__n < 8) && (*pcVar9 == -2)) { *puVar13 = 0; uVar2 = *(ushort *)(pcVar9 + 1); *(uint *)(*(long *)(param_1 + 0x38) + 0x388) = (uint)uVar2; *(uint *)(param_1 + 0xf0) = (uint)uVar2; uVar2 = *(ushort *)(pcVar9 + 3); *(uint *)(*(long *)(param_1 + 0x38) + 0x380) = (uint)uVar2; *(uint *)(param_1 + 0xf4) = (uint)uVar2; *(int8 *)(param_1 + 0xe0) = *(int8 *)(param_1 + 0x80); return 0; } puVar6 = (int8 *)ma_alloc_root(param_1 + 0x90,__n + 0x18); if (puVar6 == (int8 *)0x0) { *(int4 *)(param_1 + 0x108) = 0x7d8; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; pcVar9 = PTR_s_Client_run_out_of_memory_0014bb10; goto LAB_0011efd2; } puVar6[1] = puVar6 + 3; *puVar13 = puVar6; memcpy((void *)puVar6[1],pcVar9,__n); if ((*(char *)(param_1 + 0x313) != '\0') && (local_38 = pcVar9 + (ulong)(*(int *)(param_1 + 0x60) + 9U >> 3) + 1, *(int *)(param_1 + 0x60) != 0)) { pbVar11 = (byte *)(pcVar9 + 1); bVar12 = 4; lVar14 = 0; uVar10 = 0; do { if ((bVar12 & *pbVar11) == 0) { lVar4 = *(long *)(param_1 + 0x58); uVar7 = (ulong)*(uint *)(lVar4 + 0x70 + lVar14); if ((int)(&DAT_0014c008)[uVar7 * 6] < 0) { uVar7 = net_field_length(&local_38); lVar4 = *(long *)(param_1 + 0x58); uVar3 = *(uint *)(lVar4 + 0x70 + lVar14); if (((ulong)uVar3 < 0xd) && ((0x1c80U >> (uVar3 & 0x1f) & 1) != 0)) { *(int8 *)(lVar4 + 0x40 + lVar14) = (&DAT_0014c010)[(ulong)uVar3 * 3]; } else if (*(ulong *)(lVar4 + 0x40 + lVar14) < uVar7) { *(ulong *)(lVar4 + 0x40 + lVar14) = uVar7; } } else { if ((*(byte *)(lVar4 + 100 + lVar14) & 0x40) == 0) { if (*(long *)(lVar4 + 0x40 + lVar14) == 0) { *(int8 *)(lVar4 + 0x40 + lVar14) = (&DAT_0014c010)[uVar7 * 3]; lVar4 = *(long *)(param_1 + 0x58); if (((*(byte *)(lVar4 + 100 + lVar14) & 0x20) != 0) && ((*(uint *)(lVar4 + 0x70 + lVar14) & 0xfffffffe) != 8)) { plVar1 = (long *)(lVar4 + 0x40 + lVar14); *plVar1 = *plVar1 + -1; } } } else { uVar5 = *(ulong *)(lVar4 + 0x38 + lVar14); uVar8 = (&DAT_0014c010)[uVar7 * 3] - 1; if ((&DAT_0014c010)[uVar7 * 3] - 1 < uVar5) { uVar8 = uVar5; } if (*(ulong *)(lVar4 + 0x40 + lVar14) < uVar8) { *(ulong *)(lVar4 + 0x40 + lVar14) = uVar8; } } uVar7 = (ulong)(int)(&DAT_0014c008) [(ulong)*(uint *)(*(long *)(param_1 + 0x58) + 0x70 + lVar14) * 6]; } local_38 = local_38 + uVar7; } bVar15 = (bVar12 & 0x7f) == 0; bVar12 = bVar12 * '\x02'; if (bVar15) { bVar12 = 1; } pbVar11 = pbVar11 + bVar15; uVar10 = uVar10 + 1; lVar14 = lVar14 + 0x80; } while (uVar10 < *(uint *)(param_1 + 0x60)); } puVar6[2] = __n; *(long *)(param_1 + 200) = *(long *)(param_1 + 200) + 1; __n = ma_net_safe_read(*(int8 *)(param_1 + 0x38)); puVar13 = puVar6; } while (__n != 0xffffffff); } *(int8 *)(param_1 + 0xe0) = 0; *(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90); strncpy((char *)(param_1 + 0x30d),(char *)(*(long *)(param_1 + 0x38) + 0x297),5); *(int1 *)(param_1 + 0x312) = 0; pcVar9 = (char *)(*(long *)(param_1 + 0x38) + 0x97); LAB_0011efd2: strncpy((char *)(param_1 + 0x10c),pcVar9,0x200); *(int1 *)(param_1 + 0x30b) = 0; return 1; }
59,706
minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&)
monkey531[P]llama/common/minja.hpp
FilterNode(const Location & location, std::shared_ptr<Expression> && f, std::shared_ptr<TemplateNode> && b) : TemplateNode(location), filter(std::move(f)), body(std::move(b)) {}
O2
cpp
minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %rbx movq %rdx, %r14 movq %rdi, %r15 callq 0x7320c leaq 0x87c1a(%rip), %rax # 0xff4f8 addq $0x10, %rax movq %rax, (%r15) andq $0x0, 0x28(%r15) movups (%r14), %xmm0 andq $0x0, 0x8(%r14) movups %xmm0, 0x20(%r15) andq $0x0, (%r14) andq $0x0, 0x38(%r15) movups (%rbx), %xmm0 andq $0x0, 0x8(%rbx) movups %xmm0, 0x30(%r15) andq $0x0, (%rbx) popq %rbx popq %r14 popq %r15 retq
_ZN5minja10FilterNodeC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEOS4_INS_12TemplateNodeEE: push r15 push r14 push rbx mov rbx, rcx mov r14, rdx mov r15, rdi call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&) lea rax, _ZTVN5minja10FilterNodeE; `vtable for'minja::FilterNode add rax, 10h mov [r15], rax and qword ptr [r15+28h], 0 movups xmm0, xmmword ptr [r14] and qword ptr [r14+8], 0 movups xmmword ptr [r15+20h], xmm0 and qword ptr [r14], 0 and qword ptr [r15+38h], 0 movups xmm0, xmmword ptr [rbx] and qword ptr [rbx+8], 0 movups xmmword ptr [r15+30h], xmm0 and qword ptr [rbx], 0 pop rbx pop r14 pop r15 retn
long long * minja::FilterNode::FilterNode(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4) { long long *result; // rax __int128 v7; // xmm0 __int128 v8; // xmm0 minja::TemplateNode::TemplateNode((_QWORD *)a1, a2); result = &`vtable for'minja::FilterNode + 2; *(_QWORD *)a1 = &`vtable for'minja::FilterNode + 2; *(_QWORD *)(a1 + 40) = 0LL; v7 = *a3; *((_QWORD *)a3 + 1) = 0LL; *(_OWORD *)(a1 + 32) = v7; *(_QWORD *)a3 = 0LL; *(_QWORD *)(a1 + 56) = 0LL; v8 = *a4; *((_QWORD *)a4 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v8; *(_QWORD *)a4 = 0LL; return result; }
FilterNode: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RCX MOV R14,RDX MOV R15,RDI CALL 0x0017320c LEA RAX,[0x1ff4f8] ADD RAX,0x10 MOV qword ptr [R15],RAX AND qword ptr [R15 + 0x28],0x0 MOVUPS XMM0,xmmword ptr [R14] AND qword ptr [R14 + 0x8],0x0 MOVUPS xmmword ptr [R15 + 0x20],XMM0 AND qword ptr [R14],0x0 AND qword ptr [R15 + 0x38],0x0 MOVUPS XMM0,xmmword ptr [RBX] AND qword ptr [RBX + 0x8],0x0 MOVUPS xmmword ptr [R15 + 0x30],XMM0 AND qword ptr [RBX],0x0 POP RBX POP R14 POP R15 RET
/* minja::FilterNode::FilterNode(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&) */ void __thiscall minja::FilterNode::FilterNode (FilterNode *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3) { int8 uVar1; TemplateNode::TemplateNode((TemplateNode *)this,param_1); *(int ***)this = &PTR_do_render_001ff508; *(int8 *)(this + 0x28) = 0; uVar1 = *(int8 *)(param_2 + 8); *(int8 *)(param_2 + 8) = 0; *(int8 *)(this + 0x20) = *(int8 *)param_2; *(int8 *)(this + 0x28) = uVar1; *(int8 *)param_2 = 0; *(int8 *)(this + 0x38) = 0; uVar1 = *(int8 *)(param_3 + 8); *(int8 *)(param_3 + 8) = 0; *(int8 *)(this + 0x30) = *(int8 *)param_3; *(int8 *)(this + 0x38) = uVar1; *(int8 *)param_3 = 0; return; }
59,707
free_root
eloqsql/mysys/my_alloc.c
void free_root(MEM_ROOT *root, myf MyFlags) { reg1 USED_MEM *next,*old; DBUG_ENTER("free_root"); DBUG_PRINT("enter",("root: %p flags: %lu", root, MyFlags)); #if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG)) /* There is no point in using mark_blocks_free when using valgrind as it will not reclaim any memory */ if (MyFlags & MY_MARK_BLOCKS_FREE) { mark_blocks_free(root); DBUG_VOID_RETURN; } #endif if (!(MyFlags & MY_KEEP_PREALLOC)) root->pre_alloc=0; for (next=root->used; next ;) { old=next; next= next->next ; if (old != root->pre_alloc) my_free(old); } for (next=root->free ; next ;) { old=next; next= next->next; if (old != root->pre_alloc) my_free(old); } root->used=root->free=0; if (root->pre_alloc) { root->free=root->pre_alloc; root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(USED_MEM)); TRASH_MEM(root->pre_alloc); root->free->next=0; } root->block_num= 4; root->first_block_usage= 0; DBUG_VOID_RETURN; }
O0
c
free_root: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x3d032 movq -0x10(%rbp), %rax andq $0x2, %rax cmpq $0x0, %rax je 0x3d04e movq -0x8(%rbp), %rdi callq 0x3d170 jmp 0x3d15d movq -0x10(%rbp), %rax andq $0x1, %rax cmpq $0x0, %rax jne 0x3d068 movq -0x8(%rbp), %rax movq $0x0, 0x10(%rax) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3d0a7 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax je 0x3d0a5 movq -0x20(%rbp), %rdi callq 0x325f0 jmp 0x3d074 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x3d0e5 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x18(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x20(%rbp), %rax movq -0x8(%rbp), %rcx cmpq 0x10(%rcx), %rax je 0x3d0e3 movq -0x20(%rbp), %rdi callq 0x325f0 jmp 0x3d0b2 movq -0x8(%rbp), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x8(%rbp), %rax cmpq $0x0, 0x10(%rax) je 0x3d145 movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rcx subq $0x18, %rcx movq -0x8(%rbp), %rax movq (%rax), %rax movq %rcx, 0x8(%rax) jmp 0x3d133 jmp 0x3d135 jmp 0x3d137 movq -0x8(%rbp), %rax movq (%rax), %rax movq $0x0, (%rax) movq -0x8(%rbp), %rax movl $0x4, 0x28(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x2c(%rax) jmp 0x3d15d addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
free_root: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_3D032: mov rax, [rbp+var_10] and rax, 2 cmp rax, 0 jz short loc_3D04E mov rdi, [rbp+var_8] call mark_blocks_free jmp loc_3D15D loc_3D04E: mov rax, [rbp+var_10] and rax, 1 cmp rax, 0 jnz short loc_3D068 mov rax, [rbp+var_8] mov qword ptr [rax+10h], 0 loc_3D068: mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_18], rax loc_3D074: cmp [rbp+var_18], 0 jz short loc_3D0A7 mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jz short loc_3D0A5 mov rdi, [rbp+var_20] call my_free loc_3D0A5: jmp short loc_3D074 loc_3D0A7: mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax loc_3D0B2: cmp [rbp+var_18], 0 jz short loc_3D0E5 mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_18] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_20] mov rcx, [rbp+var_8] cmp rax, [rcx+10h] jz short loc_3D0E3 mov rdi, [rbp+var_20] call my_free loc_3D0E3: jmp short loc_3D0B2 loc_3D0E5: mov rax, [rbp+var_8] mov qword ptr [rax], 0 mov rax, [rbp+var_8] mov qword ptr [rax+8], 0 mov rax, [rbp+var_8] cmp qword ptr [rax+10h], 0 jz short loc_3D145 mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_8] mov [rax], rcx mov rax, [rbp+var_8] mov rax, [rax+10h] mov rcx, [rax+10h] sub rcx, 18h mov rax, [rbp+var_8] mov rax, [rax] mov [rax+8], rcx jmp short $+2 loc_3D133: jmp short $+2 loc_3D135: jmp short $+2 loc_3D137: mov rax, [rbp+var_8] mov rax, [rax] mov qword ptr [rax], 0 loc_3D145: mov rax, [rbp+var_8] mov dword ptr [rax+28h], 4 mov rax, [rbp+var_8] mov dword ptr [rax+2Ch], 0 jmp short $+2 loc_3D15D: add rsp, 20h pop rbp retn
long long free_root(long long a1, char a2) { long long result; // rax long long v3; // [rsp+0h] [rbp-20h] long long v4; // [rsp+0h] [rbp-20h] _QWORD *v5; // [rsp+8h] [rbp-18h] _QWORD *v6; // [rsp+8h] [rbp-18h] if ( (a2 & 2) != 0 ) return mark_blocks_free(a1); if ( (a2 & 1) == 0 ) *(_QWORD *)(a1 + 16) = 0LL; v5 = *(_QWORD **)(a1 + 8); while ( v5 ) { v3 = (long long)v5; v5 = (_QWORD *)*v5; if ( v3 != *(_QWORD *)(a1 + 16) ) my_free(v3); } v6 = *(_QWORD **)a1; while ( v6 ) { v4 = (long long)v6; v6 = (_QWORD *)*v6; if ( v4 != *(_QWORD *)(a1 + 16) ) my_free(v4); } *(_QWORD *)a1 = 0LL; *(_QWORD *)(a1 + 8) = 0LL; if ( *(_QWORD *)(a1 + 16) ) { *(_QWORD *)a1 = *(_QWORD *)(a1 + 16); *(_QWORD *)(*(_QWORD *)a1 + 8LL) = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 16LL) - 24LL; **(_QWORD **)a1 = 0LL; } *(_DWORD *)(a1 + 40) = 4; result = a1; *(_DWORD *)(a1 + 44) = 0; return result; }
free_root: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x0013d032 LAB_0013d032: MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x2 CMP RAX,0x0 JZ 0x0013d04e MOV RDI,qword ptr [RBP + -0x8] CALL 0x0013d170 JMP 0x0013d15d LAB_0013d04e: MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x1 CMP RAX,0x0 JNZ 0x0013d068 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x10],0x0 LAB_0013d068: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX LAB_0013d074: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0013d0a7 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JZ 0x0013d0a5 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001325f0 LAB_0013d0a5: JMP 0x0013d074 LAB_0013d0a7: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_0013d0b2: CMP qword ptr [RBP + -0x18],0x0 JZ 0x0013d0e5 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RCX + 0x10] JZ 0x0013d0e3 MOV RDI,qword ptr [RBP + -0x20] CALL 0x001325f0 LAB_0013d0e3: JMP 0x0013d0b2 LAB_0013d0e5: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x10],0x0 JZ 0x0013d145 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x10] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x8],RCX JMP 0x0013d133 LAB_0013d133: JMP 0x0013d135 LAB_0013d135: JMP 0x0013d137 LAB_0013d137: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],0x0 LAB_0013d145: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x28],0x4 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x2c],0x0 JMP 0x0013d15d LAB_0013d15d: ADD RSP,0x20 POP RBP RET
void free_root(long *param_1,ulong param_2) { int8 *puVar1; int8 *local_20; if ((param_2 & 2) == 0) { if ((param_2 & 1) == 0) { param_1[2] = 0; } puVar1 = (int8 *)param_1[1]; while (local_20 = puVar1, local_20 != (int8 *)0x0) { puVar1 = (int8 *)*local_20; if (local_20 != (int8 *)param_1[2]) { my_free(local_20); } } puVar1 = (int8 *)*param_1; while (local_20 = puVar1, local_20 != (int8 *)0x0) { puVar1 = (int8 *)*local_20; if (local_20 != (int8 *)param_1[2]) { my_free(local_20); } } *param_1 = 0; param_1[1] = 0; if (param_1[2] != 0) { *param_1 = param_1[2]; *(long *)(*param_1 + 8) = *(long *)(param_1[2] + 0x10) + -0x18; *(int8 *)*param_1 = 0; } *(int4 *)(param_1 + 5) = 4; *(int4 *)((long)param_1 + 0x2c) = 0; } else { mark_blocks_free(param_1); } return; }
59,708
collection_str_key_cmp
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/tool/collection.c
unsigned int collection_str_key_cmp(struct collection * coll, struct clist *np, const char *s, unsigned int keysize) { char* p = (char*)np->keyval[0] ; if (s == p) return 1 ;// NULL key if (keysize == 0) keysize = strlen(s) ; if ((strncmp(s, p, keysize) == 0) && (p[keysize] == 0)) { return 1 ; } return 0 ; }
O3
c
collection_str_key_cmp: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq 0x8(%rsi), %r14 movl $0x1, %ebx cmpq %rdx, %r14 je 0xa579 movq %rdx, %r15 testl %ecx, %ecx jne 0xa55b movq %r15, %rdi callq 0x61a0 movq %rax, %rcx movl %ecx, %r12d movq %r15, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x60a0 testl %eax, %eax jne 0xa577 cmpb $0x0, (%r14,%r12) je 0xa579 xorl %ebx, %ebx movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
collection_str_key_cmp: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r14, [rsi+8] mov ebx, 1 cmp r14, rdx jz short loc_A579 mov r15, rdx test ecx, ecx jnz short loc_A55B mov rdi, r15 call _strlen mov rcx, rax loc_A55B: mov r12d, ecx mov rdi, r15 mov rsi, r14 mov rdx, r12 call _strncmp test eax, eax jnz short loc_A577 cmp byte ptr [r14+r12], 0 jz short loc_A579 loc_A577: xor ebx, ebx loc_A579: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long collection_str_key_cmp(long long a1, long long a2, long long a3, unsigned int a4) { long long v4; // r14 unsigned int v5; // ebx long long v7; // r12 v4 = *(_QWORD *)(a2 + 8); v5 = 1; if ( v4 != a3 ) { if ( !a4 ) a4 = strlen(a3); v7 = a4; if ( (unsigned int)strncmp(a3, v4, a4) || *(_BYTE *)(v4 + v7) ) return 0; } return v5; }
collection_str_key_cmp: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R14,qword ptr [RSI + 0x8] MOV EBX,0x1 CMP R14,RDX JZ 0x0010a579 MOV R15,RDX TEST ECX,ECX JNZ 0x0010a55b MOV RDI,R15 CALL 0x001061a0 MOV RCX,RAX LAB_0010a55b: MOV R12D,ECX MOV RDI,R15 MOV RSI,R14 MOV RDX,R12 CALL 0x001060a0 TEST EAX,EAX JNZ 0x0010a577 CMP byte ptr [R14 + R12*0x1],0x0 JZ 0x0010a579 LAB_0010a577: XOR EBX,EBX LAB_0010a579: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
int8 collection_str_key_cmp(int8 param_1,long param_2,char *param_3,uint param_4) { char *__s2; int iVar1; size_t sVar2; int8 uVar3; __s2 = *(char **)(param_2 + 8); uVar3 = 1; if (__s2 != param_3) { if (param_4 == 0) { sVar2 = strlen(param_3); param_4 = (uint)sVar2; } iVar1 = strncmp(param_3,__s2,(ulong)param_4); if ((iVar1 != 0) || (__s2[param_4] != '\0')) { uVar3 = 0; } } return uVar3; }
59,709
ggml_timestep_embedding
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_timestep_embedding( struct ggml_context * ctx, struct ggml_tensor * timesteps, int dim, int max_period) { int actual_dim = dim; if (dim % 2 != 0) { actual_dim = dim + 1; } struct ggml_tensor * result = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, actual_dim, timesteps->ne[0]); ggml_set_op_params_i32(result, 0, dim); ggml_set_op_params_i32(result, 1, max_period); result->op = GGML_OP_TIMESTEP_EMBEDDING; result->src[0] = timesteps; return result; }
O0
c
ggml_timestep_embedding: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl -0x14(%rbp), %eax movl %eax, -0x1c(%rbp) movl -0x14(%rbp), %eax movl $0x2, %ecx cltd idivl %ecx cmpl $0x0, %edx je 0x52ef5 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x1c(%rbp) movq -0x8(%rbp), %rdi movslq -0x1c(%rbp), %rdx movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx xorl %esi, %esi callq 0x471c0 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi movl -0x14(%rbp), %edx xorl %esi, %esi callq 0x4df90 movq -0x28(%rbp), %rdi movl -0x18(%rbp), %edx movl $0x1, %esi callq 0x4df90 movq -0x28(%rbp), %rax movl $0x3a, 0x50(%rax) movq -0x10(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x28(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ggml_timestep_embedding: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_18], ecx mov eax, [rbp+var_14] mov [rbp+var_1C], eax mov eax, [rbp+var_14] mov ecx, 2 cdq idiv ecx cmp edx, 0 jz short loc_52EF5 mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_1C], eax loc_52EF5: mov rdi, [rbp+var_8] movsxd rdx, [rbp+var_1C] mov rax, [rbp+var_10] mov rcx, [rax+10h] xor esi, esi call _ggml_new_tensor_2d mov [rbp+var_28], rax mov rdi, [rbp+var_28] mov edx, [rbp+var_14] xor esi, esi call ggml_set_op_params_i32 mov rdi, [rbp+var_28] mov edx, [rbp+var_18] mov esi, 1 call ggml_set_op_params_i32 mov rax, [rbp+var_28] mov dword ptr [rax+50h], 3Ah ; ':' mov rcx, [rbp+var_10] mov rax, [rbp+var_28] mov [rax+98h], rcx mov rax, [rbp+var_28] add rsp, 30h pop rbp retn
long long ggml_timestep_embedding(long long a1, long long a2, int a3, int a4) { long long v5; // [rsp+8h] [rbp-28h] int v6; // [rsp+14h] [rbp-1Ch] v6 = a3; if ( a3 % 2 ) v6 = a3 + 1; v5 = ggml_new_tensor_2d(a1, 0, v6, *(_QWORD *)(a2 + 16)); ggml_set_op_params_i32(v5, 0, a3); ggml_set_op_params_i32(v5, 1u, a4); *(_DWORD *)(v5 + 80) = 58; *(_QWORD *)(v5 + 152) = a2; return v5; }
ggml_timestep_embedding: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV dword ptr [RBP + -0x18],ECX MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x14] MOV ECX,0x2 CDQ IDIV ECX CMP EDX,0x0 JZ 0x00152ef5 MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x1c],EAX LAB_00152ef5: MOV RDI,qword ptr [RBP + -0x8] MOVSXD RDX,dword ptr [RBP + -0x1c] MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] XOR ESI,ESI CALL 0x001471c0 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RBP + -0x14] XOR ESI,ESI CALL 0x0014df90 MOV RDI,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RBP + -0x18] MOV ESI,0x1 CALL 0x0014df90 MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x50],0x3a MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x98],RCX MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x30 POP RBP RET
long ggml_timestep_embedding(int8 param_1,long param_2,int param_3,int4 param_4) { long lVar1; int4 local_24; local_24 = param_3; if (param_3 % 2 != 0) { local_24 = param_3 + 1; } lVar1 = ggml_new_tensor_2d(param_1,0,(long)local_24,*(int8 *)(param_2 + 0x10)); ggml_set_op_params_i32(lVar1,0,param_3); ggml_set_op_params_i32(lVar1,1,param_4); *(int4 *)(lVar1 + 0x50) = 0x3a; *(long *)(lVar1 + 0x98) = param_2; return lVar1; }
59,710
ggml_timestep_embedding
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
struct ggml_tensor * ggml_timestep_embedding( struct ggml_context * ctx, struct ggml_tensor * timesteps, int dim, int max_period) { int actual_dim = dim; if (dim % 2 != 0) { actual_dim = dim + 1; } struct ggml_tensor * result = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, actual_dim, timesteps->ne[0]); ggml_set_op_params_i32(result, 0, dim); ggml_set_op_params_i32(result, 1, max_period); result->op = GGML_OP_TIMESTEP_EMBEDDING; result->src[0] = timesteps; return result; }
O1
c
ggml_timestep_embedding: pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movl %ecx, %ebx movl %edx, %ebp movq %rsi, %r14 movl %edx, %eax andl $0x1, %eax addl %edx, %eax cltq movq 0x10(%rsi), %rdx movq %rsp, %rcx movq %rax, (%rcx) movq %rdx, 0x8(%rcx) xorl %esi, %esi movl $0x2, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1b871 movl %ebp, 0x54(%rax) movl %ebx, 0x58(%rax) movl $0x3a, 0x50(%rax) movq %r14, 0x98(%rax) addq $0x10, %rsp popq %rbx popq %r14 popq %rbp retq
ggml_timestep_embedding: push rbp push r14 push rbx sub rsp, 10h mov ebx, ecx mov ebp, edx mov r14, rsi mov eax, edx and eax, 1 add eax, edx cdqe mov rdx, [rsi+10h] mov rcx, rsp mov [rcx], rax mov [rcx+8], rdx xor esi, esi mov edx, 2 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov [rax+54h], ebp mov [rax+58h], ebx mov dword ptr [rax+50h], 3Ah ; ':' mov [rax+98h], r14 add rsp, 10h pop rbx pop r14 pop rbp retn
long long ggml_timestep_embedding(long long a1, long long a2, int a3, int a4, double a5) { long long v7; // rax long long v8; // rdx long long result; // rax long long v10[5]; // [rsp+0h] [rbp-28h] BYREF v7 = a3 + (a3 & 1); v8 = *(_QWORD *)(a2 + 16); v10[0] = v7; v10[1] = v8; result = ggml_new_tensor_impl(a1, 0, 2, v10, 0LL, 0LL, a5); *(_DWORD *)(result + 84) = a3; *(_DWORD *)(result + 88) = a4; *(_DWORD *)(result + 80) = 58; *(_QWORD *)(result + 152) = a2; return result; }
ggml_timestep_embedding: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x10 MOV EBX,ECX MOV EBP,EDX MOV R14,RSI MOV EAX,EDX AND EAX,0x1 ADD EAX,EDX CDQE MOV RDX,qword ptr [RSI + 0x10] MOV RCX,RSP MOV qword ptr [RCX],RAX MOV qword ptr [RCX + 0x8],RDX XOR ESI,ESI MOV EDX,0x2 XOR R8D,R8D XOR R9D,R9D CALL 0x0011b871 MOV dword ptr [RAX + 0x54],EBP MOV dword ptr [RAX + 0x58],EBX MOV dword ptr [RAX + 0x50],0x3a MOV qword ptr [RAX + 0x98],R14 ADD RSP,0x10 POP RBX POP R14 POP RBP RET
void ggml_timestep_embedding(int8 param_1,long param_2,uint param_3,int4 param_4) { long lVar1; long local_28; int8 local_20; local_28 = (long)(int)((param_3 & 1) + param_3); local_20 = *(int8 *)(param_2 + 0x10); lVar1 = ggml_new_tensor_impl(param_1,0,2,&local_28,0,0); *(uint *)(lVar1 + 0x54) = param_3; *(int4 *)(lVar1 + 0x58) = param_4; *(int4 *)(lVar1 + 0x50) = 0x3a; *(long *)(lVar1 + 0x98) = param_2; return; }
59,711
exec_REDO_LOGREC_FILE_ID
eloqsql/storage/maria/ma_recovery.c
prototype_redo_exec_hook(FILE_ID) { uint16 sid; int error= 1; const char *name; MARIA_HA *info; DBUG_ENTER("exec_REDO_LOGREC_FILE_ID"); if (cmp_translog_addr(rec->lsn, checkpoint_start) < 0) { /* If that mapping was still true at checkpoint time, it was found in checkpoint record, no need to recreate it. If that mapping had ended at checkpoint time (table was closed or repaired), a flush and force happened and so mapping is not needed. */ tprint(tracef, "ignoring because before checkpoint\n"); DBUG_RETURN(0); } enlarge_buffer(rec); if (log_record_buffer.str == NULL || translog_read_record(rec->lsn, 0, rec->record_length, log_record_buffer.str, NULL) != rec->record_length) { eprint(tracef, "Failed to read record"); goto end; } sid= fileid_korr(log_record_buffer.str); info= all_tables[sid].info; if (info != NULL) { tprint(tracef, " Closing table '%s'\n", info->s->open_file_name.str); prepare_table_for_close(info, rec->lsn); /* Ensure that open count is 1 on close. This is needed as the table may initially had an open_count > 0 when we initially opened it as the server may have crashed without closing it properly. As we now have applied all redo's for the table up to now, we know the table is ok, so it's safe to reset the open count to 0. */ if (info->s->state.open_count != 0 && info->s->reopen == 1) { /* let ma_close() mark the table properly closed */ info->s->state.open_count= 1; info->s->global_changed= 1; info->s->changed= 1; } if (maria_close(info)) { eprint(tracef, "Failed to close table"); goto end; } all_tables[sid].info= NULL; } name= (char *)log_record_buffer.str + FILEID_STORE_SIZE; if (new_table(sid, name, rec->lsn)) goto end; error= 0; end: DBUG_RETURN(error); }
O3
c
exec_REDO_LOGREC_FILE_ID: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq (%rdi), %rax leaq 0xbd4e6a(%rip), %rcx # 0xc27d20 cmpq (%rcx), %rax jge 0x52eda leaq 0xbd4ede(%rip), %rax # 0xc27da0 movq (%rax), %rdi leaq 0xa7d22(%rip), %rsi # 0xfabee xorl %ebx, %ebx xorl %eax, %eax callq 0x55d08 jmp 0x52fee movq %rdi, %rbx movl 0x14(%rdi), %edx cmpq %rdx, 0xbd4da1(%rip) # 0xc27c88 jae 0x52f0f movq %rdx, 0xbd4d98(%rip) # 0xc27c88 movq 0xbd4d89(%rip), %rsi # 0xc27c80 movl $0x50, %ecx xorl %edi, %edi callq 0xbf444 movq %rax, %rcx movq %rax, 0xbd4d73(%rip) # 0xc27c80 jmp 0x52f16 movq 0xbd4d6a(%rip), %rcx # 0xc27c80 testq %rcx, %rcx je 0x52fd1 movq (%rbx), %rdi movl 0x14(%rbx), %edx xorl %esi, %esi xorl %r8d, %r8d callq 0x45a2a cmpl 0x14(%rbx), %eax jne 0x52fd1 movq 0xbd4d41(%rip), %rsi # 0xc27c80 movzwl (%rsi), %r14d movq 0xbd4cfe(%rip), %rax # 0xc27c48 movq (%rax,%r14,8), %r15 testq %r15, %r15 je 0x5300f leaq 0xbd4e42(%rip), %r12 # 0xc27da0 movq (%r12), %rdi movq (%r15), %rax movq 0x5e0(%rax), %rdx leaq 0xa7c9f(%rip), %rsi # 0xfac12 xorl %eax, %eax callq 0x55d08 movq (%rbx), %rsi movq %r15, %rdi callq 0x5515e movq (%r15), %rax cmpl $0x0, 0x16c(%rax) je 0x52fb8 cmpl $0x1, 0x7a8(%rax) jne 0x52fb8 movl $0x1, 0x16c(%rax) movq (%r15), %rax movb $0x1, %cl movb %cl, 0x7df(%rax) movq (%r15), %rax movb %cl, 0x7de(%rax) movq %r15, %rdi callq 0x3fa24 testl %eax, %eax je 0x52ff9 movq (%r12), %rdi leaq 0xa7c5a(%rip), %rsi # 0xfac29 jmp 0x52fe2 leaq 0xbd4dc8(%rip), %rax # 0xc27da0 movq (%rax), %rdi leaq 0xa7552(%rip), %rsi # 0xfa534 xorl %eax, %eax callq 0x55d90 movl $0x1, %ebx movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq 0xbd4c48(%rip), %rax # 0xc27c48 movq $0x0, (%rax,%r14,8) movq 0xbd4c71(%rip), %rsi # 0xc27c80 addq $0x2, %rsi movq (%rbx), %rdx movl %r14d, %edi callq 0x55525 xorl %ebx, %ebx testl %eax, %eax setne %bl jmp 0x52fee
exec_REDO_LOGREC_FILE_ID: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rax, [rdi] lea rcx, checkpoint_start cmp rax, [rcx] jge short loc_52EDA lea rax, tracef mov rdi, [rax] lea rsi, aIgnoringBecaus; "ignoring because before checkpoint\n" xor ebx, ebx xor eax, eax call tprint jmp loc_52FEE loc_52EDA: mov rbx, rdi mov edx, [rdi+14h] cmp cs:log_record_buffer_1, rdx jnb short loc_52F0F mov cs:log_record_buffer_1, rdx mov rsi, cs:log_record_buffer_0 mov ecx, 50h ; 'P' xor edi, edi call my_realloc mov rcx, rax mov cs:log_record_buffer_0, rax jmp short loc_52F16 loc_52F0F: mov rcx, cs:log_record_buffer_0 loc_52F16: test rcx, rcx jz loc_52FD1 mov rdi, [rbx] mov edx, [rbx+14h] xor esi, esi xor r8d, r8d call translog_read_record cmp eax, [rbx+14h] jnz loc_52FD1 mov rsi, cs:log_record_buffer_0 movzx r14d, word ptr [rsi] mov rax, cs:all_tables mov r15, [rax+r14*8] test r15, r15 jz loc_5300F lea r12, tracef mov rdi, [r12] mov rax, [r15] mov rdx, [rax+5E0h] lea rsi, aClosingTableS; " Closing table '%s'\n" xor eax, eax call tprint mov rsi, [rbx] mov rdi, r15 call prepare_table_for_close mov rax, [r15] cmp dword ptr [rax+16Ch], 0 jz short loc_52FB8 cmp dword ptr [rax+7A8h], 1 jnz short loc_52FB8 mov dword ptr [rax+16Ch], 1 mov rax, [r15] mov cl, 1 mov [rax+7DFh], cl mov rax, [r15] mov [rax+7DEh], cl loc_52FB8: mov rdi, r15 call maria_close test eax, eax jz short loc_52FF9 mov rdi, [r12] lea rsi, aFailedToCloseT; "Failed to close table" jmp short loc_52FE2 loc_52FD1: lea rax, tracef mov rdi, [rax] lea rsi, aFailedToReadRe; "Failed to read record" loc_52FE2: xor eax, eax call eprint mov ebx, 1 loc_52FEE: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_52FF9: mov rax, cs:all_tables mov qword ptr [rax+r14*8], 0 mov rsi, cs:log_record_buffer_0 loc_5300F: add rsi, 2 mov rdx, [rbx] mov edi, r14d call new_table xor ebx, ebx test eax, eax setnz bl jmp short loc_52FEE
long long exec_REDO_LOGREC_FILE_ID(long long *a1, long long a2, int a3, long long a4, int a5, int a6) { unsigned int v6; // ebx unsigned long long v7; // rdx long long v8; // rcx long long v9; // rsi long long v10; // r14 long long v11; // r15 long long v12; // rax int v13; // edi const char *v14; // rsi if ( *a1 >= checkpoint_start ) { v7 = *((unsigned int *)a1 + 5); if ( log_record_buffer_1 >= v7 ) { v8 = log_record_buffer_0; } else { log_record_buffer_1 = *((unsigned int *)a1 + 5); v8 = my_realloc(0LL, log_record_buffer_0, v7, 80LL); log_record_buffer_0 = v8; } if ( v8 && (unsigned int)translog_read_record(*a1, 0, *((unsigned int *)a1 + 5), v8, 0LL) == *((_DWORD *)a1 + 5) ) { v9 = log_record_buffer_0; v10 = *(unsigned __int16 *)log_record_buffer_0; v11 = *(_QWORD *)(all_tables + 8 * v10); if ( v11 ) { tprint(tracef, (unsigned int)" Closing table '%s'\n", *(_QWORD *)(*(_QWORD *)v11 + 1504LL), v8, a5, a6); prepare_table_for_close(v11, *a1); v12 = *(_QWORD *)v11; if ( *(_DWORD *)(*(_QWORD *)v11 + 364LL) && *(_DWORD *)(v12 + 1960) == 1 ) { *(_DWORD *)(v12 + 364) = 1; *(_BYTE *)(*(_QWORD *)v11 + 2015LL) = 1; *(_BYTE *)(*(_QWORD *)v11 + 2014LL) = 1; } if ( (unsigned int)maria_close(v11) ) { v13 = tracef; v14 = "Failed to close table"; LABEL_15: eprint(v13, (_DWORD)v14, v7, v8, a5, a6); return 1; } *(_QWORD *)(all_tables + 8 * v10) = 0LL; v9 = log_record_buffer_0; } return (unsigned int)new_table((unsigned int)v10, v9 + 2, *a1) != 0; } v13 = tracef; v14 = "Failed to read record"; goto LABEL_15; } v6 = 0; tprint(tracef, (unsigned int)"ignoring because before checkpoint\n", a3, (unsigned int)&checkpoint_start, a5, a6); return v6; }
exec_REDO_LOGREC_FILE_ID: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RAX,qword ptr [RDI] LEA RCX,[0xd27d20] CMP RAX,qword ptr [RCX] JGE 0x00152eda LEA RAX,[0xd27da0] MOV RDI,qword ptr [RAX] LEA RSI,[0x1fabee] XOR EBX,EBX XOR EAX,EAX CALL 0x00155d08 JMP 0x00152fee LAB_00152eda: MOV RBX,RDI MOV EDX,dword ptr [RDI + 0x14] CMP qword ptr [0x00d27c88],RDX JNC 0x00152f0f MOV qword ptr [0x00d27c88],RDX MOV RSI,qword ptr [0x00d27c80] MOV ECX,0x50 XOR EDI,EDI CALL 0x001bf444 MOV RCX,RAX MOV qword ptr [0x00d27c80],RAX JMP 0x00152f16 LAB_00152f0f: MOV RCX,qword ptr [0x00d27c80] LAB_00152f16: TEST RCX,RCX JZ 0x00152fd1 MOV RDI,qword ptr [RBX] MOV EDX,dword ptr [RBX + 0x14] XOR ESI,ESI XOR R8D,R8D CALL 0x00145a2a CMP EAX,dword ptr [RBX + 0x14] JNZ 0x00152fd1 MOV RSI,qword ptr [0x00d27c80] MOVZX R14D,word ptr [RSI] MOV RAX,qword ptr [0x00d27c48] MOV R15,qword ptr [RAX + R14*0x8] TEST R15,R15 JZ 0x0015300f LEA R12,[0xd27da0] MOV RDI,qword ptr [R12] MOV RAX,qword ptr [R15] MOV RDX,qword ptr [RAX + 0x5e0] LEA RSI,[0x1fac12] XOR EAX,EAX CALL 0x00155d08 MOV RSI,qword ptr [RBX] MOV RDI,R15 CALL 0x0015515e MOV RAX,qword ptr [R15] CMP dword ptr [RAX + 0x16c],0x0 JZ 0x00152fb8 CMP dword ptr [RAX + 0x7a8],0x1 JNZ 0x00152fb8 MOV dword ptr [RAX + 0x16c],0x1 MOV RAX,qword ptr [R15] MOV CL,0x1 MOV byte ptr [RAX + 0x7df],CL MOV RAX,qword ptr [R15] MOV byte ptr [RAX + 0x7de],CL LAB_00152fb8: MOV RDI,R15 CALL 0x0013fa24 TEST EAX,EAX JZ 0x00152ff9 MOV RDI,qword ptr [R12] LEA RSI,[0x1fac29] JMP 0x00152fe2 LAB_00152fd1: LEA RAX,[0xd27da0] MOV RDI,qword ptr [RAX] LEA RSI,[0x1fa534] LAB_00152fe2: XOR EAX,EAX CALL 0x00155d90 MOV EBX,0x1 LAB_00152fee: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00152ff9: MOV RAX,qword ptr [0x00d27c48] MOV qword ptr [RAX + R14*0x8],0x0 MOV RSI,qword ptr [0x00d27c80] LAB_0015300f: ADD RSI,0x2 MOV RDX,qword ptr [RBX] MOV EDI,R14D CALL 0x00155525 XOR EBX,EBX TEST EAX,EAX SETNZ BL JMP 0x00152fee
bool exec_REDO_LOGREC_FILE_ID(long *param_1) { long *plVar1; long lVar2; int iVar3; ulong uVar4; char *pcVar5; bool bVar6; if (*param_1 < checkpoint_start) { tprint(tracef,"ignoring because before checkpoint\n"); return false; } uVar4 = (ulong)*(uint *)((long)param_1 + 0x14); if (log_record_buffer_1 < uVar4) { log_record_buffer_1 = uVar4; log_record_buffer_0 = (ushort *)my_realloc(0,log_record_buffer_0,uVar4,0x50); } if ((log_record_buffer_0 == (ushort *)0x0) || (iVar3 = translog_read_record (*param_1,0,*(int4 *)((long)param_1 + 0x14),log_record_buffer_0,0), iVar3 != *(int *)((long)param_1 + 0x14))) { pcVar5 = "Failed to read record"; LAB_00152fe2: eprint(tracef,pcVar5); bVar6 = true; } else { uVar4 = (ulong)*log_record_buffer_0; plVar1 = *(long **)(all_tables + uVar4 * 8); if (plVar1 != (long *)0x0) { tprint(tracef," Closing table \'%s\'\n",*(int8 *)(*plVar1 + 0x5e0)); prepare_table_for_close(plVar1,*param_1); lVar2 = *plVar1; if ((*(int *)(lVar2 + 0x16c) != 0) && (*(int *)(lVar2 + 0x7a8) == 1)) { *(int4 *)(lVar2 + 0x16c) = 1; *(int1 *)(*plVar1 + 0x7df) = 1; *(int1 *)(*plVar1 + 0x7de) = 1; } iVar3 = maria_close(plVar1); if (iVar3 != 0) { pcVar5 = "Failed to close table"; goto LAB_00152fe2; } *(int8 *)(all_tables + uVar4 * 8) = 0; } iVar3 = new_table(uVar4,log_record_buffer_0 + 1,*param_1); bVar6 = iVar3 != 0; } return bVar6; }
59,712
mi_calc_blob_length
eloqsql/storage/myisam/mi_dynrec.c
ulong _mi_calc_blob_length(uint length, const uchar *pos) { switch (length) { case 1: return (uint) (uchar) *pos; case 2: return (uint) uint2korr(pos); case 3: return uint3korr(pos); case 4: return uint4korr(pos); default: break; } return 0; /* Impossible */ }
O3
c
mi_calc_blob_length: pushq %rbp movq %rsp, %rbp decl %edi cmpl $0x3, %edi ja 0x785f9 leaq 0x6800d(%rip), %rax # 0xe05e0 movslq (%rax,%rdi,4), %rcx addq %rax, %rcx jmpq *%rcx movzbl (%rsi), %eax jmp 0x785fb movzwl (%rsi), %ecx movzbl 0x2(%rsi), %eax shll $0x10, %eax orq %rcx, %rax jmp 0x785fb movl (%rsi), %eax jmp 0x785fb movzwl (%rsi), %eax jmp 0x785fb xorl %eax, %eax popq %rbp retq
_mi_calc_blob_length: push rbp mov rbp, rsp dec edi; switch 4 cases cmp edi, 3 ja short def_785DA; jumptable 00000000000785DA default case lea rax, jpt_785DA movsxd rcx, ds:(jpt_785DA - 0E05E0h)[rax+rdi*4] add rcx, rax jmp rcx; switch jump loc_785DC: movzx eax, byte ptr [rsi]; jumptable 00000000000785DA case 1 jmp short loc_785FB loc_785E1: movzx ecx, word ptr [rsi]; jumptable 00000000000785DA case 3 movzx eax, byte ptr [rsi+2] shl eax, 10h or rax, rcx jmp short loc_785FB loc_785F0: mov eax, [rsi]; jumptable 00000000000785DA case 4 jmp short loc_785FB loc_785F4: movzx eax, word ptr [rsi]; jumptable 00000000000785DA case 2 jmp short loc_785FB def_785DA: xor eax, eax; jumptable 00000000000785DA default case loc_785FB: pop rbp retn
unsigned long long mi_calc_blob_length(int a1, unsigned __int8 *a2) { unsigned long long result; // rax switch ( a1 ) { case 1: result = *a2; break; case 2: result = *(unsigned __int16 *)a2; break; case 3: result = *(unsigned __int16 *)a2 | (unsigned long long)(a2[2] << 16); break; case 4: result = *(unsigned int *)a2; break; default: result = 0LL; break; } return result; }
_mi_calc_blob_length: PUSH RBP MOV RBP,RSP DEC EDI CMP EDI,0x3 JA 0x001785f9 LEA RAX,[0x1e05e0] MOVSXD RCX,dword ptr [RAX + RDI*0x4] ADD RCX,RAX switchD: JMP RCX caseD_1: MOVZX EAX,byte ptr [RSI] JMP 0x001785fb caseD_3: MOVZX ECX,word ptr [RSI] MOVZX EAX,byte ptr [RSI + 0x2] SHL EAX,0x10 OR RAX,RCX JMP 0x001785fb caseD_4: MOV EAX,dword ptr [RSI] JMP 0x001785fb caseD_2: MOVZX EAX,word ptr [RSI] JMP 0x001785fb default: XOR EAX,EAX LAB_001785fb: POP RBP RET
uint _mi_calc_blob_length(int4 param_1,uint *param_2) { uint uVar1; switch(param_1) { case 1: uVar1 = (uint)(byte)*param_2; break; case 2: uVar1 = (uint)(ushort)*param_2; break; case 3: uVar1 = (uint)(uint3)*param_2; break; case 4: uVar1 = *param_2; break; default: uVar1 = 0; } return uVar1; }
59,713
ftxui::TerminalInputParser::Parse()
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/terminal_input_parser.cpp
TerminalInputParser::Output TerminalInputParser::Parse() { if (!Eat()) { return UNCOMPLETED; } switch (Current()) { case 24: // CAN NOLINT case 26: // SUB NOLINT return DROP; case '\x1B': return ParseESC(); default: break; } if (Current() < 32) { // C0 NOLINT return SPECIAL; } if (Current() == 127) { // Delete // NOLINT return SPECIAL; } return ParseUTF8(); }
O0
cpp
ftxui::TerminalInputParser::Parse(): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x20(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x72ab0 testb $0x1, %al jne 0x729d5 movq -0x20(%rbp), %rdi xorl %esi, %esi callq 0x73b90 jmp 0x72a6e movq -0x10(%rbp), %rdi callq 0x72a80 movzbl %al, %ecx movl %ecx, -0x24(%rbp) subb $0x18, %al je 0x729fe jmp 0x729ea movl -0x24(%rbp), %eax subl $0x1a, %eax je 0x729fe jmp 0x729f4 movl -0x24(%rbp), %eax subl $0x1b, %eax je 0x72a0e jmp 0x72a1d movq -0x20(%rbp), %rdi movl $0x1, %esi callq 0x73b90 jmp 0x72a6e movq -0x10(%rbp), %rsi movq -0x20(%rbp), %rdi callq 0x72af0 jmp 0x72a6e jmp 0x72a1f movq -0x10(%rbp), %rdi callq 0x72a80 movzbl %al, %eax cmpl $0x20, %eax jge 0x72a40 movq -0x20(%rbp), %rdi movl $0x3, %esi callq 0x73b90 jmp 0x72a6e movq -0x10(%rbp), %rdi callq 0x72a80 movzbl %al, %eax cmpl $0x7f, %eax jne 0x72a61 movq -0x20(%rbp), %rdi movl $0x3, %esi callq 0x73b90 jmp 0x72a6e movq -0x10(%rbp), %rsi movq -0x20(%rbp), %rdi callq 0x72bb0 movq -0x18(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
_ZN5ftxui19TerminalInputParser5ParseEv: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_20], rdi mov [rbp+var_18], rdi mov [rbp+var_8], rsi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN5ftxui19TerminalInputParser3EatEv; ftxui::TerminalInputParser::Eat(void) test al, 1 jnz short loc_729D5 mov rdi, [rbp+var_20] xor esi, esi call _ZN5ftxui19TerminalInputParser6OutputC2ENS0_4TypeE; ftxui::TerminalInputParser::Output::Output(ftxui::TerminalInputParser::Type) jmp loc_72A6E loc_729D5: mov rdi, [rbp+var_10]; this call _ZN5ftxui19TerminalInputParser7CurrentEv; ftxui::TerminalInputParser::Current(void) movzx ecx, al mov [rbp+var_24], ecx sub al, 18h jz short loc_729FE jmp short $+2 loc_729EA: mov eax, [rbp+var_24] sub eax, 1Ah jz short loc_729FE jmp short $+2 loc_729F4: mov eax, [rbp+var_24] sub eax, 1Bh jz short loc_72A0E jmp short loc_72A1D loc_729FE: mov rdi, [rbp+var_20] mov esi, 1 call _ZN5ftxui19TerminalInputParser6OutputC2ENS0_4TypeE; ftxui::TerminalInputParser::Output::Output(ftxui::TerminalInputParser::Type) jmp short loc_72A6E loc_72A0E: mov rsi, [rbp+var_10] mov rdi, [rbp+var_20]; this call _ZN5ftxui19TerminalInputParser8ParseESCEv; ftxui::TerminalInputParser::ParseESC(void) jmp short loc_72A6E loc_72A1D: jmp short $+2 loc_72A1F: mov rdi, [rbp+var_10]; this call _ZN5ftxui19TerminalInputParser7CurrentEv; ftxui::TerminalInputParser::Current(void) movzx eax, al cmp eax, 20h ; ' ' jge short loc_72A40 mov rdi, [rbp+var_20] mov esi, 3 call _ZN5ftxui19TerminalInputParser6OutputC2ENS0_4TypeE; ftxui::TerminalInputParser::Output::Output(ftxui::TerminalInputParser::Type) jmp short loc_72A6E loc_72A40: mov rdi, [rbp+var_10]; this call _ZN5ftxui19TerminalInputParser7CurrentEv; ftxui::TerminalInputParser::Current(void) movzx eax, al cmp eax, 7Fh jnz short loc_72A61 mov rdi, [rbp+var_20] mov esi, 3 call _ZN5ftxui19TerminalInputParser6OutputC2ENS0_4TypeE; ftxui::TerminalInputParser::Output::Output(ftxui::TerminalInputParser::Type) jmp short loc_72A6E loc_72A61: mov rsi, [rbp+var_10] mov rdi, [rbp+var_20]; this call _ZN5ftxui19TerminalInputParser9ParseUTF8Ev; ftxui::TerminalInputParser::ParseUTF8(void) loc_72A6E: mov rax, [rbp+var_18] add rsp, 30h pop rbp retn
ftxui::TerminalInputParser * ftxui::TerminalInputParser::Parse( ftxui::TerminalInputParser *this, ftxui::TerminalInputParser *a2) { char v2; // al unsigned __int8 v3; // al if ( (ftxui::TerminalInputParser::Eat(a2) & 1) != 0 ) { v2 = ftxui::TerminalInputParser::Current(a2); if ( v2 == 24 || v2 == 26 ) { ftxui::TerminalInputParser::Output::Output(this, 1LL); } else if ( v2 == 27 ) { ftxui::TerminalInputParser::ParseESC(this); } else { v3 = ftxui::TerminalInputParser::Current(a2); if ( v3 < 0x20u || (unsigned __int8)ftxui::TerminalInputParser::Current(a2) == 127 ) ftxui::TerminalInputParser::Output::Output(this, 3LL); else ftxui::TerminalInputParser::ParseUTF8(this); } } else { ftxui::TerminalInputParser::Output::Output(this, 0LL); } return this; }
Parse: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x8],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x10],RDI CALL 0x00172ab0 TEST AL,0x1 JNZ 0x001729d5 MOV RDI,qword ptr [RBP + -0x20] XOR ESI,ESI CALL 0x00173b90 JMP 0x00172a6e LAB_001729d5: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00172a80 MOVZX ECX,AL MOV dword ptr [RBP + -0x24],ECX SUB AL,0x18 JZ 0x001729fe JMP 0x001729ea LAB_001729ea: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0x1a JZ 0x001729fe JMP 0x001729f4 LAB_001729f4: MOV EAX,dword ptr [RBP + -0x24] SUB EAX,0x1b JZ 0x00172a0e JMP 0x00172a1d LAB_001729fe: MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x1 CALL 0x00173b90 JMP 0x00172a6e LAB_00172a0e: MOV RSI,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RBP + -0x20] CALL 0x00172af0 JMP 0x00172a6e LAB_00172a1d: JMP 0x00172a1f LAB_00172a1f: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00172a80 MOVZX EAX,AL CMP EAX,0x20 JGE 0x00172a40 MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x3 CALL 0x00173b90 JMP 0x00172a6e LAB_00172a40: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00172a80 MOVZX EAX,AL CMP EAX,0x7f JNZ 0x00172a61 MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x3 CALL 0x00173b90 JMP 0x00172a6e LAB_00172a61: MOV RSI,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RBP + -0x20] CALL 0x00172bb0 LAB_00172a6e: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x30 POP RBP RET
/* ftxui::TerminalInputParser::Parse() */ Output * ftxui::TerminalInputParser::Parse(void) { char cVar1; byte bVar2; ulong uVar3; TerminalInputParser *in_RSI; Output *in_RDI; uVar3 = Eat(in_RSI); if ((uVar3 & 1) == 0) { Output::Output(in_RDI,0); } else { cVar1 = Current(in_RSI); if ((cVar1 == '\x18') || (cVar1 == '\x1a')) { Output::Output(in_RDI,1); } else if (cVar1 == '\x1b') { ParseESC(); } else { bVar2 = Current(in_RSI); if (bVar2 < 0x20) { Output::Output(in_RDI,3); } else { cVar1 = Current(in_RSI); if (cVar1 == '\x7f') { Output::Output(in_RDI,3); } else { ParseUTF8(); } } } } return in_RDI; }
59,714
my_uca_implicit_weight_put
eloqsql/strings/ctype-uca.c
static inline void my_uca_implicit_weight_put(uint16 *to, my_wc_t code, uint level) { switch (level) { case 1: to[0]= 0x0020; to[1]= 0; break; /* Secondary level */ case 2: to[0]= 0x0002; to[1]= 0; break; /* Tertiary level */ case 3: to[0]= 0x0001; to[1]= 0; break; /* Quaternary level */ default: DBUG_ASSERT(0); case 0: break; } /* Primary level */ to[0]= (uint16)(code >> 15) + my_uca_implicit_weight_base(code); to[1]= (code & 0x7FFF) | 0x8000; to[2]= 0; }
O0
c
my_uca_implicit_weight_put: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq %rax, -0x20(%rbp) subq $0x3, %rax ja 0x509a3 movq -0x20(%rbp), %rax leaq 0xf15a1(%rip), %rcx # 0x141efc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x8(%rbp), %rax movw $0x20, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x509ab movq -0x8(%rbp), %rax movw $0x2, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x509ab movq -0x8(%rbp), %rax movw $0x1, (%rax) movq -0x8(%rbp), %rax movw $0x0, 0x2(%rax) jmp 0x509ab jmp 0x509a5 jmp 0x509a7 jmp 0x509a9 jmp 0x509ab movq -0x10(%rbp), %rax shrq $0xf, %rax movzwl %ax, %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rdi callq 0x50a10 movw %ax, %cx movl -0x24(%rbp), %eax movzwl %cx, %ecx addl %ecx, %eax movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, (%rax) movq -0x10(%rbp), %rax andq $0x7fff, %rax # imm = 0x7FFF orq $0x8000, %rax # imm = 0x8000 movw %ax, %cx movq -0x8(%rbp), %rax movw %cx, 0x2(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x4(%rax) addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_uca_implicit_weight_put: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov [rbp+var_20], rax sub rax, 3; switch 4 cases ja short def_50962; jumptable 0000000000050962 default case mov rax, [rbp+var_20] lea rcx, jpt_50962 movsxd rax, ds:(jpt_50962 - 141EFCh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_50964: mov rax, [rbp+var_8]; jumptable 0000000000050962 case 1 mov word ptr [rax], 20h ; ' ' mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_509AB loc_50979: mov rax, [rbp+var_8]; jumptable 0000000000050962 case 2 mov word ptr [rax], 2 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_509AB loc_5098E: mov rax, [rbp+var_8]; jumptable 0000000000050962 case 3 mov word ptr [rax], 1 mov rax, [rbp+var_8] mov word ptr [rax+2], 0 jmp short loc_509AB def_50962: jmp short $+2; jumptable 0000000000050962 default case loc_509A5: jmp short $+2 loc_509A7: jmp short $+2; jumptable 0000000000050962 case 0 loc_509A9: jmp short $+2; jumptable 0000000000050962 case 0 loc_509AB: mov rax, [rbp+var_10] shr rax, 0Fh movzx eax, ax mov [rbp+var_24], eax mov rdi, [rbp+var_10] call my_uca_implicit_weight_base mov cx, ax mov eax, [rbp+var_24] movzx ecx, cx add eax, ecx mov cx, ax mov rax, [rbp+var_8] mov [rax], cx mov rax, [rbp+var_10] and rax, 7FFFh or rax, 8000h mov cx, ax mov rax, [rbp+var_8] mov [rax+2], cx mov rax, [rbp+var_8] mov word ptr [rax+4], 0 add rsp, 30h pop rbp retn
_WORD * my_uca_implicit_weight_put(_WORD *a1, unsigned long long a2, int a3) { _WORD *result; // rax switch ( a3 ) { case 1: *a1 = 32; a1[1] = 0; break; case 2: *a1 = 2; a1[1] = 0; break; case 3: *a1 = 1; a1[1] = 0; break; default: break; } *a1 = my_uca_implicit_weight_base(a2) + (a2 >> 15); a1[1] = a2 & 0x7FFF | 0x8000; result = a1; a1[2] = 0; return result; }
my_uca_implicit_weight_put: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV qword ptr [RBP + -0x20],RAX SUB RAX,0x3 JA 0x001509a3 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x241efc] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x20 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x001509ab caseD_2: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x2 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x001509ab caseD_3: MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],0x1 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],0x0 JMP 0x001509ab LAB_001509a3: JMP 0x001509a5 LAB_001509a5: JMP 0x001509a7 LAB_001509a7: JMP 0x001509a9 caseD_0: JMP 0x001509ab LAB_001509ab: MOV RAX,qword ptr [RBP + -0x10] SHR RAX,0xf MOVZX EAX,AX MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x10] CALL 0x00150a10 MOV CX,AX MOV EAX,dword ptr [RBP + -0x24] MOVZX ECX,CX ADD EAX,ECX MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x10] AND RAX,0x7fff OR RAX,0x8000 MOV CX,AX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x2],CX MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x4],0x0 ADD RSP,0x30 POP RBP RET
void my_uca_implicit_weight_put(short *param_1,ulong param_2,int4 param_3) { short sVar1; switch(param_3) { default: break; case 1: *param_1 = 0x20; param_1[1] = 0; break; case 2: *param_1 = 2; param_1[1] = 0; break; case 3: *param_1 = 1; param_1[1] = 0; } sVar1 = my_uca_implicit_weight_base(param_2); *param_1 = (short)(param_2 >> 0xf) + sVar1; param_1[1] = (ushort)param_2 & 0x7fff | 0x8000; param_1[2] = 0; return; }
59,715
ma_freeze_size
eloqsql/libmariadb/libmariadb/ma_array.c
void ma_freeze_size(DYNAMIC_ARRAY *array) { uint elements=max(array->elements,1); if (array->buffer && array->max_element != elements) { array->buffer=(char*) realloc(array->buffer, elements*array->size_of_element); array->max_element=elements; } }
O0
c
ma_freeze_size: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpl $0x1, 0x8(%rax) jbe 0x462d2 movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x10(%rbp) jmp 0x462dc movl $0x1, %eax movl %eax, -0x10(%rbp) jmp 0x462dc movl -0x10(%rbp), %eax movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, (%rax) je 0x46327 movq -0x8(%rbp), %rax movl 0xc(%rax), %eax cmpl -0xc(%rbp), %eax je 0x46327 movq -0x8(%rbp), %rax movq (%rax), %rdi movl -0xc(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %esi callq 0x13700 movq %rax, %rcx movq -0x8(%rbp), %rax movq %rcx, (%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xc(%rax) addq $0x10, %rsp popq %rbp retq nopl (%rax)
ma_freeze_size: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp dword ptr [rax+8], 1 jbe short loc_462D2 mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_10], eax jmp short loc_462DC loc_462D2: mov eax, 1 mov [rbp+var_10], eax jmp short $+2 loc_462DC: mov eax, [rbp+var_10] mov [rbp+var_C], eax mov rax, [rbp+var_8] cmp qword ptr [rax], 0 jz short loc_46327 mov rax, [rbp+var_8] mov eax, [rax+0Ch] cmp eax, [rbp+var_C] jz short loc_46327 mov rax, [rbp+var_8] mov rdi, [rax] mov eax, [rbp+var_C] mov rcx, [rbp+var_8] imul eax, [rcx+14h] mov eax, eax mov esi, eax call _realloc mov rcx, rax mov rax, [rbp+var_8] mov [rax], rcx mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+0Ch], ecx loc_46327: add rsp, 10h pop rbp retn
long long ma_freeze_size(long long a1) { long long result; // rax int v2; // [rsp+0h] [rbp-10h] if ( *(_DWORD *)(a1 + 8) <= 1u ) v2 = 1; else v2 = *(_DWORD *)(a1 + 8); result = a1; if ( *(_QWORD *)a1 ) { result = *(unsigned int *)(a1 + 12); if ( (_DWORD)result != v2 ) { *(_QWORD *)a1 = realloc(*(_QWORD *)a1, (unsigned int)(*(_DWORD *)(a1 + 20) * v2)); result = a1; *(_DWORD *)(a1 + 12) = v2; } } return result; }
ma_freeze_size: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x8],0x1 JBE 0x001462d2 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x10],EAX JMP 0x001462dc LAB_001462d2: MOV EAX,0x1 MOV dword ptr [RBP + -0x10],EAX JMP 0x001462dc LAB_001462dc: MOV EAX,dword ptr [RBP + -0x10] MOV dword ptr [RBP + -0xc],EAX MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX],0x0 JZ 0x00146327 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0xc] CMP EAX,dword ptr [RBP + -0xc] JZ 0x00146327 MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV ESI,EAX CALL 0x00113700 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX],RCX MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],ECX LAB_00146327: ADD RSP,0x10 POP RBP RET
void ma_freeze_size(long *param_1) { void *pvVar1; int local_18; if (*(uint *)(param_1 + 1) < 2) { local_18 = 1; } else { local_18 = (int)param_1[1]; } if ((*param_1 != 0) && (*(int *)((long)param_1 + 0xc) != local_18)) { pvVar1 = realloc((void *)*param_1,(ulong)(uint)(local_18 * *(int *)((long)param_1 + 0x14))); *param_1 = (long)pvVar1; *(int *)((long)param_1 + 0xc) = local_18; } return; }
59,716
plutovg_paint_create_radial_gradient
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-paint.c
plutovg_paint_t* plutovg_paint_create_radial_gradient(float cx, float cy, float cr, float fx, float fy, float fr, plutovg_spread_method_t spread, const plutovg_gradient_stop_t* stops, int nstops, const plutovg_matrix_t* matrix) { plutovg_gradient_paint_t* gradient = plutovg_gradient_create(PLUTOVG_GRADIENT_TYPE_RADIAL, spread, stops, nstops, matrix); gradient->values[0] = cx; gradient->values[1] = cy; gradient->values[2] = cr; gradient->values[3] = fx; gradient->values[4] = fy; gradient->values[5] = fr; return &gradient->base; }
O0
c
plutovg_paint_create_radial_gradient: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movss %xmm0, -0x4(%rbp) movss %xmm1, -0x8(%rbp) movss %xmm2, -0xc(%rbp) movss %xmm3, -0x10(%rbp) movss %xmm4, -0x14(%rbp) movss %xmm5, -0x18(%rbp) movl %edi, -0x1c(%rbp) movq %rsi, -0x28(%rbp) movl %edx, -0x2c(%rbp) movq %rcx, -0x38(%rbp) movl -0x1c(%rbp), %esi movq -0x28(%rbp), %rdx movl -0x2c(%rbp), %ecx movq -0x38(%rbp), %r8 movl $0x1, %edi callq 0xe730 movq %rax, -0x40(%rbp) movss -0x4(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x34(%rax) movss -0x8(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x38(%rax) movss -0xc(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x3c(%rax) movss -0x10(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x40(%rax) movss -0x14(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x44(%rax) movss -0x18(%rbp), %xmm0 movq -0x40(%rbp), %rax movss %xmm0, 0x48(%rax) movq -0x40(%rbp), %rax addq $0x40, %rsp popq %rbp retq nop
plutovg_paint_create_radial_gradient: push rbp mov rbp, rsp sub rsp, 40h movss [rbp+var_4], xmm0 movss [rbp+var_8], xmm1 movss [rbp+var_C], xmm2 movss [rbp+var_10], xmm3 movss [rbp+var_14], xmm4 movss [rbp+var_18], xmm5 mov [rbp+var_1C], edi mov [rbp+var_28], rsi mov [rbp+var_2C], edx mov [rbp+var_38], rcx mov esi, [rbp+var_1C] mov rdx, [rbp+var_28] mov ecx, [rbp+var_2C] mov r8, [rbp+var_38] mov edi, 1 call plutovg_gradient_create mov [rbp+var_40], rax movss xmm0, [rbp+var_4] mov rax, [rbp+var_40] movss dword ptr [rax+34h], xmm0 movss xmm0, [rbp+var_8] mov rax, [rbp+var_40] movss dword ptr [rax+38h], xmm0 movss xmm0, [rbp+var_C] mov rax, [rbp+var_40] movss dword ptr [rax+3Ch], xmm0 movss xmm0, [rbp+var_10] mov rax, [rbp+var_40] movss dword ptr [rax+40h], xmm0 movss xmm0, [rbp+var_14] mov rax, [rbp+var_40] movss dword ptr [rax+44h], xmm0 movss xmm0, [rbp+var_18] mov rax, [rbp+var_40] movss dword ptr [rax+48h], xmm0 mov rax, [rbp+var_40] add rsp, 40h pop rbp retn
float * plutovg_paint_create_radial_gradient( int a1, long long a2, int a3, _QWORD *a4, float a5, float a6, float a7, float a8, float a9, float a10) { float *result; // rax result = (float *)plutovg_gradient_create(1, a1, a2, a3, a4); result[13] = a5; result[14] = a6; result[15] = a7; result[16] = a8; result[17] = a9; result[18] = a10; return result; }
plutovg_paint_create_radial_gradient: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOVSS dword ptr [RBP + -0x4],XMM0 MOVSS dword ptr [RBP + -0x8],XMM1 MOVSS dword ptr [RBP + -0xc],XMM2 MOVSS dword ptr [RBP + -0x10],XMM3 MOVSS dword ptr [RBP + -0x14],XMM4 MOVSS dword ptr [RBP + -0x18],XMM5 MOV dword ptr [RBP + -0x1c],EDI MOV qword ptr [RBP + -0x28],RSI MOV dword ptr [RBP + -0x2c],EDX MOV qword ptr [RBP + -0x38],RCX MOV ESI,dword ptr [RBP + -0x1c] MOV RDX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RBP + -0x2c] MOV R8,qword ptr [RBP + -0x38] MOV EDI,0x1 CALL 0x0010e730 MOV qword ptr [RBP + -0x40],RAX MOVSS XMM0,dword ptr [RBP + -0x4] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x34],XMM0 MOVSS XMM0,dword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x38],XMM0 MOVSS XMM0,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x3c],XMM0 MOVSS XMM0,dword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x40],XMM0 MOVSS XMM0,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x44],XMM0 MOVSS XMM0,dword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x40] MOVSS dword ptr [RAX + 0x48],XMM0 MOV RAX,qword ptr [RBP + -0x40] ADD RSP,0x40 POP RBP RET
long plutovg_paint_create_radial_gradient (int4 param_1,int4 param_2,int4 param_3,int4 param_4, int4 param_5,int4 param_6,int4 param_7,int8 param_8, int4 param_9,int8 param_10) { long lVar1; lVar1 = plutovg_gradient_create(1,param_7,param_8,param_9,param_10); *(int4 *)(lVar1 + 0x34) = param_1; *(int4 *)(lVar1 + 0x38) = param_2; *(int4 *)(lVar1 + 0x3c) = param_3; *(int4 *)(lVar1 + 0x40) = param_4; *(int4 *)(lVar1 + 0x44) = param_5; *(int4 *)(lVar1 + 0x48) = param_6; return lVar1; }
59,717
translog_read_record_header_from_buffer
eloqsql/storage/maria/ma_loghandler.c
int translog_read_record_header_from_buffer(uchar *page, uint16 page_offset, TRANSLOG_HEADER_BUFFER *buff, TRANSLOG_SCANNER_DATA *scanner) { translog_size_t res; DBUG_ENTER("translog_read_record_header_from_buffer"); DBUG_PRINT("info", ("page byte: 0x%x offset: %u", (uint) page[page_offset], (uint) page_offset)); DBUG_ASSERT(translog_is_LSN_chunk(page[page_offset])); DBUG_ASSERT(translog_status == TRANSLOG_OK || translog_status == TRANSLOG_READONLY); buff->type= (page[page_offset] & TRANSLOG_REC_TYPE); buff->short_trid= uint2korr(page + page_offset + 1); DBUG_PRINT("info", ("Type %u, Short TrID %u, LSN " LSN_FMT, (uint) buff->type, (uint)buff->short_trid, LSN_IN_PARTS(buff->lsn))); /* Read required bytes from the header and call hook */ switch (log_record_type_descriptor[buff->type].rclass) { case LOGRECTYPE_VARIABLE_LENGTH: res= translog_variable_length_header(page, page_offset, buff, scanner); break; case LOGRECTYPE_PSEUDOFIXEDLENGTH: case LOGRECTYPE_FIXEDLENGTH: res= translog_fixed_length_header(page, page_offset, buff); break; default: DBUG_ASSERT(0); /* we read some junk (got no LSN) */ res= RECHEADER_READ_ERROR; } DBUG_RETURN(res); }
O0
c
translog_read_record_header_from_buffer: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movw %si, %ax movq %rdi, -0x8(%rbp) movw %ax, -0xa(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) jmp 0x54ded jmp 0x54def jmp 0x54df1 jmp 0x54df3 jmp 0x54df5 movq -0x8(%rbp), %rax movzwl -0xa(%rbp), %ecx movzbl (%rax,%rcx), %ecx andl $0x3f, %ecx movq -0x18(%rbp), %rax movl %ecx, 0x420(%rax) movq -0x8(%rbp), %rax movzwl -0xa(%rbp), %ecx movslq %ecx, %rcx movw 0x1(%rax,%rcx), %cx movq -0x18(%rbp), %rax movw %cx, 0x10(%rax) jmp 0x54e28 movq -0x18(%rbp), %rax movl 0x420(%rax), %eax leaq (%rax,%rax,8), %rcx leaq 0x423383(%rip), %rax # 0x4781c0 movl (%rax,%rcx,8), %eax movl %eax, -0x28(%rbp) subl $0x1, %eax je 0x54e57 jmp 0x54e4a movl -0x28(%rbp), %eax addl $-0x2, %eax subl $0x2, %eax jb 0x54e71 jmp 0x54e87 movq -0x8(%rbp), %rdi movzwl -0xa(%rbp), %esi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0x54eb0 movl %eax, -0x24(%rbp) jmp 0x54e92 movq -0x8(%rbp), %rdi movzwl -0xa(%rbp), %esi movq -0x18(%rbp), %rdx callq 0x55760 movl %eax, -0x24(%rbp) jmp 0x54e92 jmp 0x54e89 jmp 0x54e8b movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF jmp 0x54e94 movl -0x24(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
translog_read_record_header_from_buffer: push rbp mov rbp, rsp sub rsp, 30h mov ax, si mov [rbp+var_8], rdi mov [rbp+var_A], ax mov [rbp+var_18], rdx mov [rbp+var_20], rcx jmp short $+2 loc_54DED: jmp short $+2 loc_54DEF: jmp short $+2 loc_54DF1: jmp short $+2 loc_54DF3: jmp short $+2 loc_54DF5: mov rax, [rbp+var_8] movzx ecx, [rbp+var_A] movzx ecx, byte ptr [rax+rcx] and ecx, 3Fh mov rax, [rbp+var_18] mov [rax+420h], ecx mov rax, [rbp+var_8] movzx ecx, [rbp+var_A] movsxd rcx, ecx mov cx, [rax+rcx+1] mov rax, [rbp+var_18] mov [rax+10h], cx jmp short $+2 loc_54E28: mov rax, [rbp+var_18] mov eax, [rax+420h] lea rcx, [rax+rax*8] lea rax, log_record_type_descriptor mov eax, [rax+rcx*8] mov [rbp+var_28], eax sub eax, 1 jz short loc_54E57 jmp short $+2 loc_54E4A: mov eax, [rbp+var_28] add eax, 0FFFFFFFEh sub eax, 2 jb short loc_54E71 jmp short loc_54E87 loc_54E57: mov rdi, [rbp+var_8] movzx esi, [rbp+var_A] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] call translog_variable_length_header mov [rbp+var_24], eax jmp short loc_54E92 loc_54E71: mov rdi, [rbp+var_8] movzx esi, [rbp+var_A] mov rdx, [rbp+var_18] call translog_fixed_length_header mov [rbp+var_24], eax jmp short loc_54E92 loc_54E87: jmp short $+2 loc_54E89: jmp short $+2 loc_54E8B: mov [rbp+var_24], 0FFFFFFFFh loc_54E92: jmp short $+2 loc_54E94: mov eax, [rbp+var_24] mov [rbp+var_2C], eax mov eax, [rbp+var_2C] add rsp, 30h pop rbp retn
long long translog_read_record_header_from_buffer(long long a1, unsigned __int16 a2, long long a3, long long a4) { int v5; // [rsp+8h] [rbp-28h] *(_DWORD *)(a3 + 1056) = *(_BYTE *)(a1 + a2) & 0x3F; *(_WORD *)(a3 + 16) = *(_WORD *)(a1 + a2 + 1); v5 = log_record_type_descriptor[18 * *(unsigned int *)(a3 + 1056)]; if ( v5 == 1 ) { return (unsigned int)translog_variable_length_header(a1, a2, a3, a4); } else if ( (unsigned int)(v5 - 2) < 2 ) { return (unsigned int)translog_fixed_length_header(a1, a2, a3); } else { return (unsigned int)-1; } }
translog_read_record_header_from_buffer: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AX,SI MOV qword ptr [RBP + -0x8],RDI MOV word ptr [RBP + -0xa],AX MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX JMP 0x00154ded LAB_00154ded: JMP 0x00154def LAB_00154def: JMP 0x00154df1 LAB_00154df1: JMP 0x00154df3 LAB_00154df3: JMP 0x00154df5 LAB_00154df5: MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RBP + -0xa] MOVZX ECX,byte ptr [RAX + RCX*0x1] AND ECX,0x3f MOV RAX,qword ptr [RBP + -0x18] MOV dword ptr [RAX + 0x420],ECX MOV RAX,qword ptr [RBP + -0x8] MOVZX ECX,word ptr [RBP + -0xa] MOVSXD RCX,ECX MOV CX,word ptr [RAX + RCX*0x1 + 0x1] MOV RAX,qword ptr [RBP + -0x18] MOV word ptr [RAX + 0x10],CX JMP 0x00154e28 LAB_00154e28: MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x420] LEA RCX,[RAX + RAX*0x8] LEA RAX,[0x5781c0] MOV EAX,dword ptr [RAX + RCX*0x8] MOV dword ptr [RBP + -0x28],EAX SUB EAX,0x1 JZ 0x00154e57 JMP 0x00154e4a LAB_00154e4a: MOV EAX,dword ptr [RBP + -0x28] ADD EAX,-0x2 SUB EAX,0x2 JC 0x00154e71 JMP 0x00154e87 LAB_00154e57: MOV RDI,qword ptr [RBP + -0x8] MOVZX ESI,word ptr [RBP + -0xa] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] CALL 0x00154eb0 MOV dword ptr [RBP + -0x24],EAX JMP 0x00154e92 LAB_00154e71: MOV RDI,qword ptr [RBP + -0x8] MOVZX ESI,word ptr [RBP + -0xa] MOV RDX,qword ptr [RBP + -0x18] CALL 0x00155760 MOV dword ptr [RBP + -0x24],EAX JMP 0x00154e92 LAB_00154e87: JMP 0x00154e89 LAB_00154e89: JMP 0x00154e8b LAB_00154e8b: MOV dword ptr [RBP + -0x24],0xffffffff LAB_00154e92: JMP 0x00154e94 LAB_00154e94: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x2c],EAX MOV EAX,dword ptr [RBP + -0x2c] ADD RSP,0x30 POP RBP RET
int4 translog_read_record_header_from_buffer(long param_1,ushort param_2,long param_3,int8 param_4) { int4 local_2c; *(uint *)(param_3 + 0x420) = *(byte *)(param_1 + (ulong)param_2) & 0x3f; *(int2 *)(param_3 + 0x10) = *(int2 *)(param_1 + 1 + (long)(int)(uint)param_2); if (*(int *)(log_record_type_descriptor + (ulong)*(uint *)(param_3 + 0x420) * 0x48) == 1) { local_2c = translog_variable_length_header(param_1,param_2,param_3,param_4); } else if (*(int *)(log_record_type_descriptor + (ulong)*(uint *)(param_3 + 0x420) * 0x48) - 2U < 2) { local_2c = translog_fixed_length_header(param_1,param_2,param_3); } else { local_2c = 0xffffffff; } return local_2c; }
59,718
convert_pipe
eloqsql/extra/replace.c
static int convert_pipe(REPLACE *rep, FILE *in, FILE *out) { int retain,error; uint length; char save_char,*end_of_line,*start_of_line; DBUG_ENTER("convert_pipe"); updated=retain=0; reset_buffer(); while ((error=fill_buffer_retaining(my_fileno(in),retain)) > 0) { end_of_line=buffer ; buffer[bufbytes]=0; /* Sentinel */ for (;;) { start_of_line=end_of_line; while (end_of_line[0] != '\n' && end_of_line[0]) end_of_line++; if (end_of_line == buffer+bufbytes) { retain= (int) (end_of_line - start_of_line); break; /* No end of line, read more */ } save_char=end_of_line[0]; end_of_line[0]=0; end_of_line++; if ((length=replace_strings(rep,&out_buff,&out_length,start_of_line)) == (uint) -1) return 1; if (!my_eof) out_buff[length++]=save_char; /* Don't write added newline */ if (my_fwrite(out, (uchar*) out_buff, length, MYF(MY_WME | MY_NABP))) DBUG_RETURN(1); } } DBUG_RETURN(error); }
O3
c
convert_pipe: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, -0x40(%rbp) movq %rsi, %r15 xorl %r14d, %r14d movb %r14b, 0x340b44(%rip) # 0x366bf0 movb %r14b, 0x340b25(%rip) # 0x366bd8 movl $0x0, 0x340b1f(%rip) # 0x366bdc movq %rdi, -0x30(%rbp) leaq 0x808(%rdi), %rax movq %rax, -0x50(%rbp) movq %r15, %rdi callq 0x27562 movl %eax, %r13d movl 0x340aeb(%rip), %edx # 0x366bc8 movl %edx, %ecx subl %r14d, %ecx movl 0x340adc(%rip), %eax # 0x366bc4 cmpl %eax, %ecx jle 0x260f5 movq 0x340add(%rip), %rax # 0x366bd0 jmp 0x26134 addl %edx, %edx addl %eax, %eax movl %edx, %ecx subl %r14d, %ecx cmpl %eax, %ecx jle 0x260f5 movl %edx, 0x340ac0(%rip) # 0x366bc8 movl %eax, 0x340ab6(%rip) # 0x366bc4 movq 0x340abb(%rip), %rsi # 0x366bd0 orl $0x1, %edx movl $0x10, %ecx xorl %edi, %edi callq 0x2803c movq %rax, 0x340aa5(%rip) # 0x366bd0 testq %rax, %rax je 0x263ff movslq 0x340aa1(%rip), %rsi # 0x366bdc addq %rax, %rsi movslq %r14d, %rbx subq %rbx, %rsi movl %r14d, %edx movq %rax, %rdi callq 0x245d0 movl %r14d, 0x340a86(%rip) # 0x366bdc xorl %r12d, %r12d cmpb $0x0, 0x340a78(%rip) # 0x366bd8 jne 0x263ed addq 0x340a63(%rip), %rbx # 0x366bd0 movslq 0x340a50(%rip), %rdx # 0x366bc4 movl $0x10, %ecx movl %r13d, %edi movq %rbx, %rsi callq 0x28738 testl %eax, %eax js 0x263ff sete %dl movl 0x340a47(%rip), %esi # 0x366bdc movl %esi, %ecx testl %esi, %esi setg %sil andb %dl, %sil cmpb $0x1, %sil jne 0x261d5 movq 0x340a23(%rip), %rax # 0x366bd0 cmpb $0xa, -0x1(%rax,%rcx) movl $0x2000, %ebx # imm = 0x2000 je 0x263ed movb $0x1, 0x340a14(%rip) # 0x366bd8 movb $0xa, (%rax,%rcx) incl %ecx movl %ecx, 0x340a0c(%rip) # 0x366bdc movq %rax, %rdx jmp 0x261f1 addl %eax, %ecx movl %ecx, 0x3409ff(%rip) # 0x366bdc testl %eax, %eax movl $0x2000, %ebx # imm = 0x2000 je 0x263ed movq 0x3409df(%rip), %rdx # 0x366bd0 movslq %ecx, %rax movb $0x0, (%rdx,%rax) movq %rdx, %rax movq %r15, -0x38(%rbp) movq %rax, %r12 xorl %r14d, %r14d movzbl (%rax), %r13d testl %r13d, %r13d je 0x2621c cmpl $0xa, %r13d je 0x2621c incq %rax incl %r14d jmp 0x26205 movq %rax, %rcx movslq 0x3409b6(%rip), %rax # 0x366bdc addq 0x3409a3(%rip), %rax # 0x366bd0 cmpq %rax, %rcx je 0x260cc movq %rcx, %rax movb $0x0, (%rcx) incq %rax movq %rax, -0x48(%rbp) movq 0x34099e(%rip), %rcx # 0x366be8 movl 0x340990(%rip), %eax # 0x366be0 leaq (%rcx,%rax), %r15 decq %r15 movq -0x50(%rbp), %rax cmpb $0x0, (%rax) je 0x26265 movq %rax, %r14 jmp 0x262d4 movq %rax, %r14 movzbl (%r12), %eax movq 0x8(%r14,%rax,8), %r14 cmpq %r15, %rcx jne 0x262c6 movl 0x340963(%rip), %edx # 0x366be0 addl %ebx, %edx movl %edx, 0x34095b(%rip) # 0x366be0 movq 0x34095c(%rip), %rsi # 0x366be8 movl $0x10, %ecx xorl %edi, %edi callq 0x2803c testq %rax, %rax je 0x263e7 subq 0x340940(%rip), %r15 # 0x366be8 addq %rax, %r15 movq %rax, 0x340936(%rip) # 0x366be8 movl 0x340928(%rip), %edx # 0x366be0 movq %r15, %rcx leaq (%rax,%rdx), %r15 decq %r15 movb (%r12), %al incq %r12 movb %al, (%rcx) incq %rcx cmpb $0x0, (%r14) je 0x26268 movq 0x8(%r14), %rbx testq %rbx, %rbx je 0x2638f movb $0x1, 0x340908(%rip) # 0x366bf0 movl 0x10(%r14), %eax subq %rax, %rcx movb (%rbx), %al testb %al, %al je 0x26359 incq %rbx cmpq %r15, %rcx jne 0x2634b movl 0x3408dd(%rip), %edx # 0x366be0 addl %edx, %edx movl %edx, 0x3408d5(%rip) # 0x366be0 movq 0x3408d6(%rip), %rsi # 0x366be8 movl $0x10, %ecx xorl %edi, %edi callq 0x2803c testq %rax, %rax je 0x263e7 subq 0x3408ba(%rip), %r15 # 0x366be8 addq %rax, %r15 movq %rax, 0x3408b0(%rip) # 0x366be8 movl 0x3408a2(%rip), %edx # 0x366be0 movq %r15, %rcx leaq (%rax,%rdx), %r15 decq %r15 movb -0x1(%rbx), %al movb %al, (%rcx) incq %rcx movb (%rbx), %al incq %rbx testb %al, %al jne 0x262f8 movslq 0x14(%r14), %rax subq %rax, %r12 cmpb $0x0, (%r12) movq -0x30(%rbp), %rax movl $0x2000, %ebx # imm = 0x2000 jne 0x2625b cmpb $0x2, (%r14) movq -0x30(%rbp), %rax je 0x2625b movq 0x34085f(%rip), %rsi # 0x366be8 subl %esi, %ecx movl %ecx, %eax jmp 0x263a1 movq 0x340852(%rip), %rsi # 0x366be8 movl %esi, %eax notl %eax addl %ecx, %eax movl $0x2000, %ebx # imm = 0x2000 movl $0x1, %r12d cmpl $-0x1, %eax movq -0x38(%rbp), %r15 je 0x263ed cmpb $0x0, 0x340821(%rip) # 0x366bd8 jne 0x263c8 movl %eax, %ecx incl %eax movb %r13b, (%rsi,%rcx) movq 0x340820(%rip), %rsi # 0x366be8 movl %eax, %edx movl $0x14, %ecx movq -0x40(%rbp), %rdi callq 0x2756c testq %rax, %rax movq -0x48(%rbp), %rax je 0x261ff jmp 0x263ed movl $0x1, %r12d movl %r12d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %r12d # imm = 0xFFFFFFFF jmp 0x263ed
convert_pipe: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_40], rdx mov r15, rsi xor r14d, r14d mov cs:updated, r14b mov cs:my_eof, r14b mov cs:bufbytes, 0 mov [rbp+var_30], rdi lea rax, [rdi+808h] mov [rbp+var_50], rax loc_260CC: mov rdi, r15 call my_fileno mov r13d, eax mov edx, cs:bufalloc mov ecx, edx sub ecx, r14d mov eax, cs:bufread cmp ecx, eax jle short loc_260F5 mov rax, cs:buffer jmp short loc_26134 loc_260F5: add edx, edx add eax, eax mov ecx, edx sub ecx, r14d cmp ecx, eax jle short loc_260F5 mov cs:bufalloc, edx mov cs:bufread, eax mov rsi, cs:buffer or edx, 1 mov ecx, 10h xor edi, edi call my_realloc mov cs:buffer, rax test rax, rax jz loc_263FF loc_26134: movsxd rsi, cs:bufbytes add rsi, rax movsxd rbx, r14d sub rsi, rbx mov edx, r14d mov rdi, rax call _memmove mov cs:bufbytes, r14d xor r12d, r12d cmp cs:my_eof, 0 jnz loc_263ED add rbx, cs:buffer movsxd rdx, cs:bufread mov ecx, 10h mov edi, r13d mov rsi, rbx call my_read test eax, eax js loc_263FF setz dl mov esi, cs:bufbytes mov ecx, esi test esi, esi setnle sil and sil, dl cmp sil, 1 jnz short loc_261D5 mov rax, cs:buffer cmp byte ptr [rax+rcx-1], 0Ah mov ebx, 2000h jz loc_263ED mov cs:my_eof, 1 mov byte ptr [rax+rcx], 0Ah inc ecx mov cs:bufbytes, ecx mov rdx, rax jmp short loc_261F1 loc_261D5: add ecx, eax mov cs:bufbytes, ecx test eax, eax mov ebx, 2000h jz loc_263ED mov rdx, cs:buffer loc_261F1: movsxd rax, ecx mov byte ptr [rdx+rax], 0 mov rax, rdx mov [rbp+var_38], r15 loc_261FF: mov r12, rax xor r14d, r14d loc_26205: movzx r13d, byte ptr [rax] test r13d, r13d jz short loc_2621C cmp r13d, 0Ah jz short loc_2621C inc rax inc r14d jmp short loc_26205 loc_2621C: mov rcx, rax movsxd rax, cs:bufbytes add rax, cs:buffer cmp rcx, rax jz loc_260CC mov rax, rcx mov byte ptr [rcx], 0 inc rax mov [rbp+var_48], rax mov rcx, cs:out_buff mov eax, cs:out_length lea r15, [rcx+rax] dec r15 mov rax, [rbp+var_50] loc_2625B: cmp byte ptr [rax], 0 jz short loc_26265 mov r14, rax jmp short loc_262D4 loc_26265: mov r14, rax loc_26268: movzx eax, byte ptr [r12] mov r14, [r14+rax*8+8] cmp rcx, r15 jnz short loc_262C6 mov edx, cs:out_length add edx, ebx mov cs:out_length, edx mov rsi, cs:out_buff mov ecx, 10h xor edi, edi call my_realloc test rax, rax jz loc_263E7 sub r15, cs:out_buff add r15, rax mov cs:out_buff, rax mov edx, cs:out_length mov rcx, r15 lea r15, [rax+rdx] dec r15 mov al, [r12] loc_262C6: inc r12 mov [rcx], al inc rcx cmp byte ptr [r14], 0 jz short loc_26268 loc_262D4: mov rbx, [r14+8] test rbx, rbx jz loc_2638F mov cs:updated, 1 mov eax, [r14+10h] sub rcx, rax mov al, [rbx] test al, al jz short loc_26359 inc rbx loc_262F8: cmp rcx, r15 jnz short loc_2634B mov edx, cs:out_length add edx, edx mov cs:out_length, edx mov rsi, cs:out_buff mov ecx, 10h xor edi, edi call my_realloc test rax, rax jz loc_263E7 sub r15, cs:out_buff add r15, rax mov cs:out_buff, rax mov edx, cs:out_length mov rcx, r15 lea r15, [rax+rdx] dec r15 mov al, [rbx-1] loc_2634B: mov [rcx], al inc rcx mov al, [rbx] inc rbx test al, al jnz short loc_262F8 loc_26359: movsxd rax, dword ptr [r14+14h] sub r12, rax cmp byte ptr [r12], 0 mov rax, [rbp+var_30] mov ebx, 2000h jnz loc_2625B cmp byte ptr [r14], 2 mov rax, [rbp+var_30] jz loc_2625B mov rsi, cs:out_buff sub ecx, esi mov eax, ecx jmp short loc_263A1 loc_2638F: mov rsi, cs:out_buff mov eax, esi not eax add eax, ecx mov ebx, 2000h loc_263A1: mov r12d, 1 cmp eax, 0FFFFFFFFh mov r15, [rbp+var_38] jz short loc_263ED cmp cs:my_eof, 0 jnz short loc_263C8 mov ecx, eax inc eax mov [rsi+rcx], r13b mov rsi, cs:out_buff loc_263C8: mov edx, eax mov ecx, 14h mov rdi, [rbp+var_40] call my_fwrite test rax, rax mov rax, [rbp+var_48] jz loc_261FF jmp short loc_263ED loc_263E7: mov r12d, 1 loc_263ED: mov eax, r12d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_263FF: mov r12d, 0FFFFFFFFh jmp short loc_263ED
long long convert_pipe(_BYTE *a1, long long a2, long long a3) { int i; // r14d unsigned int v5; // r13d int v6; // edx int v7; // eax long long v8; // rax unsigned int v9; // r12d int v10; // eax int v11; // ecx long long v12; // rax int v13; // ecx long long v14; // rdx _BYTE *v15; // rax _BYTE *v16; // r12 int v17; // r13d _BYTE *v18; // rcx long long v19; // r15 _BYTE *v20; // rax _BYTE *v21; // r14 long long v22; // rax long long v23; // r15 char *v24; // rbx char v25; // al char *v26; // rbx long long v27; // rax long long v28; // r15 long long v29; // rsi unsigned int v30; // eax long long v31; // rcx bool v32; // zf _BYTE *v34; // [rsp+8h] [rbp-48h] long long v36; // [rsp+18h] [rbp-38h] i = 0; updated = 0; my_eof = 0; bufbytes = 0; while ( 1 ) { v5 = my_fileno(a2); v6 = bufalloc; v7 = bufread; if ( bufalloc - i <= bufread ) { do { v6 *= 2; v7 *= 2; } while ( v6 - i <= v7 ); bufalloc = v6; bufread = v7; v8 = my_realloc(0LL, buffer, v6 | 1u, 16LL); buffer = v8; if ( !v8 ) return (unsigned int)-1; } else { v8 = buffer; } memmove(v8, v8 + bufbytes - i, (unsigned int)i); bufbytes = i; v9 = 0; if ( my_eof ) return v9; v10 = my_read(v5, buffer + i, bufread, 16LL); if ( v10 < 0 ) return (unsigned int)-1; v11 = bufbytes; if ( v10 != 0 || bufbytes <= 0 ) break; v12 = buffer; if ( *(_BYTE *)(buffer + (unsigned int)bufbytes - 1) == 10 ) return v9; my_eof = 1; *(_BYTE *)(buffer + (unsigned int)bufbytes) = 10; v13 = v11 + 1; bufbytes = v13; v14 = v12; LABEL_13: *(_BYTE *)(v14 + v13) = 0; v15 = (_BYTE *)v14; v36 = a2; while ( 1 ) { v16 = v15; for ( i = 0; ; ++i ) { v17 = (unsigned __int8)*v15; if ( !*v15 || v17 == 10 ) break; ++v15; } if ( v15 == (_BYTE *)(buffer + bufbytes) ) break; *v15 = 0; v34 = v15 + 1; v18 = (_BYTE *)out_buff; v19 = out_buff + (unsigned int)out_length - 1; v20 = a1 + 2056; while ( 1 ) { if ( !*v20 ) { v21 = v20; while ( 1 ) { v22 = (unsigned __int8)*v16; v21 = *(_BYTE **)&v21[8 * v22 + 8]; if ( v18 == (_BYTE *)v19 ) { out_length += 0x2000; v22 = my_realloc(0LL, out_buff, (unsigned int)out_length, 16LL); if ( !v22 ) return 1; v23 = v19 - out_buff; out_buff = v22; v18 = (_BYTE *)(v22 + v23); v19 = v22 + (unsigned int)out_length - 1; LOBYTE(v22) = *v16; } ++v16; *v18++ = v22; if ( *v21 ) goto LABEL_27; } } v21 = v20; LABEL_27: v24 = (char *)*((_QWORD *)v21 + 1); if ( !v24 ) break; updated = 1; v18 -= *((unsigned int *)v21 + 4); v25 = *v24; if ( *v24 ) { v26 = v24 + 1; do { if ( v18 == (_BYTE *)v19 ) { out_length *= 2; v27 = my_realloc(0LL, out_buff, (unsigned int)out_length, 16LL); if ( !v27 ) return 1; v28 = v19 - out_buff; out_buff = v27; v18 = (_BYTE *)(v27 + v28); v19 = v27 + (unsigned int)out_length - 1; v25 = *(v26 - 1); } *v18++ = v25; v25 = *v26++; } while ( v25 ); } v16 -= *((int *)v21 + 5); v20 = a1; if ( !*v16 ) { v20 = a1; if ( *v21 != 2 ) { v29 = out_buff; v30 = (_DWORD)v18 - out_buff; goto LABEL_38; } } } v29 = out_buff; v30 = (_DWORD)v18 + ~(_DWORD)out_buff; LABEL_38: v9 = 1; a2 = v36; if ( v30 != -1 ) { if ( !my_eof ) { v31 = v30++; *(_BYTE *)(v29 + v31) = v17; v29 = out_buff; } v32 = my_fwrite(a3, v29, v30, 20LL) == 0; v15 = v34; if ( v32 ) continue; } return v9; } } v13 = v10 + bufbytes; bufbytes += v10; if ( v10 ) { v14 = buffer; goto LABEL_13; } return v9; }
convert_pipe: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x40],RDX MOV R15,RSI XOR R14D,R14D MOV byte ptr [0x00466bf0],R14B MOV byte ptr [0x00466bd8],R14B MOV dword ptr [0x00466bdc],0x0 MOV qword ptr [RBP + -0x30],RDI LEA RAX,[RDI + 0x808] MOV qword ptr [RBP + -0x50],RAX LAB_001260cc: MOV RDI,R15 CALL 0x00127562 MOV R13D,EAX MOV EDX,dword ptr [0x00466bc8] MOV ECX,EDX SUB ECX,R14D MOV EAX,dword ptr [0x00466bc4] CMP ECX,EAX JLE 0x001260f5 MOV RAX,qword ptr [0x00466bd0] JMP 0x00126134 LAB_001260f5: ADD EDX,EDX ADD EAX,EAX MOV ECX,EDX SUB ECX,R14D CMP ECX,EAX JLE 0x001260f5 MOV dword ptr [0x00466bc8],EDX MOV dword ptr [0x00466bc4],EAX MOV RSI,qword ptr [0x00466bd0] OR EDX,0x1 MOV ECX,0x10 XOR EDI,EDI CALL 0x0012803c MOV qword ptr [0x00466bd0],RAX TEST RAX,RAX JZ 0x001263ff LAB_00126134: MOVSXD RSI,dword ptr [0x00466bdc] ADD RSI,RAX MOVSXD RBX,R14D SUB RSI,RBX MOV EDX,R14D MOV RDI,RAX CALL 0x001245d0 MOV dword ptr [0x00466bdc],R14D XOR R12D,R12D CMP byte ptr [0x00466bd8],0x0 JNZ 0x001263ed ADD RBX,qword ptr [0x00466bd0] MOVSXD RDX,dword ptr [0x00466bc4] MOV ECX,0x10 MOV EDI,R13D MOV RSI,RBX CALL 0x00128738 TEST EAX,EAX JS 0x001263ff SETZ DL MOV ESI,dword ptr [0x00466bdc] MOV ECX,ESI TEST ESI,ESI SETG SIL AND SIL,DL CMP SIL,0x1 JNZ 0x001261d5 MOV RAX,qword ptr [0x00466bd0] CMP byte ptr [RAX + RCX*0x1 + -0x1],0xa MOV EBX,0x2000 JZ 0x001263ed MOV byte ptr [0x00466bd8],0x1 MOV byte ptr [RAX + RCX*0x1],0xa INC ECX MOV dword ptr [0x00466bdc],ECX MOV RDX,RAX JMP 0x001261f1 LAB_001261d5: ADD ECX,EAX MOV dword ptr [0x00466bdc],ECX TEST EAX,EAX MOV EBX,0x2000 JZ 0x001263ed MOV RDX,qword ptr [0x00466bd0] LAB_001261f1: MOVSXD RAX,ECX MOV byte ptr [RDX + RAX*0x1],0x0 MOV RAX,RDX MOV qword ptr [RBP + -0x38],R15 LAB_001261ff: MOV R12,RAX XOR R14D,R14D LAB_00126205: MOVZX R13D,byte ptr [RAX] TEST R13D,R13D JZ 0x0012621c CMP R13D,0xa JZ 0x0012621c INC RAX INC R14D JMP 0x00126205 LAB_0012621c: MOV RCX,RAX MOVSXD RAX,dword ptr [0x00466bdc] ADD RAX,qword ptr [0x00466bd0] CMP RCX,RAX JZ 0x001260cc MOV RAX,RCX MOV byte ptr [RCX],0x0 INC RAX MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [0x00466be8] MOV EAX,dword ptr [0x00466be0] LEA R15,[RCX + RAX*0x1] DEC R15 MOV RAX,qword ptr [RBP + -0x50] LAB_0012625b: CMP byte ptr [RAX],0x0 JZ 0x00126265 MOV R14,RAX JMP 0x001262d4 LAB_00126265: MOV R14,RAX LAB_00126268: MOVZX EAX,byte ptr [R12] MOV R14,qword ptr [R14 + RAX*0x8 + 0x8] CMP RCX,R15 JNZ 0x001262c6 MOV EDX,dword ptr [0x00466be0] ADD EDX,EBX MOV dword ptr [0x00466be0],EDX MOV RSI,qword ptr [0x00466be8] MOV ECX,0x10 XOR EDI,EDI CALL 0x0012803c TEST RAX,RAX JZ 0x001263e7 SUB R15,qword ptr [0x00466be8] ADD R15,RAX MOV qword ptr [0x00466be8],RAX MOV EDX,dword ptr [0x00466be0] MOV RCX,R15 LEA R15,[RAX + RDX*0x1] DEC R15 MOV AL,byte ptr [R12] LAB_001262c6: INC R12 MOV byte ptr [RCX],AL INC RCX CMP byte ptr [R14],0x0 JZ 0x00126268 LAB_001262d4: MOV RBX,qword ptr [R14 + 0x8] TEST RBX,RBX JZ 0x0012638f MOV byte ptr [0x00466bf0],0x1 MOV EAX,dword ptr [R14 + 0x10] SUB RCX,RAX MOV AL,byte ptr [RBX] TEST AL,AL JZ 0x00126359 INC RBX LAB_001262f8: CMP RCX,R15 JNZ 0x0012634b MOV EDX,dword ptr [0x00466be0] ADD EDX,EDX MOV dword ptr [0x00466be0],EDX MOV RSI,qword ptr [0x00466be8] MOV ECX,0x10 XOR EDI,EDI CALL 0x0012803c TEST RAX,RAX JZ 0x001263e7 SUB R15,qword ptr [0x00466be8] ADD R15,RAX MOV qword ptr [0x00466be8],RAX MOV EDX,dword ptr [0x00466be0] MOV RCX,R15 LEA R15,[RAX + RDX*0x1] DEC R15 MOV AL,byte ptr [RBX + -0x1] LAB_0012634b: MOV byte ptr [RCX],AL INC RCX MOV AL,byte ptr [RBX] INC RBX TEST AL,AL JNZ 0x001262f8 LAB_00126359: MOVSXD RAX,dword ptr [R14 + 0x14] SUB R12,RAX CMP byte ptr [R12],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV EBX,0x2000 JNZ 0x0012625b CMP byte ptr [R14],0x2 MOV RAX,qword ptr [RBP + -0x30] JZ 0x0012625b MOV RSI,qword ptr [0x00466be8] SUB ECX,ESI MOV EAX,ECX JMP 0x001263a1 LAB_0012638f: MOV RSI,qword ptr [0x00466be8] MOV EAX,ESI NOT EAX ADD EAX,ECX MOV EBX,0x2000 LAB_001263a1: MOV R12D,0x1 CMP EAX,-0x1 MOV R15,qword ptr [RBP + -0x38] JZ 0x001263ed CMP byte ptr [0x00466bd8],0x0 JNZ 0x001263c8 MOV ECX,EAX INC EAX MOV byte ptr [RSI + RCX*0x1],R13B MOV RSI,qword ptr [0x00466be8] LAB_001263c8: MOV EDX,EAX MOV ECX,0x14 MOV RDI,qword ptr [RBP + -0x40] CALL 0x0012756c TEST RAX,RAX MOV RAX,qword ptr [RBP + -0x48] JZ 0x001261ff JMP 0x001263ed LAB_001263e7: MOV R12D,0x1 LAB_001263ed: MOV EAX,R12D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001263ff: MOV R12D,0xffffffff JMP 0x001263ed
int8 convert_pipe(char *param_1,int8 param_2,int8 param_3) { byte bVar1; char cVar2; char *pcVar3; int iVar4; byte bVar5; int4 uVar6; int iVar7; byte *pbVar8; char *pcVar9; byte *pbVar10; byte *pbVar11; long lVar12; int iVar13; uint uVar14; byte *pbVar15; ulong uVar16; byte *pbVar17; size_t __n; byte *pbVar18; __n = 0; updated = 0; my_eof = '\0'; bufbytes = 0; do { uVar6 = my_fileno(param_2); uVar14 = (uint)__n; iVar7 = bufread; if ((int)(bufalloc - uVar14) <= bufread) { do { bufalloc = bufalloc * 2; bufread = iVar7 * 2; iVar13 = bufalloc - uVar14; iVar4 = iVar7 * -2; iVar7 = bufread; } while (iVar13 == bufread || SBORROW4(iVar13,bufread) != iVar13 + iVar4 < 0); buffer = (byte *)my_realloc(0,buffer,bufalloc | 1,0x10); if (buffer == (byte *)0x0) { return 0xffffffff; } } memmove(buffer,buffer + ((long)(int)bufbytes - (long)(int)uVar14),__n); if (my_eof != '\0') { bufbytes = uVar14; return 0; } bufbytes = uVar14; iVar7 = my_read(uVar6,buffer + (int)uVar14,(long)bufread,0x10); pbVar17 = buffer; if (iVar7 < 0) { return 0xffffffff; } if ((int)bufbytes < 1 || iVar7 != 0) { bufbytes = bufbytes + iVar7; if (iVar7 == 0) { return 0; } } else { if (buffer[(ulong)bufbytes - 1] == 10) { return 0; } my_eof = '\x01'; buffer[bufbytes] = 10; bufbytes = bufbytes + 1; } pbVar17[(int)bufbytes] = 0; while( true ) { __n = 0; for (pbVar8 = pbVar17; (bVar1 = *pbVar8, bVar1 != 0 && (bVar1 != 10)); pbVar8 = pbVar8 + 1) { __n = (size_t)((int)__n + 1); } if (pbVar8 == buffer + (int)bufbytes) break; *pbVar8 = 0; pbVar18 = out_buff + ((ulong)out_length - 1); pcVar9 = param_1 + 0x808; pbVar15 = out_buff; do { cVar2 = *pcVar9; pcVar3 = pcVar9; while (cVar2 == '\0') { bVar5 = *pbVar17; pcVar3 = *(char **)(pcVar3 + (ulong)bVar5 * 8 + 8); if (pbVar15 == pbVar18) { out_length = out_length + 0x2000; pbVar10 = (byte *)my_realloc(0,out_buff,out_length,0x10); if (pbVar10 == (byte *)0x0) { return 1; } pbVar15 = pbVar10 + ((long)pbVar18 - (long)out_buff); pbVar18 = pbVar10 + ((ulong)out_length - 1); bVar5 = *pbVar17; out_buff = pbVar10; } pbVar17 = pbVar17 + 1; *pbVar15 = bVar5; pbVar15 = pbVar15 + 1; cVar2 = *pcVar3; } pbVar10 = *(byte **)(pcVar3 + 8); if (pbVar10 == (byte *)0x0) { uVar14 = ~(uint)out_buff + (int)pbVar15; goto LAB_001263a1; } updated = 1; pbVar15 = pbVar15 + -(ulong)*(uint *)(pcVar3 + 0x10); bVar5 = *pbVar10; while (bVar5 != 0) { if (pbVar15 == pbVar18) { out_length = out_length * 2; pbVar11 = (byte *)my_realloc(0,out_buff,out_length,0x10); if (pbVar11 == (byte *)0x0) { return 1; } pbVar15 = pbVar11 + ((long)pbVar18 - (long)out_buff); pbVar18 = pbVar11 + ((ulong)out_length - 1); bVar5 = *pbVar10; out_buff = pbVar11; } *pbVar15 = bVar5; pbVar15 = pbVar15 + 1; bVar5 = pbVar10[1]; pbVar10 = pbVar10 + 1; } pbVar17 = pbVar17 + -(long)*(int *)(pcVar3 + 0x14); pcVar9 = param_1; } while ((*pbVar17 != 0) || (*pcVar3 == '\x02')); uVar14 = (int)pbVar15 - (int)out_buff; LAB_001263a1: if (uVar14 == 0xffffffff) { return 1; } if (my_eof == '\0') { uVar16 = (ulong)uVar14; uVar14 = uVar14 + 1; out_buff[uVar16] = bVar1; } lVar12 = my_fwrite(param_3,out_buff,uVar14,0x14); pbVar17 = pbVar8 + 1; if (lVar12 != 0) { return 1; } } } while( true ); }
59,719
test_if_reopen
eloqsql/storage/myisam/mi_open.c
MI_INFO *test_if_reopen(char *filename) { LIST *pos; for (pos=myisam_open_list ; pos ; pos=pos->next) { MI_INFO *info=(MI_INFO*) pos->data; MYISAM_SHARE *share=info->s; DBUG_ASSERT(strcmp(share->unique_file_name,filename) || share->last_version); if (!strcmp(share->unique_file_name,filename) && share->last_version) return info; } return 0; }
O3
c
test_if_reopen: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx leaq 0xb824ea(%rip), %rax # 0xbff950 movq (%rax), %r15 testq %r15, %r15 je 0x7d4a0 movq %rdi, %rbx movq 0x10(%r15), %r14 movq (%r14), %r12 movq 0x258(%r12), %rdi movq %rbx, %rsi callq 0x296a0 testl %eax, %eax jne 0x7d497 cmpq $0x0, 0x310(%r12) jne 0x7d4a3 movq 0x8(%r15), %r15 testq %r15, %r15 jne 0x7d471 xorl %r14d, %r14d movq %r14, %rax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
test_if_reopen: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx lea rax, myisam_open_list mov r15, [rax] test r15, r15 jz short loc_7D4A0 mov rbx, rdi loc_7D471: mov r14, [r15+10h] mov r12, [r14] mov rdi, [r12+258h] mov rsi, rbx call _strcmp test eax, eax jnz short loc_7D497 cmp qword ptr [r12+310h], 0 jnz short loc_7D4A3 loc_7D497: mov r15, [r15+8] test r15, r15 jnz short loc_7D471 loc_7D4A0: xor r14d, r14d loc_7D4A3: mov rax, r14 pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long * test_if_reopen(long long a1) { long long v1; // r15 long long *v2; // r14 long long v3; // r12 v1 = myisam_open_list; if ( !myisam_open_list ) return 0LL; while ( 1 ) { v2 = *(long long **)(v1 + 16); v3 = *v2; if ( !(unsigned int)strcmp(*(_QWORD *)(*v2 + 600), a1) ) { if ( *(_QWORD *)(v3 + 784) ) break; } v1 = *(_QWORD *)(v1 + 8); if ( !v1 ) return 0LL; } return v2; }
test_if_reopen: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX LEA RAX,[0xcff950] MOV R15,qword ptr [RAX] TEST R15,R15 JZ 0x0017d4a0 MOV RBX,RDI LAB_0017d471: MOV R14,qword ptr [R15 + 0x10] MOV R12,qword ptr [R14] MOV RDI,qword ptr [R12 + 0x258] MOV RSI,RBX CALL 0x001296a0 TEST EAX,EAX JNZ 0x0017d497 CMP qword ptr [R12 + 0x310],0x0 JNZ 0x0017d4a3 LAB_0017d497: MOV R15,qword ptr [R15 + 0x8] TEST R15,R15 JNZ 0x0017d471 LAB_0017d4a0: XOR R14D,R14D LAB_0017d4a3: MOV RAX,R14 POP RBX POP R12 POP R14 POP R15 POP RBP RET
long * test_if_reopen(char *param_1) { long *plVar1; long lVar2; int iVar3; long lVar4; lVar4 = myisam_open_list; if (myisam_open_list != 0) { do { plVar1 = *(long **)(lVar4 + 0x10); lVar2 = *plVar1; iVar3 = strcmp(*(char **)(lVar2 + 600),param_1); if ((iVar3 == 0) && (*(long *)(lVar2 + 0x310) != 0)) { return plVar1; } plVar1 = (long *)(lVar4 + 8); lVar4 = *plVar1; } while (*plVar1 != 0); } return (long *)0x0; }
59,720
getopt_double
eloqsql/mysys/my_getopt.c
static double getopt_double(char *arg, const struct my_option *optp, int *err) { double num; int error; char *end= arg + 1000; /* Big enough as *arg is \0 terminated */ num= my_strtod(arg, &end, &error); if (end[0] != 0 || error) { my_getopt_error_reporter(ERROR_LEVEL, "Invalid decimal value for option '%s'\n", optp->name); *err= EXIT_ARGUMENT_INVALID; return 0.0; } return getopt_double_limit_value(num, optp, NULL); }
O0
c
getopt_double: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax addq $0x3e8, %rax # imm = 0x3E8 movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi leaq -0x38(%rbp), %rsi leaq -0x2c(%rbp), %rdx callq 0x79370 movsd %xmm0, -0x28(%rbp) movq -0x38(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jne 0x2a9fa cmpl $0x0, -0x2c(%rbp) je 0x2aa2c leaq 0x1aee2f(%rip), %rax # 0x1d9830 movq (%rax), %rcx movq -0x18(%rbp), %rax movq (%rax), %rdx xorl %edi, %edi leaq 0x5830b(%rip), %rsi # 0x82d1f movb $0x0, %al callq *%rcx movq -0x20(%rbp), %rax movl $0xd, (%rax) xorps %xmm0, %xmm0 movsd %xmm0, -0x8(%rbp) jmp 0x2aa43 movsd -0x28(%rbp), %xmm0 movq -0x18(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x298d0 movsd %xmm0, -0x8(%rbp) movsd -0x8(%rbp), %xmm0 addq $0x40, %rsp popq %rbp retq nop
getopt_double: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] add rax, 3E8h mov [rbp+var_38], rax mov rdi, [rbp+var_10] lea rsi, [rbp+var_38] lea rdx, [rbp+var_2C] call my_strtod movsd [rbp+var_28], xmm0 mov rax, [rbp+var_38] movsx eax, byte ptr [rax] cmp eax, 0 jnz short loc_2A9FA cmp [rbp+var_2C], 0 jz short loc_2AA2C loc_2A9FA: lea rax, my_getopt_error_reporter mov rcx, [rax] mov rax, [rbp+var_18] mov rdx, [rax] xor edi, edi lea rsi, aInvalidDecimal; "Invalid decimal value for option '%s'\n" mov al, 0 call rcx mov rax, [rbp+var_20] mov dword ptr [rax], 0Dh xorps xmm0, xmm0 movsd [rbp+var_8], xmm0 jmp short loc_2AA43 loc_2AA2C: movsd xmm0, [rbp+var_28] mov rdi, [rbp+var_18] xor eax, eax mov esi, eax call getopt_double_limit_value movsd [rbp+var_8], xmm0 loc_2AA43: movsd xmm0, [rbp+var_8] add rsp, 40h pop rbp retn
double getopt_double(long long a1, const char **a2, _DWORD *a3) { _BYTE *v4; // [rsp+8h] [rbp-38h] BYREF int v5; // [rsp+14h] [rbp-2Ch] BYREF double v6; // [rsp+18h] [rbp-28h] _DWORD *v7; // [rsp+20h] [rbp-20h] const char **v8; // [rsp+28h] [rbp-18h] long long v9; // [rsp+30h] [rbp-10h] v9 = a1; v8 = a2; v7 = a3; v4 = (_BYTE *)(a1 + 1000); v6 = my_strtod(a1, &v4, &v5); if ( !*v4 && !v5 ) return getopt_double_limit_value(v8, 0LL, v6); my_getopt_error_reporter(0, (long long)"Invalid decimal value for option '%s'\n", *v8); *v7 = 13; return 0.0; }
getopt_double: 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 RAX,qword ptr [RBP + -0x10] ADD RAX,0x3e8 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x38] LEA RDX,[RBP + -0x2c] CALL 0x00179370 MOVSD qword ptr [RBP + -0x28],XMM0 MOV RAX,qword ptr [RBP + -0x38] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x0012a9fa CMP dword ptr [RBP + -0x2c],0x0 JZ 0x0012aa2c LAB_0012a9fa: LEA RAX,[0x2d9830] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX] XOR EDI,EDI LEA RSI,[0x182d1f] MOV AL,0x0 CALL RCX MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0xd XORPS XMM0,XMM0 MOVSD qword ptr [RBP + -0x8],XMM0 JMP 0x0012aa43 LAB_0012aa2c: MOVSD XMM0,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RBP + -0x18] XOR EAX,EAX MOV ESI,EAX CALL 0x001298d0 MOVSD qword ptr [RBP + -0x8],XMM0 LAB_0012aa43: MOVSD XMM0,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
int8 getopt_double(long param_1,int8 *param_2,int4 *param_3) { char *local_40; int local_34; int8 local_30; int4 *local_28; int8 *local_20; long local_18; int8 local_10; local_40 = (char *)(param_1 + 1000); local_28 = param_3; local_20 = param_2; local_18 = param_1; local_30 = my_strtod(param_1,&local_40,&local_34); if ((*local_40 == '\0') && (local_34 == 0)) { local_10 = getopt_double_limit_value(local_30,local_20,0); } else { (*(code *)my_getopt_error_reporter)(0,"Invalid decimal value for option \'%s\'\n",*local_20); *local_28 = 0xd; local_10 = 0; } return local_10; }
59,721
copy_data_file_state
eloqsql/storage/maria/ma_check.c
static void copy_data_file_state(MARIA_STATE_INFO *to, MARIA_STATE_INFO *from) { to->state.records= from->state.records; to->state.del= from->state.del; to->state.empty= from->state.empty; to->state.data_file_length= from->state.data_file_length; to->split= from->split; to->dellink= from->dellink; to->first_bitmap_with_space= from->first_bitmap_with_space; }
O0
c
copy_data_file_state: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x10(%rbp), %rax movq 0x28(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x28(%rax) movq -0x10(%rbp), %rax movq 0x40(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rax movq 0xc0(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xc0(%rax) movq -0x10(%rbp), %rax movq 0xc8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xc8(%rax) movq -0x10(%rbp), %rax movq 0xd0(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xd0(%rax) popq %rbp retq
copy_data_file_state: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rcx, [rax+18h] mov rax, [rbp+var_8] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rcx, [rax+20h] mov rax, [rbp+var_8] mov [rax+20h], rcx mov rax, [rbp+var_10] mov rcx, [rax+28h] mov rax, [rbp+var_8] mov [rax+28h], rcx mov rax, [rbp+var_10] mov rcx, [rax+40h] mov rax, [rbp+var_8] mov [rax+40h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0C0h] mov rax, [rbp+var_8] mov [rax+0C0h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0C8h] mov rax, [rbp+var_8] mov [rax+0C8h], rcx mov rax, [rbp+var_10] mov rcx, [rax+0D0h] mov rax, [rbp+var_8] mov [rax+0D0h], rcx pop rbp retn
_QWORD * copy_data_file_state(_QWORD *a1, _QWORD *a2) { _QWORD *result; // rax a1[3] = a2[3]; a1[4] = a2[4]; a1[5] = a2[5]; a1[8] = a2[8]; a1[24] = a2[24]; a1[25] = a2[25]; result = a1; a1[26] = a2[26]; return result; }
copy_data_file_state: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x40],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xc0],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xc8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xc8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0xd0] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xd0],RCX POP RBP RET
void copy_data_file_state(long param_1,long param_2) { *(int8 *)(param_1 + 0x18) = *(int8 *)(param_2 + 0x18); *(int8 *)(param_1 + 0x20) = *(int8 *)(param_2 + 0x20); *(int8 *)(param_1 + 0x28) = *(int8 *)(param_2 + 0x28); *(int8 *)(param_1 + 0x40) = *(int8 *)(param_2 + 0x40); *(int8 *)(param_1 + 0xc0) = *(int8 *)(param_2 + 0xc0); *(int8 *)(param_1 + 200) = *(int8 *)(param_2 + 200); *(int8 *)(param_1 + 0xd0) = *(int8 *)(param_2 + 0xd0); return; }
59,722
my_charset_is_8bit_pure_ascii
eloqsql/strings/ctype-simple.c
static my_bool my_charset_is_8bit_pure_ascii(CHARSET_INFO *cs) { size_t code; if (!cs->tab_to_uni) return 0; for (code= 0; code < 256; code++) { if (cs->tab_to_uni[code] > 0x7F) return 0; } return 1; }
O0
c
my_charset_is_8bit_pure_ascii: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, 0x68(%rax) jne 0xa7629 movb $0x0, -0x1(%rbp) jmp 0xa766a movq $0x0, -0x18(%rbp) cmpq $0x100, -0x18(%rbp) # imm = 0x100 jae 0xa7666 movq -0x10(%rbp), %rax movq 0x68(%rax), %rax movq -0x18(%rbp), %rcx movzwl (%rax,%rcx,2), %eax cmpl $0x7f, %eax jle 0xa7656 movb $0x0, -0x1(%rbp) jmp 0xa766a jmp 0xa7658 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0xa7631 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al popq %rbp retq nop
my_charset_is_8bit_pure_ascii: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] cmp qword ptr [rax+68h], 0 jnz short loc_A7629 mov [rbp+var_1], 0 jmp short loc_A766A loc_A7629: mov [rbp+var_18], 0 loc_A7631: cmp [rbp+var_18], 100h jnb short loc_A7666 mov rax, [rbp+var_10] mov rax, [rax+68h] mov rcx, [rbp+var_18] movzx eax, word ptr [rax+rcx*2] cmp eax, 7Fh jle short loc_A7656 mov [rbp+var_1], 0 jmp short loc_A766A loc_A7656: jmp short $+2 loc_A7658: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_A7631 loc_A7666: mov [rbp+var_1], 1 loc_A766A: mov al, [rbp+var_1] pop rbp retn
char my_charset_is_8bit_pure_ascii(long long a1) { unsigned long long i; // [rsp+0h] [rbp-18h] if ( !*(_QWORD *)(a1 + 104) ) return 0; for ( i = 0LL; i < 0x100; ++i ) { if ( *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2 * i) > 0x7Fu ) return 0; } return 1; }
my_charset_is_8bit_pure_ascii: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x68],0x0 JNZ 0x001a7629 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001a766a LAB_001a7629: MOV qword ptr [RBP + -0x18],0x0 LAB_001a7631: CMP qword ptr [RBP + -0x18],0x100 JNC 0x001a7666 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + RCX*0x2] CMP EAX,0x7f JLE 0x001a7656 MOV byte ptr [RBP + -0x1],0x0 JMP 0x001a766a LAB_001a7656: JMP 0x001a7658 LAB_001a7658: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x001a7631 LAB_001a7666: MOV byte ptr [RBP + -0x1],0x1 LAB_001a766a: MOV AL,byte ptr [RBP + -0x1] POP RBP RET
int1 my_charset_is_8bit_pure_ascii(long param_1) { ulong local_20; int1 local_9; if (*(long *)(param_1 + 0x68) == 0) { local_9 = 0; } else { for (local_20 = 0; local_20 < 0x100; local_20 = local_20 + 1) { if (0x7f < *(ushort *)(*(long *)(param_1 + 0x68) + local_20 * 2)) { return 0; } } local_9 = 1; } return local_9; }
59,723
psi_mutex_lock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_mutex_lock(mysql_mutex_t *that, const char *file, uint line) { PSI_mutex_locker_state state; PSI_mutex_locker *locker= PSI_MUTEX_CALL(start_mutex_wait) (&state, that->m_psi, PSI_MUTEX_LOCK, file, line); # ifdef SAFE_MUTEX int result= safe_mutex_lock(&that->m_mutex, FALSE, file, line); # else int result= pthread_mutex_lock(&that->m_mutex); # endif if (locker) PSI_MUTEX_CALL(end_mutex_wait)(locker, result); return result; }
O3
c
psi_mutex_lock: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movl %edx, %r8d movq %rsi, %rcx movq %rdi, %r14 leaq 0x360bcc(%rip), %r15 # 0x390b18 movq (%r15), %rax movq 0x40(%rdi), %rsi leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *0x190(%rax) movq %rax, %rbx movq %r14, %rdi callq 0x2a1f0 movl %eax, %r14d testq %rbx, %rbx je 0x2ff81 movq (%r15), %rax movq %rbx, %rdi movl %r14d, %esi callq *0x198(%rax) movl %r14d, %eax addq $0x38, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
psi_mutex_lock: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 38h mov r8d, edx mov rcx, rsi mov r14, rdi lea r15, PSI_server mov rax, [r15] mov rsi, [rdi+40h] lea rdi, [rbp+var_48] xor edx, edx call qword ptr [rax+190h] mov rbx, rax mov rdi, r14 call _pthread_mutex_lock mov r14d, eax test rbx, rbx jz short loc_2FF81 mov rax, [r15] mov rdi, rbx mov esi, r14d call qword ptr [rax+198h] loc_2FF81: mov eax, r14d add rsp, 38h pop rbx pop r14 pop r15 pop rbp retn
long long psi_mutex_lock(long long a1, long long a2, unsigned int a3) { long long v3; // rbx unsigned int v4; // r14d _BYTE v6[72]; // [rsp+8h] [rbp-48h] BYREF v3 = ((long long ( *)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[50])( v6, *(_QWORD *)(a1 + 64), 0LL, a2, a3); v4 = pthread_mutex_lock(a1); if ( v3 ) ((void ( *)(long long, _QWORD))PSI_server[51])(v3, v4); return v4; }
psi_mutex_lock: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x38 MOV R8D,EDX MOV RCX,RSI MOV R14,RDI LEA R15,[0x490b18] MOV RAX,qword ptr [R15] MOV RSI,qword ptr [RDI + 0x40] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL qword ptr [RAX + 0x190] MOV RBX,RAX MOV RDI,R14 CALL 0x0012a1f0 MOV R14D,EAX TEST RBX,RBX JZ 0x0012ff81 MOV RAX,qword ptr [R15] MOV RDI,RBX MOV ESI,R14D CALL qword ptr [RAX + 0x198] LAB_0012ff81: MOV EAX,R14D ADD RSP,0x38 POP RBX POP R14 POP R15 POP RBP RET
int psi_mutex_lock(pthread_mutex_t *param_1,int8 param_2,int4 param_3) { int iVar1; long lVar2; int1 local_50 [48]; lVar2 = (**(code **)(PSI_server + 400)) (local_50,*(int8 *)((long)param_1 + 0x40),0,param_2,param_3); iVar1 = pthread_mutex_lock(param_1); if (lVar2 != 0) { (**(code **)(PSI_server + 0x198))(lVar2,iVar1); } return iVar1; }
59,724
utf8_scan
bluesky950520[P]quickjs/cutils.c
int utf8_scan(const char *buf, size_t buf_len, size_t *plen) { const uint8_t *p, *p_end, *p_next; size_t i, len; int kind; uint8_t cbits; kind = UTF8_PLAIN_ASCII; cbits = 0; len = buf_len; // TODO: handle more than 1 byte at a time for (i = 0; i < buf_len; i++) cbits |= buf[i]; if (cbits >= 0x80) { p = (const uint8_t *)buf; p_end = p + buf_len; kind = UTF8_NON_ASCII; len = 0; while (p < p_end) { len++; if (*p++ >= 0x80) { /* parse UTF-8 sequence, check for encoding error */ uint32_t c = utf8_decode_len(p - 1, p_end - (p - 1), &p_next); if (p_next == p) kind |= UTF8_HAS_ERRORS; p = p_next; if (c > 0xFF) { kind |= UTF8_HAS_16BIT; if (c > 0xFFFF) { len++; kind |= UTF8_HAS_NON_BMP1; } } } } } *plen = len; return kind; }
O1
c
utf8_scan: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 testq %rsi, %rsi je 0x1b89b xorl %eax, %eax xorl %ecx, %ecx orb (%rdi,%rcx), %al incq %rcx cmpq %rcx, %r14 jne 0x1b88c testb %al, %al js 0x1b8b1 xorl %ebp, %ebp movq %r14, (%rbx) movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq testq %r14, %r14 jle 0x1b91a movq %r14, %r12 addq %rdi, %r12 movl $0x1, %ebp xorl %r13d, %r13d leaq 0x1(%r13), %r14 leaq 0x1(%rdi), %r15 cmpb $0x0, (%rdi) js 0x1b8d6 movq %r15, %rdi jmp 0x1b910 movq %r12, %rsi subq %rdi, %rsi movq %rsp, %rdx callq 0x1b837 movq (%rsp), %rdi movl %ebp, %ecx orl $0x8, %ecx cmpq %r15, %rdi cmovel %ecx, %ebp cmpl $0x100, %eax # imm = 0x100 jb 0x1b910 cmpl $0x10000, %eax # imm = 0x10000 jb 0x1b90d addq $0x2, %r13 orl $0x6, %ebp movq %r13, %r14 jmp 0x1b910 orl $0x2, %ebp movq %r14, %r13 cmpq %r12, %rdi jb 0x1b8c4 jmp 0x1b89d movl $0x1, %ebp xorl %r14d, %r14d jmp 0x1b89d
utf8_scan: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r14, rsi test rsi, rsi jz short loc_1B89B xor eax, eax xor ecx, ecx loc_1B88C: or al, [rdi+rcx] inc rcx cmp r14, rcx jnz short loc_1B88C test al, al js short loc_1B8B1 loc_1B89B: xor ebp, ebp loc_1B89D: mov [rbx], r14 mov eax, ebp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1B8B1: test r14, r14 jle short loc_1B91A mov r12, r14 add r12, rdi mov ebp, 1 xor r13d, r13d loc_1B8C4: lea r14, [r13+1] lea r15, [rdi+1] cmp byte ptr [rdi], 0 js short loc_1B8D6 mov rdi, r15 jmp short loc_1B910 loc_1B8D6: mov rsi, r12 sub rsi, rdi mov rdx, rsp call utf8_decode_len mov rdi, [rsp+38h+var_38] mov ecx, ebp or ecx, 8 cmp rdi, r15 cmovz ebp, ecx cmp eax, 100h jb short loc_1B910 cmp eax, 10000h jb short loc_1B90D add r13, 2 or ebp, 6 mov r14, r13 jmp short loc_1B910 loc_1B90D: or ebp, 2 loc_1B910: mov r13, r14 cmp rdi, r12 jb short loc_1B8C4 jmp short loc_1B89D loc_1B91A: mov ebp, 1 xor r14d, r14d jmp loc_1B89D
long long utf8_scan(char *a1, long long a2, long long *a3) { char *v3; // rax long long v5; // r14 char v6; // al long long i; // rcx unsigned int v8; // ebp char *v10; // r12 long long v11; // r13 char *v12; // r15 unsigned int v13; // eax char *v14; // [rsp+0h] [rbp-38h] BYREF v14 = v3; v5 = a2; if ( !a2 ) goto LABEL_5; v6 = 0; for ( i = 0LL; i != a2; v6 |= a1[i++] ) ; if ( v6 < 0 ) { if ( a2 <= 0 ) { v8 = 1; v5 = 0LL; } else { v10 = &a1[a2]; v8 = 1; v11 = 0LL; do { v5 = v11 + 1; v12 = a1 + 1; if ( *a1 < 0 ) { v13 = utf8_decode_len(a1, v10 - a1, &v14); a1 = v14; if ( v14 == v12 ) v8 |= 8u; if ( v13 >= 0x100 ) { if ( v13 < 0x10000 ) { v8 |= 2u; } else { v8 |= 6u; v5 = v11 + 2; } } } else { ++a1; } v11 = v5; } while ( a1 < v10 ); } } else { LABEL_5: v8 = 0; } *a3 = v5; return v8; }
59,725
utf8_scan
bluesky950520[P]quickjs/cutils.c
int utf8_scan(const char *buf, size_t buf_len, size_t *plen) { const uint8_t *p, *p_end, *p_next; size_t i, len; int kind; uint8_t cbits; kind = UTF8_PLAIN_ASCII; cbits = 0; len = buf_len; // TODO: handle more than 1 byte at a time for (i = 0; i < buf_len; i++) cbits |= buf[i]; if (cbits >= 0x80) { p = (const uint8_t *)buf; p_end = p + buf_len; kind = UTF8_NON_ASCII; len = 0; while (p < p_end) { len++; if (*p++ >= 0x80) { /* parse UTF-8 sequence, check for encoding error */ uint32_t c = utf8_decode_len(p - 1, p_end - (p - 1), &p_next); if (p_next == p) kind |= UTF8_HAS_ERRORS; p = p_next; if (c > 0xFF) { kind |= UTF8_HAS_16BIT; if (c > 0xFFFF) { len++; kind |= UTF8_HAS_NON_BMP1; } } } } } *plen = len; return kind; }
O3
c
utf8_scan: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx testq %rsi, %rsi je 0x1c1d3 movq %rsi, %r14 xorl %eax, %eax xorl %ecx, %ecx orb (%rdi,%rcx), %al incq %rcx cmpq %rcx, %r14 jne 0x1c1bd xorl %ebp, %ebp testb %al, %al js 0x1c1da movq %r14, %r12 jmp 0x1c248 xorl %r12d, %r12d xorl %ebp, %ebp jmp 0x1c248 testq %r14, %r14 jle 0x1c240 addq %rdi, %r14 movl $0x1, %ebp xorl %r13d, %r13d leaq 0x1(%r13), %r12 leaq 0x1(%rdi), %r15 cmpb $0x0, (%rdi) js 0x1c1fc movq %r15, %rdi jmp 0x1c236 movq %r14, %rsi subq %rdi, %rsi movq %rsp, %rdx callq 0x1c168 movq (%rsp), %rdi movl %ebp, %ecx orl $0x8, %ecx cmpq %r15, %rdi cmovel %ecx, %ebp cmpl $0x100, %eax # imm = 0x100 jb 0x1c236 cmpl $0x10000, %eax # imm = 0x10000 jb 0x1c233 addq $0x2, %r13 orl $0x6, %ebp movq %r13, %r12 jmp 0x1c236 orl $0x2, %ebp movq %r12, %r13 cmpq %r14, %rdi jb 0x1c1ea jmp 0x1c248 movl $0x1, %ebp xorl %r12d, %r12d movq %r12, (%rbx) movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
utf8_scan: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx test rsi, rsi jz short loc_1C1D3 mov r14, rsi xor eax, eax xor ecx, ecx loc_1C1BD: or al, [rdi+rcx] inc rcx cmp r14, rcx jnz short loc_1C1BD xor ebp, ebp test al, al js short loc_1C1DA mov r12, r14 jmp short loc_1C248 loc_1C1D3: xor r12d, r12d xor ebp, ebp jmp short loc_1C248 loc_1C1DA: test r14, r14 jle short loc_1C240 add r14, rdi mov ebp, 1 xor r13d, r13d loc_1C1EA: lea r12, [r13+1] lea r15, [rdi+1] cmp byte ptr [rdi], 0 js short loc_1C1FC mov rdi, r15 jmp short loc_1C236 loc_1C1FC: mov rsi, r14 sub rsi, rdi mov rdx, rsp call utf8_decode_len mov rdi, [rsp+38h+var_38] mov ecx, ebp or ecx, 8 cmp rdi, r15 cmovz ebp, ecx cmp eax, 100h jb short loc_1C236 cmp eax, offset loc_10000 jb short loc_1C233 add r13, 2 or ebp, 6 mov r12, r13 jmp short loc_1C236 loc_1C233: or ebp, 2 loc_1C236: mov r13, r12 cmp rdi, r14 jb short loc_1C1EA jmp short loc_1C248 loc_1C240: mov ebp, 1 xor r12d, r12d loc_1C248: mov [rbx], r12 mov eax, ebp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long utf8_scan(char *a1, long long a2, long long *a3) { char *v3; // rax char v5; // al long long i; // rcx unsigned int v7; // ebp long long v8; // r12 char *v9; // r14 long long v10; // r13 char *v11; // r15 unsigned int v12; // eax char *v14; // [rsp+0h] [rbp-38h] BYREF v14 = v3; if ( a2 ) { v5 = 0; for ( i = 0LL; i != a2; ++i ) v5 |= a1[i]; v7 = 0; if ( v5 < 0 ) { if ( a2 <= 0 ) { v7 = 1; v8 = 0LL; } else { v9 = &a1[a2]; v7 = 1; v10 = 0LL; do { v8 = v10 + 1; v11 = a1 + 1; if ( *a1 < 0 ) { v12 = utf8_decode_len(a1, v9 - a1, &v14); a1 = v14; if ( v14 == v11 ) v7 |= 8u; if ( v12 >= 0x100 ) { if ( v12 < (unsigned int)&loc_10000 ) { v7 |= 2u; } else { v7 |= 6u; v8 = v10 + 2; } } } else { ++a1; } v10 = v8; } while ( a1 < v9 ); } } else { v8 = a2; } } else { v8 = 0LL; v7 = 0; } *a3 = v8; return v7; }
utf8_scan: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX TEST RSI,RSI JZ 0x0011c1d3 MOV R14,RSI XOR EAX,EAX XOR ECX,ECX LAB_0011c1bd: OR AL,byte ptr [RDI + RCX*0x1] INC RCX CMP R14,RCX JNZ 0x0011c1bd XOR EBP,EBP TEST AL,AL JS 0x0011c1da MOV R12,R14 JMP 0x0011c248 LAB_0011c1d3: XOR R12D,R12D XOR EBP,EBP JMP 0x0011c248 LAB_0011c1da: TEST R14,R14 JLE 0x0011c240 ADD R14,RDI MOV EBP,0x1 XOR R13D,R13D LAB_0011c1ea: LEA R12,[R13 + 0x1] LEA R15,[RDI + 0x1] CMP byte ptr [RDI],0x0 JS 0x0011c1fc MOV RDI,R15 JMP 0x0011c236 LAB_0011c1fc: MOV RSI,R14 SUB RSI,RDI MOV RDX,RSP CALL 0x0011c168 MOV RDI,qword ptr [RSP] MOV ECX,EBP OR ECX,0x8 CMP RDI,R15 CMOVZ EBP,ECX CMP EAX,0x100 JC 0x0011c236 CMP EAX,0x10000 JC 0x0011c233 ADD R13,0x2 OR EBP,0x6 MOV R12,R13 JMP 0x0011c236 LAB_0011c233: OR EBP,0x2 LAB_0011c236: MOV R13,R12 CMP RDI,R14 JC 0x0011c1ea JMP 0x0011c248 LAB_0011c240: MOV EBP,0x1 XOR R12D,R12D LAB_0011c248: MOV qword ptr [RBX],R12 MOV EAX,EBP ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
uint utf8_scan(char *param_1,long param_2,long *param_3) { byte bVar1; uint uVar2; char *in_RAX; long lVar3; uint uVar4; char *pcVar5; char *pcVar6; char *local_38; if (param_2 == 0) { param_2 = 0; uVar4 = 0; } else { bVar1 = 0; lVar3 = 0; do { bVar1 = bVar1 | param_1[lVar3]; lVar3 = lVar3 + 1; } while (param_2 != lVar3); uVar4 = 0; if ((char)bVar1 < '\0') { if (param_2 < 1) { uVar4 = 1; param_2 = 0; } else { pcVar6 = param_1 + param_2; uVar4 = 1; lVar3 = 0; local_38 = in_RAX; do { param_2 = lVar3 + 1; pcVar5 = param_1 + 1; if (*param_1 < '\0') { uVar2 = utf8_decode_len(param_1,(long)pcVar6 - (long)param_1,&local_38); if (local_38 == pcVar5) { uVar4 = uVar4 | 8; } pcVar5 = local_38; if (0xff < uVar2) { if (uVar2 < 0x10000) { uVar4 = uVar4 | 2; } else { param_2 = lVar3 + 2; uVar4 = uVar4 | 6; } } } param_1 = pcVar5; lVar3 = param_2; } while (pcVar5 < pcVar6); } } } *param_3 = param_2; return uVar4; }
59,726
inline_mysql_rwlock_unlock
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_rwlock_unlock( mysql_rwlock_t *that) { int result; #ifdef HAVE_PSI_RWLOCK_INTERFACE if (psi_likely(that->m_psi != NULL)) PSI_RWLOCK_CALL(unlock_rwlock)(that->m_psi); #endif result= rw_unlock(&that->m_rwlock); return result; }
O0
c
inline_mysql_rwlock_unlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x90(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xb0b41 leaq 0x20f58e(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x168(%rax), %rax movq -0x8(%rbp), %rcx movq 0x90(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rdi callq 0xfa120 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_rwlock_unlock_6: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+90h], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_B0B41 lea rax, PSI_server mov rax, [rax] mov rax, [rax+168h] mov rcx, [rbp+var_8] mov rdi, [rcx+90h] call rax loc_B0B41: mov rdi, [rbp+var_8] call my_rw_unlock mov [rbp+var_C], eax mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long inline_mysql_rwlock_unlock_6(long long a1) { if ( *(_QWORD *)(a1 + 144) ) ((void ( *)(_QWORD))PSI_server[45])(*(_QWORD *)(a1 + 144)); return (unsigned int)my_rw_unlock(a1); }
inline_mysql_rwlock_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x90],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001b0b41 LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x168] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x90] CALL RAX LAB_001b0b41: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001fa120 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
int4 inline_mysql_rwlock_unlock(long param_1) { int4 uVar1; if (*(long *)(param_1 + 0x90) != 0) { (**(code **)(PSI_server + 0x168))(*(int8 *)(param_1 + 0x90)); } uVar1 = my_rw_unlock(param_1); return uVar1; }
59,727
GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
ng-log[P]ng-log/src/logging.cc
static void GetHostName(string* hostname) { #if defined(HAVE_SYS_UTSNAME_H) struct utsname buf; if (uname(&buf) < 0) { // ensure null termination on failure *buf.nodename = '\0'; } *hostname = buf.nodename; #elif defined(NGLOG_OS_WINDOWS) char buf[MAX_COMPUTERNAME_LENGTH + 1]; DWORD len = MAX_COMPUTERNAME_LENGTH + 1; if (GetComputerNameA(buf, &len)) { *hostname = buf; } else { hostname->clear(); } #else # warning There is no way to retrieve the host name. *hostname = "(unknown)"; #endif }
O3
cpp
GetHostName(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): pushq %r15 pushq %r14 pushq %rbx subq $0x190, %rsp # imm = 0x190 movq %rdi, %rbx leaq 0xa(%rsp), %rdi callq 0x70a0 testl %eax, %eax jns 0xa536 movb $0x0, 0x4b(%rsp) leaq 0x4b(%rsp), %r14 movq 0x8(%rbx), %r15 movq %r14, %rdi callq 0x7200 movq %rbx, %rdi xorl %esi, %esi movq %r15, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x7850 addq $0x190, %rsp # imm = 0x190 popq %rbx popq %r14 popq %r15 retq nop
_ZL11GetHostNamePNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push rbx sub rsp, 190h mov rbx, rdi lea rdi, [rsp+1A8h+var_19E] call _uname test eax, eax jns short loc_A536 mov [rsp+1A8h+var_15D], 0 loc_A536: lea r14, [rsp+1A8h+var_15D] mov r15, [rbx+8] mov rdi, r14 call _strlen mov rdi, rbx xor esi, esi mov rdx, r15 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) add rsp, 190h pop rbx pop r14 pop r15 retn
long long GetHostName(long long a1) { long long v1; // r15 long long v2; // rax _BYTE v4[65]; // [rsp+Ah] [rbp-19Eh] BYREF _BYTE v5[349]; // [rsp+4Bh] [rbp-15Dh] BYREF if ( (int)uname(v4) < 0 ) v5[0] = 0; v1 = *(_QWORD *)(a1 + 8); v2 = strlen(v5); return std::string::_M_replace(a1, 0LL, v1, v5, v2); }
GetHostName: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x190 MOV RBX,RDI LEA RDI,[RSP + 0xa] CALL 0x001070a0 TEST EAX,EAX JNS 0x0010a536 MOV byte ptr [RSP + 0x4b],0x0 LAB_0010a536: LEA R14,[RSP + 0x4b] MOV R15,qword ptr [RBX + 0x8] MOV RDI,R14 CALL 0x00107200 MOV RDI,RBX XOR ESI,ESI MOV RDX,R15 MOV RCX,R14 MOV R8,RAX CALL 0x00107850 ADD RSP,0x190 POP RBX POP R14 POP R15 RET
/* GetHostName(std::__cxx11::string*) */ void GetHostName(string *param_1) { char *pcVar1; int iVar2; utsname local_19e; iVar2 = uname(&local_19e); if (iVar2 < 0) { local_19e.nodename[0] = '\0'; } pcVar1 = *(char **)(param_1 + 8); strlen(local_19e.nodename); std::__cxx11::string::_M_replace((ulong)param_1,0,pcVar1,(ulong)local_19e.nodename); return; }
59,728
my_coll_parser_scan_rule
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_rule(MY_COLL_RULE_PARSER *p) { if (!my_coll_parser_scan_term(p, MY_COLL_LEXEM_RESET) || !my_coll_parser_scan_reset_sequence(p)) return 0; /* Scan the first required shift command */ if (!my_coll_parser_scan_shift(p)) return my_coll_parser_expected_error(p, MY_COLL_LEXEM_SHIFT); /* Scan the first shift sequence */ if (!my_coll_parser_scan_shift_sequence(p)) return 0; /* Scan subsequent shift rules */ while (my_coll_parser_scan_shift(p)) { if (!my_coll_parser_scan_shift_sequence(p)) return 0; } return 1; }
O0
c
my_coll_parser_scan_rule: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi movl $0x4, %esi callq 0xad5f0 cmpl $0x0, %eax je 0xad56d movq -0x10(%rbp), %rdi callq 0xad850 cmpl $0x0, %eax jne 0xad576 movl $0x0, -0x4(%rbp) jmp 0xad5de movq -0x10(%rbp), %rdi callq 0xad900 cmpl $0x0, %eax jne 0xad597 movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0xad960 movl %eax, -0x4(%rbp) jmp 0xad5de movq -0x10(%rbp), %rdi callq 0xad9b0 cmpl $0x0, %eax jne 0xad5ae movl $0x0, -0x4(%rbp) jmp 0xad5de jmp 0xad5b0 movq -0x10(%rbp), %rdi callq 0xad900 cmpl $0x0, %eax je 0xad5d7 movq -0x10(%rbp), %rdi callq 0xad9b0 cmpl $0x0, %eax jne 0xad5d5 movl $0x0, -0x4(%rbp) jmp 0xad5de jmp 0xad5b0 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
my_coll_parser_scan_rule: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] mov esi, 4 call my_coll_parser_scan_term cmp eax, 0 jz short loc_AD56D mov rdi, [rbp+var_10] call my_coll_parser_scan_reset_sequence cmp eax, 0 jnz short loc_AD576 loc_AD56D: mov [rbp+var_4], 0 jmp short loc_AD5DE loc_AD576: mov rdi, [rbp+var_10] call my_coll_parser_scan_shift cmp eax, 0 jnz short loc_AD597 mov rdi, [rbp+var_10] mov esi, 1 call my_coll_parser_expected_error mov [rbp+var_4], eax jmp short loc_AD5DE loc_AD597: mov rdi, [rbp+var_10] call my_coll_parser_scan_shift_sequence cmp eax, 0 jnz short loc_AD5AE mov [rbp+var_4], 0 jmp short loc_AD5DE loc_AD5AE: jmp short $+2 loc_AD5B0: mov rdi, [rbp+var_10] call my_coll_parser_scan_shift cmp eax, 0 jz short loc_AD5D7 mov rdi, [rbp+var_10] call my_coll_parser_scan_shift_sequence cmp eax, 0 jnz short loc_AD5D5 mov [rbp+var_4], 0 jmp short loc_AD5DE loc_AD5D5: jmp short loc_AD5B0 loc_AD5D7: mov [rbp+var_4], 1 loc_AD5DE: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
long long my_coll_parser_scan_rule(long long a1) { if ( (unsigned int)my_coll_parser_scan_term(a1, 4LL) && (unsigned int)my_coll_parser_scan_reset_sequence(a1) ) { if ( (unsigned int)my_coll_parser_scan_shift(a1) ) { if ( (unsigned int)my_coll_parser_scan_shift_sequence(a1) ) { while ( (unsigned int)my_coll_parser_scan_shift(a1) ) { if ( !(unsigned int)my_coll_parser_scan_shift_sequence(a1) ) return 0; } return 1; } else { return 0; } } else { return (unsigned int)my_coll_parser_expected_error(a1, 1LL); } } else { return 0; } }
my_coll_parser_scan_rule: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x4 CALL 0x001ad5f0 CMP EAX,0x0 JZ 0x001ad56d MOV RDI,qword ptr [RBP + -0x10] CALL 0x001ad850 CMP EAX,0x0 JNZ 0x001ad576 LAB_001ad56d: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001ad5de LAB_001ad576: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001ad900 CMP EAX,0x0 JNZ 0x001ad597 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x1 CALL 0x001ad960 MOV dword ptr [RBP + -0x4],EAX JMP 0x001ad5de LAB_001ad597: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001ad9b0 CMP EAX,0x0 JNZ 0x001ad5ae MOV dword ptr [RBP + -0x4],0x0 JMP 0x001ad5de LAB_001ad5ae: JMP 0x001ad5b0 LAB_001ad5b0: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001ad900 CMP EAX,0x0 JZ 0x001ad5d7 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001ad9b0 CMP EAX,0x0 JNZ 0x001ad5d5 MOV dword ptr [RBP + -0x4],0x0 JMP 0x001ad5de LAB_001ad5d5: JMP 0x001ad5b0 LAB_001ad5d7: MOV dword ptr [RBP + -0x4],0x1 LAB_001ad5de: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 my_coll_parser_scan_rule(int8 param_1) { int iVar1; int4 local_c; iVar1 = my_coll_parser_scan_term(param_1,4); if ((iVar1 == 0) || (iVar1 = my_coll_parser_scan_reset_sequence(param_1), iVar1 == 0)) { local_c = 0; } else { iVar1 = my_coll_parser_scan_shift(param_1); if (iVar1 == 0) { local_c = my_coll_parser_expected_error(param_1,1); } else { iVar1 = my_coll_parser_scan_shift_sequence(param_1); if (iVar1 == 0) { local_c = 0; } else { do { iVar1 = my_coll_parser_scan_shift(param_1); if (iVar1 == 0) { return 1; } iVar1 = my_coll_parser_scan_shift_sequence(param_1); } while (iVar1 != 0); local_c = 0; } } } return local_c; }
59,729
LefDefParser::lefwMacroSize(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMacroSize(double width, double height) { if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (lefwState != LEFW_MACRO_START && lefwState != LEFW_MACRO) return LEFW_BAD_ORDER; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " SIZE %.11g BY %.11g ;\n", width, height); else fprintf(lefwFile, " SIZE %.11g BY %.11g ;\n", width, height); lefwLines++; lefwState = LEFW_MACRO; return LEFW_OK; }
O0
cpp
LefDefParser::lefwMacroSize(double, double): subq $0x18, %rsp movsd %xmm0, 0x8(%rsp) movsd %xmm1, (%rsp) leaq 0x9a2ca(%rip), %rax # 0xc5250 cmpq $0x0, (%rax) jne 0x2af99 movl $0x1, 0x14(%rsp) jmp 0x2b04f leaq 0x9a504(%rip), %rax # 0xc54a4 cmpl $0x0, (%rax) jne 0x2afb2 movl $0x2, 0x14(%rsp) jmp 0x2b04f leaq 0x9a4e7(%rip), %rax # 0xc54a0 cmpl $0x9, (%rax) je 0x2afd4 leaq 0x9a4db(%rip), %rax # 0xc54a0 cmpl $0x21, (%rax) je 0x2afd4 movl $0x2, 0x14(%rsp) jmp 0x2b04f cmpl $0x0, 0x9a561(%rip) # 0xc553c je 0x2b002 leaq 0x9a26c(%rip), %rax # 0xc5250 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 movsd (%rsp), %xmm1 leaq 0x68bd3(%rip), %rsi # 0x93bcc movb $0x2, %al callq 0x8bf50 jmp 0x2b025 leaq 0x9a247(%rip), %rax # 0xc5250 movq (%rax), %rdi movsd 0x8(%rsp), %xmm0 movsd (%rsp), %xmm1 leaq 0x68bae(%rip), %rsi # 0x93bcc movb $0x2, %al callq 0x2370 leaq 0x9a470(%rip), %rax # 0xc549c movl (%rax), %ecx addl $0x1, %ecx leaq 0x9a464(%rip), %rax # 0xc549c movl %ecx, (%rax) leaq 0x9a45f(%rip), %rax # 0xc54a0 movl $0x21, (%rax) movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax addq $0x18, %rsp retq nopl (%rax,%rax)
_ZN12LefDefParser13lefwMacroSizeEdd: sub rsp, 18h movsd [rsp+18h+var_10], xmm0 movsd [rsp+18h+var_18], xmm1 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile cmp qword ptr [rax], 0 jnz short loc_2AF99 mov [rsp+18h+var_4], 1 jmp loc_2B04F loc_2AF99: lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 jnz short loc_2AFB2 mov [rsp+18h+var_4], 2 jmp loc_2B04F loc_2AFB2: lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 9 jz short loc_2AFD4 lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState cmp dword ptr [rax], 21h ; '!' jz short loc_2AFD4 mov [rsp+18h+var_4], 2 jmp short loc_2B04F loc_2AFD4: cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt jz short loc_2B002 lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] movsd xmm1, [rsp+18h+var_18] lea rsi, aSize11gBy11g; " SIZE %.11g BY %.11g ;\n" mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_2B025 loc_2B002: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] movsd xmm0, [rsp+18h+var_10] movsd xmm1, [rsp+18h+var_18] lea rsi, aSize11gBy11g; " SIZE %.11g BY %.11g ;\n" mov al, 2 call _fprintf loc_2B025: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines mov [rax], ecx lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov dword ptr [rax], 21h ; '!' mov [rsp+18h+var_4], 0 loc_2B04F: mov eax, [rsp+18h+var_4] add rsp, 18h retn
long long LefDefParser::lefwMacroSize( LefDefParser *this, double a2, double a3, long long a4, int a5, int a6, int a7, int a8) { if ( *(_QWORD *)&LefDefParser::lefwFile ) { if ( LefDefParser::lefwDidInit ) { if ( LefDefParser::lefwState == 9 || LefDefParser::lefwState == 33 ) { if ( LefDefParser::lefwWriteEncrypt ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)" SIZE %.11g BY %.11g ;\n", a5, a6, a7, a8); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " SIZE %.11g BY %.11g ;\n", a2, a3); ++LefDefParser::lefwLines; LefDefParser::lefwState = 33; return 0; } else { return 2; } } else { return 2; } } else { return 1; } }
lefwMacroSize: SUB RSP,0x18 MOVSD qword ptr [RSP + 0x8],XMM0 MOVSD qword ptr [RSP],XMM1 LEA RAX,[0x1c5250] CMP qword ptr [RAX],0x0 JNZ 0x0012af99 MOV dword ptr [RSP + 0x14],0x1 JMP 0x0012b04f LAB_0012af99: LEA RAX,[0x1c54a4] CMP dword ptr [RAX],0x0 JNZ 0x0012afb2 MOV dword ptr [RSP + 0x14],0x2 JMP 0x0012b04f LAB_0012afb2: LEA RAX,[0x1c54a0] CMP dword ptr [RAX],0x9 JZ 0x0012afd4 LEA RAX,[0x1c54a0] CMP dword ptr [RAX],0x21 JZ 0x0012afd4 MOV dword ptr [RSP + 0x14],0x2 JMP 0x0012b04f LAB_0012afd4: CMP dword ptr [0x001c553c],0x0 JZ 0x0012b002 LEA RAX,[0x1c5250] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP] LEA RSI,[0x193bcc] MOV AL,0x2 CALL 0x0018bf50 JMP 0x0012b025 LAB_0012b002: LEA RAX,[0x1c5250] MOV RDI,qword ptr [RAX] MOVSD XMM0,qword ptr [RSP + 0x8] MOVSD XMM1,qword ptr [RSP] LEA RSI,[0x193bcc] MOV AL,0x2 CALL 0x00102370 LAB_0012b025: LEA RAX,[0x1c549c] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x1c549c] MOV dword ptr [RAX],ECX LEA RAX,[0x1c54a0] MOV dword ptr [RAX],0x21 MOV dword ptr [RSP + 0x14],0x0 LAB_0012b04f: MOV EAX,dword ptr [RSP + 0x14] ADD RSP,0x18 RET
/* LefDefParser::lefwMacroSize(double, double) */ int4 LefDefParser::lefwMacroSize(double param_1,double param_2) { int4 local_4; if (lefwFile == (_IO_FILE *)0x0) { local_4 = 1; } else if (lefwDidInit == 0) { local_4 = 2; } else if ((lefwState == 9) || (lefwState == 0x21)) { if (lefwWriteEncrypt == 0) { fprintf(lefwFile," SIZE %.11g BY %.11g ;\n",param_1,param_2); } else { encPrint(lefwFile," SIZE %.11g BY %.11g ;\n",param_1,param_2); } lefwLines = lefwLines + 1; lefwState = 0x21; local_4 = 0; } else { local_4 = 2; } return local_4; }
59,730
mariadb_compress_alloc
eloqsql/libmariadb/libmariadb/ma_compress.c
unsigned char *_mariadb_compress_alloc(NET *net, const unsigned char *packet, size_t *len, size_t *complen) { unsigned char *compbuf; *complen = *len * 120 / 100 + 12; if (!(compbuf = (unsigned char *) malloc(*complen))) return 0; /* Not enough memory */ if (compression_plugin(net)->compress(compression_ctx(net), (void *)compbuf, complen, (void *)packet, *len)) { free(compbuf); return 0; } if (*complen >= *len) { *complen=0; free(compbuf); return 0; } swap(size_t,*len,*complen); /* *len is now packet length */ return compbuf; }
O0
c
mariadb_compress_alloc: 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 -0x20(%rbp), %rax imulq $0x78, (%rax), %rax movl $0x64, %ecx xorl %edx, %edx divq %rcx movq %rax, %rcx addq $0xc, %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax movq (%rax), %rdi callq 0x3a920 movq %rax, -0x30(%rbp) cmpq $0x0, %rax jne 0xad85b movq $0x0, -0x8(%rbp) jmp 0xad905 movq -0x10(%rbp), %rax movq 0x2a0(%rax), %rax movq 0x10(%rax), %rax movq 0x68(%rax), %rax movq -0x10(%rbp), %rcx movq 0x2a0(%rcx), %rcx movq 0x8(%rcx), %rdi movq -0x30(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x18(%rbp), %rcx movq -0x20(%rbp), %r8 movq (%r8), %r8 callq *%rax cmpb $0x0, %al je 0xad8a9 movq -0x30(%rbp), %rdi callq 0x3a1a0 movq $0x0, -0x8(%rbp) jmp 0xad905 movq -0x28(%rbp), %rax movq (%rax), %rax movq -0x20(%rbp), %rcx cmpq (%rcx), %rax jb 0xad8d7 movq -0x28(%rbp), %rax movq $0x0, (%rax) movq -0x30(%rbp), %rdi callq 0x3a1a0 movq $0x0, -0x8(%rbp) jmp 0xad905 jmp 0xad8d9 movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rcx movq -0x20(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nop
_mariadb_compress_alloc: 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_20] imul rax, [rax], 78h ; 'x' mov ecx, 64h ; 'd' xor edx, edx div rcx mov rcx, rax add rcx, 0Ch mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_28] mov rdi, [rax] call _malloc mov [rbp+var_30], rax cmp rax, 0 jnz short loc_AD85B mov [rbp+var_8], 0 jmp loc_AD905 loc_AD85B: mov rax, [rbp+var_10] mov rax, [rax+2A0h] mov rax, [rax+10h] mov rax, [rax+68h] mov rcx, [rbp+var_10] mov rcx, [rcx+2A0h] mov rdi, [rcx+8] mov rsi, [rbp+var_30] mov rdx, [rbp+var_28] mov rcx, [rbp+var_18] mov r8, [rbp+var_20] mov r8, [r8] call rax cmp al, 0 jz short loc_AD8A9 mov rdi, [rbp+var_30] call _free mov [rbp+var_8], 0 jmp short loc_AD905 loc_AD8A9: mov rax, [rbp+var_28] mov rax, [rax] mov rcx, [rbp+var_20] cmp rax, [rcx] jb short loc_AD8D7 mov rax, [rbp+var_28] mov qword ptr [rax], 0 mov rdi, [rbp+var_30] call _free mov [rbp+var_8], 0 jmp short loc_AD905 loc_AD8D7: jmp short $+2 loc_AD8D9: mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_28] mov rcx, [rax] mov rax, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_28] mov [rax], rcx mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_AD905: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long mariadb_compress_alloc(long long a1, long long a2, _QWORD *a3, _QWORD *a4) { long long v5; // [rsp+8h] [rbp-38h] long long v6; // [rsp+10h] [rbp-30h] *a4 = 120LL * *a3 / 0x64uLL + 12; v6 = malloc(*a4); if ( !v6 ) return 0LL; if ( (*(unsigned __int8 ( **)(_QWORD, long long, _QWORD *, long long, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) + 104LL))( *(_QWORD *)(*(_QWORD *)(a1 + 672) + 8LL), v6, a4, a2, *a3) ) { free(v6); return 0LL; } else if ( *a4 < *a3 ) { v5 = *a3; *a3 = *a4; *a4 = v5; return v6; } else { *a4 = 0LL; free(v6); return 0LL; } }
_mariadb_compress_alloc: 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 + -0x20] IMUL RAX,qword ptr [RAX],0x78 MOV ECX,0x64 XOR EDX,EDX DIV RCX MOV RCX,RAX ADD RCX,0xc MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX] CALL 0x0013a920 MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JNZ 0x001ad85b MOV qword ptr [RBP + -0x8],0x0 JMP 0x001ad905 LAB_001ad85b: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x2a0] MOV RAX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x2a0] MOV RDI,qword ptr [RCX + 0x8] MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x18] MOV R8,qword ptr [RBP + -0x20] MOV R8,qword ptr [R8] CALL RAX CMP AL,0x0 JZ 0x001ad8a9 MOV RDI,qword ptr [RBP + -0x30] CALL 0x0013a1a0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001ad905 LAB_001ad8a9: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RCX] JC 0x001ad8d7 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],0x0 MOV RDI,qword ptr [RBP + -0x30] CALL 0x0013a1a0 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001ad905 LAB_001ad8d7: JMP 0x001ad8d9 LAB_001ad8d9: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001ad905: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
void * _mariadb_compress_alloc(long param_1,int8 param_2,size_t *param_3,size_t *param_4) { size_t sVar1; char cVar2; int8 local_10; *param_4 = (*param_3 * 0x78) / 100 + 0xc; local_10 = malloc(*param_4); if (local_10 == (void *)0x0) { local_10 = (void *)0x0; } else { cVar2 = (**(code **)(*(long *)(*(long *)(param_1 + 0x2a0) + 0x10) + 0x68)) (*(int8 *)(*(long *)(param_1 + 0x2a0) + 8),local_10,param_4,param_2, *param_3); if (cVar2 == '\0') { if (*param_4 < *param_3) { sVar1 = *param_3; *param_3 = *param_4; *param_4 = sVar1; } else { *param_4 = 0; free(local_10); local_10 = (void *)0x0; } } else { free(local_10); local_10 = (void *)0x0; } } return local_10; }
59,731
stbi_zlib_decode_noheader_buffer
llama.cpp/examples/llava/../../common/stb_image.h
STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) { stbi__zbuf a; a.zbuffer = (stbi_uc *) ibuffer; a.zbuffer_end = (stbi_uc *) ibuffer + ilen; if (stbi__do_zlib(&a, obuffer, olen, 0, 0)) return (int) (a.zout - a.zout_start); else return -1; }
O3
c
stbi_zlib_decode_noheader_buffer: pushq %rbp pushq %rbx subq $0x1008, %rsp # imm = 0x1008 movl %esi, %eax movq %rdi, %rsi movq %rsp, %rbx movq %rdx, (%rbx) movslq %ecx, %rcx addq %rdx, %rcx movq %rcx, 0x8(%rbx) xorl %ebp, %ebp movq %rbx, %rdi movl %eax, %edx xorl %ecx, %ecx xorl %r8d, %r8d callq 0x22e97 movl 0x20(%rbx), %ecx subl 0x28(%rbx), %ecx cmpl $0x1, %eax sbbl %ebp, %ebp orl %ecx, %ebp movl %ebp, %eax addq $0x1008, %rsp # imm = 0x1008 popq %rbx popq %rbp retq
stbi_zlib_decode_noheader_buffer: push rbp push rbx sub rsp, 1008h mov eax, esi mov rsi, rdi mov rbx, rsp mov [rbx], rdx movsxd rcx, ecx add rcx, rdx mov [rbx+8], rcx xor ebp, ebp mov rdi, rbx mov edx, eax xor ecx, ecx xor r8d, r8d call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int) mov ecx, [rbx+20h] sub ecx, [rbx+28h] cmp eax, 1 sbb ebp, ebp or ebp, ecx mov eax, ebp add rsp, 1008h pop rbx pop rbp retn
long long stbi_zlib_decode_noheader_buffer(unsigned __int8 *a1, int a2, unsigned __int8 *a3, int a4) { int v4; // eax unsigned __int8 *v6[4]; // [rsp+0h] [rbp-1018h] BYREF int v7; // [rsp+20h] [rbp-FF8h] int v8; // [rsp+28h] [rbp-FF0h] v6[0] = a3; v6[1] = &a3[a4]; v4 = stbi__do_zlib(v6, a1, a2, 0, 0); return (v7 - v8) | (unsigned int)-(v4 == 0); }
stbi_zlib_decode_noheader_buffer: PUSH RBP PUSH RBX SUB RSP,0x1008 MOV EAX,ESI MOV RSI,RDI MOV RBX,RSP MOV qword ptr [RBX],RDX MOVSXD RCX,ECX ADD RCX,RDX MOV qword ptr [RBX + 0x8],RCX XOR EBP,EBP MOV RDI,RBX MOV EDX,EAX XOR ECX,ECX XOR R8D,R8D CALL 0x00122e97 MOV ECX,dword ptr [RBX + 0x20] SUB ECX,dword ptr [RBX + 0x28] CMP EAX,0x1 SBB EBP,EBP OR EBP,ECX MOV EAX,EBP ADD RSP,0x1008 POP RBX POP RBP RET
uint stbi_zlib_decode_noheader_buffer(char *param_1,int param_2,long param_3,int param_4) { int iVar1; long local_1018; long local_1010; int local_ff8; int local_ff0; local_1010 = param_4 + param_3; local_1018 = param_3; iVar1 = stbi__do_zlib((stbi__zbuf *)&local_1018,param_1,param_2,0,0); return -(uint)(iVar1 == 0) | local_ff8 - local_ff0; }
59,732
Catch::MatchExpr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Catch::Matchers::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&>::streamReconstructedExpression(std::ostream&) const
AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp
void streamReconstructedExpression( std::ostream& os ) const override { os << Catch::Detail::stringify( m_arg ) << ' ' << m_matcher.toString(); }
O3
cpp
Catch::MatchExpr<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Catch::Matchers::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&>::streamReconstructedExpression(std::ostream&) const: pushq %r15 pushq %r14 pushq %rbx subq $0x40, %rsp movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rdi), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0x57df5 movq (%r15), %rsi movq 0x8(%r15), %rdx movq %r14, %rdi callq 0x17be0 movq %rsp, %rsi movb $0x20, (%rsi) movl $0x1, %edx movq %rax, %rdi callq 0x17be0 movq %rax, %r14 movq 0x18(%rbx), %rsi movq %rsp, %rdi callq 0x64910 movq (%rsp), %rsi movq 0x8(%rsp), %rdx movq %r14, %rdi callq 0x17be0 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x969c4 movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x969df movq 0x30(%rsp), %rsi incq %rsi callq 0x17150 addq $0x40, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x96a0e movq 0x10(%rsp), %rsi incq %rsi callq 0x17150 jmp 0x96a0e jmp 0x96a0b movq %rax, %rbx leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x96a29 movq 0x30(%rsp), %rsi incq %rsi callq 0x17150 movq %rbx, %rdi callq 0x17740 nop
_ZNK5Catch9MatchExprINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_8Matchers11MatcherBaseIS6_EEE29streamReconstructedExpressionERSo: push r15 push r14 push rbx sub rsp, 40h mov r14, rsi mov rbx, rdi mov rax, [rdi+10h] mov rsi, [rax] mov rdx, [rax+8] lea r15, [rsp+58h+var_38] mov rdi, r15 call _ZN5Catch6Detail17convertIntoStringB5cxx11ENS_9StringRefE; Catch::Detail::convertIntoString(Catch::StringRef) mov rsi, [r15] mov rdx, [r15+8] mov rdi, r14 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, rsp mov byte ptr [rsi], 20h ; ' ' mov edx, 1 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 r14, rax mov rsi, [rbx+18h] mov rdi, rsp call _ZNK5Catch8Matchers18MatcherUntypedBase8toStringB5cxx11Ev; Catch::Matchers::MatcherUntypedBase::toString(void) mov rsi, [rsp+58h+var_58] mov rdx, [rsp+58h+var_50] mov rdi, r14 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+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_969C4 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_969C4: lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_969DF mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_969DF: add rsp, 40h pop rbx pop r14 pop r15 retn mov rbx, rax lea rax, [rsp+arg_8] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_96A0E mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_96A0E jmp short $+2 loc_96A0B: mov rbx, rax loc_96A0E: lea rax, [rsp+arg_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_96A29 mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_96A29: mov rdi, rbx call __Unwind_Resume
void Catch::MatchExpr<std::string,Catch::Matchers::MatcherBase<std::string> const&>::streamReconstructedExpression( long long a1, long long a2) { double v2; // xmm0_8 long long v3; // rax double v4; // xmm0_8 long long v5; // rax long long v6; // r14 void *v7[2]; // [rsp+0h] [rbp-58h] BYREF long long v8; // [rsp+10h] [rbp-48h] BYREF void *v9[2]; // [rsp+20h] [rbp-38h] BYREF long long v10; // [rsp+30h] [rbp-28h] BYREF Catch::Detail::convertIntoString[abi:cxx11]( (long long)v9, **(_QWORD **)(a1 + 16), *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL)); v2 = std::__ostream_insert<char,std::char_traits<char>>(a2, (const char *)v9[0], v9[1]); LOBYTE(v7[0]) = 32; v4 = std::__ostream_insert<char,std::char_traits<char>>(v3, (const char *)v7, 1LL, v2); v6 = v5; Catch::Matchers::MatcherUntypedBase::toString[abi:cxx11](v7, *(_QWORD **)(a1 + 24)); std::__ostream_insert<char,std::char_traits<char>>(v6, (const char *)v7[0], v7[1], v4); if ( v7[0] != &v8 ) operator delete(v7[0], v8 + 1); if ( v9[0] != &v10 ) operator delete(v9[0], v10 + 1); }
streamReconstructedExpression: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RSI MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x10] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x00157df5 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LAB_0019696e: MOV RDI,R14 CALL 0x00117be0 MOV RSI,RSP MOV byte ptr [RSI],0x20 MOV EDX,0x1 MOV RDI,RAX CALL 0x00117be0 MOV R14,RAX MOV RSI,qword ptr [RBX + 0x18] LAB_00196990: MOV RDI,RSP CALL 0x00164910 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] LAB_001969a1: MOV RDI,R14 CALL 0x00117be0 LAB_001969a9: LEA RAX,[RSP + 0x10] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001969c4 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00117150 LAB_001969c4: LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001969df MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x00117150 LAB_001969df: ADD RSP,0x40 POP RBX POP R14 POP R15 RET
/* Catch::MatchExpr<std::__cxx11::string, Catch::Matchers::MatcherBase<std::__cxx11::string > const&>::streamReconstructedExpression(std::ostream&) const */ void __thiscall Catch::MatchExpr<std::__cxx11::string,Catch::Matchers::MatcherBase<std::__cxx11::string>const&>:: streamReconstructedExpression (MatchExpr<std::__cxx11::string,Catch::Matchers::MatcherBase<std::__cxx11::string>const&> *this,ostream *param_1) { ostream *poVar1; char local_58; int7 uStack_57; long local_50; long local_48 [2]; long *local_38; long local_30; long local_28 [2]; Detail::convertIntoString_abi_cxx11_ (&local_38,**(int8 **)(this + 0x10),(*(int8 **)(this + 0x10))[1]); /* try { // try from 0019696e to 00196988 has its CatchHandler @ 00196a0b */ poVar1 = std::__ostream_insert<char,std::char_traits<char>>(param_1,(char *)local_38,local_30); local_58 = ' '; poVar1 = std::__ostream_insert<char,std::char_traits<char>>(poVar1,&local_58,1); /* try { // try from 00196990 to 00196997 has its CatchHandler @ 00196a09 */ Matchers::MatcherUntypedBase::toString_abi_cxx11_(); /* try { // try from 001969a1 to 001969a8 has its CatchHandler @ 001969e9 */ std::__ostream_insert<char,std::char_traits<char>> (poVar1,(char *)CONCAT71(uStack_57,local_58),local_50); if ((long *)CONCAT71(uStack_57,local_58) != local_48) { operator_delete((long *)CONCAT71(uStack_57,local_58),local_48[0] + 1); } if (local_38 != local_28) { operator_delete(local_38,local_28[0] + 1); } return; }
59,733
ggml_backend_multi_buffer_set_usage
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_multi_buffer_set_usage(ggml_backend_buffer_t buffer, enum ggml_backend_buffer_usage usage) { GGML_ASSERT(ggml_backend_buffer_is_multi_buffer(buffer)); ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) buffer->context; for (size_t i = 0; i < ctx->n_buffers; i++) { ggml_backend_buffer_set_usage(ctx->buffers[i], usage); } }
O1
cpp
ggml_backend_multi_buffer_set_usage: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax leaq 0xb60(%rip), %r14 # 0x277bc cmpq %r14, (%rdi) jne 0x26c9c movq 0x50(%rdi), %r15 cmpq $0x0, 0x8(%r15) je 0x26c90 movl %esi, %ebx xorl %r12d, %r12d movq (%r15), %rax movq (%rax,%r12,8), %rdi movl %ebx, 0x60(%rdi) cmpq %r14, (%rdi) jne 0x26c87 movl %ebx, %esi callq 0x175e0 incq %r12 cmpq 0x8(%r15), %r12 jb 0x26c71 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x28ad1(%rip), %rdi # 0x4f774 leaq 0x25917(%rip), %rdx # 0x4c5c1 leaq 0x28e66(%rip), %rcx # 0x4fb17 movl $0x24b, %esi # imm = 0x24B xorl %eax, %eax callq 0x18ce0
ggml_backend_multi_buffer_set_usage: push r15 push r14 push r12 push rbx push rax lea r14, _ZL37ggml_backend_multi_buffer_free_bufferP19ggml_backend_buffer; ggml_backend_multi_buffer_free_buffer(ggml_backend_buffer *) cmp [rdi], r14 jnz short loc_26C9C mov r15, [rdi+50h] cmp qword ptr [r15+8], 0 jz short loc_26C90 mov ebx, esi xor r12d, r12d loc_26C71: mov rax, [r15] mov rdi, [rax+r12*8] mov [rdi+60h], ebx cmp [rdi], r14 jnz short loc_26C87 mov esi, ebx call _ggml_backend_multi_buffer_set_usage loc_26C87: inc r12 cmp r12, [r15+8] jb short loc_26C71 loc_26C90: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_26C9C: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlBackendBuf_23; "ggml_backend_buffer_is_multi_buffer(buf"... mov esi, 24Bh xor eax, eax call _ggml_abort
long long ggml_backend_multi_buffer_set_usage( long long a1, unsigned int a2, long long a3, long long a4, int a5, int a6) { long long *v6; // r15 unsigned long long v7; // r12 long long result; // rax long long v9; // rdi if ( *(long long ( **)())a1 != ggml_backend_multi_buffer_free_buffer ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 587, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"ggml_backend_buffer_is_multi_buffer(buffer)", a5, a6); v6 = *(long long **)(a1 + 80); if ( v6[1] ) { v7 = 0LL; do { result = *v6; v9 = *(_QWORD *)(*v6 + 8 * v7); *(_DWORD *)(v9 + 96) = a2; if ( *(long long ( **)())v9 == ggml_backend_multi_buffer_free_buffer ) result = ggml_backend_multi_buffer_set_usage(v9, a2); ++v7; } while ( v7 < v6[1] ); } return result; }
ggml_backend_multi_buffer_set_usage: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX LEA R14,[0x1277bc] CMP qword ptr [RDI],R14 JNZ 0x00126c9c MOV R15,qword ptr [RDI + 0x50] CMP qword ptr [R15 + 0x8],0x0 JZ 0x00126c90 MOV EBX,ESI XOR R12D,R12D LAB_00126c71: MOV RAX,qword ptr [R15] MOV RDI,qword ptr [RAX + R12*0x8] MOV dword ptr [RDI + 0x60],EBX CMP qword ptr [RDI],R14 JNZ 0x00126c87 MOV ESI,EBX CALL 0x001175e0 LAB_00126c87: INC R12 CMP R12,qword ptr [R15 + 0x8] JC 0x00126c71 LAB_00126c90: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_00126c9c: LEA RDI,[0x14f774] LEA RDX,[0x14c5c1] LEA RCX,[0x14fb17] MOV ESI,0x24b XOR EAX,EAX CALL 0x00118ce0
void ggml_backend_multi_buffer_set_usage(long *param_1,int4 param_2) { long *plVar1; long *plVar2; ulong uVar3; if ((code *)*param_1 == ggml_backend_multi_buffer_free_buffer) { plVar1 = (long *)param_1[10]; if (plVar1[1] != 0) { uVar3 = 0; do { plVar2 = *(long **)(*plVar1 + uVar3 * 8); *(int4 *)(plVar2 + 0xc) = param_2; if ((code *)*plVar2 == ggml_backend_multi_buffer_free_buffer) { ggml_backend_multi_buffer_set_usage(plVar2,param_2); } uVar3 = uVar3 + 1; } while (uVar3 < (ulong)plVar1[1]); } return; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x24b,"GGML_ASSERT(%s) failed","ggml_backend_buffer_is_multi_buffer(buffer)"); }
59,734
ggml_backend_multi_buffer_set_usage
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp
void ggml_backend_multi_buffer_set_usage(ggml_backend_buffer_t buffer, enum ggml_backend_buffer_usage usage) { GGML_ASSERT(ggml_backend_buffer_is_multi_buffer(buffer)); ggml_backend_multi_buffer_context * ctx = (ggml_backend_multi_buffer_context *) buffer->context; for (size_t i = 0; i < ctx->n_buffers; i++) { ggml_backend_buffer_set_usage(ctx->buffers[i], usage); } }
O3
cpp
ggml_backend_multi_buffer_set_usage: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax leaq 0xb0e(%rip), %r14 # 0x2634e cmpq %r14, (%rdi) jne 0x25885 movq 0x50(%rdi), %r15 movq 0x8(%r15), %rax testq %rax, %rax je 0x25879 movl %esi, %ebx xorl %r12d, %r12d movq (%r15), %rcx movq (%rcx,%r12,8), %rdi movl %ebx, 0x60(%rdi) cmpq %r14, (%rdi) jne 0x25871 movl %ebx, %esi callq 0x165e0 movq 0x8(%r15), %rax incq %r12 cmpq %rax, %r12 jb 0x25857 addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x29f88(%rip), %rdi # 0x4f814 leaq 0x26dd2(%rip), %rdx # 0x4c665 leaq 0x2a31d(%rip), %rcx # 0x4fbb7 movl $0x24b, %esi # imm = 0x24B xorl %eax, %eax callq 0x17cd0
ggml_backend_multi_buffer_set_usage: push r15 push r14 push r12 push rbx push rax lea r14, _ZL37ggml_backend_multi_buffer_free_bufferP19ggml_backend_buffer; ggml_backend_multi_buffer_free_buffer(ggml_backend_buffer *) cmp [rdi], r14 jnz short loc_25885 mov r15, [rdi+50h] mov rax, [r15+8] test rax, rax jz short loc_25879 mov ebx, esi xor r12d, r12d loc_25857: mov rcx, [r15] mov rdi, [rcx+r12*8] mov [rdi+60h], ebx cmp [rdi], r14 jnz short loc_25871 mov esi, ebx call _ggml_backend_multi_buffer_set_usage mov rax, [r15+8] loc_25871: inc r12 cmp r12, rax jb short loc_25857 loc_25879: add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn loc_25885: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlBackendBuf_23; "ggml_backend_buffer_is_multi_buffer(buf"... mov esi, 24Bh xor eax, eax call _ggml_abort
unsigned long long ggml_backend_multi_buffer_set_usage( long long a1, unsigned int a2, long long a3, long long a4, int a5, int a6) { _QWORD *v6; // r15 unsigned long long result; // rax unsigned long long i; // r12 long long v9; // rdi if ( *(long long ( **)())a1 != ggml_backend_multi_buffer_free_buffer ) ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp", 587, (unsigned int)"GGML_ASSERT(%s) failed", (unsigned int)"ggml_backend_buffer_is_multi_buffer(buffer)", a5, a6); v6 = *(_QWORD **)(a1 + 80); result = v6[1]; if ( result ) { for ( i = 0LL; i < result; ++i ) { v9 = *(_QWORD *)(*v6 + 8 * i); *(_DWORD *)(v9 + 96) = a2; if ( *(long long ( **)())v9 == ggml_backend_multi_buffer_free_buffer ) { ggml_backend_multi_buffer_set_usage(v9, a2); result = v6[1]; } } } return result; }
ggml_backend_multi_buffer_set_usage: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX LEA R14,[0x12634e] CMP qword ptr [RDI],R14 JNZ 0x00125885 MOV R15,qword ptr [RDI + 0x50] MOV RAX,qword ptr [R15 + 0x8] TEST RAX,RAX JZ 0x00125879 MOV EBX,ESI XOR R12D,R12D LAB_00125857: MOV RCX,qword ptr [R15] MOV RDI,qword ptr [RCX + R12*0x8] MOV dword ptr [RDI + 0x60],EBX CMP qword ptr [RDI],R14 JNZ 0x00125871 MOV ESI,EBX CALL 0x001165e0 MOV RAX,qword ptr [R15 + 0x8] LAB_00125871: INC R12 CMP R12,RAX JC 0x00125857 LAB_00125879: ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET LAB_00125885: LEA RDI,[0x14f814] LEA RDX,[0x14c665] LEA RCX,[0x14fbb7] MOV ESI,0x24b XOR EAX,EAX CALL 0x00117cd0
void ggml_backend_multi_buffer_set_usage(long *param_1,int4 param_2) { long *plVar1; long *plVar2; ulong uVar3; ulong uVar4; if ((code *)*param_1 == ggml_backend_multi_buffer_free_buffer) { plVar1 = (long *)param_1[10]; uVar3 = plVar1[1]; if (uVar3 != 0) { uVar4 = 0; do { plVar2 = *(long **)(*plVar1 + uVar4 * 8); *(int4 *)(plVar2 + 0xc) = param_2; if ((code *)*plVar2 == ggml_backend_multi_buffer_free_buffer) { ggml_backend_multi_buffer_set_usage(plVar2,param_2); uVar3 = plVar1[1]; } uVar4 = uVar4 + 1; } while (uVar4 < uVar3); } return; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-backend.cpp" ,0x24b,"GGML_ASSERT(%s) failed","ggml_backend_buffer_is_multi_buffer(buffer)"); }
59,735
decode_pos
eloqsql/storage/myisam/mi_packrec.c
static uint decode_pos(MI_BIT_BUFF *bit_buff, MI_DECODE_TREE *decode_tree) { uint16 *pos=decode_tree->table; for (;;) { if (get_bit(bit_buff)) pos++; if (*pos & IS_CHAR) return (uint) (*pos & ~IS_CHAR); pos+= *pos; } }
O0
c
decode_pos: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0xbdeba movq -0x8(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0xbdede jmp 0xbdeea movq -0x8(%rbp), %rdi callq 0xbc370 movq -0x8(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x8(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0xbdeea movq -0x18(%rbp), %rax addq $0x2, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movzwl (%rax), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax je 0xbdf0d movq -0x18(%rbp), %rax movzwl (%rax), %eax andl $0xffff7fff, %eax # imm = 0xFFFF7FFF addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rax movzwl (%rax), %ecx movq -0x18(%rbp), %rax movslq %ecx, %rcx shlq %rcx addq %rcx, %rax movq %rax, -0x18(%rbp) jmp 0xbde8b nopw (%rax,%rax)
decode_pos_0: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_18], rax loc_BDE8B: mov rax, [rbp+var_8] cmp dword ptr [rax+4], 0 jz short loc_BDEBA mov rax, [rbp+var_8] mov eax, [rax] mov rdx, [rbp+var_8] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_BDEDE jmp short loc_BDEEA loc_BDEBA: mov rdi, [rbp+var_8] call fill_buffer_0 mov rax, [rbp+var_8] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_8] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz short loc_BDEEA loc_BDEDE: mov rax, [rbp+var_18] add rax, 2 mov [rbp+var_18], rax loc_BDEEA: mov rax, [rbp+var_18] movzx eax, word ptr [rax] and eax, 8000h cmp eax, 0 jz short loc_BDF0D mov rax, [rbp+var_18] movzx eax, word ptr [rax] and eax, 0FFFF7FFFh add rsp, 20h pop rbp retn loc_BDF0D: mov rax, [rbp+var_18] movzx ecx, word ptr [rax] mov rax, [rbp+var_18] movsxd rcx, ecx shl rcx, 1 add rax, rcx mov [rbp+var_18], rax jmp loc_BDE8B
long long decode_pos_0(int *a1, _WORD **a2) { int v2; // eax int v3; // ecx _WORD *i; // [rsp+8h] [rbp-18h] for ( i = *a2; ; i += (unsigned __int16)*i ) { if ( !a1[1] ) { fill_buffer_0((long long)a1); a1[1] = 31; if ( *a1 >= 0 ) goto LABEL_7; LABEL_6: ++i; goto LABEL_7; } v2 = *a1; v3 = a1[1] - 1; a1[1] = v3; if ( ((1 << v3) & v2) != 0 ) goto LABEL_6; LABEL_7: if ( (*i & 0x8000) != 0 ) break; } return *i & 0x7FFF; }
decode_pos: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LAB_001bde8b: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x4],0x0 JZ 0x001bdeba MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x001bdede JMP 0x001bdeea LAB_001bdeba: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001bc370 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x001bdeea LAB_001bdede: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x2 MOV qword ptr [RBP + -0x18],RAX LAB_001bdeea: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX] AND EAX,0x8000 CMP EAX,0x0 JZ 0x001bdf0d MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX] AND EAX,0xffff7fff ADD RSP,0x20 POP RBP RET LAB_001bdf0d: MOV RAX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RCX,ECX SHL RCX,0x1 ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX JMP 0x001bde8b
ushort decode_pos(uint *param_1,int8 *param_2) { uint uVar1; ushort *local_20; local_20 = (ushort *)*param_2; while( true ) { if (param_1[1] == 0) { fill_buffer(param_1); param_1[1] = 0x1f; uVar1 = *param_1 & 0x80000000; } else { uVar1 = param_1[1]; param_1[1] = uVar1 - 1; uVar1 = *param_1 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 != 0) { local_20 = local_20 + 1; } if ((*local_20 & 0x8000) != 0) break; local_20 = local_20 + (int)(uint)*local_20; } return *local_20 & 0x7fff; }
59,736
mysql_read_query_result_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_read_query_result_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_read_query_result, (parms->mysql), parms->mysql, my_bool, r_my_bool) }
O0
c
mysql_read_query_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 0x1f870 movb %al, -0x11(%rbp) movb -0x11(%rbp), %cl movq -0x20(%rbp), %rax movb %cl, 0x8(%rax) movq -0x20(%rbp), %rax movl $0x0, (%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mysql_read_query_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_read_query_result mov [rbp+var_11], al mov cl, [rbp+var_11] mov rax, [rbp+var_20] mov [rax+8], cl mov rax, [rbp+var_20] mov dword ptr [rax], 0 add rsp, 20h pop rbp retn
long long mysql_read_query_result_start_internal(long long *a1) { long long result; // rax long long v2; // [rsp+0h] [rbp-20h] v2 = *(_QWORD *)(*(_QWORD *)(*a1 + 1152) + 40LL); *(_BYTE *)(v2 + 8) = mysql_read_query_result(*a1); result = v2; *(_DWORD *)v2 = 0; return result; }
mysql_read_query_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 0x0011f870 MOV byte ptr [RBP + -0x11],AL MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x8],CL MOV RAX,qword ptr [RBP + -0x20] MOV dword ptr [RAX],0x0 ADD RSP,0x20 POP RBP RET
void mysql_read_query_result_start_internal(long *param_1) { int4 *puVar1; int1 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_read_query_result(*param_1); *(int1 *)(puVar1 + 2) = uVar2; *puVar1 = 0; return; }
59,737
js_symbol_get_description
bluesky950520[P]quickjs/quickjs.c
static JSValue js_symbol_get_description(JSContext *ctx, JSValue this_val) { JSValue val, ret; JSAtomStruct *p; val = js_thisSymbolValue(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_PTR(val); if (p->len == 0 && p->is_wide_char != 0) { ret = JS_UNDEFINED; } else { ret = JS_AtomToString(ctx, js_get_atom_index(ctx->rt, p)); } JS_FreeValue(ctx, val); return ret; }
O0
c
js_symbol_get_description: subq $0x88, %rsp movq %rsi, 0x68(%rsp) movq %rdx, 0x70(%rsp) movq %rdi, 0x60(%rsp) movq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi movq 0x70(%rsp), %rdx callq 0xe0090 movq %rax, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x50(%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xdffa8 movq 0x50(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x80(%rsp) jmp 0xe0076 movq 0x50(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rax movq 0x4(%rax), %rax andq $0x7fffffff, %rax # imm = 0x7FFFFFFF cmpl $0x0, %eax jne 0xe0006 movq 0x38(%rsp), %rax movq 0x4(%rax), %rax shrq $0x1f, %rax andq $0x1, %rax movzbl %al, %eax cmpl $0x0, %eax je 0xe0006 movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x48(%rsp) jmp 0xe004b movq 0x60(%rsp), %rax movq %rax, (%rsp) movq 0x60(%rsp), %rax movq 0x18(%rax), %rdi movq 0x38(%rsp), %rsi callq 0x37610 movq (%rsp), %rdi movl %eax, %esi callq 0x2f2f0 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x60(%rsp), %rdi movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx callq 0x29f80 movq 0x40(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x78(%rsp), %rax movq 0x80(%rsp), %rdx addq $0x88, %rsp retq nopl (%rax,%rax)
js_symbol_get_description: sub rsp, 88h mov [rsp+88h+var_20], rsi mov [rsp+88h+var_18], rdx mov [rsp+88h+var_28], rdi mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_20] mov rdx, [rsp+88h+var_18] call js_thisSymbolValue mov [rsp+88h+var_60], rax mov [rsp+88h+var_58], rdx mov rax, [rsp+88h+var_60] mov [rsp+88h+var_38], rax mov rax, [rsp+88h+var_58] mov [rsp+88h+var_30], rax mov rdi, [rsp+88h+var_38] mov rsi, [rsp+88h+var_30] call JS_IsException_1 cmp eax, 0 jz short loc_DFFA8 mov rax, [rsp+88h+var_38] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_30] mov [rsp+88h+var_8], rax jmp loc_E0076 loc_DFFA8: mov rax, [rsp+88h+var_38] mov [rsp+88h+var_50], rax mov rax, [rsp+88h+var_50] mov rax, [rax+4] and rax, 7FFFFFFFh cmp eax, 0 jnz short loc_E0006 mov rax, [rsp+88h+var_50] mov rax, [rax+4] shr rax, 1Fh and rax, 1 movzx eax, al cmp eax, 0 jz short loc_E0006 mov dword ptr [rsp+88h+var_70], 0 mov [rsp+88h+var_68], 3 mov rax, [rsp+88h+var_70] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_68] mov [rsp+88h+var_40], rax jmp short loc_E004B loc_E0006: mov rax, [rsp+88h+var_28] mov [rsp+88h+var_88], rax mov rax, [rsp+88h+var_28] mov rdi, [rax+18h] mov rsi, [rsp+88h+var_50] call js_get_atom_index mov rdi, [rsp+88h+var_88] mov esi, eax call JS_AtomToString mov [rsp+88h+var_80], rax mov [rsp+88h+var_78], rdx mov rax, [rsp+88h+var_80] mov [rsp+88h+var_48], rax mov rax, [rsp+88h+var_78] mov [rsp+88h+var_40], rax loc_E004B: mov rdi, [rsp+88h+var_28] mov rsi, [rsp+88h+var_38] mov rdx, [rsp+88h+var_30] call JS_FreeValue mov rax, [rsp+88h+var_48] mov [rsp+88h+var_10], rax mov rax, [rsp+88h+var_40] mov [rsp+88h+var_8], rax loc_E0076: mov rax, [rsp+88h+var_10] mov rdx, [rsp+88h+var_8] add rsp, 88h retn
long long js_symbol_get_description(long long a1, long long a2, long long a3) { long long v3; // rdx unsigned int atom_index; // eax long long v6; // [rsp+18h] [rbp-70h] long long v7; // [rsp+28h] [rbp-60h] long long v8; // [rsp+40h] [rbp-48h] long long v9; // [rsp+58h] [rbp-30h] v7 = js_thisSymbolValue(a1, a2, a3); v9 = v3; if ( JS_IsException_1(v7, v3) ) return v7; if ( (*(_DWORD *)(v7 + 4) & 0x7FFFFFFF) != 0 || (*(_QWORD *)(v7 + 4) & 0x80000000LL) == 0 ) { atom_index = js_get_atom_index(*(_QWORD *)(a1 + 24), v7); v8 = JS_AtomToString(a1, atom_index); } else { LODWORD(v6) = 0; v8 = v6; } JS_FreeValue(a1, v7, v9); return v8; }
js_symbol_get_description: SUB RSP,0x88 MOV qword ptr [RSP + 0x68],RSI MOV qword ptr [RSP + 0x70],RDX MOV qword ptr [RSP + 0x60],RDI MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] CALL 0x001e0090 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x30],RDX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x58] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001dffa8 MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x80],RAX JMP 0x001e0076 LAB_001dffa8: MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x4] AND RAX,0x7fffffff CMP EAX,0x0 JNZ 0x001e0006 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x4] SHR RAX,0x1f AND RAX,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x001e0006 MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x48],RAX JMP 0x001e004b LAB_001e0006: MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP + 0x60] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,qword ptr [RSP + 0x38] CALL 0x00137610 MOV RDI,qword ptr [RSP] MOV ESI,EAX CALL 0x0012f2f0 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x48],RAX LAB_001e004b: MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] CALL 0x00129f80 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x80],RAX LAB_001e0076: MOV RAX,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] ADD RSP,0x88 RET
int1 [16] js_symbol_get_description(long param_1,int8 param_2,int8 param_3) { int iVar1; int4 uVar2; int1 auVar5 [16]; uint uStack_6c; long lVar3; int8 uVar4; auVar5 = js_thisSymbolValue(param_1,param_2,param_3); uVar4 = auVar5._8_8_; lVar3 = auVar5._0_8_; iVar1 = JS_IsException(lVar3,uVar4); if (iVar1 == 0) { if (((*(ulong *)(lVar3 + 4) & 0x7fffffff) == 0) && ((*(ulong *)(lVar3 + 4) >> 0x1f & 1) != 0)) { auVar5._8_8_ = 3; auVar5._0_8_ = (ulong)uStack_6c << 0x20; } else { uVar2 = js_get_atom_index(*(int8 *)(param_1 + 0x18),lVar3); auVar5 = JS_AtomToString(param_1,uVar2); } JS_FreeValue(param_1,lVar3,uVar4); } return auVar5; }
59,738
js_symbol_get_description
bluesky950520[P]quickjs/quickjs.c
static JSValue js_symbol_get_description(JSContext *ctx, JSValue this_val) { JSValue val, ret; JSAtomStruct *p; val = js_thisSymbolValue(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_PTR(val); if (p->len == 0 && p->is_wide_char != 0) { ret = JS_UNDEFINED; } else { ret = JS_AtomToString(ctx, js_get_atom_index(ctx->rt, p)); } JS_FreeValue(ctx, val); return ret; }
O2
c
js_symbol_get_description: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdi, %r15 callq 0x6e05b movq %rax, %rbx movq %rdx, %r14 cmpl $0x6, %r14d je 0x6e04b xorl %r13d, %r13d cmpl 0x4(%rbx), %r13d jno 0x6e00b pushq $0x3 popq %r12 xorl %ecx, %ecx jmp 0x6e034 movq 0x18(%r15), %rdi movq %rbx, %rsi callq 0x21cdf movq %r15, %rdi movl %eax, %esi callq 0x1e540 movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r13d orq %rcx, %r13 movq %r15, %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x1bbce movq %r13, %rbx movq %r12, %r14 movq %rbx, %rax movq %r14, %rdx popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_symbol_get_description: push r15 push r14 push r13 push r12 push rbx mov r15, rdi call js_thisSymbolValue mov rbx, rax mov r14, rdx cmp r14d, 6 jz short loc_6E04B xor r13d, r13d cmp r13d, [rbx+4] jno short loc_6E00B push 3 pop r12 xor ecx, ecx jmp short loc_6E034 loc_6E00B: mov rdi, [r15+18h] mov rsi, rbx call js_get_atom_index mov rdi, r15 mov esi, eax call JS_AtomToString mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r13d, eax loc_6E034: or r13, rcx mov rdi, r15 mov rsi, rbx mov rdx, r14 call JS_FreeValue mov rbx, r13 mov r14, r12 loc_6E04B: mov rax, rbx mov rdx, r14 pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long js_symbol_get_description(long long a1) { long long v1; // rax long long v2; // rbx long long v3; // rdx long long v4; // r14 long long v5; // r13 unsigned long long v6; // rcx int atom_index; // eax long long v8; // rax unsigned long long v9; // r13 v1 = js_thisSymbolValue(); v2 = v1; v4 = v3; if ( (_DWORD)v3 != 6 ) { v5 = 0LL; if ( __OFSUB__(0, *(_DWORD *)(v1 + 4)) ) { v6 = 0LL; } else { atom_index = js_get_atom_index(*(_QWORD *)(a1 + 24), v1); v8 = JS_AtomToString(a1, atom_index); v6 = v8 & 0xFFFFFFFF00000000LL; v5 = (unsigned int)v8; } v9 = v6 | v5; JS_FreeValue(a1, v2, v4); return v9; } return v2; }
js_symbol_get_description: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RDI CALL 0x0016e05b MOV RBX,RAX MOV R14,RDX CMP R14D,0x6 JZ 0x0016e04b XOR R13D,R13D CMP R13D,dword ptr [RBX + 0x4] JNO 0x0016e00b PUSH 0x3 POP R12 XOR ECX,ECX JMP 0x0016e034 LAB_0016e00b: MOV RDI,qword ptr [R15 + 0x18] MOV RSI,RBX CALL 0x00121cdf MOV RDI,R15 MOV ESI,EAX CALL 0x0011e540 MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV R13D,EAX LAB_0016e034: OR R13,RCX MOV RDI,R15 MOV RSI,RBX MOV RDX,R14 CALL 0x0011bbce MOV RBX,R13 MOV R14,R12 LAB_0016e04b: MOV RAX,RBX MOV RDX,R14 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Removing unreachable block (ram,0x0016e003) */ int1 [16] js_symbol_get_description(long param_1) { int4 uVar1; int8 uVar2; int8 uVar3; int1 auVar4 [16]; auVar4 = js_thisSymbolValue(); uVar3 = auVar4._8_8_; uVar2 = auVar4._0_8_; if (auVar4._8_4_ != 6) { uVar1 = js_get_atom_index(*(int8 *)(param_1 + 0x18),uVar2); auVar4 = JS_AtomToString(param_1,uVar1); JS_FreeValue(param_1,uVar2,uVar3); } return auVar4; }
59,739
get_collation_number
eloqsql/mysys/charset.c
uint get_collation_number(const char *name, myf flags) { uint id; char alias[64]; my_pthread_once(&charsets_initialized, init_available_charsets); if ((id= get_collation_number_internal(name))) return id; if ((name= get_collation_name_alias(name, alias, sizeof(alias),flags))) return get_collation_number_internal(name); return 0; }
O0
c
get_collation_number: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x60(%rbp) movq %rsi, -0x68(%rbp) leaq 0x32ff20(%rip), %rdi # 0x3939c4 leaq 0x85(%rip), %rsi # 0x63b30 callq 0x25270 movq -0x60(%rbp), %rdi callq 0x63cc0 movl %eax, -0x6c(%rbp) cmpl $0x0, %eax je 0x63ac9 movl -0x6c(%rbp), %eax movl %eax, -0x54(%rbp) jmp 0x63afe movq -0x60(%rbp), %rdi leaq -0x50(%rbp), %rsi movq -0x68(%rbp), %rcx movl $0x40, %edx callq 0x63d60 movq %rax, -0x60(%rbp) cmpq $0x0, %rax je 0x63af7 movq -0x60(%rbp), %rdi callq 0x63cc0 movl %eax, -0x54(%rbp) jmp 0x63afe movl $0x0, -0x54(%rbp) movl -0x54(%rbp), %eax movl %eax, -0x70(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x63b1f movl -0x70(%rbp), %eax addq $0x70, %rsp popq %rbp retq callq 0x252d0 nopw %cs:(%rax,%rax)
get_collation_number: push rbp mov rbp, rsp sub rsp, 70h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_60], rdi mov [rbp+var_68], rsi lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_6C], eax cmp eax, 0 jz short loc_63AC9 mov eax, [rbp+var_6C] mov [rbp+var_54], eax jmp short loc_63AFE loc_63AC9: mov rdi, [rbp+var_60] lea rsi, [rbp+var_50] mov rcx, [rbp+var_68] mov edx, 40h ; '@' call get_collation_name_alias mov [rbp+var_60], rax cmp rax, 0 jz short loc_63AF7 mov rdi, [rbp+var_60] call get_collation_number_internal mov [rbp+var_54], eax jmp short loc_63AFE loc_63AF7: mov [rbp+var_54], 0 loc_63AFE: mov eax, [rbp+var_54] mov [rbp+var_70], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_63B1F mov eax, [rbp+var_70] add rsp, 70h pop rbp retn loc_63B1F: call ___stack_chk_fail
long long get_collation_number(long long a1, long long a2) { unsigned int collation_number_internal; // [rsp+4h] [rbp-6Ch] long long collation_name_alias; // [rsp+10h] [rbp-60h] _BYTE v6[72]; // [rsp+20h] [rbp-50h] BYREF unsigned long long v7; // [rsp+68h] [rbp-8h] v7 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number_internal = get_collation_number_internal(a1); if ( collation_number_internal ) { return collation_number_internal; } else { collation_name_alias = get_collation_name_alias(a1, v6, 64LL, a2); if ( collation_name_alias ) return (unsigned int)get_collation_number_internal(collation_name_alias); else return 0; } }
get_collation_number: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x60],RDI MOV qword ptr [RBP + -0x68],RSI LEA RDI,[0x4939c4] LEA RSI,[0x163b30] CALL 0x00125270 MOV RDI,qword ptr [RBP + -0x60] CALL 0x00163cc0 MOV dword ptr [RBP + -0x6c],EAX CMP EAX,0x0 JZ 0x00163ac9 MOV EAX,dword ptr [RBP + -0x6c] MOV dword ptr [RBP + -0x54],EAX JMP 0x00163afe LAB_00163ac9: MOV RDI,qword ptr [RBP + -0x60] LEA RSI,[RBP + -0x50] MOV RCX,qword ptr [RBP + -0x68] MOV EDX,0x40 CALL 0x00163d60 MOV qword ptr [RBP + -0x60],RAX CMP RAX,0x0 JZ 0x00163af7 MOV RDI,qword ptr [RBP + -0x60] CALL 0x00163cc0 MOV dword ptr [RBP + -0x54],EAX JMP 0x00163afe LAB_00163af7: MOV dword ptr [RBP + -0x54],0x0 LAB_00163afe: MOV EAX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x70],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00163b1f MOV EAX,dword ptr [RBP + -0x70] ADD RSP,0x70 POP RBP RET LAB_00163b1f: CALL 0x001252d0
int get_collation_number(int8 param_1,int8 param_2) { long lVar1; long in_FS_OFFSET; int local_5c; int1 local_58 [72]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); local_5c = get_collation_number_internal(param_1); if (local_5c == 0) { lVar1 = get_collation_name_alias(param_1,local_58,0x40,param_2); if (lVar1 == 0) { local_5c = 0; } else { local_5c = get_collation_number_internal(lVar1); } } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return local_5c; }
59,740
my_8bit_charset_flags_from_data
eloqsql/strings/ctype-simple.c
uint my_8bit_charset_flags_from_data(CHARSET_INFO *cs) { uint flags= 0; if (my_charset_is_8bit_pure_ascii(cs)) flags|= MY_CS_PUREASCII; if (!my_charset_is_ascii_compatible(cs)) flags|= MY_CS_NONASCII; return flags; }
O3
c
my_8bit_charset_flags_from_data: movq 0x68(%rdi), %rcx testq %rcx, %rcx je 0xcd600 pushq %rbp movq %rsp, %rbp xorl %eax, %eax xorl %edx, %edx cmpw $0x80, (%rcx,%rdx,2) jae 0xcd5e7 incq %rdx cmpq $0x100, %rdx # imm = 0x100 jne 0xcd5ce movl $0x1000, %eax # imm = 0x1000 xorl %edx, %edx movzwl (%rcx,%rdx,2), %esi cmpq %rsi, %rdx jne 0xcd603 incq %rdx cmpq $0x80, %rdx jne 0xcd5e9 jmp 0xcd608 xorl %eax, %eax retq orl $0x2000, %eax # imm = 0x2000 popq %rbp retq
my_8bit_charset_flags_from_data: mov rcx, [rdi+68h] test rcx, rcx jz short loc_CD600 push rbp mov rbp, rsp xor eax, eax xor edx, edx loc_CD5CE: cmp word ptr [rcx+rdx*2], 80h jnb short loc_CD5E7 inc rdx cmp rdx, 100h jnz short loc_CD5CE mov eax, 1000h loc_CD5E7: xor edx, edx loc_CD5E9: movzx esi, word ptr [rcx+rdx*2] cmp rdx, rsi jnz short loc_CD603 inc rdx cmp rdx, 80h jnz short loc_CD5E9 jmp short loc_CD608 loc_CD600: xor eax, eax retn loc_CD603: or eax, 2000h loc_CD608: pop rbp retn
long long my_8bit_charset_flags_from_data(long long a1) { long long v1; // rcx long long result; // rax long long v3; // rdx long long v4; // rdx v1 = *(_QWORD *)(a1 + 104); if ( !v1 ) return 0LL; result = 0LL; v3 = 0LL; while ( *(_WORD *)(v1 + 2 * v3) < 0x80u ) { if ( ++v3 == 256 ) { result = 4096LL; break; } } v4 = 0LL; while ( v4 == *(unsigned __int16 *)(v1 + 2 * v4) ) { if ( ++v4 == 128 ) return result; } return (unsigned int)result | 0x2000; }
my_8bit_charset_flags_from_data: MOV RCX,qword ptr [RDI + 0x68] TEST RCX,RCX JZ 0x001cd600 PUSH RBP MOV RBP,RSP XOR EAX,EAX XOR EDX,EDX LAB_001cd5ce: CMP word ptr [RCX + RDX*0x2],0x80 JNC 0x001cd5e7 INC RDX CMP RDX,0x100 JNZ 0x001cd5ce MOV EAX,0x1000 LAB_001cd5e7: XOR EDX,EDX LAB_001cd5e9: MOVZX ESI,word ptr [RCX + RDX*0x2] CMP RDX,RSI JNZ 0x001cd603 INC RDX CMP RDX,0x80 JNZ 0x001cd5e9 JMP 0x001cd608 LAB_001cd600: XOR EAX,EAX RET LAB_001cd603: OR EAX,0x2000 LAB_001cd608: POP RBP RET
uint my_8bit_charset_flags_from_data(long param_1) { long lVar1; uint uVar2; long lVar3; ulong uVar4; lVar1 = *(long *)(param_1 + 0x68); if (lVar1 == 0) { return 0; } uVar2 = 0; lVar3 = 0; do { if (0x7f < *(ushort *)(lVar1 + lVar3 * 2)) goto LAB_001cd5e7; lVar3 = lVar3 + 1; } while (lVar3 != 0x100); uVar2 = 0x1000; LAB_001cd5e7: uVar4 = 0; do { if (uVar4 != *(ushort *)(lVar1 + uVar4 * 2)) { return uVar2 | 0x2000; } uVar4 = uVar4 + 1; } while (uVar4 != 0x80); return uVar2; }
59,741
Field_longlong::val_real()
eloqsql/sql/field.cc
double Field_longlong::val_real(void) { DBUG_ASSERT(marked_for_read()); longlong j; j=sint8korr(ptr); /* The following is open coded to avoid a bug in gcc 3.3 */ if (unsigned_flag) { ulonglong tmp= (ulonglong) j; return ulonglong2double(tmp); } return (double) j; }
O0
cpp
Field_longlong::val_real(): pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0xce00d2 movq -0x28(%rbp), %rax movq 0x8(%rax), %rcx movq (%rcx), %rcx movq %rcx, -0x18(%rbp) testb $0x1, 0xcb(%rax) je 0xce0120 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movaps 0x701f57(%rip), %xmm1 # 0x13e2050 movq -0x20(%rbp), %xmm0 punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] movapd 0x701f56(%rip), %xmm1 # 0x13e2060 subpd %xmm1, %xmm0 movaps %xmm0, %xmm1 unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1] addsd %xmm1, %xmm0 movsd %xmm0, -0x8(%rbp) jmp 0xce012b cvtsi2sdq -0x18(%rbp), %xmm0 movsd %xmm0, -0x8(%rbp) movsd -0x8(%rbp), %xmm0 popq %rbp retq nopw %cs:(%rax,%rax)
_ZN14Field_longlong8val_realEv: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov [rbp+var_28], rax jmp short $+2 loc_CE00D2: mov rax, [rbp+var_28] mov rcx, [rax+8] mov rcx, [rcx] mov [rbp+var_18], rcx test byte ptr [rax+0CBh], 1 jz short loc_CE0120 mov rax, [rbp+var_18] mov [rbp+var_20], rax movaps xmm1, cs:xmmword_13E2050 movq xmm0, [rbp+var_20] punpckldq xmm0, xmm1 movapd xmm1, cs:xmmword_13E2060 subpd xmm0, xmm1 movaps xmm1, xmm0 unpckhpd xmm0, xmm0 addsd xmm0, xmm1 movsd [rbp+var_8], xmm0 jmp short loc_CE012B loc_CE0120: cvtsi2sd xmm0, [rbp+var_18] movsd [rbp+var_8], xmm0 loc_CE012B: movsd xmm0, [rbp+var_8] pop rbp retn
double Field_longlong::val_real(Field_longlong *this) { __m128d v1; // xmm1 __m128i v3; // [rsp+8h] [rbp-20h] BYREF Field_longlong *v4; // [rsp+18h] [rbp-10h] v4 = this; v3.m128i_i64[1] = **((_QWORD **)this + 1); if ( (*((_BYTE *)this + 203) & 1) == 0 ) return (double)v3.m128i_i32[2]; v3.m128i_i64[0] = v3.m128i_i64[1]; v1 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64(&v3), (__m128i)xmmword_13E2050), (__m128d)xmmword_13E2060); return _mm_unpackhi_pd(v1, v1).m128d_f64[0] + v1.m128d_f64[0]; }
_S_max_size: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x20],RDI MOV RAX,0xfffffffffffffff MOV qword ptr [RBP + -0x28],RAX MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x18],RCX MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x10],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x30],RAX LAB_00ce00f6: LEA RDI,[RBP + -0x28] LEA RSI,[RBP + -0x30] CALL 0x0090b410 MOV qword ptr [RBP + -0x38],RAX JMP 0x00ce0109 LAB_00ce0109: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] ADD RSP,0x40 POP RBP RET
/* std::vector<pollfd, std::allocator<pollfd> >::_S_max_size(std::allocator<pollfd> const&) */ ulong std::vector<pollfd,std::allocator<pollfd>>::_S_max_size(allocator *param_1) { ulong *puVar1; ulong local_38 [2]; allocator *local_28; allocator *local_20; allocator *local_18; allocator *local_10; local_38[1] = 0xfffffffffffffff; local_38[0] = 0xfffffffffffffff; /* try { // try from 00ce00f6 to 00ce0102 has its CatchHandler @ 00ce0116 */ local_28 = param_1; local_20 = param_1; local_18 = param_1; local_10 = param_1; puVar1 = min<unsigned_long>(local_38 + 1,local_38); return *puVar1; }
59,742
Field_longlong::val_real()
eloqsql/sql/field.cc
double Field_longlong::val_real(void) { DBUG_ASSERT(marked_for_read()); longlong j; j=sint8korr(ptr); /* The following is open coded to avoid a bug in gcc 3.3 */ if (unsigned_flag) { ulonglong tmp= (ulonglong) j; return ulonglong2double(tmp); } return (double) j; }
O3
cpp
Field_longlong::val_real(): pushq %rbp movq %rsp, %rbp movq 0x8(%rdi), %rax movq (%rax), %rax cmpb $0x0, 0xcb(%rdi) jne 0x97b27f cvtsi2sd %rax, %xmm0 jmp 0x97b2a0 movq %rax, %xmm1 punpckldq 0x3e7e64(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1] subpd 0x3e7e6c(%rip), %xmm1 # 0xd63100 movapd %xmm1, %xmm0 unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1] addsd %xmm1, %xmm0 popq %rbp retq
_ZN14Field_longlong8val_realEv: push rbp mov rbp, rsp mov rax, [rdi+8] mov rax, [rax] cmp byte ptr [rdi+0CBh], 0 jnz short loc_97B27F cvtsi2sd xmm0, rax jmp short loc_97B2A0 loc_97B27F: movq xmm1, rax punpckldq xmm1, cs:xmmword_D630F0 subpd xmm1, cs:xmmword_D63100 movapd xmm0, xmm1 unpckhpd xmm0, xmm1 addsd xmm0, xmm1 loc_97B2A0: pop rbp retn
double Field_longlong::val_real(Field_longlong *this) { unsigned long long v1; // rax __m128d v3; // xmm1 v1 = **((_QWORD **)this + 1); if ( !*((_BYTE *)this + 203) ) return (double)(int)v1; v3 = _mm_sub_pd((__m128d)_mm_unpacklo_epi32((__m128i)v1, (__m128i)xmmword_D630F0), (__m128d)xmmword_D63100); return _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0]; }
59,743
js_free_port
bluesky950520[P]quickjs/quickjs-libc.c
static void js_free_port(JSRuntime *rt, JSWorkerMessageHandler *port) { if (port) { js_free_message_pipe(port->recv_pipe); JS_FreeValueRT(rt, port->on_message_func); list_del(&port->link); js_free_rt(rt, port); } }
O1
c
js_free_port: testq %rsi, %rsi je 0x17626 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0x10(%rsi), %rdi callq 0x147c3 movq 0x18(%rbx), %rsi movq 0x20(%rbx), %rdx movq %r14, %rdi callq 0x1ccb2 movq (%rbx), %rax movq 0x8(%rbx), %rcx movq %rcx, 0x8(%rax) movq %rax, (%rcx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1be70 retq
js_free_port: test rsi, rsi jz short locret_17626 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rdi, [rsi+10h] call js_free_message_pipe mov rsi, [rbx+18h] mov rdx, [rbx+20h] mov rdi, r14 call JS_FreeValueRT mov rax, [rbx] mov rcx, [rbx+8] mov [rax+8], rcx mov [rcx], rax xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp js_free_rt locret_17626: retn
long long js_free_port(long long a1, long long *a2) { long long v2; // rax _QWORD *v3; // rcx long long result; // rax if ( a2 ) { js_free_message_pipe(a2[2]); JS_FreeValueRT(a1, a2[3]); v2 = *a2; v3 = (_QWORD *)a2[1]; *(_QWORD *)(v2 + 8) = v3; *v3 = v2; *(_OWORD *)a2 = 0LL; return js_free_rt(a1, a2); } return result; }
js_free_port: TEST RSI,RSI JZ 0x00117626 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RDI,qword ptr [RSI + 0x10] CALL 0x001147c3 MOV RSI,qword ptr [RBX + 0x18] MOV RDX,qword ptr [RBX + 0x20] MOV RDI,R14 CALL 0x0011ccb2 MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RCX],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0011be70 LAB_00117626: RET
void js_free_port(int8 param_1,long *param_2) { long lVar1; long *plVar2; if (param_2 != (long *)0x0) { js_free_message_pipe(param_2[2]); JS_FreeValueRT(param_1,param_2[3],param_2[4]); lVar1 = *param_2; plVar2 = (long *)param_2[1]; *(long **)(lVar1 + 8) = plVar2; *plVar2 = lVar1; *param_2 = 0; param_2[1] = 0; js_free_rt(param_1,param_2); return; } return; }
59,744
js_free_port
bluesky950520[P]quickjs/quickjs-libc.c
static void js_free_port(JSRuntime *rt, JSWorkerMessageHandler *port) { if (port) { js_free_message_pipe(port->recv_pipe); JS_FreeValueRT(rt, port->on_message_func); list_del(&port->link); js_free_rt(rt, port); } }
O3
c
js_free_port: testq %rsi, %rsi je 0x18028 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq 0x10(%rsi), %rdi callq 0x1520d movq 0x18(%rbx), %rsi movq 0x20(%rbx), %rdx movq %r14, %rdi callq 0x1d5bd movq (%rbx), %rax movq 0x8(%rbx), %rcx movq %rcx, 0x8(%rax) movq %rax, (%rcx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1c730 retq
js_free_port: test rsi, rsi jz short locret_18028 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov rdi, [rsi+10h] call js_free_message_pipe mov rsi, [rbx+18h] mov rdx, [rbx+20h] mov rdi, r14 call JS_FreeValueRT mov rax, [rbx] mov rcx, [rbx+8] mov [rax+8], rcx mov [rcx], rax xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp js_free_rt locret_18028: retn
long long js_free_port(long long a1, long long *a2) { long long v2; // rax _QWORD *v3; // rcx long long result; // rax if ( a2 ) { js_free_message_pipe(a2[2]); JS_FreeValueRT(a1, a2[3], a2[4]); v2 = *a2; v3 = (_QWORD *)a2[1]; *(_QWORD *)(v2 + 8) = v3; *v3 = v2; *(_OWORD *)a2 = 0LL; return js_free_rt(a1, a2); } return result; }
js_free_port: TEST RSI,RSI JZ 0x00118028 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV RDI,qword ptr [RSI + 0x10] CALL 0x0011520d MOV RSI,qword ptr [RBX + 0x18] MOV RDX,qword ptr [RBX + 0x20] MOV RDI,R14 CALL 0x0011d5bd MOV RAX,qword ptr [RBX] MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RAX + 0x8],RCX MOV qword ptr [RCX],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0011c730 LAB_00118028: RET
void js_free_port(int8 param_1,long *param_2) { long lVar1; long *plVar2; if (param_2 != (long *)0x0) { js_free_message_pipe(param_2[2]); JS_FreeValueRT(param_1,param_2[3],param_2[4]); lVar1 = *param_2; plVar2 = (long *)param_2[1]; *(long **)(lVar1 + 8) = plVar2; *plVar2 = lVar1; *param_2 = 0; param_2[1] = 0; js_free_rt(param_1,param_2); return; } return; }
59,745
evmone::instr::core::returndatacopy(evmone::StackTop, long, evmone::ExecutionState&)
corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/instructions.hpp
inline Result returndatacopy(StackTop stack, int64_t gas_left, ExecutionState& state) noexcept { const auto& mem_index = stack.pop(); const auto& input_index = stack.pop(); const auto& size = stack.pop(); if (!check_memory(gas_left, state.memory, mem_index, size)) return {EVMC_OUT_OF_GAS, gas_left}; auto dst = static_cast<size_t>(mem_index); auto s = static_cast<size_t>(size); if (is_eof_container(state.original_code)) { auto src = state.return_data.size() < input_index ? state.return_data.size() : static_cast<size_t>(input_index); auto copy_size = std::min(s, state.return_data.size() - src); if (const auto cost = copy_cost(s); (gas_left -= cost) < 0) return {EVMC_OUT_OF_GAS, gas_left}; if (copy_size > 0) std::memcpy(&state.memory[dst], &state.return_data[src], copy_size); if (s - copy_size > 0) std::memset(&state.memory[dst + copy_size], 0, s - copy_size); } else { if (state.return_data.size() < input_index) return {EVMC_INVALID_MEMORY_ACCESS, gas_left}; auto src = static_cast<size_t>(input_index); if (src + s > state.return_data.size()) return {EVMC_INVALID_MEMORY_ACCESS, gas_left}; if (const auto cost = copy_cost(s); (gas_left -= cost) < 0) return {EVMC_OUT_OF_GAS, gas_left}; if (s > 0) std::memcpy(&state.memory[dst], &state.return_data[src], s); } return {EVMC_SUCCESS, gas_left}; }
O3
cpp
evmone::instr::core::returndatacopy(evmone::StackTop, long, evmone::ExecutionState&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r13 movdqu -0x40(%rdi), %xmm0 movdqu -0x30(%rdi), %xmm1 por %xmm0, %xmm1 leaq 0x8(%rdx), %r15 ptest %xmm1, %xmm1 je 0x4022a movq -0x30(%r13), %rax orq -0x28(%r13), %rax movl $0x3, %ebp orq -0x38(%r13), %rax jne 0x4032c movq -0x40(%r13), %rax movq %rax, %rcx shrq $0x20, %rcx jne 0x4032c movq 0x10(%r13), %rcx orq 0x18(%r13), %rcx orq 0x8(%r13), %rcx jne 0x4032c movq (%r13), %rdx movq %rdx, %rcx shrq $0x20, %rcx jne 0x4032c addq %rax, %rdx cmpq 0x10(%r14), %rdx jbe 0x40221 movq %rbx, %rdi movq %r15, %rsi callq 0x3fbe5 movq %rax, %rbx testq %rbx, %rbx js 0x4032c movq %r15, (%rsp) movq -0x40(%r13), %r12 movq (%r13), %rbp movq 0x68(%r14), %rdi movq 0x70(%r14), %rsi callq 0x412ef movq -0x20(%r13), %rsi movq -0x10(%r13), %rdx movq -0x8(%r13), %rcx xorl %edi, %edi movq %rcx, %r8 orq %rdx, %r8 cmoveq %rsi, %rdx cmoveq -0x18(%r13), %rcx movq 0x50(%r14), %r15 cmoveq %r15, %rdi testb %al, %al je 0x402d8 xorl %eax, %eax cmpq %rdx, %rdi sbbq %rcx, %rax cmovbq %r15, %rsi subq %rsi, %r15 cmpq %r12, %r15 movq %r12, %r13 cmovbq %r15, %r13 leaq 0x1f(%r12), %rax shrq $0x5, %rax leaq (%rax,%rax,2), %rax subq %rax, %rbx js 0x40327 testq %r13, %r13 je 0x402b3 movq 0x8(%r14), %rdi addq %rbp, %rdi addq 0x48(%r14), %rsi movq %r13, %rdx callq 0x211a0 movq %rbp, %rdi xorl %ebp, %ebp cmpq %r15, %r12 jbe 0x4032c movq (%rsp), %rax addq (%rax), %rdi addq %r13, %rdi subq %r13, %r12 xorl %ebp, %ebp xorl %esi, %esi movq %r12, %rdx callq 0x21120 jmp 0x4032c movq %rbp, %r8 xorl %eax, %eax cmpq %rdx, %rdi sbbq %rcx, %rax setb %al leaq (%rsi,%r12), %rcx cmpq %r15, %rcx seta %cl orb %al, %cl movl $0x9, %ebp jne 0x4032c leaq 0x1f(%r12), %rax shrq $0x5, %rax leaq (%rax,%rax,2), %rax subq %rax, %rbx js 0x40327 xorl %ebp, %ebp testq %r12, %r12 je 0x4032c movq %r8, %rdi addq 0x8(%r14), %rdi addq 0x48(%r14), %rsi movq %r12, %rdx callq 0x211a0 jmp 0x4032c movl $0x3, %ebp movl %ebp, %eax movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN6evmone5instr4core14returndatacopyENS_8StackTopElRNS_14ExecutionStateE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov rbx, rsi mov r13, rdi movdqu xmm0, xmmword ptr [rdi-40h] movdqu xmm1, xmmword ptr [rdi-30h] por xmm1, xmm0 lea r15, [rdx+8] ptest xmm1, xmm1 jz short loc_4022A mov rax, [r13-30h] or rax, [r13-28h] mov ebp, 3 or rax, [r13-38h] jnz loc_4032C mov rax, [r13-40h] mov rcx, rax shr rcx, 20h jnz loc_4032C mov rcx, [r13+10h] or rcx, [r13+18h] or rcx, [r13+8] jnz loc_4032C mov rdx, [r13+0] mov rcx, rdx shr rcx, 20h; unsigned __int64 jnz loc_4032C add rdx, rax; evmone::Memory * cmp rdx, [r14+10h] jbe short loc_40221 mov rdi, rbx; this mov rsi, r15; __int64 call _ZN6evmone11grow_memoryElRNS_6MemoryEm; evmone::grow_memory(long,evmone::Memory &,ulong) mov rbx, rax loc_40221: test rbx, rbx js loc_4032C loc_4022A: mov [rsp+38h+var_38], r15 mov r12, [r13-40h] mov rbp, [r13+0] mov rdi, [r14+68h] mov rsi, [r14+70h] call _ZN6evmone16is_eof_containerESt17basic_string_viewIhN4evmc11byte_traitsIhEEE; evmone::is_eof_container(std::basic_string_view<uchar,evmc::byte_traits<uchar>>) mov rsi, [r13-20h] mov rdx, [r13-10h] mov rcx, [r13-8] xor edi, edi mov r8, rcx or r8, rdx cmovz rdx, rsi cmovz rcx, [r13-18h] mov r15, [r14+50h] cmovz rdi, r15 test al, al jz short loc_402D8 xor eax, eax cmp rdi, rdx sbb rax, rcx cmovb rsi, r15 sub r15, rsi cmp r15, r12 mov r13, r12 cmovb r13, r15 lea rax, [r12+1Fh] shr rax, 5 lea rax, [rax+rax*2] sub rbx, rax js loc_40327 test r13, r13 jz short loc_402B3 mov rdi, [r14+8] add rdi, rbp add rsi, [r14+48h] mov rdx, r13 call _memcpy loc_402B3: mov rdi, rbp xor ebp, ebp cmp r12, r15 jbe short loc_4032C mov rax, [rsp+38h+var_38] add rdi, [rax] add rdi, r13 sub r12, r13 xor ebp, ebp xor esi, esi mov rdx, r12 call _memset jmp short loc_4032C loc_402D8: mov r8, rbp xor eax, eax cmp rdi, rdx sbb rax, rcx setb al lea rcx, [rsi+r12] cmp rcx, r15 setnbe cl or cl, al mov ebp, 9 jnz short loc_4032C lea rax, [r12+1Fh] shr rax, 5 lea rax, [rax+rax*2] sub rbx, rax js short loc_40327 xor ebp, ebp test r12, r12 jz short loc_4032C mov rdi, r8 add rdi, [r14+8] add rsi, [r14+48h] mov rdx, r12 call _memcpy jmp short loc_4032C loc_40327: mov ebp, 3 loc_4032C: mov eax, ebp mov rdx, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long evmone::instr::core::returndatacopy(const __m128i *a1, evmone *a2, _QWORD *a3) { char *v4; // rbx __m128i v6; // xmm1 evmone::Memory *v7; // r15 unsigned int v8; // ebp evmone::Memory *v9; // rdx unsigned long long v10; // r12 long long v11; // rbp char is_eof_container; // al long long v13; // rsi long long v14; // rdx long long v15; // rcx unsigned long long v16; // rdi unsigned long long v17; // r15 unsigned long long v18; // r15 unsigned long long v19; // r13 long long v20; // rdi long long v21; // r8 evmone::Memory *v23; // [rsp+0h] [rbp-38h] v4 = (char *)a2; v6 = _mm_or_si128(_mm_loadu_si128(a1 - 3), _mm_loadu_si128(a1 - 4)); v7 = (evmone::Memory *)(a3 + 1); if ( _mm_testz_si128(v6, v6) ) goto LABEL_9; v8 = 3; if ( !(a1[-4].m128i_i64[1] | a1[-3].m128i_i64[1] | a1[-3].m128i_i64[0]) && !HIDWORD(a1[-4].m128i_i64[0]) && !(a1->m128i_i64[1] | a1[1].m128i_i64[1] | a1[1].m128i_i64[0]) && !HIDWORD(a1->m128i_i64[0]) ) { v9 = (evmone::Memory *)(a1[-4].m128i_i64[0] + a1->m128i_i64[0]); if ( (unsigned long long)v9 > a3[2] ) v4 = evmone::grow_memory(a2, v7, v9); if ( (long long)v4 >= 0 ) { LABEL_9: v23 = v7; v10 = a1[-4].m128i_u64[0]; v11 = a1->m128i_i64[0]; is_eof_container = evmone::is_eof_container(a3[13], a3[14]); v13 = a1[-2].m128i_i64[0]; v14 = a1[-1].m128i_i64[0]; v15 = a1[-1].m128i_i64[1]; v16 = 0LL; if ( *(_OWORD *)&a1[-1] == 0LL ) { v14 = a1[-2].m128i_i64[0]; v15 = a1[-2].m128i_i64[1]; } v17 = a3[10]; if ( *(_OWORD *)&a1[-1] == 0LL ) v16 = a3[10]; if ( is_eof_container ) { if ( v16 < __PAIR128__(v15, v14) ) v13 = a3[10]; v18 = v17 - v13; v19 = v10; if ( v18 < v10 ) v19 = v18; if ( (long long)&v4[-3 * ((v10 + 31) >> 5)] >= 0 ) { if ( v19 ) memcpy(v11 + a3[1]); v20 = v11; v8 = 0; if ( v10 > v18 ) { v8 = 0; memset(v19 + *(_QWORD *)v23 + v20, 0LL, v10 - v19); } return v8; } return 3; } v21 = v11; v8 = 9; if ( v16 < __PAIR128__(v15, v14) || v13 + v10 > v17 ) return v8; if ( (long long)&v4[-3 * ((v10 + 31) >> 5)] < 0 ) return 3; v8 = 0; if ( v10 ) memcpy(a3[1] + v21); } } return v8; }
returndatacopy: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV RBX,RSI MOV R13,RDI MOVDQU XMM0,xmmword ptr [RDI + -0x40] MOVDQU XMM1,xmmword ptr [RDI + -0x30] POR XMM1,XMM0 LEA R15,[RDX + 0x8] PTEST XMM1,XMM1 JZ 0x0014022a MOV RAX,qword ptr [R13 + -0x30] OR RAX,qword ptr [R13 + -0x28] MOV EBP,0x3 OR RAX,qword ptr [R13 + -0x38] JNZ 0x0014032c MOV RAX,qword ptr [R13 + -0x40] MOV RCX,RAX SHR RCX,0x20 JNZ 0x0014032c MOV RCX,qword ptr [R13 + 0x10] OR RCX,qword ptr [R13 + 0x18] OR RCX,qword ptr [R13 + 0x8] JNZ 0x0014032c MOV RDX,qword ptr [R13] MOV RCX,RDX SHR RCX,0x20 JNZ 0x0014032c ADD RDX,RAX CMP RDX,qword ptr [R14 + 0x10] JBE 0x00140221 MOV RDI,RBX MOV RSI,R15 CALL 0x0013fbe5 MOV RBX,RAX LAB_00140221: TEST RBX,RBX JS 0x0014032c LAB_0014022a: MOV qword ptr [RSP],R15 MOV R12,qword ptr [R13 + -0x40] MOV RBP,qword ptr [R13] MOV RDI,qword ptr [R14 + 0x68] MOV RSI,qword ptr [R14 + 0x70] CALL 0x001412ef MOV RSI,qword ptr [R13 + -0x20] MOV RDX,qword ptr [R13 + -0x10] MOV RCX,qword ptr [R13 + -0x8] XOR EDI,EDI MOV R8,RCX OR R8,RDX CMOVZ RDX,RSI CMOVZ RCX,qword ptr [R13 + -0x18] MOV R15,qword ptr [R14 + 0x50] CMOVZ RDI,R15 TEST AL,AL JZ 0x001402d8 XOR EAX,EAX CMP RDI,RDX SBB RAX,RCX CMOVC RSI,R15 SUB R15,RSI CMP R15,R12 MOV R13,R12 CMOVC R13,R15 LEA RAX,[R12 + 0x1f] SHR RAX,0x5 LEA RAX,[RAX + RAX*0x2] SUB RBX,RAX JS 0x00140327 TEST R13,R13 JZ 0x001402b3 MOV RDI,qword ptr [R14 + 0x8] ADD RDI,RBP ADD RSI,qword ptr [R14 + 0x48] MOV RDX,R13 CALL 0x001211a0 LAB_001402b3: MOV RDI,RBP XOR EBP,EBP CMP R12,R15 JBE 0x0014032c MOV RAX,qword ptr [RSP] ADD RDI,qword ptr [RAX] ADD RDI,R13 SUB R12,R13 XOR EBP,EBP XOR ESI,ESI MOV RDX,R12 CALL 0x00121120 JMP 0x0014032c LAB_001402d8: MOV R8,RBP XOR EAX,EAX CMP RDI,RDX SBB RAX,RCX SETC AL LEA RCX,[RSI + R12*0x1] CMP RCX,R15 SETA CL OR CL,AL MOV EBP,0x9 JNZ 0x0014032c LEA RAX,[R12 + 0x1f] SHR RAX,0x5 LEA RAX,[RAX + RAX*0x2] SUB RBX,RAX JS 0x00140327 XOR EBP,EBP TEST R12,R12 JZ 0x0014032c MOV RDI,R8 ADD RDI,qword ptr [R14 + 0x8] ADD RSI,qword ptr [R14 + 0x48] MOV RDX,R12 CALL 0x001211a0 JMP 0x0014032c LAB_00140327: MOV EBP,0x3 LAB_0014032c: MOV EAX,EBP MOV RDX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* evmone::instr::core::returndatacopy(evmone::StackTop, long, evmone::ExecutionState&) */ int1 [16] evmone::instr::core::returndatacopy(ulong *param_1,long param_2,long param_3) { ulong uVar1; bool bVar2; bool bVar3; char cVar4; ulong uVar5; ulong uVar6; ulong uVar7; int8 uVar8; ulong uVar9; ulong uVar10; ulong uVar11; int1 auVar12 [16]; if (*(int1 (*) [16])(param_1 + -6) != (int1 [16])0x0 || *(int1 (*) [16])(param_1 + -8) != (int1 [16])0x0) { uVar8 = 3; if (((((param_1[-6] != 0 || param_1[-5] != 0) || param_1[-7] != 0) || (param_1[-8] >> 0x20 != 0) ) || ((param_1[2] != 0 || param_1[3] != 0) || param_1[1] != 0)) || (*param_1 >> 0x20 != 0)) goto LAB_0014032c; uVar6 = *param_1 + param_1[-8]; if (*(ulong *)(param_3 + 0x10) < uVar6) { param_2 = grow_memory(param_2,(Memory *)(param_3 + 8),uVar6); } if (param_2 < 0) goto LAB_0014032c; } uVar6 = param_1[-8]; uVar1 = *param_1; cVar4 = is_eof_container(*(evmone **)(param_3 + 0x68),*(int8 *)(param_3 + 0x70)); uVar9 = param_1[-4]; bVar2 = param_1[-1] == 0; bVar3 = param_1[-2] == 0; uVar7 = param_1[-2]; if (bVar2 && bVar3) { uVar7 = uVar9; } uVar5 = param_1[-1]; if (bVar2 && bVar3) { uVar5 = param_1[-3]; } uVar11 = *(ulong *)(param_3 + 0x50); uVar10 = 0; if (bVar2 && bVar3) { uVar10 = uVar11; } if (cVar4 == '\0') { uVar8 = 9; if (uVar11 < uVar9 + uVar6 || (uVar5 != 0 || -uVar5 < (ulong)(uVar10 < uVar7))) goto LAB_0014032c; param_2 = param_2 + (uVar6 + 0x1f >> 5) * -3; if (-1 < param_2) { uVar8 = 0; if (uVar6 != 0) { memcpy((void *)(uVar1 + *(long *)(param_3 + 8)),(void *)(uVar9 + *(long *)(param_3 + 0x48)), uVar6); uVar8 = 0; } goto LAB_0014032c; } } else { if (uVar5 != 0 || -uVar5 < (ulong)(uVar10 < uVar7)) { uVar9 = uVar11; } uVar11 = uVar11 - uVar9; uVar7 = uVar6; if (uVar11 < uVar6) { uVar7 = uVar11; } param_2 = param_2 + (uVar6 + 0x1f >> 5) * -3; if (-1 < param_2) { if (uVar7 != 0) { memcpy((void *)(*(long *)(param_3 + 8) + uVar1),(void *)(uVar9 + *(long *)(param_3 + 0x48)), uVar7); } uVar8 = 0; if (uVar11 < uVar6) { memset((void *)(uVar1 + *(long *)(param_3 + 8) + uVar7),0,uVar6 - uVar7); uVar8 = 0; } goto LAB_0014032c; } } uVar8 = 3; LAB_0014032c: auVar12._8_8_ = param_2; auVar12._0_8_ = uVar8; return auVar12; }
59,746
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1c0, %rsp # imm = 0x1C0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 cmpq $0x0, 0x10(%rdi) je 0x409f8 leaq 0xc8(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x4084a movzbl 0xc0(%r15), %ecx leaq 0x108(%rsp), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x41a42 leaq 0xc8(%rsp), %rdi callq 0x64088 leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x41b06 testb %bpl, %bpl je 0x409ce movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x409ce leaq 0x28(%r15), %rsi movq 0x48(%r15), %r14 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5e059(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r14, %rsi callq 0x425f6 leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 movb 0x180(%rsp), %bpl cmpb $0x1, %bpl jne 0x40b40 leaq 0xf8(%rsp), %r14 pushq $0x9 popq %rsi movq %r14, %rdi callq 0x429b4 jmp 0x40b57 movb 0xc0(%r15), %al leaq 0x110(%rsp), %r14 movq %rbx, -0x8(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%r14) movups %xmm0, 0x10(%r14) movb $0x0, 0x20(%r14) movb %al, 0x21(%r14) leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x42a4a testb %bpl, %bpl je 0x40b01 movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x40b01 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r12 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5df26(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r12, %rsi callq 0x4353a leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 cmpb $0x1, 0x130(%rsp) jne 0x40b7e leaq 0xb8(%rsp), %rdi pushq $0x9 popq %rsi callq 0x429b4 leaq 0xb8(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x429ca movq %r15, %rdi callq 0x2b1f0 movq %r14, %rdi callq 0x43ab6 jmp 0x40b91 cmpb $0x9, (%rbx) jne 0x40b6a leaq 0xe8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x2b1d0 movq %rbx, %rdi movq %r14, %rsi callq 0x429ca movq %r14, %rdi callq 0x2b1f0 leaq 0x108(%rsp), %rdi callq 0x42a0e testb %bpl, %bpl je 0x40b86 jmp 0x40b91 movq %r14, %rdi callq 0x43ab6 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3b386 addq $0x1c0, %rsp # imm = 0x1C0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bb6 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40bc5 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40bd4 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c38 jmp 0x40c35 movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bf7 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40c06 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40c15 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c45 jmp 0x40c42 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x64088 jmp 0x40c52 movq %rax, %rbx movq %r14, %rdi callq 0x43ab6 jmp 0x40c52 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x42a0e movq %rbx, %rdi callq 0x20b90
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1C0h mov rbx, rdx mov ebp, esi mov r15, rdi cmp qword ptr [rdi+10h], 0 jz loc_409F8 lea r14, [rsp+1E8h+var_120] mov rdi, r14 mov rsi, r15 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) movzx ecx, byte ptr [r15+0C0h] lea rdi, [rsp+1E8h+var_E0] mov rsi, rbx mov rdx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) lea rdi, [rsp+1E8h+var_120]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_409CE mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(void) cmp eax, 0Fh jz loc_409CE lea rsi, [r15+28h] mov r14, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_409CE: mov bpl, [rsp+1E8h+var_68] cmp bpl, 1 jnz loc_40B40 lea r14, [rsp+1E8h+var_F0] push 9 pop rsi mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t) jmp loc_40B57 loc_409F8: mov al, [r15+0C0h] lea r14, [rsp+1E8h+var_D8] mov [r14-8], rbx xorps xmm0, xmm0 movups xmmword ptr [r14], xmm0 movups xmmword ptr [r14+10h], xmm0 mov byte ptr [r14+20h], 0 mov [r14+21h], al lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_40B01 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(void) cmp eax, 0Fh jz loc_40B01 lea rsi, [r15+28h] mov r12, [r15+48h] lea rdi, [rsp+1E8h+var_178] call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_40B01: cmp [rsp+1E8h+var_B8], 1 jnz short loc_40B7E lea rdi, [rsp+1E8h+var_130] push 9 pop rsi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::detail::value_t) lea r15, [rsp+1E8h+var_130] mov rdi, rbx mov rsi, r15 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, 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() mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_base() jmp short loc_40B91 loc_40B40: cmp byte ptr [rbx], 9 jnz short loc_40B6A lea r14, [rsp+1E8h+var_100] mov rdi, r14 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr)) loc_40B57: mov rdi, rbx 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() loc_40B6A: lea rdi, [rsp+1E8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() test bpl, bpl jz short loc_40B86 jmp short loc_40B91 loc_40B7E: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_base() loc_40B86: push 1 pop rsi mov rdi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_40B91: add rsp, 1C0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BB6 mov rbx, rax loc_40BB6: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BC5 mov rbx, rax loc_40BC5: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BD4 mov rbx, rax loc_40BD4: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C38 jmp short loc_40C35 mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BF7 mov rbx, rax loc_40BF7: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C06 mov rbx, rax loc_40C06: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C15 mov rbx, rax loc_40C15: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C45 jmp short loc_40C42 mov rbx, rax lea rdi, [rsp+arg_C0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_40C52 loc_40C35: mov rbx, rax loc_40C38: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_base() jmp short loc_40C52 loc_40C42: mov rbx, rax loc_40C45: lea rdi, [rsp+arg_100] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() loc_40C52: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse( long long a1, char a2, char *a3, int a4, int a5, int a6) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r14 int v12; // r8d int v13; // r9d char v14; // bp _BYTE *v15; // r14 char v16; // al long long v17; // r12 int v18; // r8d int v19; // r9d long long result; // rax int v21; // [rsp+0h] [rbp-1E8h] int v22; // [rsp+8h] [rbp-1E0h] char v23[16]; // [rsp+10h] [rbp-1D8h] char v24[16]; // [rsp+10h] [rbp-1D8h] int v25[2]; // [rsp+20h] [rbp-1C8h] int v26[2]; // [rsp+20h] [rbp-1C8h] int v27; // [rsp+28h] [rbp-1C0h] long long v28; // [rsp+30h] [rbp-1B8h] BYREF int v29; // [rsp+38h] [rbp-1B0h] int v30; // [rsp+40h] [rbp-1A8h] int v31; // [rsp+48h] [rbp-1A0h] char v32[8]; // [rsp+50h] [rbp-198h] BYREF int v33; // [rsp+58h] [rbp-190h] int v34; // [rsp+60h] [rbp-188h] int v35; // [rsp+68h] [rbp-180h] char v36[8]; // [rsp+70h] [rbp-178h] BYREF int v37; // [rsp+78h] [rbp-170h] int v38; // [rsp+80h] [rbp-168h] int v39; // [rsp+88h] [rbp-160h] char v40[40]; // [rsp+90h] [rbp-158h] BYREF _BYTE v41[16]; // [rsp+B8h] [rbp-130h] BYREF _OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF _BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF _BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF char *v45; // [rsp+108h] [rbp-E0h] BYREF _BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF char v47; // [rsp+130h] [rbp-B8h] char v48; // [rsp+131h] [rbp-B7h] char v49; // [rsp+180h] [rbp-68h] if ( !*(_QWORD *)(a1 + 16) ) { v16 = *(_BYTE *)(a1 + 192); v45 = a3; memset(v46, 0, sizeof(v46)); v47 = 0; v48 = v16; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>( a1, (unsigned int)&v45, (_DWORD)a3, a4, a5, a6); if ( a2 && (unsigned int)nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(a1) != 15 ) { v17 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v26 = *(_QWORD *)(a1 + 88); *(_OWORD *)v24 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v18, v19); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v24[0], *(int *)&v24[8], v26[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v17, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } if ( v47 == 1 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v41, 9LL); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a3, v41); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v41); return std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_base(v46); } result = std::_Vector_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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_base(v46); goto LABEL_18; } std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( v42, a1); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( &v45, a3, v42, *(unsigned __int8 *)(a1 + 192)); std::_Function_base::~_Function_base((std::_Function_base *)v42); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>( a1, (unsigned int)&v45, v7, v8, v9, v10); if ( a2 ) { if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token(a1) != 15 ) { v11 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( v36, a1 + 40); *(_QWORD *)v25 = *(_QWORD *)(a1 + 88); *(_OWORD *)v23 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (unsigned int)v32, a1, 15, (unsigned int)&v28, v12, v13); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v23[0], *(int *)&v23[8], v25[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v11, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } } v14 = v49; if ( v49 == 1 ) { v15 = v44; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v44, 9LL); } else { if ( *a3 != 9 ) goto LABEL_15; v15 = v43; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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)v43); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a3, 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>::~basic_json((long long)v15); LABEL_15: result = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser(&v45); if ( !v14 ) LABEL_18: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(a3); return result; }
59,747
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) je 0x44909 leaq 0xa8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x446a2 movzbl 0xc0(%r14), %ecx leaq 0xc8(%rsp), %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x45a38 movq 0xb8(%rsp), %rax testq %rax, %rax je 0x4476f leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xc8(%rsp), %rsi movq %r14, %rdi callq 0x45b32 testb %bpl, %bpl je 0x448ab leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x448ab movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76e4a(%rip), %rsi # 0xbb628 leaq 0x76e48(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x468ec leaq 0xa9ac2(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44879 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44890 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x448ab movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 cmpb $0x0, 0x140(%rsp) je 0x44ad1 leaq 0x1a0(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a jmp 0x44b3b movb 0xc0(%r14), %al leaq 0xc8(%rsp), %rsi movq %rbx, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsi) movups %xmm0, 0x18(%rsi) movb $0x0, 0x28(%rsi) movb %al, 0x29(%rsi) movq %r14, %rdi callq 0x46faa testb %bpl, %bpl je 0x44a61 leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x44a61 movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76c94(%rip), %rsi # 0xbb628 leaq 0x76c92(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x47d84 leaq 0xa990c(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a2f movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44a46 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a61 movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 movb 0xf0(%rsp), %bpl cmpb $0x1, %bpl jne 0x44aad leaq 0x180(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44aca movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 testb %bpl, %bpl je 0x44b2e jmp 0x44b3b cmpb $0x9, (%rbx) jne 0x44b21 leaq 0x190(%rsp), %r14 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi movl $0x1, %esi callq 0x3d970 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xa97b3(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44b72 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44b92 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44b92 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44bae movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44bae movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c5e movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c5e jmp 0x44c5b movq %rax, %rbx leaq 0xa9727(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44bfe movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c1e movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c1e movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44c3a movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c3a movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44cac movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44cac jmp 0x44ca9 jmp 0x44ca1 movq %rax, %rbx movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44cb9 movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 jmp 0x44cb9 movq %rax, %rbx movq 0xb8(%rsp), %rax testq %rax, %rax je 0x44cb9 leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x44cb9 movq %rax, %rdi callq 0x2ad73 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi callq 0x18b90 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1B0h mov rbx, rdx mov ebp, esi mov r14, rdi cmp qword ptr [rdi+10h], 0 jz loc_44909 lea r15, [rsp+1D8h+var_130] mov rdi, r15 mov rsi, r14 call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) movzx ecx, byte ptr [r14+0C0h] lea rdi, [rsp+1D8h+var_110] mov rsi, rbx mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_4476F lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax loc_4476F: lea rsi, [rsp+1D8h+var_110] mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_448AB lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_448AB mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44879 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44879: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44890 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44890: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_448AB mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_448AB: cmp [rsp+1D8h+var_98], 0 jz loc_44AD1 lea r14, [rsp+1D8h+var_38] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() jmp loc_44B3B loc_44909: mov al, [r14+0C0h] lea rsi, [rsp+1D8h+var_110] mov [rsi], rbx xorps xmm0, xmm0 movups xmmword ptr [rsi+8], xmm0 movups xmmword ptr [rsi+18h], xmm0 mov byte ptr [rsi+28h], 0 mov [rsi+29h], al mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *) test bpl, bpl jz loc_44A61 lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_44A61 mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, [rsp+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A2F mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A2F: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44A46 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A46: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A61 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A61: mov bpl, [rsp+1D8h+var_E8] cmp bpl, 1 jnz short loc_44AAD lea r14, [rsp+1D8h+var_58] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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 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_44AAD: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44ACA mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44ACA: test bpl, bpl jz short loc_44B2E jmp short loc_44B3B loc_44AD1: cmp byte ptr [rbx], 9 jnz short loc_44B21 lea r14, [rsp+1D8h+var_48] mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, rbx 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 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_44B21: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() loc_44B2E: mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_44B3B: add rsp, 1B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44B72 mov rbx, rax loc_44B72: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44B92 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44B92 mov rbx, rax loc_44B92: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44BAE mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44BAE mov rbx, rax loc_44BAE: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_44C5E mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_44C5E jmp loc_44C5B mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44BFE mov rbx, rax loc_44BFE: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44C1E mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C1E mov rbx, rax loc_44C1E: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44C3A mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C3A mov rbx, rax loc_44C3A: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44CAC mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CAC jmp short loc_44CA9 jmp short loc_44CA1 loc_44C5B: mov rbx, rax loc_44C5E: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44CB9 mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CB9 mov rbx, rax mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_44CB9 lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax jmp short loc_44CB9 loc_44CA1: mov rdi, rax call __clang_call_terminate loc_44CA9: mov rbx, rax loc_44CAC: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_sax_dom_callback_parser() loc_44CB9: mov rdi, rbx call __Unwind_Resume
void nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parse( long long a1, char a2, char *a3) { char **v5; // rsi int v6; // eax char **v7; // r15 int v8; // r8d int v9; // r9d char v10; // al int v11; // eax long long v12; // r15 int v13; // r8d int v14; // r9d char v15; // bp void *v16; // [rsp+0h] [rbp-1D8h] void *v17; // [rsp+0h] [rbp-1D8h] void *v18; // [rsp+0h] [rbp-1D8h] void *v19; // [rsp+8h] [rbp-1D0h] BYREF long long v20; // [rsp+10h] [rbp-1C8h] long long v21; // [rsp+18h] [rbp-1C0h] BYREF void *v22; // [rsp+20h] [rbp-1B8h] long long *v23; // [rsp+28h] [rbp-1B0h] BYREF long long v24; // [rsp+30h] [rbp-1A8h] long long v25; // [rsp+38h] [rbp-1A0h] BYREF long long v26; // [rsp+40h] [rbp-198h] long long *v27; // [rsp+48h] [rbp-190h] BYREF long long v28; // [rsp+50h] [rbp-188h] long long v29; // [rsp+58h] [rbp-180h] BYREF int v30; // [rsp+60h] [rbp-178h] void ( **v31)(nlohmann::json_abi_v3_11_3::detail::exception *__hidden); // [rsp+68h] [rbp-170h] BYREF long long v32; // [rsp+70h] [rbp-168h] int v33; // [rsp+78h] [rbp-160h] BYREF int v34; // [rsp+80h] [rbp-158h] int v35; // [rsp+88h] [rbp-150h] long long v36[2]; // [rsp+90h] [rbp-148h] BYREF long long v37; // [rsp+A0h] [rbp-138h] __int128 v38; // [rsp+A8h] [rbp-130h] BYREF void ( *v39)(__int128 *, __int128 *, long long); // [rsp+B8h] [rbp-120h] char *v40; // [rsp+C8h] [rbp-110h] BYREF __int128 v41; // [rsp+D0h] [rbp-108h] __int128 v42; // [rsp+E0h] [rbp-F8h] char v43; // [rsp+F0h] [rbp-E8h] char v44; // [rsp+F1h] [rbp-E7h] char v45; // [rsp+140h] [rbp-98h] char v46[8]; // [rsp+180h] [rbp-58h] BYREF long long v47; // [rsp+188h] [rbp-50h] char v48[8]; // [rsp+190h] [rbp-48h] BYREF long long v49; // [rsp+198h] [rbp-40h] char v50[8]; // [rsp+1A0h] [rbp-38h] BYREF long long v51; // [rsp+1A8h] [rbp-30h] if ( *(_QWORD *)(a1 + 16) ) { std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( &v38, a1); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( &v40, a3, &v38, *(unsigned __int8 *)(a1 + 192)); if ( v39 ) v39(&v38, &v38, 3LL); v5 = &v40; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(a1); if ( a2 ) { v6 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v6; if ( v6 != 15 ) { v7 = *(char ***)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (int)&v23, a1, 15, (int)&v19, v8, v9, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v17, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); v5 = v7; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v7, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) { v5 = (char **)(v25 + 1); operator delete(v23, v25 + 1); } if ( v19 != &v21 ) { v5 = (char **)(v21 + 1); operator delete(v19, v21 + 1); } if ( v27 != &v29 ) { v5 = (char **)(v29 + 1); operator delete(v27, v29 + 1); } } } if ( v45 ) { v50[0] = 9; v51 = 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(v50); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a3, v50); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v50); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v50); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser( &v40, 0LL); return; } if ( *a3 == 9 ) { v48[0] = 0; v49 = 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(v48); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v48); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a3, v48); v5 = 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(v48); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v48); } nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_sax_dom_callback_parser( &v40, v5); goto LABEL_31; } v10 = *(_BYTE *)(a1 + 192); v40 = a3; v41 = 0LL; v42 = 0LL; v43 = 0; v44 = v10; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(a1); if ( a2 ) { v11 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v11; if ( v11 != 15 ) { v12 = *(_QWORD *)(a1 + 72); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( (int)&v23, a1, 15, (int)&v19, v13, v14, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v18, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v12, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) operator delete(v23, v25 + 1); if ( v19 != &v21 ) operator delete(v19, v21 + 1); if ( v27 != &v29 ) operator delete(v27, v29 + 1); } } v15 = v43; if ( v43 == 1 ) { v46[0] = 9; v47 = 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(v46); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=( a3, v46); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v46); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v46); } if ( (_QWORD)v41 ) operator delete((void *)v41, v42 - v41); if ( !v15 ) LABEL_31: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(a3); }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1b0 MOV RBX,RDX MOV EBP,ESI MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x00144909 LEA R15,[RSP + 0xa8] MOV RDI,R15 MOV RSI,R14 CALL 0x001446a2 MOVZX ECX,byte ptr [R14 + 0xc0] LAB_0014473d: LEA RDI,[RSP + 0xc8] MOV RSI,RBX MOV RDX,R15 CALL 0x00145a38 MOV RAX,qword ptr [RSP + 0xb8] TEST RAX,RAX JZ 0x0014476f LAB_0014475d: LEA RDI,[RSP + 0xa8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0014476f: LEA RSI,[RSP + 0xc8] MOV RDI,R14 CALL 0x00145b32 TEST BPL,BPL JZ 0x001448ab LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x001448ab MOV R15,qword ptr [R14 + 0x48] LAB_001447a5: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_001447d7: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001447ef: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_00144806: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_00144825: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x001468ec LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144879 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144879: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144890 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144890: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001448ab MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_001448ab: CMP byte ptr [RSP + 0x140],0x0 JZ 0x00144ad1 LEA R14,[RSP + 0x1a0] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LEA RDI,[RSP + 0xc8] CALL 0x00146f2a JMP 0x00144b3b LAB_00144909: MOV AL,byte ptr [R14 + 0xc0] LEA RSI,[RSP + 0xc8] MOV qword ptr [RSI],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSI + 0x8],XMM0 MOVUPS xmmword ptr [RSI + 0x18],XMM0 MOV byte ptr [RSI + 0x28],0x0 MOV byte ptr [RSI + 0x29],AL LAB_0014492d: MOV RDI,R14 CALL 0x00146faa TEST BPL,BPL JZ 0x00144a61 LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00144a61 MOV R15,qword ptr [R14 + 0x48] LAB_0014495b: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_0014498d: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001449a5: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_001449bc: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_001449db: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x00147d84 LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a2f MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144a2f: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144a46 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144a46: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a61 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_00144a61: MOV BPL,byte ptr [RSP + 0xf0] CMP BPL,0x1 JNZ 0x00144aad LEA R14,[RSP + 0x180] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144aad: MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x00144aca MOV RSI,qword ptr [RSP + 0xe0] SUB RSI,RDI CALL 0x001186a0 LAB_00144aca: TEST BPL,BPL JZ 0x00144b2e JMP 0x00144b3b LAB_00144ad1: CMP byte ptr [RBX],0x9 JNZ 0x00144b21 LEA R14,[RSP + 0x190] MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144b21: LEA RDI,[RSP + 0xc8] CALL 0x00146f2a LAB_00144b2e: MOV RDI,RBX MOV ESI,0x1 CALL 0x0013d970 LAB_00144b3b: ADD RSP,0x1b0 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::parse(bool, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::parse(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; char cVar2; int iVar3; bool bVar4; long *local_1d0 [2]; long local_1c0 [2]; long *local_1b0 [2]; long local_1a0 [2]; long *local_190 [2]; long local_180 [2]; int **local_170 [2]; runtime_error local_160 [24]; int4 local_148; int4 uStack_144; int4 uStack_140; int4 uStack_13c; int8 local_138; function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> local_130 [16]; code *local_120; basic_json *local_110; void *local_108; int8 uStack_100; long local_f8; int8 uStack_f0; char local_e8; parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> local_e7; char local_98; data local_58 [8]; int8 local_50; data local_48 [8]; int8 local_40; data local_38 [8]; int8 local_30; if (*(long *)(this + 0x10) == 0) { local_e7 = this[0xc0]; local_108 = (void *)0x0; uStack_100 = 0; local_f8 = 0; uStack_f0 = 0; local_e8 = '\0'; local_110 = param_2; /* try { // try from 0014492d to 00144949 has its CatchHandler @ 00144c5b */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> (this,(json_sax_dom_parser *)&local_110); if (param_1) { iVar3 = lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *)(this + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0014495b to 00144967 has its CatchHandler @ 00144bd2 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 0014498d to 001449a4 has its CatchHandler @ 00144bab */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001449a5 to 001449bb has its CatchHandler @ 00144b8f */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 001449bc to 001449da has its CatchHandler @ 00144b6f */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 001449db to 001449f4 has its CatchHandler @ 00144b4b */ json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } cVar2 = local_e8; if (local_e8 == '\x01') { local_58[0] = (data)0x9; local_50 = 0; bVar4 = SUB81(local_58,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)param_2,local_58); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_58); } if (local_108 != (void *)0x0) { operator_delete(local_108,local_f8 - (long)local_108); } if (cVar2 != '\0') { return; } } else { std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function(local_130,this); /* try { // try from 0014473d to 0014474f has its CatchHandler @ 00144c7d */ json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_sax_dom_callback_parser ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_110,param_2,local_130,this[0xc0]); if (local_120 != (code *)0x0) { /* try { // try from 0014475d to 0014476e has its CatchHandler @ 00144c59 */ (*local_120)(local_130,local_130,3); } /* try { // try from 0014476f to 00144793 has its CatchHandler @ 00144ca9 */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> (this,(json_sax_dom_callback_parser *)&local_110); if (param_1) { iVar3 = lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::scan((lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *)(this + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 001447a5 to 001447b1 has its CatchHandler @ 00144c57 */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 001447d7 to 001447ee has its CatchHandler @ 00144c37 */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001447ef to 00144805 has its CatchHandler @ 00144c1b */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00144806 to 00144824 has its CatchHandler @ 00144bfb */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 00144825 to 0014483e has its CatchHandler @ 00144bd7 */ json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } if (local_98 != '\0') { local_38[0] = (data)0x9; local_30 = 0; bVar4 = SUB81(local_38,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)param_2,local_38); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_38); json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_110); return; } if (*param_2 == (basic_json)0x9) { local_48[0] = (data)0x0; local_40 = 0; bVar4 = SUB81(local_48,0); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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> *)param_2,local_48); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar4); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_48); } json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~json_sax_dom_callback_parser ((json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)&local_110); } basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_2,0)); return; }
59,748
void ImPlot::CalculateBins<signed char>(signed char const*, int, int, ImPlotRange const&, int&, double&)
zkingston[P]unknot/build_O1/_deps/implot-src/implot_internal.h
static inline void CalculateBins(const T* values, int count, ImPlotBin meth, const ImPlotRange& range, int& bins_out, double& width_out) { switch (meth) { case ImPlotBin_Sqrt: bins_out = (int)ceil(sqrt(count)); break; case ImPlotBin_Sturges: bins_out = (int)ceil(1.0 + log2(count)); break; case ImPlotBin_Rice: bins_out = (int)ceil(2 * cbrt(count)); break; case ImPlotBin_Scott: width_out = 3.49 * ImStdDev(values, count) / cbrt(count); bins_out = (int)round(range.Size() / width_out); break; } width_out = range.Size() / bins_out; }
O1
c
void ImPlot::CalculateBins<signed char>(signed char const*, int, int, ImPlotRange const&, int&, double&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %r9, %rbx movq %r8, %r14 movq %rcx, %r15 addl $0x4, %edx cmpl $0x3, %edx ja 0xcad57 leaq 0x1d17ed(%rip), %rax # 0x29c420 movslq (%rax,%rdx,4), %rcx addq %rax, %rcx jmpq *%rcx cvtsi2sd %esi, %xmm5 movsd 0x1c4430(%rip), %xmm1 # 0x28f078 xorpd %xmm0, %xmm0 movl %esi, %eax xorpd %xmm2, %xmm2 testl %esi, %esi jle 0xcac79 movapd %xmm1, %xmm3 divsd %xmm5, %xmm3 xorl %ecx, %ecx xorps %xmm4, %xmm4 cvtsi2sdq (%rdi,%rcx,8), %xmm4 mulsd %xmm3, %xmm4 addsd %xmm4, %xmm2 incq %rcx cmpq %rcx, %rax jne 0xcac60 testl %esi, %esi jle 0xcacb4 movsd 0x1c440b(%rip), %xmm0 # 0x28f090 addsd %xmm5, %xmm0 divsd %xmm0, %xmm1 xorpd %xmm0, %xmm0 xorl %ecx, %ecx xorps %xmm3, %xmm3 cvtsi2sdq (%rdi,%rcx,8), %xmm3 subsd %xmm2, %xmm3 mulsd %xmm3, %xmm3 mulsd %xmm1, %xmm3 addsd %xmm3, %xmm0 incq %rcx cmpq %rcx, %rax jne 0xcac93 xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb 0xcad06 sqrtsd %xmm0, %xmm0 jmp 0xcad17 cvtsi2sd %esi, %xmm0 callq 0x10200 addsd 0x1c43a3(%rip), %xmm0 # 0x28f078 jmp 0xcacff cvtsi2sd %esi, %xmm0 xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb 0xcacfa sqrtsd %xmm0, %xmm0 jmp 0xcacff cvtsi2sd %esi, %xmm0 callq 0xf130 addsd %xmm0, %xmm0 jmp 0xcacff callq 0xf7b0 callq 0xf110 jmp 0xcad50 movsd %xmm5, 0x8(%rsp) callq 0xf7b0 movsd 0x8(%rsp), %xmm5 mulsd 0x1d0ec9(%rip), %xmm0 # 0x29bbe8 movsd %xmm0, 0x8(%rsp) movapd %xmm5, %xmm0 callq 0xf130 movsd 0x8(%rsp), %xmm1 divsd %xmm0, %xmm1 movsd %xmm1, (%rbx) movsd 0x8(%r15), %xmm0 subsd (%r15), %xmm0 divsd %xmm1, %xmm0 callq 0xf460 cvttsd2si %xmm0, %eax movl %eax, (%r14) movsd 0x8(%r15), %xmm0 subsd (%r15), %xmm0 xorps %xmm1, %xmm1 cvtsi2sdl (%r14), %xmm1 divsd %xmm1, %xmm0 movsd %xmm0, (%rbx) addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq
_ZN6ImPlotL13CalculateBinsIxEEvPKT_iiRK11ImPlotRangeRiRd: push r15 push r14 push rbx sub rsp, 10h mov rbx, r9 mov r14, r8 mov r15, rcx add edx, 4; switch 4 cases cmp edx, 3 ja def_CAC3A; jumptable 00000000000CAC3A default case lea rax, jpt_CAC3A movsxd rcx, ds:(jpt_CAC3A - 29C420h)[rax+rdx*4] add rcx, rax jmp rcx; switch jump loc_CAC3C: cvtsi2sd xmm5, esi; jumptable 00000000000CAC3A case -4 movsd xmm1, cs:qword_28F078 xorpd xmm0, xmm0 mov eax, esi xorpd xmm2, xmm2 test esi, esi jle short loc_CAC79 movapd xmm3, xmm1 divsd xmm3, xmm5 xor ecx, ecx loc_CAC60: xorps xmm4, xmm4 cvtsi2sd xmm4, qword ptr [rdi+rcx*8] mulsd xmm4, xmm3 addsd xmm2, xmm4 inc rcx cmp rax, rcx jnz short loc_CAC60 loc_CAC79: test esi, esi jle short loc_CACB4 movsd xmm0, cs:qword_28F090 addsd xmm0, xmm5 divsd xmm1, xmm0 xorpd xmm0, xmm0 xor ecx, ecx loc_CAC93: xorps xmm3, xmm3 cvtsi2sd xmm3, qword ptr [rdi+rcx*8] subsd xmm3, xmm2 mulsd xmm3, xmm3 mulsd xmm3, xmm1 addsd xmm0, xmm3 inc rcx cmp rax, rcx jnz short loc_CAC93 loc_CACB4: xorpd xmm1, xmm1 ucomisd xmm0, xmm1 jb short loc_CAD06 sqrtsd xmm0, xmm0 jmp short loc_CAD17 loc_CACC4: cvtsi2sd xmm0, esi; jumptable 00000000000CAC3A case -2 call _log2 addsd xmm0, cs:qword_28F078 jmp short loc_CACFF loc_CACD7: cvtsi2sd xmm0, esi; jumptable 00000000000CAC3A case -1 xorpd xmm1, xmm1 ucomisd xmm0, xmm1 jb short loc_CACFA sqrtsd xmm0, xmm0 jmp short loc_CACFF loc_CACEB: cvtsi2sd xmm0, esi; jumptable 00000000000CAC3A case -3 call _cbrt addsd xmm0, xmm0 jmp short loc_CACFF loc_CACFA: call _sqrt loc_CACFF: call _ceil jmp short loc_CAD50 loc_CAD06: movsd [rsp+28h+var_20], xmm5 call _sqrt movsd xmm5, [rsp+28h+var_20] loc_CAD17: mulsd xmm0, cs:qword_29BBE8 movsd [rsp+28h+var_20], xmm0 movapd xmm0, xmm5 call _cbrt movsd xmm1, [rsp+28h+var_20] divsd xmm1, xmm0 movsd qword ptr [rbx], xmm1 movsd xmm0, qword ptr [r15+8] subsd xmm0, qword ptr [r15] divsd xmm0, xmm1 call _round loc_CAD50: cvttsd2si eax, xmm0 mov [r14], eax def_CAC3A: movsd xmm0, qword ptr [r15+8]; jumptable 00000000000CAC3A default case subsd xmm0, qword ptr [r15] xorps xmm1, xmm1 cvtsi2sd xmm1, dword ptr [r14] divsd xmm0, xmm1 movsd qword ptr [rbx], xmm0 add rsp, 10h pop rbx pop r14 pop r15 retn
long long ImPlot::CalculateBins<long long>(long long a1, int a2, int a3, double *a4, int *a5, double *a6) { double v9; // xmm5_8 double v10; // xmm0_8 double v11; // xmm2_8 long long i; // rcx long long j; // rcx double v14; // xmm3_8 double v15; // xmm0_8 double v16; // xmm0_8 double v17; // xmm0_8 double v18; // xmm0_8 double v19; // xmm0_8 double v20; // xmm0_8 long long result; // rax double v22; // [rsp+8h] [rbp-20h] switch ( a3 ) { case -4: v9 = (double)a2; v10 = 0.0; v11 = 0.0; if ( a2 > 0 ) { for ( i = 0LL; i != a2; v11 = v11 + (double)(int)*(_QWORD *)(a1 + 8 * i++) * (1.0 / v9) ) ; } if ( a2 > 0 ) { v10 = 0.0; for ( j = 0LL; j != a2; ++j ) { v14 = (double)(int)*(_QWORD *)(a1 + 8 * j) - v11; v10 = v10 + v14 * v14 * (1.0 / (v9 + -1.0)); } } if ( v10 < 0.0 ) { v15 = sqrt(v10); v9 = (double)a2; } else { v15 = sqrt(v10); } v22 = v15 * 3.49; v20 = cbrt(v9); *a6 = v22 / v20; v19 = round((a4[1] - *a4) / (v22 / v20)); goto LABEL_18; case -3: v18 = cbrt((double)a2); v16 = v18 + v18; goto LABEL_15; case -2: v16 = log2((double)a2) + 1.0; goto LABEL_15; case -1: v17 = (double)a2; if ( (double)a2 < 0.0 ) v16 = sqrt(v17); else v16 = sqrt(v17); LABEL_15: v19 = ceil(v16); LABEL_18: result = (unsigned int)(int)v19; *a5 = result; break; default: break; } *a6 = (a4[1] - *a4) / (double)*a5; return result; }
CalculateBins<long_long>: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,R9 MOV R14,R8 MOV R15,RCX ADD EDX,0x4 CMP EDX,0x3 JA 0x001cad57 LEA RAX,[0x39c420] MOVSXD RCX,dword ptr [RAX + RDX*0x4] ADD RCX,RAX switchD: JMP RCX caseD_fffffffc: CVTSI2SD XMM5,ESI MOVSD XMM1,qword ptr [0x0038f078] XORPD XMM0,XMM0 MOV EAX,ESI XORPD XMM2,XMM2 TEST ESI,ESI JLE 0x001cac79 MOVAPD XMM3,XMM1 DIVSD XMM3,XMM5 XOR ECX,ECX LAB_001cac60: XORPS XMM4,XMM4 CVTSI2SD XMM4,qword ptr [RDI + RCX*0x8] MULSD XMM4,XMM3 ADDSD XMM2,XMM4 INC RCX CMP RAX,RCX JNZ 0x001cac60 LAB_001cac79: TEST ESI,ESI JLE 0x001cacb4 MOVSD XMM0,qword ptr [0x0038f090] ADDSD XMM0,XMM5 DIVSD XMM1,XMM0 XORPD XMM0,XMM0 XOR ECX,ECX LAB_001cac93: XORPS XMM3,XMM3 CVTSI2SD XMM3,qword ptr [RDI + RCX*0x8] SUBSD XMM3,XMM2 MULSD XMM3,XMM3 MULSD XMM3,XMM1 ADDSD XMM0,XMM3 INC RCX CMP RAX,RCX JNZ 0x001cac93 LAB_001cacb4: XORPD XMM1,XMM1 UCOMISD XMM0,XMM1 JC 0x001cad06 SQRTSD XMM0,XMM0 JMP 0x001cad17 caseD_fffffffe: CVTSI2SD XMM0,ESI CALL 0x00110200 ADDSD XMM0,qword ptr [0x0038f078] JMP 0x001cacff caseD_ffffffff: CVTSI2SD XMM0,ESI XORPD XMM1,XMM1 UCOMISD XMM0,XMM1 JC 0x001cacfa SQRTSD XMM0,XMM0 JMP 0x001cacff caseD_fffffffd: CVTSI2SD XMM0,ESI CALL 0x0010f130 ADDSD XMM0,XMM0 JMP 0x001cacff LAB_001cacfa: CALL 0x0010f7b0 LAB_001cacff: CALL 0x0010f110 JMP 0x001cad50 LAB_001cad06: MOVSD qword ptr [RSP + 0x8],XMM5 CALL 0x0010f7b0 MOVSD XMM5,qword ptr [RSP + 0x8] LAB_001cad17: MULSD XMM0,qword ptr [0x0039bbe8] MOVSD qword ptr [RSP + 0x8],XMM0 MOVAPD XMM0,XMM5 CALL 0x0010f130 MOVSD XMM1,qword ptr [RSP + 0x8] DIVSD XMM1,XMM0 MOVSD qword ptr [RBX],XMM1 MOVSD XMM0,qword ptr [R15 + 0x8] SUBSD XMM0,qword ptr [R15] DIVSD XMM0,XMM1 CALL 0x0010f460 LAB_001cad50: CVTTSD2SI EAX,XMM0 MOV dword ptr [R14],EAX default: MOVSD XMM0,qword ptr [R15 + 0x8] SUBSD XMM0,qword ptr [R15] XORPS XMM1,XMM1 CVTSI2SD XMM1,dword ptr [R14] DIVSD XMM0,XMM1 MOVSD qword ptr [RBX],XMM0 ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* void ImPlot::CalculateBins<long long>(long long const*, int, int, ImPlotRange const&, int&, double&) */ void ImPlot::CalculateBins<long_long> (longlong *param_1,int param_2,int param_3,ImPlotRange *param_4,int *param_5, double *param_6) { ulong uVar1; double dVar2; double dVar3; double __x; switch(param_3) { case -4: __x = (double)param_2; dVar2 = 0.0; dVar3 = 0.0; if (0 < param_2) { uVar1 = 0; do { dVar3 = dVar3 + (double)param_1[uVar1] * (DAT_0038f078 / __x); uVar1 = uVar1 + 1; } while ((uint)param_2 != uVar1); } if (0 < param_2) { dVar2 = 0.0; uVar1 = 0; do { dVar2 = dVar2 + ((double)param_1[uVar1] - dVar3) * ((double)param_1[uVar1] - dVar3) * (DAT_0038f078 / (DAT_0038f090 + __x)); uVar1 = uVar1 + 1; } while ((uint)param_2 != uVar1); } if (dVar2 < 0.0) { dVar2 = sqrt(dVar2); } else { dVar2 = SQRT(dVar2); } dVar2 = dVar2 * _DAT_0039bbe8; dVar3 = cbrt(__x); dVar2 = dVar2 / dVar3; *param_6 = dVar2; dVar2 = round((*(double *)(param_4 + 8) - *(double *)param_4) / dVar2); goto LAB_001cad50; case -3: dVar2 = cbrt((double)param_2); dVar2 = dVar2 + dVar2; break; case -2: dVar2 = log2((double)param_2); dVar2 = dVar2 + DAT_0038f078; break; case -1: dVar2 = (double)param_2; if (dVar2 < 0.0) { dVar2 = sqrt(dVar2); } else { dVar2 = SQRT(dVar2); } break; default: goto switchD_001cac3a_default; } dVar2 = ceil(dVar2); LAB_001cad50: *param_5 = (int)dVar2; switchD_001cac3a_default: *param_6 = (*(double *)(param_4 + 8) - *(double *)param_4) / (double)*param_5; return; }
59,749
init_state_maps
eloqsql/mysys/charset.c
static my_bool init_state_maps(struct charset_info_st *cs) { uint i; uchar *state_map; uchar *ident_map; if (!(cs->state_map= state_map= (uchar*) my_once_alloc(256*2, MYF(MY_WME)))) return 1; cs->ident_map= ident_map= state_map + 256; /* Fill state_map with states to get a faster parser */ for (i=0; i < 256 ; i++) { if (my_isalpha(cs,i)) state_map[i]=(uchar) MY_LEX_IDENT; else if (my_isdigit(cs,i)) state_map[i]=(uchar) MY_LEX_NUMBER_IDENT; else if (is_multi_byte_ident(cs, i)) state_map[i]=(uchar) MY_LEX_IDENT; else if (my_isspace(cs,i)) state_map[i]=(uchar) MY_LEX_SKIP; else state_map[i]=(uchar) MY_LEX_CHAR; } state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT; state_map[(uchar)'\'']=(uchar) MY_LEX_STRING; state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT; state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP; state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP; state_map[(uchar)'&']=state_map[(uchar)'|']=(uchar) MY_LEX_BOOL; state_map[(uchar)'#']=(uchar) MY_LEX_COMMENT; state_map[(uchar)';']=(uchar) MY_LEX_SEMICOLON; state_map[(uchar)':']=(uchar) MY_LEX_SET_VAR; state_map[0]=(uchar) MY_LEX_EOL; state_map[(uchar)'\\']= (uchar) MY_LEX_ESCAPE; state_map[(uchar)'/']= (uchar) MY_LEX_LONG_COMMENT; state_map[(uchar)'*']= (uchar) MY_LEX_END_LONG_COMMENT; state_map[(uchar)'@']= (uchar) MY_LEX_USER_END; state_map[(uchar) '`']= (uchar) MY_LEX_USER_VARIABLE_DELIMITER; state_map[(uchar)'"']= (uchar) MY_LEX_STRING_OR_DELIMITER; state_map[(uchar)'-']= (uchar) MY_LEX_MINUS_OR_COMMENT; state_map[(uchar)',']= (uchar) MY_LEX_COMMA; state_map[(uchar)'?']= (uchar) MY_LEX_PLACEHOLDER; /* Create a second map to make it faster to find identifiers */ for (i=0; i < 256 ; i++) { ident_map[i]= (uchar) (state_map[i] == MY_LEX_IDENT || state_map[i] == MY_LEX_NUMBER_IDENT); } /* Special handling of hex and binary strings */ state_map[(uchar)'x']= state_map[(uchar)'X']= (uchar) MY_LEX_IDENT_OR_HEX; state_map[(uchar)'b']= state_map[(uchar)'B']= (uchar) MY_LEX_IDENT_OR_BIN; state_map[(uchar)'n']= state_map[(uchar)'N']= (uchar) MY_LEX_IDENT_OR_NCHAR; return 0; }
O3
c
init_state_maps: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r14 movl $0x200, %edi # imm = 0x200 movl $0x10, %esi callq 0x2626c movq %rax, 0x80(%r14) testq %rax, %rax je 0x2a6be movq %rax, %rbx movq %rax, %r13 addq $0x100, %r13 # imm = 0x100 movq %r13, 0x88(%r14) xorl %r15d, %r15d leaq -0x29(%rbp), %r12 movq 0x40(%r14), %rax movzbl 0x1(%rax,%r15), %eax testb $0x3, %al je 0x2a5ca movb $0x2, (%rbx,%r15) jmp 0x2a609 testb $0x4, %al jne 0x2a604 movb %r15b, -0x29(%rbp) movq 0xb8(%r14), %rax movq %r14, %rdi movq %r12, %rsi leaq -0x28(%rbp), %rdx callq *0xc0(%rax) addl $0x64, %eax cmpl $-0x6, %eax jae 0x2a5c3 movq 0x40(%r14), %rax testb $0x8, 0x1(%rax,%r15) jne 0x2a617 movb $0x1, (%rbx,%r15) jmp 0x2a609 movb $0xe, (%rbx,%r15) incq %r15 cmpq $0x100, %r15 # imm = 0x100 jne 0x2a5b5 jmp 0x2a61e movb $0x1a, (%rbx,%r15) jmp 0x2a609 movw $0x1b02, 0x5f(%rbx) # imm = 0x1B02 movb $0x8, 0x3e(%rbx) movb $0x11, 0x7c(%rbx) movw $0xa11, 0x26(%rbx) # imm = 0xA11 movl $0x8091617, 0x3a(%rbx) # imm = 0x8091617 movb $0x12, (%rbx) movb $0x13, 0x5c(%rbx) movb $0x15, 0x2a(%rbx) movl $0x20b2108, 0x21(%rbx) # imm = 0x20B2108 movl $0x14102224, 0x2c(%rbx) # imm = 0x14102224 movw $0x1823, 0x3f(%rbx) # imm = 0x1823 movq $-0x100, %rax movdqa 0x375e9(%rip), %xmm0 # 0x61c50 movdqa 0x375f1(%rip), %xmm1 # 0x61c60 movdqa 0x375f9(%rip), %xmm2 # 0x61c70 movdqu (%r13,%rax), %xmm3 movdqa %xmm3, %xmm4 pcmpeqb %xmm0, %xmm4 pcmpeqb %xmm1, %xmm3 por %xmm4, %xmm3 pand %xmm2, %xmm3 movdqu %xmm3, 0x100(%r13,%rax) addq $0x10, %rax jne 0x2a677 movb $0x1e, %al movb %al, 0x58(%rbx) movb %al, 0x78(%rbx) movb $0x1f, %al movb %al, 0x42(%rbx) movb %al, 0x62(%rbx) movb $0x20, %al movb %al, 0x4e(%rbx) movb %al, 0x6e(%rbx) xorl %eax, %eax jmp 0x2a6c0 movb $0x1, %al addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
init_state_maps: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdi mov edi, 200h mov esi, 10h call my_once_alloc mov [r14+80h], rax test rax, rax jz loc_2A6BE mov rbx, rax mov r13, rax add r13, 100h mov [r14+88h], r13 xor r15d, r15d lea r12, [rbp+var_29] loc_2A5B5: mov rax, [r14+40h] movzx eax, byte ptr [rax+r15+1] test al, 3 jz short loc_2A5CA loc_2A5C3: mov byte ptr [rbx+r15], 2 jmp short loc_2A609 loc_2A5CA: test al, 4 jnz short loc_2A604 mov [rbp+var_29], r15b mov rax, [r14+0B8h] mov rdi, r14 mov rsi, r12 lea rdx, [rbp+var_28] call qword ptr [rax+0C0h] add eax, 64h ; 'd' cmp eax, 0FFFFFFFAh jnb short loc_2A5C3 mov rax, [r14+40h] test byte ptr [rax+r15+1], 8 jnz short loc_2A617 mov byte ptr [rbx+r15], 1 jmp short loc_2A609 loc_2A604: mov byte ptr [rbx+r15], 0Eh loc_2A609: inc r15 cmp r15, 100h jnz short loc_2A5B5 jmp short loc_2A61E loc_2A617: mov byte ptr [rbx+r15], 1Ah jmp short loc_2A609 loc_2A61E: mov word ptr [rbx+5Fh], 1B02h mov byte ptr [rbx+3Eh], 8 mov byte ptr [rbx+7Ch], 11h mov word ptr [rbx+26h], 0A11h mov dword ptr [rbx+3Ah], 8091617h mov byte ptr [rbx], 12h mov byte ptr [rbx+5Ch], 13h mov byte ptr [rbx+2Ah], 15h mov dword ptr [rbx+21h], 20B2108h mov dword ptr [rbx+2Ch], 14102224h mov word ptr [rbx+3Fh], 1823h mov rax, 0FFFFFFFFFFFFFF00h movdqa xmm0, cs:xmmword_61C50 movdqa xmm1, cs:xmmword_61C60 movdqa xmm2, cs:xmmword_61C70 loc_2A677: movdqu xmm3, xmmword ptr [r13+rax+0] movdqa xmm4, xmm3 pcmpeqb xmm4, xmm0 pcmpeqb xmm3, xmm1 por xmm3, xmm4 pand xmm3, xmm2 movdqu xmmword ptr [r13+rax+100h], xmm3 add rax, 10h jnz short loc_2A677 mov al, 1Eh mov [rbx+58h], al mov [rbx+78h], al mov al, 1Fh mov [rbx+42h], al mov [rbx+62h], al mov al, 20h ; ' ' mov [rbx+4Eh], al mov [rbx+6Eh], al xor eax, eax jmp short loc_2A6C0 loc_2A6BE: mov al, 1 loc_2A6C0: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long init_state_maps(_QWORD *a1) { long long v1; // rax long long v2; // rax long long v3; // rbx long long v4; // r13 long long i; // r15 char v6; // al long long v7; // rax __m128i si128; // xmm0 __m128i v9; // xmm1 __m128i v10; // xmm2 __m128i v11; // xmm3 char v13; // [rsp+1h] [rbp-29h] BYREF _BYTE v14[40]; // [rsp+2h] [rbp-28h] BYREF v13 = HIBYTE(v1); v2 = my_once_alloc(512LL, 16); a1[16] = v2; if ( !v2 ) return 1LL; v3 = v2; v4 = v2 + 256; a1[17] = v2 + 256; for ( i = 0LL; i != 256; ++i ) { v6 = *(_BYTE *)(a1[8] + i + 1); if ( (v6 & 3) != 0 ) { LABEL_4: *(_BYTE *)(v3 + i) = 2; continue; } if ( (v6 & 4) != 0 ) { *(_BYTE *)(v3 + i) = 14; } else { v13 = i; if ( (*(unsigned int ( **)(_QWORD *, char *, _BYTE *))(a1[23] + 192LL))(a1, &v13, v14) + 100 >= 0xFFFFFFFA ) goto LABEL_4; if ( (*(_BYTE *)(a1[8] + i + 1) & 8) != 0 ) *(_BYTE *)(v3 + i) = 26; else *(_BYTE *)(v3 + i) = 1; } } *(_WORD *)(v3 + 95) = 6914; *(_BYTE *)(v3 + 62) = 8; *(_BYTE *)(v3 + 124) = 17; *(_WORD *)(v3 + 38) = 2577; *(_DWORD *)(v3 + 58) = 134813207; *(_BYTE *)v3 = 18; *(_BYTE *)(v3 + 92) = 19; *(_BYTE *)(v3 + 42) = 21; *(_DWORD *)(v3 + 33) = 34283784; *(_DWORD *)(v3 + 44) = 336601636; *(_WORD *)(v3 + 63) = 6179; v7 = -256LL; si128 = _mm_load_si128((const __m128i *)&xmmword_61C50); v9 = _mm_load_si128((const __m128i *)&xmmword_61C60); v10 = _mm_load_si128((const __m128i *)&xmmword_61C70); do { v11 = _mm_loadu_si128((const __m128i *)(v4 + v7)); *(__m128i *)(v4 + v7 + 256) = _mm_and_si128(_mm_or_si128(_mm_cmpeq_epi8(v11, v9), _mm_cmpeq_epi8(v11, si128)), v10); v7 += 16LL; } while ( v7 ); *(_BYTE *)(v3 + 88) = 30; *(_BYTE *)(v3 + 120) = 30; *(_BYTE *)(v3 + 66) = 31; *(_BYTE *)(v3 + 98) = 31; *(_BYTE *)(v3 + 78) = 32; *(_BYTE *)(v3 + 110) = 32; return 0LL; }
init_state_maps: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDI MOV EDI,0x200 MOV ESI,0x10 CALL 0x0012626c MOV qword ptr [R14 + 0x80],RAX TEST RAX,RAX JZ 0x0012a6be MOV RBX,RAX MOV R13,RAX ADD R13,0x100 MOV qword ptr [R14 + 0x88],R13 XOR R15D,R15D LEA R12,[RBP + -0x29] LAB_0012a5b5: MOV RAX,qword ptr [R14 + 0x40] MOVZX EAX,byte ptr [RAX + R15*0x1 + 0x1] TEST AL,0x3 JZ 0x0012a5ca LAB_0012a5c3: MOV byte ptr [RBX + R15*0x1],0x2 JMP 0x0012a609 LAB_0012a5ca: TEST AL,0x4 JNZ 0x0012a604 MOV byte ptr [RBP + -0x29],R15B MOV RAX,qword ptr [R14 + 0xb8] MOV RDI,R14 MOV RSI,R12 LEA RDX,[RBP + -0x28] CALL qword ptr [RAX + 0xc0] ADD EAX,0x64 CMP EAX,-0x6 JNC 0x0012a5c3 MOV RAX,qword ptr [R14 + 0x40] TEST byte ptr [RAX + R15*0x1 + 0x1],0x8 JNZ 0x0012a617 MOV byte ptr [RBX + R15*0x1],0x1 JMP 0x0012a609 LAB_0012a604: MOV byte ptr [RBX + R15*0x1],0xe LAB_0012a609: INC R15 CMP R15,0x100 JNZ 0x0012a5b5 JMP 0x0012a61e LAB_0012a617: MOV byte ptr [RBX + R15*0x1],0x1a JMP 0x0012a609 LAB_0012a61e: MOV word ptr [RBX + 0x5f],0x1b02 MOV byte ptr [RBX + 0x3e],0x8 MOV byte ptr [RBX + 0x7c],0x11 MOV word ptr [RBX + 0x26],0xa11 MOV dword ptr [RBX + 0x3a],0x8091617 MOV byte ptr [RBX],0x12 MOV byte ptr [RBX + 0x5c],0x13 MOV byte ptr [RBX + 0x2a],0x15 MOV dword ptr [RBX + 0x21],0x20b2108 MOV dword ptr [RBX + 0x2c],0x14102224 MOV word ptr [RBX + 0x3f],0x1823 MOV RAX,-0x100 MOVDQA XMM0,xmmword ptr [0x00161c50] MOVDQA XMM1,xmmword ptr [0x00161c60] MOVDQA XMM2,xmmword ptr [0x00161c70] LAB_0012a677: MOVDQU XMM3,xmmword ptr [R13 + RAX*0x1] MOVDQA XMM4,XMM3 PCMPEQB XMM4,XMM0 PCMPEQB XMM3,XMM1 POR XMM3,XMM4 PAND XMM3,XMM2 MOVDQU xmmword ptr [R13 + RAX*0x1 + 0x100],XMM3 ADD RAX,0x10 JNZ 0x0012a677 MOV AL,0x1e MOV byte ptr [RBX + 0x58],AL MOV byte ptr [RBX + 0x78],AL MOV AL,0x1f MOV byte ptr [RBX + 0x42],AL MOV byte ptr [RBX + 0x62],AL MOV AL,0x20 MOV byte ptr [RBX + 0x4e],AL MOV byte ptr [RBX + 0x6e],AL XOR EAX,EAX JMP 0x0012a6c0 LAB_0012a6be: MOV AL,0x1 LAB_0012a6c0: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 init_state_maps(long param_1) { char *pcVar1; byte *pbVar2; byte bVar3; char cVar4; char cVar5; char cVar6; char cVar7; char cVar8; char cVar9; char cVar10; char cVar11; char cVar12; char cVar13; char cVar14; char cVar15; char cVar16; char cVar17; char cVar18; char cVar19; char cVar20; char cVar21; char cVar22; char cVar23; char cVar24; char cVar25; char cVar26; char cVar27; char cVar28; char cVar29; char cVar30; char cVar31; char cVar32; char cVar33; char cVar34; char cVar35; char cVar36; char cVar37; char cVar38; char cVar39; char cVar40; char cVar41; char cVar42; char cVar43; char cVar44; char cVar45; char cVar46; char cVar47; char cVar48; char cVar49; char cVar50; byte bVar51; byte bVar52; byte bVar53; byte bVar54; byte bVar55; byte bVar56; byte bVar57; byte bVar58; byte bVar59; byte bVar60; byte bVar61; byte bVar62; byte bVar63; byte bVar64; byte bVar65; int iVar66; int8 in_RAX; int1 *puVar67; int8 uVar68; long lVar69; int8 uStack_38; uStack_38 = in_RAX; puVar67 = (int1 *)my_once_alloc(0x200,0x10); *(int1 **)(param_1 + 0x80) = puVar67; if (puVar67 == (int1 *)0x0) { uVar68 = 1; } else { *(int1 **)(param_1 + 0x88) = puVar67 + 0x100; lVar69 = 0; do { bVar3 = *(byte *)(*(long *)(param_1 + 0x40) + 1 + lVar69); if ((bVar3 & 3) == 0) { if ((bVar3 & 4) == 0) { uStack_38 = CONCAT17((char)lVar69,(int7)uStack_38); iVar66 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0)) (param_1,(long)&uStack_38 + 7,&stack0xffffffffffffffd0); if (0xfffffff9 < iVar66 + 100U) goto LAB_0012a5c3; if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + lVar69) & 8) == 0) { puVar67[lVar69] = 1; } else { puVar67[lVar69] = 0x1a; } } else { puVar67[lVar69] = 0xe; } } else { LAB_0012a5c3: puVar67[lVar69] = 2; } lVar69 = lVar69 + 1; } while (lVar69 != 0x100); *(int2 *)(puVar67 + 0x5f) = 0x1b02; puVar67[0x3e] = 8; puVar67[0x7c] = 0x11; *(int2 *)(puVar67 + 0x26) = 0xa11; *(int4 *)(puVar67 + 0x3a) = 0x8091617; *puVar67 = 0x12; puVar67[0x5c] = 0x13; puVar67[0x2a] = 0x15; *(int4 *)(puVar67 + 0x21) = 0x20b2108; *(int4 *)(puVar67 + 0x2c) = 0x14102224; *(int2 *)(puVar67 + 0x3f) = 0x1823; bVar65 = UNK_00161c7f; bVar64 = UNK_00161c7e; bVar63 = UNK_00161c7d; bVar62 = UNK_00161c7c; bVar61 = UNK_00161c7b; bVar60 = UNK_00161c7a; bVar59 = UNK_00161c79; bVar58 = UNK_00161c78; bVar57 = UNK_00161c77; bVar56 = UNK_00161c76; bVar55 = UNK_00161c75; bVar54 = UNK_00161c74; bVar53 = UNK_00161c73; bVar52 = UNK_00161c72; bVar51 = UNK_00161c71; bVar3 = DAT_00161c70; cVar50 = UNK_00161c6f; cVar49 = UNK_00161c6e; cVar48 = UNK_00161c6d; cVar47 = UNK_00161c6c; cVar46 = UNK_00161c6b; cVar45 = UNK_00161c6a; cVar44 = UNK_00161c69; cVar43 = UNK_00161c68; cVar42 = UNK_00161c67; cVar41 = UNK_00161c66; cVar40 = UNK_00161c65; cVar39 = UNK_00161c64; cVar38 = UNK_00161c63; cVar37 = UNK_00161c62; cVar36 = UNK_00161c61; cVar35 = DAT_00161c60; cVar34 = UNK_00161c5f; cVar33 = UNK_00161c5e; cVar32 = UNK_00161c5d; cVar31 = UNK_00161c5c; cVar30 = UNK_00161c5b; cVar29 = UNK_00161c5a; cVar28 = UNK_00161c59; cVar27 = UNK_00161c58; cVar26 = UNK_00161c57; cVar25 = UNK_00161c56; cVar24 = UNK_00161c55; cVar23 = UNK_00161c54; cVar22 = UNK_00161c53; cVar21 = UNK_00161c52; cVar20 = UNK_00161c51; cVar19 = DAT_00161c50; lVar69 = -0x100; do { pcVar1 = puVar67 + 0x100 + lVar69; cVar4 = pcVar1[1]; cVar5 = pcVar1[2]; cVar6 = pcVar1[3]; cVar7 = pcVar1[4]; cVar8 = pcVar1[5]; cVar9 = pcVar1[6]; cVar10 = pcVar1[7]; cVar11 = pcVar1[8]; cVar12 = pcVar1[9]; cVar13 = pcVar1[10]; cVar14 = pcVar1[0xb]; cVar15 = pcVar1[0xc]; cVar16 = pcVar1[0xd]; cVar17 = pcVar1[0xe]; cVar18 = pcVar1[0xf]; pbVar2 = puVar67 + lVar69 + 0x200; *pbVar2 = (-(*pcVar1 == cVar35) | -(*pcVar1 == cVar19)) & bVar3; pbVar2[1] = (-(cVar4 == cVar36) | -(cVar4 == cVar20)) & bVar51; pbVar2[2] = (-(cVar5 == cVar37) | -(cVar5 == cVar21)) & bVar52; pbVar2[3] = (-(cVar6 == cVar38) | -(cVar6 == cVar22)) & bVar53; pbVar2[4] = (-(cVar7 == cVar39) | -(cVar7 == cVar23)) & bVar54; pbVar2[5] = (-(cVar8 == cVar40) | -(cVar8 == cVar24)) & bVar55; pbVar2[6] = (-(cVar9 == cVar41) | -(cVar9 == cVar25)) & bVar56; pbVar2[7] = (-(cVar10 == cVar42) | -(cVar10 == cVar26)) & bVar57; pbVar2[8] = (-(cVar11 == cVar43) | -(cVar11 == cVar27)) & bVar58; pbVar2[9] = (-(cVar12 == cVar44) | -(cVar12 == cVar28)) & bVar59; pbVar2[10] = (-(cVar13 == cVar45) | -(cVar13 == cVar29)) & bVar60; pbVar2[0xb] = (-(cVar14 == cVar46) | -(cVar14 == cVar30)) & bVar61; pbVar2[0xc] = (-(cVar15 == cVar47) | -(cVar15 == cVar31)) & bVar62; pbVar2[0xd] = (-(cVar16 == cVar48) | -(cVar16 == cVar32)) & bVar63; pbVar2[0xe] = (-(cVar17 == cVar49) | -(cVar17 == cVar33)) & bVar64; pbVar2[0xf] = (-(cVar18 == cVar50) | -(cVar18 == cVar34)) & bVar65; lVar69 = lVar69 + 0x10; } while (lVar69 != 0); puVar67[0x58] = 0x1e; puVar67[0x78] = 0x1e; puVar67[0x42] = 0x1f; puVar67[0x62] = 0x1f; puVar67[0x4e] = 0x20; puVar67[0x6e] = 0x20; uVar68 = 0; } return uVar68; }
59,750
ma_column_nr_write
eloqsql/storage/maria/ma_open.c
my_bool _ma_column_nr_write(File file, uint16 *offsets, uint columns) { uchar *buff, *ptr, *end; size_t size= columns*2; my_bool res; if (!(buff= (uchar*) my_alloca(size))) return 1; for (ptr= buff, end= ptr + size; ptr < end ; ptr+= 2, offsets++) int2store(ptr, *offsets); res= mysql_file_write(file, buff, size, MYF(MY_NABP)) != 0; my_afree(buff); return res; }
O0
c
ma_column_nr_write: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movl %edi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl -0x1c(%rbp), %eax addl %eax, %eax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rcx addq $0xf, %rcx andq $-0x10, %rcx movq %rsp, %rax subq %rcx, %rax movq %rax, %rsp movq %rax, -0x28(%rbp) cmpq $0x0, %rax jne 0x69f30 movb $0x1, -0x9(%rbp) jmp 0x69fb9 movq -0x28(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax addq -0x40(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x69f82 jmp 0x69f50 movq -0x30(%rbp), %rax movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rax movw (%rax), %cx movq -0x50(%rbp), %rax movw %cx, (%rax) jmp 0x69f68 movq -0x30(%rbp), %rax addq $0x2, %rax movq %rax, -0x30(%rbp) movq -0x18(%rbp), %rax addq $0x2, %rax movq %rax, -0x18(%rbp) jmp 0x69f44 movl -0x10(%rbp), %edx movq -0x28(%rbp), %rcx movq -0x40(%rbp), %r8 leaq 0xe9c48(%rip), %rdi # 0x153bdc movl $0x79a, %esi # imm = 0x79A movl $0x4, %r9d callq 0x687c0 cmpq $0x0, %rax setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x41(%rbp) movb -0x41(%rbp), %al movb %al, -0x9(%rbp) movb -0x9(%rbp), %al movb %al, -0x51(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x69fd9 movb -0x51(%rbp), %al movq %rbp, %rsp popq %rbp retq callq 0x2a270 nop
_ma_column_nr_write: push rbp mov rbp, rsp sub rsp, 60h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_10], edi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov eax, [rbp+var_1C] add eax, eax mov [rbp+var_40], rax mov rcx, [rbp+var_40] add rcx, 0Fh and rcx, 0FFFFFFFFFFFFFFF0h mov rax, rsp sub rax, rcx mov rsp, rax mov [rbp+var_28], rax cmp rax, 0 jnz short loc_69F30 mov [rbp+var_9], 1 jmp loc_69FB9 loc_69F30: mov rax, [rbp+var_28] mov [rbp+var_30], rax mov rax, [rbp+var_30] add rax, [rbp+var_40] mov [rbp+var_38], rax loc_69F44: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb short loc_69F82 jmp short $+2 loc_69F50: mov rax, [rbp+var_30] mov [rbp+var_50], rax mov rax, [rbp+var_18] mov cx, [rax] mov rax, [rbp+var_50] mov [rax], cx jmp short $+2 loc_69F68: mov rax, [rbp+var_30] add rax, 2 mov [rbp+var_30], rax mov rax, [rbp+var_18] add rax, 2 mov [rbp+var_18], rax jmp short loc_69F44 loc_69F82: mov edx, [rbp+var_10] mov rcx, [rbp+var_28] mov r8, [rbp+var_40] lea rdi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 79Ah mov r9d, 4 call inline_mysql_file_write_0 cmp rax, 0 setnz al and al, 1 movzx eax, al mov [rbp+var_41], al mov al, [rbp+var_41] mov [rbp+var_9], al loc_69FB9: mov al, [rbp+var_9] mov [rbp+var_51], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_69FD9 mov al, [rbp+var_51] mov rsp, rbp pop rbp retn loc_69FD9: call ___stack_chk_fail
bool ma_column_nr_write(unsigned int a1, _WORD *a2, int a3) { _QWORD v4[3]; // [rsp+0h] [rbp-60h] BYREF long long v6; // [rsp+20h] [rbp-40h] unsigned long long v7; // [rsp+28h] [rbp-38h] _WORD *v8; // [rsp+30h] [rbp-30h] _WORD *v9; // [rsp+38h] [rbp-28h] int v10; // [rsp+44h] [rbp-1Ch] _WORD *v11; // [rsp+48h] [rbp-18h] unsigned int v12; // [rsp+50h] [rbp-10h] unsigned long long v14; // [rsp+58h] [rbp-8h] v14 = __readfsqword(0x28u); v12 = a1; v11 = a2; v10 = a3; v6 = (unsigned int)(2 * a3); v9 = (_WORD *)((char *)v4 - ((v6 + 15) & 0xFFFFFFFFFFFFFFF0LL)); if ( !v9 ) return 1; v8 = v9; v7 = (unsigned long long)v9 + v6; while ( (unsigned long long)v8 < v7 ) { v4[2] = v8; *v8++ = *v11++; } return inline_mysql_file_write_0( (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c", 0x79Au, v12, (long long)v9, v6, 4LL) != 0; }
_ma_column_nr_write: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV dword ptr [RBP + -0x10],EDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,EAX MOV qword ptr [RBP + -0x40],RAX MOV RCX,qword ptr [RBP + -0x40] ADD RCX,0xf AND RCX,-0x10 MOV RAX,RSP SUB RAX,RCX MOV RSP,RAX MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JNZ 0x00169f30 MOV byte ptr [RBP + -0x9],0x1 JMP 0x00169fb9 LAB_00169f30: MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX LAB_00169f44: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x00169f82 JMP 0x00169f50 LAB_00169f50: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x18] MOV CX,word ptr [RAX] MOV RAX,qword ptr [RBP + -0x50] MOV word ptr [RAX],CX JMP 0x00169f68 LAB_00169f68: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x2 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x2 MOV qword ptr [RBP + -0x18],RAX JMP 0x00169f44 LAB_00169f82: MOV EDX,dword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + -0x40] LEA RDI,[0x253bdc] MOV ESI,0x79a MOV R9D,0x4 CALL 0x001687c0 CMP RAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x41],AL MOV AL,byte ptr [RBP + -0x41] MOV byte ptr [RBP + -0x9],AL LAB_00169fb9: MOV AL,byte ptr [RBP + -0x9] MOV byte ptr [RBP + -0x51],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00169fd9 MOV AL,byte ptr [RBP + -0x51] MOV RSP,RBP POP RBP RET LAB_00169fd9: CALL 0x0012a270
int8 _ma_column_nr_write(int4 param_1,int2 *param_2,int param_3) { long lVar1; ulong uVar2; int2 *puVar3; int4 uVar4; long lVar5; long in_FS_OFFSET; int8 uStack_70; int2 auStack_68 [7]; bool local_59; int2 *local_58; int1 local_49; ulong local_48; int2 *local_40; int2 *local_38; int2 *local_30; int local_24; int2 *local_20; int4 local_18; bool local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_48 = (ulong)(uint)(param_3 * 2); lVar1 = -(local_48 + 0xf & 0xfffffffffffffff0); local_30 = (int2 *)((long)auStack_68 + lVar1); local_24 = param_3; local_20 = param_2; local_18 = param_1; if (local_30 == (int2 *)0x0) { local_11 = true; } else { local_40 = (int2 *)((long)local_30 + local_48); for (local_38 = local_30; uVar4 = local_18, puVar3 = local_30, uVar2 = local_48, local_38 < local_40; local_38 = local_38 + 1) { local_58 = local_38; *local_38 = *local_20; local_20 = local_20 + 1; } *(int8 *)((long)&uStack_70 + lVar1) = 0x169fa4; lVar5 = inline_mysql_file_write ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_open.c",0x79a, uVar4,puVar3,uVar2,4); local_49 = lVar5 != 0; local_11 = (bool)local_49; } local_59 = local_11; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_11); } /* WARNING: Subroutine does not return */ *(int8 *)((long)&uStack_70 + lVar1) = 0x169fde; __stack_chk_fail(); }
59,751
nglog::ShellEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
ng-log[P]ng-log/src/logging.cc
static string ShellEscape(const string& src) { string result; if (!src.empty() && // empty string needs quotes src.find_first_not_of(kDontNeedShellEscapeChars) == string::npos) { // only contains chars that don't need quotes; it's fine result.assign(src); } else if (src.find_first_of('\'') == string::npos) { // no single quotes; just wrap it in single quotes result.assign("'"); result.append(src); result.append("'"); } else { // needs double quote escaping result.assign("\""); for (size_t i = 0; i < src.size(); ++i) { switch (src[i]) { case '\\': case '$': case '"': case '`': result.append("\\"); } result.append(src, i, 1); } result.append("\""); } return result; }
O2
cpp
nglog::ShellEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) andq $0x0, 0x8(%rdi) movq %rsi, %r14 movb $0x0, 0x10(%rdi) cmpq $0x0, 0x8(%rsi) je 0xdc47 leaq 0x109cd(%rip), %rsi # 0x1e600 movq %r14, %rdi xorl %edx, %edx callq 0x7350 cmpq $-0x1, %rax je 0xdcf1 pushq $0x27 popq %rsi movq %r14, %rdi xorl %edx, %edx callq 0x7770 cmpq $-0x1, %rax je 0xdcc7 leaq 0x11a15(%rip), %rsi # 0x1f676 movq %rbx, %rdi callq 0x7a90 xorl %r12d, %r12d pushq $0x1 popq %r13 movabsq $0x4400000000000005, %r15 # imm = 0x4400000000000005 leaq 0x119f7(%rip), %rbp # 0x1f678 cmpq 0x8(%r14), %r12 jae 0xdcbe movq (%r14), %rax movzbl (%rax,%r12), %eax addl $-0x22, %eax cmpl $0x3e, %eax ja 0xdca8 btq %rax, %r15 jae 0xdca8 movq %rbx, %rdi movq %rbp, %rsi callq 0x7a80 movq %rbx, %rdi movq %r14, %rsi movq %r12, %rdx movq %r13, %rcx callq 0x77e0 incq %r12 jmp 0xdc81 leaq 0x119b1(%rip), %r15 # 0x1f676 jmp 0xdce4 leaq 0x10a80(%rip), %r15 # 0x1e74e movq %rbx, %rdi movq %r15, %rsi callq 0x7a90 movq %rbx, %rdi movq %r14, %rsi callq 0x7ab0 movq %rbx, %rdi movq %r15, %rsi callq 0x7a80 jmp 0xdcfc movq %rbx, %rdi movq %r14, %rsi callq 0x7300 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xdd10 movq %rax, %r14 movq %rbx, %rdi callq 0x7b38 movq %r14, %rdi callq 0x7a00 nop
_ZN5nglogL11ShellEscapeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax and qword ptr [rdi+8], 0 mov r14, rsi mov byte ptr [rdi+10h], 0 cmp qword ptr [rsi+8], 0 jz short loc_DC47 lea rsi, _ZN5nglogL25kDontNeedShellEscapeCharsE; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"... mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcm; std::string::find_first_not_of(char const*,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz loc_DCF1 loc_DC47: push 27h ; ''' pop rsi mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_DCC7 lea rsi, asc_1F676; "\"" mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) xor r12d, r12d push 1 pop r13 mov r15, 4400000000000005h lea rbp, asc_1F678; "\\" loc_DC81: cmp r12, [r14+8] jnb short loc_DCBE mov rax, [r14] movzx eax, byte ptr [rax+r12] add eax, 0FFFFFFDEh cmp eax, 3Eh ; '>' ja short loc_DCA8 bt r15, rax jnb short loc_DCA8 mov rdi, rbx mov rsi, rbp call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_DCA8: mov rdi, rbx mov rsi, r14 mov rdx, r12 mov rcx, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) inc r12 jmp short loc_DC81 loc_DCBE: lea r15, asc_1F676; "\"" jmp short loc_DCE4 loc_DCC7: lea r15, aDataNumCharsTo+59h; "'" mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) loc_DCE4: mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short loc_DCFC loc_DCF1: mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) loc_DCFC: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_DD10: mov r14, rax mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14 call __Unwind_Resume
long long nglog::ShellEscape(long long a1, _QWORD *a2) { long long v2; // rax long long v3; // rdx long long v4; // rcx long long v5; // r8 long long v6; // r9 unsigned long long v7; // r12 long long v8; // r15 unsigned long long v9; // rax char *v10; // r15 long long v12; // [rsp-8h] [rbp-38h] long long v13; // [rsp+0h] [rbp-30h] long long v14; // [rsp+8h] [rbp-28h] long long v15; // [rsp+10h] [rbp-20h] v12 = v2; *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; if ( a2[1] && std::string::find_first_not_of( a2, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_.=/:,@", 0LL) == -1 ) { std::string::_M_assign(a1, a2); } else { if ( std::string::find(a2, 39LL, 0LL) == -1 ) { v10 = "'"; std::string::assign(a1, "'"); std::string::append(a1, a2); } else { std::string::assign(a1, "\""); v7 = 0LL; v8 = 0x4400000000000005LL; while ( v7 < a2[1] ) { v9 = (unsigned int)*(unsigned __int8 *)(*a2 + v7) - 34; if ( (unsigned int)v9 <= 0x3E ) { if ( _bittest64(&v8, v9) ) std::string::append(a1, "\\", v3, v4, v5, v6, v12, v13, v14, v15); } std::string::append(a1, a2, v7++, 1LL); } v10 = "\""; } std::string::append(a1, v10, v3, v4, v5, v6, v12, v13, v14, v15); } return a1; }
ShellEscape: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX AND qword ptr [RDI + 0x8],0x0 MOV R14,RSI MOV byte ptr [RDI + 0x10],0x0 CMP qword ptr [RSI + 0x8],0x0 JZ 0x0010dc47 LEA RSI,[0x11e600] MOV RDI,R14 XOR EDX,EDX CALL 0x00107350 CMP RAX,-0x1 JZ 0x0010dcf1 LAB_0010dc47: PUSH 0x27 POP RSI MOV RDI,R14 XOR EDX,EDX CALL 0x00107770 CMP RAX,-0x1 JZ 0x0010dcc7 LAB_0010dc5a: LEA RSI,[0x11f676] MOV RDI,RBX CALL 0x00107a90 XOR R12D,R12D PUSH 0x1 POP R13 MOV R15,0x4400000000000005 LEA RBP,[0x11f678] LAB_0010dc81: CMP R12,qword ptr [R14 + 0x8] JNC 0x0010dcbe MOV RAX,qword ptr [R14] MOVZX EAX,byte ptr [RAX + R12*0x1] ADD EAX,-0x22 CMP EAX,0x3e JA 0x0010dca8 BT R15,RAX JNC 0x0010dca8 LAB_0010dc9d: MOV RDI,RBX MOV RSI,RBP CALL 0x00107a80 LAB_0010dca8: MOV RDI,RBX MOV RSI,R14 MOV RDX,R12 MOV RCX,R13 CALL 0x001077e0 INC R12 JMP 0x0010dc81 LAB_0010dcbe: LEA R15,[0x11f676] JMP 0x0010dce4 LAB_0010dcc7: LEA R15,[0x11e74e] MOV RDI,RBX MOV RSI,R15 CALL 0x00107a90 MOV RDI,RBX MOV RSI,R14 CALL 0x00107ab0 LAB_0010dce4: MOV RDI,RBX MOV RSI,R15 CALL 0x00107a80 JMP 0x0010dcfc LAB_0010dcf1: MOV RDI,RBX MOV RSI,R14 CALL 0x00107300 LAB_0010dcfc: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::ShellEscape(std::__cxx11::string const&) */ nglog * __thiscall nglog::ShellEscape(nglog *this,string *param_1) { uint uVar1; long lVar2; ulong uVar3; *(nglog **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (nglog)0x0; if ((*(long *)(param_1 + 8) == 0) || (lVar2 = std::__cxx11::string::find_first_not_of((char *)param_1,0x11e600), lVar2 != -1)) { lVar2 = std::__cxx11::string::find((char)param_1,0x27); if (lVar2 == -1) { /* try { // try from 0010dcc7 to 0010dcfb has its CatchHandler @ 0010dd0e */ std::__cxx11::string::assign((char *)this); std::__cxx11::string::append((string *)this); } else { /* try { // try from 0010dc5a to 0010dc68 has its CatchHandler @ 0010dd0e */ std::__cxx11::string::assign((char *)this); for (uVar3 = 0; uVar3 < *(ulong *)(param_1 + 8); uVar3 = uVar3 + 1) { uVar1 = *(byte *)(*(long *)param_1 + uVar3) - 0x22; if ((uVar1 < 0x3f) && ((0x4400000000000005U >> ((ulong)uVar1 & 0x3f) & 1) != 0)) { /* try { // try from 0010dc9d to 0010dcb8 has its CatchHandler @ 0010dd10 */ std::__cxx11::string::append((char *)this); } std::__cxx11::string::append((string *)this,(ulong)param_1,uVar3); } } std::__cxx11::string::append((char *)this); } else { std::__cxx11::string::_M_assign((string *)this); } return this; }
59,752
LefDefParser::lefwEnd()
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwEnd() { if (!lefwFile) return 1; if (!lefwDidInit) return LEFW_BAD_ORDER; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) "END LIBRARY\n"); else fprintf(lefwFile, "END LIBRARY\n"); lefwLines++; // lefwFile = 0; lefwState = LEFW_DONE; return LEFW_OK; }
O3
cpp
LefDefParser::lefwEnd(): leaq 0x16c86(%rip), %rax # 0x24e00 movq (%rax), %rcx testq %rcx, %rcx je 0xe1ab leaq 0x16ecb(%rip), %rax # 0x25054 cmpl $0x0, (%rax) je 0xe1b1 pushq %rax cmpb $0x1, 0x16f56(%rip) # 0x250ec jne 0xe1b7 leaq 0xcf33(%rip), %rsi # 0x1b0d2 movq %rcx, %rdi xorl %eax, %eax callq 0x18c35 jmp 0xe1cd movl $0x1, %eax retq movl $0x2, %eax retq leaq 0xcf14(%rip), %rdi # 0x1b0d2 movl $0xc, %esi movl $0x1, %edx callq 0x1110 leaq 0x16e78(%rip), %rax # 0x2504c incl (%rax) leaq 0x16e73(%rip), %rax # 0x25050 movl $0x3e7, (%rax) # imm = 0x3E7 xorl %eax, %eax addq $0x8, %rsp retq
_ZN12LefDefParser7lefwEndEv: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rcx, [rax] test rcx, rcx jz short loc_E1AB lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 jz short loc_E1B1 push rax cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_E1B7 lea rsi, aEndLibrary; "END LIBRARY\n" mov rdi, rcx xor eax, eax call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_E1CD loc_E1AB: mov eax, 1 retn loc_E1B1: mov eax, 2 retn loc_E1B7: lea rdi, aEndLibrary; "END LIBRARY\n" mov esi, 0Ch mov edx, 1 call _fwrite loc_E1CD: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] lea rax, _ZN12LefDefParser9lefwStateE; LefDefParser::lefwState mov dword ptr [rax], 3E7h xor eax, eax add rsp, 8 retn
long long LefDefParser::lefwEnd(LefDefParser *this, long long a2, int a3, long long a4, int a5, int a6) { if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; if ( !LefDefParser::lefwDidInit ) return 2LL; if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)"END LIBRARY\n", a3, LefDefParser::lefwFile, a5, a6); else fwrite("END LIBRARY\n", 12LL, 1LL, *(_QWORD *)&LefDefParser::lefwFile); ++LefDefParser::lefwLines; LefDefParser::lefwState = 999; return 0LL; }
lefwEnd: LEA RAX,[0x124e00] MOV RCX,qword ptr [RAX] TEST RCX,RCX JZ 0x0010e1ab LEA RAX,[0x125054] CMP dword ptr [RAX],0x0 JZ 0x0010e1b1 PUSH RAX CMP byte ptr [0x001250ec],0x1 JNZ 0x0010e1b7 LEA RSI,[0x11b0d2] MOV RDI,RCX XOR EAX,EAX CALL 0x00118c35 JMP 0x0010e1cd LAB_0010e1ab: MOV EAX,0x1 RET LAB_0010e1b1: MOV EAX,0x2 RET LAB_0010e1b7: LEA RDI,[0x11b0d2] MOV ESI,0xc MOV EDX,0x1 CALL 0x00101110 LAB_0010e1cd: LEA RAX,[0x12504c] INC dword ptr [RAX] LEA RAX,[0x125050] MOV dword ptr [RAX],0x3e7 XOR EAX,EAX ADD RSP,0x8 RET
/* LefDefParser::lefwEnd() */ int8 LefDefParser::lefwEnd(void) { if (lefwFile == (_IO_FILE *)0x0) { return 1; } if (lefwDidInit != 0) { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile,"END LIBRARY\n"); } else { fwrite("END LIBRARY\n",0xc,1,lefwFile); } lefwLines = lefwLines + 1; lefwState = 999; return 0; } return 2; }
59,753
my_pread
eloqsql/mysys/my_pread.c
size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags) { size_t readbytes, save_count= 0; DBUG_ENTER("my_pread"); DBUG_PRINT("my",("fd: %d Seek: %llu Buffer: %p Count: %lu MyFlags: %lu", Filedes, (ulonglong)offset, Buffer, (ulong)Count, MyFlags)); if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP))) MyFlags|= my_global_flags; for (;;) { errno= 0; /* Linux, Windows don't reset this on EOF/success */ #ifdef _WIN32 readbytes= my_win_pread(Filedes, Buffer, Count, offset); #else readbytes= pread(Filedes, Buffer, Count, offset); #endif if (readbytes != Count) { /* We should never read with wrong file descriptor! */ DBUG_ASSERT(readbytes != (size_t)-1 || errno != EBADF); my_errno= errno; if (errno == 0 || (readbytes != (size_t) -1 && (MyFlags & (MY_NABP | MY_FNABP)))) my_errno= HA_ERR_FILE_TOO_SHORT; DBUG_PRINT("warning",("Read only %d bytes off %u from %d, errno: %d", (int) readbytes, (uint) Count,Filedes,my_errno)); if ((readbytes == 0 || readbytes == (size_t) -1) && errno == EINTR) { DBUG_PRINT("debug", ("my_pread() was interrupted and returned %d", (int) readbytes)); continue; /* Interrupted */ } /* Do a read retry if we didn't get enough data on first read */ if (readbytes != (size_t) -1 && readbytes != 0 && (MyFlags & MY_FULL_IO)) { Buffer+= readbytes; Count-= readbytes; save_count+= readbytes; offset+= readbytes; continue; } if (MyFlags & (MY_WME | MY_FAE | MY_FNABP)) { if (readbytes == (size_t) -1) my_error(EE_READ, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), my_filename(Filedes),my_errno); else if (MyFlags & (MY_NABP | MY_FNABP)) my_error(EE_EOFERR, MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))), my_filename(Filedes),my_errno); } if (readbytes == (size_t) -1 || (MyFlags & (MY_FNABP | MY_NABP))) DBUG_RETURN(MY_FILE_ERROR); /* Return with error */ } if (MyFlags & (MY_NABP | MY_FNABP)) readbytes= 0; /* Read went ok; Return 0 */ else readbytes+= save_count; DBUG_RETURN(readbytes); } }
O0
c
my_pread: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq $0x0, -0x40(%rbp) jmp 0xbf345 movq -0x30(%rbp), %rax andq $0x1a, %rax cmpq $0x0, %rax jne 0xbf365 leaq 0xb8c78e(%rip), %rax # 0xc4bae8 movq (%rax), %rax orq -0x30(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0xbf367 callq 0x27910 movl $0x0, (%rax) movl -0xc(%rbp), %edi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rcx callq 0x27700 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax cmpq -0x20(%rbp), %rax je 0xbf517 jmp 0xbf39a jmp 0xbf39c callq 0x27910 movl (%rax), %eax movl %eax, -0x44(%rbp) callq 0xc0d80 movl -0x44(%rbp), %ecx movl %ecx, (%rax) callq 0x27910 cmpl $0x0, (%rax) je 0xbf3cf cmpq $-0x1, -0x38(%rbp) je 0xbf3da movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xbf3da callq 0xc0d80 movl $0xaf, (%rax) jmp 0xbf3dc jmp 0xbf3de cmpq $0x0, -0x38(%rbp) je 0xbf3ec cmpq $-0x1, -0x38(%rbp) jne 0xbf3ff callq 0x27910 cmpl $0x4, (%rax) jne 0xbf3ff jmp 0xbf3f8 jmp 0xbf3fa jmp 0xbf367 cmpq $-0x1, -0x38(%rbp) je 0xbf455 cmpq $0x0, -0x38(%rbp) je 0xbf455 movq -0x30(%rbp), %rax andq $0x200, %rax # imm = 0x200 cmpq $0x0, %rax je 0xbf455 movq -0x38(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x38(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x38(%rbp), %rax addq -0x40(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0xbf367 movq -0x30(%rbp), %rax andq $0x1a, %rax cmpq $0x0, %rax je 0xbf4f4 cmpq $-0x1, -0x38(%rbp) jne 0xbf4a9 movq -0x30(%rbp), %rax andq $0x440, %rax # imm = 0x440 orq $0x4, %rax movq %rax, -0x58(%rbp) movl -0xc(%rbp), %edi callq 0xb6660 movq %rax, -0x50(%rbp) callq 0xc0d80 movq -0x58(%rbp), %rsi movq -0x50(%rbp), %rdx movl (%rax), %ecx movl $0x2, %edi movb $0x0, %al callq 0xb67b0 jmp 0xbf4f2 movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xbf4f0 movq -0x30(%rbp), %rax andq $0x440, %rax # imm = 0x440 orq $0x4, %rax movq %rax, -0x68(%rbp) movl -0xc(%rbp), %edi callq 0xb6660 movq %rax, -0x60(%rbp) callq 0xc0d80 movq -0x68(%rbp), %rsi movq -0x60(%rbp), %rdx movl (%rax), %ecx movl $0x9, %edi movb $0x0, %al callq 0xb67b0 jmp 0xbf4f2 jmp 0xbf4f4 cmpq $-0x1, -0x38(%rbp) je 0xbf509 movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xbf515 jmp 0xbf50b movq $-0x1, -0x8(%rbp) jmp 0xbf545 jmp 0xbf517 movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xbf52f movq $0x0, -0x38(%rbp) jmp 0xbf53b movq -0x40(%rbp), %rax addq -0x38(%rbp), %rax movq %rax, -0x38(%rbp) jmp 0xbf53d movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nop
my_pread: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_40], 0 jmp short $+2 loc_BF345: mov rax, [rbp+var_30] and rax, 1Ah cmp rax, 0 jnz short loc_BF365 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_30] mov [rbp+var_30], rax loc_BF365: jmp short $+2 loc_BF367: call ___errno_location mov dword ptr [rax], 0 mov edi, [rbp+var_C] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rcx, [rbp+var_28] call _pread64 mov [rbp+var_38], rax mov rax, [rbp+var_38] cmp rax, [rbp+var_20] jz loc_BF517 jmp short $+2 loc_BF39A: jmp short $+2 loc_BF39C: call ___errno_location mov eax, [rax] mov [rbp+var_44], eax call _my_thread_var mov ecx, [rbp+var_44] mov [rax], ecx call ___errno_location cmp dword ptr [rax], 0 jz short loc_BF3CF cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_BF3DA mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_BF3DA loc_BF3CF: call _my_thread_var mov dword ptr [rax], 0AFh loc_BF3DA: jmp short $+2 loc_BF3DC: jmp short $+2 loc_BF3DE: cmp [rbp+var_38], 0 jz short loc_BF3EC cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jnz short loc_BF3FF loc_BF3EC: call ___errno_location cmp dword ptr [rax], 4 jnz short loc_BF3FF jmp short $+2 loc_BF3F8: jmp short $+2 loc_BF3FA: jmp loc_BF367 loc_BF3FF: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_BF455 cmp [rbp+var_38], 0 jz short loc_BF455 mov rax, [rbp+var_30] and rax, 200h cmp rax, 0 jz short loc_BF455 mov rax, [rbp+var_38] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rcx, [rbp+var_38] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_38] add rax, [rbp+var_40] mov [rbp+var_40], rax mov rax, [rbp+var_38] add rax, [rbp+var_28] mov [rbp+var_28], rax jmp loc_BF367 loc_BF455: mov rax, [rbp+var_30] and rax, 1Ah cmp rax, 0 jz loc_BF4F4 cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jnz short loc_BF4A9 mov rax, [rbp+var_30] and rax, 440h or rax, 4 mov [rbp+var_58], rax mov edi, [rbp+var_C] call my_filename mov [rbp+var_50], rax call _my_thread_var mov rsi, [rbp+var_58] mov rdx, [rbp+var_50] mov ecx, [rax] mov edi, 2 mov al, 0 call my_error jmp short loc_BF4F2 loc_BF4A9: mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_BF4F0 mov rax, [rbp+var_30] and rax, 440h or rax, 4 mov [rbp+var_68], rax mov edi, [rbp+var_C] call my_filename mov [rbp+var_60], rax call _my_thread_var mov rsi, [rbp+var_68] mov rdx, [rbp+var_60] mov ecx, [rax] mov edi, 9 mov al, 0 call my_error loc_BF4F0: jmp short $+2 loc_BF4F2: jmp short $+2 loc_BF4F4: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_BF509 mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_BF515 loc_BF509: jmp short $+2 loc_BF50B: mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh jmp short loc_BF545 loc_BF515: jmp short $+2 loc_BF517: mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_BF52F mov [rbp+var_38], 0 jmp short loc_BF53B loc_BF52F: mov rax, [rbp+var_40] add rax, [rbp+var_38] mov [rbp+var_38], rax loc_BF53B: jmp short $+2 loc_BF53D: mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_BF545: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long my_pread(unsigned int a1, const char *a2, long long a3, long long a4, __int16 a5) { unsigned int *v5; // rax unsigned int *v6; // rax const char *v8; // [rsp+10h] [rbp-60h] const char *v9; // [rsp+20h] [rbp-50h] int v10; // [rsp+2Ch] [rbp-44h] long long v11; // [rsp+30h] [rbp-40h] long long v12; // [rsp+38h] [rbp-38h] __int16 v14; // [rsp+40h] [rbp-30h] v14 = a5; v11 = 0LL; if ( (a5 & 0x1A) == 0 ) v14 = a5 | my_global_flags; while ( 1 ) { *(_DWORD *)__errno_location() = 0; v12 = pread64(a1, a2, a3, a4); if ( v12 == a3 ) break; v10 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var(a1, a2) = v10; if ( !*(_DWORD *)__errno_location() || v12 != -1 && (v14 & 6) != 0 ) *(_DWORD *)my_thread_var(a1, a2) = 175; if ( v12 && v12 != -1 || *(_DWORD *)__errno_location() != 4 ) { if ( v12 == -1 || !v12 || (v14 & 0x200) == 0 ) { if ( (v14 & 0x1A) != 0 ) { if ( v12 == -1 ) { v9 = my_filename(a1); v5 = (unsigned int *)my_thread_var(a1, a2); my_error(2u, v14 & 0x440 | 4LL, v9, *v5); } else if ( (v14 & 6) != 0 ) { v8 = my_filename(a1); v6 = (unsigned int *)my_thread_var(a1, a2); my_error(9u, v14 & 0x440 | 4LL, v8, *v6); } } if ( v12 == -1 || (v14 & 6) != 0 ) return -1LL; break; } a2 += v12; a3 -= v12; v11 += v12; a4 += v12; } } if ( (v14 & 6) != 0 ) return 0LL; else return v12 + v11; }
my_pread: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV dword ptr [RBP + -0xc],EDI 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 + -0x40],0x0 JMP 0x001bf345 LAB_001bf345: MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x1a CMP RAX,0x0 JNZ 0x001bf365 LEA RAX,[0xd4bae8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x30],RAX LAB_001bf365: JMP 0x001bf367 LAB_001bf367: CALL 0x00127910 MOV dword ptr [RAX],0x0 MOV EDI,dword ptr [RBP + -0xc] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x28] CALL 0x00127700 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x20] JZ 0x001bf517 JMP 0x001bf39a LAB_001bf39a: JMP 0x001bf39c LAB_001bf39c: CALL 0x00127910 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x44],EAX CALL 0x001c0d80 MOV ECX,dword ptr [RBP + -0x44] MOV dword ptr [RAX],ECX CALL 0x00127910 CMP dword ptr [RAX],0x0 JZ 0x001bf3cf CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001bf3da MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001bf3da LAB_001bf3cf: CALL 0x001c0d80 MOV dword ptr [RAX],0xaf LAB_001bf3da: JMP 0x001bf3dc LAB_001bf3dc: JMP 0x001bf3de LAB_001bf3de: CMP qword ptr [RBP + -0x38],0x0 JZ 0x001bf3ec CMP qword ptr [RBP + -0x38],-0x1 JNZ 0x001bf3ff LAB_001bf3ec: CALL 0x00127910 CMP dword ptr [RAX],0x4 JNZ 0x001bf3ff JMP 0x001bf3f8 LAB_001bf3f8: JMP 0x001bf3fa LAB_001bf3fa: JMP 0x001bf367 LAB_001bf3ff: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001bf455 CMP qword ptr [RBP + -0x38],0x0 JZ 0x001bf455 MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x200 CMP RAX,0x0 JZ 0x001bf455 MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x28],RAX JMP 0x001bf367 LAB_001bf455: MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x1a CMP RAX,0x0 JZ 0x001bf4f4 CMP qword ptr [RBP + -0x38],-0x1 JNZ 0x001bf4a9 MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x440 OR RAX,0x4 MOV qword ptr [RBP + -0x58],RAX MOV EDI,dword ptr [RBP + -0xc] CALL 0x001b6660 MOV qword ptr [RBP + -0x50],RAX CALL 0x001c0d80 MOV RSI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RAX] MOV EDI,0x2 MOV AL,0x0 CALL 0x001b67b0 JMP 0x001bf4f2 LAB_001bf4a9: MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001bf4f0 MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x440 OR RAX,0x4 MOV qword ptr [RBP + -0x68],RAX MOV EDI,dword ptr [RBP + -0xc] CALL 0x001b6660 MOV qword ptr [RBP + -0x60],RAX CALL 0x001c0d80 MOV RSI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x60] MOV ECX,dword ptr [RAX] MOV EDI,0x9 MOV AL,0x0 CALL 0x001b67b0 LAB_001bf4f0: JMP 0x001bf4f2 LAB_001bf4f2: JMP 0x001bf4f4 LAB_001bf4f4: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001bf509 MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001bf515 LAB_001bf509: JMP 0x001bf50b LAB_001bf50b: MOV qword ptr [RBP + -0x8],-0x1 JMP 0x001bf545 LAB_001bf515: JMP 0x001bf517 LAB_001bf517: MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001bf52f MOV qword ptr [RBP + -0x38],0x0 JMP 0x001bf53b LAB_001bf52f: MOV RAX,qword ptr [RBP + -0x40] ADD RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x38],RAX LAB_001bf53b: JMP 0x001bf53d LAB_001bf53d: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001bf545: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
long my_pread(int param_1,void *param_2,size_t param_3,long param_4,ulong param_5) { int iVar1; int *piVar2; size_t sVar3; int4 *puVar4; int8 uVar5; long local_48; long local_40; ulong local_38; long local_30; size_t local_28; void *local_20; local_48 = 0; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_38 = param_5; if ((param_5 & 0x1a) == 0) { local_38 = my_global_flags | param_5; } do { do { piVar2 = __errno_location(); *piVar2 = 0; sVar3 = pread64(param_1,local_20,local_28,local_30); if (sVar3 == local_28) { LAB_001bf517: if ((local_38 & 6) == 0) { local_40 = local_48 + sVar3; } else { local_40 = 0; } return local_40; } piVar2 = __errno_location(); iVar1 = *piVar2; piVar2 = (int *)_my_thread_var(); *piVar2 = iVar1; piVar2 = __errno_location(); if ((*piVar2 == 0) || ((sVar3 != 0xffffffffffffffff && ((local_38 & 6) != 0)))) { puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0xaf; } } while (((sVar3 == 0) || (sVar3 == 0xffffffffffffffff)) && (piVar2 = __errno_location(), *piVar2 == 4)); if (((sVar3 == 0xffffffffffffffff) || (sVar3 == 0)) || ((local_38 & 0x200) == 0)) { if ((local_38 & 0x1a) != 0) { if (sVar3 == 0xffffffffffffffff) { uVar5 = my_filename(param_1); puVar4 = (int4 *)_my_thread_var(); my_error(2,local_38 & 0x440 | 4,uVar5,*puVar4); } else if ((local_38 & 6) != 0) { uVar5 = my_filename(param_1); puVar4 = (int4 *)_my_thread_var(); my_error(9,local_38 & 0x440 | 4,uVar5,*puVar4); } } if ((sVar3 == 0xffffffffffffffff) || ((local_38 & 6) != 0)) { return -1; } goto LAB_001bf517; } local_20 = (void *)(sVar3 + (long)local_20); local_28 = local_28 - sVar3; local_48 = sVar3 + local_48; local_30 = sVar3 + local_30; } while( true ); }
59,754
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&)
monkey531[P]llama/common/json.hpp
T& at(const key_type& key) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it->second; } } JSON_THROW(std::out_of_range("key not found")); }
O2
cpp
nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const, minja::Value>>>::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %r15 movq (%rdi), %rbx cmpq 0x8(%r15), %rbx je 0x6e3e0 movq %rbx, %rdi movq %r14, %rsi callq 0x683a8 testb %al, %al jne 0x6e3d3 addq $0x60, %rbx jmp 0x6e3b8 addq $0x10, %rbx movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq pushq $0x10 popq %rdi callq 0x23470 movq %rax, %rbx leaq 0x46824(%rip), %rsi # 0xb4c16 movq %rax, %rdi callq 0x23100 movq 0x8fbb7(%rip), %rsi # 0xfdfb8 movq 0x8fb90(%rip), %rdx # 0xfdf98 movq %rbx, %rdi callq 0x23f30 movq %rax, %r14 movq %rbx, %rdi callq 0x236b0 movq %r14, %rdi callq 0x23fb0 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE2atERSJ_: push r15 push r14 push rbx mov r14, rsi mov r15, rdi mov rbx, [rdi] loc_6E3B8: cmp rbx, [r15+8] jz short loc_6E3E0 mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::operator==(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) test al, al jnz short loc_6E3D3 add rbx, 60h ; '`' jmp short loc_6E3B8 loc_6E3D3: add rbx, 10h mov rax, rbx pop rbx pop r14 pop r15 retn loc_6E3E0: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aKeyNotFound; "key not found" mov rdi, rax; this call __ZNSt12out_of_rangeC1EPKc; std::out_of_range::out_of_range(char const*) mov rsi, cs:_ZTISt12out_of_range_ptr; lptinfo mov rdx, cs:_ZNSt12out_of_rangeD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception mov rdi, r14 call __Unwind_Resume
unsigned __int8 * nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>::at( unsigned __int8 **a1, unsigned __int8 *a2, __m128d a3) { unsigned __int8 *i; // rbx std::out_of_range *exception; // rbx for ( i = *a1; ; i += 96 ) { if ( i == a1[1] ) { exception = (std::out_of_range *)__cxa_allocate_exception(0x10uLL); std::out_of_range::out_of_range(exception, "key not found"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))&std::out_of_range::~out_of_range); } if ( nlohmann::json_abi_v3_11_3::operator==(i, a2, a3) ) break; } return i + 16; }
at: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV R15,RDI MOV RBX,qword ptr [RDI] LAB_0016e3b8: CMP RBX,qword ptr [R15 + 0x8] JZ 0x0016e3e0 MOV RDI,RBX MOV RSI,R14 CALL 0x001683a8 TEST AL,AL JNZ 0x0016e3d3 ADD RBX,0x60 JMP 0x0016e3b8 LAB_0016e3d3: ADD RBX,0x10 MOV RAX,RBX POP RBX POP R14 POP R15 RET LAB_0016e3e0: PUSH 0x10 POP RDI CALL 0x00123470 MOV RBX,RAX LAB_0016e3eb: LEA RSI,[0x1b4c16] MOV RDI,RAX CALL 0x00123100 LAB_0016e3fa: MOV RSI,qword ptr [0x001fdfb8] MOV RDX,qword ptr [0x001fdf98] MOV RDI,RBX CALL 0x00123f30
/* nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, minja::Value, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >, std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const, minja::Value> > >::at(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ basic_json * __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> ::at(ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>> *this,basic_json *param_1) { char cVar1; out_of_range *this_00; basic_json *pbVar2; pbVar2 = *(basic_json **)this; while( true ) { if (pbVar2 == *(basic_json **)(this + 8)) { this_00 = (out_of_range *)__cxa_allocate_exception(0x10); /* try { // try from 0016e3eb to 0016e3f9 has its CatchHandler @ 0016e410 */ std::out_of_range::out_of_range(this_00,"key not found"); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fdfb8,PTR__out_of_range_001fdf98); } cVar1 = json_abi_v3_11_3::operator==(pbVar2,param_1); if (cVar1 != '\0') break; pbVar2 = pbVar2 + 0x60; } return pbVar2 + 0x10; }
59,755
ggml_flash_attn
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_flash_attn( struct ggml_context * ctx, struct ggml_tensor * q, struct ggml_tensor * k, struct ggml_tensor * v, bool masked) { GGML_ASSERT(ggml_can_mul_mat(k, q)); // TODO: check if vT can be multiplied by (k*qT) bool is_node = false; if (q->grad || k->grad || v->grad) { is_node = true; } //struct ggml_tensor * result = ggml_dup_tensor(ctx, q); struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, GGML_MAX_DIMS, q->ne); int32_t t = masked ? 1 : 0; ggml_set_op_params(result, &t, sizeof(t)); result->op = GGML_OP_FLASH_ATTN; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = q; result->src[1] = k; result->src[2] = v; return result; }
O1
c
ggml_flash_attn: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq 0x10(%rdx), %rax cmpq 0x10(%rsi), %rax jne 0x94b63 movq %rdx, %r14 movq %rsi, %r15 movq 0x20(%rsi), %rax cqto idivq 0x20(%r14) testq %rdx, %rdx jne 0x94b63 movq 0x28(%r15), %rax cqto idivq 0x28(%r14) testq %rdx, %rdx jne 0x94b63 movq %rcx, %r9 leaq 0x10(%r15), %rcx cmpq $0x0, 0x98(%r15) movq %r9, 0x8(%rsp) jne 0x94ab5 cmpq $0x0, 0x98(%r14) jne 0x94ab5 cmpq $0x0, 0x98(%r9) je 0x94b53 movl %r8d, %ebp movb $0x1, %al movl %eax, 0x4(%rsp) xorl %ebx, %ebx movq %rdi, %r12 xorl %esi, %esi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8e8b7 movq %rax, %r13 movzbl %bpl, %eax leaq 0x14(%rsp), %rsi movl %eax, (%rsi) movl $0x4, %edx movq %r13, %rdi callq 0x91e91 movl $0x36, 0x50(%r13) cmpb $0x0, 0x4(%rsp) je 0x94b20 movl (%r13), %esi movq %r13, %rcx addq $0x10, %rcx movq %r12, %rdi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x8e8b7 movq %rax, %rbx movq %rbx, 0x98(%r13) movq %r15, 0xa0(%r13) movq %r14, 0xa8(%r13) movq 0x8(%rsp), %rax movq %rax, 0xb0(%r13) movq %r13, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %r8d, %ebp movl $0x0, 0x4(%rsp) jmp 0x94abe callq 0xe5fd
ggml_flash_attn: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rax, [rdx+10h] cmp rax, [rsi+10h] jnz loc_94B63 mov r14, rdx mov r15, rsi mov rax, [rsi+20h] cqo idiv qword ptr [r14+20h] test rdx, rdx jnz loc_94B63 mov rax, [r15+28h] cqo idiv qword ptr [r14+28h] test rdx, rdx jnz loc_94B63 mov r9, rcx lea rcx, [r15+10h] cmp qword ptr [r15+98h], 0 mov [rsp+48h+var_40], r9 jnz short loc_94AB5 cmp qword ptr [r14+98h], 0 jnz short loc_94AB5 cmp qword ptr [r9+98h], 0 jz loc_94B53 loc_94AB5: mov ebp, r8d mov al, 1 mov [rsp+48h+var_44], eax loc_94ABE: xor ebx, ebx mov r12, rdi xor esi, esi mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov r13, rax movzx eax, bpl lea rsi, [rsp+48h+var_34] mov [rsi], eax mov edx, 4 mov rdi, r13 call ggml_set_op_params mov dword ptr [r13+50h], 36h ; '6' cmp byte ptr [rsp+48h+var_44], 0 jz short loc_94B20 mov esi, [r13+0] mov rcx, r13 add rcx, 10h mov rdi, r12 mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl mov rbx, rax loc_94B20: mov [r13+98h], rbx mov [r13+0A0h], r15 mov [r13+0A8h], r14 mov rax, [rsp+48h+var_40] mov [r13+0B0h], rax mov rax, r13 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_94B53: mov ebp, r8d mov [rsp+48h+var_44], 0 jmp loc_94ABE loc_94B63: call ggml_flash_attn_cold_1
long long ggml_flash_attn( long long a1, _QWORD *a2, _QWORD *a3, long long a4, unsigned __int8 a5, __m128 a6, __m128 a7) { unsigned __int8 v8; // bp long long v9; // rbx long long v10; // r13 char v12; // [rsp+4h] [rbp-44h] _DWORD v14[13]; // [rsp+14h] [rbp-34h] BYREF if ( a3[2] != a2[2] || (long long)a2[4] % a3[4] || (long long)a2[5] % a3[5] ) ggml_flash_attn_cold_1(); if ( a2[19] || a3[19] || *(_QWORD *)(a4 + 152) ) { v8 = a5; v12 = 1; } else { v8 = a5; v12 = 0; } v9 = 0LL; v10 = ggml_new_tensor_impl(a1, 0, 4, a2 + 2, 0LL, 0LL, a6, a7); v14[0] = v8; ggml_set_op_params(v10, (long long)v14, 4LL); *(_DWORD *)(v10 + 80) = 54; if ( v12 ) v9 = ggml_new_tensor_impl(a1, *(_DWORD *)v10, 4, (_QWORD *)(v10 + 16), 0LL, 0LL, a6, a7); *(_QWORD *)(v10 + 152) = v9; *(_QWORD *)(v10 + 160) = a2; *(_QWORD *)(v10 + 168) = a3; *(_QWORD *)(v10 + 176) = a4; return v10; }
59,756
ggml_flash_attn
7CodeWizard[P]stablediffusion/ggml/src/ggml.c
struct ggml_tensor * ggml_flash_attn( struct ggml_context * ctx, struct ggml_tensor * q, struct ggml_tensor * k, struct ggml_tensor * v, bool masked) { GGML_ASSERT(ggml_can_mul_mat(k, q)); // TODO: check if vT can be multiplied by (k*qT) bool is_node = false; if (q->grad || k->grad || v->grad) { is_node = true; } //struct ggml_tensor * result = ggml_dup_tensor(ctx, q); struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, GGML_MAX_DIMS, q->ne); int32_t t = masked ? 1 : 0; ggml_set_op_params(result, &t, sizeof(t)); result->op = GGML_OP_FLASH_ATTN; result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL; result->src[0] = q; result->src[1] = k; result->src[2] = v; return result; }
O2
c
ggml_flash_attn: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %r12d movq %rcx, %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %r13 movq %rdx, %rdi callq 0x6aff0 testb %al, %al je 0x6e17d cmpq $0x0, 0x98(%r15) movq %rbx, 0x8(%rsp) movq %r14, (%rsp) jne 0x6e0f2 cmpq $0x0, 0x98(%r14) jne 0x6e0f2 cmpq $0x0, 0x98(%rbx) je 0x6e176 movb $0x1, %bpl leaq 0x10(%r15), %rcx xorl %ebx, %ebx pushq $0x4 popq %rdx movq %r13, %rdi xorl %esi, %esi callq 0x6835b movq %r13, %r14 movq %rax, %r13 movzbl %r12b, %eax leaq 0x14(%rsp), %rsi movl %eax, (%rsi) pushq $0x4 popq %rdx movq %r13, %rdi callq 0x6ab3d movl $0x36, 0x50(%r13) testb %bpl, %bpl je 0x6e13f movq %r14, %rdi movq %r13, %rsi callq 0x68a65 movq %rax, %rbx movq %rbx, 0x98(%r13) movq %r15, 0xa0(%r13) movq (%rsp), %rax movq %rax, 0xa8(%r13) movq 0x8(%rsp), %rax movq %rax, 0xb0(%r13) movq %r13, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %ebp, %ebp jmp 0x6e0f5 movq 0x67dc4(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 movq 0x67e15(%rip), %rax # 0xd5fa8 movq (%rax), %rdi leaq 0x2c081(%rip), %rsi # 0x9a21e leaq 0x336da(%rip), %rdx # 0xa187e leaq 0x33ec2(%rip), %r8 # 0xa206d movl $0x15fa, %ecx # imm = 0x15FA xorl %eax, %eax callq 0xa8b0 callq 0x67550 callq 0xa300
ggml_flash_attn: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r12d, r8d mov rbx, rcx mov r14, rdx mov r15, rsi mov r13, rdi mov rdi, rdx call ggml_can_mul_mat test al, al jz loc_6E17D cmp qword ptr [r15+98h], 0 mov [rsp+48h+var_40], rbx mov [rsp+48h+var_48], r14 jnz short loc_6E0F2 cmp qword ptr [r14+98h], 0 jnz short loc_6E0F2 cmp qword ptr [rbx+98h], 0 jz loc_6E176 loc_6E0F2: mov bpl, 1 loc_6E0F5: lea rcx, [r15+10h] xor ebx, ebx push 4 pop rdx mov rdi, r13 xor esi, esi call ggml_new_tensor mov r14, r13 mov r13, rax movzx eax, r12b lea rsi, [rsp+48h+var_34] mov [rsi], eax push 4 pop rdx mov rdi, r13 call ggml_set_op_params mov dword ptr [r13+50h], 36h ; '6' test bpl, bpl jz short loc_6E13F mov rdi, r14 mov rsi, r13 call ggml_dup_tensor mov rbx, rax loc_6E13F: mov [r13+98h], rbx mov [r13+0A0h], r15 mov rax, [rsp+48h+var_48] mov [r13+0A8h], rax mov rax, [rsp+48h+var_40] mov [r13+0B0h], rax mov rax, r13 add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6E176: xor ebp, ebp jmp loc_6E0F5 loc_6E17D: mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush mov rax, cs:stderr_ptr mov rdi, [rax] lea rsi, aGgmlAssertSDS; "GGML_ASSERT: %s:%d: %s\n" lea rdx, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"... lea r8, aGgmlCanMulMatK; "ggml_can_mul_mat(k, q)" mov ecx, 15FAh xor eax, eax call _fprintf call ggml_print_backtrace call _abort
long long ggml_flash_attn(long long a1, _QWORD *a2, _QWORD *a3, long long a4, unsigned __int8 a5) { bool v8; // bp long long v9; // rbx long long v10; // r13 long long v12; // rdi long long v13; // [rsp+8h] [rbp-40h] _DWORD v14[13]; // [rsp+14h] [rbp-34h] BYREF if ( !ggml_can_mul_mat(a3, a2) ) { fflush(stdout); v12 = stderr; fprintf( stderr, "GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c", 5626, "ggml_can_mul_mat(k, q)"); ggml_print_backtrace(); abort(v12); } v13 = a4; v8 = a2[19] || a3[19] || *(_QWORD *)(a4 + 152); v9 = 0LL; v10 = ggml_new_tensor(a1, 0LL, 4LL, (long long)(a2 + 2)); v14[0] = a5; ggml_set_op_params(v10, (long long)v14, 4LL); *(_DWORD *)(v10 + 80) = 54; if ( v8 ) v9 = ggml_dup_tensor(a1, (unsigned int *)v10); *(_QWORD *)(v10 + 152) = v9; *(_QWORD *)(v10 + 160) = a2; *(_QWORD *)(v10 + 168) = a3; *(_QWORD *)(v10 + 176) = v13; return v10; }
ggml_flash_attn: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R12D,R8D MOV RBX,RCX MOV R14,RDX MOV R15,RSI MOV R13,RDI MOV RDI,RDX CALL 0x0016aff0 TEST AL,AL JZ 0x0016e17d CMP qword ptr [R15 + 0x98],0x0 MOV qword ptr [RSP + 0x8],RBX MOV qword ptr [RSP],R14 JNZ 0x0016e0f2 CMP qword ptr [R14 + 0x98],0x0 JNZ 0x0016e0f2 CMP qword ptr [RBX + 0x98],0x0 JZ 0x0016e176 LAB_0016e0f2: MOV BPL,0x1 LAB_0016e0f5: LEA RCX,[R15 + 0x10] XOR EBX,EBX PUSH 0x4 POP RDX MOV RDI,R13 XOR ESI,ESI CALL 0x0016835b MOV R14,R13 MOV R13,RAX MOVZX EAX,R12B LEA RSI,[RSP + 0x14] MOV dword ptr [RSI],EAX PUSH 0x4 POP RDX MOV RDI,R13 CALL 0x0016ab3d MOV dword ptr [R13 + 0x50],0x36 TEST BPL,BPL JZ 0x0016e13f MOV RDI,R14 MOV RSI,R13 CALL 0x00168a65 MOV RBX,RAX LAB_0016e13f: MOV qword ptr [R13 + 0x98],RBX MOV qword ptr [R13 + 0xa0],R15 MOV RAX,qword ptr [RSP] MOV qword ptr [R13 + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [R13 + 0xb0],RAX MOV RAX,R13 ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016e176: XOR EBP,EBP JMP 0x0016e0f5 LAB_0016e17d: MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 MOV RAX,qword ptr [0x001d5fa8] MOV RDI,qword ptr [RAX] LEA RSI,[0x19a21e] LEA RDX,[0x1a187e] LEA R8,[0x1a206d] MOV ECX,0x15fa XOR EAX,EAX CALL 0x0010a8b0 CALL 0x00167550 CALL 0x0010a300
long ggml_flash_attn(int8 param_1,long param_2,long param_3,long param_4,uint param_5) { bool bVar1; char cVar2; long lVar3; int8 uVar4; uint local_34; cVar2 = ggml_can_mul_mat(param_3); if (cVar2 != '\0') { if (((*(long *)(param_2 + 0x98) == 0) && (*(long *)(param_3 + 0x98) == 0)) && (*(long *)(param_4 + 0x98) == 0)) { bVar1 = false; } else { bVar1 = true; } uVar4 = 0; lVar3 = ggml_new_tensor(param_1,0,4,param_2 + 0x10); local_34 = param_5 & 0xff; ggml_set_op_params(lVar3,&local_34,4); *(int4 *)(lVar3 + 0x50) = 0x36; if (bVar1) { uVar4 = ggml_dup_tensor(param_1,lVar3); } *(int8 *)(lVar3 + 0x98) = uVar4; *(long *)(lVar3 + 0xa0) = param_2; *(long *)(lVar3 + 0xa8) = param_3; *(long *)(lVar3 + 0xb0) = param_4; return lVar3; } fflush(*(FILE **)PTR_stdout_001d5f48); fprintf(*(FILE **)PTR_stderr_001d5fa8,"GGML_ASSERT: %s:%d: %s\n", "/workspace/llm4binary/github/2025_star3/7CodeWizard[P]stablediffusion/ggml/src/ggml.c", 0x15fa,"ggml_can_mul_mat(k, q)"); ggml_print_backtrace(); /* WARNING: Subroutine does not return */ abort(); }
59,757
my_coll_lexem_print_error
eloqsql/strings/ctype-uca.c
static void my_coll_lexem_print_error(MY_COLL_LEXEM *lexem, char *errstr, size_t errsize, const char *txt) { char tail[30]; size_t len= lexem->end - lexem->prev; strmake (tail, lexem->prev, (size_t) MY_MIN(len, sizeof(tail)-1)); errstr[errsize-1]= '\0'; my_snprintf(errstr, errsize - 1, "%s at '%s'", txt[0] ? txt : "Syntax error", tail); }
O0
c
my_coll_lexem_print_error: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x38(%rbp) movq %rsi, -0x40(%rbp) movq %rdx, -0x48(%rbp) movq %rcx, -0x50(%rbp) movq -0x38(%rbp), %rax movq 0x10(%rax), %rax movq -0x38(%rbp), %rcx movq 0x18(%rcx), %rcx subq %rcx, %rax movq %rax, -0x58(%rbp) leaq -0x30(%rbp), %rax movq %rax, -0x68(%rbp) movq -0x38(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x60(%rbp) cmpq $0x1d, -0x58(%rbp) jae 0x57454 movq -0x58(%rbp), %rax movq %rax, -0x70(%rbp) jmp 0x5745f movl $0x1d, %eax movq %rax, -0x70(%rbp) jmp 0x5745f movq -0x60(%rbp), %rsi movq -0x68(%rbp), %rdi movq -0x70(%rbp), %rdx callq 0x7fd40 movq -0x40(%rbp), %rax movq -0x48(%rbp), %rcx subq $0x1, %rcx movb $0x0, (%rax,%rcx) movq -0x40(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x48(%rbp), %rax subq $0x1, %rax movq %rax, -0x78(%rbp) movq -0x50(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax je 0x574ad movq -0x50(%rbp), %rax movq %rax, -0x88(%rbp) jmp 0x574bd leaq 0x2e8aa(%rip), %rax # 0x85d5e movq %rax, -0x88(%rbp) jmp 0x574bd movq -0x78(%rbp), %rsi movq -0x80(%rbp), %rdi movq -0x88(%rbp), %rcx leaq 0x2e880(%rip), %rdx # 0x85d53 xorl %eax, %eax leaq -0x30(%rbp), %r8 callq 0x7f1b0 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x574f9 addq $0x90, %rsp popq %rbp retq callq 0x25330 nop
my_coll_lexem_print_error: push rbp mov rbp, rsp sub rsp, 90h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_38], rdi mov [rbp+var_40], rsi mov [rbp+var_48], rdx mov [rbp+var_50], rcx mov rax, [rbp+var_38] mov rax, [rax+10h] mov rcx, [rbp+var_38] mov rcx, [rcx+18h] sub rax, rcx mov [rbp+var_58], rax lea rax, [rbp+var_30] mov [rbp+var_68], rax mov rax, [rbp+var_38] mov rax, [rax+18h] mov [rbp+var_60], rax cmp [rbp+var_58], 1Dh jnb short loc_57454 mov rax, [rbp+var_58] mov [rbp+var_70], rax jmp short loc_5745F loc_57454: mov eax, 1Dh mov [rbp+var_70], rax jmp short $+2 loc_5745F: mov rsi, [rbp+var_60] mov rdi, [rbp+var_68] mov rdx, [rbp+var_70] call strmake mov rax, [rbp+var_40] mov rcx, [rbp+var_48] sub rcx, 1 mov byte ptr [rax+rcx], 0 mov rax, [rbp+var_40] mov [rbp+var_80], rax mov rax, [rbp+var_48] sub rax, 1 mov [rbp+var_78], rax mov rax, [rbp+var_50] movsx eax, byte ptr [rax] cmp eax, 0 jz short loc_574AD mov rax, [rbp+var_50] mov [rbp+var_88], rax jmp short loc_574BD loc_574AD: lea rax, aSyntaxError; "Syntax error" mov [rbp+var_88], rax jmp short $+2 loc_574BD: mov rsi, [rbp+var_78] mov rdi, [rbp+var_80] mov rcx, [rbp+var_88] lea rdx, aSAtS; "%s at '%s'" xor eax, eax lea r8, [rbp+var_30] call my_snprintf mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_574F9 add rsp, 90h pop rbp retn loc_574F9: call ___stack_chk_fail
unsigned long long my_coll_lexem_print_error(long long a1, long long a2, long long a3, _BYTE *a4) { int v4; // r9d int v6; // [rsp+18h] [rbp-78h] long long v7; // [rsp+30h] [rbp-60h] unsigned long long v8; // [rsp+38h] [rbp-58h] _BYTE v11[40]; // [rsp+60h] [rbp-30h] BYREF unsigned long long v12; // [rsp+88h] [rbp-8h] v12 = __readfsqword(0x28u); v8 = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 24); v7 = *(_QWORD *)(a1 + 24); if ( v8 >= 0x1D ) strmake(v11, v7, 29LL); else strmake(v11, v7, v8); *(_BYTE *)(a2 + a3 - 1) = 0; v6 = a3 - 1; if ( *a4 ) my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (_DWORD)a4, (unsigned int)v11, v4); else my_snprintf(a2, v6, (unsigned int)"%s at '%s'", (unsigned int)"Syntax error", (unsigned int)v11, v4); return __readfsqword(0x28u); }
my_coll_lexem_print_error: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x38],RDI MOV qword ptr [RBP + -0x40],RSI MOV qword ptr [RBP + -0x48],RDX MOV qword ptr [RBP + -0x50],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX + 0x18] SUB RAX,RCX MOV qword ptr [RBP + -0x58],RAX LEA RAX,[RBP + -0x30] MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x60],RAX CMP qword ptr [RBP + -0x58],0x1d JNC 0x00157454 MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x70],RAX JMP 0x0015745f LAB_00157454: MOV EAX,0x1d MOV qword ptr [RBP + -0x70],RAX JMP 0x0015745f LAB_0015745f: MOV RSI,qword ptr [RBP + -0x60] MOV RDI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x70] CALL 0x0017fd40 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x48] SUB RCX,0x1 MOV byte ptr [RAX + RCX*0x1],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x80],RAX MOV RAX,qword ptr [RBP + -0x48] SUB RAX,0x1 MOV qword ptr [RBP + -0x78],RAX MOV RAX,qword ptr [RBP + -0x50] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x001574ad MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x88],RAX JMP 0x001574bd LAB_001574ad: LEA RAX,[0x185d5e] MOV qword ptr [RBP + -0x88],RAX JMP 0x001574bd LAB_001574bd: MOV RSI,qword ptr [RBP + -0x78] MOV RDI,qword ptr [RBP + -0x80] MOV RCX,qword ptr [RBP + -0x88] LEA RDX,[0x185d53] XOR EAX,EAX LEA R8,[RBP + -0x30] CALL 0x0017f1b0 MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001574f9 ADD RSP,0x90 POP RBP RET LAB_001574f9: CALL 0x00125330
void my_coll_lexem_print_error(long param_1,long param_2,long param_3,char *param_4) { long in_FS_OFFSET; char *local_90; ulong local_78; int1 local_38 [40]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_78 = *(long *)(param_1 + 0x10) - *(long *)(param_1 + 0x18); if (0x1c < local_78) { local_78 = 0x1d; } strmake(local_38,*(int8 *)(param_1 + 0x18),local_78); *(int1 *)(param_2 + param_3 + -1) = 0; local_90 = param_4; if (*param_4 == '\0') { local_90 = "Syntax error"; } my_snprintf(param_2,param_3 + -1,"%s at \'%s\'",local_90,local_38); if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return; }
59,758
tree_delete
eloqsql/mysys/tree.c
int tree_delete(TREE *tree, void *key, uint key_size, void *custom_arg) { int cmp,remove_colour; TREE_ELEMENT *element,***parent, ***org_parent, *nod; if (!tree->with_delete) return 1; /* not allowed */ parent= tree->parents; *parent= &tree->root; element= tree->root; for (;;) { if (element == &null_element) return 1; /* Was not in tree */ if ((cmp = (*tree->compare)(custom_arg, ELEMENT_KEY(tree,element), key)) == 0) break; if (cmp < 0) { *++parent= &element->right; element= element->right; } else { *++parent = &element->left; element= element->left; } } if (element->left == &null_element) { (**parent)=element->right; remove_colour= element->colour; } else if (element->right == &null_element) { (**parent)=element->left; remove_colour= element->colour; } else { org_parent= parent; *++parent= &element->right; nod= element->right; while (nod->left != &null_element) { *++parent= &nod->left; nod= nod->left; } (**parent)=nod->right; /* unlink nod from tree */ remove_colour= nod->colour; org_parent[0][0]=nod; /* put y in place of element */ org_parent[1]= &nod->right; nod->left=element->left; nod->right=element->right; nod->colour=element->colour; } if (remove_colour == BLACK) rb_delete_fixup(tree,parent); if (tree->free) (*tree->free)(ELEMENT_KEY(tree,element), free_free, tree->custom_arg); tree->allocated-= sizeof(TREE_ELEMENT) + tree->size_of_element + key_size; my_free(element); tree->elements_in_tree--; return 0; }
O0
c
tree_delete: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, 0x278(%rax) jne 0xfaf73 movl $0x1, -0x4(%rbp) jmp 0xfb279 movq -0x10(%rbp), %rax addq $0x8, %rax movq %rax, -0x40(%rbp) movq -0x10(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) leaq 0x1c4e44(%rip), %rax # 0x2bfde0 cmpq %rax, -0x38(%rbp) jne 0xfafae movl $0x1, -0x4(%rbp) jmp 0xfb279 movq -0x10(%rbp), %rax movq 0x228(%rax), %rax movq %rax, -0x60(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x208(%rax) je 0xfafe9 movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x208(%rcx), %ecx addq %rcx, %rax movq %rax, -0x68(%rbp) jmp 0xfaff5 movq -0x38(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rax movq -0x58(%rbp), %rdi movq -0x68(%rbp), %rsi movq -0x18(%rbp), %rdx callq *%rax movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0xfb011 jmp 0xfb067 cmpl $0x0, -0x2c(%rbp) jge 0xfb040 movq -0x38(%rbp), %rcx addq $0x8, %rcx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, -0x40(%rbp) movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x38(%rbp) jmp 0xfb062 movq -0x38(%rbp), %rcx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, -0x40(%rbp) movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0xfaf95 movq -0x38(%rbp), %rax leaq 0x1c4d6e(%rip), %rcx # 0x2bfde0 cmpq %rcx, (%rax) jne 0xfb09b movq -0x38(%rbp), %rax movq 0x8(%rax), %rcx movq -0x40(%rbp), %rax movq (%rax), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %eax shrl $0x1f, %eax movl %eax, -0x30(%rbp) jmp 0xfb1b1 movq -0x38(%rbp), %rax leaq 0x1c4d3a(%rip), %rcx # 0x2bfde0 cmpq %rcx, 0x8(%rax) jne 0xfb0cf movq -0x38(%rbp), %rax movq (%rax), %rcx movq -0x40(%rbp), %rax movq (%rax), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %eax shrl $0x1f, %eax movl %eax, -0x30(%rbp) jmp 0xfb1af movq -0x40(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x38(%rbp), %rcx addq $0x8, %rcx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, -0x40(%rbp) movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax leaq 0x1c4cd7(%rip), %rcx # 0x2bfde0 cmpq %rcx, (%rax) je 0xfb132 movq -0x50(%rbp), %rcx movq -0x40(%rbp), %rax movq %rax, %rdx addq $0x8, %rdx movq %rdx, -0x40(%rbp) movq %rcx, 0x8(%rax) movq -0x50(%rbp), %rax movq (%rax), %rax movq %rax, -0x50(%rbp) jmp 0xfb0fe movq -0x50(%rbp), %rax movq 0x8(%rax), %rcx movq -0x40(%rbp), %rax movq (%rax), %rax movq %rcx, (%rax) movq -0x50(%rbp), %rax movl 0x10(%rax), %eax shrl $0x1f, %eax movl %eax, -0x30(%rbp) movq -0x50(%rbp), %rcx movq -0x48(%rbp), %rax movq (%rax), %rax movq %rcx, (%rax) movq -0x50(%rbp), %rcx addq $0x8, %rcx movq -0x48(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rax movq (%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movq 0x8(%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %edx shrl $0x1f, %edx movq -0x50(%rbp), %rax movl 0x10(%rax), %ecx andl $0x1, %edx shll $0x1f, %edx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF orl %edx, %ecx movl %ecx, 0x10(%rax) jmp 0xfb1b1 cmpl $0x1, -0x30(%rbp) jne 0xfb1c4 movq -0x10(%rbp), %rdi movq -0x40(%rbp), %rsi callq 0xfb290 movq -0x10(%rbp), %rax cmpq $0x0, 0x280(%rax) je 0xfb22b movq -0x10(%rbp), %rax movq 0x280(%rax), %rax movq %rax, -0x70(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x208(%rax) je 0xfb205 movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x208(%rcx), %ecx addq %rcx, %rax movq %rax, -0x78(%rbp) jmp 0xfb211 movq -0x38(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x78(%rbp) movq -0x70(%rbp), %rax movq -0x78(%rbp), %rdi movq -0x10(%rbp), %rcx movq 0x230(%rcx), %rdx movl $0x1, %esi callq *%rax movq -0x10(%rbp), %rax movl 0x210(%rax), %eax movl %eax, %edx addq $0x18, %rdx movl -0x1c(%rbp), %eax addq %rax, %rdx movq -0x10(%rbp), %rax movq 0x220(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x220(%rax) movq -0x38(%rbp), %rdi callq 0xf3da0 movq -0x10(%rbp), %rax movl 0x20c(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x20c(%rax) movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
tree_delete: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov rax, [rbp+var_10] cmp byte ptr [rax+278h], 0 jnz short loc_FAF73 mov [rbp+var_4], 1 jmp loc_FB279 loc_FAF73: mov rax, [rbp+var_10] add rax, 8 mov [rbp+var_40], rax mov rcx, [rbp+var_10] mov rax, [rbp+var_40] mov [rax], rcx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_38], rax loc_FAF95: lea rax, null_element cmp [rbp+var_38], rax jnz short loc_FAFAE mov [rbp+var_4], 1 jmp loc_FB279 loc_FAFAE: mov rax, [rbp+var_10] mov rax, [rax+228h] mov [rbp+var_60], rax mov rax, [rbp+var_28] mov [rbp+var_58], rax mov rax, [rbp+var_10] cmp dword ptr [rax+208h], 0 jz short loc_FAFE9 mov rax, [rbp+var_38] mov rcx, [rbp+var_10] mov ecx, [rcx+208h] add rax, rcx mov [rbp+var_68], rax jmp short loc_FAFF5 loc_FAFE9: mov rax, [rbp+var_38] mov rax, [rax+18h] mov [rbp+var_68], rax loc_FAFF5: mov rax, [rbp+var_60] mov rdi, [rbp+var_58] mov rsi, [rbp+var_68] mov rdx, [rbp+var_18] call rax mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_FB011 jmp short loc_FB067 loc_FB011: cmp [rbp+var_2C], 0 jge short loc_FB040 mov rcx, [rbp+var_38] add rcx, 8 mov rax, [rbp+var_40] mov rdx, rax add rdx, 8 mov [rbp+var_40], rdx mov [rax+8], rcx mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_38], rax jmp short loc_FB062 loc_FB040: mov rcx, [rbp+var_38] mov rax, [rbp+var_40] mov rdx, rax add rdx, 8 mov [rbp+var_40], rdx mov [rax+8], rcx mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_38], rax loc_FB062: jmp loc_FAF95 loc_FB067: mov rax, [rbp+var_38] lea rcx, null_element cmp [rax], rcx jnz short loc_FB09B mov rax, [rbp+var_38] mov rcx, [rax+8] mov rax, [rbp+var_40] mov rax, [rax] mov [rax], rcx mov rax, [rbp+var_38] mov eax, [rax+10h] shr eax, 1Fh mov [rbp+var_30], eax jmp loc_FB1B1 loc_FB09B: mov rax, [rbp+var_38] lea rcx, null_element cmp [rax+8], rcx jnz short loc_FB0CF mov rax, [rbp+var_38] mov rcx, [rax] mov rax, [rbp+var_40] mov rax, [rax] mov [rax], rcx mov rax, [rbp+var_38] mov eax, [rax+10h] shr eax, 1Fh mov [rbp+var_30], eax jmp loc_FB1AF loc_FB0CF: mov rax, [rbp+var_40] mov [rbp+var_48], rax mov rcx, [rbp+var_38] add rcx, 8 mov rax, [rbp+var_40] mov rdx, rax add rdx, 8 mov [rbp+var_40], rdx mov [rax+8], rcx mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_50], rax loc_FB0FE: mov rax, [rbp+var_50] lea rcx, null_element cmp [rax], rcx jz short loc_FB132 mov rcx, [rbp+var_50] mov rax, [rbp+var_40] mov rdx, rax add rdx, 8 mov [rbp+var_40], rdx mov [rax+8], rcx mov rax, [rbp+var_50] mov rax, [rax] mov [rbp+var_50], rax jmp short loc_FB0FE loc_FB132: mov rax, [rbp+var_50] mov rcx, [rax+8] mov rax, [rbp+var_40] mov rax, [rax] mov [rax], rcx mov rax, [rbp+var_50] mov eax, [rax+10h] shr eax, 1Fh mov [rbp+var_30], eax mov rcx, [rbp+var_50] mov rax, [rbp+var_48] mov rax, [rax] mov [rax], rcx mov rcx, [rbp+var_50] add rcx, 8 mov rax, [rbp+var_48] mov [rax+8], rcx mov rax, [rbp+var_38] mov rcx, [rax] mov rax, [rbp+var_50] mov [rax], rcx mov rax, [rbp+var_38] mov rcx, [rax+8] mov rax, [rbp+var_50] mov [rax+8], rcx mov rax, [rbp+var_38] mov edx, [rax+10h] shr edx, 1Fh mov rax, [rbp+var_50] mov ecx, [rax+10h] and edx, 1 shl edx, 1Fh and ecx, 7FFFFFFFh or ecx, edx mov [rax+10h], ecx loc_FB1AF: jmp short $+2 loc_FB1B1: cmp [rbp+var_30], 1 jnz short loc_FB1C4 mov rdi, [rbp+var_10] mov rsi, [rbp+var_40] call rb_delete_fixup loc_FB1C4: mov rax, [rbp+var_10] cmp qword ptr [rax+280h], 0 jz short loc_FB22B mov rax, [rbp+var_10] mov rax, [rax+280h] mov [rbp+var_70], rax mov rax, [rbp+var_10] cmp dword ptr [rax+208h], 0 jz short loc_FB205 mov rax, [rbp+var_38] mov rcx, [rbp+var_10] mov ecx, [rcx+208h] add rax, rcx mov [rbp+var_78], rax jmp short loc_FB211 loc_FB205: mov rax, [rbp+var_38] mov rax, [rax+18h] mov [rbp+var_78], rax loc_FB211: mov rax, [rbp+var_70] mov rdi, [rbp+var_78] mov rcx, [rbp+var_10] mov rdx, [rcx+230h] mov esi, 1 call rax loc_FB22B: mov rax, [rbp+var_10] mov eax, [rax+210h] mov edx, eax add rdx, 18h mov eax, [rbp+var_1C] add rdx, rax mov rax, [rbp+var_10] mov rcx, [rax+220h] sub rcx, rdx mov [rax+220h], rcx mov rdi, [rbp+var_38] call my_free mov rax, [rbp+var_10] mov ecx, [rax+20Ch] add ecx, 0FFFFFFFFh mov [rax+20Ch], ecx mov [rbp+var_4], 0 loc_FB279: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long tree_delete(long long a1, long long a2, unsigned int a3, long long a4) { int v4; // eax _QWORD **v5; // rax _QWORD **v6; // rax _QWORD **v7; // rax _QWORD **v8; // rax void ( *v10)(long long, long long, _QWORD); // [rsp+10h] [rbp-70h] long long ( *v11)(long long, long long, long long); // [rsp+20h] [rbp-60h] _QWORD *i; // [rsp+30h] [rbp-50h] _QWORD **v13; // [rsp+38h] [rbp-48h] _QWORD **v14; // [rsp+40h] [rbp-40h] long long v15; // [rsp+48h] [rbp-38h] int v16; // [rsp+50h] [rbp-30h] if ( *(_BYTE *)(a1 + 632) ) { v14 = (_QWORD **)(a1 + 8); *(_QWORD *)(a1 + 8) = a1; v15 = *(_QWORD *)a1; while ( 1 ) { if ( (_UNKNOWN *)v15 == &null_element ) return 1; v11 = *(long long ( **)(long long, long long, long long))(a1 + 552); v4 = *(_DWORD *)(a1 + 520) ? v11(a4, *(unsigned int *)(a1 + 520) + v15, a2) : v11(a4, *(_QWORD *)(v15 + 24), a2); if ( !v4 ) break; if ( v4 >= 0 ) { v6 = v14++; v6[1] = (_QWORD *)v15; v15 = *(_QWORD *)v15; } else { v5 = v14++; v5[1] = (_QWORD *)(v15 + 8); v15 = *(_QWORD *)(v15 + 8); } } if ( *(_UNKNOWN **)v15 == &null_element ) { **v14 = *(_QWORD *)(v15 + 8); v16 = *(_DWORD *)(v15 + 16) >> 31; } else if ( *(_UNKNOWN **)(v15 + 8) == &null_element ) { **v14 = *(_QWORD *)v15; v16 = *(_DWORD *)(v15 + 16) >> 31; } else { v13 = v14; v7 = v14++; v7[1] = (_QWORD *)(v15 + 8); for ( i = *(_QWORD **)(v15 + 8); (_UNKNOWN *)*i != &null_element; i = (_QWORD *)*i ) { v8 = v14++; v8[1] = i; } **v14 = i[1]; v16 = *((_DWORD *)i + 4) >> 31; **v13 = i; v13[1] = i + 1; *i = *(_QWORD *)v15; i[1] = *(_QWORD *)(v15 + 8); *((_DWORD *)i + 4) = (*(_DWORD *)(v15 + 16) >> 31 << 31) | i[2] & 0x7FFFFFFF; } if ( v16 == 1 ) rb_delete_fixup(a1, v14); if ( *(_QWORD *)(a1 + 640) ) { v10 = *(void ( **)(long long, long long, _QWORD))(a1 + 640); if ( *(_DWORD *)(a1 + 520) ) v10(*(unsigned int *)(a1 + 520) + v15, 1LL, *(_QWORD *)(a1 + 560)); else v10(*(_QWORD *)(v15 + 24), 1LL, *(_QWORD *)(a1 + 560)); } *(_QWORD *)(a1 + 544) -= a3 + *(unsigned int *)(a1 + 528) + 24LL; my_free(v15); --*(_DWORD *)(a1 + 524); return 0; } else { return 1; } }
tree_delete: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x278],0x0 JNZ 0x001faf73 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001fb279 LAB_001faf73: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x8 MOV qword ptr [RBP + -0x40],RAX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_001faf95: LEA RAX,[0x3bfde0] CMP qword ptr [RBP + -0x38],RAX JNZ 0x001fafae MOV dword ptr [RBP + -0x4],0x1 JMP 0x001fb279 LAB_001fafae: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x228] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x208],0x0 JZ 0x001fafe9 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x208] ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX JMP 0x001faff5 LAB_001fafe9: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x68],RAX LAB_001faff5: MOV RAX,qword ptr [RBP + -0x60] MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x18] CALL RAX MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x001fb011 JMP 0x001fb067 LAB_001fb011: CMP dword ptr [RBP + -0x2c],0x0 JGE 0x001fb040 MOV RCX,qword ptr [RBP + -0x38] ADD RCX,0x8 MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x38],RAX JMP 0x001fb062 LAB_001fb040: MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_001fb062: JMP 0x001faf95 LAB_001fb067: MOV RAX,qword ptr [RBP + -0x38] LEA RCX,[0x3bfde0] CMP qword ptr [RAX],RCX JNZ 0x001fb09b MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f MOV dword ptr [RBP + -0x30],EAX JMP 0x001fb1b1 LAB_001fb09b: MOV RAX,qword ptr [RBP + -0x38] LEA RCX,[0x3bfde0] CMP qword ptr [RAX + 0x8],RCX JNZ 0x001fb0cf MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f MOV dword ptr [RBP + -0x30],EAX JMP 0x001fb1af LAB_001fb0cf: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x48],RAX MOV RCX,qword ptr [RBP + -0x38] ADD RCX,0x8 MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x50],RAX LAB_001fb0fe: MOV RAX,qword ptr [RBP + -0x50] LEA RCX,[0x3bfde0] CMP qword ptr [RAX],RCX JZ 0x001fb132 MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] MOV RDX,RAX ADD RDX,0x8 MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x50],RAX JMP 0x001fb0fe LAB_001fb132: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RAX + 0x10] SHR EAX,0x1f MOV dword ptr [RBP + -0x30],EAX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x50] ADD RCX,0x8 MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x38] MOV EDX,dword ptr [RAX + 0x10] SHR EDX,0x1f MOV RAX,qword ptr [RBP + -0x50] MOV ECX,dword ptr [RAX + 0x10] AND EDX,0x1 SHL EDX,0x1f AND ECX,0x7fffffff OR ECX,EDX MOV dword ptr [RAX + 0x10],ECX LAB_001fb1af: JMP 0x001fb1b1 LAB_001fb1b1: CMP dword ptr [RBP + -0x30],0x1 JNZ 0x001fb1c4 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x40] CALL 0x001fb290 LAB_001fb1c4: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x280],0x0 JZ 0x001fb22b MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x280] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x208],0x0 JZ 0x001fb205 MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x208] ADD RAX,RCX MOV qword ptr [RBP + -0x78],RAX JMP 0x001fb211 LAB_001fb205: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x78],RAX LAB_001fb211: MOV RAX,qword ptr [RBP + -0x70] MOV RDI,qword ptr [RBP + -0x78] MOV RCX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RCX + 0x230] MOV ESI,0x1 CALL RAX LAB_001fb22b: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x210] MOV EDX,EAX ADD RDX,0x18 MOV EAX,dword ptr [RBP + -0x1c] ADD RDX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x220] SUB RCX,RDX MOV qword ptr [RAX + 0x220],RCX MOV RDI,qword ptr [RBP + -0x38] CALL 0x001f3da0 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x20c] ADD ECX,-0x1 MOV dword ptr [RAX + 0x20c],ECX MOV dword ptr [RBP + -0x4],0x0 LAB_001fb279: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int4 tree_delete(int8 *param_1,int8 param_2,uint param_3,int8 param_4) { int8 *puVar1; int8 *puVar2; int iVar3; long local_80; long local_70; long *local_58; int8 *local_48; long *local_40; if (*(char *)(param_1 + 0x4f) != '\0') { local_48 = param_1 + 1; *local_48 = param_1; local_40 = (long *)*param_1; while (puVar2 = local_48, local_40 != (long *)null_element) { if (*(int *)(param_1 + 0x41) == 0) { local_70 = local_40[3]; } else { local_70 = (long)local_40 + (ulong)*(uint *)(param_1 + 0x41); } iVar3 = (*(code *)param_1[0x45])(param_4,local_70,param_2); if (iVar3 == 0) { if ((int1 *)*local_40 == null_element) { *(long *)*local_48 = local_40[1]; iVar3 = (int)local_40[2]; } else if ((int1 *)local_40[1] == null_element) { *(long *)*local_48 = *local_40; iVar3 = (int)local_40[2]; } else { local_48[1] = local_40 + 1; puVar1 = local_48; for (local_58 = (long *)local_40[1]; local_48 = puVar1 + 1, (int1 *)*local_58 != null_element; local_58 = (long *)*local_58) { puVar1[2] = local_58; puVar1 = local_48; } *(long *)*local_48 = local_58[1]; iVar3 = (int)local_58[2]; *(long **)*puVar2 = local_58; puVar2[1] = local_58 + 1; *local_58 = *local_40; local_58[1] = local_40[1]; *(uint *)(local_58 + 2) = *(uint *)(local_58 + 2) & 0x7fffffff | *(uint *)(local_40 + 2) & 0x80000000; } if (iVar3 < 0) { rb_delete_fixup(param_1,local_48); } if (param_1[0x50] != 0) { if (*(int *)(param_1 + 0x41) == 0) { local_80 = local_40[3]; } else { local_80 = (long)local_40 + (ulong)*(uint *)(param_1 + 0x41); } (*(code *)param_1[0x50])(local_80,1,param_1[0x46]); } param_1[0x44] = param_1[0x44] - ((ulong)*(uint *)(param_1 + 0x42) + 0x18 + (ulong)param_3); my_free(local_40); *(int *)((long)param_1 + 0x20c) = *(int *)((long)param_1 + 0x20c) + -1; return 0; } if (iVar3 < 0) { local_48[1] = local_40 + 1; local_40 = (long *)local_40[1]; } else { local_48[1] = local_40; local_40 = (long *)*local_40; } local_48 = local_48 + 1; } } return 1; }
59,759
skip_trailing_space
eloqsql/strings/strings_def.h
static inline const uchar *skip_trailing_space(const uchar *ptr,size_t len) { const uchar *end= ptr + len; if (len > 20) { const uchar *end_words= (const uchar *)(intptr) (((ulonglong)(intptr)end) / SIZEOF_INT * SIZEOF_INT); const uchar *start_words= (const uchar *)(intptr) ((((ulonglong)(intptr)ptr) + SIZEOF_INT - 1) / SIZEOF_INT * SIZEOF_INT); DBUG_ASSERT(((ulonglong)(intptr)ptr) >= SIZEOF_INT); if (end_words > ptr) { while (end > end_words && end[-1] == 0x20) end--; if (end[-1] == 0x20 && start_words < end_words) while (end > start_words && ((unsigned *)end)[-1] == SPACE_INT) end -= SIZEOF_INT; } } while (end > ptr && end[-1] == 0x20) end--; return (end); }
O0
c
skip_trailing_space: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x18(%rbp) cmpq $0x14, -0x10(%rbp) jbe 0x90f0a movq -0x18(%rbp), %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax addq $0x4, %rax subq $0x1, %rax shrq $0x2, %rax shlq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x90e6d movq -0x20(%rbp), %rax cmpq -0x8(%rbp), %rax jbe 0x90f08 jmp 0x90e7d movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x20(%rbp), %rcx movb %al, -0x29(%rbp) jbe 0x90e9d movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x29(%rbp) movb -0x29(%rbp), %al testb $0x1, %al jne 0x90ea6 jmp 0x90eb4 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0x90e7d movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax jne 0x90f06 movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x90f06 jmp 0x90ecd movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x28(%rbp), %rcx movb %al, -0x2a(%rbp) jbe 0x90eed movq -0x18(%rbp), %rax cmpl $0x20202020, -0x4(%rax) # imm = 0x20202020 sete %al movb %al, -0x2a(%rbp) movb -0x2a(%rbp), %al testb $0x1, %al jne 0x90ef6 jmp 0x90f04 movq -0x18(%rbp), %rax addq $-0x4, %rax movq %rax, -0x18(%rbp) jmp 0x90ecd jmp 0x90f06 jmp 0x90f08 jmp 0x90f0a jmp 0x90f0c movq -0x18(%rbp), %rcx xorl %eax, %eax cmpq -0x8(%rbp), %rcx movb %al, -0x2b(%rbp) jbe 0x90f2c movq -0x18(%rbp), %rax movzbl -0x1(%rax), %eax cmpl $0x20, %eax sete %al movb %al, -0x2b(%rbp) movb -0x2b(%rbp), %al testb $0x1, %al jne 0x90f35 jmp 0x90f43 movq -0x18(%rbp), %rax addq $-0x1, %rax movq %rax, -0x18(%rbp) jmp 0x90f0c movq -0x18(%rbp), %rax popq %rbp retq nopl (%rax)
skip_trailing_space_1: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] add rax, [rbp+var_10] mov [rbp+var_18], rax cmp [rbp+var_10], 14h jbe loc_90F0A mov rax, [rbp+var_18] shr rax, 2 shl rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_8] add rax, 4 sub rax, 1 shr rax, 2 shl rax, 2 mov [rbp+var_28], rax jmp short $+2 loc_90E6D: mov rax, [rbp+var_20] cmp rax, [rbp+var_8] jbe loc_90F08 jmp short $+2 loc_90E7D: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_20] mov [rbp+var_29], al jbe short loc_90E9D mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_29], al loc_90E9D: mov al, [rbp+var_29] test al, 1 jnz short loc_90EA6 jmp short loc_90EB4 loc_90EA6: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_90E7D loc_90EB4: mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' jnz short loc_90F06 mov rax, [rbp+var_28] cmp rax, [rbp+var_20] jnb short loc_90F06 jmp short $+2 loc_90ECD: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_28] mov [rbp+var_2A], al jbe short loc_90EED mov rax, [rbp+var_18] cmp dword ptr [rax-4], 20202020h setz al mov [rbp+var_2A], al loc_90EED: mov al, [rbp+var_2A] test al, 1 jnz short loc_90EF6 jmp short loc_90F04 loc_90EF6: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFCh mov [rbp+var_18], rax jmp short loc_90ECD loc_90F04: jmp short $+2 loc_90F06: jmp short $+2 loc_90F08: jmp short $+2 loc_90F0A: jmp short $+2 loc_90F0C: mov rcx, [rbp+var_18] xor eax, eax cmp rcx, [rbp+var_8] mov [rbp+var_2B], al jbe short loc_90F2C mov rax, [rbp+var_18] movzx eax, byte ptr [rax-1] cmp eax, 20h ; ' ' setz al mov [rbp+var_2B], al loc_90F2C: mov al, [rbp+var_2B] test al, 1 jnz short loc_90F35 jmp short loc_90F43 loc_90F35: mov rax, [rbp+var_18] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_18], rax jmp short loc_90F0C loc_90F43: mov rax, [rbp+var_18] pop rbp retn
unsigned long long skip_trailing_space_1(unsigned long long a1, unsigned long long a2) { bool v3; // [rsp+1h] [rbp-2Bh] bool v4; // [rsp+2h] [rbp-2Ah] bool v5; // [rsp+3h] [rbp-29h] unsigned long long v6; // [rsp+4h] [rbp-28h] unsigned long long v7; // [rsp+Ch] [rbp-20h] unsigned long long v8; // [rsp+14h] [rbp-18h] v8 = a2 + a1; if ( a2 > 0x14 ) { v7 = 4 * (v8 >> 2); v6 = 4 * ((a1 + 3) >> 2); if ( v7 > a1 ) { while ( 1 ) { v5 = 0; if ( v8 > v7 ) v5 = *(_BYTE *)(v8 - 1) == 32; if ( !v5 ) break; --v8; } if ( *(_BYTE *)(v8 - 1) == 32 && v6 < v7 ) { while ( 1 ) { v4 = 0; if ( v8 > v6 ) v4 = *(_DWORD *)(v8 - 4) == 538976288; if ( !v4 ) break; v8 -= 4LL; } } } } while ( 1 ) { v3 = 0; if ( v8 > a1 ) v3 = *(_BYTE *)(v8 - 1) == 32; if ( !v3 ) break; --v8; } return v8; }
skip_trailing_space: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] ADD RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x10],0x14 JBE 0x00190f0a MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x4 SUB RAX,0x1 SHR RAX,0x2 SHL RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x00190e6d LAB_00190e6d: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x8] JBE 0x00190f08 JMP 0x00190e7d LAB_00190e7d: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x20] MOV byte ptr [RBP + -0x29],AL JBE 0x00190e9d MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x29],AL LAB_00190e9d: MOV AL,byte ptr [RBP + -0x29] TEST AL,0x1 JNZ 0x00190ea6 JMP 0x00190eb4 LAB_00190ea6: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x00190e7d LAB_00190eb4: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 JNZ 0x00190f06 MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x20] JNC 0x00190f06 JMP 0x00190ecd LAB_00190ecd: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x28] MOV byte ptr [RBP + -0x2a],AL JBE 0x00190eed MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + -0x4],0x20202020 SETZ AL MOV byte ptr [RBP + -0x2a],AL LAB_00190eed: MOV AL,byte ptr [RBP + -0x2a] TEST AL,0x1 JNZ 0x00190ef6 JMP 0x00190f04 LAB_00190ef6: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x4 MOV qword ptr [RBP + -0x18],RAX JMP 0x00190ecd LAB_00190f04: JMP 0x00190f06 LAB_00190f06: JMP 0x00190f08 LAB_00190f08: JMP 0x00190f0a LAB_00190f0a: JMP 0x00190f0c LAB_00190f0c: MOV RCX,qword ptr [RBP + -0x18] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x8] MOV byte ptr [RBP + -0x2b],AL JBE 0x00190f2c MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,byte ptr [RAX + -0x1] CMP EAX,0x20 SETZ AL MOV byte ptr [RBP + -0x2b],AL LAB_00190f2c: MOV AL,byte ptr [RBP + -0x2b] TEST AL,0x1 JNZ 0x00190f35 JMP 0x00190f43 LAB_00190f35: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,-0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x00190f0c LAB_00190f43: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
ulong skip_trailing_space(ulong param_1,ulong param_2) { ulong uVar1; ulong uVar2; bool bVar3; ulong local_20; local_20 = param_1 + param_2; if (0x14 < param_2) { uVar1 = local_20 & 0xfffffffffffffffc; uVar2 = param_1 + 3 & 0xfffffffffffffffc; if (param_1 < uVar1) { while( true ) { bVar3 = false; if (uVar1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } if ((*(char *)(local_20 - 1) == ' ') && (uVar2 < uVar1)) { while( true ) { bVar3 = false; if (uVar2 < local_20) { bVar3 = *(int *)(local_20 - 4) == 0x20202020; } if (!bVar3) break; local_20 = local_20 - 4; } } } } while( true ) { bVar3 = false; if (param_1 < local_20) { bVar3 = *(char *)(local_20 - 1) == ' '; } if (!bVar3) break; local_20 = local_20 - 1; } return local_20; }
59,760
testing::internal::PrintTo(char32_t const*, std::ostream*)
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-printers.cc
void PrintTo(const char32_t* s, ostream* os) { PrintCStringTo(s, os); }
O1
cpp
testing::internal::PrintTo(char32_t const*, std::ostream*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx testq %rdi, %rdi je 0x1c129 movq %rdi, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x93a0 leaq 0x28871(%rip), %rsi # 0x44968 movl $0xd, %edx movq %rax, %rdi callq 0x95a0 movq $-0x1, %rsi cmpl $0x0, 0x4(%r14,%rsi,4) leaq 0x1(%rsi), %rsi jne 0x1c10b movq %r14, %rdi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1c5bf leaq 0x2466c(%rip), %rsi # 0x4079c movl $0x4, %edx movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x95a0
_ZN7testing8internal7PrintToEPKDiPSo: push r14 push rbx push rax mov rbx, rsi test rdi, rdi jz short loc_1C129 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_1C10B: cmp dword ptr [r14+rsi*4+4], 0 lea rsi, [rsi+1] jnz short loc_1C10B mov rdi, r14 mov rdx, rbx add rsp, 8 pop rbx pop r14 jmp _ZN7testing8internalL20PrintCharsAsStringToIDiEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<char32_t>(char32_t const*,ulong,std::ostream *) loc_1C129: 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 ( *(_DWORD *)(a1 + 4 * v4++ + 4) != 0 ) ; return testing::internal::PrintCharsAsStringTo<char32_t>(a1, v4, a2); }
PrintTo: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI TEST RDI,RDI JZ 0x0011c129 MOV R14,RDI MOV RDI,RBX MOV RSI,R14 CALL 0x001093a0 LEA RSI,[0x144968] MOV EDX,0xd MOV RDI,RAX CALL 0x001095a0 MOV RSI,-0x1 LAB_0011c10b: CMP dword ptr [R14 + RSI*0x4 + 0x4],0x0 LEA RSI,[RSI + 0x1] JNZ 0x0011c10b MOV RDI,R14 MOV RDX,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0011c5bf LAB_0011c129: LEA RSI,[0x14079c] MOV EDX,0x4 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001095a0
/* testing::internal::PrintTo(char32_t const*, std::ostream*) */ void testing::internal::PrintTo(wchar32 *param_1,ostream *param_2) { long lVar1; ostream *poVar2; ulong uVar3; if (param_1 != (wchar32 *)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<char32_t>(param_1,uVar3,param_2); return; } std::__ostream_insert<char,std::char_traits<char>>(param_2,"NULL",4); return; }
59,761
nglog::ShellEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
ng-log[P]ng-log/src/logging.cc
static string ShellEscape(const string& src) { string result; if (!src.empty() && // empty string needs quotes src.find_first_not_of(kDontNeedShellEscapeChars) == string::npos) { // only contains chars that don't need quotes; it's fine result.assign(src); } else if (src.find_first_of('\'') == string::npos) { // no single quotes; just wrap it in single quotes result.assign("'"); result.append(src); result.append("'"); } else { // needs double quote escaping result.assign("\""); for (size_t i = 0; i < src.size(); ++i) { switch (src[i]) { case '\\': case '$': case '"': case '`': result.append("\\"); } result.append(src, i, 1); } result.append("\""); } return result; }
O1
cpp
nglog::ShellEscape(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r12 movq %r12, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) cmpq $0x0, 0x8(%rsi) je 0x117b9 leaq 0x12000(%rip), %rsi # 0x237a0 movl $0x47, %ecx movq %r14, %rdi xorl %edx, %edx callq 0x7960 cmpq $-0x1, %rax je 0x1188c movq %r14, %rdi movl $0x27, %esi xorl %edx, %edx callq 0x7700 movq 0x8(%rbx), %rdx cmpq $-0x1, %rax je 0x11856 leaq 0x130b3(%rip), %r15 # 0x24890 movl $0x1, %r8d movq %rbx, %rdi xorl %esi, %esi movq %r15, %rcx callq 0x78b0 cmpq $0x0, 0x8(%r14) je 0x1187f movq %r12, (%rsp) xorl %r12d, %r12d movabsq $0x4400000000000005, %rbp # imm = 0x4400000000000005 leaq 0x1307f(%rip), %r13 # 0x24892 movq (%r14), %rax movzbl (%rax,%r12), %eax addl $-0x22, %eax cmpl $0x3e, %eax ja 0x11834 btq %rax, %rbp jae 0x11834 movq %rbx, %rdi movq %r13, %rsi callq 0x7a40 movl $0x1, %ecx movq %rbx, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x7770 incq %r12 cmpq 0x8(%r14), %r12 jb 0x11813 movq (%rsp), %r12 jmp 0x1187f leaq 0x12149(%rip), %r15 # 0x239a6 movl $0x1, %r8d movq %rbx, %rdi xorl %esi, %esi movq %r15, %rcx callq 0x78b0 movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x7140 movq %rbx, %rdi movq %r15, %rsi callq 0x7a40 jmp 0x11897 movq %rbx, %rdi movq %r14, %rsi callq 0x7290 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r12, (%rsp) jmp 0x118af movq %rax, %r14 movq (%rbx), %rdi cmpq (%rsp), %rdi je 0x118ca movq (%rsp), %rax movq (%rax), %rsi incq %rsi callq 0x906c movq %r14, %rdi callq 0x79b0
_ZN5nglogL11ShellEscapeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi lea r12, [rdi+10h] mov [rdi], r12 mov qword ptr [rdi+8], 0 mov byte ptr [rdi+10h], 0 cmp qword ptr [rsi+8], 0 jz short loc_117B9 lea rsi, _ZN5nglogL25kDontNeedShellEscapeCharsE; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"... mov ecx, 47h ; 'G' mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcmm; std::string::find_first_not_of(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz loc_1188C loc_117B9: mov rdi, r14 mov esi, 27h ; ''' xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong) mov rdx, [rbx+8] cmp rax, 0FFFFFFFFFFFFFFFFh jz loc_11856 lea r15, asc_24890; "\"" mov r8d, 1 mov rdi, rbx xor esi, esi mov rcx, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) cmp qword ptr [r14+8], 0 jz loc_1187F mov [rsp+38h+var_38], r12 xor r12d, r12d mov rbp, 4400000000000005h lea r13, asc_24892; "\\" loc_11813: mov rax, [r14] movzx eax, byte ptr [rax+r12] add eax, 0FFFFFFDEh cmp eax, 3Eh ; '>' ja short loc_11834 bt rbp, rax jnb short loc_11834 mov rdi, rbx mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_11834: mov ecx, 1 mov rdi, rbx mov rsi, r14 mov rdx, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) inc r12 cmp r12, [r14+8] jb short loc_11813 mov r12, [rsp+38h+var_38] jmp short loc_1187F loc_11856: lea r15, aDataNumCharsTo+59h; "'" mov r8d, 1 mov rdi, rbx xor esi, esi mov rcx, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov rsi, [r14] mov rdx, [r14+8] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) loc_1187F: mov rdi, rbx mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) jmp short loc_11897 loc_1188C: mov rdi, rbx mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) loc_11897: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov [rsp+0], r12 jmp short $+2 loc_118AF: mov r14, rax mov rdi, [rbx]; void * cmp rdi, [rsp+0] jz short loc_118CA mov rax, [rsp+0] mov rsi, [rax] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_118CA: mov rdi, r14 call __Unwind_Resume
long long nglog::ShellEscape(long long a1, _QWORD *a2) { long long v2; // rax long long v3; // rdx char *v4; // r15 unsigned long long v5; // r12 long long v6; // rbp unsigned long long v7; // rax *(_QWORD *)a1 = a1 + 16; *(_QWORD *)(a1 + 8) = 0LL; *(_BYTE *)(a1 + 16) = 0; if ( a2[1] && std::string::find_first_not_of( a2, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_.=/:,@", 0LL, 71LL) == -1 ) { std::string::_M_assign(a1, a2); } else { v2 = std::string::find(a2, 39LL, 0LL); v3 = *(_QWORD *)(a1 + 8); if ( v2 == -1 ) { v4 = "'"; std::string::_M_replace(a1, 0LL, v3, "'", 1LL); std::string::_M_append(a1, *a2); } else { v4 = "\""; std::string::_M_replace(a1, 0LL, v3, "\"", 1LL); if ( a2[1] ) { v5 = 0LL; v6 = 0x4400000000000005LL; do { v7 = (unsigned int)*(unsigned __int8 *)(*a2 + v5) - 34; if ( (unsigned int)v7 <= 0x3E && _bittest64(&v6, v7) ) std::string::append(a1, "\\"); std::string::append(a1, a2, v5++, 1LL); } while ( v5 < a2[1] ); } } std::string::append(a1, v4); } return a1; }
ShellEscape: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI LEA R12,[RDI + 0x10] MOV qword ptr [RDI],R12 MOV qword ptr [RDI + 0x8],0x0 MOV byte ptr [RDI + 0x10],0x0 CMP qword ptr [RSI + 0x8],0x0 JZ 0x001117b9 LEA RSI,[0x1237a0] MOV ECX,0x47 MOV RDI,R14 XOR EDX,EDX CALL 0x00107960 CMP RAX,-0x1 JZ 0x0011188c LAB_001117b9: MOV RDI,R14 MOV ESI,0x27 XOR EDX,EDX CALL 0x00107700 MOV RDX,qword ptr [RBX + 0x8] CMP RAX,-0x1 JZ 0x00111856 LAB_001117d6: LEA R15,[0x124890] MOV R8D,0x1 MOV RDI,RBX XOR ESI,ESI MOV RCX,R15 CALL 0x001078b0 CMP qword ptr [R14 + 0x8],0x0 JZ 0x0011187f MOV qword ptr [RSP],R12 XOR R12D,R12D MOV RBP,0x4400000000000005 LEA R13,[0x124892] LAB_00111813: MOV RAX,qword ptr [R14] MOVZX EAX,byte ptr [RAX + R12*0x1] ADD EAX,-0x22 CMP EAX,0x3e JA 0x00111834 BT RBP,RAX JNC 0x00111834 LAB_00111829: MOV RDI,RBX MOV RSI,R13 CALL 0x00107a40 LAB_00111834: MOV ECX,0x1 MOV RDI,RBX MOV RSI,R14 MOV RDX,R12 CALL 0x00107770 INC R12 CMP R12,qword ptr [R14 + 0x8] JC 0x00111813 MOV R12,qword ptr [RSP] JMP 0x0011187f LAB_00111856: LEA R15,[0x1239a6] MOV R8D,0x1 MOV RDI,RBX XOR ESI,ESI MOV RCX,R15 CALL 0x001078b0 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] MOV RDI,RBX CALL 0x00107140 LAB_0011187f: MOV RDI,RBX MOV RSI,R15 CALL 0x00107a40 JMP 0x00111897 LAB_0011188c: MOV RDI,RBX MOV RSI,R14 CALL 0x00107290 LAB_00111897: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nglog::ShellEscape(std::__cxx11::string const&) */ nglog * __thiscall nglog::ShellEscape(nglog *this,string *param_1) { uint uVar1; long lVar2; ulong uVar3; *(nglog **)this = this + 0x10; *(int8 *)(this + 8) = 0; this[0x10] = (nglog)0x0; if ((*(long *)(param_1 + 8) == 0) || (lVar2 = std::__cxx11::string::find_first_not_of((char *)param_1,0x1237a0,0), lVar2 != -1)) { lVar2 = std::__cxx11::string::find((char)param_1,0x27); if (lVar2 == -1) { /* try { // try from 00111856 to 00111896 has its CatchHandler @ 001118a9 */ std::__cxx11::string::_M_replace((ulong)this,0,*(char **)(this + 8),0x1239a6); std::__cxx11::string::_M_append((char *)this,*(ulong *)param_1); } else { /* try { // try from 001117d6 to 001117ef has its CatchHandler @ 001118a9 */ std::__cxx11::string::_M_replace((ulong)this,0,*(char **)(this + 8),0x124890); if (*(long *)(param_1 + 8) != 0) { uVar3 = 0; do { uVar1 = *(byte *)(*(long *)param_1 + uVar3) - 0x22; if ((uVar1 < 0x3f) && ((0x4400000000000005U >> ((ulong)uVar1 & 0x3f) & 1) != 0)) { /* try { // try from 00111829 to 00111846 has its CatchHandler @ 001118af */ std::__cxx11::string::append((char *)this); } std::__cxx11::string::append((string *)this,(ulong)param_1,uVar3); uVar3 = uVar3 + 1; } while (uVar3 < *(ulong *)(param_1 + 8)); } } std::__cxx11::string::append((char *)this); } else { std::__cxx11::string::_M_assign((string *)this); } return this; }
59,762
ftxui::(anonymous namespace)::FgColor::Render(ftxui::Screen&)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/dom/color.cpp
void Render(Screen& screen) override { for (int y = box_.y_min; y <= box_.y_max; ++y) { for (int x = box_.x_min; x <= box_.x_max; ++x) { screen.PixelAt(x, y).foreground_color = color_; } } NodeDecorator::Render(screen); }
O2
cpp
ftxui::(anonymous namespace)::FgColor::Render(ftxui::Screen&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x54(%rdi), %ebp cmpl 0x58(%r14), %ebp jg 0x1ddb1 movl 0x4c(%r14), %r15d cmpl 0x50(%r14), %r15d jg 0x1ddad movq %rbx, %rdi movl %r15d, %esi movl %ebp, %edx callq 0x303fa movl 0x5c(%r14), %ecx movl %ecx, 0x2c(%rax) incl %r15d jmp 0x1dd8e incl %ebp jmp 0x1dd84 movq %r14, %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x1efe0
_ZN5ftxui12_GLOBAL__N_17FgColor6RenderERNS_6ScreenE: push rbp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov ebp, [rdi+54h] loc_1DD84: cmp ebp, [r14+58h] jg short loc_1DDB1 mov r15d, [r14+4Ch] loc_1DD8E: cmp r15d, [r14+50h] jg short loc_1DDAD mov rdi, rbx; this mov esi, r15d; int mov edx, ebp; int call _ZN5ftxui6Screen7PixelAtEii; ftxui::Screen::PixelAt(int,int) mov ecx, [r14+5Ch] mov [rax+2Ch], ecx inc r15d jmp short loc_1DD8E loc_1DDAD: inc ebp jmp short loc_1DD84 loc_1DDB1: mov rdi, r14 mov rsi, rbx add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _ZN5ftxui4Node6RenderERNS_6ScreenE; ftxui::Node::Render(ftxui::Screen &)
long long ftxui::`anonymous namespace'::FgColor::Render( ftxui::_anonymous_namespace_::FgColor *this, ftxui::Screen *a2) { int i; // ebp int j; // r15d for ( i = *((_DWORD *)this + 21); i <= *((_DWORD *)this + 22); ++i ) { for ( j = *((_DWORD *)this + 19); j <= *((_DWORD *)this + 20); ++j ) *(_DWORD *)(ftxui::Screen::PixelAt(a2, j, i) + 44) = *((_DWORD *)this + 23); } return ftxui::Node::Render(this, a2); }
Render: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV EBP,dword ptr [RDI + 0x54] LAB_0011dd84: CMP EBP,dword ptr [R14 + 0x58] JG 0x0011ddb1 MOV R15D,dword ptr [R14 + 0x4c] LAB_0011dd8e: CMP R15D,dword ptr [R14 + 0x50] JG 0x0011ddad MOV RDI,RBX MOV ESI,R15D MOV EDX,EBP CALL 0x001303fa MOV ECX,dword ptr [R14 + 0x5c] MOV dword ptr [RAX + 0x2c],ECX INC R15D JMP 0x0011dd8e LAB_0011ddad: INC EBP JMP 0x0011dd84 LAB_0011ddb1: MOV RDI,R14 MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x0011efe0
/* ftxui::(anonymous namespace)::FgColor::Render(ftxui::Screen&) */ void __thiscall ftxui::(anonymous_namespace)::FgColor::Render(FgColor *this,Screen *param_1) { long lVar1; int iVar2; int iVar3; for (iVar2 = *(int *)(this + 0x54); iVar2 <= *(int *)(this + 0x58); iVar2 = iVar2 + 1) { for (iVar3 = *(int *)(this + 0x4c); iVar3 <= *(int *)(this + 0x50); iVar3 = iVar3 + 1) { lVar1 = Screen::PixelAt(param_1,iVar3,iVar2); *(int4 *)(lVar1 + 0x2c) = *(int4 *)(this + 0x5c); } } Node::Render((Node *)this,param_1); return; }
59,763
inline_mysql_cond_destroy
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_destroy( mysql_cond_t *that) { #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) { PSI_COND_CALL(destroy_cond)(that->m_psi); that->m_psi= NULL; } #endif return pthread_cond_destroy(&that->m_cond); }
O0
c
inline_mysql_cond_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xc0be4 leaq 0x1c8739(%rip), %rax # 0x289300 movq (%rax), %rax movq 0x68(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x8(%rbp), %rdi callq 0x272c0 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_cond_destroy_4: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_C0BE4 lea rax, PSI_server mov rax, [rax] mov rax, [rax+68h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax mov rax, [rbp+var_8] mov qword ptr [rax+30h], 0 loc_C0BE4: mov rdi, [rbp+var_8] call _pthread_cond_destroy add rsp, 10h pop rbp retn
long long inline_mysql_cond_destroy_4(long long a1) { if ( *(_QWORD *)(a1 + 48) ) { ((void ( *)(_QWORD))PSI_server[13])(*(_QWORD *)(a1 + 48)); *(_QWORD *)(a1 + 48) = 0LL; } return pthread_cond_destroy(a1); }
inline_mysql_cond_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001c0be4 LEA RAX,[0x389300] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x68] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x30],0x0 LAB_001c0be4: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001272c0 ADD RSP,0x10 POP RBP RET
void inline_mysql_cond_destroy(pthread_cond_t *param_1) { if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x68))(param_1[1].__align); param_1[1].__align = 0; } pthread_cond_destroy(param_1); return; }
59,764
js_function_toString
bluesky950520[P]quickjs/quickjs.c
static JSValue js_function_toString(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSObject *p; JSFunctionKindEnum func_kind = JS_FUNC_NORMAL; if (check_function(ctx, this_val)) return JS_EXCEPTION; p = JS_VALUE_GET_OBJ(this_val); if (js_class_has_bytecode(p->class_id)) { JSFunctionBytecode *b = p->u.func.function_bytecode; /* `b->source` must be pure ASCII or UTF-8 encoded */ if (b->source) return JS_NewStringLen(ctx, b->source, b->source_len); } { JSValue name; const char *pref, *suff; switch(func_kind) { default: case JS_FUNC_NORMAL: pref = "function "; break; case JS_FUNC_GENERATOR: pref = "function *"; break; case JS_FUNC_ASYNC: pref = "async function "; break; case JS_FUNC_ASYNC_GENERATOR: pref = "async function *"; break; } suff = "() {\n [native code]\n}"; name = JS_GetProperty(ctx, this_val, JS_ATOM_name); if (JS_IsUndefined(name)) name = JS_AtomToString(ctx, JS_ATOM_empty_string); return JS_ConcatString3(ctx, pref, name, suff); } }
O2
c
js_function_toString: pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0x3949a testl %eax, %eax je 0x5fd74 pushq $0x6 popq %rdx xorl %eax, %eax xorl %r12d, %r12d jmp 0x5fdfa movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000 movzwl 0x6(%r15), %eax cmpq $0x38, %rax ja 0x5fdb7 movabsq $0x110000000012000, %rcx # imm = 0x110000000012000 btq %rax, %rcx jae 0x5fdb7 movq 0x30(%r15), %rax movq 0x88(%rax), %rsi testq %rsi, %rsi je 0x5fdb7 movslq 0x74(%rax), %rdx movq %rbx, %rdi callq 0x1a2ea jmp 0x5fdf7 pushq $0x37 popq %rcx movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x1b043 movq %rdx, %rcx cmpl $0x3, %ecx jne 0x5fdde pushq $0x2f popq %rsi movq %rbx, %rdi callq 0x1a990 movq %rdx, %rcx leaq 0x28c56(%rip), %rsi # 0x88a3b leaq 0x28c59(%rip), %r8 # 0x88a45 movq %rbx, %rdi movq %rax, %rdx callq 0x39c30 andq %rax, %r12 movl %eax, %eax orq %r12, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
js_function_toString: push r15 push r14 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi call check_function test eax, eax jz short loc_5FD74 push 6 pop rdx xor eax, eax xor r12d, r12d jmp loc_5FDFA loc_5FD74: mov r12, 0FFFFFFFF00000000h movzx eax, word ptr [r15+6] cmp rax, 38h ; '8' ja short loc_5FDB7 mov rcx, 110000000012000h bt rcx, rax jnb short loc_5FDB7 mov rax, [r15+30h] mov rsi, [rax+88h] test rsi, rsi jz short loc_5FDB7 movsxd rdx, dword ptr [rax+74h] mov rdi, rbx call JS_NewStringLen jmp short loc_5FDF7 loc_5FDB7: push 37h ; '7' pop rcx mov rdi, rbx mov rsi, r15 mov rdx, r14 call JS_GetProperty mov rcx, rdx cmp ecx, 3 jnz short loc_5FDDE push 2Fh ; '/' pop rsi mov rdi, rbx call JS_AtomToString mov rcx, rdx loc_5FDDE: lea rsi, aFunction; "function " lea r8, aNativeCode; "() {\n [native code]\n}" mov rdi, rbx mov rdx, rax call JS_ConcatString3 loc_5FDF7: and r12, rax loc_5FDFA: mov eax, eax or rax, r12 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
unsigned long long js_function_toString( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { int v12; // r15d long long v13; // rax unsigned long long v14; // r12 unsigned long long v15; // rax long long v16; // rcx long long v17; // rax char *v18; // rsi long long Property; // rax long long v20; // rdx long long v21; // rcx long long v22; // rdx v12 = a2; if ( (unsigned int)check_function(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) ) { LODWORD(v13) = 0; v14 = 0LL; } else { v15 = *(unsigned __int16 *)(a2 + 6); if ( v15 <= 0x38 && (v16 = 0x110000000012000LL, _bittest64(&v16, v15)) && (v17 = *(_QWORD *)(a2 + 48), (v18 = *(char **)(v17 + 136)) != 0LL) ) { v13 = JS_NewStringLen(a1, v18, *(int *)(v17 + 116)); } else { Property = JS_GetProperty(a1, v12, a3, 55); v21 = v20; if ( (_DWORD)v20 == 3 ) { Property = JS_AtomToString(a1, 47); v21 = v22; } v13 = JS_ConcatString3(a1, (long long)"function ", Property, v21, (long long)"() {\n [native code]\n}"); } v14 = v13 & 0xFFFFFFFF00000000LL; } return v14 | (unsigned int)v13; }
js_function_toString: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x0013949a TEST EAX,EAX JZ 0x0015fd74 PUSH 0x6 POP RDX XOR EAX,EAX XOR R12D,R12D JMP 0x0015fdfa LAB_0015fd74: MOV R12,-0x100000000 MOVZX EAX,word ptr [R15 + 0x6] CMP RAX,0x38 JA 0x0015fdb7 MOV RCX,0x110000000012000 BT RCX,RAX JNC 0x0015fdb7 MOV RAX,qword ptr [R15 + 0x30] MOV RSI,qword ptr [RAX + 0x88] TEST RSI,RSI JZ 0x0015fdb7 MOVSXD RDX,dword ptr [RAX + 0x74] MOV RDI,RBX CALL 0x0011a2ea JMP 0x0015fdf7 LAB_0015fdb7: PUSH 0x37 POP RCX MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0011b043 MOV RCX,RDX CMP ECX,0x3 JNZ 0x0015fdde PUSH 0x2f POP RSI MOV RDI,RBX CALL 0x0011a990 MOV RCX,RDX LAB_0015fdde: LEA RSI,[0x188a3b] LEA R8,[0x188a45] MOV RDI,RBX MOV RDX,RAX CALL 0x00139c30 LAB_0015fdf7: AND R12,RAX LAB_0015fdfa: MOV EAX,EAX OR RAX,R12 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
ulong js_function_toString(int8 param_1,long param_2,int8 param_3) { long lVar1; int iVar2; ulong uVar3; ulong uVar4; int1 auVar5 [16]; iVar2 = check_function(); if (iVar2 != 0) { uVar3 = 0; uVar4 = 0; goto LAB_0015fdfa; } if (((ulong)*(ushort *)(param_2 + 6) < 0x39) && ((0x110000000012000U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) { lVar1 = *(long *)(*(long *)(param_2 + 0x30) + 0x88); if (lVar1 == 0) goto LAB_0015fdb7; uVar3 = JS_NewStringLen(param_1,lVar1,(long)*(int *)(*(long *)(param_2 + 0x30) + 0x74)); } else { LAB_0015fdb7: auVar5 = JS_GetProperty(param_1,param_2,param_3,0x37); if (auVar5._8_4_ == 3) { auVar5 = JS_AtomToString(param_1,0x2f); } uVar3 = JS_ConcatString3(param_1,"function ",auVar5._0_8_,auVar5._8_8_, "() {\n [native code]\n}"); } uVar4 = uVar3 & 0xffffffff00000000; LAB_0015fdfa: return uVar3 & 0xffffffff | uVar4; }
59,765
ftxui::ReceiverImpl<std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>>::Receive(std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>*)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/include/ftxui/component/receiver.hpp
bool Receive(T* t) { while (senders_ || !queue_.empty()) { std::unique_lock<std::mutex> lock(mutex_); if (queue_.empty()) notifier_.wait(lock); if (queue_.empty()) continue; *t = std::move(queue_.front()); queue_.pop(); return true; } return false; }
O2
cpp
ftxui::ReceiverImpl<std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>>::Receive(std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x78(%rdi), %r15 leaq 0x8(%rsp), %r12 movl 0xa8(%rbx), %eax testl %eax, %eax jne 0x2918c movq 0x58(%rbx), %rax cmpq 0x38(%rbx), %rax je 0x291e8 movq %r12, %rdi movq %rbx, %rsi callq 0x29ad8 movq 0x38(%rbx), %rsi movq 0x58(%rbx), %rax cmpq %rsi, %rax jne 0x291b7 movq %r15, %rdi movq %r12, %rsi callq 0xc130 movq 0x38(%rbx), %rsi movq 0x58(%rbx), %rax cmpq %rsi, %rax jne 0x291c6 movq %r12, %rdi callq 0x29aee jmp 0x29178 addq $0x28, %rbx movq %r14, %rdi callq 0x2a0e4 movq %rbx, %rdi callq 0x2a2e4 leaq 0x8(%rsp), %rdi callq 0x29aee movb $0x1, %al jmp 0x291ea xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN5ftxui12ReceiverImplISt7variantIJNS_5EventESt8functionIFvvEENS_13AnimationTaskEEEE7ReceiveEPS7_: push r15 push r14 push r12 push rbx sub rsp, 18h mov r14, rsi mov rbx, rdi lea r15, [rdi+78h] lea r12, [rsp+38h+var_30] loc_29178: mov eax, [rbx+0A8h] test eax, eax jnz short loc_2918C mov rax, [rbx+58h] cmp rax, [rbx+38h] jz short loc_291E8 loc_2918C: mov rdi, r12 mov rsi, rbx call _ZNSt11unique_lockISt5mutexEC2ERS0_; std::unique_lock<std::mutex>::unique_lock(std::mutex&) mov rsi, [rbx+38h] mov rax, [rbx+58h] cmp rax, rsi jnz short loc_291B7 mov rdi, r15 mov rsi, r12 call __ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE; std::condition_variable::wait(std::unique_lock<std::mutex> &) mov rsi, [rbx+38h] mov rax, [rbx+58h] loc_291B7: cmp rax, rsi jnz short loc_291C6 mov rdi, r12 call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() jmp short loc_29178 loc_291C6: add rbx, 28h ; '(' mov rdi, r14 call _ZNSt8__detail9__variant17_Move_assign_baseILb0EJN5ftxui5EventESt8functionIFvvEENS2_13AnimationTaskEEEaSEOS8_; std::__detail::__variant::_Move_assign_base<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::operator=(std::__detail::__variant::_Move_assign_base<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>&&) mov rdi, rbx call _ZNSt5dequeISt7variantIJN5ftxui5EventESt8functionIFvvEENS1_13AnimationTaskEEESaIS7_EE9pop_frontEv; std::deque<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>::pop_front(void) lea rdi, [rsp+38h+var_30] call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov al, 1 jmp short loc_291EA loc_291E8: xor eax, eax loc_291EA: add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn
char ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>::Receive( long long a1, long long a2) { long long v3; // rsi long long v4; // rax _BYTE v6[48]; // [rsp+8h] [rbp-30h] BYREF while ( *(_DWORD *)(a1 + 168) || *(_QWORD *)(a1 + 88) != *(_QWORD *)(a1 + 56) ) { std::unique_lock<std::mutex>::unique_lock(v6, a1); v3 = *(_QWORD *)(a1 + 56); v4 = *(_QWORD *)(a1 + 88); if ( v4 == v3 ) { std::condition_variable::wait(a1 + 120, v6); v3 = *(_QWORD *)(a1 + 56); v4 = *(_QWORD *)(a1 + 88); } if ( v4 != v3 ) { std::__detail::__variant::_Move_assign_base<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::operator=(a2); std::deque<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>::pop_front(a1 + 40); std::unique_lock<std::mutex>::~unique_lock(v6); return 1; } std::unique_lock<std::mutex>::~unique_lock(v6); } return 0; }
Receive: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R14,RSI MOV RBX,RDI LEA R15,[RDI + 0x78] LEA R12,[RSP + 0x8] LAB_00129178: MOV EAX,dword ptr [RBX + 0xa8] TEST EAX,EAX JNZ 0x0012918c MOV RAX,qword ptr [RBX + 0x58] CMP RAX,qword ptr [RBX + 0x38] JZ 0x001291e8 LAB_0012918c: MOV RDI,R12 MOV RSI,RBX CALL 0x00129ad8 MOV RSI,qword ptr [RBX + 0x38] MOV RAX,qword ptr [RBX + 0x58] CMP RAX,RSI JNZ 0x001291b7 MOV RDI,R15 MOV RSI,R12 CALL 0x0010c130 MOV RSI,qword ptr [RBX + 0x38] MOV RAX,qword ptr [RBX + 0x58] LAB_001291b7: CMP RAX,RSI JNZ 0x001291c6 MOV RDI,R12 CALL 0x00129aee JMP 0x00129178 LAB_001291c6: ADD RBX,0x28 MOV RDI,R14 CALL 0x0012a0e4 MOV RDI,RBX CALL 0x0012a2e4 LEA RDI,[RSP + 0x8] CALL 0x00129aee MOV AL,0x1 JMP 0x001291ea LAB_001291e8: XOR EAX,EAX LAB_001291ea: ADD RSP,0x18 POP RBX POP R12 POP R14 POP R15 RET
/* ftxui::ReceiverImpl<std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask> >::Receive(std::variant<ftxui::Event, std::function<void ()>, ftxui::AnimationTask>*) */ int8 __thiscall ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>::Receive (ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>> *this ,variant *param_1) { _Move_assign_base *p_Var1; _Move_assign_base *p_Var2; unique_lock<std::mutex> local_30 [16]; while( true ) { if ((*(int *)(this + 0xa8) == 0) && (*(long *)(this + 0x58) == *(long *)(this + 0x38))) { return 0; } std::unique_lock<std::mutex>::unique_lock(local_30,(mutex *)this); p_Var2 = *(_Move_assign_base **)(this + 0x38); p_Var1 = *(_Move_assign_base **)(this + 0x58); if (p_Var1 == p_Var2) { std::condition_variable::wait((unique_lock *)(this + 0x78)); p_Var2 = *(_Move_assign_base **)(this + 0x38); p_Var1 = *(_Move_assign_base **)(this + 0x58); } if (p_Var1 != p_Var2) break; std::unique_lock<std::mutex>::~unique_lock(local_30); } std::__detail::__variant:: _Move_assign_base<false,ftxui::Event,std::function<void()>,ftxui::AnimationTask>::operator= ((_Move_assign_base<false,ftxui::Event,std::function<void()>,ftxui::AnimationTask> *) param_1,p_Var2); std:: deque<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>,std::allocator<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>> ::pop_front((deque<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>,std::allocator<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>> *)(this + 0x28)); std::unique_lock<std::mutex>::~unique_lock(local_30); return 1; }
59,766
translog_truncate_log
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_truncate_log(TRANSLOG_ADDRESS addr) { uchar *page; TRANSLOG_ADDRESS current_page; uint32 next_page_offset, page_rest; uint32 i; File fd; int rc; TRANSLOG_VALIDATOR_DATA data; char path[FN_REFLEN]; uchar page_buff[TRANSLOG_PAGE_SIZE]; DBUG_ENTER("translog_truncate_log"); /* TODO: write warning to the client */ DBUG_PRINT("warning", ("removing all records from " LSN_FMT " " "till " LSN_FMT, LSN_IN_PARTS(addr), LSN_IN_PARTS(log_descriptor.horizon))); DBUG_ASSERT(cmp_translog_addr(addr, log_descriptor.horizon) < 0); /* remove files between the address and horizon */ for (i= LSN_FILE_NO(addr) + 1; i <= LSN_FILE_NO(log_descriptor.horizon); i++) if (mysql_file_delete(key_file_translog, translog_filename_by_fileno(i, path), MYF(MY_WME))) { translog_unlock(); DBUG_RETURN(1); } /* truncate the last file up to the last page */ next_page_offset= LSN_OFFSET(addr); next_page_offset= (next_page_offset - ((next_page_offset - 1) % TRANSLOG_PAGE_SIZE + 1) + TRANSLOG_PAGE_SIZE); page_rest= next_page_offset - LSN_OFFSET(addr); memset(page_buff, TRANSLOG_FILLER, page_rest); rc= ((fd= open_logfile_by_number_no_cache(LSN_FILE_NO(addr))) < 0 || ((mysql_file_chsize(fd, next_page_offset, TRANSLOG_FILLER, MYF(MY_WME)) || (page_rest && my_pwrite(fd, page_buff, page_rest, LSN_OFFSET(addr), log_write_flags)) || mysql_file_sync(fd, MYF(MY_WME))))); translog_syncs++; rc|= (fd > 0 && mysql_file_close(fd, MYF(MY_WME))); if (sync_log_dir >= TRANSLOG_SYNC_DIR_ALWAYS) { rc|= sync_dir(log_descriptor.directory_fd, MYF(MY_WME | MY_IGNORE_BADFD)); translog_syncs++; } if (rc) DBUG_RETURN(1); /* fix the horizon */ log_descriptor.horizon= addr; /* fix the buffer data */ current_page= MAKE_LSN(LSN_FILE_NO(addr), (next_page_offset - TRANSLOG_PAGE_SIZE)); data.addr= &current_page; if ((page= translog_get_page(&data, log_descriptor.buffers->buffer, NULL)) == NULL) DBUG_RETURN(1); if (page != log_descriptor.buffers->buffer) memcpy(log_descriptor.buffers->buffer, page, TRANSLOG_PAGE_SIZE); log_descriptor.bc.buffer->offset= current_page; log_descriptor.bc.buffer->size= LSN_OFFSET(addr) - LSN_OFFSET(current_page); log_descriptor.bc.ptr= log_descriptor.buffers->buffer + log_descriptor.bc.buffer->size; log_descriptor.bc.current_page_fill= log_descriptor.bc.buffer->size; DBUG_RETURN(0); }
O3
c
translog_truncate_log: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2278, %rsp # imm = 0x2278 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq %rdi, -0x2240(%rbp) shrq $0x20, %rdi movq %rdi, -0x2250(%rbp) leal 0x1(%rdi), %r12d leaq -0x230(%rbp), %r13 leaq -0x2230(%rbp), %r14 leaq -0x2298(%rbp), %rbx cmpl 0xbb4461(%rip), %r12d # 0xbff40c ja 0x4b025 leaq 0x3b2160(%rip), %rax # 0x3fd114 movl (%rax), %r15d movl %r12d, %edi movq %r13, %rsi callq 0x48ae5 leaq 0x33b047(%rip), %rax # 0x386010 movq (%rax), %rax movq %r14, %rdi movl %r15d, %esi movl $0xe, %edx movq %r13, %rcx movq %rbx, %r8 callq *0x148(%rax) movq %rax, -0x2298(%rbp) testq %rax, %rax jne 0x4b008 movl $0x10, %esi movq %r13, %rdi callq 0x9df60 incl %r12d testl %eax, %eax je 0x4afa4 jmp 0x4b17d movq %rax, %rdi movq %r13, %rsi movq %rbx, %rdx leaq -0x2238(%rbp), %rcx callq 0x2c701 movl -0x2238(%rbp), %eax jmp 0x4affc movq -0x2240(%rbp), %rax movl %eax, %r12d negl %r12d orl $0xffffe000, %r12d # imm = 0xFFFFE000 leal (%r12,%rax), %ebx movl $0x2000, %r13d # imm = 0x2000 addl %r13d, %r12d leaq -0x2230(%rbp), %rdi movl $0x2000, %ecx # imm = 0x2000 movl $0xff, %esi movq %r12, %rdx callq 0x297f0 movq -0x2250(%rbp), %rdi callq 0x48e0e testl %eax, %eax movl %ebx, -0x2244(%rbp) js 0x4b1aa movl %eax, %r15d addl %ebx, %r13d movl %r13d, %ebx leaq 0x33af87(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x2298(%rbp), %rdi movl %r15d, %esi movl $0xd, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4b31d movl $0x10, %ecx movl %r15d, %edi movq %rbx, %rsi movl $0xff, %edx callq 0x9dda8 movl $0x1, %r14d testl %eax, %eax jne 0x4b133 cmpl -0x2240(%rbp), %r13d je 0x4b0f5 movl -0x2240(%rbp), %ecx leaq -0x2230(%rbp), %rsi movl $0x34, %r8d movl %r15d, %edi movq %r12, %rdx callq 0xa07ee testq %rax, %rax jne 0x4b133 leaq 0x33af14(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x2298(%rbp), %rdi movl %r15d, %esi movl $0x10, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4b375 movl $0x10, %esi movl %r15d, %edi callq 0xa14a4 xorl %r14d, %r14d testl %eax, %eax setne %r14b incq 0x3b247e(%rip) # 0x3fd5b8 testl %r15d, %r15d je 0x4b1bb leaq 0x33aeca(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x2298(%rbp), %rdi movl %r15d, %esi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4b359 movl $0x10, %esi movl %r15d, %edi callq 0xa0585 xorl %ecx, %ecx testl %eax, %eax setne %cl jmp 0x4b1bd movq 0xbb42b4(%rip), %rbx # 0xbff438 movq 0x1000d0(%rbx), %rdi testq %rdi, %rdi jne 0x4b308 addq $0x100090, %rbx # imm = 0x100090 movq %rbx, %rdi callq 0x291e0 movb $0x1, %bl jmp 0x4b2e1 incq 0x3b2407(%rip) # 0x3fd5b8 xorl %ecx, %ecx movl $0x1, %r14d jmp 0x4b1bd xorl %ecx, %ecx orl %ecx, %r14d cmpq $0x2, 0x338fd8(%rip) # 0x3841a0 jb 0x4b20d movl 0x3b38e0(%rip), %ebx # 0x3feab0 leaq 0x33ae39(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x2298(%rbp), %rdi movl %ebx, %esi movl $0x10, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4b33d movl $0x30, %esi movl %ebx, %edi callq 0xa14a4 orl %eax, %r14d incq 0x3b23ab(%rip) # 0x3fd5b8 movb $0x1, %bl testl %r14d, %r14d jne 0x4b2e1 movq -0x2240(%rbp), %rcx movq %rcx, 0xbb41e2(%rip) # 0xbff408 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 andq %rcx, %rax movl -0x2244(%rbp), %ecx orq %rax, %rcx movq %rcx, -0x2238(%rbp) leaq -0x2298(%rbp), %rdi leaq -0x2238(%rbp), %rax movq %rax, (%rdi) leaq 0x3b385d(%rip), %r14 # 0x3feab8 movq %r14, %rsi xorl %edx, %edx callq 0x4a574 testq %rax, %rax je 0x4b2e1 cmpq %r14, %rax je 0x4b283 leaq 0x3b3842(%rip), %rdi # 0x3feab8 movl $0x2000, %edx # imm = 0x2000 movq %rax, %rsi callq 0x29080 movq -0x2238(%rbp), %rax leaq 0x3b352f(%rip), %rcx # 0x3fe7c0 movq 0xbb41a0(%rip), %rdx # 0xbff438 movq %rax, 0x100010(%rdx) movq -0x2240(%rbp), %rdx subl %eax, %edx movq 0xbb4189(%rip), %rax # 0xbff438 movl %edx, 0x100030(%rax) movq 0xbb417c(%rip), %rax # 0xbff438 movl 0x100030(%rax), %edx leaq 0x2f8(%rdx,%rcx), %rcx movq %rcx, 0xbb415f(%rip) # 0xbff430 movzwl 0x100030(%rax), %eax movw %ax, 0xbb4161(%rip) # 0xbff440 xorl %ebx, %ebx movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x4b391 movl %ebx, %eax addq $0x2278, %rsp # imm = 0x2278 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x33ad01(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x4b194 leaq -0x2238(%rbp), %r14 movq %rax, %rdi movq %rbx, %rsi movl %r15d, %edx movq %r14, %rcx callq 0x2c758 movl (%r14), %eax jmp 0x4b0bf leaq -0x2238(%rbp), %r15 movq %rax, %rdi movl %ebx, %esi movq %r15, %rdx callq 0x2c874 movl (%r15), %eax jmp 0x4b203 leaq -0x2238(%rbp), %rbx movq %rax, %rdi movl %r15d, %esi movq %rbx, %rdx callq 0x2c81d movl (%rbx), %eax jmp 0x4b174 leaq -0x2238(%rbp), %rbx movq %rax, %rdi movl %r15d, %esi movq %rbx, %rdx callq 0x2c7c4 movl (%rbx), %eax jmp 0x4b12a callq 0x29270
translog_truncate_log: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 2278h mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_2240], rdi shr rdi, 20h mov [rbp+var_2250], rdi lea r12d, [rdi+1] lea r13, [rbp+var_230] lea r14, [rbp+var_2230] lea rbx, [rbp+var_2298] loc_4AFA4: cmp r12d, dword ptr cs:qword_BFF408+4 ja short loc_4B025 lea rax, key_file_translog mov r15d, [rax] mov edi, r12d mov rsi, r13 call translog_filename_by_fileno lea rax, PSI_server mov rax, [rax] mov rdi, r14 mov esi, r15d mov edx, 0Eh mov rcx, r13 mov r8, rbx call qword ptr [rax+148h] mov [rbp+var_2298], rax test rax, rax jnz short loc_4B008 mov esi, 10h mov rdi, r13 call my_delete loc_4AFFC: inc r12d test eax, eax jz short loc_4AFA4 jmp loc_4B17D loc_4B008: mov rdi, rax mov rsi, r13 mov rdx, rbx lea rcx, [rbp+var_2238] call translog_truncate_log_cold_1 mov eax, dword ptr [rbp+var_2238] jmp short loc_4AFFC loc_4B025: mov rax, [rbp+var_2240] mov r12d, eax neg r12d or r12d, 0FFFFE000h lea ebx, [r12+rax] mov r13d, 2000h add r12d, r13d lea rdi, [rbp+var_2230] mov ecx, 2000h mov esi, 0FFh mov rdx, r12 call ___memset_chk mov rdi, [rbp+var_2250] call open_logfile_by_number_no_cache test eax, eax mov [rbp+var_2244], ebx js loc_4B1AA mov r15d, eax add r13d, ebx mov ebx, r13d lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_2298] mov esi, r15d mov edx, 0Dh call qword ptr [rax+158h] test rax, rax jnz loc_4B31D mov ecx, 10h mov edi, r15d mov rsi, rbx mov edx, 0FFh call my_chsize loc_4B0BF: mov r14d, 1 test eax, eax jnz short loc_4B133 cmp r13d, dword ptr [rbp+var_2240] jz short loc_4B0F5 mov ecx, dword ptr [rbp+var_2240] lea rsi, [rbp+var_2230] mov r8d, 34h ; '4' mov edi, r15d mov rdx, r12 call my_pwrite test rax, rax jnz short loc_4B133 loc_4B0F5: lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_2298] mov esi, r15d mov edx, 10h call qword ptr [rax+158h] test rax, rax jnz loc_4B375 mov esi, 10h mov edi, r15d call my_sync loc_4B12A: xor r14d, r14d test eax, eax setnz r14b loc_4B133: inc cs:translog_syncs test r15d, r15d jz short loc_4B1BB lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_2298] mov esi, r15d mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz loc_4B359 mov esi, 10h mov edi, r15d call my_close loc_4B174: xor ecx, ecx test eax, eax setnz cl jmp short loc_4B1BD loc_4B17D: mov rbx, qword ptr cs:xmmword_BFF430+8 mov rdi, ds:qword_1000D0[rbx] test rdi, rdi jnz loc_4B308 loc_4B194: add rbx, 100090h mov rdi, rbx call _pthread_mutex_unlock mov bl, 1 jmp loc_4B2E1 loc_4B1AA: inc cs:translog_syncs xor ecx, ecx mov r14d, 1 jmp short loc_4B1BD loc_4B1BB: xor ecx, ecx loc_4B1BD: or r14d, ecx cmp cs:sync_log_dir, 2 jb short loc_4B20D mov ebx, cs:dword_3FEAB0 lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_2298] mov esi, ebx mov edx, 10h call qword ptr [rax+158h] test rax, rax jnz loc_4B33D mov esi, 30h ; '0' mov edi, ebx call my_sync loc_4B203: or r14d, eax inc cs:translog_syncs loc_4B20D: mov bl, 1 test r14d, r14d jnz loc_4B2E1 mov rcx, [rbp+var_2240] mov cs:qword_BFF408, rcx mov rax, 0FFFFFFFF00000000h and rax, rcx mov ecx, [rbp+var_2244] or rcx, rax mov [rbp+var_2238], rcx lea rdi, [rbp+var_2298] lea rax, [rbp+var_2238] mov [rdi], rax lea r14, unk_3FEAB8 mov rsi, r14 xor edx, edx call translog_get_page test rax, rax jz short loc_4B2E1 cmp rax, r14 jz short loc_4B283 lea rdi, unk_3FEAB8 mov edx, 2000h mov rsi, rax call _memcpy loc_4B283: mov rax, [rbp+var_2238] lea rcx, log_descriptor mov rdx, qword ptr cs:xmmword_BFF430+8 mov ds:qword_100010[rdx], rax mov rdx, [rbp+var_2240] sub edx, eax mov rax, qword ptr cs:xmmword_BFF430+8 mov dword ptr ds:qword_100030[rax], edx mov rax, qword ptr cs:xmmword_BFF430+8 mov edx, dword ptr ds:qword_100030[rax] lea rcx, [rdx+rcx+2F8h] mov qword ptr cs:xmmword_BFF430, rcx movzx eax, word ptr ds:qword_100030[rax] mov word ptr cs:xmmword_BFF440, ax xor ebx, ebx loc_4B2E1: mov rax, fs:28h cmp rax, [rbp+var_30] jnz loc_4B391 mov eax, ebx add rsp, 2278h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4B308: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_4B194 loc_4B31D: lea r14, [rbp+var_2238] mov rdi, rax mov rsi, rbx mov edx, r15d mov rcx, r14 call translog_truncate_log_cold_2 mov eax, [r14] jmp loc_4B0BF loc_4B33D: lea r15, [rbp+var_2238] mov rdi, rax mov esi, ebx mov rdx, r15 call translog_truncate_log_cold_5 mov eax, [r15] jmp loc_4B203 loc_4B359: lea rbx, [rbp+var_2238] mov rdi, rax mov esi, r15d mov rdx, rbx call translog_truncate_log_cold_4 mov eax, [rbx] jmp loc_4B174 loc_4B375: lea rbx, [rbp+var_2238] mov rdi, rax mov esi, r15d mov rdx, rbx call translog_truncate_log_cold_3 mov eax, [rbx] jmp loc_4B12A loc_4B391: call ___stack_chk_fail
long long translog_truncate_log(unsigned long long a1, long long a2, long long a3, long long a4, int a5, int a6) { unsigned int i; // r12d unsigned int v7; // r15d long long *v8; // rax int v9; // eax unsigned int v10; // r12d unsigned long long *v11; // rbx long long v12; // r12 long long v13; // rdx long long v14; // rcx int v15; // r8d int v16; // r9d int v17; // eax unsigned int v18; // r15d unsigned int v19; // r13d long long v20; // rax int v21; // eax BOOL v22; // r14d long long v23; // rax int v24; // eax long long v25; // rax int v26; // eax BOOL v27; // ecx long long v28; // rbx int v29; // r14d long long v30; // rax int v31; // eax void *page; // rax int v33; // eax long long *v35[9]; // [rsp+8h] [rbp-2298h] BYREF unsigned long long v36; // [rsp+50h] [rbp-2250h] unsigned int v37; // [rsp+5Ch] [rbp-2244h] long long v38; // [rsp+60h] [rbp-2240h] unsigned long long v39; // [rsp+68h] [rbp-2238h] BYREF _BYTE v40[8192]; // [rsp+70h] [rbp-2230h] BYREF _BYTE v41[512]; // [rsp+2070h] [rbp-230h] BYREF unsigned long long v42; // [rsp+2270h] [rbp-30h] v42 = __readfsqword(0x28u); v38 = a1; v36 = HIDWORD(a1); for ( i = HIDWORD(a1) + 1; i <= HIDWORD(qword_BFF408); ++i ) { v7 = key_file_translog; translog_filename_by_fileno(i, (long long)v41, a3, a4, a5, a6); v8 = (long long *)((long long ( *)(_BYTE *, _QWORD, long long, _BYTE *, long long **))PSI_server[41])( v40, v7, 14LL, v41, v35); v35[0] = v8; if ( v8 ) { translog_truncate_log_cold_1((long long)v8, (long long)v41, v35, (unsigned int *)&v39); v9 = v39; } else { v9 = my_delete(v41, 16LL); } if ( v9 ) { v28 = *((_QWORD *)&xmmword_BFF430 + 1); if ( *(long long *)((char *)&qword_1000D0 + *((_QWORD *)&xmmword_BFF430 + 1)) ) PSI_server[44](); v11 = (unsigned long long *)(v28 + 1048720); pthread_mutex_unlock(v11); LOBYTE(v11) = 1; return (unsigned int)v11; } } v10 = -(int)v38 | 0xFFFFE000; LODWORD(v11) = v10 + v38; v12 = v10 + 0x2000; __memset_chk(v40, 255LL, v12, 0x2000LL); v17 = open_logfile_by_number_no_cache(v36, 255LL, v13, v14, v15, v16); v37 = (unsigned int)v11; if ( v17 < 0 ) { ++translog_syncs; v27 = 0; v22 = 1; } else { v18 = v17; v19 = (_DWORD)v11 + 0x2000; LODWORD(v11) = (_DWORD)v11 + 0x2000; v20 = ((long long ( *)(long long **, _QWORD, long long))PSI_server[43])(v35, (unsigned int)v17, 13LL); if ( v20 ) { translog_truncate_log_cold_2(v20, v19, v18, &v39); v21 = v39; } else { v21 = my_chsize(v18, v19, 255LL, 16LL); } v22 = 1; if ( !v21 && (v19 == (_DWORD)v38 || !my_pwrite(v18, v40, v12, (unsigned int)v38, 52LL)) ) { v23 = ((long long ( *)(long long **, _QWORD, long long))PSI_server[43])(v35, v18, 16LL); if ( v23 ) { v11 = &v39; translog_truncate_log_cold_3(v23, v18, &v39); v24 = v39; } else { v24 = my_sync(v18, 16LL); } v22 = v24 != 0; } ++translog_syncs; if ( v18 ) { v25 = ((long long ( *)(long long **, _QWORD, long long))PSI_server[43])(v35, v18, 4LL); if ( v25 ) { v11 = &v39; translog_truncate_log_cold_4(v25, v18, (unsigned int *)&v39); v26 = v39; } else { v26 = my_close(v18, 16LL); } v27 = v26 != 0; } else { v27 = 0; } } v29 = v27 || v22; if ( (unsigned long long)sync_log_dir >= 2 ) { LODWORD(v11) = dword_3FEAB0; v30 = ((long long ( *)(long long **, _QWORD, long long))PSI_server[43])(v35, (unsigned int)dword_3FEAB0, 16LL); if ( v30 ) { translog_truncate_log_cold_5(v30, (unsigned int)v11, &v39); v31 = v39; } else { v31 = my_sync((unsigned int)v11, 48LL); } v29 |= v31; ++translog_syncs; } LOBYTE(v11) = 1; if ( !v29 ) { qword_BFF408 = v38; v39 = v38 & 0xFFFFFFFF00000000LL | v37; v35[0] = (long long *)&v39; page = (void *)translog_get_page(v35, (long long)&unk_3FEAB8, 0LL); if ( page ) { if ( page != &unk_3FEAB8 ) memcpy(&unk_3FEAB8, page, 0x2000LL); v33 = v39; *(long long *)((char *)&qword_100010 + *((_QWORD *)&xmmword_BFF430 + 1)) = v39; *(_DWORD *)((char *)&qword_100030 + *((_QWORD *)&xmmword_BFF430 + 1)) = v38 - v33; *(_QWORD *)&xmmword_BFF430 = (char *)&log_descriptor[95] + *(unsigned int *)((char *)&qword_100030 + *((_QWORD *)&xmmword_BFF430 + 1)); LOWORD(xmmword_BFF440) = *(_WORD *)((char *)&qword_100030 + *((_QWORD *)&xmmword_BFF430 + 1)); LODWORD(v11) = 0; } } return (unsigned int)v11; }
translog_truncate_log: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x2278 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x2240],RDI SHR RDI,0x20 MOV qword ptr [RBP + -0x2250],RDI LEA R12D,[RDI + 0x1] LEA R13,[RBP + -0x230] LEA R14,[RBP + -0x2230] LEA RBX,[RBP + -0x2298] LAB_0014afa4: CMP R12D,dword ptr [0x00cff40c] JA 0x0014b025 LEA RAX,[0x4fd114] MOV R15D,dword ptr [RAX] MOV EDI,R12D MOV RSI,R13 CALL 0x00148ae5 LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RDI,R14 MOV ESI,R15D MOV EDX,0xe MOV RCX,R13 MOV R8,RBX CALL qword ptr [RAX + 0x148] MOV qword ptr [RBP + -0x2298],RAX TEST RAX,RAX JNZ 0x0014b008 MOV ESI,0x10 MOV RDI,R13 CALL 0x0019df60 LAB_0014affc: INC R12D TEST EAX,EAX JZ 0x0014afa4 JMP 0x0014b17d LAB_0014b008: MOV RDI,RAX MOV RSI,R13 MOV RDX,RBX LEA RCX,[RBP + -0x2238] CALL 0x0012c701 MOV EAX,dword ptr [RBP + -0x2238] JMP 0x0014affc LAB_0014b025: MOV RAX,qword ptr [RBP + -0x2240] MOV R12D,EAX NEG R12D OR R12D,0xffffe000 LEA EBX,[R12 + RAX*0x1] MOV R13D,0x2000 ADD R12D,R13D LEA RDI,[RBP + -0x2230] MOV ECX,0x2000 MOV ESI,0xff MOV RDX,R12 CALL 0x001297f0 MOV RDI,qword ptr [RBP + -0x2250] CALL 0x00148e0e TEST EAX,EAX MOV dword ptr [RBP + -0x2244],EBX JS 0x0014b1aa MOV R15D,EAX ADD R13D,EBX MOV EBX,R13D LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x2298] MOV ESI,R15D MOV EDX,0xd CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014b31d MOV ECX,0x10 MOV EDI,R15D MOV RSI,RBX MOV EDX,0xff CALL 0x0019dda8 LAB_0014b0bf: MOV R14D,0x1 TEST EAX,EAX JNZ 0x0014b133 CMP R13D,dword ptr [RBP + -0x2240] JZ 0x0014b0f5 MOV ECX,dword ptr [RBP + -0x2240] LEA RSI,[RBP + -0x2230] MOV R8D,0x34 MOV EDI,R15D MOV RDX,R12 CALL 0x001a07ee TEST RAX,RAX JNZ 0x0014b133 LAB_0014b0f5: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x2298] MOV ESI,R15D MOV EDX,0x10 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014b375 MOV ESI,0x10 MOV EDI,R15D CALL 0x001a14a4 LAB_0014b12a: XOR R14D,R14D TEST EAX,EAX SETNZ R14B LAB_0014b133: INC qword ptr [0x004fd5b8] TEST R15D,R15D JZ 0x0014b1bb LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x2298] MOV ESI,R15D MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014b359 MOV ESI,0x10 MOV EDI,R15D CALL 0x001a0585 LAB_0014b174: XOR ECX,ECX TEST EAX,EAX SETNZ CL JMP 0x0014b1bd LAB_0014b17d: MOV RBX,qword ptr [0x00cff438] MOV RDI,qword ptr [RBX + 0x1000d0] TEST RDI,RDI JNZ 0x0014b308 LAB_0014b194: ADD RBX,0x100090 MOV RDI,RBX CALL 0x001291e0 MOV BL,0x1 JMP 0x0014b2e1 LAB_0014b1aa: INC qword ptr [0x004fd5b8] XOR ECX,ECX MOV R14D,0x1 JMP 0x0014b1bd LAB_0014b1bb: XOR ECX,ECX LAB_0014b1bd: OR R14D,ECX CMP qword ptr [0x004841a0],0x2 JC 0x0014b20d MOV EBX,dword ptr [0x004feab0] LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x2298] MOV ESI,EBX MOV EDX,0x10 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014b33d MOV ESI,0x30 MOV EDI,EBX CALL 0x001a14a4 LAB_0014b203: OR R14D,EAX INC qword ptr [0x004fd5b8] LAB_0014b20d: MOV BL,0x1 TEST R14D,R14D JNZ 0x0014b2e1 MOV RCX,qword ptr [RBP + -0x2240] MOV qword ptr [0x00cff408],RCX MOV RAX,-0x100000000 AND RAX,RCX MOV ECX,dword ptr [RBP + -0x2244] OR RCX,RAX MOV qword ptr [RBP + -0x2238],RCX LEA RDI,[RBP + -0x2298] LEA RAX,[RBP + -0x2238] MOV qword ptr [RDI],RAX LEA R14,[0x4feab8] MOV RSI,R14 XOR EDX,EDX CALL 0x0014a574 TEST RAX,RAX JZ 0x0014b2e1 CMP RAX,R14 JZ 0x0014b283 LEA RDI,[0x4feab8] MOV EDX,0x2000 MOV RSI,RAX CALL 0x00129080 LAB_0014b283: MOV RAX,qword ptr [RBP + -0x2238] LEA RCX,[0x4fe7c0] MOV RDX,qword ptr [0x00cff438] MOV qword ptr [RDX + 0x100010],RAX MOV RDX,qword ptr [RBP + -0x2240] SUB EDX,EAX MOV RAX,qword ptr [0x00cff438] MOV dword ptr [RAX + 0x100030],EDX MOV RAX,qword ptr [0x00cff438] MOV EDX,dword ptr [RAX + 0x100030] LEA RCX,[RDX + RCX*0x1 + 0x2f8] MOV qword ptr [0x00cff430],RCX MOVZX EAX,word ptr [RAX + 0x100030] MOV word ptr [0x00cff440],AX XOR EBX,EBX LAB_0014b2e1: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x0014b391 MOV EAX,EBX ADD RSP,0x2278 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014b308: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014b194 LAB_0014b31d: LEA R14,[RBP + -0x2238] MOV RDI,RAX MOV RSI,RBX MOV EDX,R15D MOV RCX,R14 CALL 0x0012c758 MOV EAX,dword ptr [R14] JMP 0x0014b0bf LAB_0014b33d: LEA R15,[RBP + -0x2238] MOV RDI,RAX MOV ESI,EBX MOV RDX,R15 CALL 0x0012c874 MOV EAX,dword ptr [R15] JMP 0x0014b203 LAB_0014b359: LEA RBX,[RBP + -0x2238] MOV RDI,RAX MOV ESI,R15D MOV RDX,RBX CALL 0x0012c81d MOV EAX,dword ptr [RBX] JMP 0x0014b174 LAB_0014b375: LEA RBX,[RBP + -0x2238] MOV RDI,RAX MOV ESI,R15D MOV RDX,RBX CALL 0x0012c7c4 MOV EAX,dword ptr [RBX] JMP 0x0014b12a LAB_0014b391: CALL 0x00129270
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ ulong translog_truncate_log(ulong param_1) { int4 uVar1; uint uVar2; int iVar3; int iVar4; long lVar5; int *__src; ulong *puVar6; pthread_mutex_t *__mutex; ulong uVar7; uint uVar8; uint uVar9; int iVar10; long in_FS_OFFSET; ulong *local_22a0 [9]; ulong local_2258; uint local_224c; ulong local_2248; ulong local_2240; int1 local_2238 [8192]; int1 local_238 [512]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_2258 = param_1 >> 0x20; uVar8 = (uint)(param_1 >> 0x20); local_2248 = param_1; do { uVar1 = key_file_translog; uVar8 = uVar8 + 1; if (DAT_00cff408._4_4_ < uVar8) { uVar9 = -(int)local_2248 | 0xffffe000; uVar8 = uVar9 + (int)local_2248; puVar6 = (ulong *)(ulong)uVar8; iVar10 = uVar9 + 0x2000; __memset_chk(local_2238,0xff,iVar10); iVar3 = open_logfile_by_number_no_cache(local_2258); local_224c = uVar8; if (iVar3 < 0) { translog_syncs = translog_syncs + 1; uVar8 = 0; uVar9 = 1; } else { puVar6 = (ulong *)(ulong)(uVar8 + 0x2000); lVar5 = (**(code **)(PSI_server + 0x158))(local_22a0,iVar3,0xd); if (lVar5 == 0) { iVar4 = my_chsize(iVar3,puVar6,0xff); } else { translog_truncate_log_cold_2(lVar5,puVar6,iVar3); iVar4 = (uint)local_2240; } uVar9 = 1; if (iVar4 == 0) { if (uVar8 + 0x2000 != (uint)local_2248) { lVar5 = my_pwrite(iVar3,local_2238,iVar10,local_2248 & 0xffffffff,0x34); if (lVar5 != 0) goto LAB_0014b133; } lVar5 = (**(code **)(PSI_server + 0x158))(local_22a0,iVar3,0x10); if (lVar5 == 0) { iVar10 = my_sync(iVar3,0x10); } else { puVar6 = &local_2240; translog_truncate_log_cold_3(lVar5,iVar3,puVar6); iVar10 = (uint)local_2240; } uVar9 = (uint)(iVar10 != 0); } LAB_0014b133: translog_syncs = translog_syncs + 1; if (iVar3 == 0) { uVar8 = 0; } else { lVar5 = (**(code **)(PSI_server + 0x158))(local_22a0,iVar3,4); if (lVar5 == 0) { iVar3 = my_close(iVar3,0x10); } else { puVar6 = &local_2240; translog_truncate_log_cold_4(lVar5,iVar3,puVar6); iVar3 = (uint)local_2240; } uVar8 = (uint)(iVar3 != 0); } } uVar2 = DAT_004feab0; uVar9 = uVar9 | uVar8; if (1 < sync_log_dir) { puVar6 = (ulong *)(ulong)DAT_004feab0; lVar5 = (**(code **)(PSI_server + 0x158))(local_22a0,DAT_004feab0,0x10); if (lVar5 == 0) { uVar8 = my_sync(uVar2,0x30); } else { translog_truncate_log_cold_5(lVar5,uVar2,&local_2240); uVar8 = (uint)local_2240; } uVar9 = uVar9 | uVar8; translog_syncs = translog_syncs + 1; } uVar7 = CONCAT71((int7)((ulong)puVar6 >> 8),1); if (uVar9 == 0) { DAT_00cff408 = local_2248; local_2240 = (ulong)local_224c | local_2248 & 0xffffffff00000000; local_22a0[0] = &local_2240; __src = (int *)translog_get_page(local_22a0,&DAT_004feab8,0); if (__src != (int *)0x0) { if (__src != &DAT_004feab8) { memcpy(&DAT_004feab8,__src,0x2000); } *(ulong *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00cff438 + 7) = local_2240; *(int *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00cff438 + 0x27) = (int)local_2248 - (int)local_2240; DAT_00cff430 = &DAT_004feab8 + *(uint *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00cff438 + 0x27); _DAT_00cff440 = *(int2 *)(Elf64_Ehdr_00100000.e_ident_pad + DAT_00cff438 + 0x27); uVar7 = 0; } } goto LAB_0014b2e1; } translog_filename_by_fileno(uVar8,local_238); local_22a0[0] = (ulong *)(**(code **)(PSI_server + 0x148))(local_2238,uVar1,0xe,local_238,local_22a0); if (local_22a0[0] == (ulong *)0x0) { iVar3 = my_delete(local_238,0x10); } else { translog_truncate_log_cold_1(local_22a0[0],local_238,local_22a0,&local_2240); iVar3 = (uint)local_2240; } lVar5 = DAT_00cff438; } while (iVar3 == 0); if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00cff438) != 0) { (**(code **)(PSI_server + 0x160))(); } __mutex = (pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar5); pthread_mutex_unlock(__mutex); uVar7 = CONCAT71((int7)((ulong)__mutex >> 8),1); LAB_0014b2e1: if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return uVar7 & 0xffffffff; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
59,767
pagecache_unpin_by_link
eloqsql/storage/maria/ma_pagecache.c
void pagecache_unpin_by_link(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, LSN lsn) { DBUG_ENTER("pagecache_unpin_by_link"); DBUG_PRINT("enter", ("block: %p fd: %u page: %lu", block, (uint) block->hash_link->file.file, (ulong) block->hash_link->pageno)); pagecache_pthread_mutex_lock(&pagecache->cache_lock); /* As soon as we keep lock cache can be used, and we have lock because want unlock. */ DBUG_ASSERT(pagecache->can_be_used); /* we can't unpin such page without unlock */ DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0); inc_counter_for_resize_op(pagecache); if (lsn != LSN_IMPOSSIBLE) check_and_set_lsn(pagecache, lsn, block); /* We can just unpin only with keeping read lock because: a) we can't pin without any lock b) we can't unpin keeping write lock */ if (make_lock_and_pin(pagecache, block, PAGECACHE_LOCK_LEFT_READLOCKED, PAGECACHE_UNPIN, FALSE)) DBUG_ASSERT(0); /* should not happend */ /* Link the block into the LRU chain if it's the last submitted request for the block and block will not be pinned. See NOTE for pagecache_unlock about registering requests. */ unreg_request(pagecache, block, 1); dec_counter_for_resize_op(pagecache); pagecache_pthread_mutex_unlock(&pagecache->cache_lock); DBUG_VOID_RETURN; }
O3
c
pagecache_unpin_by_link: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rdx, %r12 movq %rsi, %r15 movq %rdi, %r14 leaq 0xc8(%rdi), %rbx cmpq $0x0, 0x108(%rdi) jne 0x709f1 movq %rbx, %rdi callq 0x2a1f0 incq 0x68(%r14) testq %r12, %r12 je 0x70993 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x702be decl 0x64(%r15) movq %r14, %rdi movq %r15, %rsi movl $0x1, %edx callq 0x704eb decq 0x68(%r14) jne 0x709d5 movq 0x110(%r14), %rax testq %rax, %rax je 0x709d5 movq 0x88(%rax), %r15 movq 0x38(%r15), %rdi addq $0x8, %r15 testq %rdi, %rdi jne 0x70a1c movq %r15, %rdi callq 0x2a5b0 movq 0x108(%r14), %rdi testq %rdi, %rdi jne 0x70a0a movq %rbx, %rdi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x2a1c0 leaq 0x7263b(%rip), %rsi # 0xe3033 movq %rbx, %rdi movl $0xdad, %edx # imm = 0xDAD callq 0x2ff2f jmp 0x7097c leaq 0x3204c7(%rip), %rax # 0x390ed8 movq (%rax), %rax callq *0x160(%rax) jmp 0x709e1 leaq 0x3204b5(%rip), %rax # 0x390ed8 movq (%rax), %rax callq *0x170(%rax) jmp 0x709cd
pagecache_unpin_by_link: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov r12, rdx mov r15, rsi mov r14, rdi lea rbx, [rdi+0C8h] cmp qword ptr [rdi+108h], 0 jnz short loc_709F1 mov rdi, rbx call _pthread_mutex_lock loc_7097C: inc qword ptr [r14+68h] test r12, r12 jz short loc_70993 mov rdi, r14 mov rsi, r12 mov rdx, r15 call check_and_set_lsn loc_70993: dec dword ptr [r15+64h] mov rdi, r14 mov rsi, r15 mov edx, 1 call unreg_request dec qword ptr [r14+68h] jnz short loc_709D5 mov rax, [r14+110h] test rax, rax jz short loc_709D5 mov r15, [rax+88h] mov rdi, [r15+38h] add r15, 8 test rdi, rdi jnz short loc_70A1C loc_709CD: mov rdi, r15 call _pthread_cond_signal loc_709D5: mov rdi, [r14+108h] test rdi, rdi jnz short loc_70A0A loc_709E1: mov rdi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp _pthread_mutex_unlock loc_709F1: lea rsi, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/eloqsq"... mov rdi, rbx mov edx, 0DADh call psi_mutex_lock jmp loc_7097C loc_70A0A: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_709E1 loc_70A1C: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+170h] jmp short loc_709CD
long long pagecache_unpin_by_link(_QWORD *a1, long long a2, signed long long a3) { _QWORD *v5; // rbx long long v7; // rax long long v8; // r15 long long v9; // rdi long long v10; // r15 v5 = a1 + 25; if ( a1[33] ) psi_mutex_lock( (long long)(a1 + 25), (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c", 0xDADu); else pthread_mutex_lock(a1 + 25); ++a1[13]; if ( a3 ) check_and_set_lsn((long long)a1, a3, a2); --*(_DWORD *)(a2 + 100); unreg_request(a1, a2, 1); if ( a1[13]-- == 1LL ) { v7 = a1[34]; if ( v7 ) { v8 = *(_QWORD *)(v7 + 136); v9 = *(_QWORD *)(v8 + 56); v10 = v8 + 8; if ( v9 ) PSI_server[46](); pthread_cond_signal(v10); } } if ( a1[33] ) PSI_server[44](); return pthread_mutex_unlock(v5); }
pagecache_unpin_by_link: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R12,RDX MOV R15,RSI MOV R14,RDI LEA RBX,[RDI + 0xc8] CMP qword ptr [RDI + 0x108],0x0 JNZ 0x001709f1 MOV RDI,RBX CALL 0x0012a1f0 LAB_0017097c: INC qword ptr [R14 + 0x68] TEST R12,R12 JZ 0x00170993 MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 CALL 0x001702be LAB_00170993: DEC dword ptr [R15 + 0x64] MOV RDI,R14 MOV RSI,R15 MOV EDX,0x1 CALL 0x001704eb DEC qword ptr [R14 + 0x68] JNZ 0x001709d5 MOV RAX,qword ptr [R14 + 0x110] TEST RAX,RAX JZ 0x001709d5 MOV R15,qword ptr [RAX + 0x88] MOV RDI,qword ptr [R15 + 0x38] ADD R15,0x8 TEST RDI,RDI JNZ 0x00170a1c LAB_001709cd: MOV RDI,R15 CALL 0x0012a5b0 LAB_001709d5: MOV RDI,qword ptr [R14 + 0x108] TEST RDI,RDI JNZ 0x00170a0a LAB_001709e1: MOV RDI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x0012a1c0 LAB_001709f1: LEA RSI,[0x1e3033] MOV RDI,RBX MOV EDX,0xdad CALL 0x0012ff2f JMP 0x0017097c LAB_00170a0a: LEA RAX,[0x490ed8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x001709e1 LAB_00170a1c: LEA RAX,[0x490ed8] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x170] JMP 0x001709cd
void pagecache_unpin_by_link(long param_1,long param_2,long param_3) { long *plVar1; pthread_mutex_t *__mutex; long lVar2; __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", 0xdad); } *(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1; if (param_3 != 0) { check_and_set_lsn(param_1,param_3,param_2); } *(int *)(param_2 + 100) = *(int *)(param_2 + 100) + -1; unreg_request(param_1,param_2,1); plVar1 = (long *)(param_1 + 0x68); *plVar1 = *plVar1 + -1; if ((*plVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) { lVar2 = *(long *)(*(long *)(param_1 + 0x110) + 0x88); if (*(long *)(lVar2 + 0x38) != 0) { (**(code **)(PSI_server + 0x170))(); } pthread_cond_signal((pthread_cond_t *)(lVar2 + 8)); } if (*(long *)(param_1 + 0x108) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock(__mutex); return; }
59,768
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 0x25bbc movq -0x8(%rbp), %rax movq 0x4c8(%rax), %rax movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x25bad 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 0x4485c(%rip), %rax # 0x6a390 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 0x25b6b movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) jmp 0x25b7d leaq 0x4482e(%rip), %rax # 0x6a3a0 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 0x25b9c movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0x25af1 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_25BBC mov rax, [rbp+var_8] mov rax, [rax+4C8h] mov [rbp+var_18], rax loc_25AF1: cmp [rbp+var_18], 0 jz loc_25BAD 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_25B6B mov rax, [rbp+var_10] mov [rbp+var_30], rax jmp short loc_25B7D loc_25B6B: lea rax, client_errors mov rax, [rax+1C0h] mov [rbp+var_30], rax loc_25B7D: 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_25B9C: mov rax, [rbp+var_18] mov rax, [rax+8] mov [rbp+var_18], rax jmp loc_25AF1 loc_25BAD: mov rax, [rbp+var_8] mov qword ptr [rax+4C8h], 0 loc_25BBC: 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 0x00125bbc MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x4c8] MOV qword ptr [RBP + -0x18],RAX LAB_00125af1: CMP qword ptr [RBP + -0x18],0x0 JZ 0x00125bad 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,[0x16a390] 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 0x00125b6b MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX JMP 0x00125b7d LAB_00125b6b: LEA RAX,[0x16a3a0] MOV RAX,qword ptr [RAX + 0x1c0] MOV qword ptr [RBP + -0x30],RAX LAB_00125b7d: 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 0x00125b9c LAB_00125b9c: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00125af1 LAB_00125bad: MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x4c8],0x0 LAB_00125bbc: 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_0016a560; } strncpy((char *)(lVar1 + 0x10c),local_38,0x200); *(int1 *)(lVar1 + 0x30b) = 0; } *(int8 *)(param_1 + 0x4c8) = 0; } return; }
59,769
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; }
O3
c
lf_dynarray_lvalue: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %r14d movl %esi, %ecx leaq 0x20(%rdi), %r12 pushq $0x5 popq %r13 pushq $0x4 popq %rax leaq 0xb1ba1(%rip), %rdx # 0xe0e80 movq -0x8(%rdx,%rax,8), %rsi decl %r13d decq %rax addq $-0x8, %r12 cmpq %rcx, %rsi ja 0x2f2df movq %rdi, -0x30(%rbp) subl %esi, %r14d testq %rax, %rax jle 0x2f370 leal -0x1(%r13), %eax movl %eax, %eax leaq 0xb1b94(%rip), %rcx # 0xe0ea0 leaq (%rcx,%rax,8), %rbx pushq $0x30 popq %r15 movq (%r12), %rdi testq %rdi, %rdi jne 0x2f354 leaq 0xbd93c8(%rip), %rax # 0xc086ec movl (%rax), %edi movl $0x800, %esi # imm = 0x800 movq %r15, %rdx callq 0x9fd89 testq %rax, %rax je 0x2f3fb movq %rax, %rdi xorl %eax, %eax lock cmpxchgq %rdi, (%r12) je 0x2f354 movq %rax, %r12 callq 0x9ffb6 movq %r12, %rdi movl %r14d, %eax xorl %edx, %edx divq (%rbx) leaq (%rdi,%rax,8), %r12 decl %r13d addq $-0x8, %rbx movq %rdx, %r14 cmpl $0x1, %r13d jg 0x2f314 movq (%r12), %rcx testq %rcx, %rcx movq -0x30(%rbp), %rbx jne 0x2f3e1 leaq 0xbd9368(%rip), %rax # 0xc086ec movl (%rax), %edi movl 0x20(%rbx), %eax movl %eax, %ecx shll $0x8, %ecx cmpl $0x9, %eax pushq $0x8 popq %rsi cmovael %eax, %esi addq %rcx, %rsi pushq $0x30 popq %rdx callq 0x9fd89 testq %rax, %rax je 0x2f3fb movq %rax, %rdi addq $0x8, %rax movl 0x20(%rbx), %esi xorl %edx, %edx divq %rsi subq %rdx, %rsi testq %rdx, %rdx cmoveq %rdx, %rsi leaq (%rdi,%rsi), %rcx addq $0x8, %rcx movq %rdi, (%rdi,%rsi) xorl %eax, %eax lock cmpxchgq %rcx, (%r12) je 0x2f3e1 movq %rax, %r15 callq 0x9ffb6 movq %r15, %rcx imull 0x20(%rbx), %r14d addq %rcx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorl %r14d, %r14d jmp 0x2f3e9
lf_dynarray_lvalue: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14d, esi mov ecx, esi lea r12, [rdi+20h] push 5 pop r13 push 4 pop rax lea rdx, dynarray_idxes_in_prev_levels loc_2F2DF: mov rsi, [rdx+rax*8-8] dec r13d dec rax add r12, 0FFFFFFFFFFFFFFF8h cmp rsi, rcx ja short loc_2F2DF mov [rbp+var_30], rdi sub r14d, esi test rax, rax jle short loc_2F370 lea eax, [r13-1] mov eax, eax lea rcx, dynarray_idxes_in_prev_level lea rbx, [rcx+rax*8] push 30h ; '0' pop r15 loc_2F314: mov rdi, [r12] test rdi, rdi jnz short loc_2F354 lea rax, key_memory_lf_dynarray mov edi, [rax] mov esi, 800h mov rdx, r15 call my_malloc test rax, rax jz loc_2F3FB mov rdi, rax xor eax, eax lock cmpxchg [r12], rdi jz short loc_2F354 mov r12, rax call my_free mov rdi, r12 loc_2F354: mov eax, r14d xor edx, edx div qword ptr [rbx] lea r12, [rdi+rax*8] dec r13d add rbx, 0FFFFFFFFFFFFFFF8h mov r14, rdx cmp r13d, 1 jg short loc_2F314 loc_2F370: mov rcx, [r12] test rcx, rcx mov rbx, [rbp+var_30] jnz short loc_2F3E1 lea rax, key_memory_lf_dynarray mov edi, [rax] mov eax, [rbx+20h] mov ecx, eax shl ecx, 8 cmp eax, 9 push 8 pop rsi cmovnb esi, eax add rsi, rcx push 30h ; '0' pop rdx call my_malloc test rax, rax jz short loc_2F3FB mov rdi, rax add rax, 8 mov esi, [rbx+20h] xor edx, edx div rsi sub rsi, rdx test rdx, rdx cmovz rsi, rdx lea rcx, [rdi+rsi] add rcx, 8 mov [rdi+rsi], rdi xor eax, eax lock cmpxchg [r12], rcx jz short loc_2F3E1 mov r15, rax call my_free mov rcx, r15 loc_2F3E1: imul r14d, [rbx+20h] add r14, rcx loc_2F3E9: mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2F3FB: xor r14d, r14d jmp short loc_2F3E9
signed long long lf_dynarray_lvalue(long long a1, unsigned int a2) { unsigned long long v3; // rcx volatile signed long long *v4; // r12 int v5; // r13d long long v6; // rax unsigned long long v7; // rsi unsigned int v8; // r14d _QWORD *v9; // rbx volatile signed long long v10; // rdi signed long long v11; // rax signed long long v12; // rax volatile signed long long v13; // r12 unsigned long long v14; // rdx signed long long v15; // rcx unsigned int v16; // eax long long v17; // rsi long long v18; // rax long long v19; // rdi unsigned long long v20; // rdx unsigned long long v21; // rsi signed long long v22; // rax signed long long v23; // r15 v3 = a2; v4 = (volatile signed long long *)(a1 + 32); v5 = 5; v6 = 4LL; do { v7 = dynarray_idxes_in_prev_levels[v6 - 1]; --v5; --v6; --v4; } while ( v7 > v3 ); v8 = a2 - v7; if ( v6 > 0 ) { v9 = (_QWORD *)((char *)&dynarray_idxes_in_prev_level + 8 * (unsigned int)(v5 - 1)); do { v10 = *v4; if ( !*v4 ) { v11 = my_malloc(key_memory_lf_dynarray, 2048LL, 48LL); if ( !v11 ) return 0LL; v10 = v11; v12 = _InterlockedCompareExchange64(v4, v11, 0LL); if ( v12 ) { v13 = v12; my_free(v10); v10 = v13; } } v14 = (unsigned long long)v8 % *v9; v4 = (volatile signed long long *)(v10 + 8 * ((unsigned long long)v8 / *v9)); --v5; --v9; v8 = v14; } while ( v5 > 1 ); } v15 = *v4; if ( !*v4 ) { v16 = *(_DWORD *)(a1 + 32); v17 = 8LL; if ( v16 >= 9 ) v17 = v16; v18 = my_malloc(key_memory_lf_dynarray, (unsigned int)(*(_DWORD *)(a1 + 32) << 8) + v17, 48LL); if ( !v18 ) return 0LL; v19 = v18; v20 = (v18 + 8) % (unsigned long long)*(unsigned int *)(a1 + 32); v21 = *(unsigned int *)(a1 + 32) - v20; if ( !v20 ) v21 = 0LL; v15 = v18 + v21 + 8; *(_QWORD *)(v18 + v21) = v18; v22 = _InterlockedCompareExchange64(v4, v15, 0LL); if ( v22 ) { v23 = v22; my_free(v19); v15 = v23; } } return v15 + *(_DWORD *)(a1 + 32) * v8; }
lf_dynarray_lvalue: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14D,ESI MOV ECX,ESI LEA R12,[RDI + 0x20] PUSH 0x5 POP R13 PUSH 0x4 POP RAX LEA RDX,[0x1e0e80] LAB_0012f2df: MOV RSI,qword ptr [RDX + RAX*0x8 + -0x8] DEC R13D DEC RAX ADD R12,-0x8 CMP RSI,RCX JA 0x0012f2df MOV qword ptr [RBP + -0x30],RDI SUB R14D,ESI TEST RAX,RAX JLE 0x0012f370 LEA EAX,[R13 + -0x1] MOV EAX,EAX LEA RCX,[0x1e0ea0] LEA RBX,[RCX + RAX*0x8] PUSH 0x30 POP R15 LAB_0012f314: MOV RDI,qword ptr [R12] TEST RDI,RDI JNZ 0x0012f354 LEA RAX,[0xd086ec] MOV EDI,dword ptr [RAX] MOV ESI,0x800 MOV RDX,R15 CALL 0x0019fd89 TEST RAX,RAX JZ 0x0012f3fb MOV RDI,RAX XOR EAX,EAX CMPXCHG.LOCK qword ptr [R12],RDI JZ 0x0012f354 MOV R12,RAX CALL 0x0019ffb6 MOV RDI,R12 LAB_0012f354: MOV EAX,R14D XOR EDX,EDX DIV qword ptr [RBX] LEA R12,[RDI + RAX*0x8] DEC R13D ADD RBX,-0x8 MOV R14,RDX CMP R13D,0x1 JG 0x0012f314 LAB_0012f370: MOV RCX,qword ptr [R12] TEST RCX,RCX MOV RBX,qword ptr [RBP + -0x30] JNZ 0x0012f3e1 LEA RAX,[0xd086ec] MOV EDI,dword ptr [RAX] MOV EAX,dword ptr [RBX + 0x20] MOV ECX,EAX SHL ECX,0x8 CMP EAX,0x9 PUSH 0x8 POP RSI CMOVNC ESI,EAX ADD RSI,RCX PUSH 0x30 POP RDX CALL 0x0019fd89 TEST RAX,RAX JZ 0x0012f3fb MOV RDI,RAX ADD RAX,0x8 MOV ESI,dword ptr [RBX + 0x20] XOR EDX,EDX DIV RSI SUB RSI,RDX TEST RDX,RDX CMOVZ RSI,RDX LEA RCX,[RDI + RSI*0x1] ADD RCX,0x8 MOV qword ptr [RDI + RSI*0x1],RDI XOR EAX,EAX CMPXCHG.LOCK qword ptr [R12],RCX JZ 0x0012f3e1 MOV R15,RAX CALL 0x0019ffb6 MOV RCX,R15 LAB_0012f3e1: IMUL R14D,dword ptr [RBX + 0x20] ADD R14,RCX LAB_0012f3e9: MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012f3fb: XOR R14D,R14D JMP 0x0012f3e9
long lf_dynarray_lvalue(long param_1,uint param_2) { uint uVar1; long lVar2; ulong uVar3; long lVar4; ulong uVar5; ulong *puVar6; long lVar7; long *plVar8; int iVar9; int iVar10; bool bVar11; plVar8 = (long *)(param_1 + 0x20); lVar2 = 4; iVar10 = 5; do { iVar9 = iVar10; lVar4 = lVar2 * 8; iVar10 = iVar9 + -1; lVar2 = lVar2 + -1; plVar8 = plVar8 + -1; } while ((ulong)param_2 < *(ulong *)(write_pin_change_table + lVar4 + 0x18)); param_2 = param_2 - (int)*(ulong *)(write_pin_change_table + lVar4 + 0x18); uVar5 = (ulong)param_2; if (0 < lVar2) { puVar6 = (ulong *)(dynarray_idxes_in_prev_level + (ulong)(iVar9 - 2) * 8); do { lVar2 = *plVar8; if (*plVar8 == 0) { lVar2 = my_malloc(key_memory_lf_dynarray,0x800,0x30); if (lVar2 == 0) { return 0; } LOCK(); lVar4 = *plVar8; bVar11 = lVar4 == 0; if (bVar11) { *plVar8 = lVar2; lVar4 = 0; } UNLOCK(); if (!bVar11) { my_free(); lVar2 = lVar4; } } uVar3 = uVar5 & 0xffffffff; uVar5 = uVar3 % *puVar6; param_2 = (uint)uVar5; plVar8 = (long *)(lVar2 + (uVar3 / *puVar6) * 8); iVar10 = iVar10 + -1; puVar6 = puVar6 + -1; } while (1 < iVar10); } lVar2 = *plVar8; if (*plVar8 == 0) { uVar1 = *(uint *)(param_1 + 0x20); uVar5 = 8; if (8 < uVar1) { uVar5 = (ulong)uVar1; } lVar4 = my_malloc(key_memory_lf_dynarray,uVar5 + (uVar1 << 8),0x30); if (lVar4 == 0) { return 0; } uVar5 = (lVar4 + 8U) % (ulong)*(uint *)(param_1 + 0x20); lVar7 = *(uint *)(param_1 + 0x20) - uVar5; if (uVar5 == 0) { lVar7 = 0; } lVar2 = lVar4 + lVar7 + 8; *(long *)(lVar4 + lVar7) = lVar4; LOCK(); lVar4 = *plVar8; bVar11 = lVar4 == 0; if (bVar11) { *plVar8 = lVar2; lVar4 = 0; } UNLOCK(); if (!bVar11) { my_free(); lVar2 = lVar4; } } return (ulong)(param_2 * *(int *)(param_1 + 0x20)) + lVar2; }
59,770
lf_pinbox_put_pins
eloqsql/mysys/lf_alloc-pin.c
void lf_pinbox_put_pins(LF_PINS *pins) { LF_PINBOX *pinbox= pins->pinbox; uint32 top_ver, nr; nr= pins->link; #ifndef DBUG_OFF { /* This thread should not hold any pin. */ int i; for (i= 0; i < LF_PINBOX_PINS; i++) DBUG_ASSERT(pins->pin[i] == 0); } #endif /* DBUG_OFF */ /* XXX this will deadlock if other threads will wait for the caller to do something after lf_pinbox_put_pins(), and they would have pinned addresses that the caller wants to free. Thus: only free pins when all work is done and nobody can wait for you!!! */ while (pins->purgatory_count) { lf_pinbox_real_free(pins); if (pins->purgatory_count) pthread_yield(); } top_ver= pinbox->pinstack_top_ver; do { pins->link= top_ver % LF_PINBOX_MAX_PINS; } while (!my_atomic_cas32((int32 volatile*) &pinbox->pinstack_top_ver, (int32*) &top_ver, top_ver-pins->link+nr+LF_PINBOX_MAX_PINS)); return; }
O0
c
lf_pinbox_put_pins: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax movl 0x34(%rax), %eax movl %eax, -0x18(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, 0x30(%rax) je 0x27f76 movq -0x8(%rbp), %rdi callq 0x27ff0 movq -0x8(%rbp), %rax cmpl $0x0, 0x30(%rax) je 0x27f74 callq 0x24430 jmp 0x27f52 movq -0x10(%rbp), %rax movl 0x3c(%rax), %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %ecx andl $0xffff, %ecx # imm = 0xFFFF movq -0x8(%rbp), %rax movl %ecx, 0x34(%rax) movq -0x10(%rbp), %rcx movl -0x14(%rbp), %esi movq -0x8(%rbp), %rax movl 0x34(%rax), %eax subl %eax, %esi movl -0x18(%rbp), %eax movl %eax, %edx movl %esi, %eax leal 0x10000(%rax,%rdx), %eax movl %eax, -0x1c(%rbp) movl -0x14(%rbp), %eax movl -0x1c(%rbp), %edx lock cmpxchgl %edx, 0x3c(%rcx) movl %eax, %ecx sete %al movb %al, -0x25(%rbp) movl %ecx, -0x24(%rbp) testb $0x1, %al jne 0x27fd1 movl -0x24(%rbp), %eax movl %eax, -0x14(%rbp) movb -0x25(%rbp), %al andb $0x1, %al movb %al, -0x1d(%rbp) movb -0x1d(%rbp), %al xorb $-0x1, %al testb $0x1, %al jne 0x27f80 addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
lf_pinbox_put_pins: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov rax, [rax+20h] mov [rbp+var_10], rax mov rax, [rbp+var_8] mov eax, [rax+34h] mov [rbp+var_18], eax loc_27F52: mov rax, [rbp+var_8] cmp dword ptr [rax+30h], 0 jz short loc_27F76 mov rdi, [rbp+var_8] call lf_pinbox_real_free mov rax, [rbp+var_8] cmp dword ptr [rax+30h], 0 jz short loc_27F74 call _sched_yield loc_27F74: jmp short loc_27F52 loc_27F76: mov rax, [rbp+var_10] mov eax, [rax+3Ch] mov [rbp+var_14], eax loc_27F80: mov ecx, [rbp+var_14] and ecx, 0FFFFh mov rax, [rbp+var_8] mov [rax+34h], ecx mov rcx, [rbp+var_10] mov esi, [rbp+var_14] mov rax, [rbp+var_8] mov eax, [rax+34h] sub esi, eax mov eax, [rbp+var_18] mov edx, eax mov eax, esi lea eax, [rax+rdx+10000h] mov [rbp+var_1C], eax mov eax, [rbp+var_14] mov edx, [rbp+var_1C] lock cmpxchg [rcx+3Ch], edx mov ecx, eax setz al mov [rbp+var_25], al mov [rbp+var_24], ecx test al, 1 jnz short loc_27FD1 mov eax, [rbp+var_24] mov [rbp+var_14], eax loc_27FD1: mov al, [rbp+var_25] and al, 1 mov [rbp+var_1D], al mov al, [rbp+var_1D] xor al, 0FFh test al, 1 jnz short loc_27F80 add rsp, 30h pop rbp retn
char lf_pinbox_put_pins(long long a1) { signed __int32 v1; // eax signed __int32 v2; // ett char result; // al bool v4; // [rsp+Bh] [rbp-25h] int v5; // [rsp+18h] [rbp-18h] signed __int32 v6; // [rsp+1Ch] [rbp-14h] long long v7; // [rsp+20h] [rbp-10h] v7 = *(_QWORD *)(a1 + 32); v5 = *(_DWORD *)(a1 + 52); while ( *(_DWORD *)(a1 + 48) ) { lf_pinbox_real_free(a1); if ( *(_DWORD *)(a1 + 48) ) sched_yield(); } v6 = *(_DWORD *)(v7 + 60); do { *(_DWORD *)(a1 + 52) = (unsigned __int16)v6; v2 = v6; v1 = _InterlockedCompareExchange((volatile signed __int32 *)(v7 + 60), v6 - *(_DWORD *)(a1 + 52) + v5 + 0x10000, v6); v4 = v2 == v1; if ( v2 != v1 ) v6 = v1; result = ~v4; } while ( !v4 ); return result; }
lf_pinbox_put_pins: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] MOV dword ptr [RBP + -0x18],EAX LAB_00127f52: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x30],0x0 JZ 0x00127f76 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00127ff0 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x30],0x0 JZ 0x00127f74 CALL 0x00124430 LAB_00127f74: JMP 0x00127f52 LAB_00127f76: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x3c] MOV dword ptr [RBP + -0x14],EAX LAB_00127f80: MOV ECX,dword ptr [RBP + -0x14] AND ECX,0xffff MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x34],ECX MOV RCX,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] SUB ESI,EAX MOV EAX,dword ptr [RBP + -0x18] MOV EDX,EAX MOV EAX,ESI LEA EAX,[RAX + RDX*0x1 + 0x10000] MOV dword ptr [RBP + -0x1c],EAX MOV EAX,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + -0x1c] CMPXCHG.LOCK dword ptr [RCX + 0x3c],EDX MOV ECX,EAX SETZ AL MOV byte ptr [RBP + -0x25],AL MOV dword ptr [RBP + -0x24],ECX TEST AL,0x1 JNZ 0x00127fd1 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x14],EAX LAB_00127fd1: MOV AL,byte ptr [RBP + -0x25] AND AL,0x1 MOV byte ptr [RBP + -0x1d],AL MOV AL,byte ptr [RBP + -0x1d] XOR AL,0xff TEST AL,0x1 JNZ 0x00127f80 ADD RSP,0x30 POP RBP RET
void lf_pinbox_put_pins(long param_1) { uint *puVar1; int iVar2; long lVar3; uint uVar4; bool bVar5; uint local_1c; lVar3 = *(long *)(param_1 + 0x20); iVar2 = *(int *)(param_1 + 0x34); while (*(int *)(param_1 + 0x30) != 0) { lf_pinbox_real_free(param_1); if (*(int *)(param_1 + 0x30) != 0) { sched_yield(); } } local_1c = *(uint *)(lVar3 + 0x3c); do { *(uint *)(param_1 + 0x34) = local_1c & 0xffff; puVar1 = (uint *)(lVar3 + 0x3c); LOCK(); uVar4 = *puVar1; bVar5 = local_1c == uVar4; if (bVar5) { *puVar1 = (local_1c - *(int *)(param_1 + 0x34)) + 0x10000 + iVar2; uVar4 = local_1c; } UNLOCK(); local_1c = uVar4; } while (!bVar5); return; }
59,771
ssz_at
corpus-core[P]colibri-stateless/src/util/ssz.c
ssz_ob_t ssz_at(ssz_ob_t ob, uint32_t index) { ssz_ob_t res = {0}; if (!ob.bytes.data || !ob.bytes.len || !ob.def) return res; uint32_t len = ssz_len(ob); if (index >= len) return res; if (ssz_is_dynamic(ob.def->def.vector.type)) { uint32_t offset = uint32_from_le(ob.bytes.data + index * 4); uint32_t end_offset = index < len - 1 ? uint32_from_le(ob.bytes.data + (index + 1) * 4) : ob.bytes.len; return (ssz_ob_t) { .def = ob.def->def.vector.type, .bytes = bytes(ob.bytes.data + offset, end_offset - offset)}; } size_t element_size = ssz_fixed_length(ob.def->def.vector.type); if (element_size * (index + 1) > ob.bytes.len) return res; return (ssz_ob_t) { .def = ob.def->def.vector.type, .bytes = bytes( ob.bytes.data + index * element_size, element_size)}; }
O0
c
ssz_at: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x50(%rbp) movq %rdi, -0x48(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x40(%rbp) movl %esi, -0x4(%rbp) leaq -0x20(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x231c0 movq -0x40(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0xa05ca movq -0x40(%rbp), %rax cmpl $0x0, (%rax) je 0xa05ca movq -0x40(%rbp), %rax cmpq $0x0, 0x10(%rax) jne 0xa05ea movq -0x50(%rbp), %rax movq -0x20(%rbp), %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rcx movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rcx movq %rcx, 0x10(%rax) jmp 0xa074e movq -0x40(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0xa0830 movl %eax, -0x24(%rbp) movl -0x4(%rbp), %eax cmpl -0x24(%rbp), %eax jb 0xa0637 movq -0x50(%rbp), %rax movq -0x20(%rbp), %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rcx movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rcx movq %rcx, 0x10(%rax) jmp 0xa074e movq -0x40(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rdi callq 0x9f620 testb $0x1, %al jne 0xa0651 jmp 0xa06d4 movq -0x40(%rbp), %rax movq 0x8(%rax), %rdi movl -0x4(%rbp), %eax shll $0x2, %eax movl %eax, %eax addq %rax, %rdi callq 0x9dc10 movl %eax, -0x28(%rbp) movl -0x4(%rbp), %eax movl -0x24(%rbp), %ecx subl $0x1, %ecx cmpl %ecx, %eax jae 0xa0699 movq -0x40(%rbp), %rax movq 0x8(%rax), %rdi movl -0x4(%rbp), %eax addl $0x1, %eax shll $0x2, %eax movl %eax, %eax addq %rax, %rdi callq 0x9dc10 movl %eax, -0x54(%rbp) jmp 0xa06a2 movq -0x40(%rbp), %rax movl (%rax), %eax movl %eax, -0x54(%rbp) movq -0x50(%rbp), %rax movq -0x40(%rbp), %rcx movl -0x54(%rbp), %edx movl %edx, -0x2c(%rbp) movl -0x2c(%rbp), %edx subl -0x28(%rbp), %edx movl %edx, (%rax) movq 0x8(%rcx), %rdx movl -0x28(%rbp), %esi addq %rsi, %rdx movq %rdx, 0x8(%rax) movq 0x10(%rcx), %rcx movq 0x10(%rcx), %rcx movq %rcx, 0x10(%rax) jmp 0xa074e movq -0x40(%rbp), %rax movq 0x10(%rax), %rax movq 0x10(%rax), %rdi callq 0x9f6c0 movq -0x40(%rbp), %rcx movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movl -0x4(%rbp), %edx addl $0x1, %edx movl %edx, %edx imulq %rdx, %rax movl (%rcx), %ecx cmpq %rcx, %rax jbe 0xa0721 movq -0x50(%rbp), %rax movq -0x20(%rbp), %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rcx movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rcx movq %rcx, 0x10(%rax) jmp 0xa074e movq -0x50(%rbp), %rax movq -0x40(%rbp), %rcx movq -0x38(%rbp), %rdx movl %edx, (%rax) movq 0x8(%rcx), %rdx movl -0x4(%rbp), %esi imulq -0x38(%rbp), %rsi addq %rsi, %rdx movq %rdx, 0x8(%rax) movq 0x10(%rcx), %rcx movq 0x10(%rcx), %rcx movq %rcx, 0x10(%rax) movq -0x48(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopl (%rax,%rax)
ssz_at: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_50], rdi mov [rbp+var_48], rdi lea rax, [rbp+arg_0] mov [rbp+var_40], rax mov [rbp+var_4], esi lea rdi, [rbp+var_20] xor esi, esi mov edx, 18h call _memset mov rax, [rbp+var_40] cmp qword ptr [rax+8], 0 jz short loc_A05CA mov rax, [rbp+var_40] cmp dword ptr [rax], 0 jz short loc_A05CA mov rax, [rbp+var_40] cmp qword ptr [rax+10h], 0 jnz short loc_A05EA loc_A05CA: mov rax, [rbp+var_50] mov rcx, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_18] mov [rax+8], rcx mov rcx, [rbp+var_10] mov [rax+10h], rcx jmp loc_A074E loc_A05EA: mov rax, [rbp+var_40] mov rcx, [rax] mov [rsp+70h+var_70], rcx mov rcx, [rax+8] mov [rsp+70h+var_68], rcx mov rax, [rax+10h] mov [rsp+70h+var_60], rax call ssz_len mov [rbp+var_24], eax mov eax, [rbp+var_4] cmp eax, [rbp+var_24] jb short loc_A0637 mov rax, [rbp+var_50] mov rcx, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_18] mov [rax+8], rcx mov rcx, [rbp+var_10] mov [rax+10h], rcx jmp loc_A074E loc_A0637: mov rax, [rbp+var_40] mov rax, [rax+10h] mov rdi, [rax+10h] call ssz_is_dynamic test al, 1 jnz short loc_A0651 jmp loc_A06D4 loc_A0651: mov rax, [rbp+var_40] mov rdi, [rax+8] mov eax, [rbp+var_4] shl eax, 2 mov eax, eax add rdi, rax call uint32_from_le mov [rbp+var_28], eax mov eax, [rbp+var_4] mov ecx, [rbp+var_24] sub ecx, 1 cmp eax, ecx jnb short loc_A0699 mov rax, [rbp+var_40] mov rdi, [rax+8] mov eax, [rbp+var_4] add eax, 1 shl eax, 2 mov eax, eax add rdi, rax call uint32_from_le mov [rbp+var_54], eax jmp short loc_A06A2 loc_A0699: mov rax, [rbp+var_40] mov eax, [rax] mov [rbp+var_54], eax loc_A06A2: mov rax, [rbp+var_50] mov rcx, [rbp+var_40] mov edx, [rbp+var_54] mov [rbp+var_2C], edx mov edx, [rbp+var_2C] sub edx, [rbp+var_28] mov [rax], edx mov rdx, [rcx+8] mov esi, [rbp+var_28] add rdx, rsi mov [rax+8], rdx mov rcx, [rcx+10h] mov rcx, [rcx+10h] mov [rax+10h], rcx jmp short loc_A074E loc_A06D4: mov rax, [rbp+var_40] mov rax, [rax+10h] mov rdi, [rax+10h] call ssz_fixed_length mov rcx, [rbp+var_40] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov edx, [rbp+var_4] add edx, 1 mov edx, edx imul rax, rdx mov ecx, [rcx] cmp rax, rcx jbe short loc_A0721 mov rax, [rbp+var_50] mov rcx, [rbp+var_20] mov [rax], rcx mov rcx, [rbp+var_18] mov [rax+8], rcx mov rcx, [rbp+var_10] mov [rax+10h], rcx jmp short loc_A074E loc_A0721: mov rax, [rbp+var_50] mov rcx, [rbp+var_40] mov rdx, [rbp+var_38] mov [rax], edx mov rdx, [rcx+8] mov esi, [rbp+var_4] imul rsi, [rbp+var_38] add rdx, rsi mov [rax+8], rdx mov rcx, [rcx+10h] mov rcx, [rcx+10h] mov [rax+10h], rcx loc_A074E: mov rax, [rbp+var_48] add rsp, 70h pop rbp retn
long long ssz_at( long long a1, unsigned int a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, long long a7, long long a8, long long a9) { int v9; // edx int v10; // r8d int v11; // r9d int v13; // [rsp+1Ch] [rbp-54h] long long v14; // [rsp+38h] [rbp-38h] unsigned int v15; // [rsp+48h] [rbp-28h] unsigned int v16; // [rsp+4Ch] [rbp-24h] long long v17; // [rsp+50h] [rbp-20h] BYREF long long v18; // [rsp+58h] [rbp-18h] long long v19; // [rsp+60h] [rbp-10h] unsigned int v20; // [rsp+6Ch] [rbp-4h] v20 = a2; memset(&v17, 0LL, 24LL); if ( a8 && (_DWORD)a7 && a9 ) { v16 = ssz_len((unsigned int)&v17, 0, v9, a8, v10, v11, a7, a8, a9); if ( v20 < v16 ) { if ( (ssz_is_dynamic(*(_QWORD *)(a9 + 16)) & 1) != 0 ) { v15 = uint32_from_le((unsigned __int8 *)(4 * v20 + a8)); if ( v20 >= v16 - 1 ) v13 = a7; else v13 = uint32_from_le((unsigned __int8 *)(4 * (v20 + 1) + a8)); *(_DWORD *)a1 = v13 - v15; *(_QWORD *)(a1 + 8) = v15 + a8; *(_QWORD *)(a1 + 16) = *(_QWORD *)(a9 + 16); } else { v14 = ssz_fixed_length(*(_DWORD **)(a9 + 16)); if ( (unsigned long long)(v20 + 1) * v14 <= (unsigned int)a7 ) { *(_DWORD *)a1 = v14; *(_QWORD *)(a1 + 8) = v14 * v20 + a8; *(_QWORD *)(a1 + 16) = *(_QWORD *)(a9 + 16); } else { *(_QWORD *)a1 = v17; *(_QWORD *)(a1 + 8) = v18; *(_QWORD *)(a1 + 16) = v19; } } } else { *(_QWORD *)a1 = v17; *(_QWORD *)(a1 + 8) = v18; *(_QWORD *)(a1 + 16) = v19; } } else { *(_QWORD *)a1 = v17; *(_QWORD *)(a1 + 8) = v18; *(_QWORD *)(a1 + 16) = v19; } return a1; }
ssz_at: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x50],RDI MOV qword ptr [RBP + -0x48],RDI LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0x4],ESI LEA RDI,[RBP + -0x20] XOR ESI,ESI MOV EDX,0x18 CALL 0x001231c0 MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX + 0x8],0x0 JZ 0x001a05ca MOV RAX,qword ptr [RBP + -0x40] CMP dword ptr [RAX],0x0 JZ 0x001a05ca MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX + 0x10],0x0 JNZ 0x001a05ea LAB_001a05ca: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001a074e LAB_001a05ea: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x001a0830 MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x4] CMP EAX,dword ptr [RBP + -0x24] JC 0x001a0637 MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001a074e LAB_001a0637: MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0019f620 TEST AL,0x1 JNZ 0x001a0651 JMP 0x001a06d4 LAB_001a0651: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0x8] MOV EAX,dword ptr [RBP + -0x4] SHL EAX,0x2 MOV EAX,EAX ADD RDI,RAX CALL 0x0019dc10 MOV dword ptr [RBP + -0x28],EAX MOV EAX,dword ptr [RBP + -0x4] MOV ECX,dword ptr [RBP + -0x24] SUB ECX,0x1 CMP EAX,ECX JNC 0x001a0699 MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0x8] MOV EAX,dword ptr [RBP + -0x4] ADD EAX,0x1 SHL EAX,0x2 MOV EAX,EAX ADD RDI,RAX CALL 0x0019dc10 MOV dword ptr [RBP + -0x54],EAX JMP 0x001a06a2 LAB_001a0699: MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x54],EAX LAB_001a06a2: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x54] MOV dword ptr [RBP + -0x2c],EDX MOV EDX,dword ptr [RBP + -0x2c] SUB EDX,dword ptr [RBP + -0x28] MOV dword ptr [RAX],EDX MOV RDX,qword ptr [RCX + 0x8] MOV ESI,dword ptr [RBP + -0x28] ADD RDX,RSI MOV qword ptr [RAX + 0x8],RDX MOV RCX,qword ptr [RCX + 0x10] MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001a074e LAB_001a06d4: MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x10] MOV RDI,qword ptr [RAX + 0x10] CALL 0x0019f6c0 MOV RCX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV EDX,dword ptr [RBP + -0x4] ADD EDX,0x1 MOV EDX,EDX IMUL RAX,RDX MOV ECX,dword ptr [RCX] CMP RAX,RCX JBE 0x001a0721 MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX JMP 0x001a074e LAB_001a0721: MOV RAX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],EDX MOV RDX,qword ptr [RCX + 0x8] MOV ESI,dword ptr [RBP + -0x4] IMUL RSI,qword ptr [RBP + -0x38] ADD RDX,RSI MOV qword ptr [RAX + 0x8],RDX MOV RCX,qword ptr [RCX + 0x10] MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RAX + 0x10],RCX LAB_001a074e: MOV RAX,qword ptr [RBP + -0x48] ADD RSP,0x70 POP RBP RET
int * ssz_at(int *param_1,uint param_2) { uint uVar1; uint uVar2; ulong uVar3; long lVar4; uint in_stack_00000008; long in_stack_00000010; long in_stack_00000018; uint local_5c; int8 local_28; int8 local_20; int8 local_18; uint local_c; local_c = param_2; memset(&local_28,0,0x18); if (((in_stack_00000010 == 0) || (in_stack_00000008 == 0)) || (in_stack_00000018 == 0)) { *(int8 *)param_1 = local_28; *(int8 *)(param_1 + 2) = local_20; *(int8 *)(param_1 + 4) = local_18; } else { uVar1 = ssz_len(); if (local_c < uVar1) { uVar3 = ssz_is_dynamic(*(int8 *)(in_stack_00000018 + 0x10)); if ((uVar3 & 1) == 0) { lVar4 = ssz_fixed_length(*(int8 *)(in_stack_00000018 + 0x10)); uVar3 = lVar4 * (ulong)(local_c + 1); if (uVar3 < in_stack_00000008 || uVar3 - in_stack_00000008 == 0) { *param_1 = (int)lVar4; *(ulong *)(param_1 + 2) = in_stack_00000010 + (ulong)local_c * lVar4; *(int8 *)(param_1 + 4) = *(int8 *)(in_stack_00000018 + 0x10); } else { *(int8 *)param_1 = local_28; *(int8 *)(param_1 + 2) = local_20; *(int8 *)(param_1 + 4) = local_18; } } else { uVar2 = uint32_from_le(in_stack_00000010 + (ulong)(local_c << 2)); if (local_c < uVar1 - 1) { local_5c = uint32_from_le(in_stack_00000010 + (ulong)((local_c + 1) * 4)); } else { local_5c = in_stack_00000008; } *param_1 = local_5c - uVar2; *(ulong *)(param_1 + 2) = in_stack_00000010 + (ulong)uVar2; *(int8 *)(param_1 + 4) = *(int8 *)(in_stack_00000018 + 0x10); } } else { *(int8 *)param_1 = local_28; *(int8 *)(param_1 + 2) = local_20; *(int8 *)(param_1 + 4) = local_18; } } return param_1; }
59,772
ssz_at
corpus-core[P]colibri-stateless/src/util/ssz.c
ssz_ob_t ssz_at(ssz_ob_t ob, uint32_t index) { ssz_ob_t res = {0}; if (!ob.bytes.data || !ob.bytes.len || !ob.def) return res; uint32_t len = ssz_len(ob); if (index >= len) return res; if (ssz_is_dynamic(ob.def->def.vector.type)) { uint32_t offset = uint32_from_le(ob.bytes.data + index * 4); uint32_t end_offset = index < len - 1 ? uint32_from_le(ob.bytes.data + (index + 1) * 4) : ob.bytes.len; return (ssz_ob_t) { .def = ob.def->def.vector.type, .bytes = bytes(ob.bytes.data + offset, end_offset - offset)}; } size_t element_size = ssz_fixed_length(ob.def->def.vector.type); if (element_size * (index + 1) > ob.bytes.len) return res; return (ssz_ob_t) { .def = ob.def->def.vector.type, .bytes = bytes( ob.bytes.data + index * element_size, element_size)}; }
O2
c
ssz_at: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x68(%rsp), %r15 testq %r15, %r15 setne %al movl 0x60(%rsp), %ebp testl %ebp, %ebp setne %cl andb %al, %cl movq 0x70(%rsp), %r13 testq %r13, %r13 setne %al testb %al, %cl je 0x4c58c movl %esi, %r14d leaq 0x60(%rsp), %rax movq 0x10(%rax), %rcx movq %rcx, 0x10(%rsp) movups (%rax), %xmm0 movups %xmm0, (%rsp) callq 0x4c626 cmpl %r14d, %eax jbe 0x4c58c movl %eax, %r12d movq 0x10(%r13), %rdi movq %rdi, 0x20(%rsp) callq 0x4bbf0 testb %al, %al je 0x4c56f leal (,%r14,4), %eax movq %rax, 0x20(%rsp) leaq (%r15,%rax), %rdi callq 0x4affd decl %r12d cmpl %r14d, %r12d jbe 0x4c558 movq 0x20(%rsp), %rdi addl $0x4, %edi addq %r15, %rdi movl %eax, %r14d callq 0x4affd movl %eax, %ebp movl %r14d, %eax subl %eax, %ebp movl %ebp, (%rbx) movl %eax, %eax addq %rax, %r15 movq %r15, 0x8(%rbx) movq 0x10(%r13), %rax movq %rax, 0x10(%rbx) jmp 0x4c597 movl %ebp, %r12d movq 0x20(%rsp), %r13 movq %r13, %rdi callq 0x4bc4b leal 0x1(%r14), %ecx imulq %rax, %rcx cmpq %r12, %rcx jbe 0x4c5a9 xorps %xmm0, %xmm0 movups %xmm0, (%rbx) andq $0x0, 0x10(%rbx) movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, (%rbx) movl %r14d, %ecx imulq %rax, %rcx addq %rcx, %r15 movq %r15, 0x8(%rbx) movq %r13, 0x10(%rbx) jmp 0x4c597
ssz_at: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov r15, [rsp+58h+arg_8] test r15, r15 setnz al mov ebp, [rsp+58h+arg_0] test ebp, ebp setnz cl and cl, al mov r13, [rsp+58h+arg_10] test r13, r13 setnz al test cl, al jz loc_4C58C mov r14d, esi lea rax, [rsp+58h+arg_0] mov rcx, [rax+10h] mov [rsp+58h+var_48], rcx movups xmm0, xmmword ptr [rax] movups [rsp+58h+var_58], xmm0 call ssz_len cmp eax, r14d jbe short loc_4C58C mov r12d, eax mov rdi, [r13+10h] mov [rsp+58h+var_38], rdi call ssz_is_dynamic test al, al jz short loc_4C56F lea eax, ds:0[r14*4] mov [rsp+58h+var_38], rax lea rdi, [r15+rax] call uint32_from_le dec r12d cmp r12d, r14d jbe short loc_4C558 mov rdi, [rsp+58h+var_38] add edi, 4 add rdi, r15 mov r14d, eax call uint32_from_le mov ebp, eax mov eax, r14d loc_4C558: sub ebp, eax mov [rbx], ebp mov eax, eax add r15, rax mov [rbx+8], r15 mov rax, [r13+10h] mov [rbx+10h], rax jmp short loc_4C597 loc_4C56F: mov r12d, ebp mov r13, [rsp+58h+var_38] mov rdi, r13 call ssz_fixed_length lea ecx, [r14+1] imul rcx, rax cmp rcx, r12 jbe short loc_4C5A9 loc_4C58C: xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 and qword ptr [rbx+10h], 0 loc_4C597: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4C5A9: mov [rbx], eax mov ecx, r14d imul rcx, rax add r15, rcx mov [rbx+8], r15 mov [rbx+10h], r13 jmp short loc_4C597
long long ssz_at( long long a1, unsigned int a2, int a3, long long a4, int a5, int a6, unsigned int a7, long long a8, long long a9) { int v9; // ebp unsigned int v10; // eax unsigned int v11; // r12d unsigned int v12; // eax unsigned int v13; // r14d long long v14; // rax _DWORD *v16; // [rsp+20h] [rbp-38h] long long v17; // [rsp+20h] [rbp-38h] v9 = a7; if ( a9 == 0 || a8 == 0 || a7 == 0 || (v10 = ssz_len(a1, a2, a3, a9, a5, a6, a7, a8, a9), v10 <= a2) ) { LABEL_8: *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; return a1; } v11 = v10; v16 = *(_DWORD **)(a9 + 16); if ( !(unsigned __int8)ssz_is_dynamic((long long)v16) ) { v14 = ssz_fixed_length(v16); if ( v14 * (unsigned long long)(a2 + 1) <= a7 ) { *(_DWORD *)a1 = v14; *(_QWORD *)(a1 + 8) = v14 * a2 + a8; *(_QWORD *)(a1 + 16) = v16; return a1; } goto LABEL_8; } v17 = 4 * a2; v12 = uint32_from_le((unsigned int *)(a8 + v17)); if ( v11 - 1 > a2 ) { v13 = v12; v9 = uint32_from_le((unsigned int *)(a8 + (unsigned int)(v17 + 4))); v12 = v13; } *(_DWORD *)a1 = v9 - v12; *(_QWORD *)(a1 + 8) = v12 + a8; *(_QWORD *)(a1 + 16) = *(_QWORD *)(a9 + 16); return a1; }
ssz_at: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV R15,qword ptr [RSP + 0x68] TEST R15,R15 SETNZ AL MOV EBP,dword ptr [RSP + 0x60] TEST EBP,EBP SETNZ CL AND CL,AL MOV R13,qword ptr [RSP + 0x70] TEST R13,R13 SETNZ AL TEST CL,AL JZ 0x0014c58c MOV R14D,ESI LEA RAX,[RSP + 0x60] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVUPS xmmword ptr [RSP],XMM0 CALL 0x0014c626 CMP EAX,R14D JBE 0x0014c58c MOV R12D,EAX MOV RDI,qword ptr [R13 + 0x10] MOV qword ptr [RSP + 0x20],RDI CALL 0x0014bbf0 TEST AL,AL JZ 0x0014c56f LEA EAX,[R14*0x4] MOV qword ptr [RSP + 0x20],RAX LEA RDI,[R15 + RAX*0x1] CALL 0x0014affd DEC R12D CMP R12D,R14D JBE 0x0014c558 MOV RDI,qword ptr [RSP + 0x20] ADD EDI,0x4 ADD RDI,R15 MOV R14D,EAX CALL 0x0014affd MOV EBP,EAX MOV EAX,R14D LAB_0014c558: SUB EBP,EAX MOV dword ptr [RBX],EBP MOV EAX,EAX ADD R15,RAX MOV qword ptr [RBX + 0x8],R15 MOV RAX,qword ptr [R13 + 0x10] MOV qword ptr [RBX + 0x10],RAX JMP 0x0014c597 LAB_0014c56f: MOV R12D,EBP MOV R13,qword ptr [RSP + 0x20] MOV RDI,R13 CALL 0x0014bc4b LEA ECX,[R14 + 0x1] IMUL RCX,RAX CMP RCX,R12 JBE 0x0014c5a9 LAB_0014c58c: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 AND qword ptr [RBX + 0x10],0x0 LAB_0014c597: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014c5a9: MOV dword ptr [RBX],EAX MOV ECX,R14D IMUL RCX,RAX ADD R15,RCX MOV qword ptr [RBX + 0x8],R15 MOV qword ptr [RBX + 0x10],R13 JMP 0x0014c597
int * ssz_at(int *param_1,uint param_2) { int8 uVar1; char cVar2; uint uVar3; uint uVar4; long lVar5; ulong uVar6; uint in_stack_00000008; long in_stack_00000010; long in_stack_00000018; if (((in_stack_00000008 != 0 && in_stack_00000010 != 0) && in_stack_00000018 != 0) && (uVar3 = ssz_len(), param_2 < uVar3)) { uVar1 = *(int8 *)(in_stack_00000018 + 0x10); cVar2 = ssz_is_dynamic(); if (cVar2 != '\0') { uVar4 = uint32_from_le(in_stack_00000010 + (ulong)(param_2 * 4)); if (param_2 < uVar3 - 1) { in_stack_00000008 = uint32_from_le((ulong)(param_2 * 4 + 4) + in_stack_00000010); } *param_1 = in_stack_00000008 - uVar4; *(ulong *)(param_1 + 2) = in_stack_00000010 + (ulong)uVar4; *(int8 *)(param_1 + 4) = *(int8 *)(in_stack_00000018 + 0x10); return param_1; } lVar5 = ssz_fixed_length(uVar1); uVar6 = (ulong)(param_2 + 1) * lVar5; if (uVar6 < in_stack_00000008 || uVar6 - in_stack_00000008 == 0) { *param_1 = (int)lVar5; *(ulong *)(param_1 + 2) = in_stack_00000010 + (ulong)param_2 * lVar5; *(int8 *)(param_1 + 4) = uVar1; return param_1; } } param_1[0] = 0; param_1[1] = 0; param_1[2] = 0; param_1[3] = 0; param_1[4] = 0; param_1[5] = 0; return param_1; }
59,773
unlink_block
eloqsql/mysys/mf_keycache.c
static void unlink_block(SIMPLE_KEY_CACHE_CB *keycache, BLOCK_LINK *block) { DBUG_ASSERT((block->status & ~BLOCK_CHANGED) == (BLOCK_READ | BLOCK_IN_USE)); DBUG_ASSERT(block->hash_link); /*backptr to block NULL from free_block()*/ DBUG_ASSERT(!block->requests); DBUG_ASSERT(block->prev_changed && *block->prev_changed == block); DBUG_ASSERT(block->next_used && block->prev_used && (block->next_used->prev_used == &block->next_used) && (*block->prev_used == block)); if (block->next_used == block) /* The list contains only one member */ keycache->used_last= keycache->used_ins= NULL; else { block->next_used->prev_used= block->prev_used; *block->prev_used= block->next_used; if (keycache->used_last == block) keycache->used_last= STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used); if (keycache->used_ins == block) keycache->used_ins=STRUCT_PTR(BLOCK_LINK, next_used, block->prev_used); } block->next_used= NULL; #ifdef DBUG_ASSERT_EXISTS /* This makes it easier to see it's not in a chain during debugging. And some DBUG_ASSERT() rely on it. */ block->prev_used= NULL; #endif KEYCACHE_THREAD_TRACE("unlink_block"); #if defined(KEYCACHE_DEBUG) KEYCACHE_DBUG_ASSERT(keycache->blocks_available != 0); keycache->blocks_available--; KEYCACHE_DBUG_PRINT("unlink_block", ("unlinked block %u status=%x #requests=%u #available=%u", BLOCK_NUMBER(block), block->status, block->requests, keycache->blocks_available)); #endif }
O0
c
unlink_block: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0xe4cde jmp 0xe4ce0 jmp 0xe4ce2 jmp 0xe4ce4 jmp 0xe4ce6 jmp 0xe4ce8 jmp 0xe4cea jmp 0xe4cec jmp 0xe4cee movq -0x10(%rbp), %rax movq (%rax), %rax cmpq -0x10(%rbp), %rax jne 0xe4d1b movq -0x8(%rbp), %rax movq $0x0, 0xb8(%rax) movq -0x8(%rbp), %rax movq $0x0, 0xb0(%rax) jmp 0xe4d8a movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x10(%rbp), %rax movq (%rax), %rax movq %rcx, 0x8(%rax) movq -0x10(%rbp), %rax movq (%rax), %rcx movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rcx, (%rax) movq -0x8(%rbp), %rax movq 0xb0(%rax), %rax cmpq -0x10(%rbp), %rax jne 0xe4d64 movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xb0(%rax) movq -0x8(%rbp), %rax movq 0xb8(%rax), %rax cmpq -0x10(%rbp), %rax jne 0xe4d88 movq -0x10(%rbp), %rax movq 0x8(%rax), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xb8(%rax) jmp 0xe4d8a movq -0x10(%rbp), %rax movq $0x0, (%rax) popq %rbp retq nopw (%rax,%rax)
unlink_block_0: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_E4CDE: jmp short $+2 loc_E4CE0: jmp short $+2 loc_E4CE2: jmp short $+2 loc_E4CE4: jmp short $+2 loc_E4CE6: jmp short $+2 loc_E4CE8: jmp short $+2 loc_E4CEA: jmp short $+2 loc_E4CEC: jmp short $+2 loc_E4CEE: mov rax, [rbp+var_10] mov rax, [rax] cmp rax, [rbp+var_10] jnz short loc_E4D1B mov rax, [rbp+var_8] mov qword ptr [rax+0B8h], 0 mov rax, [rbp+var_8] mov qword ptr [rax+0B0h], 0 jmp short loc_E4D8A loc_E4D1B: mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_10] mov rax, [rax] mov [rax+8], rcx mov rax, [rbp+var_10] mov rcx, [rax] mov rax, [rbp+var_10] mov rax, [rax+8] mov [rax], rcx mov rax, [rbp+var_8] mov rax, [rax+0B0h] cmp rax, [rbp+var_10] jnz short loc_E4D64 mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_8] mov [rax+0B0h], rcx loc_E4D64: mov rax, [rbp+var_8] mov rax, [rax+0B8h] cmp rax, [rbp+var_10] jnz short loc_E4D88 mov rax, [rbp+var_10] mov rcx, [rax+8] mov rax, [rbp+var_8] mov [rax+0B8h], rcx loc_E4D88: jmp short $+2 loc_E4D8A: mov rax, [rbp+var_10] mov qword ptr [rax], 0 pop rbp retn
_QWORD * unlink_block_0(long long a1, _QWORD *a2) { _QWORD *result; // rax if ( (_QWORD *)*a2 == a2 ) { *(_QWORD *)(a1 + 184) = 0LL; *(_QWORD *)(a1 + 176) = 0LL; } else { *(_QWORD *)(*a2 + 8LL) = a2[1]; *(_QWORD *)a2[1] = *a2; if ( *(_QWORD **)(a1 + 176) == a2 ) *(_QWORD *)(a1 + 176) = a2[1]; if ( *(_QWORD **)(a1 + 184) == a2 ) *(_QWORD *)(a1 + 184) = a2[1]; } result = a2; *a2 = 0LL; return result; }
unlink_block: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x001e4cde LAB_001e4cde: JMP 0x001e4ce0 LAB_001e4ce0: JMP 0x001e4ce2 LAB_001e4ce2: JMP 0x001e4ce4 LAB_001e4ce4: JMP 0x001e4ce6 LAB_001e4ce6: JMP 0x001e4ce8 LAB_001e4ce8: JMP 0x001e4cea LAB_001e4cea: JMP 0x001e4cec LAB_001e4cec: JMP 0x001e4cee LAB_001e4cee: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e4d1b MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xb8],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xb0],0x0 JMP 0x001e4d8a LAB_001e4d1b: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xb0] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e4d64 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xb0],RCX LAB_001e4d64: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xb8] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001e4d88 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0xb8],RCX LAB_001e4d88: JMP 0x001e4d8a LAB_001e4d8a: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],0x0 POP RBP RET
void unlink_block(long param_1,long *param_2) { if ((long *)*param_2 == param_2) { *(int8 *)(param_1 + 0xb8) = 0; *(int8 *)(param_1 + 0xb0) = 0; } else { *(long *)(*param_2 + 8) = param_2[1]; *(long *)param_2[1] = *param_2; if (*(long **)(param_1 + 0xb0) == param_2) { *(long *)(param_1 + 0xb0) = param_2[1]; } if (*(long **)(param_1 + 0xb8) == param_2) { *(long *)(param_1 + 0xb8) = param_2[1]; } } *param_2 = 0; return; }
59,774
CLI::App::set_help_flag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
MikePodsytnik[P]TCRtrie/build_O2/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_INLINE Option *App::set_help_flag(std::string flag_name, const std::string &help_description) { // take flag_description by const reference otherwise add_flag tries to assign to help_description if(help_ptr_ != nullptr) { remove_option(help_ptr_); help_ptr_ = nullptr; } // Empty name will simply remove the help flag if(!flag_name.empty()) { help_ptr_ = add_flag(flag_name, help_description); help_ptr_->configurable(false); } return help_ptr_; }
O2
cpp
CLI::App::set_help_flag(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq 0x130(%rdi), %rsi testq %rsi, %rsi je 0x124b4 movq %rbx, %rdi callq 0x12b88 andq $0x0, 0x130(%rbx) cmpq $0x0, 0x8(%r15) je 0x124f7 leaq 0x8(%rsp), %r12 movq %r12, %rdi movq %r15, %rsi callq 0x75e0 movq %rbx, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x12c32 movq %rax, 0x130(%rbx) leaq 0x8(%rsp), %rdi callq 0x7860 movq 0x130(%rbx), %rax movb $0x0, 0x23(%rax) jmp 0x124f9 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x7860 movq %rbx, %rdi callq 0x7770
_ZN3CLI3App13set_help_flagENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS6_: push r15; char push r14; int push r12; int push rbx; int sub rsp, 28h mov r14, rdx mov r15, rsi mov rbx, rdi mov rsi, [rdi+130h]; CLI::Option * test rsi, rsi jz short loc_124B4 mov rdi, rbx; this call _ZN3CLI3App13remove_optionEPNS_6OptionE; CLI::App::remove_option(CLI::Option *) and qword ptr [rbx+130h], 0 loc_124B4: cmp qword ptr [r15+8], 0 jz short loc_124F7 lea r12, [rsp+48h+var_40] mov rdi, r12 mov rsi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) mov rdi, rbx; this mov rsi, r12 mov rdx, r14 call _ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_ mov [rbx+130h], rax lea rdi, [rsp+48h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rax, [rbx+130h] mov byte ptr [rax+23h], 0 jmp short loc_124F9 loc_124F7: xor eax, eax loc_124F9: add rsp, 28h pop rbx pop r12 pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
long long CLI::App::set_help_flag(CLI::App *this, long long a2) { CLI::Option *v3; // rsi long long result; // rax int v5; // [rsp+0h] [rbp-48h] int v6[6]; // [rsp+8h] [rbp-40h] BYREF char v7; // [rsp+20h] [rbp-28h] int v8; // [rsp+28h] [rbp-20h] int v9; // [rsp+30h] [rbp-18h] int v10; // [rsp+38h] [rbp-10h] char v11; // [rsp+40h] [rbp-8h] v3 = (CLI::Option *)*((_QWORD *)this + 38); if ( v3 ) { CLI::App::remove_option(this, v3); *((_QWORD *)this + 38) = 0LL; } if ( !*(_QWORD *)(a2 + 8) ) return 0LL; std::string::basic_string(v6); *((_QWORD *)this + 38) = ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_( this, v5, v6[0], v6[2], v6[4], v7, v8, v9, v10, v11); std::string::~string(v6); result = *((_QWORD *)this + 38); *(_BYTE *)(result + 35) = 0; return result; }
set_help_flag: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV RSI,qword ptr [RDI + 0x130] TEST RSI,RSI JZ 0x001124b4 MOV RDI,RBX CALL 0x00112b88 AND qword ptr [RBX + 0x130],0x0 LAB_001124b4: CMP qword ptr [R15 + 0x8],0x0 JZ 0x001124f7 LEA R12,[RSP + 0x8] MOV RDI,R12 MOV RSI,R15 CALL 0x001075e0 LAB_001124cb: MOV RDI,RBX MOV RSI,R12 MOV RDX,R14 CALL 0x00112c32 LAB_001124d9: MOV qword ptr [RBX + 0x130],RAX LEA RDI,[RSP + 0x8] CALL 0x00107860 MOV RAX,qword ptr [RBX + 0x130] MOV byte ptr [RAX + 0x23],0x0 JMP 0x001124f9 LAB_001124f7: XOR EAX,EAX LAB_001124f9: ADD RSP,0x28 POP RBX POP R12 POP R14 POP R15 RET
/* CLI::App::set_help_flag(std::__cxx11::string, std::__cxx11::string const&) */ long __thiscall CLI::App::set_help_flag(App *this,string *param_2,int8 param_3) { int8 uVar1; long lVar2; string local_40 [32]; if (*(Option **)(this + 0x130) != (Option *)0x0) { remove_option(this,*(Option **)(this + 0x130)); *(int8 *)(this + 0x130) = 0; } if (*(long *)(param_2 + 8) == 0) { lVar2 = 0; } else { std::__cxx11::string::string(local_40,param_2); /* try { // try from 001124cb to 001124d8 has its CatchHandler @ 00112505 */ uVar1 = _ZN3CLI3App8add_flagIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEETnNSt9enable_ifIXaasr3std8is_constIT_EE5valuesr3std16is_constructibleIS7_SA_EE5valueENS_6detail7enablerEE4typeELSC_0EEEPNS_6OptionES7_RSA_ (this,local_40,param_3); *(int8 *)(this + 0x130) = uVar1; std::__cxx11::string::~string(local_40); lVar2 = *(long *)(this + 0x130); *(int1 *)(lVar2 + 0x23) = 0; } return lVar2; }
59,775
my_strnncollsp_latin1_de
eloqsql/strings/ctype-latin1.c
static int my_strnncollsp_latin1_de(CHARSET_INFO *cs __attribute__((unused)), const uchar *a, size_t a_length, const uchar *b, size_t b_length) { const uchar *a_end= a + a_length, *b_end= b + b_length; uchar a_char, a_extend= 0, b_char, b_extend= 0; while ((a < a_end || a_extend) && (b < b_end || b_extend)) { if (a_extend) { a_char=a_extend; a_extend= 0; } else { a_extend= combo2map[*a]; a_char= combo1map[*a++]; } if (b_extend) { b_char= b_extend; b_extend= 0; } else { b_extend= combo2map[*b]; b_char= combo1map[*b++]; } if (a_char != b_char) return (int) a_char - (int) b_char; } /* Check if double character last */ if (a_extend) return 1; if (b_extend) return -1; if (a < a_end) return my_strnncollsp_padspace_bin(a, a_end - a); if (b < b_end) return -my_strnncollsp_padspace_bin(b, b_end - b); return 0; }
O3
c
my_strnncollsp_latin1_de: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax addq %rsi, %rdx addq %rcx, %r8 xorl %edi, %edi leaq 0x16c1e5(%rip), %rax # 0x1aa2a0 leaq 0x16c0de(%rip), %r9 # 0x1aa1a0 xorl %r10d, %r10d cmpq %rdx, %rsi jb 0x3e0cf testb %dil, %dil je 0x3e11f cmpq %r8, %rcx jb 0x3e0d9 testb %r10b, %r10b je 0x3e12b testb %dil, %dil je 0x3e0e5 movl %edi, %r11d xorl %edi, %edi jmp 0x3e0f4 movzbl (%rsi), %r11d movb (%r11,%rax), %dil incq %rsi movb (%r11,%r9), %r11b testb %r10b, %r10b je 0x3e101 movl %r10d, %ebx xorl %r10d, %r10d jmp 0x3e10f movzbl (%rcx), %ebx movb (%rbx,%rax), %r10b incq %rcx movb (%rbx,%r9), %bl cmpb %bl, %r11b je 0x3e0c5 movzbl %bl, %ecx movzbl %r11b, %eax subl %ecx, %eax jmp 0x3e165 movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb %r10b, %r10b jne 0x3e165 jmp 0x3e14e movl $0x1, %eax testb %dil, %dil jne 0x3e165 cmpq %rdx, %rsi jae 0x3e14e subq %rsi, %rdx movq %rsi, %rdi movq %rdx, %rsi addq $0x8, %rsp popq %rbx popq %rbp jmp 0x3773d xorl %eax, %eax cmpq %r8, %rcx jae 0x3e165 subq %rcx, %r8 movq %rcx, %rdi movq %r8, %rsi callq 0x3773d negl %eax addq $0x8, %rsp popq %rbx popq %rbp retq
my_strnncollsp_latin1_de: push rbp mov rbp, rsp push rbx push rax add rdx, rsi add r8, rcx xor edi, edi lea rax, combo2map lea r9, combo1map xor r10d, r10d loc_3E0C5: cmp rsi, rdx jb short loc_3E0CF test dil, dil jz short loc_3E11F loc_3E0CF: cmp rcx, r8 jb short loc_3E0D9 test r10b, r10b jz short loc_3E12B loc_3E0D9: test dil, dil jz short loc_3E0E5 mov r11d, edi xor edi, edi jmp short loc_3E0F4 loc_3E0E5: movzx r11d, byte ptr [rsi] mov dil, [r11+rax] inc rsi mov r11b, [r11+r9] loc_3E0F4: test r10b, r10b jz short loc_3E101 mov ebx, r10d xor r10d, r10d jmp short loc_3E10F loc_3E101: movzx ebx, byte ptr [rcx] mov r10b, [rbx+rax] inc rcx mov bl, [rbx+r9] loc_3E10F: cmp r11b, bl jz short loc_3E0C5 movzx ecx, bl movzx eax, r11b sub eax, ecx jmp short loc_3E165 loc_3E11F: mov eax, 0FFFFFFFFh test r10b, r10b jnz short loc_3E165 jmp short loc_3E14E loc_3E12B: mov eax, 1 test dil, dil jnz short loc_3E165 cmp rsi, rdx jnb short loc_3E14E sub rdx, rsi mov rdi, rsi mov rsi, rdx add rsp, 8 pop rbx pop rbp jmp my_strnncollsp_padspace_bin loc_3E14E: xor eax, eax cmp rcx, r8 jnb short loc_3E165 sub r8, rcx mov rdi, rcx mov rsi, r8 call my_strnncollsp_padspace_bin neg eax loc_3E165: add rsp, 8 pop rbx pop rbp retn
long long my_strnncollsp_latin1_de( long long a1, unsigned __int8 *a2, long long a3, unsigned __int8 *a4, long long a5) { unsigned __int8 *v5; // rdx unsigned __int8 *v6; // r8 unsigned __int8 v7; // di unsigned __int8 v8; // r10 unsigned __int8 v9; // r11 long long v10; // r11 unsigned __int8 v11; // bl long long v12; // rbx long long result; // rax v5 = &a2[a3]; v6 = &a4[a5]; v7 = 0; v8 = 0; while ( 1 ) { if ( a2 >= v5 && !v7 ) { result = 0xFFFFFFFFLL; if ( v8 ) return result; goto LABEL_19; } if ( a4 >= v6 && !v8 ) break; if ( v7 ) { v9 = v7; v7 = 0; } else { v10 = *a2; v7 = combo2map[v10]; ++a2; v9 = combo1map[v10]; } if ( v8 ) { v11 = v8; v8 = 0; } else { v12 = *a4; v8 = combo2map[v12]; ++a4; v11 = combo1map[v12]; } if ( v9 != v11 ) return v9 - (unsigned int)v11; } result = 1LL; if ( v7 ) return result; if ( a2 < v5 ) return my_strnncollsp_padspace_bin((long long)a2, v5 - a2); LABEL_19: result = 0LL; if ( a4 < v6 ) return (unsigned int)-my_strnncollsp_padspace_bin((long long)a4, v6 - a4); return result; }
my_strnncollsp_latin1_de: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX ADD RDX,RSI ADD R8,RCX XOR EDI,EDI LEA RAX,[0x2aa2a0] LEA R9,[0x2aa1a0] XOR R10D,R10D LAB_0013e0c5: CMP RSI,RDX JC 0x0013e0cf TEST DIL,DIL JZ 0x0013e11f LAB_0013e0cf: CMP RCX,R8 JC 0x0013e0d9 TEST R10B,R10B JZ 0x0013e12b LAB_0013e0d9: TEST DIL,DIL JZ 0x0013e0e5 MOV R11D,EDI XOR EDI,EDI JMP 0x0013e0f4 LAB_0013e0e5: MOVZX R11D,byte ptr [RSI] MOV DIL,byte ptr [R11 + RAX*0x1] INC RSI MOV R11B,byte ptr [R11 + R9*0x1] LAB_0013e0f4: TEST R10B,R10B JZ 0x0013e101 MOV EBX,R10D XOR R10D,R10D JMP 0x0013e10f LAB_0013e101: MOVZX EBX,byte ptr [RCX] MOV R10B,byte ptr [RBX + RAX*0x1] INC RCX MOV BL,byte ptr [RBX + R9*0x1] LAB_0013e10f: CMP R11B,BL JZ 0x0013e0c5 MOVZX ECX,BL MOVZX EAX,R11B SUB EAX,ECX JMP 0x0013e165 LAB_0013e11f: MOV EAX,0xffffffff TEST R10B,R10B JNZ 0x0013e165 JMP 0x0013e14e LAB_0013e12b: MOV EAX,0x1 TEST DIL,DIL JNZ 0x0013e165 CMP RSI,RDX JNC 0x0013e14e SUB RDX,RSI MOV RDI,RSI MOV RSI,RDX ADD RSP,0x8 POP RBX POP RBP JMP 0x0013773d LAB_0013e14e: XOR EAX,EAX CMP RCX,R8 JNC 0x0013e165 SUB R8,RCX MOV RDI,RCX MOV RSI,R8 CALL 0x0013773d NEG EAX LAB_0013e165: ADD RSP,0x8 POP RBX POP RBP RET
ulong my_strnncollsp_latin1_de (int8 param_1,byte *param_2,long param_3,byte *param_4,long param_5) { int iVar1; ulong uVar2; byte *pbVar3; byte bVar4; byte bVar5; byte *pbVar6; byte bVar7; byte bVar8; pbVar3 = param_2 + param_3; pbVar6 = param_4 + param_5; bVar5 = 0; bVar7 = 0; do { if ((pbVar3 <= param_2) && (bVar5 == 0)) { if (bVar7 != 0) { return 0xffffffff; } LAB_0013e14e: if (pbVar6 <= param_4) { return 0; } iVar1 = my_strnncollsp_padspace_bin(param_4,(long)pbVar6 - (long)param_4); return (ulong)(uint)-iVar1; } if ((pbVar6 <= param_4) && (bVar7 == 0)) { if (bVar5 != 0) { return 1; } if (param_2 < pbVar3) { uVar2 = my_strnncollsp_padspace_bin(param_2,(long)pbVar3 - (long)param_2); return uVar2; } goto LAB_0013e14e; } if (bVar5 == 0) { bVar8 = *param_2; bVar5 = combo2map[bVar8]; param_2 = param_2 + 1; bVar8 = combo1map[bVar8]; } else { bVar8 = bVar5; bVar5 = 0; } if (bVar7 == 0) { bVar4 = *param_4; bVar7 = combo2map[bVar4]; param_4 = param_4 + 1; bVar4 = combo1map[bVar4]; } else { bVar4 = bVar7; bVar7 = 0; } if (bVar8 != bVar4) { return (ulong)((uint)bVar8 - (uint)bVar4); } } while( true ); }
59,776
c4_get_chain_state
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
INTERNAL c4_chain_state_t c4_get_chain_state(chain_id_t chain_id) { c4_chain_state_t state = {0}; char name[100]; storage_plugin_t storage_conf = {0}; #ifdef C4_STATIC_MEMORY // Use static buffer with size limit buffer_t tmp = stack_buffer(state_buffer); #else buffer_t tmp = {0}; #endif c4_get_storage_config(&storage_conf); sprintf(name, "states_%" PRIu64, (uint64_t) chain_id); #ifndef C4_STATIC_MEMORY tmp.allocated = sizeof(c4_trusted_block_t) * storage_conf.max_sync_states; #endif if (storage_conf.get(name, &tmp) && tmp.data.data) { state.blocks = (c4_trusted_block_t*) tmp.data.data; state.len = tmp.data.len / sizeof(c4_trusted_block_t); } return state; }
O0
c
c4_get_chain_state: pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movl %edi, -0x14(%rbp) leaq -0x10(%rbp), %rdi xorl %esi, %esi movl $0x10, %edx callq 0x231c0 leaq -0xa0(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x231c0 leaq -0xb8(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x231c0 leaq -0xa0(%rbp), %rdi callq 0xa4e20 leaq -0x80(%rbp), %rdi movl -0x14(%rbp), %eax movl %eax, %edx leaq 0xb5de8(%rip), %rsi # 0xdc648 movb $0x0, %al callq 0x23510 movl -0x88(%rbp), %eax imulq $0x30, %rax, %rax movl %eax, -0xa8(%rbp) movq -0xa0(%rbp), %rax leaq -0x80(%rbp), %rdi leaq -0xb8(%rbp), %rsi callq *%rax testb $0x1, %al jne 0x26891 jmp 0x268b9 cmpq $0x0, -0xb0(%rbp) je 0x268b9 movq -0xb0(%rbp), %rax movq %rax, -0x10(%rbp) movl -0xb8(%rbp), %eax movl $0x30, %ecx xorl %edx, %edx divq %rcx movl %eax, -0x8(%rbp) movq -0x10(%rbp), %rax movl -0x8(%rbp), %edx addq $0xc0, %rsp popq %rbp retq nopl (%rax)
c4_get_chain_state: push rbp mov rbp, rsp sub rsp, 0C0h mov [rbp+var_14], edi lea rdi, [rbp+var_10] xor esi, esi mov edx, 10h call _memset lea rdi, [rbp+var_A0] xor esi, esi mov edx, 20h ; ' ' call _memset lea rdi, [rbp+var_B8] xor esi, esi mov edx, 18h call _memset lea rdi, [rbp+var_A0] call c4_get_storage_config lea rdi, [rbp+var_80] mov eax, [rbp+var_14] mov edx, eax lea rsi, aStatesLu; "states_%lu" mov al, 0 call _sprintf mov eax, [rbp+var_88] imul rax, 30h ; '0' mov [rbp+var_A8], eax mov rax, [rbp+var_A0] lea rdi, [rbp+var_80] lea rsi, [rbp+var_B8] call rax test al, 1 jnz short loc_26891 jmp short loc_268B9 loc_26891: cmp [rbp+var_B0], 0 jz short loc_268B9 mov rax, [rbp+var_B0] mov [rbp+var_10], rax mov eax, [rbp+var_B8] mov ecx, 30h ; '0' xor edx, edx div rcx mov [rbp+var_8], eax loc_268B9: mov rax, [rbp+var_10] mov edx, [rbp+var_8] add rsp, 0C0h pop rbp retn
long long c4_get_chain_state(unsigned int a1) { unsigned int v2; // [rsp+8h] [rbp-B8h] BYREF long long v3; // [rsp+10h] [rbp-B0h] int v4; // [rsp+18h] [rbp-A8h] _QWORD v5[3]; // [rsp+20h] [rbp-A0h] BYREF int v6; // [rsp+38h] [rbp-88h] _BYTE v7[108]; // [rsp+40h] [rbp-80h] BYREF unsigned int v8; // [rsp+ACh] [rbp-14h] long long v9; // [rsp+B0h] [rbp-10h] BYREF unsigned int v10; // [rsp+B8h] [rbp-8h] v8 = a1; memset(&v9, 0LL, 16LL); memset(v5, 0LL, 32LL); memset(&v2, 0LL, 24LL); c4_get_storage_config(v5); sprintf(v7, "states_%lu", v8); v4 = 48 * v6; if ( (((long long ( *)(_BYTE *, unsigned int *))v5[0])(v7, &v2) & 1) != 0 && v3 ) { v9 = v3; v10 = v2 / 0x30; } return v9; }
c4_get_chain_state: PUSH RBP MOV RBP,RSP SUB RSP,0xc0 MOV dword ptr [RBP + -0x14],EDI LEA RDI,[RBP + -0x10] XOR ESI,ESI MOV EDX,0x10 CALL 0x001231c0 LEA RDI,[RBP + -0xa0] XOR ESI,ESI MOV EDX,0x20 CALL 0x001231c0 LEA RDI,[RBP + -0xb8] XOR ESI,ESI MOV EDX,0x18 CALL 0x001231c0 LEA RDI,[RBP + -0xa0] CALL 0x001a4e20 LEA RDI,[RBP + -0x80] MOV EAX,dword ptr [RBP + -0x14] MOV EDX,EAX LEA RSI,[0x1dc648] MOV AL,0x0 CALL 0x00123510 MOV EAX,dword ptr [RBP + -0x88] IMUL RAX,RAX,0x30 MOV dword ptr [RBP + -0xa8],EAX MOV RAX,qword ptr [RBP + -0xa0] LEA RDI,[RBP + -0x80] LEA RSI,[RBP + -0xb8] CALL RAX TEST AL,0x1 JNZ 0x00126891 JMP 0x001268b9 LAB_00126891: CMP qword ptr [RBP + -0xb0],0x0 JZ 0x001268b9 MOV RAX,qword ptr [RBP + -0xb0] MOV qword ptr [RBP + -0x10],RAX MOV EAX,dword ptr [RBP + -0xb8] MOV ECX,0x30 XOR EDX,EDX DIV RCX MOV dword ptr [RBP + -0x8],EAX LAB_001268b9: MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x8] ADD RSP,0xc0 POP RBP RET
int1 [16] c4_get_chain_state(uint param_1) { ulong uVar1; int1 auVar2 [16]; uint local_c0 [2]; long local_b8; int local_b0; code *local_a8 [3]; int local_90; char local_88 [108]; uint local_1c; long local_18; int4 local_10; local_1c = param_1; memset(&local_18,0,0x10); memset(local_a8,0,0x20); memset(local_c0,0,0x18); c4_get_storage_config(local_a8); sprintf(local_88,"states_%lu",(ulong)local_1c); local_b0 = local_90 * 0x30; uVar1 = (*local_a8[0])(local_88,local_c0); if (((uVar1 & 1) != 0) && (local_b8 != 0)) { local_18 = local_b8; local_10 = SUB164(ZEXT416(local_c0[0]) / ZEXT816(0x30),0); } auVar2._8_4_ = local_10; auVar2._0_8_ = local_18; auVar2._12_4_ = 0; return auVar2; }
59,777
c4_get_chain_state
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
INTERNAL c4_chain_state_t c4_get_chain_state(chain_id_t chain_id) { c4_chain_state_t state = {0}; char name[100]; storage_plugin_t storage_conf = {0}; #ifdef C4_STATIC_MEMORY // Use static buffer with size limit buffer_t tmp = stack_buffer(state_buffer); #else buffer_t tmp = {0}; #endif c4_get_storage_config(&storage_conf); sprintf(name, "states_%" PRIu64, (uint64_t) chain_id); #ifndef C4_STATIC_MEMORY tmp.allocated = sizeof(c4_trusted_block_t) * storage_conf.max_sync_states; #endif if (storage_conf.get(name, &tmp) && tmp.data.data) { state.blocks = (c4_trusted_block_t*) tmp.data.data; state.len = tmp.data.len / sizeof(c4_trusted_block_t); } return state; }
O2
c
c4_get_chain_state: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %edi, %ebx xorps %xmm0, %xmm0 leaq 0x20(%rsp), %r14 movaps %xmm0, 0x10(%r14) movaps %xmm0, (%r14) movq %rsp, %r15 movaps %xmm0, (%r15) andq $0x0, 0x10(%r15) movq %r14, %rdi callq 0x4ef10 movl %ebx, %edx leaq 0x4fae2(%rip), %rsi # 0x745c0 xorl %ebx, %ebx leaq 0x40(%rsp), %r12 movq %r12, %rdi xorl %eax, %eax callq 0x224f0 imull $0x30, 0x18(%r14), %eax movl %eax, 0x10(%r15) movq %r12, %rdi movq %r15, %rsi callq *(%r14) movq 0x8(%r15), %rcx testq %rcx, %rcx setne %dl andb %al, %dl cmpb $0x1, %dl jne 0x24b20 movl (%rsp), %eax pushq $0x30 popq %rsi xorl %edx, %edx divl %esi movl %eax, %ebx jmp 0x24b22 xorl %ecx, %ecx movq %rcx, %rax movl %ebx, %edx addq $0xa8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
c4_get_chain_state: push r15 push r14 push r12 push rbx sub rsp, 0A8h mov ebx, edi xorps xmm0, xmm0 lea r14, [rsp+0C8h+var_A8] movaps xmmword ptr [r14+10h], xmm0 movaps xmmword ptr [r14], xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 and qword ptr [r15+10h], 0 mov rdi, r14 call c4_get_storage_config mov edx, ebx lea rsi, aStatesLu; "states_%lu" xor ebx, ebx lea r12, [rsp+0C8h+var_88] mov rdi, r12 xor eax, eax call _sprintf imul eax, [r14+18h], 30h ; '0' mov [r15+10h], eax mov rdi, r12 mov rsi, r15 call qword ptr [r14] mov rcx, [r15+8] test rcx, rcx setnz dl and dl, al cmp dl, 1 jnz short loc_24B20 mov eax, [rsp+0C8h+var_C8] push 30h ; '0' pop rsi xor edx, edx div esi mov ebx, eax jmp short loc_24B22 loc_24B20: xor ecx, ecx loc_24B22: mov rax, rcx mov edx, ebx add rsp, 0A8h pop rbx pop r12 pop r14 pop r15 retn
long long c4_get_chain_state(unsigned int a1) { unsigned __int8 v1; // al long long v2; // rcx __int128 v4; // [rsp+0h] [rbp-C8h] BYREF long long v5; // [rsp+10h] [rbp-B8h] __int128 v6; // [rsp+20h] [rbp-A8h] BYREF __int128 v7; // [rsp+30h] [rbp-98h] _BYTE v8[136]; // [rsp+40h] [rbp-88h] BYREF v7 = 0LL; v6 = 0LL; v4 = 0LL; v5 = 0LL; c4_get_storage_config(&v6); sprintf(v8, "states_%lu", a1); LODWORD(v5) = 48 * DWORD2(v7); v1 = ((long long ( *)(_BYTE *, __int128 *))v6)(v8, &v4); v2 = *((_QWORD *)&v4 + 1); if ( (v1 & (*((_QWORD *)&v4 + 1) != 0LL)) != 1 ) return 0LL; return v2; }
c4_get_chain_state: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV EBX,EDI XORPS XMM0,XMM0 LEA R14,[RSP + 0x20] MOVAPS xmmword ptr [R14 + 0x10],XMM0 MOVAPS xmmword ptr [R14],XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 AND qword ptr [R15 + 0x10],0x0 MOV RDI,R14 CALL 0x0014ef10 MOV EDX,EBX LEA RSI,[0x1745c0] XOR EBX,EBX LEA R12,[RSP + 0x40] MOV RDI,R12 XOR EAX,EAX CALL 0x001224f0 IMUL EAX,dword ptr [R14 + 0x18],0x30 MOV dword ptr [R15 + 0x10],EAX MOV RDI,R12 MOV RSI,R15 CALL qword ptr [R14] MOV RCX,qword ptr [R15 + 0x8] TEST RCX,RCX SETNZ DL AND DL,AL CMP DL,0x1 JNZ 0x00124b20 MOV EAX,dword ptr [RSP] PUSH 0x30 POP RSI XOR EDX,EDX DIV ESI MOV EBX,EAX JMP 0x00124b22 LAB_00124b20: XOR ECX,ECX LAB_00124b22: MOV RAX,RCX MOV EDX,EBX ADD RSP,0xa8 POP RBX POP R12 POP R14 POP R15 RET
int1 [16] c4_get_chain_state(uint param_1) { byte bVar1; int4 uVar2; int1 auVar3 [16]; ulong local_c8; long lStack_c0; int8 local_b8; code *local_a8; int8 uStack_a0; int8 local_98; int8 uStack_90; char local_88 [104]; local_98 = 0; uStack_90 = 0; local_a8 = (code *)0x0; uStack_a0 = 0; local_c8 = 0; lStack_c0 = 0; local_b8 = 0; c4_get_storage_config(&local_a8); uVar2 = 0; sprintf(local_88,"states_%lu",(ulong)param_1); local_b8 = CONCAT44(local_b8._4_4_,(int)uStack_90 * 0x30); bVar1 = (*local_a8)(local_88,&local_c8); if ((lStack_c0 != 0 & bVar1) == 1) { uVar2 = (int4)((local_c8 & 0xffffffff) / 0x30); } else { lStack_c0 = 0; } auVar3._8_4_ = uVar2; auVar3._0_8_ = lStack_c0; auVar3._12_4_ = 0; return auVar3; }
59,778
c4_get_chain_state
corpus-core[P]colibri-stateless/src/chains/eth/verifier/sync_committee_state.c
INTERNAL c4_chain_state_t c4_get_chain_state(chain_id_t chain_id) { c4_chain_state_t state = {0}; char name[100]; storage_plugin_t storage_conf = {0}; #ifdef C4_STATIC_MEMORY // Use static buffer with size limit buffer_t tmp = stack_buffer(state_buffer); #else buffer_t tmp = {0}; #endif c4_get_storage_config(&storage_conf); sprintf(name, "states_%" PRIu64, (uint64_t) chain_id); #ifndef C4_STATIC_MEMORY tmp.allocated = sizeof(c4_trusted_block_t) * storage_conf.max_sync_states; #endif if (storage_conf.get(name, &tmp) && tmp.data.data) { state.blocks = (c4_trusted_block_t*) tmp.data.data; state.len = tmp.data.len / sizeof(c4_trusted_block_t); } return state; }
O3
c
c4_get_chain_state: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %edi, %ebx xorps %xmm0, %xmm0 leaq 0x20(%rsp), %r14 movaps %xmm0, 0x10(%r14) movaps %xmm0, (%r14) movq %rsp, %r15 movaps %xmm0, (%r15) movq $0x0, 0x10(%r15) movq %r14, %rdi callq 0x570b8 movl %ebx, %edx leaq 0x5bda7(%rip), %rsi # 0x815c0 xorl %ebx, %ebx leaq 0x40(%rsp), %r12 movq %r12, %rdi xorl %eax, %eax callq 0x224c0 movl 0x18(%r14), %eax shll $0x4, %eax leal (%rax,%rax,2), %eax movl %eax, 0x10(%r15) movq %r12, %rdi movq %r15, %rsi callq *(%r14) movl %eax, %ecx movq 0x8(%r15), %rax testq %rax, %rax setne %dl andb %cl, %dl cmpb $0x1, %dl jne 0x25866 movl (%rsp), %ecx movl $0xaaaaaaab, %ebx # imm = 0xAAAAAAAB imulq %rcx, %rbx shrq $0x25, %rbx jmp 0x25868 xorl %eax, %eax movl %ebx, %edx addq $0xa8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
c4_get_chain_state: push r15 push r14 push r12 push rbx sub rsp, 0A8h mov ebx, edi xorps xmm0, xmm0 lea r14, [rsp+0C8h+var_A8] movaps xmmword ptr [r14+10h], xmm0 movaps xmmword ptr [r14], xmm0 mov r15, rsp movaps xmmword ptr [r15], xmm0 mov qword ptr [r15+10h], 0 mov rdi, r14 call c4_get_storage_config mov edx, ebx lea rsi, aStatesLu; "states_%lu" xor ebx, ebx lea r12, [rsp+0C8h+var_88] mov rdi, r12 xor eax, eax call _sprintf mov eax, [r14+18h] shl eax, 4 lea eax, [rax+rax*2] mov [r15+10h], eax mov rdi, r12 mov rsi, r15 call qword ptr [r14] mov ecx, eax mov rax, [r15+8] test rax, rax setnz dl and dl, cl cmp dl, 1 jnz short loc_25866 mov ecx, [rsp+0C8h+var_C8] mov ebx, 0AAAAAAABh imul rbx, rcx shr rbx, 25h jmp short loc_25868 loc_25866: xor eax, eax loc_25868: mov edx, ebx add rsp, 0A8h pop rbx pop r12 pop r14 pop r15 retn
long long c4_get_chain_state(unsigned int a1) { unsigned __int8 v1; // cl long long result; // rax __int128 v3; // [rsp+0h] [rbp-C8h] BYREF long long v4; // [rsp+10h] [rbp-B8h] __int128 v5; // [rsp+20h] [rbp-A8h] BYREF __int128 v6; // [rsp+30h] [rbp-98h] _BYTE v7[136]; // [rsp+40h] [rbp-88h] BYREF v6 = 0LL; v5 = 0LL; v3 = 0LL; v4 = 0LL; c4_get_storage_config(&v5); sprintf(v7, "states_%lu", a1); LODWORD(v4) = 48 * DWORD2(v6); v1 = ((long long ( *)(_BYTE *, __int128 *))v5)(v7, &v3); result = *((_QWORD *)&v3 + 1); if ( (v1 & (*((_QWORD *)&v3 + 1) != 0LL)) != 1 ) return 0LL; return result; }
c4_get_chain_state: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV EBX,EDI XORPS XMM0,XMM0 LEA R14,[RSP + 0x20] MOVAPS xmmword ptr [R14 + 0x10],XMM0 MOVAPS xmmword ptr [R14],XMM0 MOV R15,RSP MOVAPS xmmword ptr [R15],XMM0 MOV qword ptr [R15 + 0x10],0x0 MOV RDI,R14 CALL 0x001570b8 MOV EDX,EBX LEA RSI,[0x1815c0] XOR EBX,EBX LEA R12,[RSP + 0x40] MOV RDI,R12 XOR EAX,EAX CALL 0x001224c0 MOV EAX,dword ptr [R14 + 0x18] SHL EAX,0x4 LEA EAX,[RAX + RAX*0x2] MOV dword ptr [R15 + 0x10],EAX MOV RDI,R12 MOV RSI,R15 CALL qword ptr [R14] MOV ECX,EAX MOV RAX,qword ptr [R15 + 0x8] TEST RAX,RAX SETNZ DL AND DL,CL CMP DL,0x1 JNZ 0x00125866 MOV ECX,dword ptr [RSP] MOV EBX,0xaaaaaaab IMUL RBX,RCX SHR RBX,0x25 JMP 0x00125868 LAB_00125866: XOR EAX,EAX LAB_00125868: MOV EDX,EBX ADD RSP,0xa8 POP RBX POP R12 POP R14 POP R15 RET
int1 [16] c4_get_chain_state(uint param_1) { byte bVar1; ulong uVar2; int1 auVar3 [16]; ulong local_c8; long lStack_c0; int8 local_b8; code *local_a8; int8 uStack_a0; int8 local_98; int8 uStack_90; char local_88 [104]; local_98 = 0; uStack_90 = 0; local_a8 = (code *)0x0; uStack_a0 = 0; local_c8 = 0; lStack_c0 = 0; local_b8 = 0; c4_get_storage_config(&local_a8); uVar2 = 0; sprintf(local_88,"states_%lu",(ulong)param_1); local_b8 = CONCAT44(local_b8._4_4_,(int)uStack_90 * 0x30); bVar1 = (*local_a8)(local_88,&local_c8); if ((lStack_c0 != 0 & bVar1) == 1) { uVar2 = (local_c8 & 0xffffffff) / 0x30; } else { lStack_c0 = 0; } auVar3._8_8_ = uVar2; auVar3._0_8_ = lStack_c0; return auVar3; }
59,779
ma_SHA1Final
eloqsql/libmariadb/libmariadb/ma_sha1.c
void ma_SHA1Final(unsigned char digest[20], _MA_SHA1_CTX * context) { unsigned char bits[8]; unsigned int index, padLen; /* Save number of bits */ bits[7] = context->count[0] & 0xFF; bits[6] = (context->count[0] >> 8) & 0xFF; bits[5] = (context->count[0] >> 16) & 0xFF; bits[4] = (context->count[0] >> 24) & 0xFF; bits[3] = context->count[1] & 0xFF; bits[2] = (context->count[1] >> 8) & 0xFF; bits[1] = (context->count[1] >> 16) & 0xFF; bits[0] = (context->count[1] >> 24) & 0xFF; /* Pad out to 56 mod 64. */ index = (unsigned int) ((context->count[0] >> 3) & 0x3f); padLen = (index < 56) ? (56 - index) : (120 - index); ma_SHA1Update(context, PADDING, padLen); /* Append length (before padding) */ ma_SHA1Update(context, bits, 8); /* Store state in digest */ ma_SHA1Encode(digest, context->state, 20); /* Zeroize sensitive information. */ memset((unsigned char*) context, 0, sizeof(*context)); }
O0
c
ma_SHA1Final: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) movq -0x20(%rbp), %rax movl 0x14(%rax), %eax andl $0xff, %eax movb %al, -0x9(%rbp) movq -0x20(%rbp), %rax movl 0x14(%rax), %eax shrl $0x8, %eax andl $0xff, %eax movb %al, -0xa(%rbp) movq -0x20(%rbp), %rax movl 0x14(%rax), %eax shrl $0x10, %eax andl $0xff, %eax movb %al, -0xb(%rbp) movq -0x20(%rbp), %rax movl 0x14(%rax), %eax shrl $0x18, %eax andl $0xff, %eax movb %al, -0xc(%rbp) movq -0x20(%rbp), %rax movl 0x18(%rax), %eax andl $0xff, %eax movb %al, -0xd(%rbp) movq -0x20(%rbp), %rax movl 0x18(%rax), %eax shrl $0x8, %eax andl $0xff, %eax movb %al, -0xe(%rbp) movq -0x20(%rbp), %rax movl 0x18(%rax), %eax shrl $0x10, %eax andl $0xff, %eax movb %al, -0xf(%rbp) movq -0x20(%rbp), %rax movl 0x18(%rax), %eax shrl $0x18, %eax andl $0xff, %eax movb %al, -0x10(%rbp) movq -0x20(%rbp), %rax movl 0x14(%rax), %eax shrl $0x3, %eax andl $0x3f, %eax movl %eax, -0x24(%rbp) cmpl $0x38, -0x24(%rbp) jae 0x4a42a movl $0x38, %eax subl -0x24(%rbp), %eax movl %eax, -0x2c(%rbp) jmp 0x4a435 movl $0x78, %eax subl -0x24(%rbp), %eax movl %eax, -0x2c(%rbp) movl -0x2c(%rbp), %eax movl %eax, -0x28(%rbp) movq -0x20(%rbp), %rdi movl -0x28(%rbp), %eax movl %eax, %edx leaq 0x15d05(%rip), %rsi # 0x60150 callq 0x485f0 movq -0x20(%rbp), %rdi leaq -0x10(%rbp), %rsi movl $0x8, %edx callq 0x485f0 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movl $0x14, %edx callq 0x4a4b0 movq -0x20(%rbp), %rax xorps %xmm0, %xmm0 movups %xmm0, 0x4c(%rax) movups %xmm0, 0x40(%rax) movups %xmm0, 0x30(%rax) movups %xmm0, 0x20(%rax) movups %xmm0, 0x10(%rax) movups %xmm0, (%rax) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x4a4aa addq $0x30, %rsp popq %rbp retq callq 0x134b0 nop
ma_SHA1Final: push rbp mov rbp, rsp sub rsp, 30h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_18], rdi mov [rbp+var_20], rsi mov rax, [rbp+var_20] mov eax, [rax+14h] and eax, 0FFh mov [rbp+var_9], al mov rax, [rbp+var_20] mov eax, [rax+14h] shr eax, 8 and eax, 0FFh mov [rbp+var_A], al mov rax, [rbp+var_20] mov eax, [rax+14h] shr eax, 10h and eax, 0FFh mov [rbp+var_B], al mov rax, [rbp+var_20] mov eax, [rax+14h] shr eax, 18h and eax, 0FFh mov [rbp+var_C], al mov rax, [rbp+var_20] mov eax, [rax+18h] and eax, 0FFh mov [rbp+var_D], al mov rax, [rbp+var_20] mov eax, [rax+18h] shr eax, 8 and eax, 0FFh mov [rbp+var_E], al mov rax, [rbp+var_20] mov eax, [rax+18h] shr eax, 10h and eax, 0FFh mov [rbp+var_F], al mov rax, [rbp+var_20] mov eax, [rax+18h] shr eax, 18h and eax, 0FFh mov [rbp+var_10], al mov rax, [rbp+var_20] mov eax, [rax+14h] shr eax, 3 and eax, 3Fh mov [rbp+var_24], eax cmp [rbp+var_24], 38h ; '8' jnb short loc_4A42A mov eax, 38h ; '8' sub eax, [rbp+var_24] mov [rbp+var_2C], eax jmp short loc_4A435 loc_4A42A: mov eax, 78h ; 'x' sub eax, [rbp+var_24] mov [rbp+var_2C], eax loc_4A435: mov eax, [rbp+var_2C] mov [rbp+var_28], eax mov rdi, [rbp+var_20] mov eax, [rbp+var_28] mov edx, eax lea rsi, PADDING call ma_SHA1Update mov rdi, [rbp+var_20] lea rsi, [rbp+var_10] mov edx, 8 call ma_SHA1Update mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] mov edx, 14h call ma_SHA1Encode mov rax, [rbp+var_20] xorps xmm0, xmm0 movups xmmword ptr [rax+4Ch], xmm0 movups xmmword ptr [rax+40h], xmm0 movups xmmword ptr [rax+30h], xmm0 movups xmmword ptr [rax+20h], xmm0 movups xmmword ptr [rax+10h], xmm0 movups xmmword ptr [rax], xmm0 mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_4A4AA add rsp, 30h pop rbp retn loc_4A4AA: call ___stack_chk_fail
unsigned long long ma_SHA1Final(long long a1, long long a2) { unsigned int v3; // [rsp+4h] [rbp-2Ch] unsigned int v4; // [rsp+Ch] [rbp-24h] _BYTE v5[8]; // [rsp+20h] [rbp-10h] BYREF unsigned long long v6; // [rsp+28h] [rbp-8h] v6 = __readfsqword(0x28u); v5[7] = *(_DWORD *)(a2 + 20); v5[6] = BYTE1(*(_DWORD *)(a2 + 20)); v5[5] = BYTE2(*(_DWORD *)(a2 + 20)); v5[4] = HIBYTE(*(_DWORD *)(a2 + 20)); v5[3] = *(_DWORD *)(a2 + 24); v5[2] = BYTE1(*(_DWORD *)(a2 + 24)); v5[1] = BYTE2(*(_DWORD *)(a2 + 24)); v5[0] = HIBYTE(*(_DWORD *)(a2 + 24)); v4 = (*(_DWORD *)(a2 + 20) >> 3) & 0x3F; if ( v4 >= 0x38 ) v3 = 120 - v4; else v3 = 56 - v4; ma_SHA1Update(a2, (long long)&PADDING, v3); ma_SHA1Update(a2, (long long)v5, 8uLL); ma_SHA1Encode(a1, a2, 20LL); *(_OWORD *)(a2 + 76) = 0LL; *(_OWORD *)(a2 + 64) = 0LL; *(_OWORD *)(a2 + 48) = 0LL; *(_OWORD *)(a2 + 32) = 0LL; *(_OWORD *)(a2 + 16) = 0LL; *(_OWORD *)a2 = 0LL; return __readfsqword(0x28u); }
ma_SHA1Final: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x18],RDI MOV qword ptr [RBP + -0x20],RSI MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x14] AND EAX,0xff MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x14] SHR EAX,0x8 AND EAX,0xff MOV byte ptr [RBP + -0xa],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x14] SHR EAX,0x10 AND EAX,0xff MOV byte ptr [RBP + -0xb],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x14] SHR EAX,0x18 AND EAX,0xff MOV byte ptr [RBP + -0xc],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x18] AND EAX,0xff MOV byte ptr [RBP + -0xd],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x18] SHR EAX,0x8 AND EAX,0xff MOV byte ptr [RBP + -0xe],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x18] SHR EAX,0x10 AND EAX,0xff MOV byte ptr [RBP + -0xf],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x18] SHR EAX,0x18 AND EAX,0xff MOV byte ptr [RBP + -0x10],AL MOV RAX,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RAX + 0x14] SHR EAX,0x3 AND EAX,0x3f MOV dword ptr [RBP + -0x24],EAX CMP dword ptr [RBP + -0x24],0x38 JNC 0x0014a42a MOV EAX,0x38 SUB EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x2c],EAX JMP 0x0014a435 LAB_0014a42a: MOV EAX,0x78 SUB EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x2c],EAX LAB_0014a435: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x28],EAX MOV RDI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x28] MOV EDX,EAX LEA RSI,[0x160150] CALL 0x001485f0 MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[RBP + -0x10] MOV EDX,0x8 CALL 0x001485f0 MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,0x14 CALL 0x0014a4b0 MOV RAX,qword ptr [RBP + -0x20] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x4c],XMM0 MOVUPS xmmword ptr [RAX + 0x40],XMM0 MOVUPS xmmword ptr [RAX + 0x30],XMM0 MOVUPS xmmword ptr [RAX + 0x20],XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0014a4aa ADD RSP,0x30 POP RBP RET LAB_0014a4aa: CALL 0x001134b0
void ma_SHA1Final(int8 param_1,int8 *param_2) { uint uVar1; long in_FS_OFFSET; int local_34; int1 local_18; int1 local_17; int1 local_16; int1 local_15; int1 local_14; int1 local_13; int1 local_12; int1 local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_11 = (int1)*(int4 *)((long)param_2 + 0x14); local_12 = (int1)((uint)*(int4 *)((long)param_2 + 0x14) >> 8); local_13 = (int1)((uint)*(int4 *)((long)param_2 + 0x14) >> 0x10); local_14 = (int1)((uint)*(int4 *)((long)param_2 + 0x14) >> 0x18); local_15 = (int1)*(int4 *)(param_2 + 3); local_16 = (int1)((uint)*(int4 *)(param_2 + 3) >> 8); local_17 = (int1)((uint)*(int4 *)(param_2 + 3) >> 0x10); local_18 = (int1)((uint)*(int4 *)(param_2 + 3) >> 0x18); uVar1 = *(uint *)((long)param_2 + 0x14) >> 3 & 0x3f; if (uVar1 < 0x38) { local_34 = 0x38 - uVar1; } else { local_34 = 0x78 - uVar1; } ma_SHA1Update(param_2,PADDING,local_34); ma_SHA1Update(param_2,&local_18,8); ma_SHA1Encode(param_1,param_2,0x14); *(int8 *)((long)param_2 + 0x4c) = 0; *(int8 *)((long)param_2 + 0x54) = 0; param_2[8] = 0; param_2[9] = 0; param_2[6] = 0; param_2[7] = 0; param_2[4] = 0; param_2[5] = 0; param_2[2] = 0; param_2[3] = 0; *param_2 = 0; param_2[1] = 0; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
59,780
my_malloc
eloqsql/mysys/my_malloc.c
void *my_malloc(PSI_memory_key key, size_t size, myf my_flags) { my_memory_header *mh; void *point; DBUG_ENTER("my_malloc"); DBUG_PRINT("my",("size: %zu flags: %lu", size, my_flags)); compile_time_assert(sizeof(my_memory_header) <= HEADER_SIZE); if (!(my_flags & (MY_WME | MY_FAE))) my_flags|= my_global_flags; /* Safety */ if (!size) size=1; if (size > SIZE_T_MAX - 1024L*1024L*16L) /* Wrong call */ DBUG_RETURN(0); /* We have to align size as we store MY_THREAD_SPECIFIC flag in the LSB */ size= ALIGN_SIZE(size); if (DBUG_EVALUATE_IF("simulate_out_of_memory", 1, 0)) mh= NULL; else mh= (my_memory_header*) sf_malloc(size + HEADER_SIZE, my_flags); if (mh == NULL) { my_errno=errno; if (my_flags & MY_FAE) error_handler_hook=fatal_error_handler_hook; if (my_flags & (MY_FAE+MY_WME)) my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_ERROR_LOG+ME_FATAL),size); if (my_flags & MY_FAE) abort(); point= NULL; } else { int flag= MY_TEST(my_flags & MY_THREAD_SPECIFIC); mh->m_size= size | flag; mh->m_key= PSI_CALL_memory_alloc(key, size, & mh->m_owner); update_malloc_size(size + HEADER_SIZE, flag); point= HEADER_TO_USER(mh); if (my_flags & MY_ZEROFILL) bzero(point, size); else TRASH_ALLOC(point, size); } DBUG_PRINT("exit",("ptr: %p", point)); DBUG_RETURN(point); }
O0
c
my_malloc: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0x32285 jmp 0x32287 jmp 0x32289 movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax jne 0x322a9 leaq 0x373f4a(%rip), %rax # 0x3a61e8 movq (%rax), %rax orq -0x20(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x322b8 movq $0x1, -0x18(%rbp) cmpq $-0x1000001, -0x18(%rbp) # imm = 0xFEFFFFFF jbe 0x322d1 jmp 0x322c4 movq $0x0, -0x8(%rbp) jmp 0x32428 movq -0x18(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0x18, %rdi callq 0x25420 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jne 0x32376 callq 0x25050 movl (%rax), %eax movl %eax, -0x38(%rbp) callq 0x33e30 movl -0x38(%rbp), %ecx movl %ecx, (%rax) movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0x32333 leaq 0x1b1692(%rip), %rax # 0x1e39b8 movq (%rax), %rcx leaq 0x1b1680(%rip), %rax # 0x1e39b0 movq %rcx, (%rax) movq -0x20(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0x32356 movq -0x18(%rbp), %rdx movl $0x5, %edi movl $0x1044, %esi # imm = 0x1044 movb $0x0, %al callq 0x2ca80 movq -0x20(%rbp), %rax andq $0x8, %rax cmpq $0x0, %rax je 0x32369 callq 0x251b0 movq $0x0, -0x30(%rbp) jmp 0x3241a movq -0x20(%rbp), %rdx andq $0x10000, %rdx # imm = 0x10000 xorl %eax, %eax movl $0x1, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movl %eax, -0x34(%rbp) movq -0x18(%rbp), %rcx movslq -0x34(%rbp), %rax orq %rax, %rcx movq -0x28(%rbp), %rax movq %rcx, 0x8(%rax) leaq 0x1b1aec(%rip), %rax # 0x1e3e98 movq (%rax), %rax movq 0x3e0(%rax), %rax movl -0xc(%rbp), %edi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq *%rax movl %eax, %ecx movq -0x28(%rbp), %rax movl %ecx, 0x10(%rax) movq 0x1b158d(%rip), %rax # 0x1e3960 movq -0x18(%rbp), %rdi addq $0x18, %rdi movl -0x34(%rbp), %ecx movsbl %cl, %esi callq *%rax movq -0x28(%rbp), %rax addq $0x18, %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax andq $0x20, %rax cmpq $0x0, %rax je 0x3240e movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rdx xorl %esi, %esi callq 0x251a0 jmp 0x32418 jmp 0x32410 jmp 0x32412 jmp 0x32414 jmp 0x32416 jmp 0x32418 jmp 0x3241a jmp 0x3241c jmp 0x3241e jmp 0x32420 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_malloc: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_32285: jmp short $+2 loc_32287: jmp short $+2 loc_32289: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jnz short loc_322A9 lea rax, my_global_flags mov rax, [rax] or rax, [rbp+var_20] mov [rbp+var_20], rax loc_322A9: cmp [rbp+var_18], 0 jnz short loc_322B8 mov [rbp+var_18], 1 loc_322B8: cmp [rbp+var_18], 0FFFFFFFFFEFFFFFFh jbe short loc_322D1 jmp short $+2 loc_322C4: mov [rbp+var_8], 0 jmp loc_32428 loc_322D1: mov rax, [rbp+var_18] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_18], rax mov rdi, [rbp+var_18] add rdi, 18h call _malloc mov [rbp+var_28], rax cmp [rbp+var_28], 0 jnz short loc_32376 call ___errno_location mov eax, [rax] mov [rbp+var_38], eax call _my_thread_var mov ecx, [rbp+var_38] mov [rax], ecx mov rax, [rbp+var_20] and rax, 8 cmp rax, 0 jz short loc_32333 lea rax, fatal_error_handler_hook mov rcx, [rax] lea rax, error_handler_hook mov [rax], rcx loc_32333: mov rax, [rbp+var_20] and rax, 18h cmp rax, 0 jz short loc_32356 mov rdx, [rbp+var_18] mov edi, 5 mov esi, 1044h mov al, 0 call my_error loc_32356: mov rax, [rbp+var_20] and rax, 8 cmp rax, 0 jz short loc_32369 call _abort loc_32369: mov [rbp+var_30], 0 jmp loc_3241A loc_32376: mov rdx, [rbp+var_20] and rdx, 10000h xor eax, eax mov ecx, 1 cmp rdx, 0 cmovnz eax, ecx mov [rbp+var_34], eax mov rcx, [rbp+var_18] movsxd rax, [rbp+var_34] or rcx, rax mov rax, [rbp+var_28] mov [rax+8], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+3E0h] mov edi, [rbp+var_C] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call rax mov ecx, eax mov rax, [rbp+var_28] mov [rax+10h], ecx mov rax, cs:update_malloc_size mov rdi, [rbp+var_18] add rdi, 18h mov ecx, [rbp+var_34] movsx esi, cl call rax ; dummy mov rax, [rbp+var_28] add rax, 18h mov [rbp+var_30], rax mov rax, [rbp+var_20] and rax, 20h cmp rax, 0 jz short loc_3240E mov rdi, [rbp+var_30] mov rdx, [rbp+var_18] xor esi, esi call _memset jmp short loc_32418 loc_3240E: jmp short $+2 loc_32410: jmp short $+2 loc_32412: jmp short $+2 loc_32414: jmp short $+2 loc_32416: jmp short $+2 loc_32418: jmp short $+2 loc_3241A: jmp short $+2 loc_3241C: jmp short $+2 loc_3241E: jmp short $+2 loc_32420: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_32428: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long my_malloc(unsigned int a1, unsigned long long a2, int a3) { int v4; // [rsp+8h] [rbp-38h] long long v5; // [rsp+10h] [rbp-30h] long long v6; // [rsp+18h] [rbp-28h] int v7; // [rsp+20h] [rbp-20h] unsigned long long v8; // [rsp+28h] [rbp-18h] unsigned long long v9; // [rsp+28h] [rbp-18h] v8 = a2; v7 = a3; if ( (a3 & 0x18) == 0 ) v7 = a3 | my_global_flags; if ( !a2 ) v8 = 1LL; if ( v8 > 0xFFFFFFFFFEFFFFFFLL ) return 0LL; v9 = (v8 + 7) & 0xFFFFFFFFFFFFFFF8LL; v6 = malloc(v9 + 24); if ( v6 ) { *(_QWORD *)(v6 + 8) = ((v7 & 0x10000) != 0) | v9; *(_DWORD *)(v6 + 16) = (*((long long ( **)(_QWORD, unsigned long long, long long))PSI_server + 124))(a1, v9, v6); update_malloc_size(v9 + 24, (v7 & 0x10000) != 0); v5 = v6 + 24; if ( (v7 & 0x20) != 0 ) memset(v5, 0LL, v9); } else { v4 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v4; if ( (v7 & 8) != 0 ) error_handler_hook = fatal_error_handler_hook[0]; if ( (v7 & 0x18) != 0 ) my_error(5u, 4164LL, v9); if ( (v7 & 8) != 0 ) abort(); return 0LL; } return v5; }
my_malloc: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x00132285 LAB_00132285: JMP 0x00132287 LAB_00132287: JMP 0x00132289 LAB_00132289: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JNZ 0x001322a9 LEA RAX,[0x4a61e8] MOV RAX,qword ptr [RAX] OR RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x20],RAX LAB_001322a9: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x001322b8 MOV qword ptr [RBP + -0x18],0x1 LAB_001322b8: CMP qword ptr [RBP + -0x18],-0x1000001 JBE 0x001322d1 JMP 0x001322c4 LAB_001322c4: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00132428 LAB_001322d1: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 CALL 0x00125420 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JNZ 0x00132376 CALL 0x00125050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x38],EAX CALL 0x00133e30 MOV ECX,dword ptr [RBP + -0x38] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x00132333 LEA RAX,[0x2e39b8] MOV RCX,qword ptr [RAX] LEA RAX,[0x2e39b0] MOV qword ptr [RAX],RCX LAB_00132333: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x18 CMP RAX,0x0 JZ 0x00132356 MOV RDX,qword ptr [RBP + -0x18] MOV EDI,0x5 MOV ESI,0x1044 MOV AL,0x0 CALL 0x0012ca80 LAB_00132356: MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x8 CMP RAX,0x0 JZ 0x00132369 CALL 0x001251b0 LAB_00132369: MOV qword ptr [RBP + -0x30],0x0 JMP 0x0013241a LAB_00132376: MOV RDX,qword ptr [RBP + -0x20] AND RDX,0x10000 XOR EAX,EAX MOV ECX,0x1 CMP RDX,0x0 CMOVNZ EAX,ECX MOV dword ptr [RBP + -0x34],EAX MOV RCX,qword ptr [RBP + -0x18] MOVSXD RAX,dword ptr [RBP + -0x34] OR RCX,RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX + 0x8],RCX LEA RAX,[0x2e3e98] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x3e0] MOV EDI,dword ptr [RBP + -0xc] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL RAX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x28] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [0x002e3960] MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 MOV ECX,dword ptr [RBP + -0x34] MOVSX ESI,CL CALL RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x18 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x20 CMP RAX,0x0 JZ 0x0013240e MOV RDI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x18] XOR ESI,ESI CALL 0x001251a0 JMP 0x00132418 LAB_0013240e: JMP 0x00132410 LAB_00132410: JMP 0x00132412 LAB_00132412: JMP 0x00132414 LAB_00132414: JMP 0x00132416 LAB_00132416: JMP 0x00132418 LAB_00132418: JMP 0x0013241a LAB_0013241a: JMP 0x0013241c LAB_0013241c: JMP 0x0013241e LAB_0013241e: JMP 0x00132420 LAB_00132420: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_00132428: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
void * my_malloc(int4 param_1,ulong param_2,ulong param_3) { int iVar1; int4 uVar2; ulong __n; int *piVar3; void *local_38; ulong local_28; ulong local_20; void *local_10; local_28 = param_3; if ((param_3 & 0x18) == 0) { local_28 = my_global_flags | param_3; } local_20 = param_2; if (param_2 == 0) { local_20 = 1; } if (local_20 < 0xffffffffff000000) { __n = local_20 + 7 & 0xfffffffffffffff8; local_38 = malloc(__n + 0x18); if (local_38 == (void *)0x0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if ((local_28 & 8) != 0) { error_handler_hook = fatal_error_handler_hook; } if ((local_28 & 0x18) != 0) { my_error(5,0x1044,__n); } if ((local_28 & 8) != 0) { /* WARNING: Subroutine does not return */ abort(); } local_38 = (void *)0x0; } else { *(ulong *)((long)local_38 + 8) = __n | (long)(int)(uint)((local_28 & 0x10000) != 0); uVar2 = (**(code **)(PSI_server + 0x3e0))(param_1,__n,local_38); *(int4 *)((long)local_38 + 0x10) = uVar2; (*(code *)update_malloc_size)(__n + 0x18); local_38 = (void *)((long)local_38 + 0x18); if ((local_28 & 0x20) != 0) { memset(local_38,0,__n); } } local_10 = local_38; } else { local_10 = (void *)0x0; } return local_10; }
59,781
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type)
monkey531[P]llama/common/minja.hpp
static std::string typeToString(Type t) { switch (t) { case Type::Text: return "text"; case Type::Expression: return "expression"; case Type::If: return "if"; case Type::Else: return "else"; case Type::Elif: return "elif"; case Type::EndIf: return "endif"; case Type::For: return "for"; case Type::EndFor: return "endfor"; case Type::Set: return "set"; case Type::EndSet: return "endset"; case Type::Comment: return "comment"; case Type::Macro: return "macro"; case Type::EndMacro: return "endmacro"; case Type::Filter: return "filter"; case Type::EndFilter: return "endfilter"; case Type::Generation: return "generation"; case Type::EndGeneration: return "endgeneration"; case Type::Break: return "break"; case Type::Continue: return "continue"; } return "Unknown"; }
O2
cpp
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type): pushq %rbx subq $0x10, %rsp movq %rdi, %rbx cmpl $0x12, %esi ja 0x5734f movl %esi, %eax leaq 0x37014(%rip), %rcx # 0x8e2a0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x37db0(%rip), %rsi # 0x8f04c jmp 0x57356 leaq 0x38137(%rip), %rsi # 0x8f3df jmp 0x57356 leaq 0x380fe(%rip), %rsi # 0x8f3b2 jmp 0x57356 leaq 0x380c8(%rip), %rsi # 0x8f388 jmp 0x57356 leaq 0x37fc6(%rip), %rsi # 0x8f292 jmp 0x57356 leaq 0x3ac91(%rip), %rsi # 0x91f69 jmp 0x57356 leaq 0x3803c(%rip), %rsi # 0x8f31d jmp 0x57356 leaq 0x37fd6(%rip), %rsi # 0x8f2c0 jmp 0x57356 leaq 0x380ef(%rip), %rsi # 0x8f3e2 jmp 0x57356 leaq 0x37fbc(%rip), %rsi # 0x8f2b8 jmp 0x57356 leaq 0x38011(%rip), %rsi # 0x8f316 jmp 0x57356 leaq 0x389eb(%rip), %rsi # 0x8fcf9 jmp 0x57356 leaq 0x380d2(%rip), %rsi # 0x8f3e9 jmp 0x57356 leaq 0x37f9d(%rip), %rsi # 0x8f2bd jmp 0x57356 leaq 0x3808c(%rip), %rsi # 0x8f3b5 jmp 0x57356 leaq 0x37fe7(%rip), %rsi # 0x8f319 jmp 0x57356 leaq 0x380b4(%rip), %rsi # 0x8f3ef jmp 0x57356 leaq 0x4123f(%rip), %rsi # 0x98583 jmp 0x57356 leaq 0x37fd3(%rip), %rsi # 0x8f320 jmp 0x57356 leaq 0x3ac1b(%rip), %rsi # 0x91f71 leaq 0xf(%rsp), %rdx movq %rbx, %rdi callq 0x2303e movq %rbx, %rax addq $0x10, %rsp popq %rbx retq
_ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE: push rbx sub rsp, 10h mov rbx, rdi cmp esi, 12h; switch 19 cases ja def_57293; jumptable 0000000000057293 default case mov eax, esi lea rcx, jpt_57293 movsxd rax, ds:(jpt_57293 - 8E2A0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_57295: lea rsi, aText; jumptable 0000000000057293 case 0 jmp loc_57356 loc_572A1: lea rsi, aEndfilter; jumptable 0000000000057293 case 16 jmp loc_57356 loc_572AD: lea rsi, aEndmacro; jumptable 0000000000057293 case 14 jmp loc_57356 loc_572B9: lea rsi, aEndset; jumptable 0000000000057293 case 11 jmp loc_57356 loc_572C5: lea rsi, aElif; jumptable 0000000000057293 case 4 jmp loc_57356 loc_572D1: lea rsi, aComment; jumptable 0000000000057293 case 12 jmp short loc_57356 loc_572DA: lea rsi, aEndgeneration; jumptable 0000000000057293 case 9 jmp short loc_57356 loc_572E3: lea rsi, aEndif+3; jumptable 0000000000057293 case 2 jmp short loc_57356 loc_572EC: lea rsi, aEndfilter+3; jumptable 0000000000057293 case 15 jmp short loc_57356 loc_572F5: lea rsi, aElse; jumptable 0000000000057293 case 3 jmp short loc_57356 loc_572FE: lea rsi, aEndfor; jumptable 0000000000057293 case 7 jmp short loc_57356 loc_57307: lea rsi, aExpectedLeftSi_0+24h; jumptable 0000000000057293 case 1 jmp short loc_57356 loc_57310: lea rsi, aBreak; jumptable 0000000000057293 case 17 jmp short loc_57356 loc_57319: lea rsi, aEndif; jumptable 0000000000057293 case 5 jmp short loc_57356 loc_57322: lea rsi, aEndmacro+3; jumptable 0000000000057293 case 13 jmp short loc_57356 loc_5732B: lea rsi, aEndfor+3; jumptable 0000000000057293 case 6 jmp short loc_57356 loc_57334: lea rsi, aContinue; jumptable 0000000000057293 case 18 jmp short loc_57356 loc_5733D: lea rsi, aAtLeastOneOfMi+2Fh; jumptable 0000000000057293 case 10 jmp short loc_57356 loc_57346: lea rsi, aEndgeneration+3; jumptable 0000000000057293 case 8 jmp short loc_57356 def_57293: lea rsi, aUnknown; jumptable 0000000000057293 default case loc_57356: lea rdx, [rsp+18h+var_9] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rax, rbx add rsp, 10h pop rbx retn
_QWORD * minja::TemplateToken::typeToString[abi:cxx11](_QWORD *a1, int a2) { char *v2; // rsi switch ( a2 ) { case 0: v2 = "text"; break; case 1: v2 = (char *)"expression"; break; case 2: v2 = "if"; break; case 3: v2 = "else"; break; case 4: v2 = "elif"; break; case 5: v2 = "endif"; break; case 6: v2 = "for"; break; case 7: v2 = "endfor"; break; case 8: v2 = "generation"; break; case 9: v2 = "endgeneration"; break; case 10: v2 = (char *)"set"; break; case 11: v2 = "endset"; break; case 12: v2 = "comment"; break; case 13: v2 = "macro"; break; case 14: v2 = "endmacro"; break; case 15: v2 = "filter"; break; case 16: v2 = "endfilter"; break; case 17: v2 = "break"; break; case 18: v2 = "continue"; break; default: v2 = "Unknown"; break; } std::string::basic_string<std::allocator<char>>(a1, (long long)v2); return a1; }
typeToString[abi:cxx11]: PUSH RBX SUB RSP,0x10 MOV RBX,RDI CMP ESI,0x12 JA 0x0015734f MOV EAX,ESI LEA RCX,[0x18e2a0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RSI,[0x18f04c] JMP 0x00157356 caseD_10: LEA RSI,[0x18f3df] JMP 0x00157356 caseD_e: LEA RSI,[0x18f3b2] JMP 0x00157356 caseD_b: LEA RSI,[0x18f388] JMP 0x00157356 caseD_4: LEA RSI,[0x18f292] JMP 0x00157356 caseD_c: LEA RSI,[0x191f69] JMP 0x00157356 caseD_9: LEA RSI,[0x18f31d] JMP 0x00157356 caseD_2: LEA RSI,[0x18f2c0] JMP 0x00157356 caseD_f: LEA RSI,[0x18f3e2] JMP 0x00157356 caseD_3: LEA RSI,[0x18f2b8] JMP 0x00157356 caseD_7: LEA RSI,[0x18f316] JMP 0x00157356 caseD_1: LEA RSI,[0x18fcf9] JMP 0x00157356 caseD_11: LEA RSI,[0x18f3e9] JMP 0x00157356 caseD_5: LEA RSI,[0x18f2bd] JMP 0x00157356 caseD_d: LEA RSI,[0x18f3b5] JMP 0x00157356 caseD_6: LEA RSI,[0x18f319] JMP 0x00157356 caseD_12: LEA RSI,[0x18f3ef] JMP 0x00157356 caseD_a: LEA RSI,[0x198583] JMP 0x00157356 caseD_8: LEA RSI,[0x18f320] JMP 0x00157356 default: LEA RSI,[0x191f71] LAB_00157356: LEA RDX,[RSP + 0xf] MOV RDI,RBX CALL 0x0012303e MOV RAX,RBX ADD RSP,0x10 POP RBX RET
/* minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type) */ TemplateToken * __thiscall minja::TemplateToken::typeToString_abi_cxx11_(TemplateToken *this,int4 param_2) { char *pcVar1; allocator local_9; switch(param_2) { case 0: pcVar1 = "text"; break; case 1: pcVar1 = "expression"; break; case 2: pcVar1 = "if"; break; case 3: pcVar1 = "else"; break; case 4: pcVar1 = "elif"; break; case 5: pcVar1 = "endif"; break; case 6: pcVar1 = "for"; break; case 7: pcVar1 = "endfor"; break; case 8: pcVar1 = "generation"; break; case 9: pcVar1 = "endgeneration"; break; case 10: pcVar1 = "set"; break; case 0xb: pcVar1 = "endset"; break; case 0xc: pcVar1 = "comment"; break; case 0xd: pcVar1 = "macro"; break; case 0xe: pcVar1 = "endmacro"; break; case 0xf: pcVar1 = "filter"; break; case 0x10: pcVar1 = "endfilter"; break; case 0x11: pcVar1 = "break"; break; case 0x12: pcVar1 = "continue"; break; default: pcVar1 = "Unknown"; } std::__cxx11::string::string<std::allocator<char>>((string *)this,pcVar1,&local_9); return this; }
59,782
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type)
monkey531[P]llama/common/minja.hpp
static std::string typeToString(Type t) { switch (t) { case Type::Text: return "text"; case Type::Expression: return "expression"; case Type::If: return "if"; case Type::Else: return "else"; case Type::Elif: return "elif"; case Type::EndIf: return "endif"; case Type::For: return "for"; case Type::EndFor: return "endfor"; case Type::Set: return "set"; case Type::EndSet: return "endset"; case Type::Comment: return "comment"; case Type::Macro: return "macro"; case Type::EndMacro: return "endmacro"; case Type::Filter: return "filter"; case Type::EndFilter: return "endfilter"; case Type::Generation: return "generation"; case Type::EndGeneration: return "endgeneration"; case Type::Break: return "break"; case Type::Continue: return "continue"; } return "Unknown"; }
O3
cpp
minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type): pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rdi) cmpl $0x12, %esi ja 0x5d23f movl %esi, %eax leaq 0x4b1eb(%rip), %rcx # 0xa82d0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x4bf87(%rip), %rsi # 0xa907c leaq 0x4bf84(%rip), %rdx # 0xa9080 jmp 0x5d24d leaq 0x4c307(%rip), %rsi # 0xa940f leaq 0x4c309(%rip), %rdx # 0xa9418 jmp 0x5d24d leaq 0x4c2c7(%rip), %rsi # 0xa93e2 leaq 0x4c2c8(%rip), %rdx # 0xa93ea jmp 0x5d24d leaq 0x4c28a(%rip), %rsi # 0xa93b8 leaq 0x4c289(%rip), %rdx # 0xa93be jmp 0x5d24d leaq 0x4c181(%rip), %rsi # 0xa92c2 leaq 0x4c17e(%rip), %rdx # 0xa92c6 jmp 0x5d24d leaq 0x4ee36(%rip), %rsi # 0xabf8a leaq 0x4ee36(%rip), %rdx # 0xabf91 jmp 0x5d24d leaq 0x4c1e6(%rip), %rsi # 0xa934d leaq 0x4c1ec(%rip), %rdx # 0xa935a jmp 0x5d24d leaq 0x4c176(%rip), %rsi # 0xa92f0 leaq 0x4c171(%rip), %rdx # 0xa92f2 jmp 0x5d24d leaq 0x4c285(%rip), %rsi # 0xa9412 leaq 0x4c284(%rip), %rdx # 0xa9418 jmp 0x5d24d leaq 0x4c148(%rip), %rsi # 0xa92e8 leaq 0x4c145(%rip), %rdx # 0xa92ec jmp 0x5d24d leaq 0x4c193(%rip), %rsi # 0xa9346 leaq 0x4c192(%rip), %rdx # 0xa934c jmp 0x5d24d leaq 0x4cb63(%rip), %rsi # 0xa9d29 leaq 0x4cb66(%rip), %rdx # 0xa9d33 jmp 0x5d24d leaq 0x4c243(%rip), %rsi # 0xa9419 leaq 0x4c241(%rip), %rdx # 0xa941e jmp 0x5d24d leaq 0x4c107(%rip), %rsi # 0xa92ed leaq 0x4c105(%rip), %rdx # 0xa92f2 jmp 0x5d24d leaq 0x4c1ef(%rip), %rsi # 0xa93e5 leaq 0x4c1ed(%rip), %rdx # 0xa93ea jmp 0x5d24d leaq 0x4c143(%rip), %rsi # 0xa9349 leaq 0x4c13f(%rip), %rdx # 0xa934c jmp 0x5d24d leaq 0x4c209(%rip), %rsi # 0xa941f leaq 0x4c20a(%rip), %rdx # 0xa9427 jmp 0x5d24d leaq 0x5535b(%rip), %rsi # 0xb2581 leaq 0x55357(%rip), %rdx # 0xb2584 jmp 0x5d24d leaq 0x4c11a(%rip), %rsi # 0xa9350 leaq 0x4c11d(%rip), %rdx # 0xa935a jmp 0x5d24d leaq 0x4ed4c(%rip), %rsi # 0xabf92 leaq 0x4ed4c(%rip), %rdx # 0xabf99 movq %rbx, %rdi callq 0x1d1e4 movq %rbx, %rax popq %rbx retq
_ZN5minja13TemplateToken12typeToStringB5cxx11ENS0_4TypeE: push rbx mov rbx, rdi lea rax, [rdi+10h] mov [rdi], rax cmp esi, 12h; switch 19 cases ja def_5D0EC; jumptable 000000000005D0EC default case mov eax, esi lea rcx, jpt_5D0EC movsxd rax, ds:(jpt_5D0EC - 0A82D0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_5D0EE: lea rsi, aText; jumptable 000000000005D0EC case 0 lea rdx, aText+4; "" jmp loc_5D24D loc_5D101: lea rsi, aEndfilter; jumptable 000000000005D0EC case 16 lea rdx, aEndfilter+9; "" jmp loc_5D24D loc_5D114: lea rsi, aEndmacro; jumptable 000000000005D0EC case 14 lea rdx, aEndmacro+8; "" jmp loc_5D24D loc_5D127: lea rsi, aEndset; jumptable 000000000005D0EC case 11 lea rdx, aEndset+6; "" jmp loc_5D24D loc_5D13A: lea rsi, aElif; jumptable 000000000005D0EC case 4 lea rdx, aElif+4; "" jmp loc_5D24D loc_5D14D: lea rsi, aComment; jumptable 000000000005D0EC case 12 lea rdx, aComment+7; "" jmp loc_5D24D loc_5D160: lea rsi, aEndgeneration; jumptable 000000000005D0EC case 9 lea rdx, aEndgeneration+0Dh; "" jmp loc_5D24D loc_5D173: lea rsi, aEndif+3; jumptable 000000000005D0EC case 2 lea rdx, aEndif+5; "" jmp loc_5D24D loc_5D186: lea rsi, aEndfilter+3; jumptable 000000000005D0EC case 15 lea rdx, aEndfilter+9; "" jmp loc_5D24D loc_5D199: lea rsi, aElse; jumptable 000000000005D0EC case 3 lea rdx, aElse+4; "" jmp loc_5D24D loc_5D1AC: lea rsi, aEndfor; jumptable 000000000005D0EC case 7 lea rdx, aEndfor+6; "" jmp loc_5D24D loc_5D1BF: lea rsi, aExpectedLeftSi_0+24h; jumptable 000000000005D0EC case 1 lea rdx, aExpectedLeftSi_0+2Eh; "" jmp short loc_5D24D loc_5D1CF: lea rsi, aBreak; jumptable 000000000005D0EC case 17 lea rdx, aBreak+5; "" jmp short loc_5D24D loc_5D1DF: lea rsi, aEndif; jumptable 000000000005D0EC case 5 lea rdx, aEndif+5; "" jmp short loc_5D24D loc_5D1EF: lea rsi, aEndmacro+3; jumptable 000000000005D0EC case 13 lea rdx, aEndmacro+8; "" jmp short loc_5D24D loc_5D1FF: lea rsi, aEndfor+3; jumptable 000000000005D0EC case 6 lea rdx, aEndfor+6; "" jmp short loc_5D24D loc_5D20F: lea rsi, aContinue; jumptable 000000000005D0EC case 18 lea rdx, aContinue+8; "" jmp short loc_5D24D loc_5D21F: lea rsi, aAtLeastOneOfMi+2Fh; jumptable 000000000005D0EC case 10 lea rdx, aAtLeastOneOfMi+32h; "" jmp short loc_5D24D loc_5D22F: lea rsi, aEndgeneration+3; jumptable 000000000005D0EC case 8 lea rdx, aEndgeneration+0Dh; "" jmp short loc_5D24D def_5D0EC: lea rsi, aUnknown; jumptable 000000000005D0EC default case lea rdx, aUnknown+7; "" loc_5D24D: mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rax, rbx pop rbx retn
_QWORD * minja::TemplateToken::typeToString[abi:cxx11](_QWORD *a1, int a2) { char *v2; // rsi char *v3; // rdx *a1 = a1 + 2; switch ( a2 ) { case 0: v2 = "text"; v3 = (char *)""; break; case 1: v2 = (char *)"expression"; v3 = (char *)""; break; case 2: v2 = "if"; v3 = ""; break; case 3: v2 = "else"; v3 = ""; break; case 4: v2 = "elif"; v3 = ""; break; case 5: v2 = "endif"; v3 = ""; break; case 6: v2 = "for"; v3 = ""; break; case 7: v2 = "endfor"; v3 = ""; break; case 8: v2 = "generation"; v3 = ""; break; case 9: v2 = "endgeneration"; v3 = ""; break; case 10: v2 = (char *)"set"; v3 = (char *)""; break; case 11: v2 = "endset"; v3 = ""; break; case 12: v2 = "comment"; v3 = ""; break; case 13: v2 = "macro"; v3 = ""; break; case 14: v2 = "endmacro"; v3 = ""; break; case 15: v2 = "filter"; v3 = ""; break; case 16: v2 = "endfilter"; v3 = ""; break; case 17: v2 = "break"; v3 = ""; break; case 18: v2 = "continue"; v3 = ""; break; default: v2 = "Unknown"; v3 = ""; break; } std::string::_M_construct<char const*>((long long)a1, v2, (long long)v3); return a1; }
typeToString[abi:cxx11]: PUSH RBX MOV RBX,RDI LEA RAX,[RDI + 0x10] MOV qword ptr [RDI],RAX CMP ESI,0x12 JA 0x0015d23f MOV EAX,ESI LEA RCX,[0x1a82d0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RSI,[0x1a907c] LEA RDX,[0x1a9080] JMP 0x0015d24d caseD_10: LEA RSI,[0x1a940f] LEA RDX,[0x1a9418] JMP 0x0015d24d caseD_e: LEA RSI,[0x1a93e2] LEA RDX,[0x1a93ea] JMP 0x0015d24d caseD_b: LEA RSI,[0x1a93b8] LEA RDX,[0x1a93be] JMP 0x0015d24d caseD_4: LEA RSI,[0x1a92c2] LEA RDX,[0x1a92c6] JMP 0x0015d24d caseD_c: LEA RSI,[0x1abf8a] LEA RDX,[0x1abf91] JMP 0x0015d24d caseD_9: LEA RSI,[0x1a934d] LEA RDX,[0x1a935a] JMP 0x0015d24d caseD_2: LEA RSI,[0x1a92f0] LEA RDX,[0x1a92f2] JMP 0x0015d24d caseD_f: LEA RSI,[0x1a9412] LEA RDX,[0x1a9418] JMP 0x0015d24d caseD_3: LEA RSI,[0x1a92e8] LEA RDX,[0x1a92ec] JMP 0x0015d24d caseD_7: LEA RSI,[0x1a9346] LEA RDX,[0x1a934c] JMP 0x0015d24d caseD_1: LEA RSI,[0x1a9d29] LEA RDX,[0x1a9d33] JMP 0x0015d24d caseD_11: LEA RSI,[0x1a9419] LEA RDX,[0x1a941e] JMP 0x0015d24d caseD_5: LEA RSI,[0x1a92ed] LEA RDX,[0x1a92f2] JMP 0x0015d24d caseD_d: LEA RSI,[0x1a93e5] LEA RDX,[0x1a93ea] JMP 0x0015d24d caseD_6: LEA RSI,[0x1a9349] LEA RDX,[0x1a934c] JMP 0x0015d24d caseD_12: LEA RSI,[0x1a941f] LEA RDX,[0x1a9427] JMP 0x0015d24d caseD_a: LEA RSI,[0x1b2581] LEA RDX,[0x1b2584] JMP 0x0015d24d caseD_8: LEA RSI,[0x1a9350] LEA RDX,[0x1a935a] JMP 0x0015d24d default: LEA RSI,[0x1abf92] LEA RDX,[0x1abf99] LAB_0015d24d: MOV RDI,RBX CALL 0x0011d1e4 MOV RAX,RBX POP RBX RET
/* minja::TemplateToken::typeToString[abi:cxx11](minja::TemplateToken::Type) */ TemplateToken * __thiscall minja::TemplateToken::typeToString_abi_cxx11_(TemplateToken *this,int4 param_2) { char *pcVar1; char *pcVar2; *(TemplateToken **)this = this + 0x10; switch(param_2) { case 0: pcVar2 = "text"; pcVar1 = ""; break; case 1: pcVar2 = "expression"; pcVar1 = ""; break; case 2: pcVar2 = "if"; pcVar1 = ""; break; case 3: pcVar2 = "else"; pcVar1 = ""; break; case 4: pcVar2 = "elif"; pcVar1 = ""; break; case 5: pcVar2 = "endif"; pcVar1 = ""; break; case 6: pcVar2 = "for"; pcVar1 = ""; break; case 7: pcVar2 = "endfor"; pcVar1 = ""; break; case 8: pcVar2 = "generation"; pcVar1 = ""; break; case 9: pcVar2 = "endgeneration"; pcVar1 = ""; break; case 10: pcVar2 = "set"; pcVar1 = ""; break; case 0xb: pcVar2 = "endset"; pcVar1 = ""; break; case 0xc: pcVar2 = "comment"; pcVar1 = ""; break; case 0xd: pcVar2 = "macro"; pcVar1 = ""; break; case 0xe: pcVar2 = "endmacro"; pcVar1 = ""; break; case 0xf: pcVar2 = "filter"; pcVar1 = ""; break; case 0x10: pcVar2 = "endfilter"; pcVar1 = ""; break; case 0x11: pcVar2 = "break"; pcVar1 = ""; break; case 0x12: pcVar2 = "continue"; pcVar1 = ""; break; default: pcVar2 = "Unknown"; pcVar1 = ""; } std::__cxx11::string::_M_construct<char_const*>(this,pcVar2,pcVar1); return this; }
59,783
LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defiComponent.cpp
void defiComponentMaskShiftLayer::addMaskShiftLayer(const char* layer) { int len = strlen(layer) + 1; if (numLayers_ == layersAllocated_) bumpLayers(numLayers_ * 2); layers_[numLayers_] = (char*)malloc(len); strcpy(layers_[numLayers_], defData->DEFCASE(layer)); (numLayers_)++; }
O0
cpp
LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x18(%rsp), %rdi callq 0x70e0 movq 0x8(%rsp), %rcx addq $0x1, %rax movl %eax, 0x14(%rsp) movl 0x4(%rcx), %eax cmpl (%rcx), %eax jne 0x14025 movq 0x8(%rsp), %rdi movl 0x4(%rdi), %esi shll %esi callq 0x13f40 movslq 0x14(%rsp), %rdi callq 0x72d0 movq %rax, %rsi movq 0x8(%rsp), %rax movq 0x8(%rax), %rcx movslq 0x4(%rax), %rdx movq %rsi, (%rcx,%rdx,8) movq 0x8(%rax), %rcx movslq 0x4(%rax), %rdx movq (%rcx,%rdx,8), %rcx movq %rcx, (%rsp) movq 0x10(%rax), %rdi movq 0x18(%rsp), %rsi callq 0x250b0 movq (%rsp), %rdi movq %rax, %rsi callq 0x7220 movq 0x8(%rsp), %rax movl 0x4(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x4(%rax) addq $0x28, %rsp retq
_ZN12LefDefParser27defiComponentMaskShiftLayer17addMaskShiftLayerEPKc: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rax, [rsp+28h+var_8] mov [rsp+28h+var_20], rax mov rdi, [rsp+28h+var_10] call _strlen mov rcx, [rsp+28h+var_20] add rax, 1 mov [rsp+28h+var_14], eax mov eax, [rcx+4] cmp eax, [rcx] jnz short loc_14025 mov rdi, [rsp+28h+var_20]; this mov esi, [rdi+4] shl esi, 1; int call _ZN12LefDefParser27defiComponentMaskShiftLayer10bumpLayersEi; LefDefParser::defiComponentMaskShiftLayer::bumpLayers(int) loc_14025: movsxd rdi, [rsp+28h+var_14] call _malloc mov rsi, rax mov rax, [rsp+28h+var_20] mov rcx, [rax+8] movsxd rdx, dword ptr [rax+4] mov [rcx+rdx*8], rsi mov rcx, [rax+8] movsxd rdx, dword ptr [rax+4] mov rcx, [rcx+rdx*8] mov [rsp+28h+var_28], rcx mov rdi, [rax+10h]; this mov rsi, [rsp+28h+var_10]; char * call _ZN12LefDefParser8defrData7DEFCASEEPKc; LefDefParser::defrData::DEFCASE(char const*) mov rdi, [rsp+28h+var_28] mov rsi, rax call _strcpy mov rax, [rsp+28h+var_20] mov ecx, [rax+4] add ecx, 1 mov [rax+4], ecx add rsp, 28h retn
LefDefParser::defrData ** LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer( LefDefParser::defrData **this, const char *a2) { long long v2; // rax LefDefParser::defrData **result; // rax long long v4; // [rsp+0h] [rbp-28h] int v5; // [rsp+14h] [rbp-14h] v5 = strlen(a2) + 1; if ( *((_DWORD *)this + 1) == *(_DWORD *)this ) LefDefParser::defiComponentMaskShiftLayer::bumpLayers( (LefDefParser::defiComponentMaskShiftLayer *)this, 2 * *((_DWORD *)this + 1)); *((_QWORD *)this[1] + *((int *)this + 1)) = malloc(v5); v4 = *((_QWORD *)this[1] + *((int *)this + 1)); v2 = LefDefParser::defrData::DEFCASE(this[2], a2); strcpy(v4, v2); result = this; ++*((_DWORD *)this + 1); return result; }
addMaskShiftLayer: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x18] CALL 0x001070e0 MOV RCX,qword ptr [RSP + 0x8] ADD RAX,0x1 MOV dword ptr [RSP + 0x14],EAX MOV EAX,dword ptr [RCX + 0x4] CMP EAX,dword ptr [RCX] JNZ 0x00114025 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RDI + 0x4] SHL ESI,0x1 CALL 0x00113f40 LAB_00114025: MOVSXD RDI,dword ptr [RSP + 0x14] CALL 0x001072d0 MOV RSI,RAX MOV RAX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RAX + 0x8] MOVSXD RDX,dword ptr [RAX + 0x4] MOV qword ptr [RCX + RDX*0x8],RSI MOV RCX,qword ptr [RAX + 0x8] MOVSXD RDX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RCX + RDX*0x8] MOV qword ptr [RSP],RCX MOV RDI,qword ptr [RAX + 0x10] MOV RSI,qword ptr [RSP + 0x18] CALL 0x001250b0 MOV RDI,qword ptr [RSP] MOV RSI,RAX CALL 0x00107220 MOV RAX,qword ptr [RSP + 0x8] MOV ECX,dword ptr [RAX + 0x4] ADD ECX,0x1 MOV dword ptr [RAX + 0x4],ECX ADD RSP,0x28 RET
/* LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer(char const*) */ void __thiscall LefDefParser::defiComponentMaskShiftLayer::addMaskShiftLayer (defiComponentMaskShiftLayer *this,char *param_1) { char *__dest; size_t sVar1; void *pvVar2; char *__src; sVar1 = strlen(param_1); if (*(int *)(this + 4) == *(int *)this) { bumpLayers(this,*(int *)(this + 4) << 1); } pvVar2 = malloc((long)((int)sVar1 + 1)); *(void **)(*(long *)(this + 8) + (long)*(int *)(this + 4) * 8) = pvVar2; __dest = *(char **)(*(long *)(this + 8) + (long)*(int *)(this + 4) * 8); __src = (char *)defrData::DEFCASE(*(defrData **)(this + 0x10),param_1); strcpy(__dest,__src); *(int *)(this + 4) = *(int *)(this + 4) + 1; return; }
59,784
testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(char const*)
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest-matchers.cc
Matcher<internal::StringView>::Matcher(const char* s) { *this = Eq(std::string(s)); }
O3
cpp
testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(char const*): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) leaq 0x5c156(%rip), %r14 # 0xb36e8 addq $0x10, %r14 movq %r14, (%rdi) leaq 0x40(%rsp), %rdi leaq 0x7(%rsp), %rdx callq 0x16c9c leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx addq %rsi, %rdx leaq 0x8(%rsp), %rdi callq 0x18f38 leaq 0x5c4c9(%rip), %rax # 0xb3a98 addq $0x10, %rax movq %rax, 0x28(%rsp) movq $0x0, 0x38(%rsp) leaq 0x5c588(%rip), %rax # 0xb3b70 movq %rax, 0x30(%rsp) movl $0x28, %edi callq 0x11190 movl $0x1, (%rax) movq %rax, %rcx addq $0x18, %rcx movq %rcx, 0x8(%rax) movq 0x8(%rsp), %rdx cmpq %r15, %rdx je 0x57621 movq %rdx, 0x8(%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x18(%rax) jmp 0x57628 movups (%r15), %xmm0 movups %xmm0, (%rcx) movq 0x10(%rsp), %rcx movq %rcx, 0x10(%rax) movq %r15, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) leaq 0x28(%rsp), %rsi movq %rax, 0x10(%rsi) movq %r14, (%rsi) movq %rbx, %rdi callq 0x77c82 leaq 0x28(%rsp), %rdi callq 0x7b444 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x57679 movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x57694 movq 0x50(%rsp), %rsi incq %rsi callq 0x11120 addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x7b444 jmp 0x576b0 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x576cc movq 0x18(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x576cc movq %rax, %r14 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x576ec movq 0x50(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x576ec movq %rax, %r14 movq %rbx, %rdi callq 0x7b444 movq %r14, %rdi callq 0x11760
_ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEC2EPKc: push r15; Alternative name is 'testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::Matcher(char const*)' push r14 push rbx sub rsp, 60h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 lea r14, _ZTVN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEEE; `vtable for'testing::Matcher<std::string_view> add r14, 10h mov [rdi], r14 lea rdi, [rsp+78h+var_38] lea rdx, [rsp+78h+var_71] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea r15, [rsp+78h+var_60] mov [r15-10h], r15 mov rsi, [rsp+78h+var_38] mov rdx, [rsp+78h+var_30] add rdx, rsi lea rdi, [rsp+78h+var_70] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, _ZTVN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEE; `vtable for'testing::internal::MatcherBase<std::string_view> add rax, 10h mov [rsp+78h+var_50], rax mov [rsp+78h+var_40], 0 lea rax, _ZZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEE9GetVTableINS6_11ValuePolicyINS0_9EqMatcherINSt7__cxx1112basic_stringIcS4_SaIcEEEEELb0EEEEEPKNS6_6VTableEvE7kVTable; testing::internal::MatcherBase<std::string_view>::GetVTable<testing::internal::MatcherBase<std::string_view>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable mov [rsp+78h+var_48], rax mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov dword ptr [rax], 1 mov rcx, rax add rcx, 18h mov [rax+8], rcx mov rdx, [rsp+78h+var_70] cmp rdx, r15 jz short loc_57621 mov [rax+8], rdx mov rcx, [rsp+78h+var_60] mov [rax+18h], rcx jmp short loc_57628 loc_57621: movups xmm0, xmmword ptr [r15] movups xmmword ptr [rcx], xmm0 loc_57628: mov rcx, [rsp+78h+var_68] mov [rax+10h], rcx mov [rsp+78h+var_70], r15 mov [rsp+78h+var_68], 0 mov byte ptr [rsp+78h+var_60], 0 lea rsi, [rsp+78h+var_50] mov [rsi+10h], rax mov [rsi], r14 mov rdi, rbx call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEEaSEOS6_; testing::internal::MatcherBase<std::string_view>::operator=(testing::internal::MatcherBase<std::string_view>&&) lea rdi, [rsp+78h+var_50] call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view>::~MatcherBase() mov rdi, [rsp+78h+var_70]; void * cmp rdi, r15 jz short loc_57679 mov rsi, [rsp+78h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_57679: lea rax, [rsp+78h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_57694 mov rsi, [rsp+78h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_57694: add rsp, 60h pop rbx pop r14 pop r15 retn mov r14, rax lea rdi, [rsp+arg_20] call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view>::~MatcherBase() jmp short loc_576B0 mov r14, rax loc_576B0: mov rdi, [rsp+arg_0]; void * cmp rdi, r15 jz short loc_576CC mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_576CC mov r14, rax loc_576CC: lea rax, [rsp+arg_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_576EC mov rsi, [rsp+arg_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_576EC mov r14, rax loc_576EC: mov rdi, rbx call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view>::~MatcherBase() mov rdi, r14 call __Unwind_Resume
void testing::Matcher<std::string_view>::Matcher(long long a1, long long a2) { long long v2; // rax void *v3; // [rsp+8h] [rbp-70h] BYREF long long v4; // [rsp+10h] [rbp-68h] __int128 v5; // [rsp+18h] [rbp-60h] BYREF _QWORD v6[2]; // [rsp+28h] [rbp-50h] BYREF long long v7; // [rsp+38h] [rbp-40h] void *v8[2]; // [rsp+40h] [rbp-38h] BYREF long long v9; // [rsp+50h] [rbp-28h] BYREF *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = &`vtable for'testing::Matcher<std::string_view> + 2; std::string::basic_string<std::allocator<char>>(v8, a2); v3 = &v5; std::string::_M_construct<char *>((long long)&v3, (_BYTE *)v8[0], (long long)v8[0] + (unsigned long long)v8[1]); v6[0] = &`vtable for'testing::internal::MatcherBase<std::string_view> + 2; v7 = 0LL; v6[1] = testing::internal::MatcherBase<std::string_view>::GetVTable<testing::internal::MatcherBase<std::string_view>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable; v2 = operator new(0x28uLL); *(_DWORD *)v2 = 1; *(_QWORD *)(v2 + 8) = v2 + 24; if ( v3 == &v5 ) { *(_OWORD *)(v2 + 24) = v5; } else { *(_QWORD *)(v2 + 8) = v3; *(_QWORD *)(v2 + 24) = v5; } *(_QWORD *)(v2 + 16) = v4; v3 = &v5; v4 = 0LL; LOBYTE(v5) = 0; v7 = v2; v6[0] = &`vtable for'testing::Matcher<std::string_view> + 2; testing::internal::MatcherBase<std::string_view>::operator=(a1); testing::internal::MatcherBase<std::string_view>::~MatcherBase(v6); if ( v3 != &v5 ) operator delete(v3, v5 + 1); if ( v8[0] != &v9 ) operator delete(v8[0], v9 + 1); }
Matcher: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 LEA R14,[0x1b36e8] ADD R14,0x10 MOV qword ptr [RDI],R14 LAB_00157599: LEA RDI,[RSP + 0x40] LEA RDX,[RSP + 0x7] CALL 0x00116c9c LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] ADD RDX,RSI LAB_001575be: LEA RDI,[RSP + 0x8] CALL 0x00118f38 LEA RAX,[0x1b3a98] ADD RAX,0x10 MOV qword ptr [RSP + 0x28],RAX MOV qword ptr [RSP + 0x38],0x0 LEA RAX,[0x1b3b70] MOV qword ptr [RSP + 0x30],RAX LAB_001575ed: MOV EDI,0x28 CALL 0x00111190 MOV dword ptr [RAX],0x1 MOV RCX,RAX ADD RCX,0x18 MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RSP + 0x8] CMP RDX,R15 JZ 0x00157621 MOV qword ptr [RAX + 0x8],RDX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x18],RCX JMP 0x00157628 LAB_00157621: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RCX],XMM0 LAB_00157628: MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RSP + 0x8],R15 MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI],R14 LAB_00157650: MOV RDI,RBX CALL 0x00177c82 LAB_00157658: LEA RDI,[RSP + 0x28] CALL 0x0017b444 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00157679 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00111120 LAB_00157679: LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00157694 MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x00111120 LAB_00157694: ADD RSP,0x60 POP RBX POP R14 POP R15 RET
/* testing::Matcher<std::basic_string_view<char, std::char_traits<char> > >::Matcher(char const*) */ void __thiscall testing::Matcher<std::basic_string_view<char,std::char_traits<char>>>::Matcher (Matcher<std::basic_string_view<char,std::char_traits<char>>> *this,char *param_1) { allocator local_71; int1 *local_70; int8 local_68; int1 local_60; int7 uStack_5f; int8 uStack_58; int **local_50; int1 *local_48; int4 *local_40; long *local_38; long local_30; long local_28 [2]; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int ***)this = &PTR__MatcherBase_001b36f8; /* try { // try from 00157599 to 001575a7 has its CatchHandler @ 001576e9 */ std::__cxx11::string::string<std::allocator<char>>((string *)&local_38,param_1,&local_71); /* try { // try from 001575be to 001575c7 has its CatchHandler @ 001576c9 */ local_70 = &local_60; std::__cxx11::string::_M_construct<char*>(&local_70,local_38,local_30 + (long)local_38); local_50 = &PTR__MatcherBase_001b3aa8; local_40 = (int4 *)0x0; local_48 = internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>:: GetVTable<testing::internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>() ::kVTable; /* try { // try from 001575ed to 001575f6 has its CatchHandler @ 001576ad */ local_40 = (int4 *)operator_new(0x28); *local_40 = 1; *(int4 **)(local_40 + 2) = local_40 + 6; if (local_70 == &local_60) { *(ulong *)(local_40 + 6) = CONCAT71(uStack_5f,local_60); *(int8 *)(local_40 + 8) = uStack_58; } else { *(int1 **)(local_40 + 2) = local_70; *(ulong *)(local_40 + 6) = CONCAT71(uStack_5f,local_60); } *(int8 *)(local_40 + 4) = local_68; local_68 = 0; local_60 = 0; local_50 = &PTR__MatcherBase_001b36f8; local_70 = &local_60; /* try { // try from 00157650 to 00157657 has its CatchHandler @ 0015769e */ internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>::operator= ((MatcherBase<std::basic_string_view<char,std::char_traits<char>>> *)this, (MatcherBase *)&local_50); internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>::~MatcherBase ((MatcherBase<std::basic_string_view<char,std::char_traits<char>>> *)&local_50); if (local_70 != &local_60) { operator_delete(local_70,CONCAT71(uStack_5f,local_60) + 1); } if (local_38 != local_28) { operator_delete(local_38,local_28[0] + 1); } return; }
59,785
mi_fetch_keypage
eloqsql/storage/myisam/mi_page.c
uchar *_mi_fetch_keypage(register MI_INFO *info, MI_KEYDEF *keyinfo, my_off_t page, int level, uchar *buff, int return_buffer) { uchar *tmp; uint page_size; DBUG_ENTER("_mi_fetch_keypage"); DBUG_PRINT("enter",("page: %ld", (long) page)); tmp=(uchar*) key_cache_read(info->s->key_cache, info->s->kfile, page, level, (uchar*) buff, (uint) keyinfo->block_length, (uint) keyinfo->block_length, return_buffer); if (tmp == info->buff) info->buff_used=1; else if (!tmp) { DBUG_PRINT("error",("Got errno: %d from key_cache_read",my_errno)); info->last_keypage=HA_OFFSET_ERROR; mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(0); } info->last_keypage=page; page_size=mi_getint(tmp); if (page_size < 4 || page_size > keyinfo->block_length) { DBUG_PRINT("error",("page %lu had wrong page length: %u", (ulong) page, page_size)); DBUG_DUMP("page", tmp, keyinfo->block_length); info->last_keypage = HA_OFFSET_ERROR; mi_print_error(info->s, HA_ERR_CRASHED); my_errno = HA_ERR_CRASHED; tmp = 0; } DBUG_RETURN(tmp); }
O0
c
mi_fetch_keypage: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) jmp 0xbf7a1 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x278(%rax), %rdi movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x350(%rax), %esi movq -0x20(%rbp), %rdx movl -0x24(%rbp), %ecx movq -0x30(%rbp), %r8 movq -0x18(%rbp), %rax movzwl 0xe(%rax), %r9d movq -0x18(%rbp), %rax movzwl 0xe(%rax), %r10d movl -0x34(%rbp), %eax movl %r10d, (%rsp) movl %eax, 0x8(%rsp) callq 0xe6230 movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x100(%rcx), %rax jne 0xbf80b movq -0x10(%rbp), %rax movb $0x1, 0x33d(%rax) jmp 0xbf857 cmpq $0x0, -0x40(%rbp) jne 0xbf855 jmp 0xbf814 jmp 0xbf816 movq -0x10(%rbp), %rax movq $-0x1, 0x190(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xafca0 callq 0xf7a70 movl $0x7e, (%rax) movq $0x0, -0x8(%rbp) jmp 0xbf8ec jmp 0xbf857 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x190(%rax) movq -0x40(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x40(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax andl $0x7fff, %eax # imm = 0x7FFF movl %eax, -0x44(%rbp) cmpl $0x4, -0x44(%rbp) jb 0xbf8a0 movl -0x44(%rbp), %eax movq -0x18(%rbp), %rcx movzwl 0xe(%rcx), %ecx cmpl %ecx, %eax jbe 0xbf8e2 jmp 0xbf8a2 jmp 0xbf8a4 jmp 0xbf8a6 jmp 0xbf8a8 movq -0x10(%rbp), %rax movq $-0x1, 0x190(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0xafca0 callq 0xf7a70 movl $0x7e, (%rax) movq $0x0, -0x40(%rbp) jmp 0xbf8e4 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_mi_fetch_keypage: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_34], r9d jmp short $+2 loc_BF7A1: mov rax, [rbp+var_10] mov rax, [rax] mov rdi, [rax+278h] mov rax, [rbp+var_10] mov rax, [rax] mov esi, [rax+350h] mov rdx, [rbp+var_20] mov ecx, [rbp+var_24] mov r8, [rbp+var_30] mov rax, [rbp+var_18] movzx r9d, word ptr [rax+0Eh] mov rax, [rbp+var_18] movzx r10d, word ptr [rax+0Eh] mov eax, [rbp+var_34] mov [rsp+60h+var_60], r10d mov [rsp+60h+var_58], eax call key_cache_read mov [rbp+var_40], rax mov rax, [rbp+var_40] mov rcx, [rbp+var_10] cmp rax, [rcx+100h] jnz short loc_BF80B mov rax, [rbp+var_10] mov byte ptr [rax+33Dh], 1 jmp short loc_BF857 loc_BF80B: cmp [rbp+var_40], 0 jnz short loc_BF855 jmp short $+2 loc_BF814: jmp short $+2 loc_BF816: mov rax, [rbp+var_10] mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_8], 0 jmp loc_BF8EC loc_BF855: jmp short $+2 loc_BF857: mov rcx, [rbp+var_20] mov rax, [rbp+var_10] mov [rax+190h], rcx mov rax, [rbp+var_40] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_40] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax and eax, 7FFFh mov [rbp+var_44], eax cmp [rbp+var_44], 4 jb short loc_BF8A0 mov eax, [rbp+var_44] mov rcx, [rbp+var_18] movzx ecx, word ptr [rcx+0Eh] cmp eax, ecx jbe short loc_BF8E2 loc_BF8A0: jmp short $+2 loc_BF8A2: jmp short $+2 loc_BF8A4: jmp short $+2 loc_BF8A6: jmp short $+2 loc_BF8A8: mov rax, [rbp+var_10] mov qword ptr [rax+190h], 0FFFFFFFFFFFFFFFFh mov rax, [rbp+var_10] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_40], 0 loc_BF8E2: jmp short $+2 loc_BF8E4: mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_BF8EC: mov rax, [rbp+var_8] add rsp, 60h pop rbp retn
unsigned __int16 * mi_fetch_keypage(_QWORD *a1, long long a2, long long a3, int a4, int a5, int a6) { const char *v6; // rsi const char *v7; // rsi unsigned int v9; // [rsp+1Ch] [rbp-44h] unsigned __int16 *v10; // [rsp+20h] [rbp-40h] v10 = (unsigned __int16 *)key_cache_read( *(_QWORD *)(*a1 + 632LL), *(_DWORD *)(*a1 + 848LL), a3, a4, a5, *(unsigned __int16 *)(a2 + 14), *(unsigned __int16 *)(a2 + 14), a6); if ( v10 == (unsigned __int16 *)a1[32] ) { *((_BYTE *)a1 + 829) = 1; } else if ( !v10 ) { a1[50] = -1LL; v6 = *(const char **)(*a1 + 616LL); mi_report_error(126, (long long)v6); *(_DWORD *)my_thread_var(126LL, v6) = 126; return 0LL; } a1[50] = a3; v9 = _byteswap_ushort(*v10) & 0x7FFF; if ( v9 < 4 || v9 > *(unsigned __int16 *)(a2 + 14) ) { a1[50] = -1LL; v7 = *(const char **)(*a1 + 616LL); mi_report_error(126, (long long)v7); *(_DWORD *)my_thread_var(126LL, v7) = 126; return 0LL; } return v10; }
_mi_fetch_keypage: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D JMP 0x001bf7a1 LAB_001bf7a1: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x278] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV ESI,dword ptr [RAX + 0x350] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x24] MOV R8,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x18] MOVZX R9D,word ptr [RAX + 0xe] MOV RAX,qword ptr [RBP + -0x18] MOVZX R10D,word ptr [RAX + 0xe] MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RSP],R10D MOV dword ptr [RSP + 0x8],EAX CALL 0x001e6230 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x100] JNZ 0x001bf80b MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x33d],0x1 JMP 0x001bf857 LAB_001bf80b: CMP qword ptr [RBP + -0x40],0x0 JNZ 0x001bf855 JMP 0x001bf814 LAB_001bf814: JMP 0x001bf816 LAB_001bf816: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],-0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001afca0 CALL 0x001f7a70 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x8],0x0 JMP 0x001bf8ec LAB_001bf855: JMP 0x001bf857 LAB_001bf857: MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],RCX MOV RAX,qword ptr [RBP + -0x40] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x40] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX AND EAX,0x7fff MOV dword ptr [RBP + -0x44],EAX CMP dword ptr [RBP + -0x44],0x4 JC 0x001bf8a0 MOV EAX,dword ptr [RBP + -0x44] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RCX + 0xe] CMP EAX,ECX JBE 0x001bf8e2 LAB_001bf8a0: JMP 0x001bf8a2 LAB_001bf8a2: JMP 0x001bf8a4 LAB_001bf8a4: JMP 0x001bf8a6 LAB_001bf8a6: JMP 0x001bf8a8 LAB_001bf8a8: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x190],-0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x001afca0 CALL 0x001f7a70 MOV dword ptr [RAX],0x7e MOV qword ptr [RBP + -0x40],0x0 LAB_001bf8e2: JMP 0x001bf8e4 LAB_001bf8e4: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_001bf8ec: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x60 POP RBP RET
byte * _mi_fetch_keypage(long *param_1,long param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { uint uVar1; int4 *puVar2; byte *local_48; local_48 = (byte *)key_cache_read(*(int8 *)(*param_1 + 0x278), *(int4 *)(*param_1 + 0x350),param_3,param_4,param_5, *(int2 *)(param_2 + 0xe),*(int2 *)(param_2 + 0xe), param_6); if (local_48 == (byte *)param_1[0x20]) { *(int1 *)((long)param_1 + 0x33d) = 1; } else if (local_48 == (byte *)0x0) { param_1[0x32] = -1; mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; return (byte *)0x0; } param_1[0x32] = param_3; uVar1 = (uint)local_48[1] | (*local_48 & 0x7f) << 8; if ((uVar1 < 4) || (*(ushort *)(param_2 + 0xe) < uVar1)) { param_1[0x32] = -1; mi_report_error(0x7e,*(int8 *)(*param_1 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_48 = (byte *)0x0; } return local_48; }
59,786
bool minja::Value::get<bool>() const
llama.cpp/common/minja/minja.hpp
T get() const { if (is_primitive()) return primitive_.get<T>(); throw std::runtime_error("get<T> not defined for this value type: " + dump()); }
O3
cpp
bool minja::Value::get<bool>() const: pushq %rbp pushq %r14 pushq %rbx subq $0x40, %rsp movq %rsi, %r14 cmpq $0x0, 0x10(%rsi) jne 0xbf1c1 cmpq $0x0, 0x20(%r14) jne 0xbf1c1 cmpq $0x0, 0x30(%r14) jne 0xbf1c1 movq %rdi, %rbx addq $0x40, %r14 movq %r14, %rsi callq 0xbf55a movq %rbx, %rax addq $0x40, %rsp popq %rbx popq %r14 popq %rbp retq movl $0x10, %edi callq 0x20650 movq %rax, %rbx movq %rsp, %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6178 leaq 0x60513(%rip), %rsi # 0x11f6fa leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xafa18 movb $0x1, %bpl leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x20480 xorl %ebp, %ebp movq 0xa2db3(%rip), %rsi # 0x161fc0 movq 0xa2d6c(%rip), %rdx # 0x161f80 movq %rbx, %rdi callq 0x20a50 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbf23a movq 0x30(%rsp), %rsi incq %rsi callq 0x20180 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbf255 movq 0x10(%rsp), %rsi incq %rsi callq 0x20180 testb %bpl, %bpl jne 0xbf27f jmp 0xbf287 movq %rax, %r14 leaq 0x10(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xbf27f movq 0x10(%rsp), %rsi incq %rsi callq 0x20180 jmp 0xbf27f movq %rax, %r14 movq %rbx, %rdi callq 0x20ef0 movq %r14, %rdi callq 0x20af0 nop
_ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v: push rbp push r14 push rbx sub rsp, 40h mov r14, rsi cmp qword ptr [rsi+10h], 0 jnz short loc_BF1C1 cmp qword ptr [r14+20h], 0 jnz short loc_BF1C1 cmp qword ptr [r14+30h], 0 jnz short loc_BF1C1 mov rbx, rdi add r14, 40h ; '@' mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE mov rax, rbx add rsp, 40h pop rbx pop r14 pop rbp retn loc_BF1C1: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, rsp mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aGetTNotDefined; "get<T> not defined for this value type:"... lea rdi, [rsp+58h+var_38] mov rdx, rsp call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+58h+var_38] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+58h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BF23A mov rsi, [rsp+58h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_BF23A: lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BF255 mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_BF255: test bpl, bpl jnz short loc_BF27F jmp short loc_BF287 mov r14, rax lea rax, [rsp+58h+var_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_BF27F mov rsi, [rsp+58h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_BF27F mov r14, rax loc_BF27F: mov rdi, rbx; void * call ___cxa_free_exception loc_BF287: mov rdi, r14 call __Unwind_Resume
long long minja::Value::get<std::string>(long long a1, _QWORD *a2) { void *exception; // rbx _BYTE v4[16]; // [rsp+0h] [rbp-58h] BYREF _QWORD v5[2]; // [rsp+20h] [rbp-38h] BYREF if ( a2[2] || a2[4] || a2[6] ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v4, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>(v5, (long long)"get<T> not defined for this value type: ", (long long)v4); std::runtime_error::runtime_error(exception, v5); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( a1, a2 + 8); return a1; }
get<std::__cxx11::string>: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x40 MOV R14,RSI CMP qword ptr [RSI + 0x10],0x0 JNZ 0x001bf1c1 CMP qword ptr [R14 + 0x20],0x0 JNZ 0x001bf1c1 CMP qword ptr [R14 + 0x30],0x0 JNZ 0x001bf1c1 MOV RBX,RDI ADD R14,0x40 MOV RSI,R14 CALL 0x001bf55a MOV RAX,RBX ADD RSP,0x40 POP RBX POP R14 POP RBP RET LAB_001bf1c1: MOV EDI,0x10 CALL 0x00120650 MOV RBX,RAX LAB_001bf1ce: MOV RDI,RSP MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x001b6178 LAB_001bf1e0: LEA RSI,[0x21f6fa] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001afa18 MOV BPL,0x1 LAB_001bf1f7: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x00120480 XOR EBP,EBP MOV RSI,qword ptr [0x00261fc0] MOV RDX,qword ptr [0x00261f80] MOV RDI,RBX CALL 0x00120a50
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >() const */ void minja::Value::get<std::__cxx11::string>(void) { runtime_error *this; long in_RSI; int8 in_RDI; int1 auStack_58 [32]; string local_38 [32]; if (((*(long *)(in_RSI + 0x10) == 0) && (*(long *)(in_RSI + 0x20) == 0)) && (*(long *)(in_RSI + 0x30) == 0)) { _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 (in_RDI,in_RSI + 0x40); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001bf1ce to 001bf1df has its CatchHandler @ 001bf27c */ dump_abi_cxx11_((int)auStack_58,SUB81(in_RSI,0)); /* try { // try from 001bf1e0 to 001bf1f3 has its CatchHandler @ 001bf25c */ std::operator+((char *)local_38,(string *)"get<T> not defined for this value type: "); /* try { // try from 001bf1f7 to 001bf21b has its CatchHandler @ 001bf21c */ std::runtime_error::runtime_error(this,local_38); /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00261fc0,PTR__runtime_error_00261f80); }
59,787
ftxui::ComponentBase::Focused() const
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/component.cpp
bool ComponentBase::Focused() const { const auto* current = this; while (current && current->Active()) { current = current->parent_; } return !current && Focusable(); }
O0
cpp
ftxui::ComponentBase::Focused() const: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq %rax, -0x10(%rbp) xorl %eax, %eax cmpq $0x0, -0x10(%rbp) movb %al, -0x19(%rbp) je 0x50860 movq -0x10(%rbp), %rdi callq 0x507b0 movb %al, -0x19(%rbp) movb -0x19(%rbp), %al testb $0x1, %al jne 0x50869 jmp 0x50877 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x10(%rbp) jmp 0x50848 xorl %eax, %eax cmpq $0x0, -0x10(%rbp) movb %al, -0x1a(%rbp) jne 0x50890 movq -0x18(%rbp), %rdi movq (%rdi), %rax callq *0x30(%rax) movb %al, -0x1a(%rbp) movb -0x1a(%rbp), %al andb $0x1, %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ZNK5ftxui13ComponentBase7FocusedEv: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov [rbp+var_18], rax mov [rbp+var_10], rax loc_50848: xor eax, eax cmp [rbp+var_10], 0 mov [rbp+var_19], al jz short loc_50860 mov rdi, [rbp+var_10]; this call _ZNK5ftxui13ComponentBase6ActiveEv; ftxui::ComponentBase::Active(void) mov [rbp+var_19], al loc_50860: mov al, [rbp+var_19] test al, 1 jnz short loc_50869 jmp short loc_50877 loc_50869: mov rax, [rbp+var_10] mov rax, [rax+20h] mov [rbp+var_10], rax jmp short loc_50848 loc_50877: xor eax, eax cmp [rbp+var_10], 0 mov [rbp+var_1A], al jnz short loc_50890 mov rdi, [rbp+var_18] mov rax, [rdi] call qword ptr [rax+30h] mov [rbp+var_1A], al loc_50890: mov al, [rbp+var_1A] and al, 1 add rsp, 20h pop rbp retn
char ftxui::ComponentBase::Focused(ftxui::ComponentBase *this) { char v2; // [rsp+6h] [rbp-1Ah] bool v3; // [rsp+7h] [rbp-19h] ftxui::ComponentBase *i; // [rsp+10h] [rbp-10h] for ( i = this; ; i = (ftxui::ComponentBase *)*((_QWORD *)i + 4) ) { v3 = 0; if ( i ) v3 = ftxui::ComponentBase::Active(i); if ( !v3 ) break; } v2 = 0; if ( !i ) v2 = (*(long long ( **)(ftxui::ComponentBase *))(*(_QWORD *)this + 48LL))(this); return v2 & 1; }
Focused: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX MOV qword ptr [RBP + -0x10],RAX LAB_00150848: XOR EAX,EAX CMP qword ptr [RBP + -0x10],0x0 MOV byte ptr [RBP + -0x19],AL JZ 0x00150860 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001507b0 MOV byte ptr [RBP + -0x19],AL LAB_00150860: MOV AL,byte ptr [RBP + -0x19] TEST AL,0x1 JNZ 0x00150869 JMP 0x00150877 LAB_00150869: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x10],RAX JMP 0x00150848 LAB_00150877: XOR EAX,EAX CMP qword ptr [RBP + -0x10],0x0 MOV byte ptr [RBP + -0x1a],AL JNZ 0x00150890 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x30] MOV byte ptr [RBP + -0x1a],AL LAB_00150890: MOV AL,byte ptr [RBP + -0x1a] AND AL,0x1 ADD RSP,0x20 POP RBP RET
/* ftxui::ComponentBase::Focused() const */ ulong __thiscall ftxui::ComponentBase::Focused(ComponentBase *this) { int8 uVar1; int1 local_22; byte local_21; ComponentBase *local_18; local_18 = this; while( true ) { local_21 = 0; if (local_18 != (ComponentBase *)0x0) { local_21 = Active(local_18); } if ((local_21 & 1) == 0) break; local_18 = *(ComponentBase **)(local_18 + 0x20); } uVar1 = 0; local_22 = 0; if (local_18 == (ComponentBase *)0x0) { uVar1 = (**(code **)(*(long *)this + 0x30))(); local_22 = (int1)uVar1; } return CONCAT71((int7)((ulong)uVar1 >> 8),local_22) & 0xffffffffffffff01; }
59,788
minja::Parser::parseStringConcat()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseStringConcat() { auto left = parseMathPow(); if (!left) throw std::runtime_error("Expected left side of 'string concat' expression"); static std::regex concat_tok(R"(~(?!\}))"); if (!consumeToken(concat_tok).empty()) { auto right = parseLogicalAnd(); if (!right) throw std::runtime_error("Expected right side of 'string concat' expression"); left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), BinaryOpExpr::Op::StrConcat); } return left; }
O1
cpp
minja::Parser::parseStringConcat(): pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx callq 0x6dc62 cmpq $0x0, (%rbx) je 0x6db32 leaq 0x7e63d(%rip), %rax # 0xec050 movb (%rax), %al testb %al, %al je 0x6db69 leaq 0x7e60c(%rip), %rdx # 0xec030 leaq 0x10(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x602f8 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %r15 cmpq %rax, %rdi je 0x6da55 movq 0x20(%rsp), %rsi incq %rsi callq 0x197a0 testq %r15, %r15 je 0x6db25 movq %rsp, %rdi movq %r14, %rsi callq 0x6c5ec cmpq $0x0, (%rsp) je 0x6dbc0 movq (%r14), %rax movq %rax, 0x10(%rsp) movq 0x8(%r14), %rax movq %rax, 0x18(%rsp) testq %rax, %rax je 0x6da9f movq 0x7d4ff(%rip), %rcx # 0xeaf90 cmpb $0x0, (%rcx) je 0x6da9b incl 0x8(%rax) jmp 0x6da9f lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax movq %rax, 0x20(%rsp) movl $0x58, %edi callq 0x19790 movq %rax, %r14 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r14) leaq 0x7c2ca(%rip), %rax # 0xe9d98 addq $0x10, %rax movq %rax, (%r14) movq %r14, %r15 addq $0x10, %r15 leaq 0x10(%rsp), %rsi movq %rsp, %rcx movq %r15, %rdi movq %rbx, %rdx xorl %r8d, %r8d callq 0x78a04 movq %r15, (%rbx) movq 0x8(%rbx), %rdi movq %r14, 0x8(%rbx) testq %rdi, %rdi je 0x6db07 callq 0x34304 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x6db16 callq 0x34304 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x6db25 callq 0x34304 movq %rbx, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %r15 retq movl $0x10, %edi callq 0x193b0 movq %rax, %r15 leaq 0x4aac8(%rip), %rsi # 0xb860e movq %rax, %rdi callq 0x192c0 movq 0x7d49b(%rip), %rsi # 0xeaff0 movq 0x7d40c(%rip), %rdx # 0xeaf68 movq %r15, %rdi callq 0x19d90 jmp 0x6dbf2 leaq 0x7e4e0(%rip), %rdi # 0xec050 callq 0x19e60 testl %eax, %eax je 0x6da1d leaq 0x7e4ac(%rip), %rdi # 0xec030 leaq 0x4aab4(%rip), %rsi # 0xb863f movl $0x10, %edx callq 0x5fe3e leaq -0xdcf6(%rip), %rdi # 0x5fea6 leaq 0x7e48d(%rip), %rsi # 0xec030 leaq 0x7dc4e(%rip), %rdx # 0xeb7f8 callq 0x19670 leaq 0x7e49a(%rip), %rdi # 0xec050 callq 0x194c0 jmp 0x6da1d movl $0x10, %edi callq 0x193b0 movq %rax, %r15 leaq 0x4aa73(%rip), %rsi # 0xb8647 movq %rax, %rdi callq 0x192c0 movq 0x7d40d(%rip), %rsi # 0xeaff0 movq 0x7d37e(%rip), %rdx # 0xeaf68 movq %r15, %rdi callq 0x19d90 movq %rax, %r14 leaq 0x7e454(%rip), %rdi # 0xec050 callq 0x194b0 jmp 0x6dc4c movq %rax, %r14 jmp 0x6dc36 movq %rax, %r14 movq %r15, %rdi callq 0x19560 jmp 0x6dc36 jmp 0x6dc49 movq %rax, %r14 movq %r15, %rdi callq 0x19560 jmp 0x6dc4c movq %rax, %r14 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x6dc36 callq 0x34304 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x6dc4c callq 0x34304 jmp 0x6dc4c jmp 0x6dc49 movq %rax, %r14 movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x6dc5a callq 0x34304 movq %r14, %rdi callq 0x19e00
_ZN5minja6Parser17parseStringConcatEv: push r15 push r14 push rbx sub rsp, 30h mov r14, rsi mov rbx, rdi call _ZN5minja6Parser12parseMathPowEv; minja::Parser::parseMathPow(void) cmp qword ptr [rbx], 0 jz loc_6DB32 lea rax, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; `guard variable for'minja::Parser::parseStringConcat(void)::concat_tok mov al, [rax] test al, al jz loc_6DB69 loc_6DA1D: lea rdx, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; minja::Parser::parseStringConcat(void)::concat_tok lea rdi, [rsp+48h+var_38] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * mov r15, [rax-8] cmp rdi, rax jz short loc_6DA55 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6DA55: test r15, r15 jz loc_6DB25 mov rdi, rsp; this mov rsi, r14 call _ZN5minja6Parser15parseLogicalAndEv; minja::Parser::parseLogicalAnd(void) cmp [rsp+48h+var_48], 0 jz loc_6DBC0 mov rax, [r14] mov [rsp+48h+var_38], rax mov rax, [r14+8] mov [rsp+48h+var_30], rax test rax, rax jz short loc_6DA9F mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_6DA9B inc dword ptr [rax+8] jmp short loc_6DA9F loc_6DA9B: lock inc dword ptr [rax+8] loc_6DA9F: mov rax, [r14+20h] sub rax, [r14+10h] mov [rsp+48h+var_28], rax mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov r14, rax mov rax, 100000001h mov [r14+8], rax lea rax, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja12BinaryOpExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> add rax, 10h mov [r14], rax mov r15, r14 add r15, 10h lea rsi, [rsp+48h+var_38] mov rcx, rsp mov rdi, r15 mov rdx, rbx xor r8d, r8d call _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE; minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,minja::BinaryOpExpr::Op) mov [rbx], r15 mov rdi, [rbx+8] mov [rbx+8], r14 test rdi, rdi jz short loc_6DB07 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6DB07: mov rdi, [rsp+48h+var_30] test rdi, rdi jz short loc_6DB16 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6DB16: mov rdi, [rsp+48h+var_40] test rdi, rdi jz short loc_6DB25 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6DB25: mov rax, rbx add rsp, 30h pop rbx pop r14 pop r15 retn loc_6DB32: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_2; "Expected left side of 'string concat' e"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_6DBF2 loc_6DB69: lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_6DA1D lea rdi, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; minja::Parser::parseStringConcat(void)::concat_tok lea rsi, asc_B863F; "~(?!\\})" mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_6DA1D loc_6DBC0: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_2; "Expected right side of 'string concat' "... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_6DBF2: mov r14, rax lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_6DC4C mov r14, rax jmp short loc_6DC36 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_6DC36 jmp short loc_6DC49 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_6DC4C mov r14, rax mov rdi, [rsp+48h+var_30] test rdi, rdi jz short loc_6DC36 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6DC36: mov rdi, [rsp+48h+var_40] test rdi, rdi jz short loc_6DC4C 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_6DC4C jmp short $+2 loc_6DC49: mov r14, rax loc_6DC4C: mov rdi, [rbx+8] test rdi, rdi jz short loc_6DC5A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6DC5A: mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseStringConcat(volatile signed __int32 **this, long long *a2) { volatile signed __int32 *v3; // r15 volatile signed __int32 *v4; // rax volatile signed __int32 *v5; // r14 volatile signed __int32 *v6; // rdi std::runtime_error *exception; // r15 std::runtime_error *v9; // r15 volatile signed __int32 *v10; // [rsp+0h] [rbp-48h] BYREF volatile signed __int32 *v11; // [rsp+8h] [rbp-40h] long long *v12; // [rsp+10h] [rbp-38h] BYREF volatile signed __int32 *v13; // [rsp+18h] [rbp-30h] long long v14; // [rsp+20h] [rbp-28h] BYREF minja::Parser::parseMathPow((minja::Parser *)this); if ( !*this ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'string concat' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( !(_BYTE)`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], "~(?!\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11]); } minja::Parser::consumeToken( (long long)&v12, (long long)a2, (long long)&minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], 1u); v3 = v13; if ( v12 != &v14 ) operator delete(v12, v14 + 1); if ( v3 ) { minja::Parser::parseLogicalAnd(&v10, a2); if ( !v10 ) { v9 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v9, "Expected right side of 'string concat' expression"); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v12 = (long long *)*a2; v4 = (volatile signed __int32 *)a2[1]; v13 = v4; if ( v4 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v4 + 2); else _InterlockedIncrement(v4 + 2); } v14 = a2[4] - a2[2]; v5 = (volatile signed __int32 *)operator new(0x58uLL); *((_QWORD *)v5 + 1) = 0x100000001LL; *(_QWORD *)v5 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> + 2; minja::BinaryOpExpr::BinaryOpExpr(v5 + 4, &v12, this, &v10, 0LL); *this = v5 + 4; v6 = this[1]; this[1] = v5; if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); if ( v11 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11); } return (minja::Parser *)this; }
parseStringConcat: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI CALL 0x0016dc62 CMP qword ptr [RBX],0x0 JZ 0x0016db32 LEA RAX,[0x1ec050] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x0016db69 LAB_0016da1d: LEA RDX,[0x1ec030] LEA RDI,[RSP + 0x10] MOV RSI,R14 MOV ECX,0x1 CALL 0x001602f8 LEA RAX,[RSP + 0x20] MOV RDI,qword ptr [RAX + -0x10] MOV R15,qword ptr [RAX + -0x8] CMP RDI,RAX JZ 0x0016da55 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001197a0 LAB_0016da55: TEST R15,R15 JZ 0x0016db25 LAB_0016da5e: MOV RDI,RSP MOV RSI,R14 CALL 0x0016c5ec CMP qword ptr [RSP],0x0 JZ 0x0016dbc0 MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x18],RAX TEST RAX,RAX JZ 0x0016da9f MOV RCX,qword ptr [0x001eaf90] CMP byte ptr [RCX],0x0 JZ 0x0016da9b INC dword ptr [RAX + 0x8] JMP 0x0016da9f LAB_0016da9b: INC.LOCK dword ptr [RAX + 0x8] LAB_0016da9f: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x20],RAX LAB_0016daac: MOV EDI,0x58 CALL 0x00119790 LAB_0016dab6: MOV R14,RAX MOV RAX,0x100000001 MOV qword ptr [R14 + 0x8],RAX LEA RAX,[0x1e9d98] ADD RAX,0x10 MOV qword ptr [R14],RAX MOV R15,R14 ADD R15,0x10 LEA RSI,[RSP + 0x10] MOV RCX,RSP MOV RDI,R15 MOV RDX,RBX XOR R8D,R8D CALL 0x00178a04 MOV qword ptr [RBX],R15 MOV RDI,qword ptr [RBX + 0x8] MOV qword ptr [RBX + 0x8],R14 TEST RDI,RDI JZ 0x0016db07 CALL 0x00134304 LAB_0016db07: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x0016db16 CALL 0x00134304 LAB_0016db16: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x0016db25 CALL 0x00134304 LAB_0016db25: MOV RAX,RBX ADD RSP,0x30 POP RBX POP R14 POP R15 RET LAB_0016db32: MOV EDI,0x10 CALL 0x001193b0 MOV R15,RAX LAB_0016db3f: LEA RSI,[0x1b860e] MOV RDI,RAX CALL 0x001192c0 LAB_0016db4e: MOV RSI,qword ptr [0x001eaff0] MOV RDX,qword ptr [0x001eaf68] MOV RDI,R15 CALL 0x00119d90 LAB_0016db69: LEA RDI,[0x1ec050] CALL 0x00119e60 TEST EAX,EAX JZ 0x0016da1d LAB_0016db7d: LEA RDI,[0x1ec030] LEA RSI,[0x1b863f] MOV EDX,0x10 CALL 0x0015fe3e LAB_0016db95: LEA RDI,[0x15fea6] LEA RSI,[0x1ec030] LEA RDX,[0x1eb7f8] CALL 0x00119670 LEA RDI,[0x1ec050] CALL 0x001194c0 JMP 0x0016da1d LAB_0016dbc0: MOV EDI,0x10 CALL 0x001193b0 MOV R15,RAX LAB_0016dbcd: LEA RSI,[0x1b8647] MOV RDI,RAX CALL 0x001192c0 LAB_0016dbdc: MOV RSI,qword ptr [0x001eaff0] MOV RDX,qword ptr [0x001eaf68] MOV RDI,R15 CALL 0x00119d90
/* minja::Parser::parseStringConcat() */ void minja::Parser::parseStringConcat(void) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this; int iVar1; int8 *puVar2; runtime_error *prVar3; int8 *in_RSI; long *in_RDI; long local_48; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; long *local_38; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; long local_28 [2]; parseMathPow(); if (*in_RDI == 0) { prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016db3f to 0016db4d has its CatchHandler @ 0016dc17 */ std::runtime_error::runtime_error(prVar3,"Expected left side of \'string concat\' expression"); /* try { // try from 0016db4e to 0016db63 has its CatchHandler @ 0016dc15 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_001eaff0,PTR__runtime_error_001eaf68); } if (parseStringConcat()::concat_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseStringConcat()::concat_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 0016db7d to 0016db94 has its CatchHandler @ 0016dbf2 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseStringConcat()::concat_tok_abi_cxx11_,"~(?!\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseStringConcat()::concat_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseStringConcat()::concat_tok_abi_cxx11_); } } /* try { // try from 0016da1d to 0016da35 has its CatchHandler @ 0016dc49 */ consumeToken(&local_38); if (local_38 != local_28) { operator_delete(local_38,local_28[0] + 1); } if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { /* try { // try from 0016da5e to 0016da68 has its CatchHandler @ 0016dc47 */ parseLogicalAnd(); if (local_48 == 0) { prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016dbcd to 0016dbdb has its CatchHandler @ 0016dc08 */ std::runtime_error::runtime_error (prVar3,"Expected right side of \'string concat\' expression"); /* try { // try from 0016dbdc to 0016dbf1 has its CatchHandler @ 0016dc03 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_001eaff0,PTR__runtime_error_001eaf68); } local_38 = (long *)*in_RSI; local_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_001eaf90 == '\0') { LOCK(); *(int *)(local_30 + 8) = *(int *)(local_30 + 8) + 1; UNLOCK(); } else { *(int *)(local_30 + 8) = *(int *)(local_30 + 8) + 1; } } local_28[0] = in_RSI[4] - in_RSI[2]; /* try { // try from 0016daac to 0016dab5 has its CatchHandler @ 0016dc24 */ puVar2 = (int8 *)operator_new(0x58); puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_001e9da8; BinaryOpExpr::BinaryOpExpr((BinaryOpExpr *)(puVar2 + 2),&local_38); *in_RDI = (long)(puVar2 + 2); this = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RDI[1]; in_RDI[1] = (long)puVar2; if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this); } if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } } return; }
59,789
minja::Parser::parseStringConcat()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseStringConcat() { auto left = parseMathPow(); if (!left) throw std::runtime_error("Expected left side of 'string concat' expression"); static std::regex concat_tok(R"(~(?!\}))"); if (!consumeToken(concat_tok).empty()) { auto right = parseLogicalAnd(); if (!right) throw std::runtime_error("Expected right side of 'string concat' expression"); left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), BinaryOpExpr::Op::StrConcat); } return left; }
O2
cpp
minja::Parser::parseStringConcat(): pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movq %rsi, %r14 movq %rdi, %rbx callq 0x6148e cmpq $0x0, (%rbx) je 0x6131f leaq 0x79e33(%rip), %rax # 0xdb0a0 movb (%rax), %al testb %al, %al je 0x61354 leaq 0x79e02(%rip), %rdx # 0xdb080 leaq 0x30(%rsp), %rdi pushq $0x1 popq %rcx movq %r14, %rsi callq 0x55898 leaq 0x30(%rsp), %rdi movq 0x8(%rdi), %r15 callq 0x22078 testq %r15, %r15 je 0x61312 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x60188 cmpq $0x0, 0x8(%rsp) je 0x613a9 leaq 0x30(%rsp), %rdi movq %r14, %rsi callq 0x55474 leaq 0x1c(%rsp), %r8 andl $0x0, (%r8) leaq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x8(%rsp), %rcx movq %rbx, %rdx callq 0x6163f leaq 0x20(%rsp), %rsi movq %rbx, %rdi callq 0x6adc8 leaq 0x28(%rsp), %rdi callq 0x341e0 leaq 0x38(%rsp), %rdi callq 0x341e0 leaq 0x10(%rsp), %rdi callq 0x341e0 movq %rbx, %rax addq $0x50, %rsp popq %rbx popq %r14 popq %r15 retq pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %r15 leaq 0x382bd(%rip), %rsi # 0x995ee movq %rax, %rdi callq 0x212d0 movq 0x78cb0(%rip), %rsi # 0xd9ff0 movq 0x78c21(%rip), %rdx # 0xd9f68 movq %r15, %rdi callq 0x21de0 jmp 0x613d9 leaq 0x79d45(%rip), %rdi # 0xdb0a0 callq 0x21ec0 testl %eax, %eax je 0x61277 leaq 0x79d11(%rip), %rdi # 0xdb080 leaq 0x382a9(%rip), %rsi # 0x9961f pushq $0x10 popq %rdx callq 0x553f4 leaq -0xbf2b(%rip), %rdi # 0x5545a leaq 0x79cf4(%rip), %rsi # 0xdb080 leaq 0x794b5(%rip), %rdx # 0xda848 callq 0x216e0 leaq 0x79d01(%rip), %rdi # 0xdb0a0 callq 0x21520 jmp 0x61277 pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %r15 leaq 0x3826c(%rip), %rsi # 0x99627 movq %rax, %rdi callq 0x212d0 movq 0x78c26(%rip), %rsi # 0xd9ff0 movq 0x78b97(%rip), %rdx # 0xd9f68 movq %r15, %rdi callq 0x21de0 movq %rax, %r14 leaq 0x79cbd(%rip), %rdi # 0xdb0a0 callq 0x21510 jmp 0x6142b jmp 0x61417 movq %rax, %r14 movq %r15, %rdi callq 0x215c0 jmp 0x6141a jmp 0x61428 movq %rax, %r14 movq %r15, %rdi callq 0x215c0 jmp 0x6142b movq %rax, %r14 leaq 0x38(%rsp), %rdi callq 0x341e0 jmp 0x6141a movq %rax, %r14 leaq 0x10(%rsp), %rdi callq 0x341e0 jmp 0x6142b jmp 0x61428 movq %rax, %r14 addq $0x8, %rbx movq %rbx, %rdi callq 0x341e0 movq %r14, %rdi callq 0x21e50
_ZN5minja6Parser17parseStringConcatEv: push r15 push r14 push rbx sub rsp, 50h mov r14, rsi mov rbx, rdi call _ZN5minja6Parser12parseMathPowEv; minja::Parser::parseMathPow(void) cmp qword ptr [rbx], 0 jz loc_6131F lea rax, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; `guard variable for'minja::Parser::parseStringConcat(void)::concat_tok mov al, [rax] test al, al jz loc_61354 loc_61277: lea rdx, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; minja::Parser::parseStringConcat(void)::concat_tok lea rdi, [rsp+68h+var_38] push 1 pop rcx mov rsi, r14 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rdi, [rsp+68h+var_38]; void * mov r15, [rdi+8] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test r15, r15 jz short loc_61312 lea rdi, [rsp+68h+var_60]; this mov rsi, r14 call _ZN5minja6Parser15parseLogicalAndEv; minja::Parser::parseLogicalAnd(void) cmp [rsp+68h+var_60], 0 jz loc_613A9 lea rdi, [rsp+68h+var_38]; this mov rsi, r14 call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) lea r8, [rsp+68h+var_4C] and dword ptr [r8], 0 lea rdi, [rsp+68h+var_48] lea rsi, [rsp+68h+var_38] lea rcx, [rsp+68h+var_60] mov rdx, rbx call _ZSt11make_sharedIN5minja12BinaryOpExprEJNS0_8LocationESt10shared_ptrINS0_10ExpressionEES5_NS1_2OpEEES3_IT_EDpOT0_; std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op>(minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op &&) lea rsi, [rsp+68h+var_48] mov rdi, rbx call _ZNSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEaSINS0_12BinaryOpExprEEENSt9enable_ifIXsr20__sp_compatible_withIPT_PS1_EE5valueERS4_E4typeEOS_IS8_LS3_2EE lea rdi, [rsp+68h+var_40] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+68h+var_30] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+68h+var_58] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_61312: mov rax, rbx add rsp, 50h pop rbx pop r14 pop r15 retn loc_6131F: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_2; "Expected left side of 'string concat' e"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_613D9 loc_61354: lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_61277 lea rdi, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; minja::Parser::parseStringConcat(void)::concat_tok lea rsi, asc_9961F; "~(?!\\})" push 10h pop rdx call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_61277 loc_613A9: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_2; "Expected right side of 'string concat' "... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_613D9: mov r14, rax lea rdi, _ZGVZN5minja6Parser17parseStringConcatEvE10concat_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_6142B jmp short loc_61417 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_6141A jmp short loc_61428 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_6142B mov r14, rax lea rdi, [rsp+68h+var_30] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_6141A loc_61417: mov r14, rax loc_6141A: lea rdi, [rsp+68h+var_58] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_6142B jmp short $+2 loc_61428: mov r14, rax loc_6142B: add rbx, 8 mov rdi, rbx call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseStringConcat(minja::Parser *this, _QWORD *a2) { long long v2; // r15 std::runtime_error *exception; // r15 std::runtime_error *v5; // r15 long long v6; // [rsp+8h] [rbp-60h] BYREF long long v7; // [rsp+10h] [rbp-58h] BYREF int v8; // [rsp+1Ch] [rbp-4Ch] BYREF _BYTE v9[8]; // [rsp+20h] [rbp-48h] BYREF long long v10; // [rsp+28h] [rbp-40h] BYREF long long v11; // [rsp+30h] [rbp-38h] BYREF _QWORD v12[6]; // [rsp+38h] [rbp-30h] BYREF minja::Parser::parseMathPow(this); if ( !*(_QWORD *)this ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'string concat' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( !(_BYTE)`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], "~(?!\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11]); } minja::Parser::consumeToken( &v11, (long long)a2, (int)&minja::Parser::parseStringConcat(void)::concat_tok[abi:cxx11], 1u); v2 = v12[0]; std::string::~string(&v11); if ( v2 ) { minja::Parser::parseLogicalAnd((minja::Parser *)&v6, a2); if ( !v6 ) { v5 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v5, "Expected right side of 'string concat' expression"); __cxa_throw( v5, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Parser::get_location((minja::Parser *)&v11, a2); v8 = 0; std::make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op>( v9, &v11, this, &v6, &v8); std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator=<minja::BinaryOpExpr>(this, v9); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v10); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v12); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7); } return this; }
parseStringConcat: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x50 MOV R14,RSI MOV RBX,RDI CALL 0x0016148e CMP qword ptr [RBX],0x0 JZ 0x0016131f LEA RAX,[0x1db0a0] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x00161354 LAB_00161277: LEA RDX,[0x1db080] LEA RDI,[RSP + 0x30] PUSH 0x1 POP RCX MOV RSI,R14 CALL 0x00155898 LEA RDI,[RSP + 0x30] MOV R15,qword ptr [RDI + 0x8] CALL 0x00122078 TEST R15,R15 JZ 0x00161312 LAB_001612a1: LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00160188 CMP qword ptr [RSP + 0x8],0x0 JZ 0x001613a9 LAB_001612ba: LEA RDI,[RSP + 0x30] MOV RSI,R14 CALL 0x00155474 LEA R8,[RSP + 0x1c] AND dword ptr [R8],0x0 LAB_001612d0: LEA RDI,[RSP + 0x20] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x8] MOV RDX,RBX CALL 0x0016163f LAB_001612e7: LEA RSI,[RSP + 0x20] MOV RDI,RBX CALL 0x0016adc8 LEA RDI,[RSP + 0x28] CALL 0x001341e0 LEA RDI,[RSP + 0x38] CALL 0x001341e0 LEA RDI,[RSP + 0x10] CALL 0x001341e0 LAB_00161312: MOV RAX,RBX ADD RSP,0x50 POP RBX POP R14 POP R15 RET LAB_0016131f: PUSH 0x10 POP RDI CALL 0x001213f0 MOV R15,RAX LAB_0016132a: LEA RSI,[0x1995ee] MOV RDI,RAX CALL 0x001212d0 LAB_00161339: MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,R15 CALL 0x00121de0 LAB_00161354: LEA RDI,[0x1db0a0] CALL 0x00121ec0 TEST EAX,EAX JZ 0x00161277 LAB_00161368: LEA RDI,[0x1db080] LEA RSI,[0x19961f] PUSH 0x10 POP RDX CALL 0x001553f4 LAB_0016137e: LEA RDI,[0x15545a] LEA RSI,[0x1db080] LEA RDX,[0x1da848] CALL 0x001216e0 LEA RDI,[0x1db0a0] CALL 0x00121520 JMP 0x00161277 LAB_001613a9: PUSH 0x10 POP RDI CALL 0x001213f0 MOV R15,RAX LAB_001613b4: LEA RSI,[0x199627] MOV RDI,RAX CALL 0x001212d0 LAB_001613c3: MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,R15 CALL 0x00121de0
/* minja::Parser::parseStringConcat() */ void minja::Parser::parseStringConcat(void) { int iVar1; runtime_error *prVar2; __shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2> *in_RDI; long local_60; __shared_count<(__gnu_cxx::_Lock_policy)2> local_58 [12]; int4 local_4c; Location local_48 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_40 [8]; string local_38 [8]; long local_30 [3]; parseMathPow(); if (*(long *)in_RDI == 0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016132a to 00161338 has its CatchHandler @ 001613fb */ std::runtime_error::runtime_error(prVar2,"Expected left side of \'string concat\' expression"); /* try { // try from 00161339 to 0016134e has its CatchHandler @ 001613f9 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } if (parseStringConcat()::concat_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseStringConcat()::concat_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 00161368 to 0016137d has its CatchHandler @ 001613d9 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseStringConcat()::concat_tok_abi_cxx11_,"~(?!\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseStringConcat()::concat_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseStringConcat()::concat_tok_abi_cxx11_); } } /* try { // try from 00161277 to 0016128d has its CatchHandler @ 00161428 */ consumeToken(local_38); std::__cxx11::string::~string(local_38); if (local_30[0] != 0) { /* try { // try from 001612a1 to 001612ad has its CatchHandler @ 00161426 */ parseLogicalAnd(); if (local_60 == 0) { prVar2 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001613b4 to 001613c2 has its CatchHandler @ 001613ec */ std::runtime_error::runtime_error (prVar2,"Expected right side of \'string concat\' expression"); /* try { // try from 001613c3 to 001613d8 has its CatchHandler @ 001613ea */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar2,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } /* try { // try from 001612ba to 001612c6 has its CatchHandler @ 00161417 */ get_location(); local_4c = 0; /* try { // try from 001612d0 to 001612e6 has its CatchHandler @ 00161408 */ std:: make_shared<minja::BinaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,std::shared_ptr<minja::Expression>,minja::BinaryOpExpr::Op> (local_48,(shared_ptr *)local_38,(shared_ptr *)in_RDI,(Op *)&local_60); std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator= (in_RDI,(__shared_ptr *)local_48); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)local_30); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_58); } return; }
59,790
check_regexp_g_flag
bluesky950520[P]quickjs/quickjs.c
static int check_regexp_g_flag(JSContext *ctx, JSValue regexp) { int ret; JSValue flags; ret = js_is_regexp(ctx, regexp); if (ret < 0) return -1; if (ret) { flags = JS_GetProperty(ctx, regexp, JS_ATOM_flags); if (JS_IsException(flags)) return -1; if (JS_IsUndefined(flags) || JS_IsNull(flags)) { JS_ThrowTypeError(ctx, "cannot convert to object"); return -1; } flags = JS_ToStringFree(ctx, flags); if (JS_IsException(flags)) return -1; ret = string_indexof_char(JS_VALUE_GET_STRING(flags), 'g', 0); JS_FreeValue(ctx, flags); if (ret < 0) { JS_ThrowTypeError(ctx, "regexp must have the 'g' flag"); return -1; } } return 0; }
O2
c
check_regexp_g_flag: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0x45652 pushq $-0x1 popq %r13 testl %eax, %eax js 0x6d29a je 0x6d27d pushq $0x6e popq %rcx movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x1ebf3 leal -0x2(%rdx), %ecx cmpl $0x2, %ecx jae 0x6d281 leaq 0x1f0f4(%rip), %rsi # 0x8c365 movq %rbx, %rdi xorl %eax, %eax callq 0x201fd jmp 0x6d29a xorl %ebp, %ebp jmp 0x6d29d cmpl $0x6, %edx je 0x6d29a movq %rbx, %rdi movq %rax, %rsi callq 0x31bf9 movq %rdx, %r15 cmpl $0x6, %r15d jne 0x6d2ae movl %r13d, %ebp movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 pushq $0x67 popq %rsi xorl %ebp, %ebp movq %rax, %rdi xorl %edx, %edx callq 0x450ac movl %eax, %r12d movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0x1bbce testl %r12d, %r12d jns 0x6d29d leaq 0x1f0a1(%rip), %rsi # 0x8c37e jmp 0x6d271
check_regexp_g_flag: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov r15, rsi mov rbx, rdi call js_is_regexp push 0FFFFFFFFFFFFFFFFh pop r13 test eax, eax js short loc_6D29A jz short loc_6D27D push 6Eh ; 'n' pop rcx mov rdi, rbx mov rsi, r15 mov rdx, r14 call JS_GetProperty lea ecx, [rdx-2] cmp ecx, 2 jnb short loc_6D281 lea rsi, aCannotConvertT_1; "cannot convert to object" loc_6D271: mov rdi, rbx xor eax, eax call JS_ThrowTypeError jmp short loc_6D29A loc_6D27D: xor ebp, ebp jmp short loc_6D29D loc_6D281: cmp edx, 6 jz short loc_6D29A mov rdi, rbx mov rsi, rax call JS_ToStringFree mov r15, rdx cmp r15d, 6 jnz short loc_6D2AE loc_6D29A: mov ebp, r13d loc_6D29D: mov eax, ebp add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_6D2AE: mov r14, rax push 67h ; 'g' pop rsi xor ebp, ebp mov rdi, rax xor edx, edx call string_indexof_char mov r12d, eax mov rdi, rbx mov rsi, r14 mov rdx, r15 call JS_FreeValue test r12d, r12d jns short loc_6D29D lea rsi, aRegexpMustHave; "regexp must have the 'g' flag" jmp short loc_6D271
long long check_regexp_g_flag( long long a1, long long a2, int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { char v11; // al int is_regexp; // eax long long Property; // rax long long v15; // rdx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 long long v20; // rcx const char *v21; // rsi unsigned int v22; // ebp long long v23; // rax long long v24; // rdx long long v25; // r15 long long v27; // r14 int v28; // r12d char v29; // [rsp-8h] [rbp-38h] v29 = v11; is_regexp = js_is_regexp(a1, a2, a3); if ( is_regexp < 0 ) return (unsigned int)-1; if ( is_regexp ) { Property = JS_GetProperty(a1, a2, a3, 110); v20 = (unsigned int)(v15 - 2); if ( (unsigned int)v20 >= 2 ) { if ( (_DWORD)v15 == 6 ) return (unsigned int)-1; v23 = JS_ToStringFree(a1, Property, v15); v25 = v24; if ( (_DWORD)v24 == 6 ) return (unsigned int)-1; v27 = v23; v22 = 0; v28 = string_indexof_char(v23, 0x67u, 0LL); JS_FreeValue(a1, v27, v25); if ( v28 >= 0 ) return v22; v21 = "regexp must have the 'g' flag"; } else { v21 = "cannot convert to object"; } JS_ThrowTypeError(a1, (long long)v21, v15, v20, v16, v17, a4, a5, a6, a7, v18, v19, a10, a11, v29); return (unsigned int)-1; } return 0; }
check_regexp_g_flag: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x00145652 PUSH -0x1 POP R13 TEST EAX,EAX JS 0x0016d29a JZ 0x0016d27d PUSH 0x6e POP RCX MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 CALL 0x0011ebf3 LEA ECX,[RDX + -0x2] CMP ECX,0x2 JNC 0x0016d281 LEA RSI,[0x18c365] LAB_0016d271: MOV RDI,RBX XOR EAX,EAX CALL 0x001201fd JMP 0x0016d29a LAB_0016d27d: XOR EBP,EBP JMP 0x0016d29d LAB_0016d281: CMP EDX,0x6 JZ 0x0016d29a MOV RDI,RBX MOV RSI,RAX CALL 0x00131bf9 MOV R15,RDX CMP R15D,0x6 JNZ 0x0016d2ae LAB_0016d29a: MOV EBP,R13D LAB_0016d29d: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0016d2ae: MOV R14,RAX PUSH 0x67 POP RSI XOR EBP,EBP MOV RDI,RAX XOR EDX,EDX CALL 0x001450ac MOV R12D,EAX MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x0011bbce TEST R12D,R12D JNS 0x0016d29d LEA RSI,[0x18c37e] JMP 0x0016d271
int8 check_regexp_g_flag(int8 param_1,int8 param_2,int8 param_3) { int iVar1; char *pcVar2; int1 auVar3 [16]; int1 auVar4 [12]; iVar1 = js_is_regexp(); if (iVar1 < 0) { return 0xffffffff; } if (iVar1 == 0) { return 0; } auVar4 = JS_GetProperty(param_1,param_2,param_3,0x6e); if (auVar4._8_4_ - 2U < 2) { pcVar2 = "cannot convert to object"; } else { if (auVar4._8_4_ == 6) { return 0xffffffff; } auVar3 = JS_ToStringFree(param_1,auVar4._0_8_); if (auVar3._8_4_ == 6) { return 0xffffffff; } iVar1 = string_indexof_char(auVar3._0_8_,0x67,0); JS_FreeValue(param_1,auVar3._0_8_,auVar3._8_8_); if (-1 < iVar1) { return 0; } pcVar2 = "regexp must have the \'g\' flag"; } JS_ThrowTypeError(param_1,pcVar2); return 0xffffffff; }
59,791
inline_mysql_file_seek
eloqsql/include/mysql/psi/mysql_file.h
static inline my_off_t inline_mysql_file_seek( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, my_off_t pos, int whence, myf flags) { my_off_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_SEEK); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line); result= my_seek(file, pos, whence, flags); PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0); return result; } #endif result= my_seek(file, pos, whence, flags); return result; }
O0
c
inline_mysql_file_seek: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) leaq 0x21bee8(%rip), %rax # 0x301e00 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x8, %edx callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xe5fb3 leaq 0x21bea2(%rip), %rax # 0x301e00 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx xorl %esi, %esi callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movl -0x24(%rbp), %edx movq -0x30(%rbp), %rcx callq 0x1281b0 movq %rax, -0x38(%rbp) leaq 0x21be6b(%rip), %rax # 0x301e00 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi xorl %ecx, %ecx movl %ecx, %esi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xe5fd2 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movl -0x24(%rbp), %edx movq -0x30(%rbp), %rcx callq 0x1281b0 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
inline_mysql_file_seek_7: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 8 call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_E5FB3 lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] xor esi, esi call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov edx, [rbp+var_24] mov rcx, [rbp+var_30] call my_seek mov [rbp+var_38], rax lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] xor ecx, ecx mov esi, ecx call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_E5FD2 loc_E5FB3: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov edx, [rbp+var_24] mov rcx, [rbp+var_30] call my_seek mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_E5FD2: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
long long inline_mysql_file_seek_7( long long a1, unsigned int a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { _BYTE v7[72]; // [rsp+8h] [rbp-88h] BYREF long long v8; // [rsp+50h] [rbp-40h] long long v9; // [rsp+58h] [rbp-38h] long long v10; // [rsp+60h] [rbp-30h] unsigned int v11; // [rsp+6Ch] [rbp-24h] long long v12; // [rsp+70h] [rbp-20h] unsigned int v13; // [rsp+78h] [rbp-18h] unsigned int v14; // [rsp+7Ch] [rbp-14h] long long v15; // [rsp+80h] [rbp-10h] v15 = a1; v14 = a2; v13 = a3; v12 = a4; v11 = a5; v10 = a6; v8 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v7, a3, 8LL); if ( !v8 ) return my_seek(v13, v12, v11, v10); ((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v8, 0LL, v15, v14); v9 = my_seek(v13, v12, v11, v10); ((void ( *)(long long, _QWORD))PSI_server[67])(v8, 0LL); return v9; }
inline_mysql_file_seek: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x401e00] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x8 CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001e5fb3 LEA RAX,[0x401e00] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] XOR ESI,ESI CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x30] CALL 0x002281b0 MOV qword ptr [RBP + -0x38],RAX LEA RAX,[0x401e00] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] XOR ECX,ECX MOV ESI,ECX CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001e5fd2 LAB_001e5fb3: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RBP + -0x24] MOV RCX,qword ptr [RBP + -0x30] CALL 0x002281b0 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001e5fd2: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
int8 inline_mysql_file_seek (int8 param_1,int4 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { int1 local_90 [72]; long local_48; int8 local_40; int8 local_38; int4 local_2c; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; int8 local_10; local_38 = param_6; local_2c = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,8); if (local_48 == 0) { local_10 = my_seek(local_20,local_28,local_2c,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,0,local_18,local_1c); local_40 = my_seek(local_20,local_28,local_2c,local_38); (**(code **)(PSI_server + 0x218))(local_48,0); local_10 = local_40; } return local_10; }
59,792
my_once_alloc
eloqsql/mysys/my_once.c
void* my_once_alloc(size_t Size, myf MyFlags) { size_t get_size, max_left; uchar* point; reg1 USED_MEM *next; reg2 USED_MEM **prev; Size= ALIGN_SIZE(Size); prev= &my_once_root_block; max_left=0; for (next=my_once_root_block ; next && next->left < Size ; next= next->next) { if (next->left > max_left) max_left=next->left; prev= &next->next; } if (! next) { /* Time to alloc new block */ get_size= Size+ALIGN_SIZE(sizeof(USED_MEM)); if (max_left*4 < my_once_extra && get_size < my_once_extra) get_size=my_once_extra; /* Normal alloc */ if ((next = (USED_MEM*) malloc(get_size)) == 0) { my_errno=errno; if (MyFlags & (MY_FAE+MY_WME)) my_error(EE_OUTOFMEMORY, MYF(ME_BELL+ME_FATAL), get_size); return((uchar*) 0); } DBUG_PRINT("test",("my_once_malloc %lu byte malloced", (ulong) get_size)); next->next= 0; next->size= get_size; next->left= get_size-ALIGN_SIZE(sizeof(USED_MEM)); *prev=next; } point= (uchar*) ((char*) next+ (next->size-next->left)); next->left-= Size; if (MyFlags & MY_ZEROFILL) bzero(point, Size); return((void*) point); }
O3
c
my_once_alloc: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 addq $0x7, %r14 andq $-0x8, %r14 leaq 0x33f271(%rip), %r13 # 0x367590 movq (%r13), %rcx xorl %eax, %eax testq %rcx, %rcx je 0x2834a movq %rcx, %r13 movq 0x8(%rcx), %rcx cmpq %r14, %rcx jae 0x28393 cmpq %rax, %rcx cmovaq %rcx, %rax movq (%r13), %rcx testq %rcx, %rcx jne 0x2832a shlq $0x2, %rax leaq 0x18(%r14), %rcx leaq 0x2c803b(%rip), %rdx # 0x2f0390 movl (%rdx), %edx cmpq %rdx, %rcx movq %rdx, %r15 cmovaq %rcx, %r15 cmpq %rdx, %rax cmovaeq %rcx, %r15 movq %r15, %rdi callq 0x24490 testq %rax, %rax je 0x283c4 movq $0x0, (%rax) movq %r15, 0x10(%rax) addq $-0x18, %r15 movq %r15, 0x8(%rax) movq %rax, (%r13) movq 0x8(%rax), %rcx movq %rax, %r13 movq 0x10(%r13), %r12 subq %rcx, %r12 addq %r13, %r12 subq %r14, %rcx movq %rcx, 0x8(%r13) testb $0x20, %bl je 0x283f0 movq %r12, %rdi xorl %esi, %esi movq %r14, %rdx addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x241a0 callq 0x24050 movl (%rax), %r14d callq 0x2974a movl %r14d, (%rax) xorl %r12d, %r12d testb $0x18, %bl je 0x283f0 movl $0x1004, %esi # imm = 0x1004 movl $0x5, %edi movq %r15, %rdx xorl %eax, %eax callq 0x26d87 movq %r12, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_once_alloc: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r14, rdi add r14, 7 and r14, 0FFFFFFFFFFFFFFF8h lea r13, my_once_root_block mov rcx, [r13+0] xor eax, eax test rcx, rcx jz short loc_2834A loc_2832A: mov r13, rcx mov rcx, [rcx+8] cmp rcx, r14 jnb short loc_28393 cmp rcx, rax cmova rax, rcx mov rcx, [r13+0] test rcx, rcx jnz short loc_2832A shl rax, 2 loc_2834A: lea rcx, [r14+18h] lea rdx, my_once_extra mov edx, [rdx] cmp rcx, rdx mov r15, rdx cmova r15, rcx cmp rax, rdx cmovnb r15, rcx mov rdi, r15 call _malloc test rax, rax jz short loc_283C4 mov qword ptr [rax], 0 mov [rax+10h], r15 add r15, 0FFFFFFFFFFFFFFE8h mov [rax+8], r15 mov [r13+0], rax mov rcx, [rax+8] mov r13, rax loc_28393: mov r12, [r13+10h] sub r12, rcx add r12, r13 sub rcx, r14 mov [r13+8], rcx test bl, 20h jz short loc_283F0 mov rdi, r12 xor esi, esi mov rdx, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _memset loc_283C4: call ___errno_location mov r14d, [rax] call _my_thread_var mov [rax], r14d xor r12d, r12d test bl, 18h jz short loc_283F0 mov esi, 1004h mov edi, 5 mov rdx, r15 xor eax, eax call my_error loc_283F0: mov rax, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_once_alloc(long long a1, long long a2) { unsigned long long v2; // r14 _QWORD *v3; // r13 _QWORD *v4; // rcx unsigned long long v5; // rax unsigned long long v6; // rcx unsigned long long v7; // r15 _QWORD *v8; // rax long long v9; // rdx char *v10; // r12 int v12; // r14d v2 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL; v3 = &my_once_root_block; v4 = (_QWORD *)my_once_root_block; v5 = 0LL; if ( my_once_root_block ) { while ( 1 ) { v3 = v4; v6 = v4[1]; if ( v6 >= v2 ) break; if ( v6 > v5 ) v5 = v6; v4 = (_QWORD *)*v3; if ( !*v3 ) { v5 *= 4LL; goto LABEL_7; } } } else { LABEL_7: v7 = my_once_extra; if ( v2 + 24 > my_once_extra ) v7 = v2 + 24; if ( v5 >= my_once_extra ) v7 = v2 + 24; v8 = (_QWORD *)malloc(v7); if ( !v8 ) { v12 = *(_DWORD *)__errno_location(v7, a2, v9); *(_DWORD *)my_thread_var(v7) = v12; v10 = 0LL; if ( (a2 & 0x18) != 0 ) my_error(5u, 4100LL, v7); return (long long)v10; } *v8 = 0LL; v8[2] = v7; v8[1] = v7 - 24; *v3 = v8; v6 = v8[1]; v3 = v8; } v10 = (char *)v3 + v3[2] - v6; v3[1] = v6 - v2; if ( (a2 & 0x20) != 0 ) return memset(v10, 0LL, v2); return (long long)v10; }
my_once_alloc: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI ADD R14,0x7 AND R14,-0x8 LEA R13,[0x467590] MOV RCX,qword ptr [R13] XOR EAX,EAX TEST RCX,RCX JZ 0x0012834a LAB_0012832a: MOV R13,RCX MOV RCX,qword ptr [RCX + 0x8] CMP RCX,R14 JNC 0x00128393 CMP RCX,RAX CMOVA RAX,RCX MOV RCX,qword ptr [R13] TEST RCX,RCX JNZ 0x0012832a SHL RAX,0x2 LAB_0012834a: LEA RCX,[R14 + 0x18] LEA RDX,[0x3f0390] MOV EDX,dword ptr [RDX] CMP RCX,RDX MOV R15,RDX CMOVA R15,RCX CMP RAX,RDX CMOVNC R15,RCX MOV RDI,R15 CALL 0x00124490 TEST RAX,RAX JZ 0x001283c4 MOV qword ptr [RAX],0x0 MOV qword ptr [RAX + 0x10],R15 ADD R15,-0x18 MOV qword ptr [RAX + 0x8],R15 MOV qword ptr [R13],RAX MOV RCX,qword ptr [RAX + 0x8] MOV R13,RAX LAB_00128393: MOV R12,qword ptr [R13 + 0x10] SUB R12,RCX ADD R12,R13 SUB RCX,R14 MOV qword ptr [R13 + 0x8],RCX TEST BL,0x20 JZ 0x001283f0 MOV RDI,R12 XOR ESI,ESI MOV RDX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001241a0 LAB_001283c4: CALL 0x00124050 MOV R14D,dword ptr [RAX] CALL 0x0012974a MOV dword ptr [RAX],R14D XOR R12D,R12D TEST BL,0x18 JZ 0x001283f0 MOV ESI,0x1004 MOV EDI,0x5 MOV RDX,R15 XOR EAX,EAX CALL 0x00126d87 LAB_001283f0: MOV RAX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void * my_once_alloc(long param_1,ulong param_2) { int iVar1; int8 *puVar2; ulong uVar3; int8 *puVar4; int *piVar5; ulong uVar6; ulong uVar7; void *pvVar8; int8 *puVar9; ulong __n; ulong __size; __n = param_1 + 7U & 0xfffffffffffffff8; uVar3 = 0; puVar2 = my_once_root_block; puVar9 = &my_once_root_block; if (my_once_root_block != (int8 *)0x0) { do { puVar4 = puVar2; uVar6 = puVar4[1]; if (__n <= uVar6) goto LAB_00128393; if (uVar3 < uVar6) { uVar3 = uVar6; } puVar2 = (int8 *)*puVar4; } while ((int8 *)*puVar4 != (int8 *)0x0); uVar3 = uVar3 << 2; puVar9 = puVar4; } uVar6 = __n + 0x18; uVar7 = (ulong)my_once_extra; __size = uVar7; if (uVar7 < uVar6) { __size = uVar6; } if (uVar7 <= uVar3) { __size = uVar6; } puVar4 = (int8 *)malloc(__size); if (puVar4 == (int8 *)0x0) { piVar5 = __errno_location(); iVar1 = *piVar5; piVar5 = (int *)_my_thread_var(); *piVar5 = iVar1; pvVar8 = (void *)0x0; if ((param_2 & 0x18) != 0) { my_error(5,0x1004,__size); } } else { *puVar4 = 0; puVar4[2] = __size; puVar4[1] = __size - 0x18; *puVar9 = puVar4; uVar6 = puVar4[1]; LAB_00128393: pvVar8 = (void *)((puVar4[2] - uVar6) + (long)puVar4); puVar4[1] = uVar6 - __n; if ((param_2 & 0x20) != 0) { pvVar8 = memset(pvVar8,0,__n); return pvVar8; } } return pvVar8; }
59,793
plan
eloqsql/libmariadb/unittest/mytap/tap.c
void plan(int const count) { char *config= getenv("MYTAP_CONFIG"); size_t i; if (config) skip_big_tests= strcmp(config, "big"); setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */ /* Install signal handler */ for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i) signal(install_signal[i].signo, install_signal[i].handler); g_test.plan= count; switch (count) { case NO_PLAN: break; default: if (count > 0) fprintf(tapout, "1..%d\n", count); break; } }
O0
c
plan: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) leaq 0x3872f(%rip), %rdi # 0x55b41 callq 0x13540 movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x1d438 movq -0x10(%rbp), %rdi leaq 0x38721(%rip), %rsi # 0x55b4e callq 0x135f0 movl %eax, 0x4b0e8(%rip) # 0x68520 movq 0x4ab89(%rip), %rax # 0x67fc8 movq (%rax), %rdi xorl %eax, %eax movl %eax, %ecx movl $0x2, %edx movq %rcx, %rsi callq 0x13030 movq $0x0, -0x18(%rbp) cmpq $0xa, -0x18(%rbp) jae 0x1d49f movq -0x18(%rbp), %rcx leaq 0x4b0c3(%rip), %rax # 0x68530 shlq $0x4, %rcx addq %rcx, %rax movl (%rax), %edi movq -0x18(%rbp), %rcx leaq 0x4b0af(%rip), %rax # 0x68530 shlq $0x4, %rcx addq %rcx, %rax movq 0x8(%rax), %rsi callq 0x13510 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x1d45b movl -0x4(%rbp), %eax movl %eax, 0x4d38c(%rip) # 0x6a834 movl -0x4(%rbp), %eax testl %eax, %eax jne 0x1d4b3 jmp 0x1d4b1 jmp 0x1d4d6 cmpl $0x0, -0x4(%rbp) jle 0x1d4d4 movq 0x4ab08(%rip), %rax # 0x67fc8 movq (%rax), %rdi movl -0x4(%rbp), %edx leaq 0x38685(%rip), %rsi # 0x55b52 movb $0x0, %al callq 0x13640 jmp 0x1d4d6 addq $0x20, %rsp popq %rbp retq nopl (%rax)
plan: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi lea rdi, aMytapConfig; "MYTAP_CONFIG" call _getenv mov [rbp+var_10], rax cmp [rbp+var_10], 0 jz short loc_1D438 mov rdi, [rbp+var_10] lea rsi, aBig; "big" call _strcmp mov cs:skip_big_tests, eax loc_1D438: mov rax, cs:stdout_ptr mov rdi, [rax] xor eax, eax mov ecx, eax mov edx, 2 mov rsi, rcx call _setvbuf mov [rbp+var_18], 0 loc_1D45B: cmp [rbp+var_18], 0Ah jnb short loc_1D49F mov rcx, [rbp+var_18] lea rax, install_signal shl rcx, 4 add rax, rcx mov edi, [rax] mov rcx, [rbp+var_18] lea rax, install_signal shl rcx, 4 add rax, rcx mov rsi, [rax+8] call _signal mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_1D45B loc_1D49F: mov eax, [rbp+var_4] mov cs:g_test, eax mov eax, [rbp+var_4] test eax, eax jnz short loc_1D4B3 jmp short $+2 loc_1D4B1: jmp short loc_1D4D6 loc_1D4B3: cmp [rbp+var_4], 0 jle short loc_1D4D4 mov rax, cs:stdout_ptr mov rdi, [rax] mov edx, [rbp+var_4] lea rsi, a1D; "1..%d\n" mov al, 0 call _fprintf loc_1D4D4: jmp short $+2 loc_1D4D6: add rsp, 20h pop rbp retn
long long plan(int a1) { long long result; // rax unsigned long long i; // [rsp+8h] [rbp-18h] long long v3; // [rsp+10h] [rbp-10h] v3 = getenv("MYTAP_CONFIG"); if ( v3 ) skip_big_tests = strcmp(v3, "big"); setvbuf(stdout, 0LL, 2LL); for ( i = 0LL; i < 0xA; ++i ) signal(*((unsigned int *)&install_signal + 4 * i), *((_QWORD *)&install_signal + 2 * i + 1)); g_test = a1; result = (unsigned int)a1; if ( a1 > 0 ) return fprintf(stdout, "1..%d\n", a1); return result; }
plan: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI LEA RDI,[0x155b41] CALL 0x00113540 MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x0011d438 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x155b4e] CALL 0x001135f0 MOV dword ptr [0x00168520],EAX LAB_0011d438: MOV RAX,qword ptr [0x00167fc8] MOV RDI,qword ptr [RAX] XOR EAX,EAX MOV ECX,EAX MOV EDX,0x2 MOV RSI,RCX CALL 0x00113030 MOV qword ptr [RBP + -0x18],0x0 LAB_0011d45b: CMP qword ptr [RBP + -0x18],0xa JNC 0x0011d49f MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x168530] SHL RCX,0x4 ADD RAX,RCX MOV EDI,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x18] LEA RAX,[0x168530] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX + 0x8] CALL 0x00113510 MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0011d45b LAB_0011d49f: MOV EAX,dword ptr [RBP + -0x4] MOV dword ptr [0x0016a834],EAX MOV EAX,dword ptr [RBP + -0x4] TEST EAX,EAX JNZ 0x0011d4b3 JMP 0x0011d4b1 LAB_0011d4b1: JMP 0x0011d4d6 LAB_0011d4b3: CMP dword ptr [RBP + -0x4],0x0 JLE 0x0011d4d4 MOV RAX,qword ptr [0x00167fc8] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RBP + -0x4] LEA RSI,[0x155b52] MOV AL,0x0 CALL 0x00113640 LAB_0011d4d4: JMP 0x0011d4d6 LAB_0011d4d6: ADD RSP,0x20 POP RBP RET
void plan(uint param_1) { char *__s1; ulong local_20; __s1 = getenv("MYTAP_CONFIG"); if (__s1 != (char *)0x0) { skip_big_tests = strcmp(__s1,"big"); } setvbuf(*(FILE **)PTR_stdout_00167fc8,(char *)0x0,2,0); for (local_20 = 0; local_20 < 10; local_20 = local_20 + 1) { signal(*(int *)(install_signal + local_20 * 0x10), *(__sighandler_t *)(install_signal + local_20 * 0x10 + 8)); } g_test = param_1; if ((param_1 != 0) && (0 < (int)param_1)) { fprintf(*(FILE **)PTR_stdout_00167fc8,"1..%d\n",(ulong)param_1); } return; }
59,794
plan
eloqsql/libmariadb/unittest/mytap/tap.c
void plan(int const count) { char *config= getenv("MYTAP_CONFIG"); size_t i; if (config) skip_big_tests= strcmp(config, "big"); setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */ /* Install signal handler */ for (i= 0; i < sizeof(install_signal)/sizeof(*install_signal); ++i) signal(install_signal[i].signo, install_signal[i].handler); g_test.plan= count; switch (count) { case NO_PLAN: break; default: if (count > 0) fprintf(tapout, "1..%d\n", count); break; } }
O3
c
plan: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %edi, %ebx leaq 0x21a42(%rip), %rdi # 0x3ba6c callq 0x13590 testq %rax, %rax je 0x1a049 leaq 0x21a3e(%rip), %rsi # 0x3ba79 movq %rax, %rdi callq 0x13640 movl %eax, 0x354d7(%rip) # 0x4f520 movq 0x34f60(%rip), %r15 # 0x4efb0 movq (%r15), %rdi xorl %r12d, %r12d xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0x13040 leaq 0x2db35(%rip), %r13 # 0x47ba0 leaq 0x552(%rip), %r14 # 0x1a5c4 movl (%r12,%r13), %edi movq %r14, %rsi callq 0x13560 addq $0x10, %r12 cmpq $0xa0, %r12 jne 0x1a072 movl %ebx, 0x372c3(%rip) # 0x51354 testl %ebx, %ebx jle 0x1a0bb movq (%r15), %rdi leaq 0x219de(%rip), %rdx # 0x3ba7d movl $0x1, %esi movl %ebx, %ecx xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x13740 addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
plan: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov ebx, edi lea rdi, aMytapConfig; "MYTAP_CONFIG" call _getenv test rax, rax jz short loc_1A049 lea rsi, aBig; "big" mov rdi, rax call _strcmp mov cs:skip_big_tests, eax loc_1A049: mov r15, cs:stdout_ptr mov rdi, [r15] xor r12d, r12d xor esi, esi mov edx, 2 xor ecx, ecx call _setvbuf lea r13, install_signal lea r14, handle_core_signal loc_1A072: mov edi, [r12+r13] mov rsi, r14 call _signal add r12, 10h cmp r12, 0A0h jnz short loc_1A072 mov cs:g_test, ebx test ebx, ebx jle short loc_1A0BB mov rdi, [r15] lea rdx, a1D; "1..%d\n" mov esi, 1 mov ecx, ebx xor eax, eax add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp ___fprintf_chk loc_1A0BB: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long plan(int a1) { long long v1; // rax long long v2; // r12 long long result; // rax v1 = getenv("MYTAP_CONFIG"); if ( v1 ) skip_big_tests = strcmp(v1, "big"); v2 = 0LL; setvbuf(stdout, 0LL, 2LL, 0LL); do { result = signal(*(unsigned int *)((char *)&install_signal + v2), handle_core_signal); v2 += 16LL; } while ( v2 != 160 ); g_test = a1; if ( a1 > 0 ) return __fprintf_chk(stdout, 1LL, "1..%d\n", a1); return result; }
plan: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBX,EDI LEA RDI,[0x13ba6c] CALL 0x00113590 TEST RAX,RAX JZ 0x0011a049 LEA RSI,[0x13ba79] MOV RDI,RAX CALL 0x00113640 MOV dword ptr [0x0014f520],EAX LAB_0011a049: MOV R15,qword ptr [0x0014efb0] MOV RDI,qword ptr [R15] XOR R12D,R12D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x00113040 LEA R13,[0x147ba0] LEA R14,[0x11a5c4] LAB_0011a072: MOV EDI,dword ptr [R12 + R13*0x1] MOV RSI,R14 CALL 0x00113560 ADD R12,0x10 CMP R12,0xa0 JNZ 0x0011a072 MOV dword ptr [0x00151354],EBX TEST EBX,EBX JLE 0x0011a0bb MOV RDI,qword ptr [R15] LEA RDX,[0x13ba7d] MOV ESI,0x1 MOV ECX,EBX XOR EAX,EAX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00113740 LAB_0011a0bb: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void plan(int param_1) { int *puVar1; char *__s1; long lVar2; __s1 = getenv("MYTAP_CONFIG"); if (__s1 != (char *)0x0) { skip_big_tests = strcmp(__s1,"big"); } puVar1 = PTR_stdout_0014efb0; lVar2 = 0; setvbuf(*(FILE **)PTR_stdout_0014efb0,(char *)0x0,2,0); do { signal(*(int *)((long)&install_signal + lVar2),handle_core_signal); lVar2 = lVar2 + 0x10; } while (lVar2 != 0xa0); g_test = param_1; if (0 < param_1) { __fprintf_chk(*(int8 *)puVar1,1,"1..%d\n",param_1); return; } return; }
59,795
google::protobuf::ServiceOptions::InternalSwap(google::protobuf::ServiceOptions*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void ServiceOptions::InternalSwap(ServiceOptions* other) { using std::swap; _impl_._extensions_.InternalSwap(&other->_impl_._extensions_); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.uninterpreted_option_.InternalSwap(&other->_impl_.uninterpreted_option_); swap(_impl_.deprecated_, other->_impl_.deprecated_); }
O0
cpp
google::protobuf::ServiceOptions::InternalSwap(google::protobuf::ServiceOptions*): subq $0x48, %rsp movq %rdi, 0x10(%rsp) movq %rsi, 0x8(%rsp) movq 0x10(%rsp), %rdi movq %rdi, (%rsp) addq $0x10, %rdi movq 0x8(%rsp), %rsi addq $0x10, %rsi callq 0x22a680 movq (%rsp), %rcx addq $0x8, %rcx movq 0x8(%rsp), %rax addq $0x8, %rax movq %rcx, 0x20(%rsp) movq %rax, 0x18(%rsp) movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x93960 movq (%rsp), %rax addq $0x10, %rax addq $0x18, %rax movq %rax, 0x40(%rsp) movl $0x0, 0x3c(%rsp) movq 0x40(%rsp), %rdi movslq 0x3c(%rsp), %rax shlq $0x2, %rax addq %rax, %rdi movq 0x8(%rsp), %rax addq $0x10, %rax addq $0x18, %rax movq %rax, 0x30(%rsp) movl $0x0, 0x2c(%rsp) movq 0x30(%rsp), %rsi movslq 0x2c(%rsp), %rax shlq $0x2, %rax addq %rax, %rsi callq 0x96ed0 movq (%rsp), %rdi addq $0x10, %rdi addq $0x20, %rdi movq 0x8(%rsp), %rsi addq $0x10, %rsi addq $0x20, %rsi callq 0x2dffa0 movq (%rsp), %rdi addq $0x10, %rdi addq $0x38, %rdi movq 0x8(%rsp), %rsi addq $0x10, %rsi addq $0x38, %rsi callq 0x91a10 addq $0x48, %rsp retq nop
_ZN6google8protobuf14ServiceOptions12InternalSwapEPS1_: sub rsp, 48h mov [rsp+48h+var_38], rdi mov [rsp+48h+var_40], rsi mov rdi, [rsp+48h+var_38] mov [rsp+48h+var_48], rdi add rdi, 10h; this mov rsi, [rsp+48h+var_40] add rsi, 10h; google::protobuf::internal::ExtensionSet * call _ZN6google8protobuf8internal12ExtensionSet12InternalSwapEPS2_; google::protobuf::internal::ExtensionSet::InternalSwap(google::protobuf::internal::ExtensionSet*) mov rcx, [rsp+48h+var_48] add rcx, 8 mov rax, [rsp+48h+var_40] add rax, 8 mov [rsp+48h+var_28], rcx mov [rsp+48h+var_30], rax mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_30] call __ZSt4swapIlENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_ mov rax, [rsp+48h+var_48] add rax, 10h add rax, 18h mov [rsp+48h+var_8], rax mov [rsp+48h+var_C], 0 mov rdi, [rsp+48h+var_8] movsxd rax, [rsp+48h+var_C] shl rax, 2 add rdi, rax mov rax, [rsp+48h+var_40] add rax, 10h add rax, 18h mov [rsp+48h+var_18], rax mov [rsp+48h+var_1C], 0 mov rsi, [rsp+48h+var_18] movsxd rax, [rsp+48h+var_1C] shl rax, 2 add rsi, rax call __ZSt4swapIjENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_ mov rdi, [rsp+48h+var_48] add rdi, 10h add rdi, 20h ; ' ' mov rsi, [rsp+48h+var_40] add rsi, 10h add rsi, 20h ; ' ' call _ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE12InternalSwapEPS3_; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::InternalSwap(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>*) mov rdi, [rsp+48h+var_48] add rdi, 10h add rdi, 38h ; '8' mov rsi, [rsp+48h+var_40] add rsi, 10h add rsi, 38h ; '8' call __ZSt4swapIbENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_ add rsp, 48h retn
long long google::protobuf::ServiceOptions::InternalSwap( google::protobuf::ServiceOptions *this, google::protobuf::ServiceOptions *a2) { google::protobuf::internal::ExtensionSet::InternalSwap( (google::protobuf::ServiceOptions *)((char *)this + 16), (google::protobuf::ServiceOptions *)((char *)a2 + 16)); std::swap<long>((char *)this + 8, (char *)a2 + 8); std::swap<unsigned int>((char *)this + 40, (char *)a2 + 40); google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::InternalSwap( (char *)this + 48, (char *)a2 + 48); return std::swap<bool>((char *)this + 72, (char *)a2 + 72); }
59,796
google::protobuf::ServiceOptions::InternalSwap(google::protobuf::ServiceOptions*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void ServiceOptions::InternalSwap(ServiceOptions* other) { using std::swap; _impl_._extensions_.InternalSwap(&other->_impl_._extensions_); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.uninterpreted_option_.InternalSwap(&other->_impl_.uninterpreted_option_); swap(_impl_.deprecated_, other->_impl_.deprecated_); }
O3
cpp
google::protobuf::ServiceOptions::InternalSwap(google::protobuf::ServiceOptions*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 addq $0x10, %rdi addq $0x10, %rsi callq 0xb6712 movq 0x8(%r14), %rax movq 0x8(%rbx), %rcx movq %rcx, 0x8(%r14) movq %rax, 0x8(%rbx) movl 0x28(%r14), %eax movl 0x28(%rbx), %ecx movl %ecx, 0x28(%r14) movl %eax, 0x28(%rbx) movq 0x30(%rbx), %rax movq 0x40(%rbx), %rcx movq 0x30(%r14), %rdx movq 0x40(%r14), %rsi movq %rdx, 0x30(%rbx) movq %rsi, 0x40(%rbx) movq %rax, 0x30(%r14) movq 0x38(%rbx), %rax movq 0x38(%r14), %rdx movq %rdx, 0x38(%rbx) movq %rax, 0x38(%r14) movq %rcx, 0x40(%r14) movb 0x48(%r14), %al movb 0x48(%rbx), %cl movb %cl, 0x48(%r14) movb %al, 0x48(%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq nop
_ZN6google8protobuf14ServiceOptions12InternalSwapEPS1_: push r14 push rbx push rax mov rbx, rsi mov r14, rdi add rdi, 10h; this add rsi, 10h; google::protobuf::internal::ExtensionSet * call _ZN6google8protobuf8internal12ExtensionSet12InternalSwapEPS2_; google::protobuf::internal::ExtensionSet::InternalSwap(google::protobuf::internal::ExtensionSet*) mov rax, [r14+8] mov rcx, [rbx+8] mov [r14+8], rcx mov [rbx+8], rax mov eax, [r14+28h] mov ecx, [rbx+28h] mov [r14+28h], ecx mov [rbx+28h], eax mov rax, [rbx+30h] mov rcx, [rbx+40h] mov rdx, [r14+30h] mov rsi, [r14+40h] mov [rbx+30h], rdx mov [rbx+40h], rsi mov [r14+30h], rax mov rax, [rbx+38h] mov rdx, [r14+38h] mov [rbx+38h], rdx mov [r14+38h], rax mov [r14+40h], rcx mov al, [r14+48h] mov cl, [rbx+48h] mov [r14+48h], cl mov [rbx+48h], al add rsp, 8 pop rbx pop r14 retn
char google::protobuf::ServiceOptions::InternalSwap( google::protobuf::ServiceOptions *this, google::protobuf::ServiceOptions *a2) { long long v3; // rax long long v4; // rax long long v5; // rcx long long v6; // rsi long long v7; // rax char result; // al google::protobuf::internal::ExtensionSet::InternalSwap( (google::protobuf::ServiceOptions *)((char *)this + 16), (google::protobuf::ServiceOptions *)((char *)a2 + 16)); v3 = *((_QWORD *)this + 1); *((_QWORD *)this + 1) = *((_QWORD *)a2 + 1); *((_QWORD *)a2 + 1) = v3; LODWORD(v3) = *((_DWORD *)this + 10); *((_DWORD *)this + 10) = *((_DWORD *)a2 + 10); *((_DWORD *)a2 + 10) = v3; v4 = *((_QWORD *)a2 + 6); v5 = *((_QWORD *)a2 + 8); v6 = *((_QWORD *)this + 8); *((_QWORD *)a2 + 6) = *((_QWORD *)this + 6); *((_QWORD *)a2 + 8) = v6; *((_QWORD *)this + 6) = v4; v7 = *((_QWORD *)a2 + 7); *((_QWORD *)a2 + 7) = *((_QWORD *)this + 7); *((_QWORD *)this + 7) = v7; *((_QWORD *)this + 8) = v5; result = *((_BYTE *)this + 72); *((_BYTE *)this + 72) = *((_BYTE *)a2 + 72); *((_BYTE *)a2 + 72) = result; return result; }
InternalSwap: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI ADD RDI,0x10 ADD RSI,0x10 CALL 0x001b6712 MOV RAX,qword ptr [R14 + 0x8] MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [R14 + 0x8],RCX MOV qword ptr [RBX + 0x8],RAX MOV EAX,dword ptr [R14 + 0x28] MOV ECX,dword ptr [RBX + 0x28] MOV dword ptr [R14 + 0x28],ECX MOV dword ptr [RBX + 0x28],EAX MOV RAX,qword ptr [RBX + 0x30] MOV RCX,qword ptr [RBX + 0x40] MOV RDX,qword ptr [R14 + 0x30] MOV RSI,qword ptr [R14 + 0x40] MOV qword ptr [RBX + 0x30],RDX MOV qword ptr [RBX + 0x40],RSI MOV qword ptr [R14 + 0x30],RAX MOV RAX,qword ptr [RBX + 0x38] MOV RDX,qword ptr [R14 + 0x38] MOV qword ptr [RBX + 0x38],RDX MOV qword ptr [R14 + 0x38],RAX MOV qword ptr [R14 + 0x40],RCX MOV AL,byte ptr [R14 + 0x48] MOV CL,byte ptr [RBX + 0x48] MOV byte ptr [R14 + 0x48],CL MOV byte ptr [RBX + 0x48],AL ADD RSP,0x8 POP RBX POP R14 RET
/* google::protobuf::ServiceOptions::InternalSwap(google::protobuf::ServiceOptions*) */ void __thiscall google::protobuf::ServiceOptions::InternalSwap(ServiceOptions *this,ServiceOptions *param_1) { ServiceOptions SVar1; int4 uVar2; int8 uVar3; int8 uVar4; int8 uVar5; internal::ExtensionSet::InternalSwap ((ExtensionSet *)(this + 0x10),(ExtensionSet *)(param_1 + 0x10)); uVar3 = *(int8 *)(this + 8); *(int8 *)(this + 8) = *(int8 *)(param_1 + 8); *(int8 *)(param_1 + 8) = uVar3; uVar2 = *(int4 *)(this + 0x28); *(int4 *)(this + 0x28) = *(int4 *)(param_1 + 0x28); *(int4 *)(param_1 + 0x28) = uVar2; uVar3 = *(int8 *)(param_1 + 0x30); uVar4 = *(int8 *)(param_1 + 0x40); uVar5 = *(int8 *)(this + 0x40); *(int8 *)(param_1 + 0x30) = *(int8 *)(this + 0x30); *(int8 *)(param_1 + 0x40) = uVar5; *(int8 *)(this + 0x30) = uVar3; uVar3 = *(int8 *)(param_1 + 0x38); *(int8 *)(param_1 + 0x38) = *(int8 *)(this + 0x38); *(int8 *)(this + 0x38) = uVar3; *(int8 *)(this + 0x40) = uVar4; SVar1 = this[0x48]; this[0x48] = param_1[0x48]; param_1[0x48] = SVar1; return; }
59,797
fs_get_cache_directory[abi:cxx11]()
monkey531[P]llama/common/common.cpp
std::string fs_get_cache_directory() { std::string cache_directory = ""; auto ensure_trailing_slash = [](std::string p) { // Make sure to add trailing slash if (p.back() != DIRECTORY_SEPARATOR) { p += DIRECTORY_SEPARATOR; } return p; }; if (getenv("LLAMA_CACHE")) { cache_directory = std::getenv("LLAMA_CACHE"); } else { #ifdef __linux__ if (std::getenv("XDG_CACHE_HOME")) { cache_directory = std::getenv("XDG_CACHE_HOME"); } else { cache_directory = std::getenv("HOME") + std::string("/.cache/"); } #elif defined(__APPLE__) cache_directory = std::getenv("HOME") + std::string("/Library/Caches/"); #elif defined(_WIN32) cache_directory = std::getenv("LOCALAPPDATA"); #endif // __linux__ cache_directory = ensure_trailing_slash(cache_directory); cache_directory += "llama.cpp"; } return ensure_trailing_slash(cache_directory); }
O3
cpp
fs_get_cache_directory[abi:cxx11](): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rdi, %rbx leaq 0x30(%rsp), %r13 movq %r13, -0x10(%r13) leaq 0x7756d(%rip), %rdx # 0xeddac leaq 0x20(%rsp), %rdi movq %rdx, %rsi callq 0x22b0c leaq 0x7a795(%rip), %rdi # 0xf0fe8 callq 0x1bc10 testq %rax, %rax je 0x76889 movq %rax, %r14 leaq 0x20(%rsp), %r15 movq 0x8(%r15), %r12 movq %rax, %rdi callq 0x1b460 movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x1bf90 jmp 0x76a77 leaq 0x7a764(%rip), %rdi # 0xf0ff4 callq 0x1bc10 testq %rax, %rax je 0x768c6 movq %rax, %r14 leaq 0x20(%rsp), %r15 movq 0x8(%r15), %r12 movq %rax, %rdi callq 0x1b460 movq %r15, %rdi xorl %esi, %esi movq %r12, %rdx movq %r14, %rcx movq %rax, %r8 callq 0x1bf90 jmp 0x769a6 leaq 0x7a731(%rip), %rdi # 0xf0ffe callq 0x1bc10 movq %rax, %r14 leaq 0x90(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x7a71b(%rip), %rsi # 0xf1003 leaq 0x7a71c(%rip), %rdx # 0xf100b leaq 0x80(%rsp), %rdi callq 0x22b0c movq %r14, %rdi callq 0x1b460 leaq 0x80(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx movq %r14, %rcx movq %rax, %r8 callq 0x1bb50 leaq 0x70(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x76943 movq %rdx, 0x60(%rsp) movq (%rcx), %rdx movq %rdx, 0x70(%rsp) jmp 0x7694b movups (%rcx), %xmm0 movups %xmm0, (%r12) movq 0x8(%rax), %rdx leaq 0x60(%rsp), %r14 movq %rdx, 0x8(%r14) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x20(%rsp), %rdi movq %r14, %rsi callq 0x1bc30 movq (%r14), %rdi cmpq %r12, %rdi je 0x76989 movq 0x70(%rsp), %rsi incq %rsi callq 0x1ba20 movq 0x80(%rsp), %rdi cmpq %r15, %rdi je 0x769a6 movq 0x90(%rsp), %rsi incq %rsi callq 0x1ba20 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx movq %rsp, %rdi callq 0x229dc movq (%rsp), %rax movq 0x8(%rsp), %rcx cmpb $0x2f, -0x1(%rax,%rcx) je 0x769e5 movq %rsp, %rdi movl $0x2f, %esi callq 0x1b870 movq (%rsp), %rax leaq 0x70(%rsp), %r12 movq %r12, -0x10(%r12) cmpq %r15, %rax je 0x76a05 movq %rax, 0x60(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x70(%rsp) jmp 0x76a0e movups (%r15), %xmm0 movups %xmm0, (%r12) movq 0x8(%rsp), %rax leaq 0x60(%rsp), %r14 movq %rax, 0x8(%r14) movq %r15, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, 0x10(%rsp) leaq 0x20(%rsp), %rdi movq %r14, %rsi callq 0x1bc30 movq (%r14), %rdi cmpq %r12, %rdi je 0x76a50 movq 0x70(%rsp), %rsi incq %rsi callq 0x1ba20 movq (%rsp), %rdi cmpq %r15, %rdi je 0x76a66 movq 0x10(%rsp), %rsi incq %rsi callq 0x1ba20 leaq 0x7a59f(%rip), %rsi # 0xf100c leaq 0x20(%rsp), %rdi callq 0x1c380 leaq 0x50(%rsp), %r14 movq %r14, -0x10(%r14) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx leaq 0x40(%rsp), %rdi callq 0x229dc movq 0x40(%rsp), %rax movq 0x48(%rsp), %rcx cmpb $0x2f, -0x1(%rax,%rcx) je 0x76abc leaq 0x40(%rsp), %rdi movl $0x2f, %esi callq 0x1b870 movq 0x40(%rsp), %rax leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) cmpq %r14, %rax je 0x76ad6 movq %rax, (%rbx) movq 0x50(%rsp), %rax movq %rax, 0x10(%rbx) jmp 0x76add movups (%r14), %xmm0 movups %xmm0, (%rcx) movq 0x48(%rsp), %rax movq %rax, 0x8(%rbx) movq %r14, 0x40(%rsp) movq $0x0, 0x48(%rsp) movb $0x0, 0x50(%rsp) movq 0x20(%rsp), %rdi cmpq %r13, %rdi je 0x76b10 movq 0x30(%rsp), %rsi incq %rsi callq 0x1ba20 movq %rbx, %rax addq $0xa0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x80(%rsp), %rdi cmpq %r15, %rdi je 0x76b74 movq 0x90(%rsp), %rsi jmp 0x76b67 jmp 0x76b71 movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x76b74 movq 0x10(%rsp), %rsi jmp 0x76b67 jmp 0x76b71 movq %rax, %rbx movq 0x40(%rsp), %rdi cmpq %r14, %rdi je 0x76b74 movq 0x50(%rsp), %rsi incq %rsi callq 0x1ba20 jmp 0x76b74 movq %rax, %rbx movq 0x20(%rsp), %rdi cmpq %r13, %rdi je 0x76b8b movq 0x30(%rsp), %rsi incq %rsi callq 0x1ba20 movq %rbx, %rdi callq 0x1c1e0
_Z22fs_get_cache_directoryB5cxx11v: push r15 push r14 push r13 push r12 push rbx sub rsp, 0A0h mov rbx, rdi lea r13, [rsp+0C8h+var_98] mov [r13-10h], r13 lea rdx, aErrorWhileHand_0+34h; "" lea rdi, [rsp+0C8h+var_A8] mov rsi, rdx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rdi, aLlamaCache; "LLAMA_CACHE" call _getenv test rax, rax jz short loc_76889 mov r14, rax lea r15, [rsp+0C8h+var_A8] mov r12, [r15+8] mov rdi, rax call _strlen mov rdi, r15 xor esi, esi mov rdx, r12 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) jmp loc_76A77 loc_76889: lea rdi, aXdgCacheHome; "XDG_CACHE_HOME" call _getenv test rax, rax jz short loc_768C6 mov r14, rax lea r15, [rsp+0C8h+var_A8] mov r12, [r15+8] mov rdi, rax call _strlen mov rdi, r15 xor esi, esi mov rdx, r12 mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) jmp loc_769A6 loc_768C6: lea rdi, aXdgCacheHome+0Ah; "HOME" call _getenv mov r14, rax lea r15, [rsp+0C8h+var_38] mov [r15-10h], r15 lea rsi, aCache; "/.cache/" lea rdx, aCache+8; "" lea rdi, [rsp+0C8h+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) mov rdi, r14 call _strlen lea rdi, [rsp+0C8h+var_48] xor esi, esi xor edx, edx mov rcx, r14 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) lea r12, [rsp+0C8h+var_58] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_76943 mov [rsp+0C8h+var_68], rdx mov rdx, [rcx] mov [rsp+0C8h+var_58], rdx jmp short loc_7694B loc_76943: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 loc_7694B: mov rdx, [rax+8] lea r14, [rsp+0C8h+var_68] mov [r14+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rdi, [rsp+0C8h+var_A8] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_76989 mov rsi, [rsp+0C8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_76989: mov rdi, [rsp+0C8h+var_48]; void * cmp rdi, r15 jz short loc_769A6 mov rsi, [rsp+0C8h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_769A6: lea r15, [rsp+0C8h+var_B8] mov [r15-10h], r15 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] add rdx, rsi mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rax, [rsp+0C8h+var_C8] mov rcx, [rsp+0C8h+var_C0] cmp byte ptr [rax+rcx-1], 2Fh ; '/' jz short loc_769E5 mov rdi, rsp mov esi, 2Fh ; '/' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rax, [rsp+0C8h+var_C8] loc_769E5: lea r12, [rsp+0C8h+var_58] mov [r12-10h], r12 cmp rax, r15 jz short loc_76A05 mov [rsp+0C8h+var_68], rax mov rax, [rsp+0C8h+var_B8] mov [rsp+0C8h+var_58], rax jmp short loc_76A0E loc_76A05: movups xmm0, xmmword ptr [r15] movups xmmword ptr [r12], xmm0 loc_76A0E: mov rax, [rsp+0C8h+var_C0] lea r14, [rsp+0C8h+var_68] mov [r14+8], rax mov [rsp+0C8h+var_C8], r15 mov [rsp+0C8h+var_C0], 0 mov byte ptr [rsp+0C8h+var_B8], 0 lea rdi, [rsp+0C8h+var_A8] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r14]; void * cmp rdi, r12 jz short loc_76A50 mov rsi, [rsp+0C8h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_76A50: mov rdi, [rsp+0C8h+var_C8]; void * cmp rdi, r15 jz short loc_76A66 mov rsi, [rsp+0C8h+var_B8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_76A66: lea rsi, aLlamaCpp; "llama.cpp" lea rdi, [rsp+0C8h+var_A8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) loc_76A77: lea r14, [rsp+0C8h+var_78] mov [r14-10h], r14 mov rsi, [rsp+0C8h+var_A8] mov rdx, [rsp+0C8h+var_A0] add rdx, rsi lea rdi, [rsp+0C8h+var_88] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rax, [rsp+0C8h+var_88] mov rcx, [rsp+0C8h+var_80] cmp byte ptr [rax+rcx-1], 2Fh ; '/' jz short loc_76ABC lea rdi, [rsp+0C8h+var_88] mov esi, 2Fh ; '/' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rax, [rsp+0C8h+var_88] loc_76ABC: lea rcx, [rbx+10h] mov [rbx], rcx cmp rax, r14 jz short loc_76AD6 mov [rbx], rax mov rax, [rsp+0C8h+var_78] mov [rbx+10h], rax jmp short loc_76ADD loc_76AD6: movups xmm0, xmmword ptr [r14] movups xmmword ptr [rcx], xmm0 loc_76ADD: mov rax, [rsp+0C8h+var_80] mov [rbx+8], rax mov [rsp+0C8h+var_88], r14 mov [rsp+0C8h+var_80], 0 mov byte ptr [rsp+0C8h+var_78], 0 mov rdi, [rsp+0C8h+var_A8]; void * cmp rdi, r13 jz short loc_76B10 mov rsi, [rsp+0C8h+var_98] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_76B10: mov rax, rbx add rsp, 0A0h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_78] cmp rdi, r15 jz short loc_76B74 mov rsi, [rsp+arg_88] jmp short loc_76B67 jmp short loc_76B71 mov rbx, rax mov rdi, [rsp+0] cmp rdi, r15 jz short loc_76B74 mov rsi, [rsp+arg_8] jmp short loc_76B67 jmp short loc_76B71 mov rbx, rax mov rdi, [rsp+arg_38]; void * cmp rdi, r14 jz short loc_76B74 mov rsi, [rsp+arg_48] loc_76B67: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_76B74 loc_76B71: mov rbx, rax loc_76B74: mov rdi, [rsp+arg_18]; void * cmp rdi, r13 jz short loc_76B8B mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_76B8B: mov rdi, rbx call __Unwind_Resume
long long fs_get_cache_directory[abi:cxx11](long long a1) { long long v1; // rax long long v2; // r14 long long v3; // r12 long long v4; // rax long long v5; // rax long long v6; // r14 long long v7; // r12 long long v8; // rax long long v9; // r14 long long v10; // rax long long v11; // rax __int128 *v12; // rcx __int128 *v13; // rax __int128 *v14; // rax void *v16; // [rsp+0h] [rbp-C8h] BYREF long long v17; // [rsp+8h] [rbp-C0h] __int128 v18; // [rsp+10h] [rbp-B8h] BYREF void *v19; // [rsp+20h] [rbp-A8h] BYREF long long v20; // [rsp+28h] [rbp-A0h] _QWORD v21[2]; // [rsp+30h] [rbp-98h] BYREF __int128 *v22; // [rsp+40h] [rbp-88h] BYREF long long v23; // [rsp+48h] [rbp-80h] __int128 v24; // [rsp+50h] [rbp-78h] BYREF __int128 *v25; // [rsp+60h] [rbp-68h] BYREF long long v26; // [rsp+68h] [rbp-60h] __int128 v27; // [rsp+70h] [rbp-58h] BYREF void *v28[2]; // [rsp+80h] [rbp-48h] BYREF _QWORD v29[7]; // [rsp+90h] [rbp-38h] BYREF v19 = v21; std::string::_M_construct<char const*>((long long)&v19, "", (long long)""); v1 = getenv("LLAMA_CACHE"); if ( v1 ) { v2 = v1; v3 = v20; v4 = strlen(v1); std::string::_M_replace(&v19, 0LL, v3, v2, v4); } else { v5 = getenv("XDG_CACHE_HOME"); if ( v5 ) { v6 = v5; v7 = v20; v8 = strlen(v5); std::string::_M_replace(&v19, 0LL, v7, v6, v8); } else { v9 = getenv("HOME"); v28[0] = v29; std::string::_M_construct<char const*>((long long)v28, "/.cache/", (long long)""); v10 = strlen(v9); v11 = std::string::replace(v28, 0LL, 0LL, v9, v10); v25 = &v27; v12 = (__int128 *)(v11 + 16); if ( *(_QWORD *)v11 == v11 + 16 ) { v27 = *v12; } else { v25 = *(__int128 **)v11; *(_QWORD *)&v27 = *(_QWORD *)v12; } v26 = *(_QWORD *)(v11 + 8); *(_QWORD *)v11 = v12; *(_QWORD *)(v11 + 8) = 0LL; *(_BYTE *)(v11 + 16) = 0; std::string::operator=(&v19, &v25); if ( v25 != &v27 ) operator delete(v25, v27 + 1); if ( v28[0] != v29 ) operator delete(v28[0], v29[0] + 1LL); } v16 = &v18; std::string::_M_construct<char *>((long long)&v16, v19, (long long)v19 + v20); v13 = (__int128 *)v16; if ( *((char *)v16 + v17 - 1) != 47 ) { std::string::push_back(&v16, 47LL); v13 = (__int128 *)v16; } v25 = &v27; if ( v13 == &v18 ) { v27 = v18; } else { v25 = v13; *(_QWORD *)&v27 = v18; } v26 = v17; v16 = &v18; v17 = 0LL; LOBYTE(v18) = 0; std::string::operator=(&v19, &v25); if ( v25 != &v27 ) operator delete(v25, v27 + 1); if ( v16 != &v18 ) operator delete(v16, v18 + 1); std::string::append(&v19, "llama.cpp"); } v22 = &v24; std::string::_M_construct<char *>((long long)&v22, v19, (long long)v19 + v20); v14 = v22; if ( *((_BYTE *)v22 + v23 - 1) != 47 ) { std::string::push_back(&v22, 47LL); v14 = v22; } *(_QWORD *)a1 = a1 + 16; if ( v14 == &v24 ) { *(_OWORD *)(a1 + 16) = v24; } else { *(_QWORD *)a1 = v14; *(_QWORD *)(a1 + 16) = v24; } *(_QWORD *)(a1 + 8) = v23; v22 = &v24; v23 = 0LL; LOBYTE(v24) = 0; if ( v19 != v21 ) operator delete(v19, v21[0] + 1LL); return a1; }
fs_get_cache_directory[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa0 MOV RBX,RDI LEA R13,[RSP + 0x30] MOV qword ptr [R13 + -0x10],R13 LEA RDX,[0x1eddac] LEA RDI,[RSP + 0x20] MOV RSI,RDX CALL 0x00122b0c LEA RDI,[0x1f0fe8] CALL 0x0011bc10 TEST RAX,RAX JZ 0x00176889 MOV R14,RAX LEA R15,[RSP + 0x20] MOV R12,qword ptr [R15 + 0x8] MOV RDI,RAX CALL 0x0011b460 LAB_00176871: MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 MOV RCX,R14 MOV R8,RAX CALL 0x0011bf90 JMP 0x00176a77 LAB_00176889: LEA RDI,[0x1f0ff4] CALL 0x0011bc10 TEST RAX,RAX JZ 0x001768c6 MOV R14,RAX LEA R15,[RSP + 0x20] MOV R12,qword ptr [R15 + 0x8] MOV RDI,RAX CALL 0x0011b460 MOV RDI,R15 XOR ESI,ESI MOV RDX,R12 MOV RCX,R14 MOV R8,RAX CALL 0x0011bf90 JMP 0x001769a6 LAB_001768c6: LEA RDI,[0x1f0ffe] CALL 0x0011bc10 MOV R14,RAX LEA R15,[RSP + 0x90] MOV qword ptr [R15 + -0x10],R15 LAB_001768e1: LEA RSI,[0x1f1003] LEA RDX,[0x1f100b] LEA RDI,[RSP + 0x80] CALL 0x00122b0c MOV RDI,R14 CALL 0x0011b460 LAB_00176904: LEA RDI,[RSP + 0x80] XOR ESI,ESI XOR EDX,EDX MOV RCX,R14 MOV R8,RAX CALL 0x0011bb50 LEA R12,[RSP + 0x70] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00176943 MOV qword ptr [RSP + 0x60],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x70],RDX JMP 0x0017694b LAB_00176943: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 LAB_0017694b: MOV RDX,qword ptr [RAX + 0x8] LEA R14,[RSP + 0x60] MOV qword ptr [R14 + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RDI,[RSP + 0x20] MOV RSI,R14 CALL 0x0011bc30 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x00176989 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011ba20 LAB_00176989: MOV RDI,qword ptr [RSP + 0x80] CMP RDI,R15 JZ 0x001769a6 MOV RSI,qword ptr [RSP + 0x90] INC RSI CALL 0x0011ba20 LAB_001769a6: LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LAB_001769bc: MOV RDI,RSP CALL 0x001229dc MOV RAX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f JZ 0x001769e5 LAB_001769d4: MOV RDI,RSP MOV ESI,0x2f CALL 0x0011b870 MOV RAX,qword ptr [RSP] LAB_001769e5: LEA R12,[RSP + 0x70] MOV qword ptr [R12 + -0x10],R12 CMP RAX,R15 JZ 0x00176a05 MOV qword ptr [RSP + 0x60],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x70],RAX JMP 0x00176a0e LAB_00176a05: MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [R12],XMM0 LAB_00176a0e: MOV RAX,qword ptr [RSP + 0x8] LEA R14,[RSP + 0x60] MOV qword ptr [R14 + 0x8],RAX MOV qword ptr [RSP],R15 MOV qword ptr [RSP + 0x8],0x0 MOV byte ptr [RSP + 0x10],0x0 LEA RDI,[RSP + 0x20] MOV RSI,R14 CALL 0x0011bc30 MOV RDI,qword ptr [R14] CMP RDI,R12 JZ 0x00176a50 MOV RSI,qword ptr [RSP + 0x70] INC RSI CALL 0x0011ba20 LAB_00176a50: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x00176a66 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0011ba20 LAB_00176a66: LEA RSI,[0x1f100c] LEA RDI,[RSP + 0x20] CALL 0x0011c380 LAB_00176a77: LEA R14,[RSP + 0x50] MOV qword ptr [R14 + -0x10],R14 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LEA RDI,[RSP + 0x40] CALL 0x001229dc MOV RAX,qword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x48] CMP byte ptr [RAX + RCX*0x1 + -0x1],0x2f JZ 0x00176abc LAB_00176aa8: LEA RDI,[RSP + 0x40] MOV ESI,0x2f CALL 0x0011b870 LAB_00176ab7: MOV RAX,qword ptr [RSP + 0x40] LAB_00176abc: LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX CMP RAX,R14 JZ 0x00176ad6 MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RBX + 0x10],RAX JMP 0x00176add LAB_00176ad6: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RCX],XMM0 LAB_00176add: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RBX + 0x8],RAX MOV qword ptr [RSP + 0x40],R14 MOV qword ptr [RSP + 0x48],0x0 MOV byte ptr [RSP + 0x50],0x0 MOV RDI,qword ptr [RSP + 0x20] CMP RDI,R13 JZ 0x00176b10 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011ba20 LAB_00176b10: MOV RAX,RBX ADD RSP,0xa0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* fs_get_cache_directory[abi:cxx11]() */ void fs_get_cache_directory_abi_cxx11_(void) { char *pcVar1; char *pcVar2; long *plVar3; long *plVar4; long *in_RDI; long *local_c8; long local_c0; int1 local_b8; int7 uStack_b7; long lStack_b0; long *local_a8; char *local_a0; long local_98 [2]; int1 *local_88; long local_80; int1 local_78; int7 uStack_77; long lStack_70; long *local_68; long local_60; long local_58; long lStack_50; long *local_48 [2]; long local_38 [2]; local_a8 = local_98; std::__cxx11::string::_M_construct<char_const*>(&local_a8); pcVar1 = getenv("LLAMA_CACHE"); pcVar2 = local_a0; if (pcVar1 == (char *)0x0) { pcVar1 = getenv("XDG_CACHE_HOME"); pcVar2 = local_a0; if (pcVar1 == (char *)0x0) { pcVar2 = getenv("HOME"); /* try { // try from 001768e1 to 001768fb has its CatchHandler @ 00176b3e */ local_48[0] = local_38; std::__cxx11::string::_M_construct<char_const*>(local_48,"/.cache/",""); strlen(pcVar2); /* try { // try from 00176904 to 0017691a has its CatchHandler @ 00176b24 */ plVar3 = (long *)std::__cxx11::string::replace((ulong)local_48,0,(char *)0x0,(ulong)pcVar2); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_58 = *plVar4; lStack_50 = plVar3[3]; local_68 = &local_58; } else { local_58 = *plVar4; local_68 = (long *)*plVar3; } local_60 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; std::__cxx11::string::operator=((string *)&local_a8,(string *)&local_68); 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); } } else { strlen(pcVar1); std::__cxx11::string::_M_replace((ulong)&local_a8,0,pcVar2,(ulong)pcVar1); } local_c8 = (long *)&local_b8; /* try { // try from 001769bc to 001769c3 has its CatchHandler @ 00176b53 */ std::__cxx11::string::_M_construct<char*>(&local_c8,local_a8,local_a0 + (long)local_a8); if (*(char *)((long)local_c8 + local_c0 + -1) != '/') { /* try { // try from 001769d4 to 001769e0 has its CatchHandler @ 00176b40 */ std::__cxx11::string::push_back((char)&local_c8); } local_68 = local_c8; if (local_c8 == (long *)&local_b8) { lStack_50 = lStack_b0; local_68 = &local_58; } local_58 = CONCAT71(uStack_b7,local_b8); local_60 = local_c0; local_c0 = 0; local_b8 = 0; local_c8 = (long *)&local_b8; std::__cxx11::string::operator=((string *)&local_a8,(string *)&local_68); if (local_68 != &local_58) { operator_delete(local_68,local_58 + 1); } if (local_c8 != (long *)&local_b8) { operator_delete(local_c8,CONCAT71(uStack_b7,local_b8) + 1); } /* try { // try from 00176a66 to 00176a96 has its CatchHandler @ 00176b71 */ std::__cxx11::string::append((char *)&local_a8); } else { strlen(pcVar1); /* try { // try from 00176871 to 001768c0 has its CatchHandler @ 00176b71 */ std::__cxx11::string::_M_replace((ulong)&local_a8,0,pcVar2,(ulong)pcVar1); } local_88 = &local_78; std::__cxx11::string::_M_construct<char*>(&local_88,local_a8,local_a0 + (long)local_a8); if (local_88[local_80 + -1] != '/') { /* try { // try from 00176aa8 to 00176ab6 has its CatchHandler @ 00176b55 */ std::__cxx11::string::push_back((char)&local_88); } *in_RDI = (long)(in_RDI + 2); if (local_88 == &local_78) { in_RDI[2] = CONCAT71(uStack_77,local_78); in_RDI[3] = lStack_70; } else { *in_RDI = (long)local_88; in_RDI[2] = CONCAT71(uStack_77,local_78); } in_RDI[1] = local_80; local_80 = 0; local_78 = 0; if (local_a8 != local_98) { local_88 = &local_78; operator_delete(local_a8,local_98[0] + 1); } return; }
59,798
setval
eloqsql/mysys/my_getopt.c
static int setval(const struct my_option *opts, void *value, char *argument, my_bool set_maximum_value) { int err= 0, res= 0; DBUG_ENTER("setval"); if (!argument) argument= enabled_my_option; if (value) { if (set_maximum_value && !(value= opts->u_max_value)) { my_getopt_error_reporter(ERROR_LEVEL, "%s: Maximum value of '%s' cannot be set", my_progname, opts->name); DBUG_RETURN(EXIT_NO_PTR_TO_VARIABLE); } switch ((opts->var_type & GET_TYPE_MASK)) { case GET_BOOL: /* If argument differs from 0, enable option, else disable */ *((my_bool*) value)= get_bool_argument(opts, argument); break; case GET_INT: *((int*) value)= (int) getopt_ll(argument, opts, &err); break; case GET_UINT: *((uint*) value)= (uint) getopt_ull(argument, opts, &err); break; case GET_LONG: *((long*) value)= (long) getopt_ll(argument, opts, &err); break; case GET_ULONG: *((long*) value)= (long) getopt_ull(argument, opts, &err); break; case GET_LL: *((longlong*) value)= getopt_ll(argument, opts, &err); break; case GET_ULL: *((ulonglong*) value)= getopt_ull(argument, opts, &err); break; case GET_DOUBLE: *((double*) value)= getopt_double(argument, opts, &err); break; case GET_STR: /* If no argument or --enable-string-option, set string to "" */ *((char**) value)= argument == enabled_my_option ? (char*) "" : argument; break; case GET_STR_ALLOC: my_free(*((char**) value)); if (!(*((char**) value)= my_strdup(key_memory_defaults, argument == enabled_my_option ? "" : argument, MYF(MY_WME)))) { res= EXIT_OUT_OF_MEMORY; goto ret; }; break; case GET_ENUM: { int type= find_type(argument, opts->typelib, FIND_TYPE_BASIC); if (type == 0) { /* Accept an integer representation of the enumerated item. */ char *endptr; ulong arg= strtoul(argument, &endptr, 10); if (*endptr || arg >= opts->typelib->count) { res= EXIT_ARGUMENT_INVALID; goto ret; } *(ulong*)value= arg; } else if (type < 0) { res= EXIT_AMBIGUOUS_OPTION; goto ret; } else *(ulong*)value= type - 1; } break; case GET_SET: *((ulonglong*)value)= find_typeset(argument, opts->typelib, &err); if (err) { /* Accept an integer representation of the set */ char *endptr; ulonglong arg= (ulonglong) strtol(argument, &endptr, 10); if (*endptr || (arg >> 1) >= (1ULL << (opts->typelib->count-1))) { res= EXIT_ARGUMENT_INVALID; goto ret; }; *(ulonglong*)value= arg; err= 0; } break; case GET_FLAGSET: { char *error; uint error_len; *((ulonglong*)value)= find_set_from_flags(opts->typelib, opts->typelib->count, *(ulonglong *)value, opts->def_value, argument, (uint)strlen(argument), &error, &error_len); if (error) { res= EXIT_ARGUMENT_INVALID; goto ret; }; } break; case GET_BIT: { uint tmp; ulonglong bit= (opts->block_size >= 0 ? opts->block_size : -opts->block_size); /* This sets a bit stored in a longlong. The bit to set is stored in block_size. If block_size is positive then setting the bit means value is true. If block_size is negatitive, then setting the bit means value is false. */ tmp= get_bool_argument(opts, argument); if (opts->block_size < 0) tmp= !tmp; if (tmp) (*(ulonglong*)value)|= bit; else (*(ulonglong*)value)&= ~bit; break; } case GET_NO_ARG: /* get_one_option has taken care of the value already */ default: /* dummy default to avoid compiler warnings */ break; } if (err) { res= EXIT_UNKNOWN_SUFFIX; goto ret; }; } DBUG_RETURN(0); ret: my_getopt_error_reporter(ERROR_LEVEL, "%s: Error while setting value '%s' to '%s'", my_progname, argument, opts->name); DBUG_RETURN(res); }
O3
c
setval: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movl $0x0, -0x2c(%rbp) testq %rdx, %rdx leaq 0x2e9f85(%rip), %r13 # 0x38bb28 movq (%r13), %rax cmoveq %rax, %rbx xorl %r15d, %r15d testq %rsi, %rsi je 0xa1e89 movq %rsi, %r12 movq %rdi, %r14 testb %cl, %cl je 0xa1bca movq 0x20(%r14), %r12 testq %r12, %r12 je 0xa1c03 movq 0x30(%r14), %rcx andl $0x3f, %ecx addq $-0x2, %rcx cmpq $0xe, %rcx ja 0xa1e55 leaq 0x44d42(%rip), %rdx # 0xe6928 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx leaq -0x2c(%rbp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0xa2bc9 jmp 0xa1e51 leaq 0x2e9f0e(%rip), %r8 # 0x38bb18 leaq 0xb6c20f(%rip), %rax # 0xc0de20 movq (%rax), %rdx movq (%r14), %rcx leaq 0x3ef14(%rip), %rsi # 0xe0b32 xorl %edi, %edi xorl %eax, %eax callq *(%r8) movl $0xa, %r15d jmp 0xa1e89 leaq -0x2c(%rbp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0xa2d29 jmp 0xa1e51 movq 0x60(%r14), %rax movq %rax, %r13 negq %r13 cmovsq %rax, %r13 movq %r14, %rdi movq %rbx, %rsi callq 0xa2ad5 movq 0x60(%r14), %rcx shrq $0x3f, %rcx cmpb %cl, %al jne 0xa1ed7 notq %r13 andq (%r12), %r13 jmp 0xa1edb movq 0x28(%r14), %rsi leaq -0x2c(%rbp), %r13 movq %rbx, %rdi movq %r13, %rdx callq 0xaa084 movq %rax, (%r12) cmpl $0x0, (%r13) je 0xa1e89 leaq -0x40(%rbp), %r13 movq %rbx, %rdi movq %r13, %rsi movl $0xa, %edx callq 0x2a710 movq (%r13), %rcx cmpb $0x0, (%rcx) jne 0xa1f3d movq %rax, %rdx shrq %rdx movq 0x28(%r14), %rcx movb (%rcx), %cl decb %cl shrq %cl, %rdx testq %rdx, %rdx jne 0xa1f3d movq %rax, (%r12) jmp 0xa1e89 movq %r14, %rdi movq %rbx, %rsi callq 0xa2ad5 movb %al, (%r12) jmp 0xa1e55 movq 0x28(%r14), %r13 movq 0x40(%r14), %rax movq %rax, -0x38(%rbp) movl (%r13), %eax movl %eax, -0x44(%rbp) movq (%r12), %rax movq %rax, -0x50(%rbp) movq %rbx, %rdi callq 0x2a320 leaq -0x30(%rbp), %r10 leaq -0x40(%rbp), %r11 movq %r13, %rdi movl -0x44(%rbp), %esi movq -0x50(%rbp), %rdx movq -0x38(%rbp), %rcx movq %rbx, %r8 movl %eax, %r9d pushq %r10 pushq %r11 movq %r11, %r13 callq 0xaa233 addq $0x10, %rsp movq %rax, (%r12) cmpq $0x0, (%r13) movl $0xd, %r12d jne 0xa1e61 jmp 0xa1e55 leaq 0x3e8(%rbx), %rax leaq -0x40(%rbp), %r13 movq %rax, (%r13) leaq -0x30(%rbp), %rdx movq %rbx, %rdi movq %r13, %rsi callq 0xd8998 movq (%r13), %rax cmpb $0x0, (%rax) jne 0xa1ee4 cmpl $0x0, -0x30(%rbp) jne 0xa1ee4 movsd 0x48(%r14), %xmm1 movsd 0x50(%r14), %xmm4 movapd %xmm4, %xmm2 cmpltpd %xmm0, %xmm2 xorpd %xmm3, %xmm3 cmpneqpd %xmm4, %xmm3 andpd %xmm2, %xmm3 movd %xmm3, %eax testb $0x1, %al jne 0xa1dbf movapd %xmm0, %xmm4 ucomisd %xmm4, %xmm1 seta %cl orb %cl, %al maxsd %xmm4, %xmm1 testb $0x1, %al je 0xa1f06 leaq 0x2e9d3d(%rip), %rcx # 0x38bb18 movq (%r14), %rdx leaq 0x3eb26(%rip), %rsi # 0xe090b movl $0x1, %edi movb $0x2, %al movsd %xmm1, -0x38(%rbp) callq *(%rcx) movsd -0x38(%rbp), %xmm1 jmp 0xa1f06 leaq -0x2c(%rbp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0xa2d29 jmp 0xa1e1d leaq -0x2c(%rbp), %rdx movq %rbx, %rdi movq %r14, %rsi callq 0xa2bc9 movl %eax, (%r12) jmp 0xa1e55 cmpq %rax, %rbx leaq 0x4297c(%rip), %rax # 0xe47a9 cmovneq %rbx, %rax jmp 0xa1e51 movq 0x28(%r14), %rsi movq %rbx, %rdi xorl %edx, %edx callq 0xa9e9d testl %eax, %eax je 0xa1f11 js 0xa1f48 decl %eax movq %rax, (%r12) movl $0x9, %r12d cmpl $0x0, -0x2c(%rbp) je 0xa1e89 leaq 0x2e9cb0(%rip), %r9 # 0x38bb18 leaq 0xb6bfb1(%rip), %rax # 0xc0de20 movq (%rax), %rdx movq (%r14), %r8 leaq 0x3ecde(%rip), %rsi # 0xe0b5a xorl %edi, %edi movq %rbx, %rcx xorl %eax, %eax callq *(%r9) movl %r12d, %r15d movl %r15d, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq (%r12), %rdi callq 0xa4926 leaq 0xb6c8bd(%rip), %rax # 0xc0e768 cmpq (%r13), %rbx movl (%rax), %edi leaq 0x428f1(%rip), %rsi # 0xe47a9 cmovneq %rbx, %rsi movl $0x10, %edx callq 0xa49bc movq %rax, (%r12) testq %rax, %rax jne 0xa1e55 movl $0x8, %r12d jmp 0xa1e61 orq (%r12), %r13 movq %r13, (%r12) jmp 0xa1e55 leaq 0x2e9c2d(%rip), %rcx # 0x38bb18 movq (%r14), %rdx leaq 0x3eda9(%rip), %rsi # 0xe0c9e xorl %edi, %edi xorl %eax, %eax callq *(%rcx) movl $0xd, -0x2c(%rbp) xorpd %xmm1, %xmm1 movsd %xmm1, (%r12) jmp 0xa1e55 leaq -0x40(%rbp), %r13 movq %rbx, %rdi movq %r13, %rsi movl $0xa, %edx callq 0x2a090 movq (%r13), %rcx cmpb $0x0, (%rcx) jne 0xa1f3d movq 0x28(%r14), %rcx movl (%rcx), %ecx cmpq %rcx, %rax jb 0xa1e51 movl $0xd, %r12d jmp 0xa1e61 movl $0x3, %r12d jmp 0xa1e61
setval: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov [rbp+var_2C], 0 test rdx, rdx lea r13, enabled_my_option mov rax, [r13+0] cmovz rbx, rax xor r15d, r15d test rsi, rsi jz loc_A1E89 mov r12, rsi mov r14, rdi test cl, cl jz short loc_A1BCA mov r12, [r14+20h] test r12, r12 jz short loc_A1C03 loc_A1BCA: mov rcx, [r14+30h] and ecx, 3Fh add rcx, 0FFFFFFFFFFFFFFFEh; switch 15 cases cmp rcx, 0Eh ja def_A1BED; jumptable 00000000000A1BED default case, case 11 lea rdx, jpt_A1BED movsxd rcx, ds:(jpt_A1BED - 0E6928h)[rdx+rcx*4] add rcx, rdx jmp rcx; switch jump loc_A1BEF: lea rdx, [rbp+var_2C]; jumptable 00000000000A1BED cases 5,7 mov rdi, rbx mov rsi, r14 call getopt_ll jmp loc_A1E51 loc_A1C03: lea r8, my_getopt_error_reporter lea rax, my_progname mov rdx, [rax] mov rcx, [r14] lea rsi, aSMaximumValueO; "%s: Maximum value of '%s' cannot be set" xor edi, edi xor eax, eax call qword ptr [r8] mov r15d, 0Ah jmp loc_A1E89 loc_A1C30: lea rdx, [rbp+var_2C]; jumptable 00000000000A1BED cases 6,8 mov rdi, rbx mov rsi, r14 call getopt_ull jmp loc_A1E51 loc_A1C44: mov rax, [r14+60h]; jumptable 00000000000A1BED case 16 mov r13, rax neg r13 cmovs r13, rax mov rdi, r14 mov rsi, rbx call get_bool_argument mov rcx, [r14+60h] shr rcx, 3Fh cmp al, cl jnz loc_A1ED7 not r13 and r13, [r12] jmp loc_A1EDB loc_A1C79: mov rsi, [r14+28h]; jumptable 00000000000A1BED case 13 lea r13, [rbp+var_2C] mov rdi, rbx mov rdx, r13 call find_typeset mov [r12], rax cmp dword ptr [r13+0], 0 jz loc_A1E89 lea r13, [rbp+var_40] mov rdi, rbx mov rsi, r13 mov edx, 0Ah call ___isoc23_strtol mov rcx, [r13+0] cmp byte ptr [rcx], 0 jnz loc_A1F3D mov rdx, rax shr rdx, 1 mov rcx, [r14+28h] mov cl, [rcx] dec cl shr rdx, cl test rdx, rdx jnz loc_A1F3D mov [r12], rax jmp loc_A1E89 loc_A1CDF: mov rdi, r14; jumptable 00000000000A1BED case 2 mov rsi, rbx call get_bool_argument mov [r12], al jmp def_A1BED; jumptable 00000000000A1BED default case, case 11 loc_A1CF3: mov r13, [r14+28h]; jumptable 00000000000A1BED case 15 mov rax, [r14+40h] mov [rbp+var_38], rax mov eax, [r13+0] mov [rbp+var_44], eax mov rax, [r12] mov [rbp+var_50], rax mov rdi, rbx call _strlen lea r10, [rbp+var_30] lea r11, [rbp+var_40] mov rdi, r13 mov esi, [rbp+var_44] mov rdx, [rbp+var_50] mov rcx, [rbp+var_38] mov r8, rbx mov r9d, eax push r10 push r11 mov r13, r11 call find_set_from_flags add rsp, 10h mov [r12], rax cmp qword ptr [r13+0], 0 mov r12d, 0Dh jnz loc_A1E61 jmp def_A1BED; jumptable 00000000000A1BED default case, case 11 loc_A1D5C: lea rax, [rbx+3E8h]; jumptable 00000000000A1BED case 14 lea r13, [rbp+var_40] mov [r13+0], rax lea rdx, [rbp+var_30] mov rdi, rbx mov rsi, r13 call my_strtod mov rax, [r13+0] cmp byte ptr [rax], 0 jnz loc_A1EE4 cmp [rbp+var_30], 0 jnz loc_A1EE4 movsd xmm1, qword ptr [r14+48h] movsd xmm4, qword ptr [r14+50h] movapd xmm2, xmm4 cmpltpd xmm2, xmm0 xorpd xmm3, xmm3 cmpneqpd xmm3, xmm4 andpd xmm3, xmm2 movd eax, xmm3 test al, 1 jnz short loc_A1DBF movapd xmm4, xmm0 loc_A1DBF: ucomisd xmm1, xmm4 setnbe cl or al, cl maxsd xmm1, xmm4 test al, 1 jz loc_A1F06 lea rcx, my_getopt_error_reporter mov rdx, [r14] lea rsi, aOptionSValueGA; "option '%s': value %g adjusted to %g" mov edi, 1 mov al, 2 movsd [rbp+var_38], xmm1 call qword ptr [rcx] movsd xmm1, [rbp+var_38] jmp loc_A1F06 loc_A1DFD: lea rdx, [rbp+var_2C]; jumptable 00000000000A1BED case 4 mov rdi, rbx mov rsi, r14 call getopt_ull jmp short loc_A1E1D loc_A1E0E: lea rdx, [rbp+var_2C]; jumptable 00000000000A1BED case 3 mov rdi, rbx mov rsi, r14 call getopt_ll loc_A1E1D: mov [r12], eax jmp short def_A1BED; jumptable 00000000000A1BED default case, case 11 loc_A1E23: cmp rbx, rax; jumptable 00000000000A1BED case 9 lea rax, asc_E47A5+4; "" cmovnz rax, rbx jmp short loc_A1E51 loc_A1E33: mov rsi, [r14+28h]; jumptable 00000000000A1BED case 12 mov rdi, rbx xor edx, edx call find_type test eax, eax jz loc_A1F11 js loc_A1F48 dec eax loc_A1E51: mov [r12], rax def_A1BED: mov r12d, 9; jumptable 00000000000A1BED default case, case 11 cmp [rbp+var_2C], 0 jz short loc_A1E89 loc_A1E61: lea r9, my_getopt_error_reporter lea rax, my_progname mov rdx, [rax] mov r8, [r14] lea rsi, aSErrorWhileSet; "%s: Error while setting value '%s' to '"... xor edi, edi mov rcx, rbx xor eax, eax call qword ptr [r9] mov r15d, r12d loc_A1E89: mov eax, r15d add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A1E9B: mov rdi, [r12]; jumptable 00000000000A1BED case 10 call my_free lea rax, key_memory_defaults cmp rbx, [r13+0] mov edi, [rax] lea rsi, asc_E47A5+4; "" cmovnz rsi, rbx mov edx, 10h call my_strdup mov [r12], rax test rax, rax jnz short def_A1BED; jumptable 00000000000A1BED default case, case 11 mov r12d, 8 jmp short loc_A1E61 loc_A1ED7: or r13, [r12] loc_A1EDB: mov [r12], r13 jmp def_A1BED; jumptable 00000000000A1BED default case, case 11 loc_A1EE4: lea rcx, my_getopt_error_reporter mov rdx, [r14] lea rsi, aInvalidDecimal; "Invalid decimal value for option '%s'\n" xor edi, edi xor eax, eax call qword ptr [rcx] mov [rbp+var_2C], 0Dh xorpd xmm1, xmm1 loc_A1F06: movsd qword ptr [r12], xmm1 jmp def_A1BED; jumptable 00000000000A1BED default case, case 11 loc_A1F11: lea r13, [rbp+var_40] mov rdi, rbx mov rsi, r13 mov edx, 0Ah call ___isoc23_strtoul mov rcx, [r13+0] cmp byte ptr [rcx], 0 jnz short loc_A1F3D mov rcx, [r14+28h] mov ecx, [rcx] cmp rax, rcx jb loc_A1E51 loc_A1F3D: mov r12d, 0Dh jmp loc_A1E61 loc_A1F48: mov r12d, 3 jmp loc_A1E61
long long setval(const char **a1, char *a2, char *a3, char a4, __m128d a5) { char *v5; // rbx unsigned int v6; // r15d char *v7; // r12 unsigned long long v8; // rax long long v9; // r13 long long v10; // r13 unsigned long long v11; // rax const char *v12; // r13 int v13; // eax unsigned int v14; // r12d double v15; // xmm1_8 __m128d v16; // xmm4 char v17; // al char v18; // al double v19; // xmm1_8 const char *v20; // rdx int v21; // eax int type; // eax char *v24; // rsi long long v25; // rax long long v26; // [rsp+0h] [rbp-50h] int v27; // [rsp+Ch] [rbp-44h] _BYTE *v28; // [rsp+10h] [rbp-40h] BYREF double v29; // [rsp+18h] [rbp-38h] int v30; // [rsp+20h] [rbp-30h] BYREF _DWORD v31[11]; // [rsp+24h] [rbp-2Ch] BYREF v5 = a3; v31[0] = 0; if ( !a3 ) v5 = (char *)enabled_my_option; v6 = 0; if ( !a2 ) return v6; v7 = a2; if ( a4 ) { v7 = (char *)a1[4]; if ( !v7 ) { my_getopt_error_reporter(0, "%s: Maximum value of '%s' cannot be set", my_progname, *a1); return 10; } } switch ( (unsigned long long)a1[6] & 0x3F ) { case 2uLL: *v7 = get_bool_argument(a1, v5); goto LABEL_37; case 3uLL: v21 = getopt_ll(v5, a1, v31); goto LABEL_29; case 4uLL: v21 = getopt_ull(v5, a1, v31); LABEL_29: *(_DWORD *)v7 = v21; goto LABEL_37; case 5uLL: case 7uLL: v8 = getopt_ll(v5, a1, v31); goto LABEL_36; case 6uLL: case 8uLL: v8 = getopt_ull(v5, a1, v31); goto LABEL_36; case 9uLL: v8 = (unsigned long long)""; if ( v5 != (char *)enabled_my_option ) v8 = (unsigned long long)v5; goto LABEL_36; case 0xAuLL: my_free(*(_QWORD *)v7); v24 = ""; if ( v5 != (char *)enabled_my_option ) v24 = v5; v25 = my_strdup(key_memory_defaults, v24, 16LL); *(_QWORD *)v7 = v25; if ( v25 ) goto LABEL_37; v14 = 8; goto LABEL_38; case 0xCuLL: type = find_type(v5, a1[5], 0LL); if ( !type ) { v8 = __isoc23_strtoul(v5, &v28, 10LL); if ( !*v28 && v8 < *(unsigned int *)a1[5] ) goto LABEL_36; LABEL_50: v14 = 13; LABEL_38: my_getopt_error_reporter(0, "%s: Error while setting value '%s' to '%s'", my_progname, v5, *a1); return v14; } if ( type < 0 ) { v14 = 3; goto LABEL_38; } v8 = (unsigned int)(type - 1); LABEL_36: *(_QWORD *)v7 = v8; LABEL_37: v14 = 9; if ( v31[0] ) goto LABEL_38; return v6; case 0xDuLL: *(_QWORD *)v7 = find_typeset(v5, a1[5], v31); if ( !v31[0] ) return v6; v11 = __isoc23_strtol(v5, &v28, 10LL); if ( *v28 || v11 >> 1 >> (*a1[5] - 1) ) goto LABEL_50; *(_QWORD *)v7 = v11; return v6; case 0xEuLL: v28 = v5 + 1000; my_strtod(v5, &v28, &v30); if ( *v28 || v30 ) { my_getopt_error_reporter(0, "Invalid decimal value for option '%s'\n", *a1); v31[0] = 13; v19 = 0.0; } else { v15 = *((double *)a1 + 9); v16 = (__m128d)(unsigned long long)a1[10]; v17 = _mm_cvtsi128_si32((__m128i)_mm_and_pd(_mm_cmpneq_pd((__m128d)0LL, v16), _mm_cmplt_pd(v16, a5))); if ( (v17 & 1) == 0 ) v16.m128d_f64[0] = a5.m128d_f64[0]; v18 = (v15 > v16.m128d_f64[0]) | v17; v19 = fmax(v15, v16.m128d_f64[0]); if ( (v18 & 1) != 0 ) { v20 = *a1; v29 = v19; my_getopt_error_reporter(1, "option '%s': value %g adjusted to %g", v20, a5.m128d_f64[0], v19); v19 = v29; } } *(double *)v7 = v19; goto LABEL_37; case 0xFuLL: v12 = a1[5]; v29 = *((double *)a1 + 8); v27 = *(_DWORD *)v12; v26 = *(_QWORD *)v7; v13 = strlen(v5); *(_QWORD *)v7 = find_set_from_flags( (_DWORD)v12, v27, v26, LODWORD(v29), (_DWORD)v5, v13, (long long)&v28, (long long)&v30); v14 = 13; if ( !v28 ) goto LABEL_37; goto LABEL_38; case 0x10uLL: v9 = -(long long)a1[12]; if ( (long long)a1[12] > 0 ) v9 = (long long)a1[12]; if ( (unsigned __int8)get_bool_argument(a1, v5) == (long long)a1[12] < 0 ) v10 = *(_QWORD *)v7 & ~v9; else v10 = *(_QWORD *)v7 | v9; *(_QWORD *)v7 = v10; goto LABEL_37; default: goto LABEL_37; } }
setval: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV dword ptr [RBP + -0x2c],0x0 TEST RDX,RDX LEA R13,[0x48bb28] MOV RAX,qword ptr [R13] CMOVZ RBX,RAX XOR R15D,R15D TEST RSI,RSI JZ 0x001a1e89 MOV R12,RSI MOV R14,RDI TEST CL,CL JZ 0x001a1bca MOV R12,qword ptr [R14 + 0x20] TEST R12,R12 JZ 0x001a1c03 LAB_001a1bca: MOV RCX,qword ptr [R14 + 0x30] AND ECX,0x3f ADD RCX,-0x2 CMP RCX,0xe JA 0x001a1e55 LEA RDX,[0x1e6928] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX switchD: JMP RCX caseD_5: LEA RDX,[RBP + -0x2c] MOV RDI,RBX MOV RSI,R14 CALL 0x001a2bc9 JMP 0x001a1e51 LAB_001a1c03: LEA R8,[0x48bb18] LEA RAX,[0xd0de20] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [R14] LEA RSI,[0x1e0b32] XOR EDI,EDI XOR EAX,EAX CALL qword ptr [R8] MOV R15D,0xa JMP 0x001a1e89 caseD_6: LEA RDX,[RBP + -0x2c] MOV RDI,RBX MOV RSI,R14 CALL 0x001a2d29 JMP 0x001a1e51 caseD_10: MOV RAX,qword ptr [R14 + 0x60] MOV R13,RAX NEG R13 CMOVS R13,RAX MOV RDI,R14 MOV RSI,RBX CALL 0x001a2ad5 MOV RCX,qword ptr [R14 + 0x60] SHR RCX,0x3f CMP AL,CL JNZ 0x001a1ed7 NOT R13 AND R13,qword ptr [R12] JMP 0x001a1edb caseD_d: MOV RSI,qword ptr [R14 + 0x28] LEA R13,[RBP + -0x2c] MOV RDI,RBX MOV RDX,R13 CALL 0x001aa084 MOV qword ptr [R12],RAX CMP dword ptr [R13],0x0 JZ 0x001a1e89 LEA R13,[RBP + -0x40] MOV RDI,RBX MOV RSI,R13 MOV EDX,0xa CALL 0x0012a710 MOV RCX,qword ptr [R13] CMP byte ptr [RCX],0x0 JNZ 0x001a1f3d MOV RDX,RAX SHR RDX,0x1 MOV RCX,qword ptr [R14 + 0x28] MOV CL,byte ptr [RCX] DEC CL SHR RDX,CL TEST RDX,RDX JNZ 0x001a1f3d MOV qword ptr [R12],RAX JMP 0x001a1e89 caseD_2: MOV RDI,R14 MOV RSI,RBX CALL 0x001a2ad5 MOV byte ptr [R12],AL JMP 0x001a1e55 caseD_f: MOV R13,qword ptr [R14 + 0x28] MOV RAX,qword ptr [R14 + 0x40] MOV qword ptr [RBP + -0x38],RAX MOV EAX,dword ptr [R13] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [R12] MOV qword ptr [RBP + -0x50],RAX MOV RDI,RBX CALL 0x0012a320 LEA R10,[RBP + -0x30] LEA R11,[RBP + -0x40] MOV RDI,R13 MOV ESI,dword ptr [RBP + -0x44] MOV RDX,qword ptr [RBP + -0x50] MOV RCX,qword ptr [RBP + -0x38] MOV R8,RBX MOV R9D,EAX PUSH R10 PUSH R11 MOV R13,R11 CALL 0x001aa233 ADD RSP,0x10 MOV qword ptr [R12],RAX CMP qword ptr [R13],0x0 MOV R12D,0xd JNZ 0x001a1e61 JMP 0x001a1e55 caseD_e: LEA RAX,[RBX + 0x3e8] LEA R13,[RBP + -0x40] MOV qword ptr [R13],RAX LEA RDX,[RBP + -0x30] MOV RDI,RBX MOV RSI,R13 CALL 0x001d8998 MOV RAX,qword ptr [R13] CMP byte ptr [RAX],0x0 JNZ 0x001a1ee4 CMP dword ptr [RBP + -0x30],0x0 JNZ 0x001a1ee4 MOVSD XMM1,qword ptr [R14 + 0x48] MOVSD XMM4,qword ptr [R14 + 0x50] MOVAPD XMM2,XMM4 CMPLTPD XMM2,XMM0 XORPD XMM3,XMM3 CMPNEQPD XMM3,XMM4 ANDPD XMM3,XMM2 MOVD EAX,XMM3 TEST AL,0x1 JNZ 0x001a1dbf MOVAPD XMM4,XMM0 LAB_001a1dbf: UCOMISD XMM1,XMM4 SETA CL OR AL,CL MAXSD XMM1,XMM4 TEST AL,0x1 JZ 0x001a1f06 LEA RCX,[0x48bb18] MOV RDX,qword ptr [R14] LEA RSI,[0x1e090b] MOV EDI,0x1 MOV AL,0x2 MOVSD qword ptr [RBP + -0x38],XMM1 CALL qword ptr [RCX] MOVSD XMM1,qword ptr [RBP + -0x38] JMP 0x001a1f06 caseD_4: LEA RDX,[RBP + -0x2c] MOV RDI,RBX MOV RSI,R14 CALL 0x001a2d29 JMP 0x001a1e1d caseD_3: LEA RDX,[RBP + -0x2c] MOV RDI,RBX MOV RSI,R14 CALL 0x001a2bc9 LAB_001a1e1d: MOV dword ptr [R12],EAX JMP 0x001a1e55 caseD_9: CMP RBX,RAX LEA RAX,[0x1e47a9] CMOVNZ RAX,RBX JMP 0x001a1e51 caseD_c: MOV RSI,qword ptr [R14 + 0x28] MOV RDI,RBX XOR EDX,EDX CALL 0x001a9e9d TEST EAX,EAX JZ 0x001a1f11 JS 0x001a1f48 DEC EAX LAB_001a1e51: MOV qword ptr [R12],RAX caseD_b: MOV R12D,0x9 CMP dword ptr [RBP + -0x2c],0x0 JZ 0x001a1e89 LAB_001a1e61: LEA R9,[0x48bb18] LEA RAX,[0xd0de20] MOV RDX,qword ptr [RAX] MOV R8,qword ptr [R14] LEA RSI,[0x1e0b5a] XOR EDI,EDI MOV RCX,RBX XOR EAX,EAX CALL qword ptr [R9] MOV R15D,R12D LAB_001a1e89: MOV EAX,R15D ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET caseD_a: MOV RDI,qword ptr [R12] CALL 0x001a4926 LEA RAX,[0xd0e768] CMP RBX,qword ptr [R13] MOV EDI,dword ptr [RAX] LEA RSI,[0x1e47a9] CMOVNZ RSI,RBX MOV EDX,0x10 CALL 0x001a49bc MOV qword ptr [R12],RAX TEST RAX,RAX JNZ 0x001a1e55 MOV R12D,0x8 JMP 0x001a1e61 LAB_001a1ed7: OR R13,qword ptr [R12] LAB_001a1edb: MOV qword ptr [R12],R13 JMP 0x001a1e55 LAB_001a1ee4: LEA RCX,[0x48bb18] MOV RDX,qword ptr [R14] LEA RSI,[0x1e0c9e] XOR EDI,EDI XOR EAX,EAX CALL qword ptr [RCX] MOV dword ptr [RBP + -0x2c],0xd XORPD XMM1,XMM1 LAB_001a1f06: MOVSD qword ptr [R12],XMM1 JMP 0x001a1e55 LAB_001a1f11: LEA R13,[RBP + -0x40] MOV RDI,RBX MOV RSI,R13 MOV EDX,0xa CALL 0x0012a090 MOV RCX,qword ptr [R13] CMP byte ptr [RCX],0x0 JNZ 0x001a1f3d MOV RCX,qword ptr [R14 + 0x28] MOV ECX,dword ptr [RCX] CMP RAX,RCX JC 0x001a1e51 LAB_001a1f3d: MOV R12D,0xd JMP 0x001a1e61 LAB_001a1f48: MOV R12D,0x3 JMP 0x001a1e61
int4 setval(int8 *param_1,double *param_2,char *param_3,char param_4) { double dVar1; double dVar2; ulong uVar3; int4 *puVar4; char cVar5; int1 uVar6; int4 uVar7; int iVar8; size_t sVar9; char *pcVar10; ulong uVar11; double dVar12; int4 uVar13; double dVar14; double dVar15; char *local_48; double local_40; int local_38; int local_34; local_34 = 0; if (param_3 == (char *)0x0) { param_3 = enabled_my_option; } if (param_2 == (double *)0x0) { return 0; } if ((param_4 != '\0') && (param_2 = (double *)param_1[4], param_2 == (double *)0x0)) { (*(code *)my_getopt_error_reporter) (0,"%s: Maximum value of \'%s\' cannot be set",my_progname,*param_1); return 10; } switch((uint)param_1[6] & 0x3f) { case 2: uVar6 = get_bool_argument(param_1,param_3); *(int1 *)param_2 = uVar6; break; case 3: uVar7 = getopt_ll(param_3,param_1,&local_34); goto LAB_001a1e1d; case 4: uVar7 = getopt_ull(param_3,param_1,&local_34); LAB_001a1e1d: *(int4 *)param_2 = uVar7; break; case 5: case 7: pcVar10 = (char *)getopt_ll(param_3,param_1,&local_34); goto LAB_001a1e51; case 6: case 8: pcVar10 = (char *)getopt_ull(param_3,param_1,&local_34); goto LAB_001a1e51; case 9: pcVar10 = ""; if (param_3 != enabled_my_option) { pcVar10 = param_3; } goto LAB_001a1e51; case 10: my_free(*param_2); pcVar10 = ""; if (param_3 != enabled_my_option) { pcVar10 = param_3; } dVar12 = (double)my_strdup(key_memory_defaults,pcVar10,0x10); *param_2 = dVar12; if (dVar12 != 0.0) break; uVar7 = 8; goto LAB_001a1e61; case 0xc: iVar8 = find_type(param_3,param_1[5],0); if (iVar8 == 0) { pcVar10 = (char *)__isoc23_strtoul(param_3,&local_48,10); if ((*local_48 != '\0') || ((char *)(ulong)*(uint *)param_1[5] <= pcVar10)) goto LAB_001a1f3d; } else { if (iVar8 < 0) { uVar7 = 3; goto LAB_001a1e61; } pcVar10 = (char *)(ulong)(iVar8 - 1); } LAB_001a1e51: *param_2 = (double)pcVar10; break; case 0xd: dVar12 = (double)find_typeset(param_3,param_1[5],&local_34); *param_2 = dVar12; if (local_34 == 0) { return 0; } dVar12 = (double)__isoc23_strtol(param_3,&local_48,10); if ((*local_48 == '\0') && (((ulong)dVar12 >> 1) >> (*(char *)param_1[5] - 1U & 0x3f) == 0)) { *param_2 = dVar12; return 0; } LAB_001a1f3d: uVar7 = 0xd; goto LAB_001a1e61; case 0xe: local_48 = param_3 + 1000; dVar12 = (double)my_strtod(param_3,&local_48,&local_38); if ((*local_48 == '\0') && (local_38 == 0)) { dVar1 = (double)param_1[9]; dVar2 = (double)param_1[10]; dVar15 = dVar2; if (dVar2 == 0.0 || dVar2 >= dVar12) { dVar15 = dVar12; } dVar14 = dVar1; if (dVar1 <= dVar15) { dVar14 = dVar15; } if (dVar2 != 0.0 && dVar2 < dVar12 || dVar15 < dVar1) { local_40 = dVar14; (*(code *)my_getopt_error_reporter)(1,"option \'%s\': value %g adjusted to %g",*param_1); dVar14 = local_40; } } else { (*(code *)my_getopt_error_reporter)(0,"Invalid decimal value for option \'%s\'\n",*param_1); local_34 = 0xd; dVar14 = 0.0; } *param_2 = dVar14; break; case 0xf: puVar4 = (int4 *)param_1[5]; local_40 = (double)param_1[8]; uVar7 = *puVar4; dVar12 = *param_2; sVar9 = strlen(param_3); dVar12 = (double)find_set_from_flags(puVar4,uVar7,dVar12,local_40,param_3,sVar9 & 0xffffffff, &local_48,&local_38); *param_2 = dVar12; uVar7 = 0xd; if (local_48 == (char *)0x0) break; goto LAB_001a1e61; case 0x10: uVar3 = param_1[0xc]; uVar11 = -uVar3; if (0 < (long)uVar3) { uVar11 = uVar3; } cVar5 = get_bool_argument(param_1,param_3); if (cVar5 == (char)-(char)((long)param_1[0xc] >> 0x3f)) { dVar12 = (double)(~uVar11 & (ulong)*param_2); } else { dVar12 = (double)(uVar11 | (ulong)*param_2); } *param_2 = dVar12; } uVar7 = 9; uVar13 = 0; if (local_34 != 0) { LAB_001a1e61: (*(code *)my_getopt_error_reporter) (0,"%s: Error while setting value \'%s\' to \'%s\'",my_progname,param_3,*param_1); uVar13 = uVar7; } return uVar13; }
59,799
google::protobuf::FileDescriptorTables::FindFieldByNumber(google::protobuf::Descriptor const*, int) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
inline const FieldDescriptor* FileDescriptorTables::FindFieldByNumber( const Descriptor* parent, int number) const { // If `number` is within the sequential range, just index into the parent // without doing a table lookup. if (parent != nullptr && // 1 <= number && number <= parent->sequential_field_limit_) { return parent->field(number - 1); } Symbol::QueryKey query; query.parent = parent; query.field_number = number; auto it = fields_by_number_.find(query); return it == fields_by_number_.end() ? nullptr : it->field_descriptor(); }
O0
cpp
google::protobuf::FileDescriptorTables::FindFieldByNumber(google::protobuf::Descriptor const*, int) const: subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movl %edx, 0x5c(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x10(%rsp) cmpq $0x0, 0x60(%rsp) je 0x74cbb movl $0x1, %eax cmpl 0x5c(%rsp), %eax jg 0x74cbb movl 0x5c(%rsp), %eax movq 0x60(%rsp), %rcx movzwl 0x2(%rcx), %ecx cmpl %ecx, %eax jg 0x74cbb movq 0x60(%rsp), %rdi movl 0x5c(%rsp), %esi subl $0x1, %esi callq 0x73dc0 movq %rax, 0x70(%rsp) jmp 0x74d57 leaq 0x30(%rsp), %rdi callq 0x7de90 movq 0x10(%rsp), %rax movq 0x60(%rsp), %rcx movq %rcx, 0x48(%rsp) movl 0x5c(%rsp), %ecx movl %ecx, 0x50(%rsp) addq $0x50, %rax movq %rax, 0x8(%rsp) leaq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0x7deb0 movq 0x8(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x62830 movq 0x10(%rsp), %rdi movq %rax, 0x28(%rsp) addq $0x50, %rdi callq 0x62860 movq %rax, 0x18(%rsp) leaq 0x28(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0x7ded0 testb $0x1, %al jne 0x74d30 jmp 0x74d38 xorl %eax, %eax movq %rax, (%rsp) jmp 0x74d4e leaq 0x28(%rsp), %rdi callq 0x7f710 movq %rax, %rdi callq 0x73450 movq %rax, (%rsp) movq (%rsp), %rax movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rax addq $0x78, %rsp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK6google8protobuf20FileDescriptorTables17FindFieldByNumberEPKNS0_10DescriptorEi: sub rsp, 78h mov [rsp+78h+var_10], rdi mov [rsp+78h+var_18], rsi mov [rsp+78h+var_1C], edx mov rax, [rsp+78h+var_10] mov [rsp+78h+var_68], rax cmp [rsp+78h+var_18], 0 jz short loc_74CBB mov eax, 1 cmp eax, [rsp+78h+var_1C] jg short loc_74CBB mov eax, [rsp+78h+var_1C] mov rcx, [rsp+78h+var_18] movzx ecx, word ptr [rcx+2] cmp eax, ecx jg short loc_74CBB mov rdi, [rsp+78h+var_18]; this mov esi, [rsp+78h+var_1C] sub esi, 1; int call _ZNK6google8protobuf10Descriptor5fieldEi; google::protobuf::Descriptor::field(int) mov [rsp+78h+var_8], rax jmp loc_74D57 loc_74CBB: lea rdi, [rsp+78h+var_48]; this call _ZN6google8protobuf6Symbol8QueryKeyC2Ev; google::protobuf::Symbol::QueryKey::QueryKey(void) mov rax, [rsp+78h+var_68] mov rcx, [rsp+78h+var_18] mov [rsp+78h+var_30], rcx mov ecx, [rsp+78h+var_1C] mov [rsp+78h+var_28], ecx add rax, 50h ; 'P' mov [rsp+78h+var_70], rax lea rdi, [rsp+78h+var_58]; this lea rsi, [rsp+78h+var_48]; google::protobuf::Symbol::QueryKey * call _ZN6google8protobuf6SymbolC2ERNS1_8QueryKeyE; google::protobuf::Symbol::Symbol(google::protobuf::Symbol::QueryKey &) mov rdi, [rsp+78h+var_70] lea rsi, [rsp+78h+var_58] call _ZNKSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE4findERKS2_; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find(google::protobuf::Symbol const&) mov rdi, [rsp+78h+var_68] mov [rsp+78h+var_50], rax add rdi, 50h ; 'P' call _ZNKSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE3endEv; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end(void) mov [rsp+78h+var_60], rax lea rdi, [rsp+78h+var_50] lea rsi, [rsp+78h+var_60] call _ZNSt8__detaileqERKNS_19_Node_iterator_baseIN6google8protobuf6SymbolELb1EEES6_; std::__detail::operator==(std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&,std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&) test al, 1 jnz short loc_74D30 jmp short loc_74D38 loc_74D30: xor eax, eax mov [rsp+78h+var_78], rax jmp short loc_74D4E loc_74D38: lea rdi, [rsp+78h+var_50] call _ZNKSt8__detail20_Node_const_iteratorIN6google8protobuf6SymbolELb1ELb1EEptEv; std::__detail::_Node_const_iterator<google::protobuf::Symbol,true,true>::operator->(void) mov rdi, rax; this call _ZNK6google8protobuf6Symbol16field_descriptorEv; google::protobuf::Symbol::field_descriptor(void) mov [rsp+78h+var_78], rax loc_74D4E: mov rax, [rsp+78h+var_78] mov [rsp+78h+var_8], rax loc_74D57: mov rax, [rsp+78h+var_8] add rsp, 78h retn
long long google::protobuf::FileDescriptorTables::FindFieldByNumber( google::protobuf::FileDescriptorTables *this, const google::protobuf::Descriptor *a2, int a3) { google::protobuf::Symbol *v3; // rax long long v6; // [rsp+18h] [rbp-60h] BYREF _BYTE v7[8]; // [rsp+20h] [rbp-58h] BYREF long long v8; // [rsp+28h] [rbp-50h] BYREF _BYTE v9[24]; // [rsp+30h] [rbp-48h] BYREF google::protobuf::Descriptor *v10; // [rsp+48h] [rbp-30h] int v11; // [rsp+50h] [rbp-28h] int v12; // [rsp+5Ch] [rbp-1Ch] google::protobuf::Descriptor *v13; // [rsp+60h] [rbp-18h] google::protobuf::FileDescriptorTables *v14; // [rsp+68h] [rbp-10h] v14 = this; v13 = a2; v12 = a3; if ( a2 && v12 >= 1 && v12 <= *((unsigned __int16 *)v13 + 1) ) return google::protobuf::Descriptor::field(v13, v12 - 1); google::protobuf::Symbol::QueryKey::QueryKey((google::protobuf::Symbol::QueryKey *)v9); v10 = v13; v11 = v12; google::protobuf::Symbol::Symbol((google::protobuf::Symbol *)v7, (google::protobuf::Symbol::QueryKey *)v9); v8 = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find( (long long)this + 80, (long long)v7); v6 = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end((long long)this + 80); if ( (std::__detail::operator==(&v8, &v6) & 1) != 0 ) return 0LL; v3 = (google::protobuf::Symbol *)std::__detail::_Node_const_iterator<google::protobuf::Symbol,true,true>::operator->(&v8); return google::protobuf::Symbol::field_descriptor(v3); }
FindFieldByNumber: SUB RSP,0x78 MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RSI MOV dword ptr [RSP + 0x5c],EDX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x60],0x0 JZ 0x00174cbb MOV EAX,0x1 CMP EAX,dword ptr [RSP + 0x5c] JG 0x00174cbb MOV EAX,dword ptr [RSP + 0x5c] MOV RCX,qword ptr [RSP + 0x60] MOVZX ECX,word ptr [RCX + 0x2] CMP EAX,ECX JG 0x00174cbb MOV RDI,qword ptr [RSP + 0x60] MOV ESI,dword ptr [RSP + 0x5c] SUB ESI,0x1 CALL 0x00173dc0 MOV qword ptr [RSP + 0x70],RAX JMP 0x00174d57 LAB_00174cbb: LEA RDI,[RSP + 0x30] CALL 0x0017de90 MOV RAX,qword ptr [RSP + 0x10] MOV RCX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x48],RCX MOV ECX,dword ptr [RSP + 0x5c] MOV dword ptr [RSP + 0x50],ECX ADD RAX,0x50 MOV qword ptr [RSP + 0x8],RAX LEA RDI,[RSP + 0x20] LEA RSI,[RSP + 0x30] CALL 0x0017deb0 MOV RDI,qword ptr [RSP + 0x8] LEA RSI,[RSP + 0x20] CALL 0x00162830 MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x28],RAX ADD RDI,0x50 CALL 0x00162860 MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x18] CALL 0x0017ded0 TEST AL,0x1 JNZ 0x00174d30 JMP 0x00174d38 LAB_00174d30: XOR EAX,EAX MOV qword ptr [RSP],RAX JMP 0x00174d4e LAB_00174d38: LEA RDI,[RSP + 0x28] CALL 0x0017f710 MOV RDI,RAX CALL 0x00173450 MOV qword ptr [RSP],RAX LAB_00174d4e: MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x70],RAX LAB_00174d57: MOV RAX,qword ptr [RSP + 0x70] ADD RSP,0x78 RET
/* google::protobuf::FileDescriptorTables::FindFieldByNumber(google::protobuf::Descriptor const*, int) const */ int8 __thiscall google::protobuf::FileDescriptorTables::FindFieldByNumber (FileDescriptorTables *this,Descriptor *param_1,int param_2) { ulong uVar1; Symbol *this_00; int8 local_78; int8 local_60; Symbol local_58 [8]; int8 local_50; QueryKey local_48 [24]; Descriptor *local_30; int local_28; int local_1c; Descriptor *local_18; FileDescriptorTables *local_10; int8 local_8; local_1c = param_2; local_18 = param_1; local_10 = this; if (((param_1 == (Descriptor *)0x0) || (param_2 < 1)) || ((int)(uint)*(ushort *)(param_1 + 2) < param_2)) { Symbol::QueryKey::QueryKey(local_48); local_30 = local_18; local_28 = local_1c; Symbol::Symbol(local_58,local_48); local_50 = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::find((unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> *)(this + 0x50),local_58); local_60 = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::end(); uVar1 = std::__detail::operator== ((_Node_iterator_base *)&local_50,(_Node_iterator_base *)&local_60); if ((uVar1 & 1) == 0) { this_00 = (Symbol *) std::__detail::_Node_const_iterator<google::protobuf::Symbol,true,true>::operator-> ((_Node_const_iterator<google::protobuf::Symbol,true,true> *)&local_50); local_78 = Symbol::field_descriptor(this_00); } else { local_78 = 0; } local_8 = local_78; } else { local_8 = Descriptor::field(param_1,param_2 + -1); } return local_8; }