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
31,500
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 0x57cd4 movq -0x58(%rbp), %rax movq %rax, -0x70(%rbp) jmp 0x57cdf movl $0x1d, %eax movq %rax, -0x70(%rbp) jmp 0x57cdf movq -0x60(%rbp), %rsi movq -0x68(%rbp), %rdi movq -0x70(%rbp), %rdx callq 0x805c0 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 0x57d2d movq -0x50(%rbp), %rax movq %rax, -0x88(%rbp) jmp 0x57d3d leaq 0x2e671(%rip), %rax # 0x863a5 movq %rax, -0x88(%rbp) jmp 0x57d3d movq -0x78(%rbp), %rsi movq -0x80(%rbp), %rdi movq -0x88(%rbp), %rcx leaq 0x2e647(%rip), %rdx # 0x8639a xorl %eax, %eax leaq -0x30(%rbp), %r8 callq 0x7fa30 movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x57d79 addq $0x90, %rsp popq %rbp retq callq 0x25390 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_57CD4 mov rax, [rbp+var_58] mov [rbp+var_70], rax jmp short loc_57CDF loc_57CD4: mov eax, 1Dh mov [rbp+var_70], rax jmp short $+2 loc_57CDF: 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_57D2D mov rax, [rbp+var_50] mov [rbp+var_88], rax jmp short loc_57D3D loc_57D2D: lea rax, aSyntaxError; "Syntax error" mov [rbp+var_88], rax jmp short $+2 loc_57D3D: 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_57D79 add rsp, 90h pop rbp retn loc_57D79: 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 0x00157cd4 MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x70],RAX JMP 0x00157cdf LAB_00157cd4: MOV EAX,0x1d MOV qword ptr [RBP + -0x70],RAX JMP 0x00157cdf LAB_00157cdf: MOV RSI,qword ptr [RBP + -0x60] MOV RDI,qword ptr [RBP + -0x68] MOV RDX,qword ptr [RBP + -0x70] CALL 0x001805c0 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 0x00157d2d MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x88],RAX JMP 0x00157d3d LAB_00157d2d: LEA RAX,[0x1863a5] MOV qword ptr [RBP + -0x88],RAX JMP 0x00157d3d LAB_00157d3d: MOV RSI,qword ptr [RBP + -0x78] MOV RDI,qword ptr [RBP + -0x80] MOV RCX,qword ptr [RBP + -0x88] LEA RDX,[0x18639a] XOR EAX,EAX LEA R8,[RBP + -0x30] CALL 0x0017fa30 MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00157d79 ADD RSP,0x90 POP RBP RET LAB_00157d79: CALL 0x00125390
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; }
31,501
sqrt_align_fp2
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/sqrt.c
static bool_t sqrt_align_fp2(vec384x out, const vec384x ret, const vec384x sqrt, const vec384x inp) { static const vec384x sqrt_minus_1 = { { 0 }, { ONE_MONT_P } }; static const vec384x sqrt_sqrt_minus_1 = { /* * "magic" number is ±2^((p-3)/4)%p, which is "1/sqrt(2)", * in quotes because 2*"1/sqrt(2)"^2 == -1 mod p, not 1, * but it pivots into "complex" plane nevertheless... */ { TO_LIMB_T(0x3e2f585da55c9ad1), TO_LIMB_T(0x4294213d86c18183), TO_LIMB_T(0x382844c88b623732), TO_LIMB_T(0x92ad2afd19103e18), TO_LIMB_T(0x1d794e4fac7cf0b9), TO_LIMB_T(0x0bd592fc7d825ec8) }, { TO_LIMB_T(0x7bcfa7a25aa30fda), TO_LIMB_T(0xdc17dec12a927e7c), TO_LIMB_T(0x2f088dd86b4ebef1), TO_LIMB_T(0xd1ca2087da74d4a7), TO_LIMB_T(0x2da2596696cebc1d), TO_LIMB_T(0x0e2b7eedbbfd87d2) } }; static const vec384x sqrt_minus_sqrt_minus_1 = { { TO_LIMB_T(0x7bcfa7a25aa30fda), TO_LIMB_T(0xdc17dec12a927e7c), TO_LIMB_T(0x2f088dd86b4ebef1), TO_LIMB_T(0xd1ca2087da74d4a7), TO_LIMB_T(0x2da2596696cebc1d), TO_LIMB_T(0x0e2b7eedbbfd87d2) }, { TO_LIMB_T(0x7bcfa7a25aa30fda), TO_LIMB_T(0xdc17dec12a927e7c), TO_LIMB_T(0x2f088dd86b4ebef1), TO_LIMB_T(0xd1ca2087da74d4a7), TO_LIMB_T(0x2da2596696cebc1d), TO_LIMB_T(0x0e2b7eedbbfd87d2) } }; vec384x coeff, t0, t1; bool_t is_sqrt, flag; /* * Instead of multiple trial squarings we can perform just one * and see if the result is "rotated by multiple of 90°" in * relation to |inp|, and "rotate" |ret| accordingly. */ sqr_fp2(t0, sqrt); /* "sqrt(|inp|)"^2 = (a + b*i)^2 = (a^2-b^2) + 2ab*i */ /* (a^2-b^2) + 2ab*i == |inp| ? |ret| is spot on */ sub_fp2(t1, t0, inp); is_sqrt = vec_is_zero(t1, sizeof(t1)); vec_copy(coeff, BLS12_381_Rx.p2, sizeof(coeff)); /* -(a^2-b^2) - 2ab*i == |inp| ? "rotate |ret| by 90°" */ add_fp2(t1, t0, inp); vec_select(coeff, sqrt_minus_1, coeff, sizeof(coeff), flag = vec_is_zero(t1, sizeof(t1))); is_sqrt |= flag; /* 2ab - (a^2-b^2)*i == |inp| ? "rotate |ret| by 135°" */ sub_fp(t1[0], t0[0], inp[1]); add_fp(t1[1], t0[1], inp[0]); vec_select(coeff, sqrt_sqrt_minus_1, coeff, sizeof(coeff), flag = vec_is_zero(t1, sizeof(t1))); is_sqrt |= flag; /* -2ab + (a^2-b^2)*i == |inp| ? "rotate |ret| by 45°" */ add_fp(t1[0], t0[0], inp[1]); sub_fp(t1[1], t0[1], inp[0]); vec_select(coeff, sqrt_minus_sqrt_minus_1, coeff, sizeof(coeff), flag = vec_is_zero(t1, sizeof(t1))); is_sqrt |= flag; /* actual "rotation" */ mul_fp2(out, ret, coeff); return is_sqrt; }
O0
c
sqrt_align_fp2: pushq %rbp movq %rsp, %rbp subq $0x180, %rsp # imm = 0x180 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) leaq -0xe0(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xb5100 leaq -0x140(%rbp), %rdi leaq -0xe0(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0xb4ed0 leaq -0x140(%rbp), %rdi movl $0x60, %esi callq 0xa7680 movq %rax, -0x148(%rbp) leaq -0x80(%rbp), %rdi leaq 0x2a4b3(%rip), %rsi # 0xe6098 movl $0x60, %edx callq 0xa7480 leaq -0x140(%rbp), %rdi leaq -0xe0(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0xb4e60 leaq -0x80(%rbp), %rax movq %rax, -0x180(%rbp) leaq -0x80(%rbp), %rax movq %rax, -0x178(%rbp) leaq -0x140(%rbp), %rdi movl $0x60, %esi callq 0xa7680 movq -0x180(%rbp), %rdi movq -0x178(%rbp), %rdx movq %rax, %r8 movq %r8, -0x150(%rbp) leaq 0x2b6b4(%rip), %rsi # 0xe7300 movl $0x60, %ecx callq 0xa74f0 movq -0x150(%rbp), %rax orq -0x148(%rbp), %rax movq %rax, -0x148(%rbp) leaq -0x140(%rbp), %rdi leaq -0xe0(%rbp), %rsi movq -0x20(%rbp), %rdx addq $0x30, %rdx callq 0xb4890 leaq -0x140(%rbp), %rdi addq $0x30, %rdi leaq -0xe0(%rbp), %rsi addq $0x30, %rsi movq -0x20(%rbp), %rdx callq 0xae790 leaq -0x80(%rbp), %rax movq %rax, -0x170(%rbp) leaq -0x80(%rbp), %rax movq %rax, -0x168(%rbp) leaq -0x140(%rbp), %rdi movl $0x60, %esi callq 0xa7680 movq -0x170(%rbp), %rdi movq -0x168(%rbp), %rdx movq %rax, %r8 movq %r8, -0x150(%rbp) leaq 0x2b675(%rip), %rsi # 0xe7360 movl $0x60, %ecx callq 0xa74f0 movq -0x150(%rbp), %rax orq -0x148(%rbp), %rax movq %rax, -0x148(%rbp) leaq -0x140(%rbp), %rdi leaq -0xe0(%rbp), %rsi movq -0x20(%rbp), %rdx addq $0x30, %rdx callq 0xae790 leaq -0x140(%rbp), %rdi addq $0x30, %rdi leaq -0xe0(%rbp), %rsi addq $0x30, %rsi movq -0x20(%rbp), %rdx callq 0xb4890 leaq -0x80(%rbp), %rax movq %rax, -0x160(%rbp) leaq -0x80(%rbp), %rax movq %rax, -0x158(%rbp) leaq -0x140(%rbp), %rdi movl $0x60, %esi callq 0xa7680 movq -0x160(%rbp), %rdi movq -0x158(%rbp), %rdx movq %rax, %r8 movq %r8, -0x150(%rbp) leaq 0x2b636(%rip), %rsi # 0xe73c0 movl $0x60, %ecx callq 0xa74f0 movq -0x150(%rbp), %rax orq -0x148(%rbp), %rax movq %rax, -0x148(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi leaq -0x80(%rbp), %rdx callq 0xb5090 movq -0x148(%rbp), %rax addq $0x180, %rsp # imm = 0x180 popq %rbp retq nopw (%rax,%rax)
sqrt_align_fp2: push rbp mov rbp, rsp sub rsp, 180h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx lea rdi, [rbp+var_E0] mov rsi, [rbp+var_18] call sqr_fp2 lea rdi, [rbp+var_140] lea rsi, [rbp+var_E0] mov rdx, [rbp+var_20] call _sub_fp2 lea rdi, [rbp+var_140] mov esi, 60h ; '`' call vec_is_zero mov [rbp+var_148], rax lea rdi, [rbp+var_80] lea rsi, BLS12_381_Rx mov edx, 60h ; '`' call vec_copy lea rdi, [rbp+var_140] lea rsi, [rbp+var_E0] mov rdx, [rbp+var_20] call add_fp2 lea rax, [rbp+var_80] mov [rbp+var_180], rax lea rax, [rbp+var_80] mov [rbp+var_178], rax lea rdi, [rbp+var_140] mov esi, 60h ; '`' call vec_is_zero mov rdi, [rbp+var_180] mov rdx, [rbp+var_178] mov r8, rax mov [rbp+var_150], r8 lea rsi, sqrt_align_fp2_sqrt_minus_1 mov ecx, 60h ; '`' call vec_select mov rax, [rbp+var_150] or rax, [rbp+var_148] mov [rbp+var_148], rax lea rdi, [rbp+var_140] lea rsi, [rbp+var_E0] mov rdx, [rbp+var_20] add rdx, 30h ; '0' call _sub_fp lea rdi, [rbp+var_140] add rdi, 30h ; '0' lea rsi, [rbp+var_E0] add rsi, 30h ; '0' mov rdx, [rbp+var_20] call add_fp lea rax, [rbp+var_80] mov [rbp+var_170], rax lea rax, [rbp+var_80] mov [rbp+var_168], rax lea rdi, [rbp+var_140] mov esi, 60h ; '`' call vec_is_zero mov rdi, [rbp+var_170] mov rdx, [rbp+var_168] mov r8, rax mov [rbp+var_150], r8 lea rsi, sqrt_align_fp2_sqrt_sqrt_minus_1 mov ecx, 60h ; '`' call vec_select mov rax, [rbp+var_150] or rax, [rbp+var_148] mov [rbp+var_148], rax lea rdi, [rbp+var_140] lea rsi, [rbp+var_E0] mov rdx, [rbp+var_20] add rdx, 30h ; '0' call add_fp lea rdi, [rbp+var_140] add rdi, 30h ; '0' lea rsi, [rbp+var_E0] add rsi, 30h ; '0' mov rdx, [rbp+var_20] call _sub_fp lea rax, [rbp+var_80] mov [rbp+var_160], rax lea rax, [rbp+var_80] mov [rbp+var_158], rax lea rdi, [rbp+var_140] mov esi, 60h ; '`' call vec_is_zero mov rdi, [rbp+var_160] mov rdx, [rbp+var_158] mov r8, rax mov [rbp+var_150], r8 lea rsi, sqrt_align_fp2_sqrt_minus_sqrt_minus_1 mov ecx, 60h ; '`' call vec_select mov rax, [rbp+var_150] or rax, [rbp+var_148] mov [rbp+var_148], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] lea rdx, [rbp+var_80] call mul_fp2 mov rax, [rbp+var_148] add rsp, 180h pop rbp retn
unsigned long long sqrt_align_fp2(long long a1, long long a2, long long a3, long long a4) { unsigned long long v5; // [rsp+30h] [rbp-150h] unsigned long long v6; // [rsp+30h] [rbp-150h] unsigned long long v7; // [rsp+30h] [rbp-150h] unsigned long long is_zero; // [rsp+38h] [rbp-148h] unsigned long long v9; // [rsp+38h] [rbp-148h] unsigned long long v10; // [rsp+38h] [rbp-148h] _BYTE v11[48]; // [rsp+40h] [rbp-140h] BYREF _BYTE v12[48]; // [rsp+70h] [rbp-110h] BYREF _BYTE v13[48]; // [rsp+A0h] [rbp-E0h] BYREF _BYTE v14[48]; // [rsp+D0h] [rbp-B0h] BYREF _BYTE v15[96]; // [rsp+100h] [rbp-80h] BYREF long long v16; // [rsp+160h] [rbp-20h] long long v17; // [rsp+168h] [rbp-18h] long long v18; // [rsp+170h] [rbp-10h] long long v19; // [rsp+178h] [rbp-8h] v19 = a1; v18 = a2; v17 = a3; v16 = a4; sqr_fp2((long long)v13, a3); sub_fp2((long long)v11, (long long)v13, v16); is_zero = vec_is_zero((long long)v11, 0x60uLL); vec_copy((long long)v15, (long long)&BLS12_381_Rx, 0x60uLL); add_fp2((long long)v11, (long long)v13, v16); v5 = vec_is_zero((long long)v11, 0x60uLL); vec_select((long long)v15, (long long)&sqrt_align_fp2_sqrt_minus_1, (long long)v15, 0x60uLL, v5); v9 = is_zero | v5; sub_fp((long long)v11, (long long)v13, v16 + 48); add_fp((long long)v12, (long long)v14, v16); v6 = vec_is_zero((long long)v11, 0x60uLL); vec_select((long long)v15, (long long)&sqrt_align_fp2_sqrt_sqrt_minus_1, (long long)v15, 0x60uLL, v6); v10 = v9 | v6; add_fp((long long)v11, (long long)v13, v16 + 48); sub_fp((long long)v12, (long long)v14, v16); v7 = vec_is_zero((long long)v11, 0x60uLL); vec_select((long long)v15, (long long)&sqrt_align_fp2_sqrt_minus_sqrt_minus_1, (long long)v15, 0x60uLL, v7); mul_fp2(v19, v18, (long long)v15); return v10 | v7; }
sqrt_align_fp2: PUSH RBP MOV RBP,RSP SUB RSP,0x180 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX LEA RDI,[RBP + -0xe0] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001b5100 LEA RDI,[RBP + -0x140] LEA RSI,[RBP + -0xe0] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001b4ed0 LEA RDI,[RBP + -0x140] MOV ESI,0x60 CALL 0x001a7680 MOV qword ptr [RBP + -0x148],RAX LEA RDI,[RBP + -0x80] LEA RSI,[0x1e6098] MOV EDX,0x60 CALL 0x001a7480 LEA RDI,[RBP + -0x140] LEA RSI,[RBP + -0xe0] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001b4e60 LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x180],RAX LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x178],RAX LEA RDI,[RBP + -0x140] MOV ESI,0x60 CALL 0x001a7680 MOV RDI,qword ptr [RBP + -0x180] MOV RDX,qword ptr [RBP + -0x178] MOV R8,RAX MOV qword ptr [RBP + -0x150],R8 LEA RSI,[0x1e7300] MOV ECX,0x60 CALL 0x001a74f0 MOV RAX,qword ptr [RBP + -0x150] OR RAX,qword ptr [RBP + -0x148] MOV qword ptr [RBP + -0x148],RAX LEA RDI,[RBP + -0x140] LEA RSI,[RBP + -0xe0] MOV RDX,qword ptr [RBP + -0x20] ADD RDX,0x30 CALL 0x001b4890 LEA RDI,[RBP + -0x140] ADD RDI,0x30 LEA RSI,[RBP + -0xe0] ADD RSI,0x30 MOV RDX,qword ptr [RBP + -0x20] CALL 0x001ae790 LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x170],RAX LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x168],RAX LEA RDI,[RBP + -0x140] MOV ESI,0x60 CALL 0x001a7680 MOV RDI,qword ptr [RBP + -0x170] MOV RDX,qword ptr [RBP + -0x168] MOV R8,RAX MOV qword ptr [RBP + -0x150],R8 LEA RSI,[0x1e7360] MOV ECX,0x60 CALL 0x001a74f0 MOV RAX,qword ptr [RBP + -0x150] OR RAX,qword ptr [RBP + -0x148] MOV qword ptr [RBP + -0x148],RAX LEA RDI,[RBP + -0x140] LEA RSI,[RBP + -0xe0] MOV RDX,qword ptr [RBP + -0x20] ADD RDX,0x30 CALL 0x001ae790 LEA RDI,[RBP + -0x140] ADD RDI,0x30 LEA RSI,[RBP + -0xe0] ADD RSI,0x30 MOV RDX,qword ptr [RBP + -0x20] CALL 0x001b4890 LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x160],RAX LEA RAX,[RBP + -0x80] MOV qword ptr [RBP + -0x158],RAX LEA RDI,[RBP + -0x140] MOV ESI,0x60 CALL 0x001a7680 MOV RDI,qword ptr [RBP + -0x160] MOV RDX,qword ptr [RBP + -0x158] MOV R8,RAX MOV qword ptr [RBP + -0x150],R8 LEA RSI,[0x1e73c0] MOV ECX,0x60 CALL 0x001a74f0 MOV RAX,qword ptr [RBP + -0x150] OR RAX,qword ptr [RBP + -0x148] MOV qword ptr [RBP + -0x148],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[RBP + -0x80] CALL 0x001b5090 MOV RAX,qword ptr [RBP + -0x148] ADD RSP,0x180 POP RBP RET
ulong sqrt_align_fp2(int8 param_1,int8 param_2,int8 param_3,long param_4) { ulong uVar1; ulong uVar2; ulong uVar3; ulong uVar4; int1 local_148 [48]; int1 auStack_118 [48]; int1 local_e8 [48]; int1 auStack_b8 [48]; int1 local_88 [96]; long local_28; int8 local_20; int8 local_18; int8 local_10; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; sqr_fp2(local_e8,param_3); sub_fp2(local_148,local_e8,local_28); uVar1 = vec_is_zero(local_148,0x60); vec_copy(local_88,BLS12_381_Rx,0x60); add_fp2(local_148,local_e8,local_28); uVar2 = vec_is_zero(local_148,0x60); vec_select(local_88,sqrt_align_fp2_sqrt_minus_1,local_88,0x60); sub_fp(local_148,local_e8,local_28 + 0x30); add_fp(auStack_118,auStack_b8,local_28); uVar3 = vec_is_zero(local_148,0x60); vec_select(local_88,sqrt_align_fp2_sqrt_sqrt_minus_1,local_88,0x60); add_fp(local_148,local_e8,local_28 + 0x30); sub_fp(auStack_118,auStack_b8,local_28); uVar4 = vec_is_zero(local_148,0x60); vec_select(local_88,sqrt_align_fp2_sqrt_minus_sqrt_minus_1,local_88,0x60); mul_fp2(local_10,local_18,local_88); return uVar4 | uVar3 | uVar2 | uVar1; }
31,502
my_hash_sort_utf16_nopad
eloqsql/strings/ctype-ucs2.c
static void my_hash_sort_utf16_nopad(CHARSET_INFO *cs, const uchar *s, size_t slen, ulong *nr1, ulong *nr2) { my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; int res; const uchar *e= s + slen; MY_UNICASE_INFO *uni_plane= cs->caseinfo; register ulong m1= *nr1, m2= *nr2; while ((s < e) && (res= mb_wc(cs, &wc, (uchar *) s, (uchar *) e)) > 0) { my_tosort_utf16(uni_plane, &wc); MY_HASH_ADD_16(m1, m2, wc); s+= res; } *nr1= m1; *nr2= m2; }
O3
c
my_hash_sort_utf16_nopad: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rcx, -0x40(%rbp) movq (%rcx), %rbx movq %r8, -0x48(%rbp) movq (%r8), %r14 testq %rdx, %rdx jle 0xc5bd5 movq %rdx, %r15 movq %rsi, %r12 movq 0x78(%rdi), %rax movq %rax, -0x30(%rbp) movq 0xb8(%rdi), %rax movq 0x28(%rax), %rax movq %rax, -0x50(%rbp) addq %rsi, %r15 movq %rdi, %r13 leaq -0x38(%rbp), %rsi movq %r12, %rdx movq %r15, %rcx callq *-0x50(%rbp) testl %eax, %eax jle 0xc5bd5 movq -0x38(%rbp), %rdx movl $0xfffd, %esi # imm = 0xFFFD movq -0x30(%rbp), %rcx cmpq (%rcx), %rdx movq %r13, %rdi ja 0xc5b7e movq -0x30(%rbp), %rcx movq 0x8(%rcx), %rsi movq %rdx, %rcx shrq $0x8, %rcx movq (%rsi,%rcx,8), %rsi testq %rsi, %rsi je 0xc5b8a movzbl %dl, %ecx leaq (%rcx,%rcx,2), %rcx movl 0x8(%rsi,%rcx,4), %esi movq %rsi, -0x38(%rbp) movl %esi, %ecx shrl $0x8, %ecx movq %rsi, %rdx movl %ebx, %esi andl $0x3f, %esi addq %r14, %rsi movzbl %dl, %edx imulq %rsi, %rdx movq %rbx, %rsi shlq $0x8, %rsi addq %rdx, %rsi xorq %rbx, %rsi movl %esi, %edx andl $0x3f, %edx addq %r14, %rdx addq $0x3, %rdx imulq %rcx, %rdx movq %rsi, %rbx shlq $0x8, %rbx addq %rdx, %rbx xorq %rsi, %rbx addq $0x6, %r14 movl %eax, %eax addq %rax, %r12 cmpq %r15, %r12 jb 0xc5b2e movq -0x40(%rbp), %rax movq %rbx, (%rax) movq -0x48(%rbp), %rax movq %r14, (%rax) addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_hash_sort_utf16_nopad: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov [rbp+var_40], rcx mov rbx, [rcx] mov [rbp+var_48], r8 mov r14, [r8] test rdx, rdx jle loc_C5BD5 mov r15, rdx mov r12, rsi mov rax, [rdi+78h] mov [rbp+var_30], rax mov rax, [rdi+0B8h] mov rax, [rax+28h] mov [rbp+var_50], rax add r15, rsi loc_C5B2E: mov r13, rdi lea rsi, [rbp+var_38] mov rdx, r12 mov rcx, r15 call [rbp+var_50] test eax, eax jle loc_C5BD5 mov rdx, [rbp+var_38] mov esi, 0FFFDh mov rcx, [rbp+var_30] cmp rdx, [rcx] mov rdi, r13 ja short loc_C5B7E mov rcx, [rbp+var_30] mov rsi, [rcx+8] mov rcx, rdx shr rcx, 8 mov rsi, [rsi+rcx*8] test rsi, rsi jz short loc_C5B8A movzx ecx, dl lea rcx, [rcx+rcx*2] mov esi, [rsi+rcx*4+8] loc_C5B7E: mov [rbp+var_38], rsi mov ecx, esi shr ecx, 8 mov rdx, rsi loc_C5B8A: mov esi, ebx and esi, 3Fh add rsi, r14 movzx edx, dl imul rdx, rsi mov rsi, rbx shl rsi, 8 add rsi, rdx xor rsi, rbx mov edx, esi and edx, 3Fh add rdx, r14 add rdx, 3 imul rdx, rcx mov rbx, rsi shl rbx, 8 add rbx, rdx xor rbx, rsi add r14, 6 mov eax, eax add r12, rax cmp r12, r15 jb loc_C5B2E loc_C5BD5: mov rax, [rbp+var_40] mov [rax], rbx mov rax, [rbp+var_48] mov [rax], r14 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * my_hash_sort_utf16_nopad(long long a1, unsigned long long a2, long long a3, long long *a4, _QWORD *a5) { long long v5; // rbx long long v6; // r14 unsigned long long v7; // r12 unsigned long long v8; // r15 int v9; // eax unsigned __int8 v10; // dl long long v11; // rsi unsigned long long v12; // rcx long long v13; // rsi long long v14; // rsi _QWORD *result; // rax long long ( *v16)(long long, unsigned long long *, unsigned long long, unsigned long long); // [rsp+0h] [rbp-50h] unsigned long long v19; // [rsp+18h] [rbp-38h] BYREF unsigned long long *v20; // [rsp+20h] [rbp-30h] v5 = *a4; v6 = *a5; if ( a3 > 0 ) { v7 = a2; v20 = *(unsigned long long **)(a1 + 120); v16 = *(long long ( **)(long long, unsigned long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a1 + 184) + 40LL); v8 = a2 + a3; while ( 1 ) { v9 = v16(a1, &v19, v7, v8); if ( v9 <= 0 ) goto LABEL_9; v10 = v19; v11 = 65533LL; if ( v19 > *v20 ) goto LABEL_7; v12 = v19 >> 8; v13 = *(_QWORD *)(v20[1] + 8 * (v19 >> 8)); if ( v13 ) break; LABEL_8: v14 = v5 ^ ((v6 + (v5 & 0x3F)) * v10 + (v5 << 8)); v5 = v14 ^ (v12 * (v6 + (((unsigned __int8)v5 ^ (unsigned __int8)((v6 + (v5 & 0x3F)) * v10)) & 0x3F) + 3) + (v14 << 8)); v6 += 6LL; v7 += (unsigned int)v9; if ( v7 >= v8 ) goto LABEL_9; } v11 = *(unsigned int *)(v13 + 12LL * (unsigned __int8)v19 + 8); LABEL_7: v19 = v11; v12 = (unsigned int)v11 >> 8; v10 = v11; goto LABEL_8; } LABEL_9: *a4 = v5; result = a5; *a5 = v6; return result; }
my_hash_sort_utf16_nopad: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV qword ptr [RBP + -0x40],RCX MOV RBX,qword ptr [RCX] MOV qword ptr [RBP + -0x48],R8 MOV R14,qword ptr [R8] TEST RDX,RDX JLE 0x001c5bd5 MOV R15,RDX MOV R12,RSI MOV RAX,qword ptr [RDI + 0x78] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x50],RAX ADD R15,RSI LAB_001c5b2e: MOV R13,RDI LEA RSI,[RBP + -0x38] MOV RDX,R12 MOV RCX,R15 CALL qword ptr [RBP + -0x50] TEST EAX,EAX JLE 0x001c5bd5 MOV RDX,qword ptr [RBP + -0x38] MOV ESI,0xfffd MOV RCX,qword ptr [RBP + -0x30] CMP RDX,qword ptr [RCX] MOV RDI,R13 JA 0x001c5b7e MOV RCX,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RCX + 0x8] MOV RCX,RDX SHR RCX,0x8 MOV RSI,qword ptr [RSI + RCX*0x8] TEST RSI,RSI JZ 0x001c5b8a MOVZX ECX,DL LEA RCX,[RCX + RCX*0x2] MOV ESI,dword ptr [RSI + RCX*0x4 + 0x8] LAB_001c5b7e: MOV qword ptr [RBP + -0x38],RSI MOV ECX,ESI SHR ECX,0x8 MOV RDX,RSI LAB_001c5b8a: MOV ESI,EBX AND ESI,0x3f ADD RSI,R14 MOVZX EDX,DL IMUL RDX,RSI MOV RSI,RBX SHL RSI,0x8 ADD RSI,RDX XOR RSI,RBX MOV EDX,ESI AND EDX,0x3f ADD RDX,R14 ADD RDX,0x3 IMUL RDX,RCX MOV RBX,RSI SHL RBX,0x8 ADD RBX,RDX XOR RBX,RSI ADD R14,0x6 MOV EAX,EAX ADD R12,RAX CMP R12,R15 JC 0x001c5b2e LAB_001c5bd5: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RBX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX],R14 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void my_hash_sort_utf16_nopad(long param_1,ulong param_2,long param_3,ulong *param_4,long *param_5) { code *pcVar1; long lVar2; uint uVar3; ulong uVar4; ulong uVar5; ulong uVar6; long lVar7; ulong uVar8; ulong local_40; ulong *local_38; uVar6 = *param_4; lVar7 = *param_5; if (0 < param_3) { local_38 = *(ulong **)(param_1 + 0x78); pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); uVar8 = param_3 + param_2; do { uVar3 = (*pcVar1)(param_1,&local_40,param_2,uVar8); if ((int)uVar3 < 1) break; uVar5 = 0xfffd; if (*local_38 < local_40) { LAB_001c5b7e: uVar4 = uVar5 >> 8; local_40 = uVar5; } else { uVar4 = local_40 >> 8; lVar2 = *(long *)(local_38[1] + uVar4 * 8); if (lVar2 != 0) { uVar5 = (ulong)*(uint *)(lVar2 + 8 + (local_40 & 0xff) * 0xc); goto LAB_001c5b7e; } } uVar6 = uVar6 * 0x100 + (local_40 & 0xff) * ((ulong)((uint)uVar6 & 0x3f) + lVar7) ^ uVar6; uVar6 = uVar6 * 0x100 + ((ulong)((uint)uVar6 & 0x3f) + lVar7 + 3) * uVar4 ^ uVar6; lVar7 = lVar7 + 6; param_2 = param_2 + uVar3; } while (param_2 < uVar8); } *param_4 = uVar6; *param_5 = lVar7; return; }
31,503
Blank::Blank(int, int, int)
untodesu[P]riteg/riteg/blank.cc
Blank::Blank(int red, int green, int blue) { assert(red >= 0 && red <= 255); assert(green >= 0 && green <= 255); assert(blue >= 0 && blue <= 255); std::byte pixels[BLANK_WIDTH * BLANK_HEIGHT * 4]; for (int i = 0; i < BLANK_WIDTH * BLANK_HEIGHT; ++i) { pixels[i * 4 + 0] = static_cast<std::byte>(red); pixels[i * 4 + 1] = static_cast<std::byte>(green); pixels[i * 4 + 2] = static_cast<std::byte>(blue); pixels[i * 4 + 3] = static_cast<std::byte>(255); } glGenTextures(1, &m_texture); glBindTexture(GL_TEXTURE_2D, m_texture); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, BLANK_WIDTH, BLANK_HEIGHT, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); }
O1
cpp
Blank::Blank(int, int, int): pushq %rbx subq $0x400, %rsp # imm = 0x400 leaq 0x93b69(%rip), %rax # 0xa17c0 movq %rax, (%rdi) cmpl $0x100, %esi # imm = 0x100 jae 0xdd52 cmpl $0x100, %edx # imm = 0x100 jae 0xdd71 cmpl $0x100, %ecx # imm = 0x100 jae 0xdd90 movq %rdi, %rbx xorl %eax, %eax movb %sil, (%rsp,%rax,4) movb %dl, 0x1(%rsp,%rax,4) movb %cl, 0x2(%rsp,%rax,4) movb $-0x1, 0x3(%rsp,%rax,4) incq %rax cmpq $0x100, %rax # imm = 0x100 jne 0xdc83 leaq 0xb7cba(%rip), %rax # 0xc5960 leaq 0x8(%rbx), %rsi movl $0x1, %edi callq *(%rax) leaq 0xb77d8(%rip), %rax # 0xc5490 movl 0x8(%rbx), %esi movl $0xde1, %edi # imm = 0xDE1 callq *(%rax) leaq 0xb86b7(%rip), %rax # 0xc6380 subq $0x8, %rsp leaq 0x8(%rsp), %r10 movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl $0x8058, %edx # imm = 0x8058 movl $0x10, %ecx movl $0x10, %r8d xorl %r9d, %r9d pushq %r10 pushq $0x1401 # imm = 0x1401 pushq $0x1908 # imm = 0x1908 callq *(%rax) addq $0x20, %rsp leaq 0xb86ab(%rip), %rbx # 0xc63b0 movl $0xde1, %edi # imm = 0xDE1 movl $0x2802, %esi # imm = 0x2802 movl $0x812f, %edx # imm = 0x812F callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2803, %esi # imm = 0x2803 movl $0x812f, %edx # imm = 0x812F callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2801, %esi # imm = 0x2801 movl $0x2601, %edx # imm = 0x2601 callq *(%rbx) movl $0xde1, %edi # imm = 0xDE1 movl $0x2800, %esi # imm = 0x2800 movl $0x2601, %edx # imm = 0x2601 callq *(%rbx) addq $0x400, %rsp # imm = 0x400 popq %rbx retq leaq 0x542ab(%rip), %rdi # 0x62004 leaq 0x542bb(%rip), %rsi # 0x6201b leaq 0x542fc(%rip), %rcx # 0x62063 movl $0xe, %edx callq 0xc540 leaq 0x54307(%rip), %rdi # 0x6207f leaq 0x5429c(%rip), %rsi # 0x6201b leaq 0x542dd(%rip), %rcx # 0x62063 movl $0xf, %edx callq 0xc540 leaq 0x54303(%rip), %rdi # 0x6209a leaq 0x5427d(%rip), %rsi # 0x6201b leaq 0x542be(%rip), %rcx # 0x62063 movl $0x10, %edx callq 0xc540 nop
_ZN5BlankC2Eiii: push rbx sub rsp, 400h lea rax, off_A17C0 mov [rdi], rax cmp esi, 100h jnb loc_DD52 cmp edx, 100h jnb loc_DD71 cmp ecx, 100h jnb loc_DD90 mov rbx, rdi xor eax, eax loc_DC83: mov [rsp+rax*4+408h+var_408], sil mov [rsp+rax*4+408h+var_407], dl mov [rsp+rax*4+408h+var_406], cl mov [rsp+rax*4+408h+var_405], 0FFh inc rax cmp rax, 100h jnz short loc_DC83 lea rax, glad_glGenTextures lea rsi, [rbx+8] mov edi, 1 call qword ptr [rax] lea rax, glad_glBindTexture mov esi, [rbx+8] mov edi, 0DE1h call qword ptr [rax] lea rax, glad_glTexImage2D sub rsp, 8 lea r10, [rsp+410h+var_408] mov edi, 0DE1h xor esi, esi mov edx, 8058h mov ecx, 10h mov r8d, 10h xor r9d, r9d push r10 push 1401h push 1908h call qword ptr [rax] add rsp, 20h lea rbx, glad_glTexParameteri mov edi, 0DE1h mov esi, 2802h mov edx, 812Fh call qword ptr [rbx] mov edi, 0DE1h mov esi, 2803h mov edx, 812Fh call qword ptr [rbx] mov edi, 0DE1h mov esi, 2801h mov edx, 2601h call qword ptr [rbx] mov edi, 0DE1h mov esi, 2800h mov edx, 2601h call qword ptr [rbx] add rsp, 400h pop rbx retn loc_DD52: lea rdi, aRed0Red255; "red >= 0 && red <= 255" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBlankBlankIntI; "Blank::Blank(int, int, int)" mov edx, 0Eh call ___assert_fail loc_DD71: lea rdi, aGreen0Green255; "green >= 0 && green <= 255" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBlankBlankIntI; "Blank::Blank(int, int, int)" mov edx, 0Fh call ___assert_fail loc_DD90: lea rdi, aBlue0Blue255; "blue >= 0 && blue <= 255" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aBlankBlankIntI; "Blank::Blank(int, int, int)" mov edx, 10h call ___assert_fail
void Blank::Blank(Blank *this, unsigned int a2, unsigned int a3, unsigned int a4) { long long i; // rax _BYTE v5[1032]; // [rsp+0h] [rbp-408h] BYREF *(_QWORD *)this = off_A17C0; if ( a2 >= 0x100 ) __assert_fail( "red >= 0 && red <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc", 14LL, "Blank::Blank(int, int, int)"); if ( a3 >= 0x100 ) __assert_fail( "green >= 0 && green <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc", 15LL, "Blank::Blank(int, int, int)"); if ( a4 >= 0x100 ) __assert_fail( "blue >= 0 && blue <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc", 16LL, "Blank::Blank(int, int, int)"); for ( i = 0LL; i != 256; ++i ) { v5[4 * i] = a2; v5[4 * i + 1] = a3; v5[4 * i + 2] = a4; v5[4 * i + 3] = -1; } glad_glGenTextures(1LL, (char *)this + 8); glad_glBindTexture(3553LL, *((unsigned int *)this + 2)); glad_glTexImage2D(3553LL, 0LL, 32856LL, 16LL, 16LL, 0LL, 6408LL, 5121LL, v5); glad_glTexParameteri(3553LL, 10242LL, 33071LL); glad_glTexParameteri(3553LL, 10243LL, 33071LL); glad_glTexParameteri(3553LL, 10241LL, 9729LL); glad_glTexParameteri(3553LL, 10240LL, 9729LL); }
Blank: PUSH RBX SUB RSP,0x400 LEA RAX,[0x1a17c0] MOV qword ptr [RDI],RAX CMP ESI,0x100 JNC 0x0010dd52 CMP EDX,0x100 JNC 0x0010dd71 CMP ECX,0x100 JNC 0x0010dd90 MOV RBX,RDI XOR EAX,EAX LAB_0010dc83: MOV byte ptr [RSP + RAX*0x4],SIL MOV byte ptr [RSP + RAX*0x4 + 0x1],DL MOV byte ptr [RSP + RAX*0x4 + 0x2],CL MOV byte ptr [RSP + RAX*0x4 + 0x3],0xff INC RAX CMP RAX,0x100 JNZ 0x0010dc83 LEA RAX,[0x1c5960] LEA RSI,[RBX + 0x8] MOV EDI,0x1 CALL qword ptr [RAX] LEA RAX,[0x1c5490] MOV ESI,dword ptr [RBX + 0x8] MOV EDI,0xde1 CALL qword ptr [RAX] LEA RAX,[0x1c6380] SUB RSP,0x8 LEA R10,[RSP + 0x8] MOV EDI,0xde1 XOR ESI,ESI MOV EDX,0x8058 MOV ECX,0x10 MOV R8D,0x10 XOR R9D,R9D PUSH R10 PUSH 0x1401 PUSH 0x1908 CALL qword ptr [RAX] ADD RSP,0x20 LEA RBX,[0x1c63b0] MOV EDI,0xde1 MOV ESI,0x2802 MOV EDX,0x812f CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2803 MOV EDX,0x812f CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2801 MOV EDX,0x2601 CALL qword ptr [RBX] MOV EDI,0xde1 MOV ESI,0x2800 MOV EDX,0x2601 CALL qword ptr [RBX] ADD RSP,0x400 POP RBX RET LAB_0010dd52: LEA RDI,[0x162004] LEA RSI,[0x16201b] LEA RCX,[0x162063] MOV EDX,0xe CALL 0x0010c540 LAB_0010dd71: LEA RDI,[0x16207f] LEA RSI,[0x16201b] LEA RCX,[0x162063] MOV EDX,0xf CALL 0x0010c540 LAB_0010dd90: LEA RDI,[0x16209a] LEA RSI,[0x16201b] LEA RCX,[0x162063] MOV EDX,0x10 CALL 0x0010c540
/* Blank::Blank(int, int, int) */ void __thiscall Blank::Blank(Blank *this,int param_1,int param_2,int param_3) { long lVar1; int1 local_408 [1024]; *(int ***)this = &PTR__Blank_001a17c0; if (0xff < (uint)param_1) { /* WARNING: Subroutine does not return */ __assert_fail("red >= 0 && red <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc",0xe, "Blank::Blank(int, int, int)"); } if ((uint)param_2 < 0x100) { if ((uint)param_3 < 0x100) { lVar1 = 0; do { local_408[lVar1 * 4] = (char)param_1; local_408[lVar1 * 4 + 1] = (char)param_2; local_408[lVar1 * 4 + 2] = (char)param_3; local_408[lVar1 * 4 + 3] = 0xff; lVar1 = lVar1 + 1; } while (lVar1 != 0x100); (*glad_glGenTextures)(1,this + 8); (*glad_glBindTexture)(0xde1,*(int4 *)(this + 8)); (*glad_glTexImage2D)(0xde1,0,0x8058,0x10,0x10,0,0x1908,0x1401,local_408); (*glad_glTexParameteri)(0xde1,0x2802,0x812f); (*glad_glTexParameteri)(0xde1,0x2803,0x812f); (*glad_glTexParameteri)(0xde1,0x2801,0x2601); (*glad_glTexParameteri)(0xde1,0x2800,0x2601); return; } /* WARNING: Subroutine does not return */ __assert_fail("blue >= 0 && blue <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc",0x10, "Blank::Blank(int, int, int)"); } /* WARNING: Subroutine does not return */ __assert_fail("green >= 0 && green <= 255", "/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/blank.cc",0xf, "Blank::Blank(int, int, int)"); }
31,504
nglog::LogMessage::SaveOrSendToLog()
ng-log[P]ng-log/src/logging.cc
EXCLUSIVE_LOCKS_REQUIRED(log_mutex) { if (data_->outvec_ != nullptr) { RAW_DCHECK(data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == '\n', ""); // Omit prefix of message and trailing newline when recording in outvec_. const char* start = data_->message_text_ + data_->num_prefix_chars_; size_t len = data_->num_chars_to_log_ - data_->num_prefix_chars_ - 1; data_->outvec_->push_back(string(start, len)); } else { SendToLog(); } }
O1
cpp
nglog::LogMessage::SaveOrSendToLog(): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movq 0x8(%rdi), %rax cmpq $0x0, 0x76b0(%rax) je 0xb765 movq 0x76c0(%rax), %rcx testq %rcx, %rcx je 0xb6cf cmpb $0xa, 0x3(%rcx,%rax) je 0xb6fc leaq 0x1819c(%rip), %rsi # 0x23872 leaq 0x181dc(%rip), %rcx # 0x238b9 leaq 0x181e9(%rip), %r8 # 0x238cd leaq 0x18715(%rip), %r9 # 0x23e00 movl $0x3, %edi movl $0x77e, %edx # imm = 0x77E xorl %eax, %eax callq 0x20224 movq 0x8(%rbx), %rax movq 0x76b0(%rax), %rbx movq 0x76b8(%rax), %rcx leaq (%rax,%rcx), %rsi addq $0x4, %rsi notq %rcx movq 0x76c0(%rax), %rdx addq %rsi, %rdx addq %rcx, %rdx leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq %rsp, %r14 movq %r14, %rdi callq 0xa422 movq %rbx, %rdi movq %r14, %rsi callq 0x1ffa4 movq (%rsp), %rdi cmpq %r15, %rdi je 0xb75b movq 0x10(%rsp), %rsi incq %rsi callq 0x7540 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rbx, %rdi addq $0x20, %rsp popq %rbx popq %r14 popq %r15 jmp 0xafce movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0xb78f movq 0x10(%rsp), %rsi incq %rsi callq 0x7540 movq %rbx, %rdi callq 0x7990 nop
_ZN5nglog10LogMessage15SaveOrSendToLogEv: push r15 push r14 push rbx sub rsp, 20h mov rbx, rdi mov rax, [rdi+8] cmp qword ptr [rax+76B0h], 0 jz loc_B765 mov rcx, [rax+76C0h] test rcx, rcx jz short loc_B6CF cmp byte ptr [rcx+rax+3], 0Ah jz short loc_B6FC loc_B6CF: lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rcx, aCheckSFailedS; "Check %s failed: %s" lea r8, aDataNumCharsTo; "data_->num_chars_to_log_ > 0 && data_->"... lea r9, asc_23DFE+2; "" mov edi, 3 mov edx, 77Eh xor eax, eax call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...) loc_B6FC: mov rax, [rbx+8] mov rbx, [rax+76B0h] mov rcx, [rax+76B8h] lea rsi, [rax+rcx] add rsi, 4 not rcx mov rdx, [rax+76C0h] add rdx, rsi add rdx, rcx lea r15, [rsp+38h+var_28] mov [r15-10h], r15 mov r14, rsp mov rdi, r14 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, rbx mov rsi, r14 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_B75B mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B75B: add rsp, 20h pop rbx pop r14 pop r15 retn loc_B765: mov rdi, rbx; this add rsp, 20h pop rbx pop r14 pop r15 jmp _ZN5nglog10LogMessage9SendToLogEv; nglog::LogMessage::SendToLog(void) mov rbx, rax mov rdi, [rsp+0]; void * cmp rdi, r15 jz short loc_B78F mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_B78F: mov rdi, rbx call __Unwind_Resume
void nglog::LogMessage::SaveOrSendToLog(nglog::LogMessage *this) { long long v1; // rax long long v2; // rcx _QWORD *v3; // rax long long v4; // rbx long long v5; // rcx _BYTE *v6; // rsi long long v7; // rdx void *v8[2]; // [rsp+0h] [rbp-38h] BYREF _QWORD v9[5]; // [rsp+10h] [rbp-28h] BYREF v1 = *((_QWORD *)this + 1); if ( *(_QWORD *)(v1 + 30384) ) { v2 = *(_QWORD *)(v1 + 30400); if ( !v2 || *(_BYTE *)(v2 + v1 + 3) != 10 ) nglog::RawLog( 3, (unsigned int)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc", 1918, (unsigned int)"Check %s failed: %s", (unsigned int)"data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == '\\n'", (unsigned int)"", (char)v8[0]); v3 = (_QWORD *)*((_QWORD *)this + 1); v4 = v3[3798]; v5 = v3[3799]; v6 = (char *)v3 + v5 + 4; v7 = (long long)&v6[v3[3800] + ~v5]; v8[0] = v9; std::string::_M_construct<char const*>(v8, v6, v7); std::vector<std::string>::emplace_back<std::string>(v4, v8); if ( v8[0] != v9 ) operator delete(v8[0], v9[0] + 1LL); } else { nglog::LogMessage::SendToLog(this); } }
SaveOrSendToLog: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x8] CMP qword ptr [RAX + 0x76b0],0x0 JZ 0x0010b765 MOV RCX,qword ptr [RAX + 0x76c0] TEST RCX,RCX JZ 0x0010b6cf CMP byte ptr [RCX + RAX*0x1 + 0x3],0xa JZ 0x0010b6fc LAB_0010b6cf: LEA RSI,[0x123872] LEA RCX,[0x1238b9] LEA R8,[0x1238cd] LEA R9,[0x123e00] MOV EDI,0x3 MOV EDX,0x77e XOR EAX,EAX CALL 0x00120224 LAB_0010b6fc: MOV RAX,qword ptr [RBX + 0x8] MOV RBX,qword ptr [RAX + 0x76b0] MOV RCX,qword ptr [RAX + 0x76b8] LEA RSI,[RAX + RCX*0x1] ADD RSI,0x4 NOT RCX MOV RDX,qword ptr [RAX + 0x76c0] ADD RDX,RSI ADD RDX,RCX LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV R14,RSP MOV RDI,R14 CALL 0x0010a422 LAB_0010b73a: MOV RDI,RBX MOV RSI,R14 CALL 0x0011ffa4 LAB_0010b745: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0010b75b MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00107540 LAB_0010b75b: ADD RSP,0x20 POP RBX POP R14 POP R15 RET LAB_0010b765: MOV RDI,RBX ADD RSP,0x20 POP RBX POP R14 POP R15 JMP 0x0010afce
/* nglog::LogMessage::SaveOrSendToLog() */ void __thiscall nglog::LogMessage::SaveOrSendToLog(LogMessage *this) { long lVar1; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *this_00; long lVar2; long *local_38 [2]; long local_28 [2]; lVar1 = *(long *)(this + 8); if (*(long *)(lVar1 + 0x76b0) != 0) { if ((*(long *)(lVar1 + 0x76c0) == 0) || (*(char *)(*(long *)(lVar1 + 0x76c0) + 3 + lVar1) != '\n')) { RawLog(3,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/logging.cc",0x77e, "Check %s failed: %s", "data_->num_chars_to_log_ > 0 && data_->message_text_[data_->num_chars_to_log_ - 1] == \'\\n\'" ,&DAT_00123e00); } lVar1 = *(long *)(this + 8); this_00 = *(vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> **) (lVar1 + 0x76b0); lVar2 = lVar1 + *(ulong *)(lVar1 + 0x76b8) + 4; local_38[0] = local_28; std::__cxx11::string::_M_construct<char_const*> (local_38,lVar2,*(long *)(lVar1 + 0x76c0) + lVar2 + ~*(ulong *)(lVar1 + 0x76b8)); /* try { // try from 0010b73a to 0010b744 has its CatchHandler @ 0010b776 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string>(this_00,(string *)local_38); if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } return; } SendToLog(this); return; }
31,505
minja::Parser::parseVarNames[abi:cxx11]()
monkey531[P]llama/common/minja.hpp
std::vector<std::string> parseVarNames() { static std::regex varnames_regex(R"(((?:\w+)(?:[\r\n\s]*,[\r\n\s]*(?:\w+))*)[\r\n\s]*)"); std::vector<std::string> group; if ((group = consumeTokenGroups(varnames_regex)).empty()) throw std::runtime_error("Expected variable names"); std::vector<std::string> varnames; std::istringstream iss(group[1]); std::string varname; while (std::getline(iss, varname, ',')) { varnames.push_back(strip(varname)); } return varnames; }
O2
cpp
minja::Parser::parseVarNames[abi:cxx11](): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1e0, %rsp # imm = 0x1E0 movq %rsi, %r14 movq %rdi, %rbx leaq 0x9d338(%rip), %rax # 0xfd1b0 movb (%rax), %al testb %al, %al je 0x5ff7e xorps %xmm0, %xmm0 movaps %xmm0, (%rsp) andq $0x0, 0x10(%rsp) leaq 0x9d2fa(%rip), %rdx # 0xfd190 leaq 0x60(%rsp), %rdi pushq $0x1 popq %rcx movq %r14, %rsi callq 0x5f7a2 movq %rsp, %r14 leaq 0x60(%rsp), %r15 movq %r14, %rdi movq %r15, %rsi callq 0x60ae2 movq (%r14), %r12 movq 0x8(%r14), %r14 movq %r15, %rdi callq 0x26bfa cmpq %r14, %r12 je 0x5ffd3 andq $0x0, 0x10(%rbx) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq (%rsp), %rsi addq $0x20, %rsi leaq 0x60(%rsp), %rdi pushq $0x8 popq %rdx callq 0x23e50 leaq 0x30(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x60(%rsp), %r14 leaq 0x20(%rsp), %r15 pushq $0x2c popq %rbp leaq 0x40(%rsp), %r12 movq %r14, %rdi movq %r15, %rsi movl %ebp, %edx callq 0x23fe0 movq (%rax), %rcx movq -0x18(%rcx), %rcx testb $0x5, 0x20(%rax,%rcx) jne 0x5ff4f movq %r12, %rdi movq %r15, %rsi callq 0x5727d movq %rbx, %rdi movq %r12, %rsi callq 0x3a210 movq %r12, %rdi callq 0x24158 jmp 0x5ff14 leaq 0x20(%rsp), %rdi callq 0x24158 leaq 0x60(%rsp), %rdi callq 0x23420 movq %rsp, %rdi callq 0x26bfa movq %rbx, %rax addq $0x1e0, %rsp # imm = 0x1E0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq leaq 0x9d22b(%rip), %rdi # 0xfd1b0 callq 0x23f80 testl %eax, %eax je 0x5fe82 leaq 0x9d1f7(%rip), %rdi # 0xfd190 leaq 0x5380c(%rip), %rsi # 0xb37ac pushq $0x10 popq %rdx callq 0x45700 leaq -0x1a689(%rip), %rdi # 0x45926 leaq 0x9d1da(%rip), %rsi # 0xfd190 leaq 0x9c8fb(%rip), %rdx # 0xfc8b8 callq 0x23780 leaq 0x9d1e7(%rip), %rdi # 0xfd1b0 callq 0x235c0 jmp 0x5fe82 pushq $0x10 popq %rdi callq 0x23450 movq %rax, %rbx leaq 0x537f9(%rip), %rsi # 0xb37de movq %rax, %rdi callq 0x23310 movq 0x9bffc(%rip), %rsi # 0xfbff0 movq 0x9bf5d(%rip), %rdx # 0xfbf58 movq %rbx, %rdi callq 0x23e90 movq %rax, %r14 leaq 0x9d1a3(%rip), %rdi # 0xfd1b0 callq 0x235b0 jmp 0x60065 jmp 0x60028 movq %rax, %r14 movq %rbx, %rdi callq 0x23660 jmp 0x6005d movq %rax, %r14 jmp 0x60055 movq %rax, %r14 jmp 0x6005d movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0x24158 jmp 0x60041 jmp 0x6003e movq %rax, %r14 leaq 0x20(%rsp), %rdi callq 0x24158 leaq 0x60(%rsp), %rdi callq 0x23420 movq %rbx, %rdi callq 0x26bfa movq %rsp, %rdi callq 0x26bfa movq %r14, %rdi callq 0x23f10
_ZN5minja6Parser13parseVarNamesB5cxx11Ev: push rbp push r15 push r14 push r12 push rbx sub rsp, 1E0h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; `guard variable for'minja::Parser::parseVarNames(void)::varnames_regex mov al, [rax] test al, al jz loc_5FF7E loc_5FE82: xorps xmm0, xmm0 movaps [rsp+208h+var_208], xmm0 and [rsp+208h+var_1F8], 0 lea rdx, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; minja::Parser::parseVarNames(void)::varnames_regex lea rdi, [rsp+208h+var_1A8] push 1 pop rcx mov rsi, r14 call _ZN5minja6Parser18consumeTokenGroupsERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeTokenGroups(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov r14, rsp lea r15, [rsp+208h+var_1A8] mov rdi, r14 mov rsi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE14_M_move_assignEOS7_St17integral_constantIbLb1EE; std::vector<std::string>::_M_move_assign(std::vector<std::string>&&,std::integral_constant<bool,true>) mov r12, [r14] mov r14, [r14+8] mov rdi, r15 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() cmp r12, r14 jz loc_5FFD3 and qword ptr [rbx+10h], 0 xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 mov rsi, qword ptr [rsp+208h+var_208] add rsi, 20h ; ' ' lea rdi, [rsp+208h+var_1A8] push 8 pop rdx call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode) lea rax, [rsp+208h+var_1D8] mov [rax-10h], rax and qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r14, [rsp+208h+var_1A8] lea r15, [rsp+208h+var_1E8] push 2Ch ; ',' pop rbp lea r12, [rsp+208h+var_1C8] loc_5FF14: mov rdi, r14 mov rsi, r15 mov edx, ebp call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char) mov rcx, [rax] mov rcx, [rcx-18h] test byte ptr [rax+rcx+20h], 5 jnz short loc_5FF4F mov rdi, r12 mov rsi, r15 call _ZN5minjaL5stripERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::strip(std::string const&) mov rdi, rbx mov rsi, r12 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_5FF14 loc_5FF4F: lea rdi, [rsp+208h+var_1E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+208h+var_1A8] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() mov rdi, rsp call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rax, rbx add rsp, 1E0h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_5FF7E: lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_5FE82 lea rdi, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; minja::Parser::parseVarNames(void)::varnames_regex lea rsi, aWRNSRNSWRNS; "((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?"... 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, _ZZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard * call ___cxa_guard_release jmp loc_5FE82 loc_5FFD3: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aExpectedVariab; "Expected variable names" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, _ZGVZN5minja6Parser13parseVarNamesB5cxx11EvE14varnames_regexB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_60065 jmp short loc_60028 mov r14, rax mov rdi, rbx; void * call ___cxa_free_exception jmp short loc_6005D mov r14, rax jmp short loc_60055 loc_60028: mov r14, rax jmp short loc_6005D mov r14, rax lea rdi, [rsp+208h+var_1C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_60041 jmp short $+2 loc_6003E: mov r14, rax loc_60041: lea rdi, [rsp+208h+var_1E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+208h+var_1A8] call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream() loc_60055: mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_6005D: mov rdi, rsp call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_60065: mov rdi, r14 call __Unwind_Resume
long long minja::Parser::parseVarNames[abi:cxx11](long long a1, long long a2) { __int128 v2; // kr00_16 _QWORD *v3; // rax std::runtime_error *exception; // rbx __int128 v6; // [rsp+0h] [rbp-208h] BYREF long long v7; // [rsp+10h] [rbp-1F8h] _QWORD v8[2]; // [rsp+20h] [rbp-1E8h] BYREF char v9; // [rsp+30h] [rbp-1D8h] BYREF _QWORD v10[4]; // [rsp+40h] [rbp-1C8h] BYREF _BYTE v11[424]; // [rsp+60h] [rbp-1A8h] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11], (long long)"((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11]); } v6 = 0LL; v7 = 0LL; minja::Parser::consumeTokenGroups( (long long)v11, a2, (long long)&minja::Parser::parseVarNames[abi:cxx11](void)::varnames_regex[abi:cxx11], 1u); std::vector<std::string>::_M_move_assign(&v6, v11); v2 = v6; std::vector<std::string>::~vector((long long)v11); if ( (_QWORD)v2 == *((_QWORD *)&v2 + 1) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected variable names"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } *(_QWORD *)(a1 + 16) = 0LL; *(_OWORD *)a1 = 0LL; std::istringstream::basic_istringstream(v11, v6 + 32, 8LL); v8[0] = &v9; v8[1] = 0LL; v9 = 0; while ( 1 ) { v3 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v11, v8, 44LL); if ( (*((_BYTE *)v3 + *(_QWORD *)(*v3 - 24LL) + 32) & 5) != 0 ) break; minja::strip(v10, (long long)v8); std::vector<std::string>::emplace_back<std::string>(a1, (long long)v10); std::string::~string(v10); } std::string::~string(v8); std::istringstream::~istringstream(v11); std::vector<std::string>::~vector((long long)&v6); return a1; }
parseVarNames[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1e0 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x1fd1b0] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x0015ff7e LAB_0015fe82: XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP],XMM0 AND qword ptr [RSP + 0x10],0x0 LAB_0015fe8f: LEA RDX,[0x1fd190] LEA RDI,[RSP + 0x60] PUSH 0x1 POP RCX MOV RSI,R14 CALL 0x0015f7a2 MOV R14,RSP LEA R15,[RSP + 0x60] MOV RDI,R14 MOV RSI,R15 CALL 0x00160ae2 MOV R12,qword ptr [R14] MOV R14,qword ptr [R14 + 0x8] MOV RDI,R15 CALL 0x00126bfa CMP R12,R14 JZ 0x0015ffd3 AND qword ptr [RBX + 0x10],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOV RSI,qword ptr [RSP] ADD RSI,0x20 LAB_0015fee4: LEA RDI,[RSP + 0x60] PUSH 0x8 POP RDX CALL 0x00123e50 LEA RAX,[RSP + 0x30] MOV qword ptr [RAX + -0x10],RAX AND qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R14,[RSP + 0x60] LEA R15,[RSP + 0x20] PUSH 0x2c POP RBP LEA R12,[RSP + 0x40] LAB_0015ff14: MOV RDI,R14 MOV RSI,R15 MOV EDX,EBP CALL 0x00123fe0 MOV RCX,qword ptr [RAX] MOV RCX,qword ptr [RCX + -0x18] TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5 JNZ 0x0015ff4f LAB_0015ff2f: MOV RDI,R12 MOV RSI,R15 CALL 0x0015727d LAB_0015ff3a: MOV RDI,RBX MOV RSI,R12 CALL 0x0013a210 MOV RDI,R12 CALL 0x00124158 JMP 0x0015ff14 LAB_0015ff4f: LEA RDI,[RSP + 0x20] CALL 0x00124158 LEA RDI,[RSP + 0x60] CALL 0x00123420 MOV RDI,RSP CALL 0x00126bfa MOV RAX,RBX ADD RSP,0x1e0 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0015ff7e: LEA RDI,[0x1fd1b0] CALL 0x00123f80 TEST EAX,EAX JZ 0x0015fe82 LAB_0015ff92: LEA RDI,[0x1fd190] LEA RSI,[0x1b37ac] PUSH 0x10 POP RDX CALL 0x00145700 LAB_0015ffa8: LEA RDI,[0x145926] LEA RSI,[0x1fd190] LEA RDX,[0x1fc8b8] CALL 0x00123780 LEA RDI,[0x1fd1b0] CALL 0x001235c0 JMP 0x0015fe82 LAB_0015ffd3: PUSH 0x10 POP RDI CALL 0x00123450 MOV RBX,RAX LAB_0015ffde: LEA RSI,[0x1b37de] MOV RDI,RAX CALL 0x00123310 LAB_0015ffed: MOV RSI,qword ptr [0x001fbff0] MOV RDX,qword ptr [0x001fbf58] MOV RDI,RBX CALL 0x00123e90
/* minja::Parser::parseVarNames[abi:cxx11]() */ void minja::Parser::parseVarNames_abi_cxx11_(void) { long lVar1; long lVar2; int iVar3; istream *piVar4; runtime_error *this; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *in_RDI; long local_208; long lStack_200; int8 local_1f8; int1 *local_1e8; int8 local_1e0; int1 local_1d8 [16]; minja local_1c8 [32]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_1a8 [384]; if (parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_ == '\0') { iVar3 = __cxa_guard_acquire(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_); if (iVar3 != 0) { /* try { // try from 0015ff92 to 0015ffa7 has its CatchHandler @ 00160003 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_, "((?:\\w+)(?:[\\r\\n\\s]*,[\\r\\n\\s]*(?:\\w+))*)[\\r\\n\\s]*",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseVarNames[abi:cxx11]()::varnames_regex_abi_cxx11_); } } local_208 = 0; lStack_200 = 0; local_1f8 = 0; /* try { // try from 0015fe8f to 0015fea5 has its CatchHandler @ 00160028 */ consumeTokenGroups(local_1a8); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::_M_move_assign (&local_208,local_1a8); lVar2 = lStack_200; lVar1 = local_208; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_1a8); if (lVar1 != lVar2) { *(int8 *)(in_RDI + 0x10) = 0; *(int8 *)in_RDI = 0; *(int8 *)(in_RDI + 8) = 0; /* try { // try from 0015fee4 to 0015fef0 has its CatchHandler @ 00160023 */ std::__cxx11::istringstream::istringstream((istringstream *)local_1a8,local_208 + 0x20,8); local_1e8 = local_1d8; local_1e0 = 0; local_1d8[0] = 0; while( true ) { /* try { // try from 0015ff14 to 0015ff20 has its CatchHandler @ 0016003e */ piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>> ((istream *)local_1a8,(string *)&local_1e8,','); if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) != 0) break; /* try { // try from 0015ff2f to 0015ff39 has its CatchHandler @ 0016003c */ strip(local_1c8,(string *)&local_1e8); /* try { // try from 0015ff3a to 0015ff44 has its CatchHandler @ 0016002d */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string>(in_RDI,(string *)local_1c8); std::__cxx11::string::~string((string *)local_1c8); } std::__cxx11::string::~string((string *)&local_1e8); std::__cxx11::istringstream::~istringstream((istringstream *)local_1a8); std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)&local_208); return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0015ffde to 0015ffec has its CatchHandler @ 00160016 */ std::runtime_error::runtime_error(this,"Expected variable names"); /* try { // try from 0015ffed to 00160002 has its CatchHandler @ 00160014 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_001fbff0,PTR__runtime_error_001fbf58); }
31,506
keygen
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/keygen.c
static void keygen(pow256 SK, const void *IKM, size_t IKM_len, const void *salt, size_t salt_len, const void *info, size_t info_len, int version) { struct { HMAC_SHA256_CTX ctx; unsigned char PRK[32], OKM[48]; vec512 key; } scratch; unsigned char salt_prime[32] = "BLS-SIG-KEYGEN-SALT-"; if (IKM_len < 32 || (version > 4 && salt == NULL)) { vec_zero(SK, sizeof(pow256)); return; } /* * Vet |info| since some callers were caught to be sloppy, e.g. * SWIG-4.0-generated Python wrapper... */ info_len = info==NULL ? 0 : info_len; if (salt == NULL) { salt = salt_prime; salt_len = 20; } if (version == 4) { /* salt = H(salt) */ sha256_init(&scratch.ctx.ctx); sha256_update(&scratch.ctx.ctx, salt, salt_len); sha256_final(salt_prime, &scratch.ctx.ctx); salt = salt_prime; salt_len = sizeof(salt_prime); } while (1) { /* PRK = HKDF-Extract(salt, IKM || I2OSP(0, 1)) */ HKDF_Extract(scratch.PRK, salt, salt_len, IKM, IKM_len, 1, &scratch.ctx); /* OKM = HKDF-Expand(PRK, key_info || I2OSP(L, 2), L) */ HKDF_Expand(scratch.OKM, sizeof(scratch.OKM), scratch.PRK, info, info_len, 1, &scratch.ctx); /* SK = OS2IP(OKM) mod r */ vec_zero(scratch.key, sizeof(scratch.key)); limbs_from_be_bytes(scratch.key, scratch.OKM, sizeof(scratch.OKM)); redc_mont_256(scratch.key, scratch.key, BLS12_381_r, r0); /* * Given that mul_mont_sparse_256 has special boundary conditions * it's appropriate to mention that redc_mont_256 output is fully * reduced at this point. Because we started with 384-bit input, * one with most significant half smaller than the modulus. */ mul_mont_sparse_256(scratch.key, scratch.key, BLS12_381_rRR, BLS12_381_r, r0); if (version < 4 || !vec_is_zero(scratch.key, sizeof(vec256))) break; /* salt = H(salt) */ sha256_init(&scratch.ctx.ctx); sha256_update(&scratch.ctx.ctx, salt, salt_len); sha256_final(salt_prime, &scratch.ctx.ctx); salt = salt_prime; salt_len = sizeof(salt_prime); } le_bytes_from_limbs(SK, scratch.key, sizeof(pow256)); /* * scrub the stack just in case next callee inadvertently flashes * a fragment across application boundary... */ vec_zero(&scratch, sizeof(scratch)); }
O0
c
keygen: pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 movl 0x18(%rbp), %eax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq 0x329cf(%rip), %rax # 0x54fd0 movq %rax, -0x1d0(%rbp) movq 0x329c9(%rip), %rax # 0x54fd8 movq %rax, -0x1c8(%rbp) movq 0x329c3(%rip), %rax # 0x54fe0 movq %rax, -0x1c0(%rbp) movq 0x329bd(%rip), %rax # 0x54fe8 movq %rax, -0x1b8(%rbp) cmpq $0x20, -0x18(%rbp) jb 0x22646 cmpl $0x4, 0x18(%rbp) jle 0x22659 cmpq $0x0, -0x20(%rbp) jne 0x22659 movq -0x8(%rbp), %rdi movl $0x20, %esi callq 0x23310 jmp 0x228a3 cmpq $0x0, -0x30(%rbp) jne 0x2266b xorl %eax, %eax movq %rax, -0x1d8(%rbp) jmp 0x22676 movq 0x10(%rbp), %rax movq %rax, -0x1d8(%rbp) movq -0x1d8(%rbp), %rax movq %rax, 0x10(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x2269b leaq -0x1d0(%rbp), %rax movq %rax, -0x20(%rbp) movq $0x14, -0x28(%rbp) cmpl $0x4, 0x18(%rbp) jne 0x226e7 leaq -0x1b0(%rbp), %rdi callq 0x31c90 leaq -0x1b0(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x31ce0 leaq -0x1d0(%rbp), %rdi leaq -0x1b0(%rbp), %rsi callq 0x31e70 leaq -0x1d0(%rbp), %rax movq %rax, -0x20(%rbp) movq $0x20, -0x28(%rbp) jmp 0x226e9 leaq -0x1b0(%rbp), %rdi addq $0xf0, %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x10(%rbp), %rcx movq -0x18(%rbp), %r8 leaq -0x1b0(%rbp), %rax movl $0x1, %r9d movq %rax, (%rsp) callq 0x32820 leaq -0x1b0(%rbp), %rdi addq $0x110, %rdi # imm = 0x110 leaq -0x1b0(%rbp), %rdx addq $0xf0, %rdx movq -0x30(%rbp), %rcx movq 0x10(%rbp), %r8 leaq -0x1b0(%rbp), %rax movl $0x30, %esi movl $0x1, %r9d movq %rax, (%rsp) callq 0x328d0 leaq -0x1b0(%rbp), %rdi addq $0x140, %rdi # imm = 0x140 movl $0x40, %esi callq 0x23310 leaq -0x1b0(%rbp), %rdi addq $0x140, %rdi # imm = 0x140 leaq -0x1b0(%rbp), %rsi addq $0x110, %rsi # imm = 0x110 movl $0x30, %edx callq 0x30ea0 leaq -0x1b0(%rbp), %rdi addq $0x140, %rdi # imm = 0x140 leaq -0x1b0(%rbp), %rsi addq $0x140, %rsi # imm = 0x140 leaq 0x322d3(%rip), %rdx # 0x54a90 movabsq $-0x100000001, %rcx # imm = 0xFFFFFFFEFFFFFFFF callq 0x476c0 leaq -0x1b0(%rbp), %rdi addq $0x140, %rdi # imm = 0x140 leaq -0x1b0(%rbp), %rsi addq $0x140, %rsi # imm = 0x140 leaq 0x327b1(%rip), %rdx # 0x54fa0 leaq 0x3229a(%rip), %rcx # 0x54a90 movabsq $-0x100000001, %r8 # imm = 0xFFFFFFFEFFFFFFFF callq 0x47200 cmpl $0x4, 0x18(%rbp) jl 0x22829 leaq -0x1b0(%rbp), %rdi addq $0x140, %rdi # imm = 0x140 movl $0x20, %esi callq 0x23820 cmpq $0x0, %rax jne 0x2282b jmp 0x22876 leaq -0x1b0(%rbp), %rdi callq 0x31c90 leaq -0x1b0(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x31ce0 leaq -0x1d0(%rbp), %rdi leaq -0x1b0(%rbp), %rsi callq 0x31e70 leaq -0x1d0(%rbp), %rax movq %rax, -0x20(%rbp) movq $0x20, -0x28(%rbp) jmp 0x226e9 movq -0x8(%rbp), %rdi leaq -0x1b0(%rbp), %rsi addq $0x140, %rsi # imm = 0x140 movl $0x20, %edx callq 0x30540 leaq -0x1b0(%rbp), %rdi movl $0x180, %esi # imm = 0x180 callq 0x23310 addq $0x1e0, %rsp # imm = 0x1E0 popq %rbp retq nopl (%rax)
keygen: push rbp mov rbp, rsp sub rsp, 1E0h mov eax, [rbp+arg_8] mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, cs:qword_54FD0 mov [rbp+var_1D0], rax mov rax, cs:qword_54FD8 mov [rbp+var_1C8], rax mov rax, cs:qword_54FE0 mov [rbp+var_1C0], rax mov rax, cs:qword_54FE8 mov [rbp+var_1B8], rax cmp [rbp+var_18], 20h ; ' ' jb short loc_22646 cmp [rbp+arg_8], 4 jle short loc_22659 cmp [rbp+var_20], 0 jnz short loc_22659 loc_22646: mov rdi, [rbp+var_8] mov esi, 20h ; ' ' call vec_zero jmp loc_228A3 loc_22659: cmp [rbp+var_30], 0 jnz short loc_2266B xor eax, eax mov [rbp+var_1D8], rax jmp short loc_22676 loc_2266B: mov rax, [rbp+arg_0] mov [rbp+var_1D8], rax loc_22676: mov rax, [rbp+var_1D8] mov [rbp+arg_0], rax cmp [rbp+var_20], 0 jnz short loc_2269B lea rax, [rbp+var_1D0] mov [rbp+var_20], rax mov [rbp+var_28], 14h loc_2269B: cmp [rbp+arg_8], 4 jnz short loc_226E7 lea rdi, [rbp+var_1B0] call sha256_init lea rdi, [rbp+var_1B0] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] call sha256_update lea rdi, [rbp+var_1D0] lea rsi, [rbp+var_1B0] call sha256_final lea rax, [rbp+var_1D0] mov [rbp+var_20], rax mov [rbp+var_28], 20h ; ' ' loc_226E7: jmp short $+2 loc_226E9: lea rdi, [rbp+var_1B0] add rdi, 0F0h mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_10] mov r8, [rbp+var_18] lea rax, [rbp+var_1B0] mov r9d, 1 mov [rsp+1E0h+var_1E0], rax call HKDF_Extract lea rdi, [rbp+var_1B0] add rdi, 110h lea rdx, [rbp+var_1B0] add rdx, 0F0h mov rcx, [rbp+var_30] mov r8, [rbp+arg_0] lea rax, [rbp+var_1B0] mov esi, 30h ; '0' mov r9d, 1 mov [rsp+1E0h+var_1E0], rax call HKDF_Expand lea rdi, [rbp+var_1B0] add rdi, 140h mov esi, 40h ; '@' call vec_zero lea rdi, [rbp+var_1B0] add rdi, 140h lea rsi, [rbp+var_1B0] add rsi, 110h mov edx, 30h ; '0' call limbs_from_be_bytes lea rdi, [rbp+var_1B0] add rdi, 140h lea rsi, [rbp+var_1B0] add rsi, 140h lea rdx, BLS12_381_r mov rcx, 0FFFFFFFEFFFFFFFFh call redc_mont_256 lea rdi, [rbp+var_1B0] add rdi, 140h lea rsi, [rbp+var_1B0] add rsi, 140h lea rdx, BLS12_381_rRR lea rcx, BLS12_381_r mov r8, 0FFFFFFFEFFFFFFFFh call mul_mont_sparse_256 cmp [rbp+arg_8], 4 jl short loc_22829 lea rdi, [rbp+var_1B0] add rdi, 140h mov esi, 20h ; ' ' call vec_is_zero cmp rax, 0 jnz short loc_2282B loc_22829: jmp short loc_22876 loc_2282B: lea rdi, [rbp+var_1B0] call sha256_init lea rdi, [rbp+var_1B0] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] call sha256_update lea rdi, [rbp+var_1D0] lea rsi, [rbp+var_1B0] call sha256_final lea rax, [rbp+var_1D0] mov [rbp+var_20], rax mov [rbp+var_28], 20h ; ' ' jmp loc_226E9 loc_22876: mov rdi, [rbp+var_8] lea rsi, [rbp+var_1B0] add rsi, 140h mov edx, 20h ; ' ' call le_bytes_from_limbs lea rdi, [rbp+var_1B0] mov esi, 180h call vec_zero loc_228A3: add rsp, 1E0h pop rbp retn
long long keygen( long long a1, long long a2, unsigned long long a3, _WORD *a4, long long a5, long long a6, long long a7, int a8) { int v9; // [rsp+8h] [rbp-1D8h] _WORD v10[12]; // [rsp+10h] [rbp-1D0h] BYREF long long v11; // [rsp+28h] [rbp-1B8h] _BYTE v12[240]; // [rsp+30h] [rbp-1B0h] BYREF _BYTE v13[32]; // [rsp+120h] [rbp-C0h] BYREF _BYTE v14[48]; // [rsp+140h] [rbp-A0h] BYREF _BYTE v15[64]; // [rsp+170h] [rbp-70h] BYREF long long v16; // [rsp+1B0h] [rbp-30h] long long v17; // [rsp+1B8h] [rbp-28h] _WORD *v18; // [rsp+1C0h] [rbp-20h] unsigned long long v19; // [rsp+1C8h] [rbp-18h] long long v20; // [rsp+1D0h] [rbp-10h] long long v21; // [rsp+1D8h] [rbp-8h] v21 = a1; v20 = a2; v19 = a3; v18 = a4; v17 = a5; v16 = a6; strcpy((char *)v10, "BLS-SIG-KEYGEN-SALT-"); HIBYTE(v10[10]) = 0; v10[11] = 0; v11 = 0LL; if ( a3 < 0x20 || a8 > 4 && !v18 ) return vec_zero(v21, 32LL); if ( v16 ) v9 = a7; else v9 = 0; if ( !v18 ) { v18 = v10; v17 = 20LL; } if ( a8 != 4 ) goto LABEL_12; do { sha256_init(v12); sha256_update(v12, v18, v17); sha256_final(v10, v12); v18 = v10; v17 = 32LL; LABEL_12: HKDF_Extract((unsigned int)v13, (_DWORD)v18, v17, v20, v19, 1, (long long)v12); HKDF_Expand((unsigned int)v14, 48, (unsigned int)v13, v16, v9, 1, (long long)v12); vec_zero(v15, 64LL); limbs_from_be_bytes(v15, v14, 48LL); redc_mont_256(v15, v15, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); mul_mont_sparse_256(v15, v15, &BLS12_381_rRR, &BLS12_381_r, 0xFFFFFFFEFFFFFFFFLL); } while ( a8 >= 4 && vec_is_zero(v15, 32LL) ); le_bytes_from_limbs(v21, v15, 32LL); return vec_zero(v12, 384LL); }
keygen: PUSH RBP MOV RBP,RSP SUB RSP,0x1e0 MOV EAX,dword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [0x00154fd0] MOV qword ptr [RBP + -0x1d0],RAX MOV RAX,qword ptr [0x00154fd8] MOV qword ptr [RBP + -0x1c8],RAX MOV RAX,qword ptr [0x00154fe0] MOV qword ptr [RBP + -0x1c0],RAX MOV RAX,qword ptr [0x00154fe8] MOV qword ptr [RBP + -0x1b8],RAX CMP qword ptr [RBP + -0x18],0x20 JC 0x00122646 CMP dword ptr [RBP + 0x18],0x4 JLE 0x00122659 CMP qword ptr [RBP + -0x20],0x0 JNZ 0x00122659 LAB_00122646: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x20 CALL 0x00123310 JMP 0x001228a3 LAB_00122659: CMP qword ptr [RBP + -0x30],0x0 JNZ 0x0012266b XOR EAX,EAX MOV qword ptr [RBP + -0x1d8],RAX JMP 0x00122676 LAB_0012266b: MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x1d8],RAX LAB_00122676: MOV RAX,qword ptr [RBP + -0x1d8] MOV qword ptr [RBP + 0x10],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x0012269b LEA RAX,[RBP + -0x1d0] MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x28],0x14 LAB_0012269b: CMP dword ptr [RBP + 0x18],0x4 JNZ 0x001226e7 LEA RDI,[RBP + -0x1b0] CALL 0x00131c90 LEA RDI,[RBP + -0x1b0] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00131ce0 LEA RDI,[RBP + -0x1d0] LEA RSI,[RBP + -0x1b0] CALL 0x00131e70 LEA RAX,[RBP + -0x1d0] MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x28],0x20 LAB_001226e7: JMP 0x001226e9 LAB_001226e9: LEA RDI,[RBP + -0x1b0] ADD RDI,0xf0 MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RBP + -0x18] LEA RAX,[RBP + -0x1b0] MOV R9D,0x1 MOV qword ptr [RSP],RAX CALL 0x00132820 LEA RDI,[RBP + -0x1b0] ADD RDI,0x110 LEA RDX,[RBP + -0x1b0] ADD RDX,0xf0 MOV RCX,qword ptr [RBP + -0x30] MOV R8,qword ptr [RBP + 0x10] LEA RAX,[RBP + -0x1b0] MOV ESI,0x30 MOV R9D,0x1 MOV qword ptr [RSP],RAX CALL 0x001328d0 LEA RDI,[RBP + -0x1b0] ADD RDI,0x140 MOV ESI,0x40 CALL 0x00123310 LEA RDI,[RBP + -0x1b0] ADD RDI,0x140 LEA RSI,[RBP + -0x1b0] ADD RSI,0x110 MOV EDX,0x30 CALL 0x00130ea0 LEA RDI,[RBP + -0x1b0] ADD RDI,0x140 LEA RSI,[RBP + -0x1b0] ADD RSI,0x140 LEA RDX,[0x154a90] MOV RCX,-0x100000001 CALL 0x001476c0 LEA RDI,[RBP + -0x1b0] ADD RDI,0x140 LEA RSI,[RBP + -0x1b0] ADD RSI,0x140 LEA RDX,[0x154fa0] LEA RCX,[0x154a90] MOV R8,-0x100000001 CALL 0x00147200 CMP dword ptr [RBP + 0x18],0x4 JL 0x00122829 LEA RDI,[RBP + -0x1b0] ADD RDI,0x140 MOV ESI,0x20 CALL 0x00123820 CMP RAX,0x0 JNZ 0x0012282b LAB_00122829: JMP 0x00122876 LAB_0012282b: LEA RDI,[RBP + -0x1b0] CALL 0x00131c90 LEA RDI,[RBP + -0x1b0] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00131ce0 LEA RDI,[RBP + -0x1d0] LEA RSI,[RBP + -0x1b0] CALL 0x00131e70 LEA RAX,[RBP + -0x1d0] MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x28],0x20 JMP 0x001226e9 LAB_00122876: MOV RDI,qword ptr [RBP + -0x8] LEA RSI,[RBP + -0x1b0] ADD RSI,0x140 MOV EDX,0x20 CALL 0x00130540 LEA RDI,[RBP + -0x1b0] MOV ESI,0x180 CALL 0x00123310 LAB_001228a3: ADD RSP,0x1e0 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int keygen(EVP_PKEY_CTX *ctx,EVP_PKEY *pkey) { int iVar1; long lVar2; char *in_RCX; ulong in_RDX; int8 in_R8; long in_R9; int8 in_stack_00000008; int in_stack_00000010; int8 local_1e0; char local_1d8 [8]; char local_1d0 [8]; int8 local_1c8; int8 local_1c0; int1 local_1b8 [240]; int1 auStack_c8 [32]; int1 auStack_a8 [48]; int1 auStack_78 [64]; long local_38; int8 local_30; char *local_28; ulong local_20; EVP_PKEY *local_18; EVP_PKEY_CTX *local_10; local_1d8 = (char [8])s_BLS_SIG_KEYGEN_SALT__00154fd0._0_8_; local_1d0 = (char [8])s_BLS_SIG_KEYGEN_SALT__00154fd0._8_8_; local_1c8 = ram0x00154fe0; local_1c0 = DAT_00154fe8; local_18 = pkey; local_10 = ctx; if ((in_RDX < 0x20) || ((4 < in_stack_00000010 && (in_RCX == (char *)0x0)))) { iVar1 = vec_zero(ctx,0x20); } else { if (in_R9 == 0) { local_1e0 = 0; } else { local_1e0 = in_stack_00000008; } local_30 = in_R8; local_28 = in_RCX; if (in_RCX == (char *)0x0) { local_28 = local_1d8; local_30 = 0x14; } local_38 = in_R9; local_20 = in_RDX; if (in_stack_00000010 == 4) { sha256_init(local_1b8); sha256_update(local_1b8,local_28,local_30); sha256_final(local_1d8,local_1b8); local_28 = local_1d8; local_30 = 0x20; } while( true ) { HKDF_Extract(auStack_c8,local_28,local_30,local_18,local_20,1,local_1b8); HKDF_Expand(auStack_a8,0x30,auStack_c8,local_38,local_1e0,1,local_1b8); vec_zero(auStack_78,0x40); limbs_from_be_bytes(auStack_78,auStack_a8,0x30); redc_mont_256(auStack_78,auStack_78,BLS12_381_r,0xfffffffeffffffff); mul_mont_sparse_256(auStack_78,auStack_78,BLS12_381_rRR,BLS12_381_r,0xfffffffeffffffff); if ((in_stack_00000010 < 4) || (lVar2 = vec_is_zero(auStack_78,0x20), lVar2 == 0)) break; sha256_init(local_1b8); sha256_update(local_1b8,local_28,local_30); sha256_final(local_1d8,local_1b8); local_28 = local_1d8; local_30 = 0x20; } le_bytes_from_limbs(local_10,auStack_78,0x20); iVar1 = vec_zero(local_1b8,0x180); } return iVar1; }
31,507
rtree_add_key
eloqsql/storage/myisam/rt_key.c
int rtree_add_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key, uint key_length, uchar *page_buf, my_off_t *new_page) { uint page_size = mi_getint(page_buf); uint nod_flag = mi_test_if_nod(page_buf); DBUG_ENTER("rtree_add_key"); if (page_size + key_length + info->s->base.rec_reflength <= keyinfo->block_length) { /* split won't be necessary */ if (nod_flag) { /* save key */ DBUG_ASSERT(_mi_kpos(nod_flag, key) < info->state->key_file_length); memcpy(rt_PAGE_END(page_buf), key - nod_flag, key_length + nod_flag); page_size += key_length + nod_flag; } else { /* save key */ DBUG_ASSERT(_mi_dpos(info, nod_flag, key + key_length + info->s->base.rec_reflength) < info->state->data_file_length + info->s->base.pack_reclength); memcpy(rt_PAGE_END(page_buf), key, key_length + info->s->base.rec_reflength); page_size += key_length + info->s->base.rec_reflength; } mi_putint(page_buf, page_size, nod_flag); DBUG_RETURN(0); } DBUG_RETURN((rtree_split_page(info, keyinfo, page_buf, key, key_length, new_page) ? -1 : 1)); }
O3
c
rtree_add_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %r8, %rbx movl %ecx, %r14d movq %rdx, %rcx movq %rdi, %r15 movzbl 0x1(%r8), %eax movzbl (%r8), %edi movl %edi, %r12d andl $0x7f, %r12d shll $0x8, %r12d orl %eax, %r12d movq (%r15), %r8 testb %dil, %dil js 0x8b2ff leal (%r12,%r14), %r10d movl 0x178(%r8), %edx addl %edx, %r10d movzwl 0xe(%rsi), %r8d cmpl %r8d, %r10d ja 0x8b317 andl $0x7f, %edi shll $0x8, %edi orq %rax, %rdi addq %rbx, %rdi addl %r14d, %edx movq %rcx, %rsi callq 0x29080 movq (%r15), %rax addl 0x178(%rax), %r14d xorl %eax, %eax jmp 0x8b360 movl 0x178(%r8), %edx leal (%r12,%r14), %r10d addl %edx, %r10d movzwl 0xe(%rsi), %r11d cmpl %r11d, %r10d jbe 0x8b332 movq %r15, %rdi movq %rbx, %rdx movl %r14d, %r8d callq 0x8e268 movl %eax, %ecx xorl %eax, %eax negl %ecx sbbl %eax, %eax orl $0x1, %eax jmp 0x8b36e movl 0x17c(%r8), %esi testq %rsi, %rsi je 0x8b2da andl $0x7f, %edi shll $0x8, %edi orq %rax, %rdi addq %rbx, %rdi subq %rsi, %rcx addl %esi, %r14d movq %rcx, %rsi movq %r14, %rdx callq 0x29080 movl $0x8000, %eax # imm = 0x8000 addl %r12d, %r14d addl %r14d, %eax movb %r14b, 0x1(%rbx) movb %ah, (%rbx) xorl %eax, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
rtree_add_key: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, r8 mov r14d, ecx mov rcx, rdx mov r15, rdi movzx eax, byte ptr [r8+1] movzx edi, byte ptr [r8] mov r12d, edi and r12d, 7Fh shl r12d, 8 or r12d, eax mov r8, [r15] test dil, dil js short loc_8B2FF lea r10d, [r12+r14] mov edx, [r8+178h] add r10d, edx movzx r8d, word ptr [rsi+0Eh] cmp r10d, r8d ja short loc_8B317 loc_8B2DA: and edi, 7Fh shl edi, 8 or rdi, rax add rdi, rbx add edx, r14d mov rsi, rcx call _memcpy mov rax, [r15] add r14d, [rax+178h] xor eax, eax jmp short loc_8B360 loc_8B2FF: mov edx, [r8+178h] lea r10d, [r12+r14] add r10d, edx movzx r11d, word ptr [rsi+0Eh] cmp r10d, r11d jbe short loc_8B332 loc_8B317: mov rdi, r15 mov rdx, rbx mov r8d, r14d call rtree_split_page mov ecx, eax xor eax, eax neg ecx sbb eax, eax or eax, 1 jmp short loc_8B36E loc_8B332: mov esi, [r8+17Ch] test rsi, rsi jz short loc_8B2DA and edi, 7Fh shl edi, 8 or rdi, rax add rdi, rbx sub rcx, rsi add r14d, esi mov rsi, rcx mov rdx, r14 call _memcpy mov eax, 8000h loc_8B360: add r14d, r12d add eax, r14d mov [rbx+1], r14b mov [rbx], ah xor eax, eax loc_8B36E: pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long rtree_add_key(long long *a1, long long a2, long long a3, unsigned int a4, char *a5) { long long v9; // rax char v10; // di int v11; // r12d long long v12; // r8 int v13; // edx long long v14; // r14 __int16 v15; // ax long long v17; // rsi __int16 v18; // r14 v9 = (unsigned __int8)a5[1]; v10 = *a5; v11 = v9 | ((*a5 & 0x7F) << 8); v12 = *a1; if ( v10 >= 0 ) { v13 = *(_DWORD *)(v12 + 376); if ( v13 + v11 + a4 <= *(unsigned __int16 *)(a2 + 14) ) goto LABEL_3; return (unsigned int)rtree_split_page(a1, a2, a5, a3, a4) != 0 ? -1 : 1; } v13 = *(_DWORD *)(v12 + 376); if ( v13 + v11 + a4 > *(unsigned __int16 *)(a2 + 14) ) return (unsigned int)rtree_split_page(a1, a2, a5, a3, a4) != 0 ? -1 : 1; v17 = *(unsigned int *)(v12 + 380); if ( *(_DWORD *)(v12 + 380) ) { v14 = (unsigned int)v17 + a4; memcpy(&a5[v9 | ((unsigned __int8)(v10 & 0x7F) << 8)], a3 - v17, v14); v15 = 0x8000; goto LABEL_8; } LABEL_3: memcpy(&a5[v9 | ((unsigned __int8)(v10 & 0x7F) << 8)], a3, a4 + v13); LODWORD(v14) = *(_DWORD *)(*a1 + 376) + a4; v15 = 0; LABEL_8: v18 = v11 + v14; a5[1] = v18; *a5 = (unsigned __int16)(v18 + v15) >> 8; return 0LL; }
rtree_add_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,R8 MOV R14D,ECX MOV RCX,RDX MOV R15,RDI MOVZX EAX,byte ptr [R8 + 0x1] MOVZX EDI,byte ptr [R8] MOV R12D,EDI AND R12D,0x7f SHL R12D,0x8 OR R12D,EAX MOV R8,qword ptr [R15] TEST DIL,DIL JS 0x0018b2ff LEA R10D,[R12 + R14*0x1] MOV EDX,dword ptr [R8 + 0x178] ADD R10D,EDX MOVZX R8D,word ptr [RSI + 0xe] CMP R10D,R8D JA 0x0018b317 LAB_0018b2da: AND EDI,0x7f SHL EDI,0x8 OR RDI,RAX ADD RDI,RBX ADD EDX,R14D MOV RSI,RCX CALL 0x00129080 MOV RAX,qword ptr [R15] ADD R14D,dword ptr [RAX + 0x178] XOR EAX,EAX JMP 0x0018b360 LAB_0018b2ff: MOV EDX,dword ptr [R8 + 0x178] LEA R10D,[R12 + R14*0x1] ADD R10D,EDX MOVZX R11D,word ptr [RSI + 0xe] CMP R10D,R11D JBE 0x0018b332 LAB_0018b317: MOV RDI,R15 MOV RDX,RBX MOV R8D,R14D CALL 0x0018e268 MOV ECX,EAX XOR EAX,EAX NEG ECX SBB EAX,EAX OR EAX,0x1 JMP 0x0018b36e LAB_0018b332: MOV ESI,dword ptr [R8 + 0x17c] TEST RSI,RSI JZ 0x0018b2da AND EDI,0x7f SHL EDI,0x8 OR RDI,RAX ADD RDI,RBX SUB RCX,RSI ADD R14D,ESI MOV RSI,RCX MOV RDX,R14 CALL 0x00129080 MOV EAX,0x8000 LAB_0018b360: ADD R14D,R12D ADD EAX,R14D MOV byte ptr [RBX + 0x1],R14B MOV byte ptr [RBX],AH XOR EAX,EAX LAB_0018b36e: POP RBX POP R12 POP R14 POP R15 POP RBP RET
uint rtree_add_key(long *param_1,long param_2,void *param_3,int param_4,byte *param_5) { byte bVar1; byte bVar2; uint uVar3; long lVar4; int iVar5; uint uVar6; uint uVar7; bVar1 = param_5[1]; bVar2 = *param_5; uVar6 = (bVar2 & 0x7f) << 8 | (uint)bVar1; lVar4 = *param_1; if ((char)bVar2 < '\0') { iVar5 = *(int *)(lVar4 + 0x178); if ((uint)*(ushort *)(param_2 + 0xe) < uVar6 + param_4 + iVar5) goto LAB_0018b317; uVar3 = *(uint *)(lVar4 + 0x17c); if ((ulong)uVar3 != 0) { uVar7 = param_4 + uVar3; memcpy(param_5 + ((ulong)((bVar2 & 0x7f) << 8) | (ulong)bVar1), (void *)((long)param_3 - (ulong)uVar3),(ulong)uVar7); iVar5 = 0x8000; goto LAB_0018b360; } } else { iVar5 = *(int *)(lVar4 + 0x178); if ((uint)*(ushort *)(param_2 + 0xe) < uVar6 + param_4 + iVar5) { LAB_0018b317: iVar5 = rtree_split_page(param_1,param_2,param_5,param_3,param_4); return -(uint)(iVar5 != 0) | 1; } } memcpy(param_5 + ((ulong)((bVar2 & 0x7f) << 8) | (ulong)bVar1),param_3, (ulong)(uint)(iVar5 + param_4)); uVar7 = param_4 + *(int *)(*param_1 + 0x178); iVar5 = 0; LAB_0018b360: param_5[1] = (byte)(uVar7 + uVar6); *param_5 = (byte)(iVar5 + uVar7 + uVar6 >> 8); return 0; }
31,508
translog_set_lsn_for_files
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_set_lsn_for_files(uint32 from_file, uint32 to_file, LSN lsn, my_bool is_locked) { uint32 file; DBUG_ENTER("translog_set_lsn_for_files"); DBUG_PRINT("enter", ("From: %lu to: %lu lsn: " LSN_FMT " locked: %d", (ulong) from_file, (ulong) to_file, LSN_IN_PARTS(lsn), is_locked)); DBUG_ASSERT(from_file <= to_file); DBUG_ASSERT(from_file > 0); /* we have not file 0 */ /* Checks the current file (not finished yet file) */ if (!is_locked) translog_lock(); if (to_file == (uint32) LSN_FILE_NO(log_descriptor.horizon)) { if (likely(cmp_translog_addr(lsn, log_descriptor.max_lsn) > 0)) log_descriptor.max_lsn= lsn; to_file--; } if (!is_locked) translog_unlock(); /* Checks finished files if they are */ mysql_mutex_lock(&log_descriptor.file_header_lock); for (file= from_file; file <= to_file; file++) { LOGHANDLER_FILE_INFO info; File fd; fd= open_logfile_by_number_no_cache(file); if ((fd < 0) || ((translog_read_file_header(&info, fd) || (cmp_translog_addr(lsn, info.max_lsn) > 0 && translog_max_lsn_to_header(fd, lsn))) | mysql_file_close(fd, MYF(MY_WME)))) { translog_stop_writing(); mysql_mutex_unlock(&log_descriptor.file_header_lock); DBUG_RETURN(1); } } mysql_mutex_unlock(&log_descriptor.file_header_lock); DBUG_RETURN(0); }
O3
c
translog_set_lsn_for_files: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %ecx, %r12d movq %rdx, %rbx movl %esi, %r14d movl %edi, %r15d testb %r12b, %r12b jne 0x49f6e callq 0x43693 cmpl %r14d, 0xbdd887(%rip) # 0xc277fc jne 0x49f8a cmpq %rbx, 0xbdd8c2(%rip) # 0xc27840 jge 0x49f87 movq %rbx, 0xbdd8b9(%rip) # 0xc27840 decl %r14d testb %r12b, %r12b jne 0x49fb6 movq 0xbdd892(%rip), %r12 # 0xc27828 movq 0x1000d0(%r12), %rdi testq %rdi, %rdi jne 0x4a0ff addq $0x100090, %r12 # imm = 0x100090 movq %r12, %rdi callq 0x2a1f0 cmpq $0x0, 0xbdd9f2(%rip) # 0xc279b0 jne 0x4a0e0 leaq 0xbdd9a5(%rip), %rdi # 0xc27970 callq 0x2a230 cmpl %r15d, %r14d jae 0x49ff8 movq 0xbdd9d4(%rip), %rdi # 0xc279b0 testq %rdi, %rdi jne 0x4a0ea leaq 0xbdd984(%rip), %rdi # 0xc27970 callq 0x2a1f0 xorl %eax, %eax jmp 0x4a0ce movl %r15d, %edi callq 0x43476 testl %eax, %eax js 0x4a08f movl %eax, %r12d leaq -0x68(%rbp), %rdi movl %eax, %esi callq 0x43230 movl $0x1, %r13d testb %al, %al jne 0x4a038 xorl %r13d, %r13d cmpq %rbx, -0x68(%rbp) jge 0x4a038 movl %r12d, %edi movq %rbx, %rsi callq 0x49a96 movzbl %al, %r13d leaq 0x3649d9(%rip), %rax # 0x3aea18 movq (%rax), %rax leaq -0xb0(%rbp), %rdi movl %r12d, %esi movl $0x4, %edx callq *0x158(%rax) testq %rax, %rax jne 0x4a07b movl $0x10, %esi movl %r12d, %edi callq 0xbfaf5 orl %r13d, %eax jne 0x4a08f incl %r15d cmpl %r14d, %r15d jbe 0x49ff8 jmp 0x49fd5 movq %rax, %rdi movl %r12d, %esi leaq -0x2c(%rbp), %rdx callq 0x2d9b1 movl -0x2c(%rbp), %eax jmp 0x4a069 xorl %eax, %eax cmpl $0x3, 0x3db908(%rip) # 0x4259a0 setne %al addl %eax, %eax movl %eax, 0x3db8fd(%rip) # 0x4259a0 movb $0x1, 0xbdd9d6(%rip) # 0xc27a80 movl $0x0, 0x3dcb08(%rip) # 0x426bbc movq 0xbdd8f5(%rip), %rdi # 0xc279b0 testq %rdi, %rdi jne 0x4a114 leaq 0xbdd8a9(%rip), %rdi # 0xc27970 callq 0x2a1f0 movb $0x1, %al addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x2d994 jmp 0x49fd0 leaq 0x364927(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x49fe5 leaq 0x364912(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x49fa7 leaq 0x3648fd(%rip), %rax # 0x3aea18 movq (%rax), %rax callq *0x160(%rax) jmp 0x4a0c0
translog_set_lsn_for_files: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r12d, ecx mov rbx, rdx mov r14d, esi mov r15d, edi test r12b, r12b jnz short loc_49F6E call translog_lock loc_49F6E: cmp dword ptr cs:qword_C277F8+4, r14d jnz short loc_49F8A cmp cs:qword_C27840, rbx jge short loc_49F87 mov cs:qword_C27840, rbx loc_49F87: dec r14d loc_49F8A: test r12b, r12b jnz short loc_49FB6 mov r12, qword ptr cs:xmmword_C27820+8 mov rdi, [r12+1000D0h] test rdi, rdi jnz loc_4A0FF loc_49FA7: add r12, 100090h mov rdi, r12 call _pthread_mutex_unlock loc_49FB6: cmp cs:qword_C279B0, 0 jnz loc_4A0E0 lea rdi, unk_C27970 call _pthread_mutex_lock loc_49FD0: cmp r14d, r15d jnb short loc_49FF8 loc_49FD5: mov rdi, cs:qword_C279B0 test rdi, rdi jnz loc_4A0EA loc_49FE5: lea rdi, unk_C27970 call _pthread_mutex_unlock xor eax, eax jmp loc_4A0CE loc_49FF8: mov edi, r15d call open_logfile_by_number_no_cache test eax, eax js loc_4A08F mov r12d, eax lea rdi, [rbp+var_68] mov esi, eax call translog_read_file_header mov r13d, 1 test al, al jnz short loc_4A038 xor r13d, r13d cmp [rbp+var_68], rbx jge short loc_4A038 mov edi, r12d mov rsi, rbx call translog_max_lsn_to_header movzx r13d, al loc_4A038: lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_B0] mov esi, r12d mov edx, 4 call qword ptr [rax+158h] test rax, rax jnz short loc_4A07B mov esi, 10h mov edi, r12d call my_close loc_4A069: or eax, r13d jnz short loc_4A08F inc r15d cmp r15d, r14d jbe short loc_49FF8 jmp loc_49FD5 loc_4A07B: mov rdi, rax mov esi, r12d lea rdx, [rbp+var_2C] call translog_set_lsn_for_files_cold_2 mov eax, [rbp+var_2C] jmp short loc_4A069 loc_4A08F: xor eax, eax cmp cs:translog_status, 3 setnz al add eax, eax mov cs:translog_status, eax mov byte ptr cs:word_C27A80, 1 mov cs:dword_426BBC, 0 mov rdi, cs:qword_C279B0 test rdi, rdi jnz short loc_4A114 loc_4A0C0: lea rdi, unk_C27970 call _pthread_mutex_unlock mov al, 1 loc_4A0CE: add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_4A0E0: call translog_set_lsn_for_files_cold_1 jmp loc_49FD0 loc_4A0EA: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_49FE5 loc_4A0FF: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp loc_49FA7 loc_4A114: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4A0C0
char translog_set_lsn_for_files(unsigned int a1, long long a2, long long a3, char a4) { unsigned int v6; // r14d unsigned int v7; // r15d long long v8; // r12 long long v9; // rdx long long v10; // rcx int v11; // r8d int v12; // r9d int v14; // eax unsigned int v15; // r12d BOOL v16; // r13d long long v17; // rax unsigned int v18; // eax _BYTE v19[72]; // [rsp+0h] [rbp-B0h] BYREF __m128 v20[3]; // [rsp+48h] [rbp-68h] BYREF unsigned int v21[11]; // [rsp+84h] [rbp-2Ch] BYREF v6 = a2; v7 = a1; if ( !a4 ) translog_lock(); if ( HIDWORD(qword_C277F8) == (_DWORD)a2 ) { if ( qword_C27840 < a3 ) qword_C27840 = a3; v6 = a2 - 1; } if ( !a4 ) { v8 = *((_QWORD *)&xmmword_C27820 + 1); if ( *(_QWORD *)(*((_QWORD *)&xmmword_C27820 + 1) + 1048784LL) ) PSI_server[44](); pthread_mutex_unlock(v8 + 1048720); } if ( qword_C279B0 ) translog_set_lsn_for_files_cold_1(); else pthread_mutex_lock(&unk_C27970); if ( v6 >= a1 ) { while ( 1 ) { v14 = open_logfile_by_number_no_cache(v7, a2, v9, v10, v11, v12); if ( v14 < 0 ) break; v15 = v14; v16 = 1; if ( !translog_read_file_header(v20, (unsigned int)v14) ) { v16 = 0; if ( v20[0].m128_i64[0] < a3 ) v16 = translog_max_lsn_to_header(v15, a3); } v17 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v19, v15, 4LL); if ( v17 ) { a2 = v15; translog_set_lsn_for_files_cold_2(v17, v15, v21); v18 = v21[0]; } else { a2 = 16LL; v18 = my_close(v15, 16LL); } if ( v16 | v18 ) break; if ( ++v7 > v6 ) goto LABEL_14; } translog_status = 2 * (translog_status != 3); LOBYTE(word_C27A80) = 1; dword_426BBC = 0; if ( qword_C279B0 ) PSI_server[44](); pthread_mutex_unlock(&unk_C27970); return 1; } else { LABEL_14: if ( qword_C279B0 ) PSI_server[44](); pthread_mutex_unlock(&unk_C27970); return 0; } }
translog_set_lsn_for_files: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R12D,ECX MOV RBX,RDX MOV R14D,ESI MOV R15D,EDI TEST R12B,R12B JNZ 0x00149f6e CALL 0x00143693 LAB_00149f6e: CMP dword ptr [0x00d277fc],R14D JNZ 0x00149f8a CMP qword ptr [0x00d27840],RBX JGE 0x00149f87 MOV qword ptr [0x00d27840],RBX LAB_00149f87: DEC R14D LAB_00149f8a: TEST R12B,R12B JNZ 0x00149fb6 MOV R12,qword ptr [0x00d27828] MOV RDI,qword ptr [R12 + 0x1000d0] TEST RDI,RDI JNZ 0x0014a0ff LAB_00149fa7: ADD R12,0x100090 MOV RDI,R12 CALL 0x0012a1f0 LAB_00149fb6: CMP qword ptr [0x00d279b0],0x0 JNZ 0x0014a0e0 LEA RDI,[0xd27970] CALL 0x0012a230 LAB_00149fd0: CMP R14D,R15D JNC 0x00149ff8 LAB_00149fd5: MOV RDI,qword ptr [0x00d279b0] TEST RDI,RDI JNZ 0x0014a0ea LAB_00149fe5: LEA RDI,[0xd27970] CALL 0x0012a1f0 XOR EAX,EAX JMP 0x0014a0ce LAB_00149ff8: MOV EDI,R15D CALL 0x00143476 TEST EAX,EAX JS 0x0014a08f MOV R12D,EAX LEA RDI,[RBP + -0x68] MOV ESI,EAX CALL 0x00143230 MOV R13D,0x1 TEST AL,AL JNZ 0x0014a038 XOR R13D,R13D CMP qword ptr [RBP + -0x68],RBX JGE 0x0014a038 MOV EDI,R12D MOV RSI,RBX CALL 0x00149a96 MOVZX R13D,AL LAB_0014a038: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0xb0] MOV ESI,R12D MOV EDX,0x4 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0014a07b MOV ESI,0x10 MOV EDI,R12D CALL 0x001bfaf5 LAB_0014a069: OR EAX,R13D JNZ 0x0014a08f INC R15D CMP R15D,R14D JBE 0x00149ff8 JMP 0x00149fd5 LAB_0014a07b: MOV RDI,RAX MOV ESI,R12D LEA RDX,[RBP + -0x2c] CALL 0x0012d9b1 MOV EAX,dword ptr [RBP + -0x2c] JMP 0x0014a069 LAB_0014a08f: XOR EAX,EAX CMP dword ptr [0x005259a0],0x3 SETNZ AL ADD EAX,EAX MOV dword ptr [0x005259a0],EAX MOV byte ptr [0x00d27a80],0x1 MOV dword ptr [0x00526bbc],0x0 MOV RDI,qword ptr [0x00d279b0] TEST RDI,RDI JNZ 0x0014a114 LAB_0014a0c0: LEA RDI,[0xd27970] CALL 0x0012a1f0 MOV AL,0x1 LAB_0014a0ce: ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0014a0e0: CALL 0x0012d994 JMP 0x00149fd0 LAB_0014a0ea: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00149fe5 LAB_0014a0ff: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x00149fa7 LAB_0014a114: LEA RAX,[0x4aea18] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014a0c0
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ int8 translog_set_lsn_for_files(uint param_1,uint param_2,long param_3,char param_4) { char cVar1; char cVar2; int iVar3; long lVar4; int4 extraout_var; int1 local_b8 [72]; long local_70 [7]; int local_34; if (param_4 == '\0') { translog_lock(); } lVar4 = DAT_00d27828; if (DAT_00d277f8._4_4_ == param_2) { if (_DAT_00d27840 < param_3) { _DAT_00d27840 = param_3; } param_2 = param_2 - 1; } if (param_4 == '\0') { if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00d27828) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar4)); } if (_DAT_00d279b0 == 0) { pthread_mutex_lock((pthread_mutex_t *)&DAT_00d27970); } else { translog_set_lsn_for_files_cold_1(); } if (param_1 <= param_2) { do { iVar3 = open_logfile_by_number_no_cache(param_1); if (iVar3 < 0) { LAB_0014a08f: translog_status = (uint)(translog_status != 3) * 2; DAT_00d27a80 = 1; _DAT_00526bbc = 0; if (_DAT_00d279b0 != 0) { (**(code **)(PSI_server + 0x160))(); } iVar3 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d27970); return CONCAT71((int7)(CONCAT44(extraout_var,iVar3) >> 8),1); } cVar1 = translog_read_file_header(local_70,iVar3); cVar2 = '\x01'; if ((cVar1 == '\0') && (cVar2 = '\0', local_70[0] < param_3)) { cVar2 = translog_max_lsn_to_header(iVar3,param_3); } lVar4 = (**(code **)(PSI_server + 0x158))(local_b8,iVar3,4); if (lVar4 == 0) { iVar3 = my_close(iVar3,0x10); } else { translog_set_lsn_for_files_cold_2(lVar4,iVar3,&local_34); iVar3 = local_34; } if (iVar3 != 0 || cVar2 != '\0') goto LAB_0014a08f; param_1 = param_1 + 1; } while (param_1 <= param_2); } if (_DAT_00d279b0 != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)&DAT_00d27970); return 0; }
31,509
my_coll_rule_parse
eloqsql/strings/ctype-uca.c
static int my_coll_rule_parse(MY_COLL_RULES *rules, const char *str, const char *str_end) { MY_COLL_RULE_PARSER p; my_coll_parser_init(&p, rules, str, str_end); if (!my_coll_parser_exec(&p)) { my_coll_lexem_print_error(my_coll_parser_curr(&p), rules->loader->error, sizeof(rules->loader->error) - 1, p.errstr); return 1; } return 0; }
O0
c
my_coll_rule_parse: pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x190(%rbp) movq %rsi, -0x198(%rbp) movq %rdx, -0x1a0(%rbp) movq -0x190(%rbp), %rsi movq -0x198(%rbp), %rdx movq -0x1a0(%rbp), %rcx leaq -0x180(%rbp), %rdi callq 0x5cb00 leaq -0x180(%rbp), %rdi callq 0x5cbb0 cmpl $0x0, %eax jne 0x5c7ad leaq -0x180(%rbp), %rdi callq 0x5cd30 movq %rax, %rdi movq -0x190(%rbp), %rax movq 0x28(%rax), %rsi leaq -0x180(%rbp), %rcx addq $0xf8, %rcx movl $0x7f, %edx callq 0x5cc20 movl $0x1, -0x184(%rbp) jmp 0x5c7b7 movl $0x0, -0x184(%rbp) movl -0x184(%rbp), %eax movl %eax, -0x1a4(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x5c7e4 movl -0x1a4(%rbp), %eax addq $0x1b0, %rsp # imm = 0x1B0 popq %rbp retq callq 0x242c0 nopl (%rax)
my_coll_rule_parse: push rbp mov rbp, rsp sub rsp, 1B0h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_190], rdi mov [rbp+var_198], rsi mov [rbp+var_1A0], rdx mov rsi, [rbp+var_190] mov rdx, [rbp+var_198] mov rcx, [rbp+var_1A0] lea rdi, [rbp+var_180] call my_coll_parser_init lea rdi, [rbp+var_180] call my_coll_parser_exec cmp eax, 0 jnz short loc_5C7AD lea rdi, [rbp+var_180] call my_coll_parser_curr mov rdi, rax mov rax, [rbp+var_190] mov rsi, [rax+28h] lea rcx, [rbp+var_180] add rcx, 0F8h mov edx, 7Fh call my_coll_lexem_print_error mov [rbp+var_184], 1 jmp short loc_5C7B7 loc_5C7AD: mov [rbp+var_184], 0 loc_5C7B7: mov eax, [rbp+var_184] mov [rbp+var_1A4], eax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_5C7E4 mov eax, [rbp+var_1A4] add rsp, 1B0h pop rbp retn loc_5C7E4: call ___stack_chk_fail
long long my_coll_rule_parse(long long a1, long long a2, long long a3) { long long v3; // rax _BYTE v6[248]; // [rsp+30h] [rbp-180h] BYREF _QWORD v7[17]; // [rsp+128h] [rbp-88h] BYREF v7[16] = __readfsqword(0x28u); my_coll_parser_init(v6, a1, a2, a3); if ( (unsigned int)my_coll_parser_exec(v6) ) { return 0; } else { v3 = my_coll_parser_curr(v6); my_coll_lexem_print_error(v3, *(_QWORD *)(a1 + 40), 127LL, v7); return 1; } }
my_coll_rule_parse: PUSH RBP MOV RBP,RSP SUB RSP,0x1b0 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x190],RDI MOV qword ptr [RBP + -0x198],RSI MOV qword ptr [RBP + -0x1a0],RDX MOV RSI,qword ptr [RBP + -0x190] MOV RDX,qword ptr [RBP + -0x198] MOV RCX,qword ptr [RBP + -0x1a0] LEA RDI,[RBP + -0x180] CALL 0x0015cb00 LEA RDI,[RBP + -0x180] CALL 0x0015cbb0 CMP EAX,0x0 JNZ 0x0015c7ad LEA RDI,[RBP + -0x180] CALL 0x0015cd30 MOV RDI,RAX MOV RAX,qword ptr [RBP + -0x190] MOV RSI,qword ptr [RAX + 0x28] LEA RCX,[RBP + -0x180] ADD RCX,0xf8 MOV EDX,0x7f CALL 0x0015cc20 MOV dword ptr [RBP + -0x184],0x1 JMP 0x0015c7b7 LAB_0015c7ad: MOV dword ptr [RBP + -0x184],0x0 LAB_0015c7b7: MOV EAX,dword ptr [RBP + -0x184] MOV dword ptr [RBP + -0x1a4],EAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0015c7e4 MOV EAX,dword ptr [RBP + -0x1a4] ADD RSP,0x1b0 POP RBP RET LAB_0015c7e4: CALL 0x001242c0
bool my_coll_rule_parse(long param_1,int8 param_2,int8 param_3) { int iVar1; int8 uVar2; long in_FS_OFFSET; int1 local_188 [248]; int1 auStack_90 [128]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); my_coll_parser_init(local_188,param_1,param_2,param_3); iVar1 = my_coll_parser_exec(local_188); if (iVar1 == 0) { uVar2 = my_coll_parser_curr(local_188); my_coll_lexem_print_error(uVar2,*(int8 *)(param_1 + 0x28),0x7f,auStack_90); } if (*(long *)(in_FS_OFFSET + 0x28) != local_10) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return iVar1 == 0; }
31,510
write_hook_for_undo_bulk_insert
eloqsql/storage/maria/ma_blockrec.c
my_bool write_hook_for_undo_bulk_insert(enum translog_record_type type __attribute__ ((unused)), TRN *trn, MARIA_HA *tbl_info, LSN *lsn, void *hook_arg) { /* We are going to call maria_delete_all_rows(), but without logging and syncing, as an optimization (if we crash before commit, the UNDO will empty; if we crash after commit, we have flushed and forced the files). Status still needs to be reset under log mutex, in case of a concurrent checkpoint. */ _ma_reset_status(tbl_info); return write_hook_for_undo(type, trn, tbl_info, lsn, hook_arg); }
O0
c
write_hook_for_undo_bulk_insert: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x18(%rbp), %rdi callq 0x765a0 movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movq -0x28(%rbp), %r8 callq 0x59ca0 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
write_hook_for_undo_bulk_insert: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rdi, [rbp+var_18] call _ma_reset_status mov edi, [rbp+var_4] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r8, [rbp+var_28] call write_hook_for_undo add rsp, 30h pop rbp retn
long long write_hook_for_undo_bulk_insert(unsigned int a1, long long a2, long long a3, _QWORD *a4) { ma_reset_status(a3); return write_hook_for_undo(a1, a2, a3, a4); }
write_hook_for_undo_bulk_insert: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RDI,qword ptr [RBP + -0x18] CALL 0x001765a0 MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x28] CALL 0x00159ca0 ADD RSP,0x30 POP RBP RET
void write_hook_for_undo_bulk_insert (int4 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { _ma_reset_status(param_3); write_hook_for_undo(param_1,param_2,param_3,param_4,param_5); return; }
31,511
ma_ft_make_key
eloqsql/storage/maria/ma_ft_update.c
MARIA_KEY *_ma_ft_make_key(MARIA_HA *info, MARIA_KEY *key, uint keynr, uchar *keybuf, FT_WORD *wptr, my_off_t filepos) { uchar buf[HA_FT_MAXBYTELEN+16]; float weight=(float) ((filepos==HA_OFFSET_ERROR) ? 0 : wptr->weight); DBUG_ENTER("_ma_ft_make_key"); mi_float4store(buf,weight); int2store(buf+HA_FT_WLEN,wptr->len); memcpy(buf+HA_FT_WLEN+2,wptr->pos,wptr->len); /* Can't be spatial so it's ok to call _ma_make_key directly here */ DBUG_RETURN(_ma_make_key(info, key, keynr, keybuf, buf, filepos, 0)); }
O3
c
ma_ft_make_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %r9, %rbx movq %rcx, %r14 movl %edx, %r15d movq %rsi, %r12 movq %rdi, %r13 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) cmpq $-0x1, %r9 je 0x6012b cvtsd2ss 0x10(%r8), %xmm0 movd %xmm0, %eax jmp 0x6012d xorl %eax, %eax bswapl %eax leaq -0x13a(%rbp), %rdi movl %eax, -0x6(%rdi) movl 0x8(%r8), %edx movw %dx, -0x2(%rdi) movq (%r8), %rsi movl $0x108, %ecx # imm = 0x108 callq 0x29420 movq $0x0, (%rsp) leaq -0x140(%rbp), %r8 movq %r13, %rdi movq %r12, %rsi movl %r15d, %edx movq %r14, %rcx movq %rbx, %r9 callq 0x41703 movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x60192 addq $0x128, %rsp # imm = 0x128 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29260
_ma_ft_make_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 128h mov rbx, r9 mov r14, rcx mov r15d, edx mov r12, rsi mov r13, rdi mov rax, fs:28h mov [rbp+var_30], rax cmp r9, 0FFFFFFFFFFFFFFFFh jz short loc_6012B cvtsd2ss xmm0, qword ptr [r8+10h] movd eax, xmm0 jmp short loc_6012D loc_6012B: xor eax, eax loc_6012D: bswap eax lea rdi, [rbp+var_13A] mov [rdi-6], eax mov edx, [r8+8] mov [rdi-2], dx mov rsi, [r8] mov ecx, 108h call ___memcpy_chk mov [rsp+150h+var_150], 0 lea r8, [rbp+var_140] mov rdi, r13 mov rsi, r12 mov edx, r15d mov rcx, r14 mov r9, rbx call _ma_make_key mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_60192 add rsp, 128h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_60192: call ___stack_chk_fail
long long ma_ft_make_key( _DWORD *a1, long long a2, unsigned int a3, char *a4, long long a5, long long a6, __m128i a7) { unsigned int v10; // eax long long v11; // rdx unsigned __int32 v13; // [rsp+10h] [rbp-140h] BYREF __int16 v14; // [rsp+14h] [rbp-13Ch] _BYTE v15[266]; // [rsp+16h] [rbp-13Ah] BYREF unsigned long long v16; // [rsp+120h] [rbp-30h] v16 = __readfsqword(0x28u); if ( a6 == -1 ) { v10 = 0; } else { *(float *)a7.m128i_i32 = *(double *)(a5 + 16); v10 = _mm_cvtsi128_si32(a7); } v13 = _byteswap_ulong(v10); v11 = *(unsigned int *)(a5 + 8); v14 = *(_DWORD *)(a5 + 8); __memcpy_chk(v15, *(_QWORD *)a5, v11, 264LL); return ma_make_key(a1, a2, a3, a4, (long long)&v13, a6, 0LL); }
_ma_ft_make_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x128 MOV RBX,R9 MOV R14,RCX MOV R15D,EDX MOV R12,RSI MOV R13,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX CMP R9,-0x1 JZ 0x0016012b CVTSD2SS XMM0,qword ptr [R8 + 0x10] MOVD EAX,XMM0 JMP 0x0016012d LAB_0016012b: XOR EAX,EAX LAB_0016012d: BSWAP EAX LEA RDI,[RBP + -0x13a] MOV dword ptr [RDI + -0x6],EAX MOV EDX,dword ptr [R8 + 0x8] MOV word ptr [RDI + -0x2],DX MOV RSI,qword ptr [R8] MOV ECX,0x108 CALL 0x00129420 MOV qword ptr [RSP],0x0 LEA R8,[RBP + -0x140] MOV RDI,R13 MOV RSI,R12 MOV EDX,R15D MOV RCX,R14 MOV R9,RBX CALL 0x00141703 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x00160192 ADD RSP,0x128 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00160192: CALL 0x00129260
void _ma_ft_make_key(int8 param_1,int8 param_2,int4 param_3,int8 param_4, int8 *param_5,long param_6) { long in_FS_OFFSET; float fVar1; uint local_148; int2 local_144; int1 local_142 [266]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (param_6 == -1) { fVar1 = 0.0; } else { fVar1 = (float)(double)param_5[2]; } local_148 = (uint)fVar1 >> 0x18 | ((uint)fVar1 & 0xff0000) >> 8 | ((uint)fVar1 & 0xff00) << 8 | (int)fVar1 << 0x18; local_144 = (int2)*(int4 *)(param_5 + 1); __memcpy_chk(local_142,*param_5,*(int4 *)(param_5 + 1),0x108); _ma_make_key(param_1,param_2,param_3,param_4,&local_148,param_6,0); if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,512
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& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O3
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x40, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0xcff01 movq %rsi, %r15 movq 0x8(%r14), %r12 movq (%r12), %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx je 0xcfeeb movq %rbx, %rdi movq %r15, %rsi callq 0x1d2a0 testl %eax, %eax je 0xcfee0 addq $0x30, %rbx movq 0x8(%r12), %rax cmpq %rax, %rbx jne 0xcfec1 jmp 0xcfee3 movq %rbx, %rax movq 0x8(%r14), %rcx movq 0x8(%rcx), %rbx cmpq %rbx, %rax je 0xcff5f addq $0x20, %rax addq $0x40, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl $0x20, %edi callq 0x1d5b0 movq %rax, %rbx movq %r14, %rdi callq 0x8fb52 movq %rsp, %rdx movq %rax, (%rdx) leaq 0x465e6(%rip), %rsi # 0x116509 leaq 0x20(%rsp), %rdi callq 0xcedcd movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0xaa7e2 xorl %ebp, %ebp leaq 0x8424a(%rip), %rsi # 0x154198 leaq -0x440f9(%rip), %rdx # 0x8be5c movq %rbx, %rdi callq 0x1e5b0 jmp 0xcffd8 movl $0x20, %edi callq 0x1d5b0 movq %rax, %rbx leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq %r15, %rdi callq 0x1d4f0 leaq (%rax,%r15), %rdx movq %rsp, %rdi movq %r15, %rsi callq 0x26926 leaq 0x465a5(%rip), %rsi # 0x116539 leaq 0x465a4(%rip), %rcx # 0x11653f leaq 0x20(%rsp), %rdi movq %rsp, %rdx callq 0xcf3aa movb $0x1, %bpl leaq 0x20(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0xcf722 xorl %ebp, %ebp leaq 0x8414f(%rip), %rsi # 0x154118 leaq -0x44174(%rip), %rdx # 0x8be5c movq %rbx, %rdi callq 0x1e5b0 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xcfff6 movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 movq (%rsp), %rdi cmpq %r12, %rdi je 0xd0041 movq 0x10(%rsp), %rsi jmp 0xd0039 movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0xd004b movq 0x10(%rsp), %rsi incq %rsi callq 0x1dc50 jmp 0xd004b jmp 0xd0048 movq %rax, %r14 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xd0041 movq 0x30(%rsp), %rsi incq %rsi callq 0x1dc50 testb %bpl, %bpl jne 0xd004b jmp 0xd0053 movq %rax, %r14 movq %rbx, %rdi callq 0x1d8c0 movq %r14, %rdi callq 0x1e660 nop
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push r12; int push rbx; char sub rsp, 40h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_CFF01 mov r15, rsi mov r12, [r14+8] mov rbx, [r12] mov rax, [r12+8] cmp rbx, rax jz short loc_CFEEB loc_CFEC1: mov rdi, rbx mov rsi, r15 call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) test eax, eax jz short loc_CFEE0 add rbx, 30h ; '0' mov rax, [r12+8] cmp rbx, rax jnz short loc_CFEC1 jmp short loc_CFEE3 loc_CFEE0: mov rax, rbx loc_CFEE3: mov rcx, [r14+8] mov rbx, [rcx+8] loc_CFEEB: cmp rax, rbx jz short loc_CFF5F add rax, 20h ; ' ' add rsp, 40h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_CFF01: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) mov rdx, rsp mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_48] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_CFFD8 loc_CFF5F: mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov rbx, rax lea r12, [rsp+68h+var_58] mov [r12-10h], r12 mov rdi, r15 call _strlen lea rdx, [rax+r15] mov rdi, rsp mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_48] mov rdx, rsp call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_48] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_CFFD8: mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_CFFF6 mov rsi, [rsp+68h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CFFF6: mov rdi, [rsp+68h+var_68] cmp rdi, r12 jz short loc_D0041 mov rsi, [rsp+68h+var_58] jmp short loc_D0039 mov r14, rax mov rdi, [rsp+68h+var_68]; void * cmp rdi, r12 jz short loc_D004B mov rsi, [rsp+68h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_D004B jmp short loc_D0048 mov r14, rax lea rax, [rsp+68h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_D0041 mov rsi, [rsp+68h+var_38] loc_D0039: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D0041: test bpl, bpl jnz short loc_D004B jmp short loc_D0053 loc_D0048: mov r14, rax loc_D004B: mov rdi, rbx; void * call ___cxa_free_exception loc_D0053: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, _BYTE *a2) { long long *v2; // r12 long long v3; // rbx long long v4; // rax nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx long long v8; // rax void *v9[2]; // [rsp+0h] [rbp-68h] BYREF long long v10; // [rsp+10h] [rbp-58h] BYREF _QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = (void *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>( (long long)v11, (long long)"cannot use at() with ", v9); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, v11); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = *(long long **)(a1 + 8); v3 = *v2; v4 = v2[1]; if ( *v2 != v4 ) { while ( (unsigned int)std::string::compare(v3, a2) ) { v3 += 48LL; v4 = v2[1]; if ( v3 == v4 ) goto LABEL_7; } v4 = v3; LABEL_7: v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL); } if ( v4 == v3 ) { v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); v9[0] = &v10; v8 = strlen(a2); std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( (long long)v11, (long long)"key '", v9, (long long)"' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v7, 403, v11); __cxa_throw( v7, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v4 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x40 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x001cff01 MOV R15,RSI MOV R12,qword ptr [R14 + 0x8] MOV RBX,qword ptr [R12] MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JZ 0x001cfeeb LAB_001cfec1: MOV RDI,RBX MOV RSI,R15 CALL 0x0011d2a0 TEST EAX,EAX JZ 0x001cfee0 ADD RBX,0x30 MOV RAX,qword ptr [R12 + 0x8] CMP RBX,RAX JNZ 0x001cfec1 JMP 0x001cfee3 LAB_001cfee0: MOV RAX,RBX LAB_001cfee3: MOV RCX,qword ptr [R14 + 0x8] MOV RBX,qword ptr [RCX + 0x8] LAB_001cfeeb: CMP RAX,RBX JZ 0x001cff5f ADD RAX,0x20 ADD RSP,0x40 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_001cff01: MOV EDI,0x20 CALL 0x0011d5b0 MOV RBX,RAX MOV RDI,R14 CALL 0x0018fb52 MOV RDX,RSP MOV qword ptr [RDX],RAX LAB_001cff1c: LEA RSI,[0x216509] LEA RDI,[RSP + 0x20] CALL 0x001cedcd MOV BPL,0x1 LAB_001cff30: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x001aa7e2 XOR EBP,EBP LEA RSI,[0x254198] LEA RDX,[0x18be5c] MOV RDI,RBX CALL 0x0011e5b0 LAB_001cff5f: MOV EDI,0x20 CALL 0x0011d5b0 MOV RBX,RAX LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RDI,R15 CALL 0x0011d4f0 LEA RDX,[RAX + R15*0x1] LAB_001cff82: MOV RDI,RSP MOV RSI,R15 CALL 0x00126926 LAB_001cff8d: LEA RSI,[0x216539] LEA RCX,[0x21653f] LEA RDI,[RSP + 0x20] MOV RDX,RSP CALL 0x001cf3aa MOV BPL,0x1 LAB_001cffab: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x001cf722 XOR EBP,EBP LEA RSI,[0x254118] LEA RDX,[0x18be5c] MOV RDI,RBX CALL 0x0011e5b0
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA8_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long *plVar1; int iVar2; char *pcVar3; int8 uVar4; size_t sVar5; char *pcVar6; char *local_68 [2]; char local_58 [16]; detail local_48 [32]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 001cff1c to 001cff2c has its CatchHandler @ 001d0048 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_48,"cannot use at() with ",local_68); /* try { // try from 001cff30 to 001cff5c has its CatchHandler @ 001d0023 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x130,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } plVar1 = *(long **)(param_1 + 8); pcVar6 = (char *)*plVar1; pcVar3 = (char *)plVar1[1]; if (pcVar6 != pcVar3) { do { pcVar3 = pcVar6; iVar2 = std::__cxx11::string::compare(pcVar3); if (iVar2 == 0) break; pcVar6 = pcVar3 + 0x30; pcVar3 = (char *)plVar1[1]; } while (pcVar6 != pcVar3); pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8); } if (pcVar3 == pcVar6) { uVar4 = __cxa_allocate_exception(0x20); local_68[0] = local_58; sVar5 = strlen(param_2); /* try { // try from 001cff82 to 001cff8c has its CatchHandler @ 001d0021 */ std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5); /* try { // try from 001cff8d to 001cffa7 has its CatchHandler @ 001d0006 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_48,"key \'",(string *)local_68,"\' not found"); /* try { // try from 001cffab to 001cffd7 has its CatchHandler @ 001cffd8 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar4,0x193,local_48,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return pcVar3 + 0x20; }
31,513
crypto_sign_ed25519_ref10_fe_neg
eloqsql/plugin/auth_ed25519/ref10/fe_neg.c
void fe_neg(fe h,const fe f) { crypto_int32 f0 = f[0]; crypto_int32 f1 = f[1]; crypto_int32 f2 = f[2]; crypto_int32 f3 = f[3]; crypto_int32 f4 = f[4]; crypto_int32 f5 = f[5]; crypto_int32 f6 = f[6]; crypto_int32 f7 = f[7]; crypto_int32 f8 = f[8]; crypto_int32 f9 = f[9]; crypto_int32 h0 = -f0; crypto_int32 h1 = -f1; crypto_int32 h2 = -f2; crypto_int32 h3 = -f3; crypto_int32 h4 = -f4; crypto_int32 h5 = -f5; crypto_int32 h6 = -f6; crypto_int32 h7 = -f7; crypto_int32 h8 = -f8; crypto_int32 h9 = -f9; h[0] = h0; h[1] = h1; h[2] = h2; h[3] = h3; h[4] = h4; h[5] = h5; h[6] = h6; h[7] = h7; h[8] = h8; h[9] = h9; }
O0
c
crypto_sign_ed25519_ref10_fe_neg: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax movl %eax, -0x14(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x18(%rbp) movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0x1c(%rbp) movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movl %eax, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x10(%rax), %eax movl %eax, -0x24(%rbp) movq -0x10(%rbp), %rax movl 0x14(%rax), %eax movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rax movl 0x18(%rax), %eax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, -0x30(%rbp) movq -0x10(%rbp), %rax movl 0x20(%rax), %eax movl %eax, -0x34(%rbp) movq -0x10(%rbp), %rax movl 0x24(%rax), %eax movl %eax, -0x38(%rbp) xorl %eax, %eax subl -0x14(%rbp), %eax movl %eax, -0x3c(%rbp) xorl %eax, %eax subl -0x18(%rbp), %eax movl %eax, -0x40(%rbp) xorl %eax, %eax subl -0x1c(%rbp), %eax movl %eax, -0x44(%rbp) xorl %eax, %eax subl -0x20(%rbp), %eax movl %eax, -0x48(%rbp) xorl %eax, %eax subl -0x24(%rbp), %eax movl %eax, -0x4c(%rbp) xorl %eax, %eax subl -0x28(%rbp), %eax movl %eax, -0x50(%rbp) xorl %eax, %eax subl -0x2c(%rbp), %eax movl %eax, -0x54(%rbp) xorl %eax, %eax subl -0x30(%rbp), %eax movl %eax, -0x58(%rbp) xorl %eax, %eax subl -0x34(%rbp), %eax movl %eax, -0x5c(%rbp) xorl %eax, %eax subl -0x38(%rbp), %eax movl %eax, -0x60(%rbp) movl -0x3c(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, (%rax) movl -0x40(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x4(%rax) movl -0x44(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x8(%rax) movl -0x48(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xc(%rax) movl -0x4c(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x10(%rax) movl -0x50(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x14(%rax) movl -0x54(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x18(%rax) movl -0x58(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x1c(%rax) movl -0x5c(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x20(%rax) movl -0x60(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x24(%rax) popq %rbp retq nopw %cs:(%rax,%rax) nop
crypto_sign_ed25519_ref10_fe_neg: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov eax, [rax] mov [rbp+var_14], eax mov rax, [rbp+var_10] mov eax, [rax+4] mov [rbp+var_18], eax mov rax, [rbp+var_10] mov eax, [rax+8] mov [rbp+var_1C], eax mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov [rbp+var_20], eax mov rax, [rbp+var_10] mov eax, [rax+10h] mov [rbp+var_24], eax mov rax, [rbp+var_10] mov eax, [rax+14h] mov [rbp+var_28], eax mov rax, [rbp+var_10] mov eax, [rax+18h] mov [rbp+var_2C], eax mov rax, [rbp+var_10] mov eax, [rax+1Ch] mov [rbp+var_30], eax mov rax, [rbp+var_10] mov eax, [rax+20h] mov [rbp+var_34], eax mov rax, [rbp+var_10] mov eax, [rax+24h] mov [rbp+var_38], eax xor eax, eax sub eax, [rbp+var_14] mov [rbp+var_3C], eax xor eax, eax sub eax, [rbp+var_18] mov [rbp+var_40], eax xor eax, eax sub eax, [rbp+var_1C] mov [rbp+var_44], eax xor eax, eax sub eax, [rbp+var_20] mov [rbp+var_48], eax xor eax, eax sub eax, [rbp+var_24] mov [rbp+var_4C], eax xor eax, eax sub eax, [rbp+var_28] mov [rbp+var_50], eax xor eax, eax sub eax, [rbp+var_2C] mov [rbp+var_54], eax xor eax, eax sub eax, [rbp+var_30] mov [rbp+var_58], eax xor eax, eax sub eax, [rbp+var_34] mov [rbp+var_5C], eax xor eax, eax sub eax, [rbp+var_38] mov [rbp+var_60], eax mov ecx, [rbp+var_3C] mov rax, [rbp+var_8] mov [rax], ecx mov ecx, [rbp+var_40] mov rax, [rbp+var_8] mov [rax+4], ecx mov ecx, [rbp+var_44] mov rax, [rbp+var_8] mov [rax+8], ecx mov ecx, [rbp+var_48] mov rax, [rbp+var_8] mov [rax+0Ch], ecx mov ecx, [rbp+var_4C] mov rax, [rbp+var_8] mov [rax+10h], ecx mov ecx, [rbp+var_50] mov rax, [rbp+var_8] mov [rax+14h], ecx mov ecx, [rbp+var_54] mov rax, [rbp+var_8] mov [rax+18h], ecx mov ecx, [rbp+var_58] mov rax, [rbp+var_8] mov [rax+1Ch], ecx mov ecx, [rbp+var_5C] mov rax, [rbp+var_8] mov [rax+20h], ecx mov ecx, [rbp+var_60] mov rax, [rbp+var_8] mov [rax+24h], ecx pop rbp retn
_DWORD * crypto_sign_ed25519_ref10_fe_neg(_DWORD *a1, _DWORD *a2) { _DWORD *result; // rax int v3; // [rsp+4h] [rbp-5Ch] int v4; // [rsp+8h] [rbp-58h] int v5; // [rsp+Ch] [rbp-54h] int v6; // [rsp+10h] [rbp-50h] int v7; // [rsp+14h] [rbp-4Ch] int v8; // [rsp+18h] [rbp-48h] int v9; // [rsp+1Ch] [rbp-44h] int v10; // [rsp+20h] [rbp-40h] int v11; // [rsp+28h] [rbp-38h] v11 = a2[9]; v10 = -a2[1]; v9 = -a2[2]; v8 = -a2[3]; v7 = -a2[4]; v6 = -a2[5]; v5 = -a2[6]; v4 = -a2[7]; v3 = -a2[8]; *a1 = -*a2; a1[1] = v10; a1[2] = v9; a1[3] = v8; a1[4] = v7; a1[5] = v6; a1[6] = v5; a1[7] = v4; a1[8] = v3; result = a1; a1[9] = -v11; return result; }
crypto_sign_ed25519_ref10_fe_neg: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x14],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x18],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV dword ptr [RBP + -0x1c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x10] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x14] MOV dword ptr [RBP + -0x28],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x18] MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x1c] MOV dword ptr [RBP + -0x30],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x20] MOV dword ptr [RBP + -0x34],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x24] MOV dword ptr [RBP + -0x38],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x3c],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x40],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x44],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x48],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4c],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x50],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x54],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x30] MOV dword ptr [RBP + -0x58],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x5c],EAX XOR EAX,EAX SUB EAX,dword ptr [RBP + -0x38] MOV dword ptr [RBP + -0x60],EAX MOV ECX,dword ptr [RBP + -0x3c] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX],ECX MOV ECX,dword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x4],ECX MOV ECX,dword ptr [RBP + -0x44] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x8],ECX MOV ECX,dword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0xc],ECX MOV ECX,dword ptr [RBP + -0x4c] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x10],ECX MOV ECX,dword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x14],ECX MOV ECX,dword ptr [RBP + -0x54] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x18],ECX MOV ECX,dword ptr [RBP + -0x58] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x1c],ECX MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x20],ECX MOV ECX,dword ptr [RBP + -0x60] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x24],ECX POP RBP RET
void crypto_sign_ed25519_ref10_fe_neg(int *param_1,int *param_2) { int iVar1; int iVar2; int iVar3; int iVar4; int iVar5; int iVar6; int iVar7; int iVar8; int iVar9; iVar1 = param_2[1]; iVar2 = param_2[2]; iVar3 = param_2[3]; iVar4 = param_2[4]; iVar5 = param_2[5]; iVar6 = param_2[6]; iVar7 = param_2[7]; iVar8 = param_2[8]; iVar9 = param_2[9]; *param_1 = -*param_2; param_1[1] = -iVar1; param_1[2] = -iVar2; param_1[3] = -iVar3; param_1[4] = -iVar4; param_1[5] = -iVar5; param_1[6] = -iVar6; param_1[7] = -iVar7; param_1[8] = -iVar8; param_1[9] = -iVar9; return; }
31,514
google::protobuf::ExtensionRangeOptions::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void ExtensionRangeOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast<ExtensionRangeOptions*>(&to_msg); auto& from = static_cast<const ExtensionRangeOptions&>(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.ExtensionRangeOptions) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_impl_.uninterpreted_option_.MergeFrom(from._impl_.uninterpreted_option_); _this->_impl_._extensions_.MergeFrom(internal_default_instance(), from._impl_._extensions_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); }
O0
cpp
google::protobuf::ExtensionRangeOptions::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&): subq $0xe8, %rsp movq %rdi, 0x98(%rsp) movq %rsi, 0x90(%rsp) movq 0x98(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x80(%rsp) xorl %eax, %eax testb $0x1, %al jne 0xb1b22 jmp 0xb1bcc movq 0x80(%rsp), %rax movq 0x88(%rsp), %rcx movb $0x0, 0x47(%rsp) cmpq %rcx, %rax je 0xb1b3e jmp 0xb1b8e leaq 0x13edeb(%rip), %rdx # 0x1f0930 leaq 0x48(%rsp), %rdi movq %rdi, 0x18(%rsp) movl $0x3, %esi movl $0xd88, %ecx # imm = 0xD88 callq 0x237e0 movq 0x18(%rsp), %rdi movb $0x1, 0x47(%rsp) leaq 0x13ee2b(%rip), %rsi # 0x1f099a callq 0x230a0 movq %rax, 0x20(%rsp) jmp 0xb1b7b movq 0x20(%rsp), %rsi leaq 0x33(%rsp), %rdi callq 0x23250 jmp 0xb1b8c jmp 0xb1b8e testb $0x1, 0x47(%rsp) jne 0xb1b97 jmp 0xb1ba1 leaq 0x48(%rsp), %rdi callq 0x23820 jmp 0xb1b17 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) testb $0x1, 0x47(%rsp) jne 0xb1bbd jmp 0xb1bc7 leaq 0x48(%rsp), %rdi callq 0x23820 jmp 0xb1d2b movl $0x0, 0x2c(%rsp) movq 0x88(%rsp), %rdi addq $0x10, %rdi addq $0x18, %rdi movq 0x80(%rsp), %rsi addq $0x10, %rsi addq $0x18, %rsi callq 0xd6e60 movq 0x88(%rsp), %rax addq $0x10, %rax movq %rax, 0x8(%rsp) callq 0x800e0 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x80(%rsp), %rdx addq $0x10, %rdx callq 0x198570 movq 0x88(%rsp), %rcx addq $0x8, %rcx movq 0x80(%rsp), %rax addq $0x8, %rax movq %rcx, 0xa8(%rsp) movq %rax, 0xa0(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0xe0(%rsp) movq 0xe0(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xb1d23 movq 0xa0(%rsp), %rax movq %rax, 0xc0(%rsp) movq $0x0, 0xb8(%rsp) movq 0xc0(%rsp), %rax movq %rax, (%rsp) movq %rax, 0xd0(%rsp) movq 0xd0(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0xd8(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xb1d02 movq (%rsp), %rdi callq 0x9cd40 addq $0x8, %rax movq %rax, 0xc8(%rsp) jmp 0xb1d11 callq *0xb8(%rsp) movq %rax, 0xc8(%rsp) movq 0x10(%rsp), %rdi movq 0xc8(%rsp), %rsi callq 0xe0920 addq $0xe8, %rsp retq movq 0x38(%rsp), %rdi callq 0x13750 nopw %cs:(%rax,%rax)
_ZN6google8protobuf21ExtensionRangeOptions9MergeImplERNS0_7MessageERKS2_: sub rsp, 0E8h mov [rsp+0E8h+var_50], rdi mov [rsp+0E8h+var_58], rsi mov rax, [rsp+0E8h+var_50] mov [rsp+0E8h+var_60], rax mov rax, [rsp+0E8h+var_58] mov [rsp+0E8h+var_68], rax loc_B1B17: xor eax, eax test al, 1 jnz short loc_B1B22 jmp loc_B1BCC loc_B1B22: mov rax, [rsp+0E8h+var_68] mov rcx, [rsp+0E8h+var_60] mov [rsp+0E8h+var_A1], 0 cmp rax, rcx jz short loc_B1B3E jmp short loc_B1B8E loc_B1B3E: lea rdx, aWorkspaceLlm4b_8; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+0E8h+var_A0] mov [rsp+0E8h+var_D0], rdi mov esi, 3 mov ecx, 0D88h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+0E8h+var_D0] mov [rsp+0E8h+var_A1], 1 lea rsi, aCheckFailedFro; "CHECK failed: (&from) != (_this): " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+0E8h+var_C8], rax jmp short $+2 loc_B1B7B: mov rsi, [rsp+0E8h+var_C8] lea rdi, [rsp+0E8h+var_B5] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_B1B8C: jmp short $+2 loc_B1B8E: test [rsp+0E8h+var_A1], 1 jnz short loc_B1B97 jmp short loc_B1BA1 loc_B1B97: lea rdi, [rsp+0E8h+var_A0]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_B1BA1: jmp loc_B1B17 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax test [rsp+arg_3F], 1 jnz short loc_B1BBD jmp short loc_B1BC7 loc_B1BBD: lea rdi, [rsp+arg_40]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_B1BC7: jmp loc_B1D2B loc_B1BCC: mov [rsp+0E8h+var_BC], 0 mov rdi, [rsp+0E8h+var_60] add rdi, 10h add rdi, 18h; this mov rsi, [rsp+0E8h+var_68] add rsi, 10h add rsi, 18h call _ZN6google8protobuf16RepeatedPtrFieldINS0_19UninterpretedOptionEE9MergeFromERKS3_; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::MergeFrom(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption> const&) mov rax, [rsp+0E8h+var_60] add rax, 10h mov [rsp+0E8h+var_E0], rax call _ZN6google8protobuf21ExtensionRangeOptions25internal_default_instanceEv; google::protobuf::ExtensionRangeOptions::internal_default_instance(void) mov rdi, [rsp+0E8h+var_E0]; this mov rsi, rax; google::protobuf::MessageLite * mov rdx, [rsp+0E8h+var_68] add rdx, 10h; google::protobuf::internal::ExtensionSet * call _ZN6google8protobuf8internal12ExtensionSet9MergeFromEPKNS0_11MessageLiteERKS2_; google::protobuf::internal::ExtensionSet::MergeFrom(google::protobuf::MessageLite const*,google::protobuf::internal::ExtensionSet const&) mov rcx, [rsp+0E8h+var_60] add rcx, 8 mov rax, [rsp+0E8h+var_68] add rax, 8 mov [rsp+0E8h+var_40], rcx mov [rsp+0E8h+var_48], rax mov rax, [rsp+0E8h+var_40] mov [rsp+0E8h+var_D8], rax mov rax, [rsp+0E8h+var_48] mov [rsp+0E8h+var_38], rax mov rax, [rsp+0E8h+var_38] mov [rsp+0E8h+var_8], rax mov rax, [rsp+0E8h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz loc_B1D23 mov rax, [rsp+0E8h+var_48] mov [rsp+0E8h+var_28], rax mov [rsp+0E8h+var_30], 0 mov rax, [rsp+0E8h+var_28] mov [rsp+0E8h+var_E8], rax mov [rsp+0E8h+var_18], rax mov rax, [rsp+0E8h+var_18] mov [rsp+0E8h+var_10], rax mov rax, [rsp+0E8h+var_10] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_B1D02 mov rdi, [rsp+0E8h+var_E8] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov qword ptr [rsp+0E8h+var_20], rax jmp short loc_B1D11 loc_B1D02: call [rsp+0E8h+var_30] mov qword ptr [rsp+0E8h+var_20], rax loc_B1D11: mov rdi, [rsp+0E8h+var_D8]; void * mov rsi, qword ptr [rsp+0E8h+var_20]; int call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_B1D23: add rsp, 0E8h retn loc_B1D2B: mov rdi, [rsp+arg_30] call __Unwind_Resume
long long google::protobuf::ExtensionRangeOptions::MergeImpl( google::protobuf::ExtensionRangeOptions *this, google::protobuf::Message *a2, const google::protobuf::Message *a3) { void ( ***v3)(google::protobuf::ExtensionRangeOptions *__hidden); // rax long long result; // rax _QWORD *v5; // [rsp+A0h] [rbp-48h] int v6[2]; // [rsp+C8h] [rbp-20h] google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::MergeFrom( (char *)this + 40, (char *)a2 + 40, a3); v3 = google::protobuf::ExtensionRangeOptions::internal_default_instance((google::protobuf::ExtensionRangeOptions *)((char *)this + 40)); google::protobuf::internal::ExtensionSet::MergeFrom( (google::protobuf::ExtensionRangeOptions *)((char *)this + 16), (const google::protobuf::MessageLite *)v3, (google::protobuf::Message *)((char *)a2 + 16)); v5 = (_QWORD *)((char *)a2 + 8); result = *((_QWORD *)a2 + 1) & 1LL; if ( result ) { if ( (*v5 & 1LL) != 0 ) *(_QWORD *)v6 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(v5) + 8; else v6[0] = ((long long ( *)(char *))dword_0)((char *)this + 16); return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (char *)this + 8, v6[0]); } return result; }
MergeImpl: SUB RSP,0xe8 MOV qword ptr [RSP + 0x98],RDI MOV qword ptr [RSP + 0x90],RSI MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x80],RAX LAB_001b1b17: XOR EAX,EAX TEST AL,0x1 JNZ 0x001b1b22 JMP 0x001b1bcc LAB_001b1b22: MOV RAX,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RSP + 0x88] MOV byte ptr [RSP + 0x47],0x0 CMP RAX,RCX JZ 0x001b1b3e JMP 0x001b1b8e LAB_001b1b3e: LEA RDX,[0x2f0930] LEA RDI,[RSP + 0x48] MOV qword ptr [RSP + 0x18],RDI MOV ESI,0x3 MOV ECX,0xd88 CALL 0x001237e0 MOV RDI,qword ptr [RSP + 0x18] MOV byte ptr [RSP + 0x47],0x1 LAB_001b1b68: LEA RSI,[0x2f099a] CALL 0x001230a0 MOV qword ptr [RSP + 0x20],RAX JMP 0x001b1b7b LAB_001b1b7b: MOV RSI,qword ptr [RSP + 0x20] LEA RDI,[RSP + 0x33] CALL 0x00123250 LAB_001b1b8a: JMP 0x001b1b8c LAB_001b1b8c: JMP 0x001b1b8e LAB_001b1b8e: TEST byte ptr [RSP + 0x47],0x1 JNZ 0x001b1b97 JMP 0x001b1ba1 LAB_001b1b97: LEA RDI,[RSP + 0x48] CALL 0x00123820 LAB_001b1ba1: JMP 0x001b1b17 LAB_001b1bcc: MOV dword ptr [RSP + 0x2c],0x0 MOV RDI,qword ptr [RSP + 0x88] ADD RDI,0x10 ADD RDI,0x18 MOV RSI,qword ptr [RSP + 0x80] ADD RSI,0x10 ADD RSI,0x18 CALL 0x001d6e60 MOV RAX,qword ptr [RSP + 0x88] ADD RAX,0x10 MOV qword ptr [RSP + 0x8],RAX CALL 0x001800e0 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RAX MOV RDX,qword ptr [RSP + 0x80] ADD RDX,0x10 CALL 0x00298570 MOV RCX,qword ptr [RSP + 0x88] ADD RCX,0x8 MOV RAX,qword ptr [RSP + 0x80] ADD RAX,0x8 MOV qword ptr [RSP + 0xa8],RCX MOV qword ptr [RSP + 0xa0],RAX MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0xb0],RAX MOV RAX,qword ptr [RSP + 0xb0] MOV qword ptr [RSP + 0xe0],RAX MOV RAX,qword ptr [RSP + 0xe0] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001b1d23 MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0xc0],RAX MOV qword ptr [RSP + 0xb8],0x0 MOV RAX,qword ptr [RSP + 0xc0] MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0xd0],RAX MOV RAX,qword ptr [RSP + 0xd0] MOV qword ptr [RSP + 0xd8],RAX MOV RAX,qword ptr [RSP + 0xd8] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001b1d02 MOV RDI,qword ptr [RSP] CALL 0x0019cd40 ADD RAX,0x8 MOV qword ptr [RSP + 0xc8],RAX JMP 0x001b1d11 LAB_001b1d02: CALL qword ptr [RSP + 0xb8] MOV qword ptr [RSP + 0xc8],RAX LAB_001b1d11: MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0xc8] CALL 0x001e0920 LAB_001b1d23: ADD RSP,0xe8 RET
/* WARNING: Removing unreachable block (ram,0x001b1b22) */ /* WARNING: Removing unreachable block (ram,0x001b1b3e) */ /* WARNING: Removing unreachable block (ram,0x001b1b3c) */ /* WARNING: Removing unreachable block (ram,0x001b1b8e) */ /* WARNING: Removing unreachable block (ram,0x001b1b97) */ /* WARNING: Removing unreachable block (ram,0x001b1b95) */ /* WARNING: Removing unreachable block (ram,0x001b1ba1) */ /* google::protobuf::ExtensionRangeOptions::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&) */ void google::protobuf::ExtensionRangeOptions::MergeImpl(Message *param_1,Message *param_2) { MessageLite *pMVar1; InternalMetadata *this; UnknownFieldSet *local_20; RepeatedPtrField<google::protobuf::UninterpretedOption>::MergeFrom ((RepeatedPtrField<google::protobuf::UninterpretedOption> *)(param_1 + 0x28), (RepeatedPtrField *)(param_2 + 0x28)); pMVar1 = (MessageLite *)internal_default_instance(); internal::ExtensionSet::MergeFrom ((ExtensionSet *)(param_1 + 0x10),pMVar1,(ExtensionSet *)(param_2 + 0x10)); this = (InternalMetadata *)(param_2 + 8); if ((*(ulong *)this & 1) != 0) { if ((*(ulong *)this & 1) == 0) { local_20 = (UnknownFieldSet *)(*(code *)0x0)(); } else { local_20 = (UnknownFieldSet *) internal::InternalMetadata:: PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>> (this); local_20 = (UnknownFieldSet *)((Container *)local_20 + 8); } internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(param_1 + 8),local_20); } return; }
31,515
common_kv_cache_dump_view(llama_kv_cache_view const&, int)
monkey531[P]llama/common/common.cpp
void common_kv_cache_dump_view(const llama_kv_cache_view & view, int row_size) { static const char slot_chars[] = ".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+"; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d", view.n_cells, view.n_seq_max, view.used_cells, view.token_count, view.max_contiguous, view.max_contiguous_idx); llama_kv_cache_view_cell * c_curr = view.cells; llama_seq_id * cs_curr = view.cells_sequences; for (int i = 0; i < view.n_cells; i++, c_curr++, cs_curr += view.n_seq_max) { if (i % row_size == 0) { printf("\n%5d: ", i); } int seq_count = 0; for (int j = 0; j < view.n_seq_max; j++) { if (cs_curr[j] >= 0) { seq_count++; } } putchar(slot_chars[std::min(sizeof(slot_chars) - 2, size_t(seq_count))]); } printf("\n=== Done dumping\n"); }
O2
cpp
common_kv_cache_dump_view(llama_kv_cache_view const&, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl (%rdi), %esi movl 0x4(%rdi), %edx movl 0xc(%rdi), %ecx movl 0x8(%rdi), %r8d movl 0x10(%rdi), %r9d movl 0x14(%rdi), %eax movl %eax, (%rsp) leaq 0x5bb08(%rip), %rdi # 0xb6924 xorl %eax, %eax callq 0x24060 movq 0x20(%r14), %r12 pushq $0x3e popq %r13 leaq 0x5e03e(%rip), %r15 # 0xb8e70 xorl %ebp, %ebp cmpl (%r14), %ebp jge 0x5ae91 movl %ebp, %eax cltd idivl %ebx testl %edx, %edx jne 0x5ae52 leaq 0x5bb65(%rip), %rdi # 0xb69ae movl %ebp, %esi xorl %eax, %eax callq 0x24060 movl 0x4(%r14), %eax xorl %ecx, %ecx testl %eax, %eax cmovlel %ecx, %eax xorl %edx, %edx cmpq %rcx, %rax je 0x5ae74 movl (%r12,%rcx,4), %esi notl %esi shrl $0x1f, %esi addl %esi, %edx incq %rcx jmp 0x5ae5f cmpl $0x3e, %edx cmovael %r13d, %edx movsbl (%rdx,%r15), %edi callq 0x24e80 incl %ebp movslq 0x4(%r14), %rax leaq (%r12,%rax,4), %r12 jmp 0x5ae34 leaq 0x5dfc3(%rip), %rdi # 0xb8e5b addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x24fe0
_Z25common_kv_cache_dump_viewRK19llama_kv_cache_viewi: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebx, esi mov r14, rdi mov esi, [rdi] mov edx, [rdi+4] mov ecx, [rdi+0Ch] mov r8d, [rdi+8] mov r9d, [rdi+10h] mov eax, [rdi+14h] mov [rsp+38h+var_38], eax lea rdi, aDumpingKvCache; "=== Dumping KV cache. total cells %d, m"... xor eax, eax call _printf mov r12, [r14+20h] push 3Eh ; '>' pop r13 lea r15, _ZZ25common_kv_cache_dump_viewRK19llama_kv_cache_viewiE10slot_chars; ".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc"... xor ebp, ebp loc_5AE34: cmp ebp, [r14] jge short loc_5AE91 mov eax, ebp cdq idiv ebx test edx, edx jnz short loc_5AE52 lea rdi, a5d; "\n%5d: " mov esi, ebp xor eax, eax call _printf loc_5AE52: mov eax, [r14+4] xor ecx, ecx test eax, eax cmovle eax, ecx xor edx, edx loc_5AE5F: cmp rax, rcx jz short loc_5AE74 mov esi, [r12+rcx*4] not esi shr esi, 1Fh add edx, esi inc rcx jmp short loc_5AE5F loc_5AE74: cmp edx, 3Eh ; '>' cmovnb edx, r13d movsx edi, byte ptr [rdx+r15] call _putchar inc ebp movsxd rax, dword ptr [r14+4] lea r12, [r12+rax*4] jmp short loc_5AE34 loc_5AE91: lea rdi, aDoneDumping; "\n=== Done dumping" add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _puts
long long common_kv_cache_dump_view(unsigned int *a1, int a2) { long long v3; // rsi long long v4; // rdx long long v5; // rcx long long v6; // r12 signed int i; // ebp long long v8; // rax long long v9; // rcx long long v10; // rdx v3 = *a1; printf( "=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, large" "st empty slot=%d @ %d", v3, a1[1], a1[3], a1[2], a1[4], a1[5]); v6 = *((_QWORD *)a1 + 4); for ( i = 0; i < (int)*a1; ++i ) { if ( !(i % a2) ) { v3 = (unsigned int)i; printf("\n%5d: ", i); } v8 = a1[1]; v9 = 0LL; if ( (int)v8 <= 0 ) v8 = 0LL; v10 = 0LL; while ( v8 != v9 ) { v3 = *(_DWORD *)(v6 + 4 * v9) >= 0; v10 = (unsigned int)(v3 + v10); ++v9; } if ( (unsigned int)v10 >= 0x3E ) v10 = 62LL; putchar((unsigned int)common_kv_cache_dump_view(llama_kv_cache_view const&,int)::slot_chars[v10]); v6 += 4LL * (int)a1[1]; } return puts("\n=== Done dumping", v3, v4, v5); }
common_kv_cache_dump_view: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI MOV ESI,dword ptr [RDI] MOV EDX,dword ptr [RDI + 0x4] MOV ECX,dword ptr [RDI + 0xc] MOV R8D,dword ptr [RDI + 0x8] MOV R9D,dword ptr [RDI + 0x10] MOV EAX,dword ptr [RDI + 0x14] MOV dword ptr [RSP],EAX LEA RDI,[0x1b6924] XOR EAX,EAX CALL 0x00124060 MOV R12,qword ptr [R14 + 0x20] PUSH 0x3e POP R13 LEA R15,[0x1b8e70] XOR EBP,EBP LAB_0015ae34: CMP EBP,dword ptr [R14] JGE 0x0015ae91 MOV EAX,EBP CDQ IDIV EBX TEST EDX,EDX JNZ 0x0015ae52 LEA RDI,[0x1b69ae] MOV ESI,EBP XOR EAX,EAX CALL 0x00124060 LAB_0015ae52: MOV EAX,dword ptr [R14 + 0x4] XOR ECX,ECX TEST EAX,EAX CMOVLE EAX,ECX XOR EDX,EDX LAB_0015ae5f: CMP RAX,RCX JZ 0x0015ae74 MOV ESI,dword ptr [R12 + RCX*0x4] NOT ESI SHR ESI,0x1f ADD EDX,ESI INC RCX JMP 0x0015ae5f LAB_0015ae74: CMP EDX,0x3e CMOVNC EDX,R13D MOVSX EDI,byte ptr [RDX + R15*0x1] CALL 0x00124e80 INC EBP MOVSXD RAX,dword ptr [R14 + 0x4] LEA R12,[R12 + RAX*0x4] JMP 0x0015ae34 LAB_0015ae91: LEA RDI,[0x1b8e5b] ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00124fe0
/* common_kv_cache_dump_view(llama_kv_cache_view const&, int) */ void common_kv_cache_dump_view(llama_kv_cache_view *param_1,int param_2) { int8 in_RAX; ulong uVar1; uint uVar2; ulong uVar3; uint uVar4; long lVar5; printf("=== Dumping KV cache. total cells %d, max sequences per cell %d, populated cells %d, total tokens in cache %d, largest empty slot=%d @ %d" ,(ulong)*(uint *)param_1,(ulong)*(uint *)(param_1 + 4),(ulong)*(uint *)(param_1 + 0xc), (ulong)*(uint *)(param_1 + 8),(ulong)*(uint *)(param_1 + 0x10), CONCAT44((int)((ulong)in_RAX >> 0x20),*(int4 *)(param_1 + 0x14))); lVar5 = *(long *)(param_1 + 0x20); for (uVar4 = 0; (int)uVar4 < *(int *)param_1; uVar4 = uVar4 + 1) { if ((int)uVar4 % param_2 == 0) { printf("\n%5d: ",(ulong)uVar4); } uVar1 = 0; uVar3 = (ulong)*(uint *)(param_1 + 4); if ((int)*(uint *)(param_1 + 4) < 1) { uVar3 = uVar1; } uVar2 = 0; for (; uVar3 != uVar1; uVar1 = uVar1 + 1) { uVar2 = uVar2 - ((int)~*(uint *)(lVar5 + uVar1 * 4) >> 0x1f); } uVar3 = (ulong)uVar2; if (0x3d < uVar2) { uVar3 = 0x3e; } putchar((int)".123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+"[uVar3]); lVar5 = lVar5 + (long)*(int *)(param_1 + 4) * 4; } puts("\n=== Done dumping"); return; }
31,516
nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)::json_error_locator>::get_cbor_array(unsigned long, nlohmann::json_abi_v3_11_3::detail::cbor_tag_handler_t)
monkey531[P]llama/common/./json.hpp
bool get_cbor_array(const std::size_t len, const cbor_tag_handler_t tag_handler) { if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) { return false; } if (len != static_cast<std::size_t>(-1)) { for (std::size_t i = 0; i < len; ++i) { if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(true, tag_handler))) { return false; } } } else { while (get() != 0xFF) { if (JSON_HEDLEY_UNLIKELY(!parse_cbor_internal(false, tag_handler))) { return false; } } } return sax->end_array(); }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)::json_error_locator>::get_cbor_array(unsigned long, nlohmann::json_abi_v3_11_3::detail::cbor_tag_handler_t): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movl %edx, 0x1c(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x28(%rax), %rdi movq 0x20(%rsp), %rsi movq (%rdi), %rax callq *0x50(%rax) xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x18e317 jmp 0x18e321 movb $0x0, 0x37(%rsp) jmp 0x18e3c7 cmpq $-0x1, 0x20(%rsp) je 0x18e378 movq $0x0, 0x10(%rsp) movq 0x10(%rsp), %rax cmpq 0x20(%rsp), %rax jae 0x18e376 movq 0x8(%rsp), %rdi movl 0x1c(%rsp), %edx movl $0x1, %esi callq 0x1892f0 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x18e35d jmp 0x18e364 movb $0x0, 0x37(%rsp) jmp 0x18e3c7 jmp 0x18e366 movq 0x10(%rsp), %rax addq $0x1, %rax movq %rax, 0x10(%rsp) jmp 0x18e332 jmp 0x18e3b2 jmp 0x18e37a movq 0x8(%rsp), %rdi callq 0x18b910 cmpl $0xff, %eax je 0x18e3b0 movq 0x8(%rsp), %rdi movl 0x1c(%rsp), %edx xorl %esi, %esi callq 0x1892f0 xorb $-0x1, %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x18e3a7 jmp 0x18e3ae movb $0x0, 0x37(%rsp) jmp 0x18e3c7 jmp 0x18e37a jmp 0x18e3b2 movq 0x8(%rsp), %rax movq 0x28(%rax), %rdi movq (%rdi), %rax callq *0x58(%rax) andb $0x1, %al movb %al, 0x37(%rsp) movb 0x37(%rsp), %al andb $0x1, %al addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE14get_cbor_arrayEmNS1_18cbor_tag_handler_tE: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov [rsp+38h+var_1C], edx mov rax, [rsp+38h+var_10] mov [rsp+38h+var_30], rax mov rdi, [rax+28h] mov rsi, [rsp+38h+var_18] mov rax, [rdi] call qword ptr [rax+50h] xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_18E317 jmp short loc_18E321 loc_18E317: mov [rsp+38h+var_1], 0 jmp loc_18E3C7 loc_18E321: cmp [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh jz short loc_18E378 mov [rsp+38h+var_28], 0 loc_18E332: mov rax, [rsp+38h+var_28] cmp rax, [rsp+38h+var_18] jnb short loc_18E376 mov rdi, [rsp+38h+var_30] mov edx, [rsp+38h+var_1C] mov esi, 1 call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE19parse_cbor_internalEbNS1_18cbor_tag_handler_tE; nlohmann::json_abi_v3_11_3::detail::binary_reader<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)::json_error_locator>::parse_cbor_internal(bool,nlohmann::json_abi_v3_11_3::detail::cbor_tag_handler_t) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_18E35D jmp short loc_18E364 loc_18E35D: mov [rsp+38h+var_1], 0 jmp short loc_18E3C7 loc_18E364: jmp short $+2 loc_18E366: mov rax, [rsp+38h+var_28] add rax, 1 mov [rsp+38h+var_28], rax jmp short loc_18E332 loc_18E376: jmp short loc_18E3B2 loc_18E378: jmp short $+2 loc_18E37A: mov rdi, [rsp+38h+var_30] call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE3getEv; nlohmann::json_abi_v3_11_3::detail::binary_reader<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)::json_error_locator>::get(void) cmp eax, 0FFh jz short loc_18E3B0 mov rdi, [rsp+38h+var_30] mov edx, [rsp+38h+var_1C] xor esi, esi call _ZN8nlohmann16json_abi_v3_11_36detail13binary_readerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEZL10parse_jsonRSL_RKSL_RSF_E18json_error_locatorE19parse_cbor_internalEbNS1_18cbor_tag_handler_tE; nlohmann::json_abi_v3_11_3::detail::binary_reader<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>,parse_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)::json_error_locator>::parse_cbor_internal(bool,nlohmann::json_abi_v3_11_3::detail::cbor_tag_handler_t) xor al, 0FFh xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_18E3A7 jmp short loc_18E3AE loc_18E3A7: mov [rsp+38h+var_1], 0 jmp short loc_18E3C7 loc_18E3AE: jmp short loc_18E37A loc_18E3B0: jmp short $+2 loc_18E3B2: mov rax, [rsp+38h+var_30] mov rdi, [rax+28h] mov rax, [rdi] call qword ptr [rax+58h] and al, 1 mov [rsp+38h+var_1], al loc_18E3C7: mov al, [rsp+38h+var_1] and al, 1 add rsp, 38h retn
char nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&)::json_error_locator>::get_cbor_array( long long a1, unsigned long long a2, unsigned int a3) { long long v3; // rcx int v4; // r8d int v5; // r9d long long v6; // rcx int v7; // r8d int v8; // r9d unsigned long long i; // [rsp+10h] [rbp-28h] if ( ((*(long long ( **)(_QWORD, unsigned long long))(**(_QWORD **)(a1 + 40) + 80LL))(*(_QWORD *)(a1 + 40), a2) & 1) == 0 ) return 0; if ( a2 == -1LL ) { while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&)::json_error_locator>::get(a1) != 255 ) { if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&)::json_error_locator>::parse_cbor_internal( a1, 0, a3, v6, v7, v8) & 1) == 0 ) return 0; } } else { for ( i = 0LL; i < a2; ++i ) { if ( (nlohmann::json_abi_v3_11_3::detail::binary_reader<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_json(__gnu_cxx::__normal_iterator<char const*,std::string>&,__gnu_cxx::__normal_iterator<char const*,std::string> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>&)::json_error_locator>::parse_cbor_internal( a1, 1, a3, v3, v4, v5) & 1) == 0 ) return 0; } } return (*(long long ( **)(_QWORD))(**(_QWORD **)(a1 + 40) + 88LL))(*(_QWORD *)(a1 + 40)) & 1; }
~pair: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x8],RDI ADD RDI,0x20 CALL 0x001510c0 MOV RDI,qword ptr [RSP + 0x8] CALL 0x001510c0 ADD RSP,0x18 RET
/* std::pair<std::__cxx11::string, std::__cxx11::string >::~pair() */ void __thiscall std::pair<std::__cxx11::string,std::__cxx11::string>::~pair (pair<std::__cxx11::string,std::__cxx11::string> *this) { std::__cxx11::string::~string((string *)(this + 0x20)); std::__cxx11::string::~string((string *)this); return; }
31,517
pvio_socket_keepalive
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
int pvio_socket_keepalive(MARIADB_PVIO *pvio) { int opt= 1; struct st_pvio_socket *csock= NULL; if (!pvio || !pvio->data) return 1; csock= (struct st_pvio_socket *)pvio->data; return setsockopt(csock->socket, SOL_SOCKET, SO_KEEPALIVE, #ifndef _WIN32 (const void *)&opt, sizeof(opt)); #else (char *)&opt, (int)sizeof(opt)); #endif }
O0
c
pvio_socket_keepalive: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl $0x1, -0x14(%rbp) movq $0x0, -0x20(%rbp) cmpq $0x0, -0x10(%rbp) je 0x42eec movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x42ef5 movl $0x1, -0x4(%rbp) jmp 0x42f22 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movl (%rax), %edi movl $0x1, %esi movl $0x9, %edx leaq -0x14(%rbp), %rcx movl $0x4, %r8d callq 0x13770 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
pvio_socket_keepalive: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], 1 mov [rbp+var_20], 0 cmp [rbp+var_10], 0 jz short loc_42EEC mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_42EF5 loc_42EEC: mov [rbp+var_4], 1 jmp short loc_42F22 loc_42EF5: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_20] mov edi, [rax] mov esi, 1 mov edx, 9 lea rcx, [rbp+var_14] mov r8d, 4 call _setsockopt mov [rbp+var_4], eax loc_42F22: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long pvio_socket_keepalive(_QWORD *a1) { int v2; // [rsp+Ch] [rbp-14h] BYREF _QWORD *v3; // [rsp+10h] [rbp-10h] v3 = a1; v2 = 1; if ( a1 && *v3 ) return (unsigned int)setsockopt(*(unsigned int *)*v3, 1LL, 9LL, &v2, 4LL); else return 1; }
pvio_socket_keepalive: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],0x1 MOV qword ptr [RBP + -0x20],0x0 CMP qword ptr [RBP + -0x10],0x0 JZ 0x00142eec MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x00142ef5 LAB_00142eec: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00142f22 LAB_00142ef5: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV EDI,dword ptr [RAX] MOV ESI,0x1 MOV EDX,0x9 LEA RCX,[RBP + -0x14] MOV R8D,0x4 CALL 0x00113770 MOV dword ptr [RBP + -0x4],EAX LAB_00142f22: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int pvio_socket_keepalive(long *param_1) { int4 local_1c; long *local_18; int local_c; local_1c = 1; if ((param_1 == (long *)0x0) || (*param_1 == 0)) { local_c = 1; } else { local_18 = param_1; local_c = setsockopt(*(int *)*param_1,1,9,&local_1c,4); } return local_c; }
31,518
js_array_copyWithin
bluesky950520[P]quickjs/quickjs.c
static JSValue js_array_copyWithin(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue obj; int64_t len, from, to, final, count; obj = JS_ToObject(ctx, this_val); if (js_get_length64(ctx, &len, obj)) goto exception; if (JS_ToInt64Clamp(ctx, &to, argv[0], 0, len, len)) goto exception; if (JS_ToInt64Clamp(ctx, &from, argv[1], 0, len, len)) goto exception; final = len; if (argc > 2 && !JS_IsUndefined(argv[2])) { if (JS_ToInt64Clamp(ctx, &final, argv[2], 0, len, len)) goto exception; } count = min_int64(final - from, len - to); if (JS_CopySubArray(ctx, obj, to, from, count, (from < to && to < from + count) ? -1 : +1)) goto exception; return obj; exception: JS_FreeValue(ctx, obj); return JS_EXCEPTION; }
O0
c
js_array_copyWithin: subq $0xb8, %rsp movq %rsi, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq %rdi, 0x90(%rsp) movl %ecx, 0x8c(%rsp) movq %r8, 0x80(%rsp) movq 0x90(%rsp), %rdi movq 0x98(%rsp), %rsi movq 0xa0(%rsp), %rdx callq 0x37770 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x90(%rsp), %rdi movq 0x70(%rsp), %rdx movq 0x78(%rsp), %rcx leaq 0x68(%rsp), %rsi callq 0x2df60 cmpl $0x0, %eax je 0xcd7ff jmp 0xcd9b8 movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rcx movq 0x68(%rsp), %r9 movq 0x68(%rsp), %rax movq (%rcx), %rdx movq 0x8(%rcx), %rcx leaq 0x58(%rsp), %rsi xorl %r8d, %r8d movq %rax, (%rsp) callq 0x38b10 cmpl $0x0, %eax je 0xcd83b jmp 0xcd9b8 movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rcx movq 0x68(%rsp), %r9 movq 0x68(%rsp), %rax movq 0x10(%rcx), %rdx movq 0x18(%rcx), %rcx leaq 0x60(%rsp), %rsi xorl %r8d, %r8d movq %rax, (%rsp) callq 0x38b10 cmpl $0x0, %eax je 0xcd878 jmp 0xcd9b8 movq 0x68(%rsp), %rax movq %rax, 0x50(%rsp) cmpl $0x2, 0x8c(%rsp) jle 0xcd8e5 movq 0x80(%rsp), %rax movq 0x20(%rax), %rdi movq 0x28(%rax), %rsi callq 0x2e260 cmpl $0x0, %eax jne 0xcd8e5 movq 0x90(%rsp), %rdi movq 0x80(%rsp), %rcx movq 0x68(%rsp), %r9 movq 0x68(%rsp), %rax movq 0x20(%rcx), %rdx movq 0x28(%rcx), %rcx leaq 0x50(%rsp), %rsi xorl %r8d, %r8d movq %rax, (%rsp) callq 0x38b10 cmpl $0x0, %eax je 0xcd8e3 jmp 0xcd9b8 jmp 0xcd8e5 movq 0x50(%rsp), %rdi subq 0x60(%rsp), %rdi movq 0x68(%rsp), %rsi subq 0x58(%rsp), %rsi callq 0x87b60 movq %rax, 0x48(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x60(%rsp), %rcx xorl %eax, %eax cmpq 0x58(%rsp), %rcx movb %al, 0x37(%rsp) jge 0xcd959 movq 0x58(%rsp), %rax movq 0x60(%rsp), %rcx addq 0x48(%rsp), %rcx cmpq %rcx, %rax setl %al movb %al, 0x37(%rsp) movq 0x28(%rsp), %r9 movq 0x20(%rsp), %r8 movq 0x18(%rsp), %rcx movq 0x10(%rsp), %rdi movb 0x37(%rsp), %sil movl $0x1, %eax movl $0xffffffff, %edx # imm = 0xFFFFFFFF testb $0x1, %sil cmovnel %edx, %eax movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx movl %eax, (%rsp) callq 0x876e0 cmpl $0x0, %eax je 0xcd99c jmp 0xcd9b8 movq 0x70(%rsp), %rax movq %rax, 0xa8(%rsp) movq 0x78(%rsp), %rax movq %rax, 0xb0(%rsp) jmp 0xcd9e6 movq 0x90(%rsp), %rdi movq 0x70(%rsp), %rsi movq 0x78(%rsp), %rdx callq 0x23c90 movl $0x0, 0xa8(%rsp) movq $0x6, 0xb0(%rsp) movq 0xa8(%rsp), %rax movq 0xb0(%rsp), %rdx addq $0xb8, %rsp retq nop
js_array_copyWithin: sub rsp, 0B8h mov [rsp+0B8h+var_20], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_28], rdi mov [rsp+0B8h+var_2C], ecx mov [rsp+0B8h+var_38], r8 mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_20] mov rdx, [rsp+0B8h+var_18] call JS_ToObject mov [rsp+0B8h+var_80], rax mov [rsp+0B8h+var_78], rdx mov rax, [rsp+0B8h+var_80] mov [rsp+0B8h+var_48], rax mov rax, [rsp+0B8h+var_78] mov [rsp+0B8h+var_40], rax mov rdi, [rsp+0B8h+var_28] mov rdx, [rsp+0B8h+var_48] mov rcx, [rsp+0B8h+var_40] lea rsi, [rsp+0B8h+var_50] call js_get_length64 cmp eax, 0 jz short loc_CD7FF jmp loc_CD9B8 loc_CD7FF: mov rdi, [rsp+0B8h+var_28] mov rcx, [rsp+0B8h+var_38] mov r9, [rsp+0B8h+var_50] mov rax, [rsp+0B8h+var_50] mov rdx, [rcx] mov rcx, [rcx+8] lea rsi, [rsp+0B8h+var_60] xor r8d, r8d mov [rsp+0B8h+var_B8], rax call JS_ToInt64Clamp cmp eax, 0 jz short loc_CD83B jmp loc_CD9B8 loc_CD83B: mov rdi, [rsp+0B8h+var_28] mov rcx, [rsp+0B8h+var_38] mov r9, [rsp+0B8h+var_50] mov rax, [rsp+0B8h+var_50] mov rdx, [rcx+10h] mov rcx, [rcx+18h] lea rsi, [rsp+0B8h+var_58] xor r8d, r8d mov [rsp+0B8h+var_B8], rax call JS_ToInt64Clamp cmp eax, 0 jz short loc_CD878 jmp loc_CD9B8 loc_CD878: mov rax, [rsp+0B8h+var_50] mov [rsp+0B8h+var_68], rax cmp [rsp+0B8h+var_2C], 2 jle short loc_CD8E5 mov rax, [rsp+0B8h+var_38] mov rdi, [rax+20h] mov rsi, [rax+28h] call JS_IsUndefined_0 cmp eax, 0 jnz short loc_CD8E5 mov rdi, [rsp+0B8h+var_28] mov rcx, [rsp+0B8h+var_38] mov r9, [rsp+0B8h+var_50] mov rax, [rsp+0B8h+var_50] mov rdx, [rcx+20h] mov rcx, [rcx+28h] lea rsi, [rsp+0B8h+var_68] xor r8d, r8d mov [rsp+0B8h+var_B8], rax call JS_ToInt64Clamp cmp eax, 0 jz short loc_CD8E3 jmp loc_CD9B8 loc_CD8E3: jmp short $+2 loc_CD8E5: mov rdi, [rsp+0B8h+var_68] sub rdi, [rsp+0B8h+var_58] mov rsi, [rsp+0B8h+var_50] sub rsi, [rsp+0B8h+var_60] call min_int64 mov [rsp+0B8h+var_70], rax mov rax, [rsp+0B8h+var_28] mov [rsp+0B8h+var_A8], rax mov rax, [rsp+0B8h+var_60] mov [rsp+0B8h+var_A0], rax mov rax, [rsp+0B8h+var_58] mov [rsp+0B8h+var_98], rax mov rax, [rsp+0B8h+var_70] mov [rsp+0B8h+var_90], rax mov rcx, [rsp+0B8h+var_58] xor eax, eax cmp rcx, [rsp+0B8h+var_60] mov [rsp+0B8h+var_81], al jge short loc_CD959 mov rax, [rsp+0B8h+var_60] mov rcx, [rsp+0B8h+var_58] add rcx, [rsp+0B8h+var_70] cmp rax, rcx setl al mov [rsp+0B8h+var_81], al loc_CD959: mov r9, [rsp+0B8h+var_90] mov r8, [rsp+0B8h+var_98] mov rcx, [rsp+0B8h+var_A0] mov rdi, [rsp+0B8h+var_A8] mov sil, [rsp+0B8h+var_81] mov eax, 1 mov edx, 0FFFFFFFFh test sil, 1 cmovnz eax, edx mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] mov dword ptr [rsp+0B8h+var_B8], eax call JS_CopySubArray cmp eax, 0 jz short loc_CD99C jmp short loc_CD9B8 loc_CD99C: mov rax, [rsp+0B8h+var_48] mov [rsp+0B8h+var_10], rax mov rax, [rsp+0B8h+var_40] mov [rsp+0B8h+var_8], rax jmp short loc_CD9E6 loc_CD9B8: mov rdi, [rsp+0B8h+var_28] mov rsi, [rsp+0B8h+var_48] mov rdx, [rsp+0B8h+var_40] call JS_FreeValue mov dword ptr [rsp+0B8h+var_10], 0 mov [rsp+0B8h+var_8], 6 loc_CD9E6: mov rax, [rsp+0B8h+var_10] mov rdx, [rsp+0B8h+var_8] add rsp, 0B8h retn
_DWORD * js_array_copyWithin( long long a1, _DWORD *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rdx double v15; // xmm4_8 double v16; // xmm5_8 int v17; // eax bool v19; // [rsp+37h] [rbp-81h] long long v20; // [rsp+48h] [rbp-70h] long long v21; // [rsp+50h] [rbp-68h] BYREF long long v22; // [rsp+58h] [rbp-60h] BYREF long long v23; // [rsp+60h] [rbp-58h] BYREF long long v24; // [rsp+68h] [rbp-50h] BYREF _DWORD *v25; // [rsp+70h] [rbp-48h] long long v26; // [rsp+78h] [rbp-40h] long long v27; // [rsp+80h] [rbp-38h] int v28; // [rsp+8Ch] [rbp-2Ch] long long v29; // [rsp+90h] [rbp-28h] _DWORD *v30; // [rsp+98h] [rbp-20h] long long v31; // [rsp+A0h] [rbp-18h] _DWORD *v32; // [rsp+A8h] [rbp-10h] long long v33; // [rsp+B0h] [rbp-8h] v30 = a2; v31 = a3; v29 = a1; v28 = a4; v27 = a5; v25 = JS_ToObject(a1, a2, a3, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6); v26 = v14; if ( (unsigned int)js_get_length64(a1, &v24, (int)v25, v14) ) goto LABEL_13; if ( (unsigned int)JS_ToInt64Clamp(v29, &v22, *(_DWORD **)v27, *(_QWORD *)(v27 + 8), 0LL, v24, v24) ) goto LABEL_13; if ( (unsigned int)JS_ToInt64Clamp(v29, &v23, *(_DWORD **)(v27 + 16), *(_QWORD *)(v27 + 24), 0LL, v24, v24) ) goto LABEL_13; v21 = v24; if ( v28 > 2 && !JS_IsUndefined_0(*(_QWORD *)(v27 + 32), *(_QWORD *)(v27 + 40)) && (unsigned int)JS_ToInt64Clamp(v29, &v21, *(_DWORD **)(v27 + 32), *(_QWORD *)(v27 + 40), 0LL, v24, v24) ) { goto LABEL_13; } v20 = min_int64(v21 - v23, v24 - v22); v19 = 0; if ( v23 < v22 ) v19 = v22 < v20 + v23; v17 = 1; if ( v19 ) v17 = -1; if ( (unsigned int)JS_CopySubArray(v29, (long long)v25, v26, v22, v23, v20, a7, a8, a9, a10, v15, v16, a13, a14, v17) ) { LABEL_13: JS_FreeValue(v29, (long long)v25, v26); LODWORD(v32) = 0; v33 = 6LL; } else { v32 = v25; v33 = v26; } return v32; }
js_array_copyWithin: SUB RSP,0xb8 MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x90],RDI MOV dword ptr [RSP + 0x8c],ECX MOV qword ptr [RSP + 0x80],R8 MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x98] MOV RDX,qword ptr [RSP + 0xa0] CALL 0x00137770 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x78] LEA RSI,[RSP + 0x68] CALL 0x0012df60 CMP EAX,0x0 JZ 0x001cd7ff JMP 0x001cd9b8 LAB_001cd7ff: MOV RDI,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RSP + 0x80] MOV R9,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RCX] MOV RCX,qword ptr [RCX + 0x8] LEA RSI,[RSP + 0x58] XOR R8D,R8D MOV qword ptr [RSP],RAX CALL 0x00138b10 CMP EAX,0x0 JZ 0x001cd83b JMP 0x001cd9b8 LAB_001cd83b: MOV RDI,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RSP + 0x80] MOV R9,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RCX + 0x10] MOV RCX,qword ptr [RCX + 0x18] LEA RSI,[RSP + 0x60] XOR R8D,R8D MOV qword ptr [RSP],RAX CALL 0x00138b10 CMP EAX,0x0 JZ 0x001cd878 JMP 0x001cd9b8 LAB_001cd878: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x50],RAX CMP dword ptr [RSP + 0x8c],0x2 JLE 0x001cd8e5 MOV RAX,qword ptr [RSP + 0x80] MOV RDI,qword ptr [RAX + 0x20] MOV RSI,qword ptr [RAX + 0x28] CALL 0x0012e260 CMP EAX,0x0 JNZ 0x001cd8e5 MOV RDI,qword ptr [RSP + 0x90] MOV RCX,qword ptr [RSP + 0x80] MOV R9,qword ptr [RSP + 0x68] MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RCX + 0x20] MOV RCX,qword ptr [RCX + 0x28] LEA RSI,[RSP + 0x50] XOR R8D,R8D MOV qword ptr [RSP],RAX CALL 0x00138b10 CMP EAX,0x0 JZ 0x001cd8e3 JMP 0x001cd9b8 LAB_001cd8e3: JMP 0x001cd8e5 LAB_001cd8e5: MOV RDI,qword ptr [RSP + 0x50] SUB RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x68] SUB RSI,qword ptr [RSP + 0x58] CALL 0x00187b60 MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x28],RAX MOV RCX,qword ptr [RSP + 0x60] XOR EAX,EAX CMP RCX,qword ptr [RSP + 0x58] MOV byte ptr [RSP + 0x37],AL JGE 0x001cd959 MOV RAX,qword ptr [RSP + 0x58] MOV RCX,qword ptr [RSP + 0x60] ADD RCX,qword ptr [RSP + 0x48] CMP RAX,RCX SETL AL MOV byte ptr [RSP + 0x37],AL LAB_001cd959: MOV R9,qword ptr [RSP + 0x28] MOV R8,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RSP + 0x10] MOV SIL,byte ptr [RSP + 0x37] MOV EAX,0x1 MOV EDX,0xffffffff TEST SIL,0x1 CMOVNZ EAX,EDX MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] MOV dword ptr [RSP],EAX CALL 0x001876e0 CMP EAX,0x0 JZ 0x001cd99c JMP 0x001cd9b8 LAB_001cd99c: MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0xa8],RAX MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0xb0],RAX JMP 0x001cd9e6 LAB_001cd9b8: MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x70] MOV RDX,qword ptr [RSP + 0x78] CALL 0x00123c90 MOV dword ptr [RSP + 0xa8],0x0 MOV qword ptr [RSP + 0xb0],0x6 LAB_001cd9e6: MOV RAX,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] ADD RSP,0xb8 RET
int1 [16] js_array_copyWithin(int8 param_1,int8 param_2,int8 param_3,int param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; int4 uVar3; long lVar4; int4 uVar5; long local_68; long local_60; long local_58; long local_50; int1 local_48 [16]; int8 *local_38; int local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_48 = JS_ToObject(param_1,param_2,param_3); iVar2 = js_get_length64(local_28,&local_50,local_48._0_8_,local_48._8_8_); if (iVar2 == 0) { iVar2 = JS_ToInt64Clamp(local_28,&local_60,*local_38,local_38[1],0,local_50,local_50); if (iVar2 == 0) { lVar4 = local_50; iVar2 = JS_ToInt64Clamp(local_28,&local_58,local_38[2],local_38[3],0,local_50,local_50); uVar5 = (int4)((ulong)lVar4 >> 0x20); if (iVar2 == 0) { local_68 = local_50; if (2 < local_2c) { iVar2 = JS_IsUndefined(local_38[4],local_38[5]); if (iVar2 == 0) { lVar4 = local_50; iVar2 = JS_ToInt64Clamp(local_28,&local_68,local_38[4],local_38[5],0,local_50,local_50); uVar5 = (int4)((ulong)lVar4 >> 0x20); if (iVar2 != 0) goto LAB_001cd9b8; } } lVar4 = min_int64(local_68 - local_58,local_50 - local_60); uVar3 = 1; if (local_58 < local_60 && local_60 < local_58 + lVar4) { uVar3 = 0xffffffff; } iVar2 = JS_CopySubArray(local_28,local_48._0_8_,local_48._8_8_,local_60,local_58,lVar4, CONCAT44(uVar5,uVar3)); if (iVar2 == 0) { local_10 = local_48._0_4_; uStack_c = local_48._4_4_; local_8 = local_48._8_8_; goto LAB_001cd9e6; } } } } LAB_001cd9b8: JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_); local_10 = 0; local_8 = 6; LAB_001cd9e6: auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
31,519
spdlog::details::short_filename_formatter<spdlog::details::null_scoped_padder>::basename(char const*)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h
static const char *basename(const char *filename) { // if the size is 2 (1 character + null terminator) we can use the more efficient strrchr // the branch will be elided by optimizations if (sizeof(os::folder_seps) == 2) { const char *rv = std::strrchr(filename, os::folder_seps[0]); return rv != nullptr ? rv + 1 : filename; } else { const std::reverse_iterator<const char *> begin(filename + std::strlen(filename)); const std::reverse_iterator<const char *> end(filename); const auto it = std::find_first_of(begin, end, std::begin(os::folder_seps), std::end(os::folder_seps) - 1); return it != end ? it.base() : filename; } }
O0
c
spdlog::details::short_filename_formatter<spdlog::details::null_scoped_padder>::basename(char const*): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movsbl 0xbfe00(%rip), %esi # 0x10d2c5 callq 0x14770 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) je 0x4d4e6 movq 0x8(%rsp), %rax addq $0x1, %rax movq %rax, (%rsp) jmp 0x4d4ef movq 0x10(%rsp), %rax movq %rax, (%rsp) movq (%rsp), %rax addq $0x18, %rsp retq nopl (%rax,%rax)
_ZN6spdlog7details24short_filename_formatterINS0_18null_scoped_padderEE8basenameEPKc: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rdi, [rsp+18h+var_8] movsx esi, cs:_ZN6spdlog7details2osL11folder_sepsE; spdlog::details::os::folder_seps call _strrchr mov [rsp+18h+var_10], rax cmp [rsp+18h+var_10], 0 jz short loc_4D4E6 mov rax, [rsp+18h+var_10] add rax, 1 mov [rsp+18h+var_18], rax jmp short loc_4D4EF loc_4D4E6: mov rax, [rsp+18h+var_8] mov [rsp+18h+var_18], rax loc_4D4EF: mov rax, [rsp+18h+var_18] add rsp, 18h retn
long long spdlog::details::short_filename_formatter<spdlog::details::null_scoped_padder>::basename(long long a1) { long long v3; // [rsp+8h] [rbp-10h] v3 = strrchr(a1, (unsigned int)spdlog::details::os::folder_seps); if ( v3 ) return v3 + 1; else return a1; }
basename: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV RDI,qword ptr [RSP + 0x10] MOVSX ESI,byte ptr [0x0020d2c5] CALL 0x00114770 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JZ 0x0014d4e6 MOV RAX,qword ptr [RSP + 0x8] ADD RAX,0x1 MOV qword ptr [RSP],RAX JMP 0x0014d4ef LAB_0014d4e6: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP],RAX LAB_0014d4ef: MOV RAX,qword ptr [RSP] ADD RSP,0x18 RET
/* spdlog::details::short_filename_formatter<spdlog::details::null_scoped_padder>::basename(char const*) */ char * spdlog::details::short_filename_formatter<spdlog::details::null_scoped_padder>::basename (char *param_1) { char *pcVar1; char *local_18; pcVar1 = strrchr(param_1,(int)os::folder_seps); local_18 = param_1; if (pcVar1 != (char *)0x0) { local_18 = pcVar1 + 1; } return local_18; }
31,520
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](unsigned long)
monkey531[P]llama/common/json.hpp
reference operator[](size_type idx) { // implicitly convert null value to an empty array if (is_null()) { m_data.m_type = value_t::array; m_data.m_value.array = create<array_t>(); assert_invariant(); } // operator[] only works for arrays if (JSON_HEDLEY_LIKELY(is_array())) { // fill up array with null values if given idx is outside range if (idx >= m_data.m_value.array->size()) { #if JSON_DIAGNOSTICS // remember array size & capacity before resizing const auto old_size = m_data.m_value.array->size(); const auto old_capacity = m_data.m_value.array->capacity(); #endif m_data.m_value.array->resize(idx + 1); #if JSON_DIAGNOSTICS if (JSON_HEDLEY_UNLIKELY(m_data.m_value.array->capacity() != old_capacity)) { // capacity has changed: update all parents set_parents(); } else { // set parent for values added above set_parents(begin() + static_cast<typename iterator::difference_type>(old_size), static_cast<typename iterator::difference_type>(idx + 1 - old_size)); } #endif assert_invariant(); } return m_data.m_value.array->operator[](idx); } JSON_THROW(type_error::create(305, detail::concat("cannot use operator[] with a numeric argument with ", type_name()), this)); }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[](unsigned long): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rsi, %r14 movq %rdi, %rbx movb (%rdi), %al testb %al, %al jne 0x7d981 movb $0x2, (%rbx) callq 0x3db48 movq %rax, 0x8(%rbx) pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3da0e movb (%rbx), %al cmpb $0x2, %al jne 0x7d9ca movq 0x8(%rbx), %rdi movq (%rdi), %rax movq 0x8(%rdi), %rcx subq %rax, %rcx sarq $0x4, %rcx cmpq %r14, %rcx ja 0x7d9b7 leaq 0x1(%r14), %rsi callq 0x7dbf4 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3da0e movq 0x8(%rbx), %rax movq (%rax), %rax shlq $0x4, %r14 addq %rax, %r14 movq %r14, %rax addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq pushq $0x20 popq %rdi callq 0x24460 movq %rax, %r14 movq %rbx, %rdi callq 0x434f0 leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x39254(%rip), %rsi # 0xb6c40 leaq 0x10(%rsp), %rdi callq 0x786ce movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %r14, %rdi movl $0x131, %esi # imm = 0x131 movq %rbx, %rcx callq 0x433a4 xorl %ebp, %ebp leaq 0x80521(%rip), %rsi # 0xfdf38 leaq -0x3d99e(%rip), %rdx # 0x40080 movq %r14, %rdi callq 0x24ee0 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x251b8 testb %bpl, %bpl jne 0x7da3d jmp 0x7da45 movq %rax, %rbx movq %r14, %rdi callq 0x24670 movq %rbx, %rdi callq 0x24f60 nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm: push rbp; char push r14; int push rbx; int sub rsp, 30h mov r14, rsi mov rbx, rdi mov al, [rdi] test al, al jnz short loc_7D981 mov byte ptr [rbx], 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>() mov [rbx+8], rax 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) mov al, [rbx] loc_7D981: cmp al, 2 jnz short loc_7D9CA mov rdi, [rbx+8] mov rax, [rdi] mov rcx, [rdi+8] sub rcx, rax sar rcx, 4 cmp rcx, r14 ja short loc_7D9B7 lea rsi, [r14+1] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6resizeEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::resize(ulong) 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) mov rax, [rbx+8] mov rax, [rax] loc_7D9B7: shl r14, 4 add r14, rax mov rax, r14 add rsp, 30h pop rbx pop r14 pop rbp retn loc_7D9CA: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax mov rdi, rbx call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+48h+var_40] mov [rdx], rax lea rsi, aCannotUseOpera; "cannot use operator[] with a numeric ar"... lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA52_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>(char const(&)[52],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, r14; this mov esi, 131h; int mov rcx, rbx call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax lea rdi, [rsp+48h+var_38]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_7DA3D jmp short loc_7DA45 mov rbx, rax loc_7DA3D: mov rdi, r14; void * call ___cxa_free_exception loc_7DA45: mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]( long long a1, unsigned long long a2) { char v3; // al long long *v4; // rdi long long v5; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // r14 const char *v8; // [rsp+8h] [rbp-40h] BYREF _BYTE v9[56]; // [rsp+10h] [rbp-38h] BYREF v3 = *(_BYTE *)a1; if ( !*(_BYTE *)a1 ) { *(_BYTE *)a1 = 2; *(_QWORD *)(a1 + 8) = 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>::create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>(); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); v3 = *(_BYTE *)a1; } if ( v3 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[52],char const*>( (long long)v9, (long long)"cannot use operator[] with a numeric argument with ", &v8); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 305, (long long)v9); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v4 = *(long long **)(a1 + 8); v5 = *v4; if ( (v4[1] - *v4) >> 4 <= a2 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::resize( v4, a2 + 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>::assert_invariant((char *)a1); v5 = **(_QWORD **)(a1 + 8); } return v5 + 16 * a2; }
operator[]: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RSI MOV RBX,RDI MOV AL,byte ptr [RDI] TEST AL,AL JNZ 0x0017d981 MOV byte ptr [RBX],0x2 CALL 0x0013db48 MOV qword ptr [RBX + 0x8],RAX PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013da0e MOV AL,byte ptr [RBX] LAB_0017d981: CMP AL,0x2 JNZ 0x0017d9ca MOV RDI,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RDI] MOV RCX,qword ptr [RDI + 0x8] SUB RCX,RAX SAR RCX,0x4 CMP RCX,R14 JA 0x0017d9b7 LEA RSI,[R14 + 0x1] CALL 0x0017dbf4 PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013da0e MOV RAX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RAX] LAB_0017d9b7: SHL R14,0x4 ADD R14,RAX MOV RAX,R14 ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0017d9ca: PUSH 0x20 POP RDI CALL 0x00124460 MOV R14,RAX MOV RDI,RBX CALL 0x001434f0 LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_0017d9e5: LEA RSI,[0x1b6c40] LEA RDI,[RSP + 0x10] CALL 0x001786ce MOV BPL,0x1 LAB_0017d9f9: LEA RDX,[RSP + 0x10] MOV RDI,R14 MOV ESI,0x131 MOV RCX,RBX CALL 0x001433a4 XOR EBP,EBP LEA RSI,[0x1fdf38] LEA RDX,[0x140080] MOV RDI,R14 CALL 0x00124ee0
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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[](unsigned long) */ long __thiscall nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[](basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *this,ulong param_1) { vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *this_00; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> bVar1; vector *pvVar2; long lVar3; int8 uVar4; char *local_40; detail local_38 [32]; bVar1 = *this; if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x0) { *this = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2; pvVar2 = create<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> (); *(vector **)(this + 8) = pvVar2; assert_invariant(SUB81(this,0)); bVar1 = *this; } if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x2) { this_00 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(this + 8); lVar3 = *(long *)this_00; if ((ulong)(*(long *)(this_00 + 8) - lVar3 >> 4) <= param_1) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::resize(this_00,param_1 + 1); assert_invariant(SUB81(this,0)); lVar3 = **(long **)(this + 8); } return param_1 * 0x10 + lVar3; } uVar4 = __cxa_allocate_exception(0x20); local_40 = (char *)type_name(this); /* try { // try from 0017d9e5 to 0017d9f5 has its CatchHandler @ 0017da3a */ detail::concat<std::__cxx11::string,char_const(&)[52],char_const*> (local_38,"cannot use operator[] with a numeric argument with ",&local_40); /* try { // try from 0017d9f9 to 0017da25 has its CatchHandler @ 0017da26 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar4,0x131,local_38,this); /* WARNING: Subroutine does not return */ __cxa_throw(uVar4,&detail::type_error::typeinfo,detail::exception::~exception); }
31,521
unpack_dirname
eloqsql/mysys/mf_pack.c
size_t unpack_dirname(char * to, const char *from) { size_t length, h_length; char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion; DBUG_ENTER("unpack_dirname"); length= normalize_dirname(buff, from); if (buff[0] == FN_HOMELIB) { suffix=buff+1; tilde_expansion=expand_tilde(&suffix); if (tilde_expansion) { length-= (size_t) (suffix-buff)-1; if (length+(h_length= strlen(tilde_expansion)) <= FN_REFLEN) { if ((h_length > 0) && (tilde_expansion[h_length-1] == FN_LIBCHAR)) h_length--; if (buff+h_length < suffix) bmove(buff+h_length,suffix,length); else bmove_upp((uchar*) buff+h_length+length, (uchar*) suffix+length, length); bmove(buff,tilde_expansion,h_length); } } } #ifdef USE_SYMDIR if (my_use_symdir) symdirget(buff); #endif DBUG_RETURN(system_filename(to,buff)); /* Fix for open */ }
O3
c
unpack_dirname: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x228, %rsp # imm = 0x228 movq %rdi, -0x250(%rbp) movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq -0x240(%rbp), %r13 movq %r13, %rdi callq 0x9b313 cmpb $0x7e, (%r13) jne 0x9b4d5 movq %rax, %r14 leaq -0x23f(%rbp), %r15 cmpb $0x2f, (%r15) jne 0x9b3f5 leaq 0xb6c9a5(%rip), %rbx # 0xc07d98 jmp 0x9b44e movq %r15, %rdi movl $0x2f, %esi callq 0x29440 movq %rax, %r12 testq %rax, %rax jne 0x9b415 movq %r15, %rdi callq 0xd7074 movq %rax, %r12 movb (%r12), %al movb %al, -0x241(%rbp) movb $0x0, (%r12) movq %r15, %rdi callq 0x295b0 movq %rax, %rbx movb -0x241(%rbp), %al movb %al, (%r12) callq 0x298b0 testq %rbx, %rbx je 0x9b4d5 addq $0x20, %rbx movq %r12, %r15 movq (%rbx), %r12 testq %r12, %r12 je 0x9b4d5 addq %r13, %r14 subq %r15, %r14 movq %r12, %rdi callq 0x29350 movq %rax, %r13 addq %r14, %rax incq %rax cmpq $0x200, %rax # imm = 0x200 ja 0x9b4d5 testq %r13, %r13 je 0x9b48a xorl %eax, %eax cmpb $0x2f, -0x1(%r12,%r13) sete %al subq %rax, %r13 jmp 0x9b48d xorl %r13d, %r13d incq %r14 leaq -0x240(,%r13), %rdi addq %rbp, %rdi cmpq %r15, %rdi jae 0x9b4ad movq %r15, %rsi movq %r14, %rdx callq 0x29120 jmp 0x9b4be addq %r14, %rdi addq %r14, %r15 movq %r15, %rsi movq %r14, %rdx callq 0xaabbc leaq -0x240(%rbp), %rdi movl $0x205, %ecx # imm = 0x205 movq %r12, %rsi movq %r13, %rdx callq 0x294c0 leaq -0x240(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF movq -0x250(%rbp), %rbx movq %rbx, %rdi callq 0xd70bc movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x9b514 subq %rbx, %rax addq $0x228, %rsp # imm = 0x228 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
unpack_dirname: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 228h mov [rbp+var_250], rdi mov rax, fs:28h mov [rbp+var_30], rax lea r13, [rbp+var_240] mov rdi, r13 call normalize_dirname cmp byte ptr [r13+0], 7Eh ; '~' jnz loc_9B4D5 mov r14, rax lea r15, [rbp+var_23F] cmp byte ptr [r15], 2Fh ; '/' jnz short loc_9B3F5 lea rbx, home_dir jmp short loc_9B44E loc_9B3F5: mov rdi, r15 mov esi, 2Fh ; '/' call _strchr mov r12, rax test rax, rax jnz short loc_9B415 mov rdi, r15 call strend mov r12, rax loc_9B415: mov al, [r12] mov [rbp+var_241], al mov byte ptr [r12], 0 mov rdi, r15 call _getpwnam mov rbx, rax mov al, [rbp+var_241] mov [r12], al call _endpwent test rbx, rbx jz loc_9B4D5 add rbx, 20h ; ' ' mov r15, r12 loc_9B44E: mov r12, [rbx] test r12, r12 jz short loc_9B4D5 add r14, r13 sub r14, r15 mov rdi, r12 call _strlen mov r13, rax add rax, r14 inc rax cmp rax, 200h ja short loc_9B4D5 test r13, r13 jz short loc_9B48A xor eax, eax cmp byte ptr [r12+r13-1], 2Fh ; '/' setz al sub r13, rax jmp short loc_9B48D loc_9B48A: xor r13d, r13d loc_9B48D: inc r14 lea rdi, ds:0FFFFFFFFFFFFFDC0h[r13] add rdi, rbp cmp rdi, r15 jnb short loc_9B4AD mov rsi, r15 mov rdx, r14 call _memmove jmp short loc_9B4BE loc_9B4AD: add rdi, r14 add r15, r14 mov rsi, r15 mov rdx, r14 call bmove_upp loc_9B4BE: lea rdi, [rbp+var_240] mov ecx, 205h mov rsi, r12 mov rdx, r13 call ___memmove_chk loc_9B4D5: lea rsi, [rbp+var_240] mov edx, 1FFh mov rbx, [rbp+var_250] mov rdi, rbx call strmake mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_9B514 sub rax, rbx add rsp, 228h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_9B514: call ___stack_chk_fail
long long unpack_dirname(long long a1, _BYTE *a2) { long long v2; // rax long long v3; // r14 char *v4; // r15 _QWORD *v5; // rbx char *v6; // r12 long long v7; // rbx long long v8; // r12 _BYTE *v9; // r14 long long v10; // r13 long long v11; // r13 _BYTE *v12; // r14 char *v13; // rdi char v16; // [rsp+Fh] [rbp-241h] char v17; // [rsp+10h] [rbp-240h] BYREF _BYTE v18[527]; // [rsp+11h] [rbp-23Fh] BYREF unsigned long long v19; // [rsp+220h] [rbp-30h] long long savedregs; // [rsp+250h] [rbp+0h] BYREF v19 = __readfsqword(0x28u); v2 = normalize_dirname((long long)&v17, a2); if ( v17 != 126 ) return strmake(a1, &v17, 511LL) - a1; v3 = v2; v4 = v18; if ( v18[0] == 47 ) { v5 = &home_dir; LABEL_8: v8 = *v5; if ( *v5 ) { v9 = (_BYTE *)(&v18[v3 - 1] - v4); v10 = strlen(*v5); if ( (unsigned long long)&v9[v10 + 1] <= 0x200 ) { if ( v10 ) v11 = v10 - (*(_BYTE *)(v8 + v10 - 1) == 47); else v11 = 0LL; v12 = v9 + 1; v13 = (char *)&savedregs + v11 - 576; if ( v13 >= v4 ) bmove_upp(&v13[(_QWORD)v12], &v4[(_QWORD)v12]); else memmove(v13, v4, v12); __memmove_chk(&v17, v8, v11, 517LL); } } return strmake(a1, &v17, 511LL) - a1; } v6 = (char *)strchr(v18, 47LL); if ( !v6 ) v6 = (char *)strend(v18); v16 = *v6; *v6 = 0; v7 = getpwnam(v18); *v6 = v16; endpwent(); if ( v7 ) { v5 = (_QWORD *)(v7 + 32); v4 = v6; goto LABEL_8; } return strmake(a1, &v17, 511LL) - a1; }
unpack_dirname: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x228 MOV qword ptr [RBP + -0x250],RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA R13,[RBP + -0x240] MOV RDI,R13 CALL 0x0019b313 CMP byte ptr [R13],0x7e JNZ 0x0019b4d5 MOV R14,RAX LEA R15,[RBP + -0x23f] CMP byte ptr [R15],0x2f JNZ 0x0019b3f5 LEA RBX,[0xd07d98] JMP 0x0019b44e LAB_0019b3f5: MOV RDI,R15 MOV ESI,0x2f CALL 0x00129440 MOV R12,RAX TEST RAX,RAX JNZ 0x0019b415 MOV RDI,R15 CALL 0x001d7074 MOV R12,RAX LAB_0019b415: MOV AL,byte ptr [R12] MOV byte ptr [RBP + -0x241],AL MOV byte ptr [R12],0x0 MOV RDI,R15 CALL 0x001295b0 MOV RBX,RAX MOV AL,byte ptr [RBP + -0x241] MOV byte ptr [R12],AL CALL 0x001298b0 TEST RBX,RBX JZ 0x0019b4d5 ADD RBX,0x20 MOV R15,R12 LAB_0019b44e: MOV R12,qword ptr [RBX] TEST R12,R12 JZ 0x0019b4d5 ADD R14,R13 SUB R14,R15 MOV RDI,R12 CALL 0x00129350 MOV R13,RAX ADD RAX,R14 INC RAX CMP RAX,0x200 JA 0x0019b4d5 TEST R13,R13 JZ 0x0019b48a XOR EAX,EAX CMP byte ptr [R12 + R13*0x1 + -0x1],0x2f SETZ AL SUB R13,RAX JMP 0x0019b48d LAB_0019b48a: XOR R13D,R13D LAB_0019b48d: INC R14 LEA RDI,[-0x240 + R13*0x1] ADD RDI,RBP CMP RDI,R15 JNC 0x0019b4ad MOV RSI,R15 MOV RDX,R14 CALL 0x00129120 JMP 0x0019b4be LAB_0019b4ad: ADD RDI,R14 ADD R15,R14 MOV RSI,R15 MOV RDX,R14 CALL 0x001aabbc LAB_0019b4be: LEA RDI,[RBP + -0x240] MOV ECX,0x205 MOV RSI,R12 MOV RDX,R13 CALL 0x001294c0 LAB_0019b4d5: LEA RSI,[RBP + -0x240] MOV EDX,0x1ff MOV RBX,qword ptr [RBP + -0x250] MOV RDI,RBX CALL 0x001d70bc MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x0019b514 SUB RAX,RBX ADD RSP,0x228 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0019b514: CALL 0x00129270
long unpack_dirname(long param_1) { char *pcVar1; long lVar2; char *__src; passwd *ppVar3; size_t sVar4; char **ppcVar5; char *__dest; long lVar6; char *__n; long in_FS_OFFSET; char acStack_48f [559]; code *pcStack_260; long local_258; char local_249; char local_248 [528]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); pcStack_260 = (code *)0x19b3d1; local_258 = param_1; lVar2 = normalize_dirname(local_248); if (local_248[0] == '~') { pcVar1 = local_248 + 1; if (local_248[1] == '/') { ppcVar5 = (char **)&home_dir; __src = pcVar1; } else { pcStack_260 = (code *)0x19b402; __src = strchr(pcVar1,0x2f); if (__src == (char *)0x0) { pcStack_260 = (code *)0x19b412; __src = (char *)strend(pcVar1); } local_249 = *__src; *__src = '\0'; pcStack_260 = (code *)0x19b42c; ppVar3 = getpwnam(pcVar1); *__src = local_249; pcStack_260 = (code *)0x19b43e; endpwent(); if (ppVar3 == (passwd *)0x0) goto LAB_0019b4d5; ppcVar5 = &ppVar3->pw_dir; } pcVar1 = *ppcVar5; if (pcVar1 != (char *)0x0) { pcStack_260 = (code *)0x19b464; sVar4 = strlen(pcVar1); if (local_248 + sVar4 + (lVar2 - (long)__src) + 1 < (char *)0x201) { if (sVar4 == 0) { lVar6 = 0; } else { lVar6 = sVar4 - (pcVar1[sVar4 - 1] == '/'); } __n = local_248 + (lVar2 - (long)__src) + 1; __dest = local_248 + lVar6; if (__dest < __src) { pcStack_260 = (code *)0x19b4ab; memmove(__dest,__src,(size_t)__n); } else { pcStack_260 = (code *)0x19b4be; bmove_upp(__dest + (long)__n,__src + (long)__n,__n); } pcStack_260 = (code *)0x19b4d5; __memmove_chk(local_248,pcVar1,lVar6,0x205); } } } LAB_0019b4d5: lVar2 = local_258; pcStack_260 = (code *)0x19b4f0; lVar6 = strmake(local_258,local_248,0x1ff); if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return lVar6 - lVar2; } /* WARNING: Subroutine does not return */ pcStack_260 = system_filename; __stack_chk_fail(); }
31,522
ftxui::IsControl(unsigned int)
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/screen/string.cpp
bool IsControl(uint32_t ucs) { if (ucs == 0) { return true; } if (ucs < 32) { // NOLINT const uint32_t LINE_FEED = 10; return ucs != LINE_FEED; } if (ucs >= 0x7f && ucs < 0xa0) { // NOLINT return true; } return false; }
O3
cpp
ftxui::IsControl(unsigned int): testl %edi, %edi je 0x3a790 cmpl $0x1f, %edi ja 0x3a793 cmpl $0xa, %edi setne %al retq movb $0x1, %al retq addl $-0x7f, %edi cmpl $0x21, %edi setb %al retq
_ZN5ftxui9IsControlEj: test edi, edi jz short loc_3A790 cmp edi, 1Fh ja short loc_3A793 cmp edi, 0Ah setnz al retn loc_3A790: mov al, 1 retn loc_3A793: add edi, 0FFFFFF81h cmp edi, 21h ; '!' setb al retn
char ftxui::IsControl(ftxui *this) { if ( !(_DWORD)this ) return 1; if ( (unsigned int)this > 0x1F ) return (unsigned int)((_DWORD)this - 127) < 0x21; return (_DWORD)this != 10; }
IsControl: TEST EDI,EDI JZ 0x0013a790 CMP EDI,0x1f JA 0x0013a793 CMP EDI,0xa SETNZ AL RET LAB_0013a790: MOV AL,0x1 RET LAB_0013a793: ADD EDI,-0x7f CMP EDI,0x21 SETC AL RET
/* ftxui::IsControl(unsigned int) */ bool ftxui::IsControl(uint param_1) { if (param_1 == 0) { return true; } if (param_1 < 0x20) { return param_1 != 10; } return param_1 - 0x7f < 0x21; }
31,523
create_prepared_stmt(void*, PFS_thread*, PFS_program*, PFS_events_statements*, unsigned int, char const*, unsigned int)
eloqsql/storage/perfschema/pfs_prepared_stmt.cc
PFS_prepared_stmt* create_prepared_stmt(void *identity, PFS_thread *thread, PFS_program *pfs_program, PFS_events_statements *pfs_stmt, uint stmt_id, const char* stmt_name, uint stmt_name_length) { PFS_prepared_stmt *pfs= NULL; pfs_dirty_state dirty_state; /* Create a new record in prepared stmt stat array. */ pfs= global_prepared_stmt_container.allocate(& dirty_state); if (pfs != NULL) { /* Reset the stats. */ pfs->reset_data(); /* Do the assignments. */ pfs->m_identity= identity; pfs->m_sqltext_length= 0; if (stmt_name != NULL) { pfs->m_stmt_name_length= stmt_name_length; if (pfs->m_stmt_name_length > PS_NAME_LENGTH) pfs->m_stmt_name_length= PS_NAME_LENGTH; strncpy(pfs->m_stmt_name, stmt_name, pfs->m_stmt_name_length); } else pfs->m_stmt_name_length= 0; pfs->m_stmt_id= stmt_id; pfs->m_owner_thread_id= thread->m_thread_internal_id; /* If this statement prepare is called from a SP. */ if (pfs_program) { pfs->m_owner_object_type= pfs_program->m_type; strncpy(pfs->m_owner_object_schema, pfs_program->m_schema_name, pfs_program->m_schema_name_length); pfs->m_owner_object_schema_length= pfs_program->m_schema_name_length; strncpy(pfs->m_owner_object_name, pfs_program->m_object_name, pfs_program->m_object_name_length); pfs->m_owner_object_name_length= pfs_program->m_object_name_length; } else { pfs->m_owner_object_type= NO_OBJECT_TYPE; pfs->m_owner_object_schema_length= 0; pfs->m_owner_object_name_length= 0; } if (pfs_stmt) { if (pfs_program) pfs->m_owner_event_id= pfs_stmt->m_event.m_nesting_event_id; else pfs->m_owner_event_id= pfs_stmt->m_event.m_event_id; } /* Insert this record. */ pfs->m_lock.dirty_to_allocated(& dirty_state); } return pfs; }
O0
cpp
create_prepared_stmt(void*, PFS_thread*, PFS_program*, PFS_events_statements*, unsigned int, char const*, unsigned int): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movl 0x10(%rbp), %eax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq %r9, -0x30(%rbp) movq $0x0, -0x38(%rbp) leaq 0x3cf5b6(%rip), %rdi # 0x402578 leaq -0x3c(%rbp), %rsi callq 0x334a0 movq %rax, -0x38(%rbp) cmpq $0x0, -0x38(%rbp) je 0x3316a movq -0x38(%rbp), %rdi callq 0x32f20 movq -0x8(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x4e4(%rax) cmpq $0x0, -0x30(%rbp) je 0x3304e movl 0x10(%rbp), %ecx movq -0x38(%rbp), %rax movl %ecx, 0xe0(%rax) movq -0x38(%rbp), %rax cmpl $0xc0, 0xe0(%rax) jbe 0x3302f movq -0x38(%rbp), %rax movl $0xc0, 0xe0(%rax) movq -0x38(%rbp), %rdi addq $0x20, %rdi movq -0x30(%rbp), %rsi movq -0x38(%rbp), %rax movl 0xe0(%rax), %eax movl %eax, %edx callq 0x261a0 jmp 0x3305c movq -0x38(%rbp), %rax movl $0x0, 0xe0(%rax) movl -0x24(%rbp), %eax movl %eax, %ecx movq -0x38(%rbp), %rax movq %rcx, 0x18(%rax) movq -0x10(%rbp), %rax movq 0x850(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x4e8(%rax) cmpq $0x0, -0x18(%rbp) je 0x330fb movq -0x18(%rbp), %rax movl 0x10(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x4f8(%rax) movq -0x38(%rbp), %rdi addq $0x4fc, %rdi # imm = 0x4FC movq -0x18(%rbp), %rax movq 0x28(%rax), %rsi movq -0x18(%rbp), %rax movslq 0x30(%rax), %rdx callq 0x261a0 movq -0x18(%rbp), %rax movl 0x30(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x53c(%rax) movq -0x38(%rbp), %rdi addq $0x540, %rdi # imm = 0x540 movq -0x18(%rbp), %rax movq 0x18(%rax), %rsi movq -0x18(%rbp), %rax movslq 0x20(%rax), %rdx callq 0x261a0 movq -0x18(%rbp), %rax movl 0x20(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x580(%rax) jmp 0x33125 movq -0x38(%rbp), %rax movl $0x0, 0x4f8(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x53c(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x580(%rax) cmpq $0x0, -0x20(%rbp) je 0x3315d cmpq $0x0, -0x18(%rbp) je 0x33148 movq -0x20(%rbp), %rax movq 0x20(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x4f0(%rax) jmp 0x3315b movq -0x20(%rbp), %rax movq 0x8(%rax), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x4f0(%rax) jmp 0x3315d movq -0x38(%rbp), %rdi leaq -0x3c(%rbp), %rsi callq 0x2ca70 movq -0x38(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_Z20create_prepared_stmtPvP10PFS_threadP11PFS_programP21PFS_events_statementsjPKcj: push rbp mov rbp, rsp sub rsp, 40h mov eax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov [rbp+var_30], r9 mov [rbp+var_38], 0 lea rdi, global_prepared_stmt_container lea rsi, [rbp+var_3C] call _ZN29PFS_buffer_scalable_containerI17PFS_prepared_stmtLi1024ELi1024E24PFS_buffer_default_arrayIS0_E28PFS_buffer_default_allocatorIS0_EE8allocateEP15pfs_dirty_state; PFS_buffer_scalable_container<PFS_prepared_stmt,1024,1024,PFS_buffer_default_array<PFS_prepared_stmt>,PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate(pfs_dirty_state *) mov [rbp+var_38], rax cmp [rbp+var_38], 0 jz loc_3316A mov rdi, [rbp+var_38]; this call _ZN17PFS_prepared_stmt10reset_dataEv; PFS_prepared_stmt::reset_data(void) mov rcx, [rbp+var_8] mov rax, [rbp+var_38] mov [rax+10h], rcx mov rax, [rbp+var_38] mov dword ptr [rax+4E4h], 0 cmp [rbp+var_30], 0 jz short loc_3304E mov ecx, [rbp+arg_0] mov rax, [rbp+var_38] mov [rax+0E0h], ecx mov rax, [rbp+var_38] cmp dword ptr [rax+0E0h], 0C0h jbe short loc_3302F mov rax, [rbp+var_38] mov dword ptr [rax+0E0h], 0C0h loc_3302F: mov rdi, [rbp+var_38] add rdi, 20h ; ' ' mov rsi, [rbp+var_30] mov rax, [rbp+var_38] mov eax, [rax+0E0h] mov edx, eax call _strncpy jmp short loc_3305C loc_3304E: mov rax, [rbp+var_38] mov dword ptr [rax+0E0h], 0 loc_3305C: mov eax, [rbp+var_24] mov ecx, eax mov rax, [rbp+var_38] mov [rax+18h], rcx mov rax, [rbp+var_10] mov rcx, [rax+850h] mov rax, [rbp+var_38] mov [rax+4E8h], rcx cmp [rbp+var_18], 0 jz short loc_330FB mov rax, [rbp+var_18] mov ecx, [rax+10h] mov rax, [rbp+var_38] mov [rax+4F8h], ecx mov rdi, [rbp+var_38] add rdi, 4FCh mov rax, [rbp+var_18] mov rsi, [rax+28h] mov rax, [rbp+var_18] movsxd rdx, dword ptr [rax+30h] call _strncpy mov rax, [rbp+var_18] mov ecx, [rax+30h] mov rax, [rbp+var_38] mov [rax+53Ch], ecx mov rdi, [rbp+var_38] add rdi, 540h mov rax, [rbp+var_18] mov rsi, [rax+18h] mov rax, [rbp+var_18] movsxd rdx, dword ptr [rax+20h] call _strncpy mov rax, [rbp+var_18] mov ecx, [rax+20h] mov rax, [rbp+var_38] mov [rax+580h], ecx jmp short loc_33125 loc_330FB: mov rax, [rbp+var_38] mov dword ptr [rax+4F8h], 0 mov rax, [rbp+var_38] mov dword ptr [rax+53Ch], 0 mov rax, [rbp+var_38] mov dword ptr [rax+580h], 0 loc_33125: cmp [rbp+var_20], 0 jz short loc_3315D cmp [rbp+var_18], 0 jz short loc_33148 mov rax, [rbp+var_20] mov rcx, [rax+20h] mov rax, [rbp+var_38] mov [rax+4F0h], rcx jmp short loc_3315B loc_33148: mov rax, [rbp+var_20] mov rcx, [rax+8] mov rax, [rbp+var_38] mov [rax+4F0h], rcx loc_3315B: jmp short $+2 loc_3315D: mov rdi, [rbp+var_38] lea rsi, [rbp+var_3C] call _ZN8pfs_lock18dirty_to_allocatedEPK15pfs_dirty_state; pfs_lock::dirty_to_allocated(pfs_dirty_state const*) loc_3316A: mov rax, [rbp+var_38] add rsp, 40h pop rbp retn
PFS_prepared_stmt * create_prepared_stmt( long long a1, long long a2, long long a3, long long a4, unsigned int a5, long long a6, int a7) { unsigned int v7; // edx long long v8; // rcx int v10; // [rsp+4h] [rbp-3Ch] BYREF PFS_prepared_stmt *v11; // [rsp+8h] [rbp-38h] long long v12; // [rsp+10h] [rbp-30h] unsigned int v13; // [rsp+1Ch] [rbp-24h] long long v14; // [rsp+20h] [rbp-20h] long long v15; // [rsp+28h] [rbp-18h] long long v16; // [rsp+30h] [rbp-10h] long long v17; // [rsp+38h] [rbp-8h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; v11 = 0LL; v11 = (PFS_prepared_stmt *)PFS_buffer_scalable_container<PFS_prepared_stmt,1024,1024,PFS_buffer_default_array<PFS_prepared_stmt>,PFS_buffer_default_allocator<PFS_prepared_stmt>>::allocate( &global_prepared_stmt_container, &v10); if ( v11 ) { PFS_prepared_stmt::reset_data(v11); *((_QWORD *)v11 + 2) = v17; *((_DWORD *)v11 + 313) = 0; if ( v12 ) { *((_DWORD *)v11 + 56) = a7; if ( *((_DWORD *)v11 + 56) > 0xC0u ) *((_DWORD *)v11 + 56) = 192; strncpy((char *)v11 + 32, v12, *((unsigned int *)v11 + 56)); } else { *((_DWORD *)v11 + 56) = 0; } *((_QWORD *)v11 + 3) = v13; *((_QWORD *)v11 + 157) = *(_QWORD *)(v16 + 2128); if ( v15 ) { *((_DWORD *)v11 + 318) = *(_DWORD *)(v15 + 16); strncpy((char *)v11 + 1276, *(_QWORD *)(v15 + 40), *(int *)(v15 + 48)); *((_DWORD *)v11 + 335) = *(_DWORD *)(v15 + 48); strncpy((char *)v11 + 1344, *(_QWORD *)(v15 + 24), *(int *)(v15 + 32)); *((_DWORD *)v11 + 352) = *(_DWORD *)(v15 + 32); } else { *((_DWORD *)v11 + 318) = 0; *((_DWORD *)v11 + 335) = 0; *((_DWORD *)v11 + 352) = 0; } if ( v14 ) { if ( v15 ) v8 = *(_QWORD *)(v14 + 32); else v8 = *(_QWORD *)(v14 + 8); *((_QWORD *)v11 + 158) = v8; } pfs_lock::dirty_to_allocated(v11, &v10, v7); } return v11; }
create_prepared_stmt: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV dword ptr [RBP + -0x24],R8D MOV qword ptr [RBP + -0x30],R9 MOV qword ptr [RBP + -0x38],0x0 LEA RDI,[0x502578] LEA RSI,[RBP + -0x3c] CALL 0x001334a0 MOV qword ptr [RBP + -0x38],RAX CMP qword ptr [RBP + -0x38],0x0 JZ 0x0013316a MOV RDI,qword ptr [RBP + -0x38] CALL 0x00132f20 MOV RCX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4e4],0x0 CMP qword ptr [RBP + -0x30],0x0 JZ 0x0013304e MOV ECX,dword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xe0],ECX MOV RAX,qword ptr [RBP + -0x38] CMP dword ptr [RAX + 0xe0],0xc0 JBE 0x0013302f MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xe0],0xc0 LAB_0013302f: MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x20 MOV RSI,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0xe0] MOV EDX,EAX CALL 0x001261a0 JMP 0x0013305c LAB_0013304e: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xe0],0x0 LAB_0013305c: MOV EAX,dword ptr [RBP + -0x24] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x850] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x4e8],RCX CMP qword ptr [RBP + -0x18],0x0 JZ 0x001330fb MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4f8],ECX MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x4fc MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0x28] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RDX,dword ptr [RAX + 0x30] CALL 0x001261a0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x30] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x53c],ECX MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x540 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x18] MOVSXD RDX,dword ptr [RAX + 0x20] CALL 0x001261a0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x580],ECX JMP 0x00133125 LAB_001330fb: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4f8],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x53c],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x580],0x0 LAB_00133125: CMP qword ptr [RBP + -0x20],0x0 JZ 0x0013315d CMP qword ptr [RBP + -0x18],0x0 JZ 0x00133148 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x4f0],RCX JMP 0x0013315b LAB_00133148: MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x4f0],RCX LAB_0013315b: JMP 0x0013315d LAB_0013315d: MOV RDI,qword ptr [RBP + -0x38] LEA RSI,[RBP + -0x3c] CALL 0x0012ca70 LAB_0013316a: MOV RAX,qword ptr [RBP + -0x38] ADD RSP,0x40 POP RBP RET
/* create_prepared_stmt(void*, PFS_thread*, PFS_program*, PFS_events_statements*, unsigned int, char const*, unsigned int) */ PFS_prepared_stmt * create_prepared_stmt (void *param_1,PFS_thread *param_2,PFS_program *param_3,PFS_events_statements *param_4, uint param_5,char *param_6,uint param_7) { pfs_dirty_state local_44 [4]; PFS_prepared_stmt *local_40; char *local_38; uint local_2c; PFS_events_statements *local_28; PFS_program *local_20; PFS_thread *local_18; void *local_10; local_40 = (PFS_prepared_stmt *)0x0; local_38 = param_6; local_2c = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; local_40 = (PFS_prepared_stmt *) PFS_buffer_scalable_container<PFS_prepared_stmt,1024,1024,PFS_buffer_default_array<PFS_prepared_stmt>,PFS_buffer_default_allocator<PFS_prepared_stmt>> ::allocate((PFS_buffer_scalable_container<PFS_prepared_stmt,1024,1024,PFS_buffer_default_array<PFS_prepared_stmt>,PFS_buffer_default_allocator<PFS_prepared_stmt>> *)global_prepared_stmt_container,local_44); if (local_40 != (PFS_prepared_stmt *)0x0) { PFS_prepared_stmt::reset_data(local_40); *(void **)(local_40 + 0x10) = local_10; *(int4 *)(local_40 + 0x4e4) = 0; if (local_38 == (char *)0x0) { *(int4 *)(local_40 + 0xe0) = 0; } else { *(uint *)(local_40 + 0xe0) = param_7; if (0xc0 < *(uint *)(local_40 + 0xe0)) { *(int4 *)(local_40 + 0xe0) = 0xc0; } strncpy((char *)(local_40 + 0x20),local_38,(ulong)*(uint *)(local_40 + 0xe0)); } *(ulong *)(local_40 + 0x18) = (ulong)local_2c; *(int8 *)(local_40 + 0x4e8) = *(int8 *)(local_18 + 0x850); if (local_20 == (PFS_program *)0x0) { *(int4 *)(local_40 + 0x4f8) = 0; *(int4 *)(local_40 + 0x53c) = 0; *(int4 *)(local_40 + 0x580) = 0; } else { *(int4 *)(local_40 + 0x4f8) = *(int4 *)(local_20 + 0x10); strncpy((char *)(local_40 + 0x4fc),*(char **)(local_20 + 0x28),(long)*(int *)(local_20 + 0x30) ); *(int4 *)(local_40 + 0x53c) = *(int4 *)(local_20 + 0x30); strncpy((char *)(local_40 + 0x540),*(char **)(local_20 + 0x18),(long)*(int *)(local_20 + 0x20) ); *(int4 *)(local_40 + 0x580) = *(int4 *)(local_20 + 0x20); } if (local_28 != (PFS_events_statements *)0x0) { if (local_20 == (PFS_program *)0x0) { *(int8 *)(local_40 + 0x4f0) = *(int8 *)(local_28 + 8); } else { *(int8 *)(local_40 + 0x4f0) = *(int8 *)(local_28 + 0x20); } } pfs_lock::dirty_to_allocated((pfs_lock *)local_40,local_44); } return local_40; }
31,524
ggml_opt_step_adamw
ngxson[P]ggml-easy/ggml/src/ggml.c
struct ggml_tensor * ggml_opt_step_adamw( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * grad, struct ggml_tensor * m, struct ggml_tensor * v, struct ggml_tensor * adamw_params) { GGML_ASSERT(a->flags & GGML_TENSOR_FLAG_PARAM); GGML_ASSERT(ggml_are_same_shape(a, grad)); GGML_ASSERT(ggml_are_same_shape(a, m)); GGML_ASSERT(ggml_are_same_shape(a, v)); GGML_ASSERT(adamw_params->type == GGML_TYPE_F32); GGML_ASSERT(ggml_nelements(adamw_params) == 7); struct ggml_tensor * result = ggml_view_tensor(ctx, a); result->op = GGML_OP_OPT_STEP_ADAMW; result->src[0] = a; result->src[1] = grad; result->src[2] = m; result->src[3] = v; result->src[4] = adamw_params; return result; }
O0
c
ggml_opt_step_adamw: subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) movq %rcx, 0x18(%rsp) movq %r8, 0x10(%rsp) movq %r9, 0x8(%rsp) movq 0x28(%rsp), %rax movl 0x94(%rax), %eax andl $0x4, %eax cmpl $0x0, %eax jne 0x54226 leaq 0x603ab(%rip), %rdi # 0xb45b7 movl $0x1413, %esi # imm = 0x1413 leaq 0x603ea(%rip), %rdx # 0xb4602 leaq 0x612ac(%rip), %rcx # 0xb54cb movb $0x0, %al callq 0x46780 movq 0x28(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x46730 testb $0x1, %al jne 0x5425a leaq 0x60377(%rip), %rdi # 0xb45b7 movl $0x1414, %esi # imm = 0x1414 leaq 0x603b6(%rip), %rdx # 0xb4602 leaq 0x6129a(%rip), %rcx # 0xb54ed movb $0x0, %al callq 0x46780 movq 0x28(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x46730 testb $0x1, %al jne 0x5428e leaq 0x60343(%rip), %rdi # 0xb45b7 movl $0x1415, %esi # imm = 0x1415 leaq 0x60382(%rip), %rdx # 0xb4602 leaq 0x61283(%rip), %rcx # 0xb550a movb $0x0, %al callq 0x46780 movq 0x28(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x46730 testb $0x1, %al jne 0x542c2 leaq 0x6030f(%rip), %rdi # 0xb45b7 movl $0x1416, %esi # imm = 0x1416 leaq 0x6034e(%rip), %rdx # 0xb4602 leaq 0x61269(%rip), %rcx # 0xb5524 movb $0x0, %al callq 0x46780 movq 0x8(%rsp), %rax cmpl $0x0, (%rax) je 0x542ed leaq 0x602e4(%rip), %rdi # 0xb45b7 movl $0x1417, %esi # imm = 0x1417 leaq 0x60323(%rip), %rdx # 0xb4602 leaq 0x61258(%rip), %rcx # 0xb553e movb $0x0, %al callq 0x46780 movq 0x8(%rsp), %rdi callq 0x43dc0 cmpq $0x7, %rax je 0x5431e leaq 0x602b3(%rip), %rdi # 0xb45b7 movl $0x1418, %esi # imm = 0x1418 leaq 0x602f2(%rip), %rdx # 0xb4602 leaq 0x6124b(%rip), %rcx # 0xb5562 movb $0x0, %al callq 0x46780 movq 0x30(%rsp), %rdi movq 0x28(%rsp), %rsi callq 0x408f0 movq %rax, (%rsp) movq (%rsp), %rax movl $0x51, 0x50(%rax) movq 0x28(%rsp), %rcx movq (%rsp), %rax movq %rcx, 0x98(%rax) movq 0x20(%rsp), %rcx movq (%rsp), %rax movq %rcx, 0xa0(%rax) movq 0x18(%rsp), %rcx movq (%rsp), %rax movq %rcx, 0xa8(%rax) movq 0x10(%rsp), %rcx movq (%rsp), %rax movq %rcx, 0xb0(%rax) movq 0x8(%rsp), %rcx movq (%rsp), %rax movq %rcx, 0xb8(%rax) movq (%rsp), %rax addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
ggml_opt_step_adamw: sub rsp, 38h mov [rsp+38h+var_8], rdi mov [rsp+38h+var_10], rsi mov [rsp+38h+var_18], rdx mov [rsp+38h+var_20], rcx mov [rsp+38h+var_28], r8 mov [rsp+38h+var_30], r9 mov rax, [rsp+38h+var_10] mov eax, [rax+94h] and eax, 4 cmp eax, 0 jnz short loc_54226 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1413h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAFlagsGgmlTens; "a->flags & GGML_TENSOR_FLAG_PARAM" mov al, 0 call _ggml_abort loc_54226: mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_18] call _ggml_are_same_shape test al, 1 jnz short loc_5425A lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1414h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlAreSameSha_5; "ggml_are_same_shape(a, grad)" mov al, 0 call _ggml_abort loc_5425A: mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_20] call _ggml_are_same_shape test al, 1 jnz short loc_5428E lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1415h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlAreSameSha_6; "ggml_are_same_shape(a, m)" mov al, 0 call _ggml_abort loc_5428E: mov rdi, [rsp+38h+var_10] mov rsi, [rsp+38h+var_28] call _ggml_are_same_shape test al, 1 jnz short loc_542C2 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1416h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlAreSameSha_7; "ggml_are_same_shape(a, v)" mov al, 0 call _ggml_abort loc_542C2: mov rax, [rsp+38h+var_30] cmp dword ptr [rax], 0 jz short loc_542ED lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1417h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aAdamwParamsTyp; "adamw_params->type == GGML_TYPE_F32" mov al, 0 call _ggml_abort loc_542ED: mov rdi, [rsp+38h+var_30] call _ggml_nelements cmp rax, 7 jz short loc_5431E lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1418h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlNelementsA_6; "ggml_nelements(adamw_params) == 7" mov al, 0 call _ggml_abort loc_5431E: mov rdi, [rsp+38h+var_8] mov rsi, [rsp+38h+var_10] call _ggml_view_tensor mov [rsp+38h+var_38], rax mov rax, [rsp+38h+var_38] mov dword ptr [rax+50h], 51h ; 'Q' mov rcx, [rsp+38h+var_10] mov rax, [rsp+38h+var_38] mov [rax+98h], rcx mov rcx, [rsp+38h+var_18] mov rax, [rsp+38h+var_38] mov [rax+0A0h], rcx mov rcx, [rsp+38h+var_20] mov rax, [rsp+38h+var_38] mov [rax+0A8h], rcx mov rcx, [rsp+38h+var_28] mov rax, [rsp+38h+var_38] mov [rax+0B0h], rcx mov rcx, [rsp+38h+var_30] mov rax, [rsp+38h+var_38] mov [rax+0B8h], rcx mov rax, [rsp+38h+var_38] add rsp, 38h retn
_QWORD * ggml_opt_step_adamw( long long a1, long long a2, _QWORD *a3, _QWORD *a4, _QWORD *a5, _QWORD *a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, double a11, double a12, __m128 a13, __m128 a14) { double v14; // xmm4_8 double v15; // xmm5_8 _QWORD *result; // rax if ( (*(_DWORD *)(a2 + 148) & 4) == 0 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5139, (long long)"GGML_ASSERT(%s) failed", "a->flags & GGML_TENSOR_FLAG_PARAM"); if ( !ggml_are_same_shape((_QWORD *)a2, a3) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5140, (long long)"GGML_ASSERT(%s) failed", "ggml_are_same_shape(a, grad)"); if ( !ggml_are_same_shape((_QWORD *)a2, a4) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5141, (long long)"GGML_ASSERT(%s) failed", "ggml_are_same_shape(a, m)"); if ( !ggml_are_same_shape((_QWORD *)a2, a5) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5142, (long long)"GGML_ASSERT(%s) failed", "ggml_are_same_shape(a, v)"); if ( *(_DWORD *)a6 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5143, (long long)"GGML_ASSERT(%s) failed", "adamw_params->type == GGML_TYPE_F32"); if ( ggml_nelements(a6) != 7 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c", 5144, (long long)"GGML_ASSERT(%s) failed", "ggml_nelements(adamw_params) == 7"); result = ggml_view_tensor(a1, a2, a7, a8, a9, a10, v14, v15, a13, a14); *((_DWORD *)result + 20) = 81; result[19] = a2; result[20] = a3; result[21] = a4; result[22] = a5; result[23] = a6; return result; }
ggml_opt_step_adamw: SUB RSP,0x38 MOV qword ptr [RSP + 0x30],RDI MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x20],RDX MOV qword ptr [RSP + 0x18],RCX MOV qword ptr [RSP + 0x10],R8 MOV qword ptr [RSP + 0x8],R9 MOV RAX,qword ptr [RSP + 0x28] MOV EAX,dword ptr [RAX + 0x94] AND EAX,0x4 CMP EAX,0x0 JNZ 0x00154226 LEA RDI,[0x1b45b7] MOV ESI,0x1413 LEA RDX,[0x1b4602] LEA RCX,[0x1b54cb] MOV AL,0x0 CALL 0x00146780 LAB_00154226: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x20] CALL 0x00146730 TEST AL,0x1 JNZ 0x0015425a LEA RDI,[0x1b45b7] MOV ESI,0x1414 LEA RDX,[0x1b4602] LEA RCX,[0x1b54ed] MOV AL,0x0 CALL 0x00146780 LAB_0015425a: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x18] CALL 0x00146730 TEST AL,0x1 JNZ 0x0015428e LEA RDI,[0x1b45b7] MOV ESI,0x1415 LEA RDX,[0x1b4602] LEA RCX,[0x1b550a] MOV AL,0x0 CALL 0x00146780 LAB_0015428e: MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x10] CALL 0x00146730 TEST AL,0x1 JNZ 0x001542c2 LEA RDI,[0x1b45b7] MOV ESI,0x1416 LEA RDX,[0x1b4602] LEA RCX,[0x1b5524] MOV AL,0x0 CALL 0x00146780 LAB_001542c2: MOV RAX,qword ptr [RSP + 0x8] CMP dword ptr [RAX],0x0 JZ 0x001542ed LEA RDI,[0x1b45b7] MOV ESI,0x1417 LEA RDX,[0x1b4602] LEA RCX,[0x1b553e] MOV AL,0x0 CALL 0x00146780 LAB_001542ed: MOV RDI,qword ptr [RSP + 0x8] CALL 0x00143dc0 CMP RAX,0x7 JZ 0x0015431e LEA RDI,[0x1b45b7] MOV ESI,0x1418 LEA RDX,[0x1b4602] LEA RCX,[0x1b5562] MOV AL,0x0 CALL 0x00146780 LAB_0015431e: MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x28] CALL 0x001408f0 MOV qword ptr [RSP],RAX MOV RAX,qword ptr [RSP] MOV dword ptr [RAX + 0x50],0x51 MOV RCX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0x98],RCX MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0xa0],RCX MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0xa8],RCX MOV RCX,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0xb0],RCX MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP] MOV qword ptr [RAX + 0xb8],RCX MOV RAX,qword ptr [RSP] ADD RSP,0x38 RET
long ggml_opt_step_adamw(int8 param_1,long param_2,int8 param_3,int8 param_4, int8 param_5,int *param_6) { ulong uVar1; long lVar2; if ((*(uint *)(param_2 + 0x94) & 4) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1413, "GGML_ASSERT(%s) failed","a->flags & GGML_TENSOR_FLAG_PARAM"); } uVar1 = ggml_are_same_shape(param_2,param_3); if ((uVar1 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1414, "GGML_ASSERT(%s) failed","ggml_are_same_shape(a, grad)"); } uVar1 = ggml_are_same_shape(param_2,param_4); if ((uVar1 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1415, "GGML_ASSERT(%s) failed","ggml_are_same_shape(a, m)"); } uVar1 = ggml_are_same_shape(param_2,param_5); if ((uVar1 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1416, "GGML_ASSERT(%s) failed","ggml_are_same_shape(a, v)"); } if (*param_6 != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1417, "GGML_ASSERT(%s) failed","adamw_params->type == GGML_TYPE_F32"); } lVar2 = ggml_nelements(param_6); if (lVar2 != 7) { ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x1418, "GGML_ASSERT(%s) failed","ggml_nelements(adamw_params) == 7"); } lVar2 = ggml_view_tensor(param_1,param_2); *(int4 *)(lVar2 + 0x50) = 0x51; *(long *)(lVar2 + 0x98) = param_2; *(int8 *)(lVar2 + 0xa0) = param_3; *(int8 *)(lVar2 + 0xa8) = param_4; *(int8 *)(lVar2 + 0xb0) = param_5; *(int **)(lVar2 + 0xb8) = param_6; return lVar2; }
31,525
get_envvars
eloqsql/libmariadb/unittest/libmariadb/my_test.h
void get_envvars() { char *envvar; if (!getenv("MYSQLTEST_VARDIR") && !getenv("MARIADB_CC_TEST")) { skip_all("Tests skipped.\nFor running unittest suite outside of MariaDB server tests,\nplease specify MARIADB_CC_TEST environment variable."); exit(0); } if (getenv("TRAVIS_JOB_ID")) travis_test= 1; if (!hostname && (envvar= getenv("MYSQL_TEST_HOST"))) hostname= envvar; if (!username) { if ((envvar= getenv("MYSQL_TEST_USER"))) username= envvar; else username= (char *)"root"; } if (!password && (envvar= getenv("MYSQL_TEST_PASSWD"))) password= envvar; if (!schema && (envvar= getenv("MYSQL_TEST_DB"))) schema= envvar; if (!schema) schema= "test"; if (!port) { if ((envvar= getenv("MYSQL_TEST_PORT"))) port= atoi(envvar); else if ((envvar= getenv("MASTER_MYPORT"))) port= atoi(envvar); diag("port: %d", port); } if (!ssl_port) { if ((envvar= getenv("MYSQL_TEST_SSL_PORT"))) ssl_port= atoi(envvar); else ssl_port = port; diag("ssl_port: %d", ssl_port); } if (!force_tls && (envvar= getenv("MYSQL_TEST_TLS"))) force_tls= atoi(envvar); if (!socketname) { if ((envvar= getenv("MYSQL_TEST_SOCKET"))) socketname= envvar; else if ((envvar= getenv("MASTER_MYSOCK"))) socketname= envvar; diag("socketname: %s", socketname); } if ((envvar= getenv("MYSQL_TEST_PLUGINDIR"))) plugindir= envvar; if (IS_XPAND()) { } }
O3
c
get_envvars: pushq %rbp movq %rsp, %rbp leaq 0x25079(%rip), %rdi # 0x39341 callq 0x13590 testq %rax, %rax jne 0x142e7 leaq 0x25079(%rip), %rdi # 0x39352 callq 0x13590 testq %rax, %rax je 0x144dd leaq 0x250f4(%rip), %rdi # 0x393e2 callq 0x13590 cmpq $0x0, 0x3d015(%rip) # 0x51310 jne 0x14315 leaq 0x250ec(%rip), %rdi # 0x393f0 callq 0x13590 testq %rax, %rax je 0x14315 movq %rax, 0x3cffb(%rip) # 0x51310 cmpq $0x0, 0x3cffb(%rip) # 0x51318 jne 0x14340 leaq 0x250da(%rip), %rdi # 0x39400 callq 0x13590 testq %rax, %rax leaq 0x250db(%rip), %rcx # 0x39410 cmovneq %rax, %rcx movq %rcx, 0x3cfd8(%rip) # 0x51318 cmpq $0x0, 0x3cfd8(%rip) # 0x51320 jne 0x14362 leaq 0x250c4(%rip), %rdi # 0x39415 callq 0x13590 testq %rax, %rax je 0x14362 movq %rax, 0x3cfbe(%rip) # 0x51320 cmpq $0x0, 0x3cfbe(%rip) # 0x51328 jne 0x1438d leaq 0x250b4(%rip), %rdi # 0x39427 callq 0x13590 testq %rax, %rax leaq 0x250b3(%rip), %rcx # 0x39435 cmovneq %rax, %rcx movq %rcx, 0x3cf9b(%rip) # 0x51328 cmpl $0x0, 0x3cf9c(%rip) # 0x51330 jne 0x143da leaq 0x2509d(%rip), %rdi # 0x3943a callq 0x13590 testq %rax, %rax jne 0x143bc leaq 0x2509c(%rip), %rdi # 0x3944a callq 0x13590 testq %rax, %rax je 0x144d2 movq %rax, %rdi callq 0x136f0 movl %eax, %esi movl %eax, 0x3cf64(%rip) # 0x51330 leaq 0x2509d(%rip), %rdi # 0x39470 xorl %eax, %eax callq 0x19f47 cmpl $0x0, 0x3cf53(%rip) # 0x51334 jne 0x1441a leaq 0x2506e(%rip), %rdi # 0x39458 callq 0x13590 testq %rax, %rax je 0x14400 movq %rax, %rdi callq 0x136f0 movl %eax, %esi jmp 0x14406 movl 0x3cf2a(%rip), %esi # 0x51330 movl %esi, 0x3cf28(%rip) # 0x51334 leaq 0x25059(%rip), %rdi # 0x3946c xorl %eax, %eax callq 0x19f47 cmpl $0x0, 0x3cf1f(%rip) # 0x51340 jne 0x14442 leaq 0x2504f(%rip), %rdi # 0x39479 callq 0x13590 testq %rax, %rax je 0x14442 movq %rax, %rdi callq 0x136f0 movl %eax, 0x3cefe(%rip) # 0x51340 cmpq $0x0, 0x3ceee(%rip) # 0x51338 jne 0x14486 leaq 0x25035(%rip), %rdi # 0x39488 callq 0x13590 testq %rax, %rax jne 0x1446e leaq 0x25036(%rip), %rdi # 0x3949a callq 0x13590 testq %rax, %rax je 0x144d9 movq %rax, 0x3cec3(%rip) # 0x51338 leaq 0x2502c(%rip), %rdi # 0x394a8 movq %rax, %rsi xorl %eax, %eax callq 0x19f47 leaq 0x2502a(%rip), %rdi # 0x394b7 callq 0x13590 testq %rax, %rax je 0x1449e movq %rax, 0x3ceaa(%rip) # 0x51348 movq 0x3cd2b(%rip), %rdi # 0x511d0 testq %rdi, %rdi je 0x144c5 callq 0x20e5a leaq 0x25016(%rip), %rsi # 0x394cc movq %rax, %rdi callq 0x13100 testq %rax, %rax je 0x144c5 popq %rbp retq leaq 0x25006(%rip), %rdi # 0x394d2 popq %rbp jmp 0x13590 xorl %esi, %esi jmp 0x143cc xorl %eax, %eax jmp 0x14475 leaq 0x24e7e(%rip), %rdi # 0x39362 xorl %eax, %eax callq 0x1a0ca
get_envvars: push rbp mov rbp, rsp lea rdi, aMysqltestVardi; "MYSQLTEST_VARDIR" call _getenv test rax, rax jnz short loc_142E7 lea rdi, aMariadbCcTest; "MARIADB_CC_TEST" call _getenv test rax, rax jz loc_144DD loc_142E7: lea rdi, aTravisJobId; "TRAVIS_JOB_ID" call _getenv cmp cs:hostname, 0 jnz short loc_14315 lea rdi, aMysqlTestHost; "MYSQL_TEST_HOST" call _getenv test rax, rax jz short loc_14315 mov cs:hostname, rax loc_14315: cmp cs:username, 0 jnz short loc_14340 lea rdi, aMysqlTestUser; "MYSQL_TEST_USER" call _getenv test rax, rax lea rcx, aRoot; "root" cmovnz rcx, rax mov cs:username, rcx loc_14340: cmp cs:password, 0 jnz short loc_14362 lea rdi, aMysqlTestPassw; "MYSQL_TEST_PASSWD" call _getenv test rax, rax jz short loc_14362 mov cs:password, rax loc_14362: cmp cs:schema, 0 jnz short loc_1438D lea rdi, aMysqlTestDb; "MYSQL_TEST_DB" call _getenv test rax, rax lea rcx, aTest; "test" cmovnz rcx, rax mov cs:schema, rcx loc_1438D: cmp cs:port, 0 jnz short loc_143DA lea rdi, aMysqlTestPort; "MYSQL_TEST_PORT" call _getenv test rax, rax jnz short loc_143BC lea rdi, aMasterMyport; "MASTER_MYPORT" call _getenv test rax, rax jz loc_144D2 loc_143BC: mov rdi, rax call _atoi mov esi, eax mov cs:port, eax loc_143CC: lea rdi, aSslPortD+4; "port: %d" xor eax, eax call diag loc_143DA: cmp cs:ssl_port, 0 jnz short loc_1441A lea rdi, aMysqlTestSslPo; "MYSQL_TEST_SSL_PORT" call _getenv test rax, rax jz short loc_14400 mov rdi, rax call _atoi mov esi, eax jmp short loc_14406 loc_14400: mov esi, cs:port loc_14406: mov cs:ssl_port, esi lea rdi, aSslPortD; "ssl_port: %d" xor eax, eax call diag loc_1441A: cmp cs:force_tls, 0 jnz short loc_14442 lea rdi, aMysqlTestTls; "MYSQL_TEST_TLS" call _getenv test rax, rax jz short loc_14442 mov rdi, rax call _atoi mov cs:force_tls, eax loc_14442: cmp cs:socketname, 0 jnz short loc_14486 lea rdi, aMysqlTestSocke; "MYSQL_TEST_SOCKET" call _getenv test rax, rax jnz short loc_1446E lea rdi, aMasterMysock; "MASTER_MYSOCK" call _getenv test rax, rax jz short loc_144D9 loc_1446E: mov cs:socketname, rax loc_14475: lea rdi, aSocketnameS; "socketname: %s" mov rsi, rax xor eax, eax call diag loc_14486: lea rdi, aMysqlTestPlugi; "MYSQL_TEST_PLUGINDIR" call _getenv test rax, rax jz short loc_1449E mov cs:plugindir, rax loc_1449E: mov rdi, cs:mysql_default test rdi, rdi jz short loc_144C5 call mysql_get_server_info lea rsi, aXpand; "Xpand" mov rdi, rax call _strstr test rax, rax jz short loc_144C5 pop rbp retn loc_144C5: lea rdi, aSrv; "srv" pop rbp jmp _getenv loc_144D2: xor esi, esi jmp loc_143CC loc_144D9: xor eax, eax jmp short loc_14475 loc_144DD: lea rdi, aTestsSkippedFo; "Tests skipped.\nFor running unittest su"... xor eax, eax call skip_all
long long get_envvars(long long a1, int a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d long long v6; // rax long long v7; // rax const char *v8; // rcx long long v9; // rax long long v10; // rax const char *v11; // rcx long long v12; // rax int v13; // edx int v14; // ecx int v15; // r8d int v16; // r9d int v17; // esi long long v18; // rax int v19; // edx int v20; // ecx int v21; // r8d int v22; // r9d int v23; // esi long long v24; // rax long long v25; // rax int v26; // edx int v27; // ecx int v28; // r8d int v29; // r9d long long v30; // rax long long server_info; // rax long long result; // rax if ( !getenv("MYSQLTEST_VARDIR") && !getenv("MARIADB_CC_TEST") ) skip_all( (unsigned int)"Tests skipped.\n" "For running unittest suite outside of MariaDB server tests,\n" "please specify MARIADB_CC_TEST environment variable.", a2, v2, v3, v4, v5); getenv("TRAVIS_JOB_ID"); if ( !hostname ) { v6 = getenv("MYSQL_TEST_HOST"); if ( v6 ) hostname = v6; } if ( !username ) { v7 = getenv("MYSQL_TEST_USER"); v8 = "root"; if ( v7 ) v8 = (const char *)v7; username = (long long)v8; } if ( !password ) { v9 = getenv("MYSQL_TEST_PASSWD"); if ( v9 ) password = v9; } if ( !schema ) { v10 = getenv("MYSQL_TEST_DB"); v11 = "test"; if ( v10 ) v11 = (const char *)v10; schema = (long long)v11; } if ( !port ) { v12 = getenv("MYSQL_TEST_PORT"); if ( v12 || (v12 = getenv("MASTER_MYPORT")) != 0 ) { v17 = atoi(v12); port = v17; } else { v17 = 0; } diag((unsigned int)"port: %d", v17, v13, v14, v15, v16); } if ( !ssl_port ) { v18 = getenv("MYSQL_TEST_SSL_PORT"); if ( v18 ) v23 = atoi(v18); else v23 = port; ssl_port = v23; diag((unsigned int)"ssl_port: %d", v23, v19, v20, v21, v22); } if ( !force_tls ) { v24 = getenv("MYSQL_TEST_TLS"); if ( v24 ) force_tls = atoi(v24); } if ( !socketname ) { v25 = getenv("MYSQL_TEST_SOCKET"); if ( v25 || (v25 = getenv("MASTER_MYSOCK")) != 0 ) socketname = v25; else LODWORD(v25) = 0; diag((unsigned int)"socketname: %s", v25, v26, v27, v28, v29); } v30 = getenv("MYSQL_TEST_PLUGINDIR"); if ( v30 ) plugindir = v30; if ( !mysql_default ) return getenv("srv"); server_info = mysql_get_server_info(); result = strstr(server_info, "Xpand"); if ( !result ) return getenv("srv"); return result; }
get_envvars: PUSH RBP MOV RBP,RSP LEA RDI,[0x139341] CALL 0x00113590 TEST RAX,RAX JNZ 0x001142e7 LEA RDI,[0x139352] CALL 0x00113590 TEST RAX,RAX JZ 0x001144dd LAB_001142e7: LEA RDI,[0x1393e2] CALL 0x00113590 CMP qword ptr [0x00151310],0x0 JNZ 0x00114315 LEA RDI,[0x1393f0] CALL 0x00113590 TEST RAX,RAX JZ 0x00114315 MOV qword ptr [0x00151310],RAX LAB_00114315: CMP qword ptr [0x00151318],0x0 JNZ 0x00114340 LEA RDI,[0x139400] CALL 0x00113590 TEST RAX,RAX LEA RCX,[0x139410] CMOVNZ RCX,RAX MOV qword ptr [0x00151318],RCX LAB_00114340: CMP qword ptr [0x00151320],0x0 JNZ 0x00114362 LEA RDI,[0x139415] CALL 0x00113590 TEST RAX,RAX JZ 0x00114362 MOV qword ptr [0x00151320],RAX LAB_00114362: CMP qword ptr [0x00151328],0x0 JNZ 0x0011438d LEA RDI,[0x139427] CALL 0x00113590 TEST RAX,RAX LEA RCX,[0x139435] CMOVNZ RCX,RAX MOV qword ptr [0x00151328],RCX LAB_0011438d: CMP dword ptr [0x00151330],0x0 JNZ 0x001143da LEA RDI,[0x13943a] CALL 0x00113590 TEST RAX,RAX JNZ 0x001143bc LEA RDI,[0x13944a] CALL 0x00113590 TEST RAX,RAX JZ 0x001144d2 LAB_001143bc: MOV RDI,RAX CALL 0x001136f0 MOV ESI,EAX MOV dword ptr [0x00151330],EAX LAB_001143cc: LEA RDI,[0x139470] XOR EAX,EAX CALL 0x00119f47 LAB_001143da: CMP dword ptr [0x00151334],0x0 JNZ 0x0011441a LEA RDI,[0x139458] CALL 0x00113590 TEST RAX,RAX JZ 0x00114400 MOV RDI,RAX CALL 0x001136f0 MOV ESI,EAX JMP 0x00114406 LAB_00114400: MOV ESI,dword ptr [0x00151330] LAB_00114406: MOV dword ptr [0x00151334],ESI LEA RDI,[0x13946c] XOR EAX,EAX CALL 0x00119f47 LAB_0011441a: CMP dword ptr [0x00151340],0x0 JNZ 0x00114442 LEA RDI,[0x139479] CALL 0x00113590 TEST RAX,RAX JZ 0x00114442 MOV RDI,RAX CALL 0x001136f0 MOV dword ptr [0x00151340],EAX LAB_00114442: CMP qword ptr [0x00151338],0x0 JNZ 0x00114486 LEA RDI,[0x139488] CALL 0x00113590 TEST RAX,RAX JNZ 0x0011446e LEA RDI,[0x13949a] CALL 0x00113590 TEST RAX,RAX JZ 0x001144d9 LAB_0011446e: MOV qword ptr [0x00151338],RAX LAB_00114475: LEA RDI,[0x1394a8] MOV RSI,RAX XOR EAX,EAX CALL 0x00119f47 LAB_00114486: LEA RDI,[0x1394b7] CALL 0x00113590 TEST RAX,RAX JZ 0x0011449e MOV qword ptr [0x00151348],RAX LAB_0011449e: MOV RDI,qword ptr [0x001511d0] TEST RDI,RDI JZ 0x001144c5 CALL 0x00120e5a LEA RSI,[0x1394cc] MOV RDI,RAX CALL 0x00113100 TEST RAX,RAX JZ 0x001144c5 POP RBP RET LAB_001144c5: LEA RDI,[0x1394d2] POP RBP JMP 0x00113590 LAB_001144d2: XOR ESI,ESI JMP 0x001143cc LAB_001144d9: XOR EAX,EAX JMP 0x00114475 LAB_001144dd: LEA RDI,[0x139362] XOR EAX,EAX CALL 0x0011a0ca
void get_envvars(void) { char cVar1; int iVar2; uint uVar3; int4 uVar4; char *pcVar5; char *pcVar6; int8 uVar7; long *plVar8; int8 uVar9; long lVar10; int8 *puVar11; long lVar12; ulong uVar13; pcVar5 = getenv("MYSQLTEST_VARDIR"); if ((pcVar5 != (char *)0x0) || (pcVar5 = getenv("MARIADB_CC_TEST"), pcVar5 != (char *)0x0)) { getenv("TRAVIS_JOB_ID"); if ((hostname == (char *)0x0) && (pcVar5 = getenv("MYSQL_TEST_HOST"), pcVar5 != (char *)0x0)) { hostname = pcVar5; } if (username == (char *)0x0) { pcVar5 = getenv("MYSQL_TEST_USER"); username = "root"; if (pcVar5 != (char *)0x0) { username = pcVar5; } } if ((password == (char *)0x0) && (pcVar5 = getenv("MYSQL_TEST_PASSWD"), pcVar5 != (char *)0x0)) { password = pcVar5; } if (schema == (char *)0x0) { pcVar5 = getenv("MYSQL_TEST_DB"); schema = "test"; if (pcVar5 != (char *)0x0) { schema = pcVar5; } } if (port == 0) { pcVar5 = getenv("MYSQL_TEST_PORT"); if ((pcVar5 == (char *)0x0) && (pcVar5 = getenv("MASTER_MYPORT"), pcVar5 == (char *)0x0)) { iVar2 = 0; } else { port = atoi(pcVar5); iVar2 = port; } diag("port: %d",iVar2); } if (ssl_port == 0) { pcVar5 = getenv("MYSQL_TEST_SSL_PORT"); iVar2 = port; if (pcVar5 != (char *)0x0) { iVar2 = atoi(pcVar5); } ssl_port = iVar2; diag("ssl_port: %d"); } if ((force_tls == 0) && (pcVar5 = getenv("MYSQL_TEST_TLS"), pcVar5 != (char *)0x0)) { force_tls = atoi(pcVar5); } if (socketname == (char *)0x0) { pcVar6 = getenv("MYSQL_TEST_SOCKET"); pcVar5 = pcVar6; if ((pcVar6 == (char *)0x0) && (pcVar6 = getenv("MASTER_MYSOCK"), pcVar5 = pcVar6, pcVar6 == (char *)0x0)) { pcVar6 = (char *)0x0; pcVar5 = socketname; } socketname = pcVar5; diag("socketname: %s",pcVar6); } pcVar5 = getenv("MYSQL_TEST_PLUGINDIR"); if (pcVar5 != (char *)0x0) { plugindir = pcVar5; } if (mysql_default != 0) { pcVar5 = (char *)mysql_get_server_info(); pcVar5 = strstr(pcVar5,"Xpand"); if (pcVar5 != (char *)0x0) { return; } } getenv("srv"); return; } pcVar5 = "Tests skipped.\nFor running unittest suite outside of MariaDB server tests,\nplease specify MARIADB_CC_TEST environment variable." ; uVar7 = skip_all(); plVar8 = (long *)((long)pcVar5 + 8); uVar13 = 0xffffffffffffffff; do { uVar13 = uVar13 + 1; lVar10 = *plVar8; plVar8 = plVar8 + 6; } while (lVar10 != 0); plan(uVar13 & 0xffffffff); uVar9 = mysql_init(0); mysql_ssl_set(uVar9,0,0,0,0,0,uVar7); lVar10 = mysql_real_connect(uVar9,hostname,username,password,schema,port,socketname,0); if (lVar10 == 0) { pcVar5 = "Can\'t establish TLS connection to server."; } else { iVar2 = mysql_query(uVar9,"SHOW VARIABLES LIKE \'%ssl%\'"); if (iVar2 == 0) { diag("TLS server variables"); diag("--------------------"); uVar7 = mysql_store_result(uVar9); puVar11 = (int8 *)mysql_fetch_row(uVar7); while (puVar11 != (int8 *)0x0) { diag("%s: %s",*puVar11,puVar11[1]); puVar11 = (int8 *)mysql_fetch_row(uVar7); } mysql_free_result(uVar7); uVar7 = mysql_get_ssl_cipher(uVar9); diag("Cipher in use: %s",uVar7); diag("--------------------"); } mysql_close(uVar9); mysql_default = test_connect(0); if (mysql_default != 0) { uVar7 = mysql_get_server_info(mysql_default); diag("Testing against MySQL Server %s",uVar7); uVar7 = mysql_get_host_info(mysql_default); diag("Host: %s",uVar7); uVar7 = mysql_get_client_info(); diag("Client library: %s",uVar7); is_mariadb = mariadb_connection(mysql_default); lVar10 = mysql_default; do { mysql_default = lVar10; if (uVar13 == 0) { if (this_host != (void *)0x0) { free(this_host); } if (mysql_default != 0) { diag("close default"); mysql_close(mysql_default); return; } return; } if ((lVar10 == 0) && ((*(byte *)((long)pcVar5 + 0x10) & 1) != 0)) { diag("MySQL server not running"); lVar12 = *(long *)pcVar5; LAB_0011471d: skip(1,"%s",lVar12); } else { lVar12 = *(long *)((long)pcVar5 + 0x28); if (lVar12 != 0) goto LAB_0011471d; uVar3 = *(uint *)((long)pcVar5 + 0x10); if ((uVar3 & 4) != 0) { lVar10 = test_connect(pcVar5); uVar3 = *(uint *)((long)pcVar5 + 0x10); } if ((uVar3 & 2) != 0) { lVar10 = 0; } iVar2 = (**(code **)((long)pcVar5 + 8))(lVar10); if (iVar2 == -1) { skip(1,"%s",*(long *)pcVar5); LAB_00114750: iVar2 = mysql_errno(mysql_default); if (iVar2 != 0) goto LAB_00114760; LAB_00114766: if ((mysql_default == 0) || ((*(byte *)((long)pcVar5 + 0x10) & 1) == 0)) { if ((lVar10 != 0) && ((*(byte *)((long)pcVar5 + 0x10) & 8) == 0)) { mysql_close(lVar10); } } else { if (is_mariadb == '\0') { LAB_001147cc: iVar2 = mysql_reset_connection(lVar10); } else { pcVar6 = (char *)mysql_get_server_info(); pcVar6 = strstr(pcVar6,"maxScale"); if ((pcVar6 != (char *)0x0) || ((pcVar6 = getenv("srv"), pcVar6 != (char *)0x0 && ((iVar2 = strcmp(pcVar6,"maxscale"), iVar2 == 0 || (iVar2 = strcmp(pcVar6,"skysql-ha"), iVar2 == 0)))))) goto LAB_001147cc; cVar1 = mysql_change_user(lVar10,username,password,schema); iVar2 = (int)cVar1; } if (iVar2 != 0) { uVar7 = mysql_error(lVar10); uVar4 = mysql_errno(lVar10); uVar9 = 0x238; LAB_0011490e: diag("Error (%d): %s (%d) in %s line %d",iVar2,uVar7,uVar4, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h" ,uVar9); return; } iVar2 = mysql_query(lVar10,"SET sql_mode=\'\'"); if (iVar2 != 0) { uVar7 = mysql_error(lVar10); uVar4 = mysql_errno(lVar10); uVar9 = 0x23a; goto LAB_0011490e; } } } else { ok(iVar2 == 0,"%s",*(long *)pcVar5); if (iVar2 != 1) goto LAB_00114750; LAB_00114760: if ((*(byte *)((long)pcVar5 + 0x10) & 1) == 0) goto LAB_00114766; mysql_close(mysql_default); mysql_default = test_connect(pcVar5); } } pcVar5 = (char *)((long)pcVar5 + 0x30); uVar13 = uVar13 - 1; lVar10 = mysql_default; } while( true ); } pcVar5 = "Can\'t connect to a server. Aborting...."; mysql_default = 0; } /* WARNING: Subroutine does not return */ BAIL_OUT(pcVar5); }
31,526
CLI::App::_configure()
MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_INLINE void App::_configure() { if(default_startup == startup_mode::enabled) { disabled_ = false; } else if(default_startup == startup_mode::disabled) { disabled_ = true; } for(const App_p &app : subcommands_) { if(app->has_automatic_name_) { app->name_.clear(); } if(app->name_.empty()) { app->fallthrough_ = false; // make sure fallthrough_ is false to prevent infinite loop app->prefix_command_ = false; } // make sure the parent is set to be this object in preparation for parse app->parent_ = this; app->_configure(); } }
O1
cpp
CLI::App::_configure(): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movzbl 0x29d(%rdi), %eax cmpl $0x1, %eax je 0x1e501 cmpl $0x2, %eax jne 0x1e506 movb $0x1, %al jmp 0x1e503 xorl %eax, %eax movb %al, 0x4d(%rbx) movq 0x280(%rbx), %r14 movq 0x288(%rbx), %r15 cmpq %r15, %r14 je 0x1e55d xorl %ebp, %ebp movq (%r14), %rax cmpb $0x1, 0x4b(%rax) jne 0x1e533 movq $0x0, 0x10(%rax) movq 0x8(%rax), %rax movb $0x0, (%rax) movq (%r14), %rdi cmpq $0x0, 0x10(%rdi) jne 0x1e548 movb %bpl, 0x29a(%rdi) movb %bpl, 0x4a(%rdi) movq %rbx, 0x2c8(%rdi) callq 0x1e4e2 addq $0x10, %r14 cmpq %r15, %r14 jne 0x1e51b addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ZN3CLI3App10_configureEv: push rbp push r15 push r14 push rbx push rax mov rbx, rdi movzx eax, byte ptr [rdi+29Dh] cmp eax, 1 jz short loc_1E501 cmp eax, 2 jnz short loc_1E506 mov al, 1 jmp short loc_1E503 loc_1E501: xor eax, eax loc_1E503: mov [rbx+4Dh], al loc_1E506: mov r14, [rbx+280h] mov r15, [rbx+288h] cmp r14, r15 jz short loc_1E55D xor ebp, ebp loc_1E51B: mov rax, [r14] cmp byte ptr [rax+4Bh], 1 jnz short loc_1E533 mov qword ptr [rax+10h], 0 mov rax, [rax+8] mov byte ptr [rax], 0 loc_1E533: mov rdi, [r14]; this cmp qword ptr [rdi+10h], 0 jnz short loc_1E548 mov [rdi+29Ah], bpl mov [rdi+4Ah], bpl loc_1E548: mov [rdi+2C8h], rbx call _ZN3CLI3App10_configureEv; CLI::App::_configure(void) add r14, 10h cmp r14, r15 jnz short loc_1E51B loc_1E55D: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
char CLI::App::_configure(CLI::App *this) { int v2; // eax long long *v3; // r14 long long *i; // r15 long long v5; // rax long long v6; // rdi v2 = *((unsigned __int8 *)this + 669); if ( v2 == 1 ) { LOBYTE(v2) = 0; } else { if ( v2 != 2 ) goto LABEL_6; LOBYTE(v2) = 1; } *((_BYTE *)this + 77) = v2; LABEL_6: v3 = (long long *)*((_QWORD *)this + 80); for ( i = (long long *)*((_QWORD *)this + 81); v3 != i; v3 += 2 ) { v5 = *v3; if ( *(_BYTE *)(*v3 + 75) == 1 ) { *(_QWORD *)(v5 + 16) = 0LL; **(_BYTE **)(v5 + 8) = 0; } v6 = *v3; if ( !*(_QWORD *)(*v3 + 16) ) { *(_BYTE *)(v6 + 666) = 0; *(_BYTE *)(v6 + 74) = 0; } *(_QWORD *)(v6 + 712) = this; LOBYTE(v2) = CLI::App::_configure((CLI::App *)v6); } return v2; }
_configure: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOVZX EAX,byte ptr [RDI + 0x29d] CMP EAX,0x1 JZ 0x0011e501 CMP EAX,0x2 JNZ 0x0011e506 MOV AL,0x1 JMP 0x0011e503 LAB_0011e501: XOR EAX,EAX LAB_0011e503: MOV byte ptr [RBX + 0x4d],AL LAB_0011e506: MOV R14,qword ptr [RBX + 0x280] MOV R15,qword ptr [RBX + 0x288] CMP R14,R15 JZ 0x0011e55d XOR EBP,EBP LAB_0011e51b: MOV RAX,qword ptr [R14] CMP byte ptr [RAX + 0x4b],0x1 JNZ 0x0011e533 MOV qword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RAX + 0x8] MOV byte ptr [RAX],0x0 LAB_0011e533: MOV RDI,qword ptr [R14] CMP qword ptr [RDI + 0x10],0x0 JNZ 0x0011e548 MOV byte ptr [RDI + 0x29a],BPL MOV byte ptr [RDI + 0x4a],BPL LAB_0011e548: MOV qword ptr [RDI + 0x2c8],RBX CALL 0x0011e4e2 ADD R14,0x10 CMP R14,R15 JNZ 0x0011e51b LAB_0011e55d: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
/* CLI::App::_configure() */ void __thiscall CLI::App::_configure(App *this) { long *plVar1; long lVar2; App *this_00; App AVar3; long *plVar4; if (this[0x29d] == (App)0x1) { AVar3 = (App)0x0; } else { if (this[0x29d] != (App)0x2) goto LAB_0011e506; AVar3 = (App)0x1; } this[0x4d] = AVar3; LAB_0011e506: plVar1 = *(long **)(this + 0x288); for (plVar4 = *(long **)(this + 0x280); plVar4 != plVar1; plVar4 = plVar4 + 2) { lVar2 = *plVar4; if (*(char *)(lVar2 + 0x4b) == '\x01') { *(int8 *)(lVar2 + 0x10) = 0; **(int1 **)(lVar2 + 8) = 0; } this_00 = (App *)*plVar4; if (*(long *)(this_00 + 0x10) == 0) { this_00[0x29a] = (App)0x0; this_00[0x4a] = (App)0x0; } *(App **)(this_00 + 0x2c8) = this; _configure(this_00); } return; }
31,527
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc
bool MatchesTest(const std::string& test_suite_name, const std::string& test_name) const { return MatchesName(test_suite_name + "." + test_name); }
O1
cpp
testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r14 movq %rdi, %rbx leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %rax, %rsi callq 0x39594 leaq 0x276d1(%rip), %rsi # 0x43671 movq %r15, %rdi callq 0x8a50 movq (%r14), %rsi movq 0x8(%r14), %rdx leaq 0x8(%rsp), %rdi callq 0x8170 leaq 0x38(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1bfe0 movq %rdx, 0x28(%rsp) movq (%rcx), %rdx movq %rdx, 0x38(%rsp) jmp 0x1bfe7 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rax), %rdx leaq 0x28(%rsp), %rsi movq %rdx, 0x8(%rsi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %rbx, %rdi callq 0x1b918 testb %al, %al je 0x1c027 addq $0x50, %rbx leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x1b918 movl %eax, %ebx xorb $0x1, %bl jmp 0x1c029 xorl %ebx, %ebx movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x1c040 movq 0x38(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x1c057 movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movl %ebx, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq jmp 0x1c067 movq %rax, %rbx jmp 0x1c086 movq %rax, %rbx movq 0x28(%rsp), %rdi cmpq %r14, %rdi je 0x1c086 movq 0x38(%rsp), %rsi incq %rsi callq 0x84e0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x1c09d movq 0x18(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990 nop
_ZNK7testing8internal12_GLOBAL__N_133PositiveAndNegativeUnitTestFilter11MatchesTestERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_: push r15 push r14 push r12 push rbx sub rsp, 48h mov r14, rdx mov rbx, rdi lea r12, [rsp+68h+var_50] mov [r12-10h], r12 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea r15, [rsp+68h+var_60] mov rdi, r15 mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, asc_43670+1; "." mov rdi, r15 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r14] mov rdx, [r14+8] lea rdi, [rsp+68h+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea r14, [rsp+68h+var_30] mov [r14-10h], r14 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1BFE0 mov [rsp+68h+var_40], rdx mov rdx, [rcx] mov [rsp+68h+var_30], rdx jmp short loc_1BFE7 loc_1BFE0: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_1BFE7: mov rdx, [rax+8] lea rsi, [rsp+68h+var_40] mov [rsi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, rbx call _ZNK7testing8internal12_GLOBAL__N_114UnitTestFilter11MatchesNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(std::string const&) test al, al jz short loc_1C027 add rbx, 50h ; 'P' lea rsi, [rsp+68h+var_40] mov rdi, rbx call _ZNK7testing8internal12_GLOBAL__N_114UnitTestFilter11MatchesNameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(std::string const&) mov ebx, eax xor bl, 1 jmp short loc_1C029 loc_1C027: xor ebx, ebx loc_1C029: mov rdi, [rsp+68h+var_40]; void * cmp rdi, r14 jz short loc_1C040 mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C040: mov rdi, [rsp+68h+var_60]; void * cmp rdi, r12 jz short loc_1C057 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C057: mov eax, ebx add rsp, 48h pop rbx pop r12 pop r14 pop r15 retn jmp short $+2 loc_1C067: mov rbx, rax jmp short loc_1C086 mov rbx, rax mov rdi, [rsp+arg_20]; void * cmp rdi, r14 jz short loc_1C086 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C086: mov rdi, [rsp+arg_0]; void * cmp rdi, r12 jz short loc_1C09D mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C09D: mov rdi, rbx call __Unwind_Resume
long long testing::internal::`anonymous namespace'::PositiveAndNegativeUnitTestFilter::MatchesTest( long long *a1, _QWORD *a2, _QWORD *a3) { long long v4; // rax _OWORD *v5; // rcx unsigned int v6; // eax unsigned int v7; // ebx void *v9[2]; // [rsp+8h] [rbp-60h] BYREF _QWORD v10[2]; // [rsp+18h] [rbp-50h] BYREF void *v11[2]; // [rsp+28h] [rbp-40h] BYREF _OWORD v12[3]; // [rsp+38h] [rbp-30h] BYREF v9[0] = v10; std::string::_M_construct<char *>(v9, *a2, *a2 + a2[1]); std::string::append(v9, "."); v4 = std::string::_M_append(v9, *a3); v11[0] = v12; v5 = (_OWORD *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v12[0] = *v5; } else { v11[0] = *(void **)v4; *(_QWORD *)&v12[0] = *(_QWORD *)v5; } v11[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; if ( testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(a1, (long long)v11) ) { LOBYTE(v6) = testing::internal::`anonymous namespace'::UnitTestFilter::MatchesName(a1 + 10, (long long)v11); v7 = v6; LOBYTE(v7) = v6 ^ 1; } else { v7 = 0; } if ( v11[0] != v12 ) operator delete(v11[0], *(_QWORD *)&v12[0] + 1LL); if ( v9[0] != v10 ) operator delete(v9[0], v10[0] + 1LL); return v7; }
MatchesTest: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R14,RDX MOV RBX,RDI LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,RAX CALL 0x00139594 LAB_0011bf99: LEA RSI,[0x143671] MOV RDI,R15 CALL 0x00108a50 MOV RSI,qword ptr [R14] MOV RDX,qword ptr [R14 + 0x8] LAB_0011bfaf: LEA RDI,[RSP + 0x8] CALL 0x00108170 LEA R14,[RSP + 0x38] MOV qword ptr [R14 + -0x10],R14 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011bfe0 MOV qword ptr [RSP + 0x28],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x38],RDX JMP 0x0011bfe7 LAB_0011bfe0: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_0011bfe7: MOV RDX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x28] MOV qword ptr [RSI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_0011c003: MOV RDI,RBX CALL 0x0011b918 TEST AL,AL JZ 0x0011c027 ADD RBX,0x50 LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0011b918 LAB_0011c020: MOV EBX,EAX XOR BL,0x1 JMP 0x0011c029 LAB_0011c027: XOR EBX,EBX LAB_0011c029: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,R14 JZ 0x0011c040 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001084e0 LAB_0011c040: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x0011c057 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001084e0 LAB_0011c057: MOV EAX,EBX ADD RSP,0x48 POP RBX POP R12 POP R14 POP R15 RET
/* testing::internal::(anonymous namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest(std::__cxx11::string const&, std::__cxx11::string const&) const */ uint __thiscall testing::internal::(anonymous_namespace)::PositiveAndNegativeUnitTestFilter::MatchesTest (PositiveAndNegativeUnitTestFilter *this,string *param_1,string *param_2) { char cVar1; uint uVar2; long *plVar3; long *plVar4; long *local_60 [2]; long local_50 [2]; long *local_40; long local_38; long local_30; long lStack_28; local_60[0] = local_50; std::__cxx11::string::_M_construct<char*> (local_60,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 0011bf99 to 0011bfa7 has its CatchHandler @ 0011c067 */ std::__cxx11::string::append((char *)local_60); /* try { // try from 0011bfaf to 0011bfb8 has its CatchHandler @ 0011c065 */ plVar3 = (long *)std::__cxx11::string::_M_append((char *)local_60,*(ulong *)param_2); plVar4 = plVar3 + 2; if ((long *)*plVar3 == plVar4) { local_30 = *plVar4; lStack_28 = plVar3[3]; local_40 = &local_30; } else { local_30 = *plVar4; local_40 = (long *)*plVar3; } local_38 = plVar3[1]; *plVar3 = (long)plVar4; plVar3[1] = 0; *(int1 *)(plVar3 + 2) = 0; /* try { // try from 0011c003 to 0011c01f has its CatchHandler @ 0011c06c */ cVar1 = UnitTestFilter::MatchesName((UnitTestFilter *)this,(string *)&local_40); if (cVar1 == '\0') { uVar2 = 0; } else { uVar2 = UnitTestFilter::MatchesName((UnitTestFilter *)(this + 0x50),(string *)&local_40); uVar2 = uVar2 ^ 1; } if (local_40 != &local_30) { operator_delete(local_40,local_30 + 1); } if (local_60[0] != local_50) { operator_delete(local_60[0],local_50[0] + 1); } return uVar2; }
31,528
my_thread_init_thr_mutex
eloqsql/mysys/my_thr_init.c
static void my_thread_init_thr_mutex(struct st_my_thread_var *var) { mysql_mutex_init(key_my_thread_var_mutex, &var->mutex, MY_MUTEX_INIT_FAST); mysql_cond_init(key_my_thread_var_suspend, &var->suspend, NULL); }
O3
c
my_thread_init_thr_mutex: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x37cb49(%rip), %rax # 0x3eedd8 movl (%rax), %edi leaq 0x40(%rbx), %r14 leaq 0x2dd24c(%rip), %r15 # 0x34f4e8 movq (%r15), %rax movq %r14, %rsi callq *0x40(%rax) movq %rax, 0x80(%rbx) movq %r14, 0x78(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x68(%rbx) leaq 0x37d822(%rip), %rsi # 0x3efae0 movq %r14, %rdi callq 0x29640 leaq 0x37cb4f(%rip), %rax # 0x3eee1c movl (%rax), %edi leaq 0x8(%rbx), %r14 movq (%r15), %rax movq %r14, %rsi callq *0x60(%rax) movq %rax, 0x38(%rbx) movq %r14, %rdi xorl %esi, %esi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x29510
my_thread_init_thr_mutex: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rdi lea rax, key_my_thread_var_mutex mov edi, [rax] lea r14, [rbx+40h] lea r15, PSI_server mov rax, [r15] mov rsi, r14 call qword ptr [rax+40h] mov [rbx+80h], rax mov [rbx+78h], r14 xorps xmm0, xmm0 movups xmmword ptr [rbx+68h], xmm0 lea rsi, my_fast_mutexattr mov rdi, r14 call _pthread_mutex_init lea rax, key_my_thread_var_suspend mov edi, [rax] lea r14, [rbx+8] mov rax, [r15] mov rsi, r14 call qword ptr [rax+60h] mov [rbx+38h], rax mov rdi, r14 xor esi, esi add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _pthread_cond_init
long long my_thread_init_thr_mutex(long long a1) { *(_QWORD *)(a1 + 128) = (*((long long ( **)(_QWORD, long long))PSI_server + 8))( key_my_thread_var_mutex, a1 + 64); *(_QWORD *)(a1 + 120) = a1 + 64; *(_OWORD *)(a1 + 104) = 0LL; pthread_mutex_init(a1 + 64, &my_fast_mutexattr); *(_QWORD *)(a1 + 56) = (*((long long ( **)(_QWORD, long long))PSI_server + 12))( key_my_thread_var_suspend, a1 + 8); return pthread_cond_init(a1 + 8, 0LL); }
my_thread_init_thr_mutex: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI LEA RAX,[0x4eedd8] MOV EDI,dword ptr [RAX] LEA R14,[RBX + 0x40] LEA R15,[0x44f4e8] MOV RAX,qword ptr [R15] MOV RSI,R14 CALL qword ptr [RAX + 0x40] MOV qword ptr [RBX + 0x80],RAX MOV qword ptr [RBX + 0x78],R14 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x68],XMM0 LEA RSI,[0x4efae0] MOV RDI,R14 CALL 0x00129640 LEA RAX,[0x4eee1c] MOV EDI,dword ptr [RAX] LEA R14,[RBX + 0x8] MOV RAX,qword ptr [R15] MOV RSI,R14 CALL qword ptr [RAX + 0x60] MOV qword ptr [RBX + 0x38],RAX MOV RDI,R14 XOR ESI,ESI ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x00129510
void my_thread_init_thr_mutex(long param_1) { pthread_mutex_t *__mutex; int8 uVar1; __mutex = (pthread_mutex_t *)(param_1 + 0x40); uVar1 = (**(code **)(PSI_server + 0x40))(key_my_thread_var_mutex,__mutex); *(int8 *)(param_1 + 0x80) = uVar1; *(pthread_mutex_t **)(param_1 + 0x78) = __mutex; *(int8 *)(param_1 + 0x68) = 0; *(int8 *)(param_1 + 0x70) = 0; pthread_mutex_init(__mutex,(pthread_mutexattr_t *)&my_fast_mutexattr); uVar1 = (**(code **)(PSI_server + 0x60))(key_my_thread_var_suspend); *(int8 *)(param_1 + 0x38) = uVar1; pthread_cond_init((pthread_cond_t *)(param_1 + 8),(pthread_condattr_t *)0x0); return; }
31,529
dirname_part
eloqsql/mysys/mf_dirname.c
size_t dirname_part(char *to, const char *name, size_t *to_res_length) { size_t length; DBUG_ENTER("dirname_part"); DBUG_PRINT("enter",("'%s'",name)); length=dirname_length(name); *to_res_length= (size_t) (convert_dirname(to, name, name+length) - to); DBUG_RETURN(length); }
O0
c
dirname_part: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) jmp 0x6db46 movq -0x10(%rbp), %rdi callq 0x6dab0 movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x10(%rbp), %rdx addq -0x20(%rbp), %rdx callq 0x6db90 movq %rax, %rcx movq -0x8(%rbp), %rax subq %rax, %rcx movq -0x18(%rbp), %rax movq %rcx, (%rax) movq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
dirname_part: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx jmp short $+2 loc_6DB46: mov rdi, [rbp+var_10] call dirname_length mov [rbp+var_20], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_10] add rdx, [rbp+var_20] call convert_dirname mov rcx, rax mov rax, [rbp+var_8] sub rcx, rax mov rax, [rbp+var_18] mov [rax], rcx mov rax, [rbp+var_20] mov [rbp+var_28], rax mov rax, [rbp+var_28] add rsp, 30h pop rbp retn
long long dirname_part(long long a1, _BYTE *a2, _QWORD *a3) { long long v4; // [rsp+10h] [rbp-20h] v4 = dirname_length(a2); *a3 = convert_dirname(a1, a2, &a2[v4]) - a1; return v4; }
dirname_part: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX JMP 0x0016db46 LAB_0016db46: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0016dab0 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x10] ADD RDX,qword ptr [RBP + -0x20] CALL 0x0016db90 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x8] SUB RCX,RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RSP,0x30 POP RBP RET
long dirname_part(long param_1,long param_2,long *param_3) { long lVar1; long lVar2; lVar1 = dirname_length(param_2); lVar2 = convert_dirname(param_1,param_2,param_2 + lVar1); *param_3 = lVar2 - param_1; return lVar1; }
31,530
my_strxfrm_pad_unicode
eloqsql/strings/ctype-utf8.c
size_t my_strxfrm_pad_unicode(uchar *str, uchar *strend) { uchar *str0= str; DBUG_ASSERT(str && str <= strend); for ( ; str < strend ; ) { *str++= 0x00; if (str < strend) *str++= 0x20; } return str - str0; }
O0
c
my_strxfrm_pad_unicode: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x99446 jmp 0x99448 movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x99482 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x0, (%rax) movq -0x8(%rbp), %rax cmpq -0x10(%rbp), %rax jae 0x99480 movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) movb $0x20, (%rax) jmp 0x99448 movq -0x8(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax popq %rbp retq nop
my_strxfrm_pad_unicode: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_99446: jmp short $+2 loc_99448: mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_99482 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 0 mov rax, [rbp+var_8] cmp rax, [rbp+var_10] jnb short loc_99480 mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx mov byte ptr [rax], 20h ; ' ' loc_99480: jmp short loc_99448 loc_99482: mov rax, [rbp+var_8] mov rcx, [rbp+var_18] sub rax, rcx pop rbp retn
_BYTE * my_strxfrm_pad_unicode(_BYTE *a1, unsigned long long a2) { _BYTE *v2; // rax _BYTE *v3; // rax _BYTE *v5; // [rsp+10h] [rbp-8h] v5 = a1; while ( (unsigned long long)v5 < a2 ) { v2 = v5++; *v2 = 0; if ( (unsigned long long)v5 < a2 ) { v3 = v5++; *v3 = 32; } } return (_BYTE *)(v5 - a1); }
my_strxfrm_pad_unicode: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x00199446 LAB_00199446: JMP 0x00199448 LAB_00199448: MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x00199482 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x00199480 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x8],RCX MOV byte ptr [RAX],0x20 LAB_00199480: JMP 0x00199448 LAB_00199482: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX POP RBP RET
long my_strxfrm_pad_unicode(int1 *param_1,int1 *param_2) { int1 *puVar1; int1 *local_10; puVar1 = param_1; while (local_10 = puVar1, local_10 < param_2) { puVar1 = local_10 + 1; *local_10 = 0; if (puVar1 < param_2) { *puVar1 = 0x20; puVar1 = local_10 + 2; } } return (long)local_10 - (long)param_1; }
31,531
pvio_socket_wait_io_or_timeout
eloqsql/libmariadb/plugins/pvio/pvio_socket.c
int pvio_socket_wait_io_or_timeout(MARIADB_PVIO *pvio, my_bool is_read, int timeout) { int rc; struct st_pvio_socket *csock= NULL; #ifndef _WIN32 struct pollfd p_fd; #else struct timeval tv= {0,0}; fd_set fds, exc_fds; #endif if (!pvio || !pvio->data) return 0; if (pvio->mysql->options.extension && pvio->mysql->options.extension->io_wait != NULL) { my_socket handle; if (pvio_socket_get_handle(pvio, &handle)) return 0; return pvio->mysql->options.extension->io_wait(handle, is_read, timeout); } csock= (struct st_pvio_socket *)pvio->data; { #ifndef _WIN32 memset(&p_fd, 0, sizeof(p_fd)); p_fd.fd= csock->socket; p_fd.events= (is_read) ? POLLIN : POLLOUT; if (!timeout) timeout= -1; do { rc= poll(&p_fd, 1, timeout); } while (rc == -1 && errno == EINTR); if (rc == 0) errno= ETIMEDOUT; #else FD_ZERO(&fds); FD_ZERO(&exc_fds); FD_SET(csock->socket, &fds); FD_SET(csock->socket, &exc_fds); if (timeout >= 0) { tv.tv_sec= timeout / 1000; tv.tv_usec= (timeout % 1000) * 1000; } rc= select(0, (is_read) ? &fds : NULL, (is_read) ? NULL : &fds, &exc_fds, (timeout >= 0) ? &tv : NULL); if (rc == SOCKET_ERROR) { errno= WSAGetLastError(); } else if (rc == 0) { rc= SOCKET_ERROR; WSASetLastError(WSAETIMEDOUT); errno= ETIMEDOUT; } else if (FD_ISSET(csock->socket, &exc_fds)) { int err; int len = sizeof(int); if (getsockopt(csock->socket, SOL_SOCKET, SO_ERROR, (char *)&err, &len) != SOCKET_ERROR) { WSASetLastError(err); errno= err; } rc= SOCKET_ERROR; } #endif } return rc; }
O0
c
pvio_socket_wait_io_or_timeout: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %sil, %al movq %rdi, -0x10(%rbp) movb %al, -0x11(%rbp) movl %edx, -0x18(%rbp) movq $0x0, -0x28(%rbp) cmpq $0x0, -0x10(%rbp) je 0x6514e movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x6515a movl $0x0, -0x4(%rbp) jmp 0x65264 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax cmpq $0x0, 0x480(%rax) je 0x651ce movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq 0x480(%rax), %rax cmpq $0x0, 0x140(%rax) je 0x651ce movq -0x10(%rbp), %rdi leaq -0x34(%rbp), %rsi callq 0x66150 cmpb $0x0, %al je 0x651a2 movl $0x0, -0x4(%rbp) jmp 0x65264 movq -0x10(%rbp), %rax movq 0x40(%rax), %rax movq 0x480(%rax), %rax movq 0x140(%rax), %rax movl -0x34(%rbp), %edi movb -0x11(%rbp), %cl movl -0x18(%rbp), %edx movsbl %cl, %esi callq *%rax movl %eax, -0x4(%rbp) jmp 0x65264 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) leaq -0x30(%rbp), %rdi xorl %esi, %esi movl $0x8, %edx callq 0x362e0 movq -0x28(%rbp), %rax movl (%rax), %eax movl %eax, -0x30(%rbp) movsbl -0x11(%rbp), %edx movl $0x4, %eax movl $0x1, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movw %ax, -0x2c(%rbp) cmpl $0x0, -0x18(%rbp) jne 0x65217 movl $0xffffffff, -0x18(%rbp) # imm = 0xFFFFFFFF jmp 0x65219 movl -0x18(%rbp), %edx leaq -0x30(%rbp), %rdi movl $0x1, %esi callq 0x362c0 movl %eax, -0x1c(%rbp) xorl %eax, %eax cmpl $-0x1, -0x1c(%rbp) movb %al, -0x35(%rbp) jne 0x65246 callq 0x36990 cmpl $0x4, (%rax) sete %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %al testb $0x1, %al jne 0x65219 cmpl $0x0, -0x1c(%rbp) jne 0x6525e callq 0x36990 movl $0x6e, (%rax) movl -0x1c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax)
pvio_socket_wait_io_or_timeout: push rbp mov rbp, rsp sub rsp, 40h mov al, sil mov [rbp+var_10], rdi mov [rbp+var_11], al mov [rbp+var_18], edx mov [rbp+var_28], 0 cmp [rbp+var_10], 0 jz short loc_6514E mov rax, [rbp+var_10] cmp qword ptr [rax], 0 jnz short loc_6515A loc_6514E: mov [rbp+var_4], 0 jmp loc_65264 loc_6515A: mov rax, [rbp+var_10] mov rax, [rax+40h] cmp qword ptr [rax+480h], 0 jz short loc_651CE mov rax, [rbp+var_10] mov rax, [rax+40h] mov rax, [rax+480h] cmp qword ptr [rax+140h], 0 jz short loc_651CE mov rdi, [rbp+var_10] lea rsi, [rbp+var_34] call pvio_socket_get_handle cmp al, 0 jz short loc_651A2 mov [rbp+var_4], 0 jmp loc_65264 loc_651A2: mov rax, [rbp+var_10] mov rax, [rax+40h] mov rax, [rax+480h] mov rax, [rax+140h] mov edi, [rbp+var_34] mov cl, [rbp+var_11] mov edx, [rbp+var_18] movsx esi, cl call rax mov [rbp+var_4], eax jmp loc_65264 loc_651CE: mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax lea rdi, [rbp+var_30] xor esi, esi mov edx, 8 call _memset mov rax, [rbp+var_28] mov eax, [rax] mov [rbp+var_30], eax movsx edx, [rbp+var_11] mov eax, 4 mov ecx, 1 cmp edx, 0 cmovnz eax, ecx mov [rbp+var_2C], ax cmp [rbp+var_18], 0 jnz short loc_65217 mov [rbp+var_18], 0FFFFFFFFh loc_65217: jmp short $+2 loc_65219: mov edx, [rbp+var_18] lea rdi, [rbp+var_30] mov esi, 1 call _poll mov [rbp+var_1C], eax xor eax, eax cmp [rbp+var_1C], 0FFFFFFFFh mov [rbp+var_35], al jnz short loc_65246 call ___errno_location cmp dword ptr [rax], 4 setz al mov [rbp+var_35], al loc_65246: mov al, [rbp+var_35] test al, 1 jnz short loc_65219 cmp [rbp+var_1C], 0 jnz short loc_6525E call ___errno_location mov dword ptr [rax], 6Eh ; 'n' loc_6525E: mov eax, [rbp+var_1C] mov [rbp+var_4], eax loc_65264: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long pvio_socket_wait_io_or_timeout(int **a1, char a2, unsigned int a3) { __int16 v3; // ax bool v5; // [rsp+Bh] [rbp-35h] unsigned int v6; // [rsp+Ch] [rbp-34h] BYREF int v7; // [rsp+10h] [rbp-30h] BYREF __int16 v8; // [rsp+14h] [rbp-2Ch] int *v9; // [rsp+18h] [rbp-28h] unsigned int v10; // [rsp+24h] [rbp-1Ch] unsigned int v11; // [rsp+28h] [rbp-18h] char v12; // [rsp+2Fh] [rbp-11h] int **v13; // [rsp+30h] [rbp-10h] v13 = a1; v12 = a2; v11 = a3; v9 = 0LL; if ( a1 && *v13 ) { if ( *((_QWORD *)v13[8] + 144) && *(_QWORD *)(*((_QWORD *)v13[8] + 144) + 320LL) ) { if ( (unsigned __int8)pvio_socket_get_handle(v13, &v6) ) return 0; else return (unsigned int)(*(long long ( **)(_QWORD, _QWORD, _QWORD))(*((_QWORD *)v13[8] + 144) + 320LL))( v6, (unsigned int)v12, v11); } else { v9 = *v13; memset(&v7, 0LL, 8LL); v7 = *v9; v3 = 4; if ( v12 ) v3 = 1; v8 = v3; if ( !v11 ) v11 = -1; do { v10 = poll(&v7, 1LL, v11); v5 = 0; if ( v10 == -1 ) v5 = *(_DWORD *)__errno_location(&v7) == 4; } while ( v5 ); if ( !v10 ) *(_DWORD *)__errno_location(&v7) = 110; return v10; } } else { return 0; } }
pvio_socket_wait_io_or_timeout: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV AL,SIL MOV qword ptr [RBP + -0x10],RDI MOV byte ptr [RBP + -0x11],AL MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x28],0x0 CMP qword ptr [RBP + -0x10],0x0 JZ 0x0016514e MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX],0x0 JNZ 0x0016515a LAB_0016514e: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00165264 LAB_0016515a: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] CMP qword ptr [RAX + 0x480],0x0 JZ 0x001651ce MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RAX + 0x480] CMP qword ptr [RAX + 0x140],0x0 JZ 0x001651ce MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[RBP + -0x34] CALL 0x00166150 CMP AL,0x0 JZ 0x001651a2 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00165264 LAB_001651a2: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x40] MOV RAX,qword ptr [RAX + 0x480] MOV RAX,qword ptr [RAX + 0x140] MOV EDI,dword ptr [RBP + -0x34] MOV CL,byte ptr [RBP + -0x11] MOV EDX,dword ptr [RBP + -0x18] MOVSX ESI,CL CALL RAX MOV dword ptr [RBP + -0x4],EAX JMP 0x00165264 LAB_001651ce: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[RBP + -0x30] XOR ESI,ESI MOV EDX,0x8 CALL 0x001362e0 MOV RAX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x30],EAX MOVSX EDX,byte ptr [RBP + -0x11] MOV EAX,0x4 MOV ECX,0x1 CMP EDX,0x0 CMOVNZ EAX,ECX MOV word ptr [RBP + -0x2c],AX CMP dword ptr [RBP + -0x18],0x0 JNZ 0x00165217 MOV dword ptr [RBP + -0x18],0xffffffff LAB_00165217: JMP 0x00165219 LAB_00165219: MOV EDX,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x30] MOV ESI,0x1 CALL 0x001362c0 MOV dword ptr [RBP + -0x1c],EAX XOR EAX,EAX CMP dword ptr [RBP + -0x1c],-0x1 MOV byte ptr [RBP + -0x35],AL JNZ 0x00165246 CALL 0x00136990 CMP dword ptr [RAX],0x4 SETZ AL MOV byte ptr [RBP + -0x35],AL LAB_00165246: MOV AL,byte ptr [RBP + -0x35] TEST AL,0x1 JNZ 0x00165219 CMP dword ptr [RBP + -0x1c],0x0 JNZ 0x0016525e CALL 0x00136990 MOV dword ptr [RAX],0x6e LAB_0016525e: MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x4],EAX LAB_00165264: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int pvio_socket_wait_io_or_timeout(long *param_1,char param_2,int param_3) { char cVar1; int *piVar2; bool bVar3; int4 local_3c; pollfd local_38; int *local_30; int local_24; int local_20; char local_19; long *local_18; int local_c; local_30 = (int *)0x0; if ((param_1 == (long *)0x0) || (*param_1 == 0)) { local_c = 0; } else { local_20 = param_3; local_19 = param_2; local_18 = param_1; if ((*(long *)(param_1[8] + 0x480) == 0) || (*(long *)(*(long *)(param_1[8] + 0x480) + 0x140) == 0)) { local_30 = (int *)*param_1; memset(&local_38,0,8); local_38.fd = *local_30; local_38.events = 4; if (local_19 != '\0') { local_38.events = 1; } if (local_20 == 0) { local_20 = -1; } do { local_24 = poll(&local_38,1,local_20); bVar3 = false; if (local_24 == -1) { piVar2 = __errno_location(); bVar3 = *piVar2 == 4; } } while (bVar3); if (local_24 == 0) { piVar2 = __errno_location(); *piVar2 = 0x6e; } local_c = local_24; } else { cVar1 = pvio_socket_get_handle(param_1,&local_3c); if (cVar1 == '\0') { local_c = (**(code **)(*(long *)(local_18[8] + 0x480) + 0x140)) (local_3c,(int)local_19,local_20,local_19); } else { local_c = 0; } } } return local_c; }
31,532
ftxui::ScreenInteractive::RunOnceBlocking(std::shared_ptr<ftxui::ComponentBase>)
Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
void ScreenInteractive::RunOnceBlocking(Component component) { ExecuteSignalHandlers(); Task task; if (task_receiver_->Receive(&task)) { HandleTask(component, task); } RunOnce(component); }
O2
cpp
ftxui::ScreenInteractive::RunOnceBlocking(std::shared_ptr<ftxui::ComponentBase>): pushq %r15 pushq %r14 pushq %rbx subq $0x70, %rsp movq %rsi, %r14 movq %rdi, %rbx callq 0x27d28 leaq 0x28(%rsp), %r15 movq %r15, %rdi callq 0x295ce movq 0x70(%rbx), %rdi movq %r15, %rsi callq 0x2915e testb %al, %al je 0x27cc1 leaq 0x18(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x1341e leaq 0x28(%rsp), %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x27d92 leaq 0x20(%rsp), %rdi callq 0x13452 leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x1341e movq %rbx, %rdi movq %r15, %rsi callq 0x27dd4 leaq 0x10(%rsp), %rdi callq 0x13452 leaq 0x28(%rsp), %rdi callq 0x1368c addq $0x70, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx leaq 0x20(%rsp), %rdi jmp 0x27d0c movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x13452 jmp 0x27d16 movq %rax, %rbx leaq 0x28(%rsp), %rdi callq 0x1368c movq %rbx, %rdi callq 0xc7f0
_ZN5ftxui17ScreenInteractive15RunOnceBlockingESt10shared_ptrINS_13ComponentBaseEE: push r15 push r14 push rbx sub rsp, 70h mov r14, rsi mov rbx, rdi call _ZN5ftxui12_GLOBAL__N_121ExecuteSignalHandlersEv; ftxui::`anonymous namespace'::ExecuteSignalHandlers(void) lea r15, [rsp+88h+var_60] mov rdi, r15 call _ZNSt8__detail9__variant13_Variant_baseIJN5ftxui5EventESt8functionIFvvEENS2_13AnimationTaskEEEC2Ev; std::__detail::__variant::_Variant_base<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::_Variant_base(void) mov rdi, [rbx+70h] mov rsi, r15 call _ZN5ftxui12ReceiverImplISt7variantIJNS_5EventESt8functionIFvvEENS_13AnimationTaskEEEE7ReceiveEPS7_; ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>::Receive(std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>*) test al, al jz short loc_27CC1 lea r15, [rsp+88h+var_70] mov rdi, r15 mov rsi, r14 call _ZNSt12__shared_ptrIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2EEC2ERKS4_; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> const&) lea rdx, [rsp+88h+var_60] mov rdi, rbx mov rsi, r15 call _ZN5ftxui17ScreenInteractive10HandleTaskESt10shared_ptrINS_13ComponentBaseEERSt7variantIJNS_5EventESt8functionIFvvEENS_13AnimationTaskEEE; ftxui::ScreenInteractive::HandleTask(std::shared_ptr<ftxui::ComponentBase>,std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask> &) lea rdi, [rsp+88h+var_68] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() loc_27CC1: lea r15, [rsp+88h+var_80] mov rdi, r15 mov rsi, r14 call _ZNSt12__shared_ptrIN5ftxui13ComponentBaseELN9__gnu_cxx12_Lock_policyE2EEC2ERKS4_; std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> const&) mov rdi, rbx; this mov rsi, r15 call _ZN5ftxui17ScreenInteractive7RunOnceESt10shared_ptrINS_13ComponentBaseEE; ftxui::ScreenInteractive::RunOnce(std::shared_ptr<ftxui::ComponentBase>) lea rdi, [rsp+88h+var_78] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() lea rdi, [rsp+88h+var_60] call _ZNSt8__detail9__variant16_Variant_storageILb0EJN5ftxui5EventESt8functionIFvvEENS2_13AnimationTaskEEED2Ev; std::__detail::__variant::_Variant_storage<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::~_Variant_storage() add rsp, 70h pop rbx pop r14 pop r15 retn mov rbx, rax lea rdi, [rsp+arg_18] jmp short loc_27D0C mov rbx, rax lea rdi, [rsp+arg_8] loc_27D0C: call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_27D16 mov rbx, rax loc_27D16: lea rdi, [rsp+arg_20] call _ZNSt8__detail9__variant16_Variant_storageILb0EJN5ftxui5EventESt8functionIFvvEENS2_13AnimationTaskEEED2Ev; std::__detail::__variant::_Variant_storage<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::~_Variant_storage() mov rdi, rbx call __Unwind_Resume
long long ftxui::ScreenInteractive::RunOnceBlocking(ftxui::Screen *this, _QWORD *a2) { long long result; // rax int v3; // [rsp+0h] [rbp-88h] long long v4; // [rsp+8h] [rbp-80h] BYREF long long v5; // [rsp+10h] [rbp-78h] BYREF long long v6; // [rsp+18h] [rbp-70h] BYREF long long v7; // [rsp+20h] [rbp-68h] BYREF _BYTE v8[96]; // [rsp+28h] [rbp-60h] BYREF ftxui::`anonymous namespace'::ExecuteSignalHandlers(this); std::__detail::__variant::_Variant_base<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::_Variant_base(v8); if ( (unsigned __int8)ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>::Receive( *((_QWORD *)this + 14), v8) ) { std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(&v6, a2); ftxui::ScreenInteractive::HandleTask(this, &v6, v8); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v7); } std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(&v4, a2); ftxui::ScreenInteractive::RunOnce(this, v3, v4, v5, v6, v7); result = std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v5); std::__detail::__variant::_Variant_storage<false,ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>::~_Variant_storage(); return result; }
RunOnceBlocking: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x70 MOV R14,RSI MOV RBX,RDI CALL 0x00127d28 LEA R15,[RSP + 0x28] MOV RDI,R15 CALL 0x001295ce MOV RDI,qword ptr [RBX + 0x70] LAB_00127c8b: MOV RSI,R15 CALL 0x0012915e TEST AL,AL JZ 0x00127cc1 LEA R15,[RSP + 0x18] MOV RDI,R15 MOV RSI,R14 CALL 0x0011341e LAB_00127ca7: LEA RDX,[RSP + 0x28] MOV RDI,RBX MOV RSI,R15 CALL 0x00127d92 LEA RDI,[RSP + 0x20] CALL 0x00113452 LAB_00127cc1: LEA R15,[RSP + 0x8] MOV RDI,R15 MOV RSI,R14 CALL 0x0011341e LAB_00127cd1: MOV RDI,RBX MOV RSI,R15 CALL 0x00127dd4 LAB_00127cdc: LEA RDI,[RSP + 0x10] CALL 0x00113452 LEA RDI,[RSP + 0x28] CALL 0x0011368c ADD RSP,0x70 POP RBX POP R14 POP R15 RET
/* ftxui::ScreenInteractive::RunOnceBlocking(std::shared_ptr<ftxui::ComponentBase>) */ void __thiscall ftxui::ScreenInteractive::RunOnceBlocking(ScreenInteractive *this,__shared_ptr *param_2) { char cVar1; __shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> local_80 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_78 [8]; __shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2> local_70 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_68 [8]; variant local_60 [72]; (anonymous_namespace)::ExecuteSignalHandlers(); std::__detail::__variant::_Variant_base<ftxui::Event,std::function<void()>,ftxui::AnimationTask>:: _Variant_base(); /* try { // try from 00127c8b to 00127c92 has its CatchHandler @ 00127d13 */ cVar1 = ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>:: Receive(*(ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>> **)(this + 0x70),local_60); if (cVar1 != '\0') { std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr (local_70,param_2); /* try { // try from 00127ca7 to 00127cb6 has its CatchHandler @ 00127cfa */ HandleTask(this,local_70,local_60); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_68); } std::__shared_ptr<ftxui::ComponentBase,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(local_80,param_2) ; /* try { // try from 00127cd1 to 00127cdb has its CatchHandler @ 00127d04 */ RunOnce(this,local_80); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_78); std::__detail::__variant:: _Variant_storage<false,ftxui::Event,std::function<void()>,ftxui::AnimationTask>::~_Variant_storage ((_Variant_storage<false,ftxui::Event,std::function<void()>,ftxui::AnimationTask> *) local_60); return; }
31,533
translog_sync_files
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_sync_files(uint32 min, uint32 max, my_bool sync_dir) { uint fn; my_bool rc= 0; ulonglong flush_interval; DBUG_ENTER("translog_sync_files"); DBUG_PRINT("info", ("min: %lu max: %lu sync dir: %d", (ulong) min, (ulong) max, (int) sync_dir)); DBUG_ASSERT(min <= max); flush_interval= group_commit_wait; if (flush_interval) flush_start= microsecond_interval_timer(); for (fn= min; fn <= max; fn++) { TRANSLOG_FILE *file= get_logfile_by_number(fn); DBUG_ASSERT(file != NULL); if (!file->is_sync) { if (mysql_file_sync(file->handler.file, MYF(MY_WME))) { rc= 1; translog_stop_writing(); DBUG_RETURN(rc); } translog_syncs++; file->is_sync= 1; } } if (sync_dir) { if (!(rc= sync_dir(log_descriptor.directory_fd, MYF(MY_WME | MY_IGNORE_BADFD)))) translog_syncs++; } DBUG_RETURN(rc); }
O0
c
translog_sync_files: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movb %dl, %al movl %edi, -0x8(%rbp) movl %esi, -0xc(%rbp) movb %al, -0xd(%rbp) movb $0x0, -0x15(%rbp) jmp 0x56d39 jmp 0x56d3b jmp 0x56d3d movl 0xc235a1(%rip), %eax # 0xc7a2e4 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x56d64 callq 0xf0070 movl $0x3e8, %ecx # imm = 0x3E8 xorl %edx, %edx divq %rcx movq %rax, 0xc2356c(%rip) # 0xc7a2d0 movl -0x8(%rbp), %eax movl %eax, -0x14(%rbp) movl -0x14(%rbp), %eax cmpl -0xc(%rbp), %eax ja 0x56de4 movl -0x14(%rbp), %edi callq 0x58990 movq %rax, -0x28(%rbp) jmp 0x56d80 movq -0x28(%rbp), %rax cmpb $0x0, 0x51(%rax) jne 0x56dd7 movq -0x28(%rbp), %rax movl 0x18(%rax), %edx leaq 0xfaf36(%rip), %rdi # 0x151cce movl $0x1ed2, %esi # imm = 0x1ED2 movl $0x10, %ecx callq 0x59160 cmpl $0x0, %eax je 0x56dbd movb $0x1, -0x15(%rbp) callq 0x4f7b0 movb -0x15(%rbp), %al movb %al, -0x1(%rbp) jmp 0x56e29 movq 0x4213f4(%rip), %rax # 0x4781b8 addq $0x1, %rax movq %rax, 0x4213e9(%rip) # 0x4781b8 movq -0x28(%rbp), %rax movb $0x1, 0x51(%rax) jmp 0x56dd9 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0x56d6a cmpb $0x0, -0xd(%rbp) je 0x56e21 movl 0x4228c0(%rip), %edx # 0x4796b0 leaq 0xfaed7(%rip), %rdi # 0x151cce movl $0x1ee0, %esi # imm = 0x1EE0 movl $0x30, %ecx callq 0x59160 movb %al, -0x15(%rbp) cmpb $0x0, %al jne 0x56e1f movq 0x4213a4(%rip), %rax # 0x4781b8 addq $0x1, %rax movq %rax, 0x421399(%rip) # 0x4781b8 jmp 0x56e21 jmp 0x56e23 movb -0x15(%rbp), %al movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
translog_sync_files: push rbp mov rbp, rsp sub rsp, 30h mov al, dl mov [rbp+var_8], edi mov [rbp+var_C], esi mov [rbp+var_D], al mov [rbp+var_15], 0 jmp short $+2 loc_56D39: jmp short $+2 loc_56D3B: jmp short $+2 loc_56D3D: mov eax, cs:group_commit_wait mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_56D64 call my_interval_timer mov ecx, 3E8h xor edx, edx div rcx mov cs:flush_start, rax loc_56D64: mov eax, [rbp+var_8] mov [rbp+var_14], eax loc_56D6A: mov eax, [rbp+var_14] cmp eax, [rbp+var_C] ja short loc_56DE4 mov edi, [rbp+var_14] call get_logfile_by_number mov [rbp+var_28], rax jmp short $+2 loc_56D80: mov rax, [rbp+var_28] cmp byte ptr [rax+51h], 0 jnz short loc_56DD7 mov rax, [rbp+var_28] mov edx, [rax+18h] lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 1ED2h mov ecx, 10h call inline_mysql_file_sync_3 cmp eax, 0 jz short loc_56DBD mov [rbp+var_15], 1 call translog_stop_writing mov al, [rbp+var_15] mov [rbp+var_1], al jmp short loc_56E29 loc_56DBD: mov rax, cs:translog_syncs add rax, 1 mov cs:translog_syncs, rax mov rax, [rbp+var_28] mov byte ptr [rax+51h], 1 loc_56DD7: jmp short $+2 loc_56DD9: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp short loc_56D6A loc_56DE4: cmp [rbp+var_D], 0 jz short loc_56E21 mov edx, cs:dword_4796B0 lea rdi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov esi, 1EE0h mov ecx, 30h ; '0' call inline_mysql_file_sync_3 mov [rbp+var_15], al cmp al, 0 jnz short loc_56E1F mov rax, cs:translog_syncs add rax, 1 mov cs:translog_syncs, rax loc_56E1F: jmp short $+2 loc_56E21: jmp short $+2 loc_56E23: mov al, [rbp+var_15] mov [rbp+var_1], al loc_56E29: mov al, [rbp+var_1] add rsp, 30h pop rbp retn
char translog_sync_files(unsigned int a1, unsigned int a2, char a3) { long long logfile_by_number; // [rsp+8h] [rbp-28h] char v5; // [rsp+1Bh] [rbp-15h] v5 = 0; if ( group_commit_wait ) flush_start = my_interval_timer() / 0x3E8uLL; while ( a1 <= a2 ) { logfile_by_number = get_logfile_by_number(a1); if ( !*(_BYTE *)(logfile_by_number + 81) ) { if ( (unsigned int)inline_mysql_file_sync_3( "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 7890LL, *(unsigned int *)(logfile_by_number + 24), 16LL) ) { translog_stop_writing(); return 1; } ++translog_syncs; *(_BYTE *)(logfile_by_number + 81) = 1; } ++a1; } if ( a3 ) { v5 = inline_mysql_file_sync_3( "/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 7904LL, (unsigned int)dword_4796B0, 48LL); if ( !v5 ) ++translog_syncs; } return v5; }
translog_sync_files: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV AL,DL MOV dword ptr [RBP + -0x8],EDI MOV dword ptr [RBP + -0xc],ESI MOV byte ptr [RBP + -0xd],AL MOV byte ptr [RBP + -0x15],0x0 JMP 0x00156d39 LAB_00156d39: JMP 0x00156d3b LAB_00156d3b: JMP 0x00156d3d LAB_00156d3d: MOV EAX,dword ptr [0x00d7a2e4] MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JZ 0x00156d64 CALL 0x001f0070 MOV ECX,0x3e8 XOR EDX,EDX DIV RCX MOV qword ptr [0x00d7a2d0],RAX LAB_00156d64: MOV EAX,dword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x14],EAX LAB_00156d6a: MOV EAX,dword ptr [RBP + -0x14] CMP EAX,dword ptr [RBP + -0xc] JA 0x00156de4 MOV EDI,dword ptr [RBP + -0x14] CALL 0x00158990 MOV qword ptr [RBP + -0x28],RAX JMP 0x00156d80 LAB_00156d80: MOV RAX,qword ptr [RBP + -0x28] CMP byte ptr [RAX + 0x51],0x0 JNZ 0x00156dd7 MOV RAX,qword ptr [RBP + -0x28] MOV EDX,dword ptr [RAX + 0x18] LEA RDI,[0x251cce] MOV ESI,0x1ed2 MOV ECX,0x10 CALL 0x00159160 CMP EAX,0x0 JZ 0x00156dbd MOV byte ptr [RBP + -0x15],0x1 CALL 0x0014f7b0 MOV AL,byte ptr [RBP + -0x15] MOV byte ptr [RBP + -0x1],AL JMP 0x00156e29 LAB_00156dbd: MOV RAX,qword ptr [0x005781b8] ADD RAX,0x1 MOV qword ptr [0x005781b8],RAX MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x51],0x1 LAB_00156dd7: JMP 0x00156dd9 LAB_00156dd9: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x00156d6a LAB_00156de4: CMP byte ptr [RBP + -0xd],0x0 JZ 0x00156e21 MOV EDX,dword ptr [0x005796b0] LEA RDI,[0x251cce] MOV ESI,0x1ee0 MOV ECX,0x30 CALL 0x00159160 MOV byte ptr [RBP + -0x15],AL CMP AL,0x0 JNZ 0x00156e1f MOV RAX,qword ptr [0x005781b8] ADD RAX,0x1 MOV qword ptr [0x005781b8],RAX LAB_00156e1f: JMP 0x00156e21 LAB_00156e21: JMP 0x00156e23 LAB_00156e23: MOV AL,byte ptr [RBP + -0x15] MOV byte ptr [RBP + -0x1],AL LAB_00156e29: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x30 POP RBP RET
int8 translog_sync_files(uint param_1,uint param_2,char param_3) { int iVar1; ulong uVar2; long lVar3; int8 uVar4; int7 uVar5; char local_1d; uint local_1c; char local_9; local_1d = '\0'; local_1c = param_1; if (group_commit_wait != 0) { uVar2 = my_interval_timer(); flush_start = uVar2 / 1000; } do { uVar2 = (ulong)local_1c; if (param_2 < local_1c) { if (param_3 != '\0') { uVar2 = inline_mysql_file_sync ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x1ee0,DAT_005796b0,0x30); local_1d = (char)uVar2; if (local_1d == '\0') { uVar2 = translog_syncs + 1; translog_syncs = uVar2; } } uVar5 = (int7)(uVar2 >> 8); local_9 = local_1d; LAB_00156e29: return CONCAT71(uVar5,local_9); } lVar3 = get_logfile_by_number(local_1c); if (*(char *)(lVar3 + 0x51) == '\0') { iVar1 = inline_mysql_file_sync ("/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c", 0x1ed2,*(int4 *)(lVar3 + 0x18),0x10); if (iVar1 != 0) { uVar4 = translog_stop_writing(); uVar5 = (int7)((ulong)uVar4 >> 8); local_9 = '\x01'; goto LAB_00156e29; } translog_syncs = translog_syncs + 1; *(int1 *)(lVar3 + 0x51) = 1; } local_1c = local_1c + 1; } while( true ); }
31,534
ma_redo_not_needed_for_page
eloqsql/storage/maria/ma_recovery_util.c
my_bool _ma_redo_not_needed_for_page(uint16 shortid, LSN lsn, pgcache_page_no_t page, my_bool index) { if (cmp_translog_addr(lsn, checkpoint_start) < 0) { /* 64-bit key is formed like this: Most significant byte: 0 if data page, 1 if index page Next 2 bytes: table's short id Next 5 bytes: page number */ char llbuf[22]; uint64 file_and_page_id= (((uint64)((index << 16) | shortid)) << 40) | page; struct st_dirty_page *dirty_page= (struct st_dirty_page *) my_hash_search(&all_dirty_pages, (uchar *)&file_and_page_id, sizeof(file_and_page_id)); DBUG_PRINT("info", ("page %lld in dirty pages list: %d", (ulonglong) page, dirty_page != NULL)); if ((dirty_page == NULL) || cmp_translog_addr(lsn, dirty_page->rec_lsn) < 0) { tprint(tracef, ", ignoring page %s because of dirty_pages list\n", llstr((ulonglong) page, llbuf)); return TRUE; } } return FALSE; }
O3
c
ma_redo_not_needed_for_page: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %fs:0x28, %rax movq %rax, -0x18(%rbp) cmpq %rsi, 0xbaef8e(%rip) # 0xbff778 jle 0x50854 movq %rdx, %rbx movq %rsi, %r14 movzbl %cl, %eax movzwl %di, %ecx shlq $0x38, %rax shlq $0x28, %rcx orq %rax, %rcx orq %rdx, %rcx leaq -0x38(%rbp), %rsi movq %rcx, (%rsi) leaq 0xbaef74(%rip), %rdi # 0xbff788 movl $0x8, %edx callq 0x93caa testq %rax, %rax je 0x50829 cmpq %r14, 0x8(%rax) jle 0x50854 movq 0xbaefc8(%rip), %r14 # 0xbff7f8 leaq -0x30(%rbp), %rsi movq %rbx, %rdi callq 0xd58dc leaq 0x8a0bb(%rip), %rsi # 0xda8fe movq %r14, %rdi movq %rax, %rdx xorl %eax, %eax callq 0x50630 movb $0x1, %al jmp 0x50856 xorl %eax, %eax movq %fs:0x28, %rcx cmpq -0x18(%rbp), %rcx jne 0x5086e addq $0x30, %rsp popq %rbx popq %r14 popq %rbp retq callq 0x29270 nop
_ma_redo_not_needed_for_page: push rbp mov rbp, rsp push r14 push rbx sub rsp, 30h mov rax, fs:28h mov [rbp+var_18], rax cmp cs:checkpoint_start, rsi jle short loc_50854 mov rbx, rdx mov r14, rsi movzx eax, cl movzx ecx, di shl rax, 38h shl rcx, 28h or rcx, rax or rcx, rdx lea rsi, [rbp+var_38] mov [rsi], rcx lea rdi, all_dirty_pages mov edx, 8 call my_hash_search test rax, rax jz short loc_50829 cmp [rax+8], r14 jle short loc_50854 loc_50829: mov r14, cs:tracef lea rsi, [rbp+var_30] mov rdi, rbx call llstr lea rsi, aIgnoringPageSB; ", ignoring page %s because of dirty_pag"... mov rdi, r14 mov rdx, rax xor eax, eax call tprint mov al, 1 jmp short loc_50856 loc_50854: xor eax, eax loc_50856: mov rcx, fs:28h cmp rcx, [rbp+var_18] jnz short loc_5086E add rsp, 30h pop rbx pop r14 pop rbp retn loc_5086E: call ___stack_chk_fail
char ma_redo_not_needed_for_page( unsigned __int16 a1, long long a2, long long a3, unsigned __int8 a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12) { long long v13; // rax long long v14; // r14 long long v15; // rax long long v16; // rcx long long v17; // r8 long long v18; // r9 __m128 v19; // xmm4 __m128 v20; // xmm5 char v22; // [rsp+0h] [rbp-40h] unsigned long long v23; // [rsp+8h] [rbp-38h] BYREF _BYTE v24[24]; // [rsp+10h] [rbp-30h] BYREF unsigned long long v25; // [rsp+28h] [rbp-18h] v25 = __readfsqword(0x28u); if ( checkpoint_start <= a2 ) return 0; v23 = a3 | ((unsigned long long)a4 << 56) | ((unsigned long long)a1 << 40); v13 = my_hash_search(&all_dirty_pages, &v23, 8LL); if ( v13 ) { if ( *(_QWORD *)(v13 + 8) <= a2 ) return 0; } v14 = tracef; v15 = llstr(a3, v24); tprint( v14, (long long)", ignoring page %s because of dirty_pages list\n", v15, v16, v17, v18, a5, a6, a7, a8, v19, v20, a11, a12, v22); return 1; }
_ma_redo_not_needed_for_page: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX SUB RSP,0x30 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [0x00cff778],RSI JLE 0x00150854 MOV RBX,RDX MOV R14,RSI MOVZX EAX,CL MOVZX ECX,DI SHL RAX,0x38 SHL RCX,0x28 OR RCX,RAX OR RCX,RDX LEA RSI,[RBP + -0x38] MOV qword ptr [RSI],RCX LEA RDI,[0xcff788] MOV EDX,0x8 CALL 0x00193caa TEST RAX,RAX JZ 0x00150829 CMP qword ptr [RAX + 0x8],R14 JLE 0x00150854 LAB_00150829: MOV R14,qword ptr [0x00cff7f8] LEA RSI,[RBP + -0x30] MOV RDI,RBX CALL 0x001d58dc LEA RSI,[0x1da8fe] MOV RDI,R14 MOV RDX,RAX XOR EAX,EAX CALL 0x00150630 MOV AL,0x1 JMP 0x00150856 LAB_00150854: XOR EAX,EAX LAB_00150856: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x18] JNZ 0x0015086e ADD RSP,0x30 POP RBX POP R14 POP RBP RET LAB_0015086e: CALL 0x00129270
int8 _ma_redo_not_needed_for_page(ushort param_1,long param_2,ulong param_3,byte param_4) { long lVar1; int8 uVar2; int8 uVar3; long in_FS_OFFSET; ulong local_40; int1 local_38 [24]; long local_20; local_20 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 < checkpoint_start) { local_40 = (ulong)param_1 << 0x28 | (ulong)param_4 << 0x38 | param_3; lVar1 = my_hash_search(all_dirty_pages,&local_40,8); uVar3 = tracef; if ((lVar1 == 0) || (param_2 < *(long *)(lVar1 + 8))) { uVar2 = llstr(param_3,local_38); tprint(uVar3,", ignoring page %s because of dirty_pages list\n",uVar2); uVar3 = 1; goto LAB_00150856; } } uVar3 = 0; LAB_00150856: if (*(long *)(in_FS_OFFSET + 0x28) == local_20) { return uVar3; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,535
minja::Value::operator>(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool operator>(const Value & other) const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_number() && other.is_number()) return get<double>() > other.get<double>(); if (is_string() && other.is_string()) return get<std::string>() > other.get<std::string>(); throw std::runtime_error("Cannot compare values: " + dump() + " > " + other.dump()); }
O0
cpp
minja::Value::operator>(minja::Value const&) const: subq $0x138, %rsp # imm = 0x138 movq %rdi, 0x128(%rsp) movq %rsi, 0x120(%rsp) movq 0x128(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0xb6150 testb $0x1, %al jne 0x14489f jmp 0x1448fd movl $0x10, %edi callq 0x52670 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x18(%rsp) leaq 0x98254(%rip), %rsi # 0x1dcb0f callq 0x52460 jmp 0x1448c2 movq 0x18(%rsp), %rdi movq 0x1226d2(%rip), %rsi # 0x266fa0 movq 0x12268b(%rip), %rdx # 0x266f60 callq 0x52a60 movq 0x18(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) callq 0x52e60 jmp 0x144bc2 movq 0x20(%rsp), %rdi callq 0xb8120 testb $0x1, %al jne 0x14490d jmp 0x14495b movq 0x120(%rsp), %rdi callq 0xb8120 testb $0x1, %al jne 0x144920 jmp 0x14495b movq 0x20(%rsp), %rdi callq 0xb8140 movsd %xmm0, 0x10(%rsp) movq 0x120(%rsp), %rdi callq 0xb8140 movaps %xmm0, %xmm1 movsd 0x10(%rsp), %xmm0 ucomisd %xmm1, %xmm0 seta %al andb $0x1, %al movb %al, 0x137(%rsp) jmp 0x144bb1 movq 0x20(%rsp), %rdi callq 0xb7f60 testb $0x1, %al jne 0x14496e jmp 0x144a10 movq 0x120(%rsp), %rdi callq 0xb7f60 testb $0x1, %al jne 0x144984 jmp 0x144a10 movq 0x20(%rsp), %rsi leaq 0xf0(%rsp), %rdi callq 0xb8250 movq 0x120(%rsp), %rsi leaq 0xd0(%rsp), %rdi callq 0xb8250 jmp 0x1449ad leaq 0xf0(%rsp), %rdi leaq 0xd0(%rsp), %rsi callq 0x144c90 andb $0x1, %al movb %al, 0x137(%rsp) leaq 0xd0(%rsp), %rdi callq 0x53408 leaq 0xf0(%rsp), %rdi callq 0x53408 jmp 0x144bb1 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) leaq 0xf0(%rsp), %rdi callq 0x53408 jmp 0x144bc2 movb $0x1, 0x2f(%rsp) movl $0x10, %edi callq 0x52670 movq 0x20(%rsp), %rsi movq %rax, 0x8(%rsp) leaq 0x50(%rsp), %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6dd0 jmp 0x144a3c leaq 0x98391(%rip), %rsi # 0x1dcdd4 leaq 0x70(%rsp), %rdi leaq 0x50(%rsp), %rdx callq 0x5cf00 jmp 0x144a54 leaq 0x9cf7f(%rip), %rdx # 0x1e19da leaq 0x90(%rsp), %rdi leaq 0x70(%rsp), %rsi callq 0x61fd0 jmp 0x144a6f movq 0x120(%rsp), %rsi leaq 0x30(%rsp), %rdi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0xb6dd0 jmp 0x144a8a leaq 0xb0(%rsp), %rdi leaq 0x90(%rsp), %rsi leaq 0x30(%rsp), %rdx callq 0xcc630 jmp 0x144aa6 movq 0x8(%rsp), %rdi leaq 0xb0(%rsp), %rsi callq 0x524b0 jmp 0x144aba movq 0x8(%rsp), %rdi movb $0x0, 0x2f(%rsp) movq 0x1224d5(%rip), %rsi # 0x266fa0 movq 0x12248e(%rip), %rdx # 0x266f60 callq 0x52a60 jmp 0x144bcf movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) jmp 0x144b9c movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) jmp 0x144b92 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) jmp 0x144b88 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) jmp 0x144b7b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) jmp 0x144b71 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x118(%rsp) movl %eax, 0x114(%rsp) leaq 0xb0(%rsp), %rdi callq 0x53408 leaq 0x30(%rsp), %rdi callq 0x53408 leaq 0x90(%rsp), %rdi callq 0x53408 leaq 0x70(%rsp), %rdi callq 0x53408 leaq 0x50(%rsp), %rdi callq 0x53408 testb $0x1, 0x2f(%rsp) jne 0x144ba5 jmp 0x144baf movq 0x8(%rsp), %rdi callq 0x52e60 jmp 0x144bc2 movb 0x137(%rsp), %al andb $0x1, %al addq $0x138, %rsp # imm = 0x138 retq movq 0x118(%rsp), %rdi callq 0x52ae0 nop
_ZNK5minja5ValuegtERKS0_: sub rsp, 138h mov [rsp+138h+var_10], rdi mov [rsp+138h+var_18], rsi mov rdi, [rsp+138h+var_10]; this mov [rsp+138h+var_118], rdi; __int16 call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, 1 jnz short loc_14489F jmp short loc_1448FD loc_14489F: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+138h+var_120], rax lea rsi, aUndefinedValue; "Undefined value or reference" call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_1448C2: mov rdi, [rsp+138h+var_120]; void * mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw mov rdi, [rsp+138h+var_120]; void * mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax call ___cxa_free_exception jmp loc_144BC2 loc_1448FD: mov rdi, [rsp+138h+var_118]; this call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void) test al, 1 jnz short loc_14490D jmp short loc_14495B loc_14490D: mov rdi, [rsp+138h+var_18]; this call _ZNK5minja5Value9is_numberEv; minja::Value::is_number(void) test al, 1 jnz short loc_144920 jmp short loc_14495B loc_144920: mov rdi, [rsp+138h+var_118] call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+138h+var_128], xmm0 mov rdi, [rsp+138h+var_18] call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movaps xmm1, xmm0 movsd xmm0, [rsp+138h+var_128] ucomisd xmm0, xmm1 setnbe al and al, 1 mov [rsp+138h+var_1], al jmp loc_144BB1 loc_14495B: mov rdi, [rsp+138h+var_118]; this call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_14496E jmp loc_144A10 loc_14496E: mov rdi, [rsp+138h+var_18]; this call _ZNK5minja5Value9is_stringEv; minja::Value::is_string(void) test al, 1 jnz short loc_144984 jmp loc_144A10 loc_144984: mov rsi, [rsp+138h+var_118]; int lea rdi, [rsp+138h+var_48]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) mov rsi, [rsp+138h+var_18]; int lea rdi, [rsp+138h+var_68]; int call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) jmp short $+2 loc_1449AD: lea rdi, [rsp+138h+var_48] lea rsi, [rsp+138h+var_68] call _ZStgtIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator><char>(std::string const&,std::string const&) and al, 1 mov [rsp+138h+var_1], al lea rdi, [rsp+138h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+138h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_144BB1 mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax lea rdi, [rsp+138h+var_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp loc_144BC2 loc_144A10: mov [rsp+138h+var_109], 1 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rsi, [rsp+138h+var_118] mov [rsp+138h+var_130], rax lea rdi, [rsp+138h+var_E8] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short $+2 loc_144A3C: lea rsi, aCannotCompareV; "Cannot compare values: " lea rdi, [rsp+138h+var_C8] lea rdx, [rsp+138h+var_E8] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) jmp short $+2 loc_144A54: lea rdx, asc_1E19DA; " > " lea rdi, [rsp+138h+var_A8] lea rsi, [rsp+138h+var_C8] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) jmp short $+2 loc_144A6F: mov rsi, [rsp+138h+var_18] lea rdi, [rsp+138h+var_108] mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) jmp short $+2 loc_144A8A: lea rdi, [rsp+138h+var_88] lea rsi, [rsp+138h+var_A8] lea rdx, [rsp+138h+var_108] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) jmp short $+2 loc_144AA6: mov rdi, [rsp+138h+var_130] lea rsi, [rsp+138h+var_88] call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) jmp short $+2 loc_144ABA: mov rdi, [rsp+138h+var_130]; void * mov [rsp+138h+var_109], 0 mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_144BCF mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax jmp loc_144B9C mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax jmp loc_144B92 mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax jmp short loc_144B88 mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax jmp short loc_144B7B mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax jmp short loc_144B71 mov rcx, rax mov eax, edx mov [rsp+138h+var_20], rcx mov [rsp+138h+var_24], eax lea rdi, [rsp+138h+var_88]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_144B71: lea rdi, [rsp+138h+var_108]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_144B7B: lea rdi, [rsp+138h+var_A8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_144B88: lea rdi, [rsp+138h+var_C8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_144B92: lea rdi, [rsp+138h+var_E8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_144B9C: test [rsp+138h+var_109], 1 jnz short loc_144BA5 jmp short loc_144BAF loc_144BA5: mov rdi, [rsp+138h+var_130]; void * call ___cxa_free_exception loc_144BAF: jmp short loc_144BC2 loc_144BB1: mov al, [rsp+138h+var_1] and al, 1 add rsp, 138h retn loc_144BC2: mov rdi, [rsp+138h+var_20] call __Unwind_Resume loc_144BCF: nop
char minja::Value::operator>(minja::Value *a1, minja::Value *a2) { void *v3; // [rsp+8h] [rbp-130h] std::runtime_error *exception; // [rsp+18h] [rbp-120h] _BYTE v5[32]; // [rsp+30h] [rbp-108h] BYREF _BYTE v6[32]; // [rsp+50h] [rbp-E8h] BYREF _BYTE v7[32]; // [rsp+70h] [rbp-C8h] BYREF _BYTE v8[32]; // [rsp+90h] [rbp-A8h] BYREF _BYTE v9[32]; // [rsp+B0h] [rbp-88h] BYREF int v10[8]; // [rsp+D0h] [rbp-68h] BYREF int v11[9]; // [rsp+F0h] [rbp-48h] BYREF minja::Value *v12; // [rsp+120h] [rbp-18h] minja::Value *v13; // [rsp+128h] [rbp-10h] char v14; // [rsp+137h] [rbp-1h] v13 = a1; v12 = a2; if ( (minja::Value::is_null(a1) & 1) != 0 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( minja::Value::is_number(a1) && minja::Value::is_number(v12) ) { minja::Value::get<double>(a1); minja::Value::get<double>(v12); v14 = 0; } else { if ( !minja::Value::is_string(a1) || !minja::Value::is_string(v12) ) { v3 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v6, (long long)a1, 0xFFFFFFFF, 0); std::operator+<char>((long long)v7, (long long)"Cannot compare values: ", (long long)v6); std::operator+<char>((long long)v8, (long long)v7, (long long)" > "); minja::Value::dump[abi:cxx11]((long long)v5, (long long)v12, 0xFFFFFFFF, 0); std::operator+<char>((long long)v9, (long long)v8, (long long)v5); std::runtime_error::runtime_error(v3, v9); __cxa_throw( v3, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Value::get<std::string>(v11, a1); minja::Value::get<std::string>(v10, v12); v14 = std::operator><char>(v11, v10) & 1; std::string::~string(v10); std::string::~string(v11); } return v14 & 1; }
31,536
minja::Value::operator>(minja::Value const&) const
monkey531[P]llama/common/minja.hpp
bool operator>(const Value & other) const { if (is_null()) throw std::runtime_error("Undefined value or reference"); if (is_number() && other.is_number()) return get<double>() > other.get<double>(); if (is_string() && other.is_string()) return get<std::string>() > other.get<std::string>(); throw std::runtime_error("Cannot compare values: " + dump() + " > " + other.dump()); }
O2
cpp
minja::Value::operator>(minja::Value const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xa8, %rsp movq %rsi, %r14 movq %rdi, %r15 callq 0x3b982 testb %al, %al jne 0x6a925 movb 0x40(%r15), %al leal -0x5(%rax), %ecx cmpb $0x2, %cl ja 0x6a8c1 movb 0x40(%r14), %al addb $-0x5, %al cmpb $0x2, %al ja 0x6a955 movq %r15, %rdi callq 0x3c5dc movsd %xmm0, (%rsp) movq %r14, %rdi callq 0x3c5dc movsd (%rsp), %xmm1 ucomisd %xmm0, %xmm1 seta %bl jmp 0x6a915 cmpb $0x3, %al jne 0x6a955 cmpb $0x3, 0x40(%r14) jne 0x6a955 leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x3c692 leaq 0x28(%rsp), %rdi movq %r14, %rsi callq 0x3c692 leaq 0x8(%rsp), %r14 leaq 0x28(%rsp), %r15 movq %r14, %rdi movq %r15, %rsi callq 0x6aa9e movl %eax, %ebx movq %r15, %rdi callq 0x22078 movq %r14, %rdi callq 0x22078 movl %ebx, %eax addq $0xa8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %rbx leaq 0x2adab(%rip), %rsi # 0x956e2 movq %rax, %rdi callq 0x212d0 movq 0x6f6aa(%rip), %rsi # 0xd9ff0 movq 0x6f61b(%rip), %rdx # 0xd9f68 movq %rbx, %rdi callq 0x21de0 pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %rbx leaq 0x68(%rsp), %rdi pushq $-0x1 popq %rdx movq %r15, %rsi xorl %ecx, %ecx callq 0x3bcc2 leaq 0x2b02e(%rip), %rsi # 0x959a7 leaq 0x88(%rsp), %rdi leaq 0x68(%rsp), %rdx callq 0x25a83 leaq 0x2f84f(%rip), %rdx # 0x9a1e1 leaq 0x28(%rsp), %rdi leaq 0x88(%rsp), %rsi callq 0x27565 leaq 0x48(%rsp), %rdi pushq $-0x1 popq %rdx movq %r14, %rsi xorl %ecx, %ecx callq 0x3bcc2 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rsi leaq 0x48(%rsp), %rdx callq 0x41e4f movb $0x1, %bpl leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x21d30 xorl %ebp, %ebp movq 0x6f60d(%rip), %rsi # 0xd9ff0 movq 0x6f57e(%rip), %rdx # 0xd9f68 movq %rbx, %rdi callq 0x21de0 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x22078 jmp 0x6aa07 movq %rax, %r14 movb $0x1, %bpl leaq 0x48(%rsp), %rdi callq 0x22078 jmp 0x6aa19 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi callq 0x22078 jmp 0x6aa2b movq %rax, %r14 movb $0x1, %bpl leaq 0x88(%rsp), %rdi callq 0x22078 jmp 0x6aa40 movq %rax, %r14 movb $0x1, %bpl leaq 0x68(%rsp), %rdi callq 0x22078 testb %bpl, %bpl jne 0x6aa65 jmp 0x6aa6d movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x22078 jmp 0x6aa6d jmp 0x6aa62 movq %rax, %r14 movq %rbx, %rdi callq 0x215c0 movq %r14, %rdi callq 0x21e50 nop
_ZNK5minja5ValuegtERKS0_: push rbp push r15 push r14 push rbx sub rsp, 0A8h mov r14, rsi mov r15, rdi call _ZNK5minja5Value7is_nullEv; minja::Value::is_null(void) test al, al jnz loc_6A925 mov al, [r15+40h] lea ecx, [rax-5] cmp cl, 2 ja short loc_6A8C1 mov al, [r14+40h] add al, 0FBh cmp al, 2 ja loc_6A955 mov rdi, r15 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd [rsp+0C8h+var_C8], xmm0 mov rdi, r14 call _ZNK5minja5Value3getIdEET_v; minja::Value::get<double>(void) movsd xmm1, [rsp+0C8h+var_C8] ucomisd xmm1, xmm0 setnbe bl jmp short loc_6A915 loc_6A8C1: cmp al, 3 jnz loc_6A955 cmp byte ptr [r14+40h], 3 jnz loc_6A955 lea rdi, [rsp+0C8h+var_C0] mov rsi, r15 call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) lea rdi, [rsp+0C8h+var_A0] mov rsi, r14 call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void) lea r14, [rsp+0C8h+var_C0] lea r15, [rsp+0C8h+var_A0] mov rdi, r14 mov rsi, r15 call _ZStgtIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_; std::operator><char>(std::string const&,std::string const&) mov ebx, eax mov rdi, r15; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r14; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_6A915: mov eax, ebx add rsp, 0A8h pop rbx pop r14 pop r15 pop rbp retn loc_6A925: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rsi, aUndefinedValue; "Undefined value or reference" 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, rbx; void * call ___cxa_throw loc_6A955: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+0C8h+var_60] push 0FFFFFFFFFFFFFFFFh pop rdx mov rsi, r15 xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aCannotCompareV; "Cannot compare values: " lea rdi, [rsp+0C8h+var_40] lea rdx, [rsp+0C8h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) lea rdx, asc_9A1E1; " > " lea rdi, [rsp+0C8h+var_A0] lea rsi, [rsp+0C8h+var_40] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*) lea rdi, [rsp+0C8h+var_80] push 0FFFFFFFFFFFFFFFFh pop rdx mov rsi, r14 xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rdi, [rsp+0C8h+var_C0] lea rsi, [rsp+0C8h+var_A0] lea rdx, [rsp+0C8h+var_80] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) mov bpl, 1 lea rsi, [rsp+0C8h+var_C0] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+0C8h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6AA07 mov r14, rax mov bpl, 1 loc_6AA07: lea rdi, [rsp+0C8h+var_80]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6AA19 mov r14, rax mov bpl, 1 loc_6AA19: lea rdi, [rsp+0C8h+var_A0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6AA2B mov r14, rax mov bpl, 1 loc_6AA2B: lea rdi, [rsp+0C8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6AA40 mov r14, rax mov bpl, 1 loc_6AA40: lea rdi, [rsp+0C8h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_6AA65 jmp short loc_6AA6D mov r14, rax lea rdi, [rsp+0C8h+var_C0]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_6AA6D jmp short $+2 loc_6AA62: mov r14, rax loc_6AA65: mov rdi, rbx; void * call ___cxa_free_exception loc_6AA6D: mov rdi, r14 call __Unwind_Resume
long long minja::Value::operator>(minja::Value *a1, minja::Value *a2) { unsigned int v2; // ebx char v3; // al std::runtime_error *exception; // rbx void *v6; // rbx _BYTE v7[32]; // [rsp+8h] [rbp-C0h] BYREF _QWORD v8[4]; // [rsp+28h] [rbp-A0h] BYREF _QWORD v9[4]; // [rsp+48h] [rbp-80h] BYREF _BYTE v10[32]; // [rsp+68h] [rbp-60h] BYREF _BYTE v11[64]; // [rsp+88h] [rbp-40h] BYREF if ( minja::Value::is_null(a1) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Undefined value or reference"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v3 = *((_BYTE *)a1 + 64); if ( (unsigned __int8)(v3 - 5) > 2u ) { if ( v3 == 3 && *((_BYTE *)a2 + 64) == 3 ) { minja::Value::get<std::string>((long long)v7, a1); minja::Value::get<std::string>((long long)v8, a2); v2 = std::operator><char>(v7, v8); std::string::~string(v8); std::string::~string(v7); return v2; } LABEL_10: v6 = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v10, (long long)a1, 0xFFFFFFFF, 0); std::operator+<char>((long long)v11, (long long)"Cannot compare values: ", (long long)v10); std::operator+<char>((long long)v8, (long long)v11, (long long)" > "); minja::Value::dump[abi:cxx11]((long long)v9, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>((long long)v7, v8, v9); std::runtime_error::runtime_error(v6, v7); __cxa_throw( v6, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( (unsigned __int8)(*((_BYTE *)a2 + 64) - 5) > 2u ) goto LABEL_10; minja::Value::get<double>(a1); minja::Value::get<double>(a2); LOBYTE(v2) = 0; return v2; }
operator>: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xa8 MOV R14,RSI MOV R15,RDI CALL 0x0013b982 TEST AL,AL JNZ 0x0016a925 MOV AL,byte ptr [R15 + 0x40] LEA ECX,[RAX + -0x5] CMP CL,0x2 JA 0x0016a8c1 MOV AL,byte ptr [R14 + 0x40] ADD AL,0xfb CMP AL,0x2 JA 0x0016a955 MOV RDI,R15 CALL 0x0013c5dc MOVSD qword ptr [RSP],XMM0 MOV RDI,R14 CALL 0x0013c5dc MOVSD XMM1,qword ptr [RSP] UCOMISD XMM1,XMM0 SETA BL JMP 0x0016a915 LAB_0016a8c1: CMP AL,0x3 JNZ 0x0016a955 CMP byte ptr [R14 + 0x40],0x3 JNZ 0x0016a955 LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x0013c692 LAB_0016a8e1: LEA RDI,[RSP + 0x28] MOV RSI,R14 CALL 0x0013c692 LAB_0016a8ee: LEA R14,[RSP + 0x8] LEA R15,[RSP + 0x28] MOV RDI,R14 MOV RSI,R15 CALL 0x0016aa9e MOV EBX,EAX MOV RDI,R15 CALL 0x00122078 MOV RDI,R14 CALL 0x00122078 LAB_0016a915: MOV EAX,EBX ADD RSP,0xa8 POP RBX POP R14 POP R15 POP RBP RET LAB_0016a925: PUSH 0x10 POP RDI CALL 0x001213f0 MOV RBX,RAX LAB_0016a930: LEA RSI,[0x1956e2] MOV RDI,RAX CALL 0x001212d0 LAB_0016a93f: MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,RBX CALL 0x00121de0 LAB_0016a955: PUSH 0x10 POP RDI CALL 0x001213f0 MOV RBX,RAX LAB_0016a960: LEA RDI,[RSP + 0x68] PUSH -0x1 POP RDX MOV RSI,R15 XOR ECX,ECX CALL 0x0013bcc2 LAB_0016a972: LEA RSI,[0x1959a7] LEA RDI,[RSP + 0x88] LEA RDX,[RSP + 0x68] CALL 0x00125a83 LAB_0016a98b: LEA RDX,[0x19a1e1] LEA RDI,[RSP + 0x28] LEA RSI,[RSP + 0x88] CALL 0x00127565 LAB_0016a9a4: LEA RDI,[RSP + 0x48] PUSH -0x1 POP RDX MOV RSI,R14 XOR ECX,ECX CALL 0x0013bcc2 LAB_0016a9b6: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x28] LEA RDX,[RSP + 0x48] CALL 0x00141e4f MOV BPL,0x1 LAB_0016a9cd: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x00121d30 XOR EBP,EBP MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,RBX CALL 0x00121de0
/* minja::Value::TEMPNAMEPLACEHOLDERVALUE(minja::Value const&) const */ ulong __thiscall minja::Value::operator>(Value *this,Value *param_1) { char cVar1; bool bVar2; int7 extraout_var; runtime_error *prVar3; int8 unaff_RBX; ulong uVar4; double dVar5; double dVar6; string local_c0 [32]; string local_a0 [32]; int1 local_80 [32]; int1 local_60 [32]; char local_40 [32]; cVar1 = is_null(this); if (cVar1 != '\0') { prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016a930 to 0016a93e has its CatchHandler @ 0016aa62 */ std::runtime_error::runtime_error(prVar3,"Undefined value or reference"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } if ((byte)((char)this[0x40] - 5U) < 3) { if (2 < (byte)((char)param_1[0x40] - 5U)) { LAB_0016a955: prVar3 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016a960 to 0016a971 has its CatchHandler @ 0016aa60 */ dump_abi_cxx11_((int)local_60,SUB81(this,0)); /* try { // try from 0016a972 to 0016a98a has its CatchHandler @ 0016aa3a */ std::operator+(local_40,(string *)"Cannot compare values: "); /* try { // try from 0016a98b to 0016a9a3 has its CatchHandler @ 0016aa25 */ std::operator+(local_a0,local_40); /* try { // try from 0016a9a4 to 0016a9b5 has its CatchHandler @ 0016aa13 */ dump_abi_cxx11_((int)local_80,SUB81(param_1,0)); /* try { // try from 0016a9b6 to 0016a9c9 has its CatchHandler @ 0016aa01 */ std::operator+(local_c0,local_a0); /* try { // try from 0016a9cd to 0016a9f1 has its CatchHandler @ 0016a9f2 */ std::runtime_error::runtime_error(prVar3,local_c0); /* WARNING: Subroutine does not return */ __cxa_throw(prVar3,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } dVar5 = get<double>(this); dVar6 = get<double>(param_1); uVar4 = CONCAT71((int7)((ulong)unaff_RBX >> 8),dVar6 < dVar5); } else { if ((this[0x40] != (Value)0x3) || (param_1[0x40] != (Value)0x3)) goto LAB_0016a955; get<std::__cxx11::string>(); /* try { // try from 0016a8e1 to 0016a8ed has its CatchHandler @ 0016aa51 */ get<std::__cxx11::string>(); bVar2 = std::operator>(local_c0,local_a0); uVar4 = CONCAT71(extraout_var,bVar2) & 0xffffffff; std::__cxx11::string::~string(local_a0); std::__cxx11::string::~string(local_c0); } return uVar4 & 0xffffffff; }
31,537
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O3
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rcx, %r15 movl %edx, %r12d movq %rsi, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0x344cfe(%rip), %rdi # 0x36d940 leaq -0x9ae(%rip), %rsi # 0x2829b callq 0x24260 movq %rbx, %rdi movl %r12d, %esi movq %r15, %rdx callq 0x28486 testl %eax, %eax je 0x28c72 movq %r14, %rdi movl %eax, %esi movq %r15, %rdx callq 0x2872a movq %rax, %r14 jmp 0x28c75 xorl %r14d, %r14d testq %r14, %r14 setne %al testb $0x10, %r15b sete %cl orb %al, %cl jne 0x28cbf leaq -0x240(%rbp), %r15 movq %r15, %rdi callq 0x2805b movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movl $0x4, %esi movl $0x16, %edi movq %rbx, %rdx movq %r15, %rcx xorl %eax, %eax callq 0x2a01b movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x28ce1 movq %r14, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x242e0
my_charset_get_by_name: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r15, rcx mov r12d, edx mov rbx, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx mov esi, r12d mov rdx, r15 call get_charset_number test eax, eax jz short loc_28C72 mov rdi, r14 mov esi, eax mov rdx, r15 call get_internal_charset mov r14, rax jmp short loc_28C75 loc_28C72: xor r14d, r14d loc_28C75: test r14, r14 setnz al test r15b, 10h setz cl or cl, al jnz short loc_28CBF lea r15, [rbp+var_240] mov rdi, r15 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov esi, 4 mov edi, 16h mov rdx, rbx mov rcx, r15 xor eax, eax call my_error loc_28CBF: mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_28CE1 mov rax, r14 add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_28CE1: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { unsigned int charset_number; // eax long long internal_charset; // r14 int v8; // r8d int v9; // r9d _BYTE v11[536]; // [rsp+0h] [rbp-240h] BYREF unsigned long long v12; // [rsp+218h] [rbp-28h] v12 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( internal_charset == 0 && (a4 & 0x10) != 0 ) { strcpy((char *)get_charsets_dir((long long)v11), "Index.xml"); my_error(22, 4, a2, (unsigned int)v11, v8, v9); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R15,RCX MOV R12D,EDX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[0x46d940] LEA RSI,[0x12829b] CALL 0x00124260 MOV RDI,RBX MOV ESI,R12D MOV RDX,R15 CALL 0x00128486 TEST EAX,EAX JZ 0x00128c72 MOV RDI,R14 MOV ESI,EAX MOV RDX,R15 CALL 0x0012872a MOV R14,RAX JMP 0x00128c75 LAB_00128c72: XOR R14D,R14D LAB_00128c75: TEST R14,R14 SETNZ AL TEST R15B,0x10 SETZ CL OR CL,AL JNZ 0x00128cbf LEA R15,[RBP + -0x240] MOV RDI,R15 CALL 0x0012805b MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV ESI,0x4 MOV EDI,0x16 MOV RDX,RBX MOV RCX,R15 XOR EAX,EAX CALL 0x0012a01b LAB_00128cbf: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x00128ce1 MOV RAX,R14 ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00128ce1: CALL 0x001242e0
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; long lVar2; int8 *puVar3; long in_FS_OFFSET; int1 local_248 [536]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { lVar2 = 0; } else { lVar2 = get_internal_charset(param_1,iVar1,param_4); } if ((param_4 & 0x10) != 0 && lVar2 == 0) { puVar3 = (int8 *)get_charsets_dir(local_248); *puVar3 = 0x6d782e7865646e49; *(int2 *)(puVar3 + 1) = 0x6c; my_error(0x16,4,param_2,local_248); } if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return lVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,538
plan
eloqsql/unittest/mytap/tap.c
void plan(int count) { char *config= getenv("MYTAP_CONFIG"); size_t i; start_time= start_timer(); 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); fflush(tapout); } break; } }
O3
c
plan: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %edi, %ebx leaq 0x4f645(%rip), %rdi # 0xe3576 callq 0x2a690 movq %rax, %r14 leaq -0x48(%rbp), %rdi callq 0x2a170 movq %rax, 0xb74927(%rip) # 0xc08870 testq %r14, %r14 je 0x93f63 leaq 0x54bac(%rip), %rsi # 0xe8b01 movq %r14, %rdi callq 0x2a710 movl %eax, 0x2fa955(%rip) # 0x38e8b8 movq 0x2f902e(%rip), %r15 # 0x38cf98 movq (%r15), %rdi xorl %r12d, %r12d xorl %esi, %esi movl $0x2, %edx xorl %ecx, %ecx callq 0x2a3e0 leaq 0x2f041b(%rip), %r13 # 0x3843a0 leaq 0x8e2(%rip), %r14 # 0x9486e movl (%r12,%r13), %edi movq %r14, %rsi callq 0x2a300 addq $0x10, %r12 cmpq $0xb0, %r12 jne 0x93f8c movl %ebx, 0xb74835(%rip) # 0xc087e0 testl %ebx, %ebx jle 0x93fdd movq (%r15), %rdi leaq 0x4f5ca(%rip), %rdx # 0xe3583 movl $0x1, %esi movl %ebx, %ecx xorl %eax, %eax callq 0x2a200 movq (%r15), %rdi addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x2a430 addq $0x28, %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 sub rsp, 28h mov ebx, edi lea rdi, aMytapConfig; "MYTAP_CONFIG" call _getenv mov r14, rax lea rdi, [rbp+var_48] call _times mov cs:start_time, rax test r14, r14 jz short loc_93F63 lea rsi, aUndoRecordTooB+10h; "big" mov rdi, r14 call _strcmp mov cs:skip_big_tests, eax loc_93F63: 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_93F8C: mov edi, [r12+r13] mov rsi, r14 call _signal add r12, 10h cmp r12, 0B0h jnz short loc_93F8C mov cs:g_test, ebx test ebx, ebx jle short loc_93FDD mov rdi, [r15] lea rdx, a1D; "1..%d\n" mov esi, 1 mov ecx, ebx xor eax, eax call ___fprintf_chk mov rdi, [r15] add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp _fflush loc_93FDD: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long plan(int a1) { long long v1; // r14 long long v2; // r12 long long result; // rax _BYTE v4[72]; // [rsp+8h] [rbp-48h] BYREF v1 = getenv("MYTAP_CONFIG"); start_time = times(v4); 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 != 176 ); g_test = a1; if ( a1 > 0 ) { __fprintf_chk(stdout, 1LL, "1..%d\n", a1); return fflush(stdout); } return result; }
plan: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBX,EDI LEA RDI,[0x1e3576] CALL 0x0012a690 MOV R14,RAX LEA RDI,[RBP + -0x48] CALL 0x0012a170 MOV qword ptr [0x00d08870],RAX TEST R14,R14 JZ 0x00193f63 LEA RSI,[0x1e8b01] MOV RDI,R14 CALL 0x0012a710 MOV dword ptr [0x0048e8b8],EAX LAB_00193f63: MOV R15,qword ptr [0x0048cf98] MOV RDI,qword ptr [R15] XOR R12D,R12D XOR ESI,ESI MOV EDX,0x2 XOR ECX,ECX CALL 0x0012a3e0 LEA R13,[0x4843a0] LEA R14,[0x19486e] LAB_00193f8c: MOV EDI,dword ptr [R12 + R13*0x1] MOV RSI,R14 CALL 0x0012a300 ADD R12,0x10 CMP R12,0xb0 JNZ 0x00193f8c MOV dword ptr [0x00d087e0],EBX TEST EBX,EBX JLE 0x00193fdd MOV RDI,qword ptr [R15] LEA RDX,[0x1e3583] MOV ESI,0x1 MOV ECX,EBX XOR EAX,EAX CALL 0x0012a200 MOV RDI,qword ptr [R15] ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x0012a430 LAB_00193fdd: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void plan(int param_1) { int *puVar1; char *__s1; long lVar2; tms local_50; __s1 = getenv("MYTAP_CONFIG"); start_time = times(&local_50); if (__s1 != (char *)0x0) { skip_big_tests = strcmp(__s1,"big"); } puVar1 = PTR_stdout_0048cf98; lVar2 = 0; setvbuf(*(FILE **)PTR_stdout_0048cf98,(char *)0x0,2,0); do { signal(*(int *)((long)&install_signal + lVar2),handle_core_signal); lVar2 = lVar2 + 0x10; } while (lVar2 != 0xb0); g_test = param_1; if (0 < param_1) { __fprintf_chk(*(int8 *)puVar1,1,"1..%d\n",param_1); fflush(*(FILE **)puVar1); return; } return; }
31,539
void aimrt::util::Function<aimrt_function_executor_task_ops_t>::ConstructorImpl<aimrt::runtime::core::logger::RotateFileLoggerBackend::Initialize(YAML::Node)::$_0::operator()() const::'lambda'()>(aimrt::runtime::core::logger::RotateFileLoggerBackend::Initialize(YAML::Node)::$_0::operator()() const::'lambda'()&&, std::integer_sequence<unsigned long, ...>)
aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/util/function.h
void ConstructorImpl(T&& action, std::index_sequence<Idx...>) { using Decayed = std::decay_t<T>; if constexpr (sizeof(Decayed) <= sizeof(base_.object_buf)) { static constexpr OpsType kOps = { .invoker = [](void* object, std::tuple_element_t<Idx, ArgsTuple>... args) noexcept -> R { if constexpr (std::is_void_v<R>) { std::invoke(*static_cast<Decayed*>(object), args...); } else { return std::invoke(*static_cast<Decayed*>(object), args...); } }, .relocator = [](void* from, void* to) noexcept { new (to) Decayed(std::move(*static_cast<Decayed*>(from))); static_cast<Decayed*>(from)->~Decayed(); }, .destroyer = [](void* object) noexcept { static_cast<Decayed*>(object)->~Decayed(); }}; base_.ops = &kOps; new (&(base_.object_buf)) Decayed(std::forward<T>(action)); } else { using Stored = Decayed*; static constexpr OpsType kOps = { .invoker = [](void* object, std::tuple_element_t<Idx, ArgsTuple>... args) noexcept -> R { if constexpr (std::is_void_v<R>) { std::invoke(**static_cast<Stored*>(object), args...); } else { return std::invoke(**static_cast<Stored*>(object), args...); } }, .relocator = [](void* from, void* to) noexcept { new (to) Stored(*static_cast<Stored*>(from)); }, .destroyer = [](void* object) noexcept { delete *static_cast<Stored*>(object); }}; base_.ops = &kOps; new (&(base_.object_buf)) Stored(new Decayed(std::forward<T>(action))); } }
O0
c
void aimrt::util::Function<aimrt_function_executor_task_ops_t>::ConstructorImpl<aimrt::runtime::core::logger::RotateFileLoggerBackend::Initialize(YAML::Node)::$_0::operator()() const::'lambda'()>(aimrt::runtime::core::logger::RotateFileLoggerBackend::Initialize(YAML::Node)::$_0::operator()() const::'lambda'()&&, std::integer_sequence<unsigned long, ...>): movq %rdi, -0x10(%rsp) movq %rsi, -0x18(%rsp) movq -0x10(%rsp), %rax leaq 0x43b012(%rip), %rcx # 0x7444c8 movq %rcx, 0x18(%rax) movq -0x18(%rsp), %rcx movq (%rcx), %rdx movq %rdx, (%rax) movq 0x8(%rcx), %rcx movq %rcx, 0x8(%rax) retq nop
_ZN5aimrt4util8FunctionI34aimrt_function_executor_task_ops_tE15ConstructorImplIZNS_7runtime4core4util13RpcClientToolISt10shared_ptrINS6_3rpc13InvokeWrapperEEE6RecordEjNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEOSC_EUlvE_TpTnmJEEEvOT_St16integer_sequenceImJXspT0_EEE: mov [rsp+var_10], rdi mov [rsp+var_18], rsi mov rax, [rsp+var_10] lea rcx, _ZZN5aimrt4util8FunctionI34aimrt_function_executor_task_ops_tE15ConstructorImplIZNS_7runtime4core4util13RpcClientToolISt10shared_ptrINS6_3rpc13InvokeWrapperEEE6RecordEjNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEOSC_EUlvE_TpTnmJEEEvOT_St16integer_sequenceImJXspT0_EEEE4kOps mov [rax+18h], rcx mov rcx, [rsp+var_18] mov rdx, [rcx] mov [rax], rdx mov rcx, [rcx+8] mov [rax+8], rcx retn
_QWORD * ZN5aimrt4util8FunctionI34aimrt_function_executor_task_ops_tE15ConstructorImplIZNS_7runtime4core4util13RpcClientToolISt10shared_ptrINS6_3rpc13InvokeWrapperEEE6RecordEjNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEOSC_EUlvE_TpTnmJEEEvOT_St16integer_sequenceImJXspT0_EEE( _QWORD *a1, _QWORD *a2) { _QWORD *result; // rax result = a1; a1[3] = ZZN5aimrt4util8FunctionI34aimrt_function_executor_task_ops_tE15ConstructorImplIZNS_7runtime4core4util13RpcClientToolISt10shared_ptrINS6_3rpc13InvokeWrapperEEE6RecordEjNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEOSC_EUlvE_TpTnmJEEEvOT_St16integer_sequenceImJXspT0_EEEE4kOps; *a1 = *a2; a1[1] = a2[1]; return result; }
tss_ptr: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x002a73a0 POP RAX RET
/* asio::detail::tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl, unsigned char>::context>::tss_ptr() */ tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl,unsigned_char>::context> * __thiscall asio::detail:: tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl,unsigned_char>::context> ::tss_ptr(tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl,unsigned_char>::context> *this) { keyword_tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl,unsigned_char>::context> ::keyword_tss_ptr((keyword_tss_ptr<asio::detail::call_stack<asio::detail::strand_service::strand_impl,unsigned_char>::context> *)this); return this; }
31,540
list_walk
eloqsql/libmariadb/libmariadb/ma_list.c
int list_walk(LIST *list, list_walk_action action, gptr argument) { int error=0; while (list) { if ((error = (*action)(list->data,argument))) return error; list= list_rest(list); } return 0; }
O0
c
list_walk: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x24(%rbp) cmpq $0x0, -0x10(%rbp) je 0x22df2 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x10(%rcx), %rdi movq -0x20(%rbp), %rsi callq *%rax movl %eax, -0x24(%rbp) cmpl $0x0, %eax je 0x22de4 movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0x22df9 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x10(%rbp) jmp 0x22dbb movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
list_walk: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], 0 loc_22DBB: cmp [rbp+var_10], 0 jz short loc_22DF2 mov rax, [rbp+var_18] mov rcx, [rbp+var_10] mov rdi, [rcx+10h] mov rsi, [rbp+var_20] call rax mov [rbp+var_24], eax cmp eax, 0 jz short loc_22DE4 mov eax, [rbp+var_24] mov [rbp+var_4], eax jmp short loc_22DF9 loc_22DE4: mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_10], rax jmp short loc_22DBB loc_22DF2: mov [rbp+var_4], 0 loc_22DF9: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long list_walk(long long a1, long long ( *a2)(_QWORD, long long), long long a3) { unsigned int v4; // [rsp+Ch] [rbp-24h] while ( a1 ) { v4 = a2(*(_QWORD *)(a1 + 16), a3); if ( v4 ) return v4; a1 = *(_QWORD *)(a1 + 8); } return 0; }
list_walk: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],0x0 LAB_00122dbb: CMP qword ptr [RBP + -0x10],0x0 JZ 0x00122df2 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x10] MOV RSI,qword ptr [RBP + -0x20] CALL RAX MOV dword ptr [RBP + -0x24],EAX CMP EAX,0x0 JZ 0x00122de4 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x00122df9 LAB_00122de4: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x10],RAX JMP 0x00122dbb LAB_00122df2: MOV dword ptr [RBP + -0x4],0x0 LAB_00122df9: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int list_walk(long param_1,code *param_2,int8 param_3) { int iVar1; long local_18; local_18 = param_1; while( true ) { if (local_18 == 0) { return 0; } iVar1 = (*param_2)(*(int8 *)(local_18 + 0x10),param_3); if (iVar1 != 0) break; local_18 = *(long *)(local_18 + 8); } return iVar1; }
31,541
CLI::App::run_callback(bool, bool)
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/impl/App_inl.hpp
CLI11_INLINE void App::run_callback(bool final_mode, bool suppress_final_callback) { pre_callback(); // in the main app if immediate_callback_ is set it runs the main callback before the used subcommands if(!final_mode && parse_complete_callback_) { parse_complete_callback_(); } // run the callbacks for the received subcommands for(App *subc : get_subcommands()) { if(subc->parent_ == this) { subc->run_callback(true, suppress_final_callback); } } // now run callbacks for option_groups for(auto &subc : subcommands_) { if(subc->name_.empty() && subc->count_all() > 0) { subc->run_callback(true, suppress_final_callback); } } // finally run the main callback if(final_callback_ && (parsed_ > 0) && (!suppress_final_callback)) { if(!name_.empty() || count_all() > 0 || parent_ == nullptr) { final_callback_(); } } }
O3
cpp
CLI::App::run_callback(bool, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movl %edx, %ebp movl %esi, %r14d movq %rdi, %rbx movq (%rdi), %rax callq *0x10(%rax) testl %r14d, %r14d jne 0x1e37d cmpq $0x0, 0x80(%rbx) je 0x1e37d leaq 0x70(%rbx), %rdi callq *0x88(%rbx) leaq 0x1a8(%rbx), %rsi leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x26d00 movq (%r15), %r14 movq 0x8(%r15), %r12 cmpq %r12, %r14 je 0x1e3c8 movzbl %bpl, %r15d movq (%r14), %rdi cmpq %rbx, 0x2c8(%rdi) jne 0x1e3ba movl $0x1, %esi movl %r15d, %edx callq 0x1e34a addq $0x8, %r14 cmpq %r12, %r14 jne 0x1e3a1 movq 0x8(%rsp), %r14 testq %r14, %r14 je 0x1e3dd movq 0x18(%rsp), %rsi subq %r14, %rsi movq %r14, %rdi callq 0x7430 movq 0x280(%rbx), %r15 movq 0x288(%rbx), %r12 cmpq %r12, %r15 je 0x1e421 movzbl %bpl, %r14d movq (%r15), %rdi cmpq $0x0, 0x10(%rdi) jne 0x1e418 callq 0x24450 testq %rax, %rax je 0x1e418 movq (%r15), %rdi movl $0x1, %esi movl %r14d, %edx callq 0x1e34a addq $0x10, %r15 cmpq %r12, %r15 jne 0x1e3f4 cmpq $0x0, 0xa0(%rbx) sete %al cmpl $0x0, 0x2a4(%rbx) sete %cl orb %al, %cl orb %bpl, %cl jne 0x1e472 cmpq $0x0, 0x10(%rbx) jne 0x1e465 movq %rbx, %rdi callq 0x24450 testq %rax, %rax jne 0x1e45b cmpq $0x0, 0x2c8(%rbx) jne 0x1e472 cmpq $0x0, 0xa0(%rbx) je 0x1e47f leaq 0x90(%rbx), %rdi callq *0xa8(%rbx) addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x7170 movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x1e49e movq 0x18(%rsp), %rsi subq %rdi, %rsi callq 0x7430 movq %rbx, %rdi callq 0x7780
_ZN3CLI3App12run_callbackEbb: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov ebp, edx mov r14d, esi mov rbx, rdi mov rax, [rdi] call qword ptr [rax+10h] test r14d, r14d jnz short loc_1E37D cmp qword ptr [rbx+80h], 0 jz short loc_1E37D lea rdi, [rbx+70h] call qword ptr [rbx+88h] loc_1E37D: lea rsi, [rbx+1A8h] lea r15, [rsp+48h+var_40] mov rdi, r15 call _ZNSt6vectorIPN3CLI3AppESaIS2_EEC2ERKS4_; std::vector<CLI::App *>::vector(std::vector<CLI::App *> const&) mov r14, [r15] mov r12, [r15+8] cmp r14, r12 jz short loc_1E3C8 movzx r15d, bpl loc_1E3A1: mov rdi, [r14]; this cmp [rdi+2C8h], rbx jnz short loc_1E3BA mov esi, 1; bool mov edx, r15d; bool call _ZN3CLI3App12run_callbackEbb; CLI::App::run_callback(bool,bool) loc_1E3BA: add r14, 8 cmp r14, r12 jnz short loc_1E3A1 mov r14, [rsp+48h+var_40] loc_1E3C8: test r14, r14 jz short loc_1E3DD mov rsi, [rsp+48h+var_30] sub rsi, r14; unsigned __int64 mov rdi, r14; void * call __ZdlPvm; operator delete(void *,ulong) loc_1E3DD: mov r15, [rbx+280h] mov r12, [rbx+288h] cmp r15, r12 jz short loc_1E421 movzx r14d, bpl loc_1E3F4: mov rdi, [r15]; this cmp qword ptr [rdi+10h], 0 jnz short loc_1E418 call _ZNK3CLI3App9count_allEv; CLI::App::count_all(void) test rax, rax jz short loc_1E418 mov rdi, [r15]; this mov esi, 1; bool mov edx, r14d; bool call _ZN3CLI3App12run_callbackEbb; CLI::App::run_callback(bool,bool) loc_1E418: add r15, 10h cmp r15, r12 jnz short loc_1E3F4 loc_1E421: cmp qword ptr [rbx+0A0h], 0 setz al cmp dword ptr [rbx+2A4h], 0 setz cl or cl, al or cl, bpl jnz short loc_1E472 cmp qword ptr [rbx+10h], 0 jnz short loc_1E465 mov rdi, rbx; this call _ZNK3CLI3App9count_allEv; CLI::App::count_all(void) test rax, rax jnz short loc_1E45B cmp qword ptr [rbx+2C8h], 0 jnz short loc_1E472 loc_1E45B: cmp qword ptr [rbx+0A0h], 0 jz short loc_1E47F loc_1E465: lea rdi, [rbx+90h] call qword ptr [rbx+0A8h] loc_1E472: add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_1E47F: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void) mov rbx, rax mov rdi, [rsp+48h+var_40]; void * test rdi, rdi jz short loc_1E49E mov rsi, [rsp+48h+var_30] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1E49E: mov rdi, rbx call __Unwind_Resume
char CLI::App::run_callback(CLI::App *this, int a2, bool a3) { CLI::App **v4; // r14 CLI::App **v5; // r12 CLI::App **v6; // r15 CLI::App **i; // r12 long long v8; // rax void *v10; // [rsp+8h] [rbp-40h] BYREF CLI::App **v11; // [rsp+10h] [rbp-38h] long long v12; // [rsp+18h] [rbp-30h] (*(void ( **)(CLI::App *))(*(_QWORD *)this + 16LL))(this); if ( !a2 && *((_QWORD *)this + 16) ) (*((void ( **)(char *))this + 17))((char *)this + 112); std::vector<CLI::App *>::vector(&v10, (char *)this + 424); v4 = (CLI::App **)v10; v5 = v11; if ( v10 != v11 ) { do { if ( *((CLI::App **)*v4 + 89) == this ) CLI::App::run_callback(*v4, 1, a3); ++v4; } while ( v4 != v5 ); v4 = (CLI::App **)v10; } if ( v4 ) operator delete(v4, v12 - (_QWORD)v4); v6 = (CLI::App **)*((_QWORD *)this + 80); for ( i = (CLI::App **)*((_QWORD *)this + 81); v6 != i; v6 += 2 ) { if ( !*((_QWORD *)*v6 + 2) && CLI::App::count_all(*v6) ) CLI::App::run_callback(*v6, 1, a3); } LOBYTE(v8) = *((_QWORD *)this + 20) == 0LL; if ( !(a3 | (unsigned __int8)(v8 | (*((_DWORD *)this + 169) == 0))) ) { if ( *((_QWORD *)this + 2) ) { LABEL_21: LOBYTE(v8) = (*((long long ( **)(char *))this + 21))((char *)this + 144); return v8; } v8 = CLI::App::count_all(this); if ( v8 || !*((_QWORD *)this + 89) ) { if ( !*((_QWORD *)this + 20) ) std::__throw_bad_function_call(); goto LABEL_21; } } return v8; }
run_callback: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x20 MOV EBP,EDX MOV R14D,ESI MOV RBX,RDI MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x10] TEST R14D,R14D JNZ 0x0011e37d CMP qword ptr [RBX + 0x80],0x0 JZ 0x0011e37d LEA RDI,[RBX + 0x70] CALL qword ptr [RBX + 0x88] LAB_0011e37d: LEA RSI,[RBX + 0x1a8] LEA R15,[RSP + 0x8] MOV RDI,R15 CALL 0x00126d00 MOV R14,qword ptr [R15] MOV R12,qword ptr [R15 + 0x8] CMP R14,R12 JZ 0x0011e3c8 MOVZX R15D,BPL LAB_0011e3a1: MOV RDI,qword ptr [R14] CMP qword ptr [RDI + 0x2c8],RBX JNZ 0x0011e3ba LAB_0011e3ad: MOV ESI,0x1 MOV EDX,R15D CALL 0x0011e34a LAB_0011e3ba: ADD R14,0x8 CMP R14,R12 JNZ 0x0011e3a1 MOV R14,qword ptr [RSP + 0x8] LAB_0011e3c8: TEST R14,R14 JZ 0x0011e3dd MOV RSI,qword ptr [RSP + 0x18] SUB RSI,R14 MOV RDI,R14 CALL 0x00107430 LAB_0011e3dd: MOV R15,qword ptr [RBX + 0x280] MOV R12,qword ptr [RBX + 0x288] CMP R15,R12 JZ 0x0011e421 MOVZX R14D,BPL LAB_0011e3f4: MOV RDI,qword ptr [R15] CMP qword ptr [RDI + 0x10],0x0 JNZ 0x0011e418 CALL 0x00124450 TEST RAX,RAX JZ 0x0011e418 MOV RDI,qword ptr [R15] MOV ESI,0x1 MOV EDX,R14D CALL 0x0011e34a LAB_0011e418: ADD R15,0x10 CMP R15,R12 JNZ 0x0011e3f4 LAB_0011e421: CMP qword ptr [RBX + 0xa0],0x0 SETZ AL CMP dword ptr [RBX + 0x2a4],0x0 SETZ CL OR CL,AL OR CL,BPL JNZ 0x0011e472 CMP qword ptr [RBX + 0x10],0x0 JNZ 0x0011e465 MOV RDI,RBX CALL 0x00124450 TEST RAX,RAX JNZ 0x0011e45b CMP qword ptr [RBX + 0x2c8],0x0 JNZ 0x0011e472 LAB_0011e45b: CMP qword ptr [RBX + 0xa0],0x0 JZ 0x0011e47f LAB_0011e465: LEA RDI,[RBX + 0x90] CALL qword ptr [RBX + 0xa8] LAB_0011e472: ADD RSP,0x20 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_0011e47f: CALL 0x00107170
/* CLI::App::run_callback(bool, bool) */ void __thiscall CLI::App::run_callback(App *this,bool param_1,bool param_2) { int8 *puVar1; long lVar2; int7 in_register_00000031; int8 *puVar3; int8 *local_40; int8 *local_38; long local_30; (**(code **)(*(long *)this + 0x10))(); if (((int)CONCAT71(in_register_00000031,param_1) == 0) && (*(long *)(this + 0x80) != 0)) { (**(code **)(this + 0x88))(this + 0x70); } std::vector<CLI::App*,std::allocator<CLI::App*>>::vector ((vector<CLI::App*,std::allocator<CLI::App*>> *)&local_40,(vector *)(this + 0x1a8)); for (puVar3 = local_40; puVar3 != local_38; puVar3 = puVar3 + 1) { if (*(App **)((App *)*puVar3 + 0x2c8) == this) { /* try { // try from 0011e3ad to 0011e3b9 has its CatchHandler @ 0011e484 */ run_callback((App *)*puVar3,true,param_2); } } if (local_40 != (int8 *)0x0) { operator_delete(local_40,local_30 - (long)local_40); } puVar1 = *(int8 **)(this + 0x288); for (puVar3 = *(int8 **)(this + 0x280); puVar3 != puVar1; puVar3 = puVar3 + 2) { if ((*(long *)((App *)*puVar3 + 0x10) == 0) && (lVar2 = count_all((App *)*puVar3), lVar2 != 0)) { run_callback((App *)*puVar3,true,param_2); } } if ((*(int *)(this + 0x2a4) != 0 && *(long *)(this + 0xa0) != 0) && !param_2) { if (*(long *)(this + 0x10) == 0) { lVar2 = count_all(this); if ((lVar2 == 0) && (*(long *)(this + 0x2c8) != 0)) { return; } if (*(long *)(this + 0xa0) == 0) { /* WARNING: Subroutine does not return */ std::__throw_bad_function_call(); } } (**(code **)(this + 0xa8))(this + 0x90); } return; }
31,542
testing::internal::PrintTo(char const*, std::ostream*)
seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/src/gtest-printers.cc
void PrintTo(const char* s, ostream* os) { PrintCStringTo(s, os); }
O2
cpp
testing::internal::PrintTo(char const*, std::ostream*): pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx testq %rdi, %rdi je 0x156ab movq %rdi, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x93c0 leaq 0x1f2e2(%rip), %rsi # 0x34968 movq %rax, %rdi callq 0x94b0 movq %r14, %rdi callq 0x9200 movq %r14, %rdi movq %rax, %rsi movq %rbx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmp 0x1596c leaq 0x1b0ea(%rip), %rsi # 0x3079c movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x94b0
_ZN7testing8internal7PrintToEPKcPSo: push r14 push rbx push rax mov rbx, rsi test rdi, rdi jz short loc_156AB 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 rdi, rax call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, r14 call _strlen mov rdi, r14 mov rsi, rax mov rdx, rbx add rsp, 8 pop rbx pop r14 jmp _ZN7testing8internalL20PrintCharsAsStringToIcEENS0_10CharFormatEPKT_mPSo; testing::internal::PrintCharsAsStringTo<char>(char const*,ulong,std::ostream *) loc_156AB: lea rsi, aNull_0; "NULL" mov rdi, rbx add rsp, 8 pop rbx pop r14 jmp __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
long long testing::internal::PrintTo(testing::internal *this, const char *a2, std::ostream *a3) { long long v3; // rax long long v4; // rax long long v5; // rcx if ( !this ) return std::operator<<<std::char_traits<char>>(a2, "NULL"); v3 = std::ostream::_M_insert<void const*>(a2, this); std::operator<<<std::char_traits<char>>(v3, " pointing to "); v4 = strlen(this); return testing::internal::PrintCharsAsStringTo<char>(this, v4, a2, v5); }
PrintTo: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI TEST RDI,RDI JZ 0x001156ab MOV R14,RDI MOV RDI,RBX MOV RSI,R14 CALL 0x001093c0 LEA RSI,[0x134968] MOV RDI,RAX CALL 0x001094b0 MOV RDI,R14 CALL 0x00109200 MOV RDI,R14 MOV RSI,RAX MOV RDX,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0011596c LAB_001156ab: LEA RSI,[0x13079c] MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x001094b0
/* testing::internal::PrintTo(char const*, std::ostream*) */ void testing::internal::PrintTo(char *param_1,ostream *param_2) { ostream *poVar1; size_t sVar2; if (param_1 != (char *)0x0) { poVar1 = std::ostream::_M_insert<void_const*>(param_2); std::operator<<(poVar1," pointing to "); sVar2 = strlen(param_1); PrintCharsAsStringTo<char>(param_1,sVar2,param_2); return; } std::operator<<(param_2,"NULL"); return; }
31,543
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LocalPointHelper::appendLocalPointStencil( SparseMatrix<REAL> const & conversionMatrix, int stencilRow, Index const sourcePoints[], int sourcePointOffset) { int stencilSize = conversionMatrix.GetRowSize(stencilRow); ConstArray<int> matrixColumns = conversionMatrix.GetRowColumns(stencilRow); ConstArray<REAL> matrixWeights = conversionMatrix.GetRowElements(stencilRow); StencilTableReal<REAL>* stencilTable = _stencilTable.Get<REAL>(); stencilTable->_sizes.push_back(stencilSize); for (int i = 0; i < stencilSize; ++i) { stencilTable->_weights.push_back(matrixWeights[i]); stencilTable->_indices.push_back( sourcePoints[matrixColumns[i]] + sourcePointOffset); } }
O0
cpp
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x80(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0xc9730 movl %eax, -0x28(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0xce4c0 movl %edx, -0x40(%rbp) movq %rax, -0x48(%rbp) movl -0x40(%rbp), %eax movl %eax, -0x30(%rbp) movq -0x48(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0xd0270 movq -0x80(%rbp), %rdi movl %edx, -0x60(%rbp) movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax movq %rax, -0x58(%rbp) movl -0x60(%rbp), %eax movl %eax, -0x50(%rbp) addq $0x48, %rdi callq 0xc9ca0 movq %rax, -0x70(%rbp) movq -0x70(%rbp), %rdi addq $0x10, %rdi leaq -0x28(%rbp), %rsi callq 0xc4210 movl $0x0, -0x74(%rbp) movl -0x74(%rbp), %eax cmpl -0x28(%rbp), %eax jge 0x151620 movq -0x70(%rbp), %rax addq $0x58, %rax movq %rax, -0x98(%rbp) movl -0x74(%rbp), %esi leaq -0x58(%rbp), %rdi callq 0xc5f50 movq -0x98(%rbp), %rdi movq %rax, %rsi callq 0xd0630 movq -0x70(%rbp), %rax addq $0x40, %rax movq %rax, -0x90(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x88(%rbp) movl -0x74(%rbp), %esi leaq -0x38(%rbp), %rdi callq 0xcabf0 movq -0x90(%rbp), %rdi movq %rax, %rcx movq -0x88(%rbp), %rax movslq (%rcx), %rcx movl (%rax,%rcx,4), %eax addl -0x24(%rbp), %eax movl %eax, -0x78(%rbp) leaq -0x78(%rbp), %rsi callq 0xc5900 movl -0x74(%rbp), %eax addl $0x1, %eax movl %eax, -0x74(%rbp) jmp 0x151590 addq $0xa0, %rsp popq %rbp retq nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper23appendLocalPointStencilIfEEvRKNS1_12SparseMatrixIT_EEiPKii: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov [rbp+var_20], rcx mov [rbp+var_24], r8d mov rax, [rbp+var_8] mov [rbp+var_80], rax mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call __ZNK10OpenSubdiv6v3_6_03Far12SparseMatrixIfE10GetRowSizeEi; OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowSize(int) mov [rbp+var_28], eax mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call __ZNK10OpenSubdiv6v3_6_03Far12SparseMatrixIfE13GetRowColumnsEi; OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowColumns(int) mov [rbp+var_40], edx mov [rbp+var_48], rax mov eax, [rbp+var_40] mov [rbp+var_30], eax mov rax, [rbp+var_48] mov [rbp+var_38], rax mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call __ZNK10OpenSubdiv6v3_6_03Far12SparseMatrixIfE14GetRowElementsEi; OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowElements(int) mov rdi, [rbp+var_80] mov [rbp+var_60], edx mov [rbp+var_68], rax mov rax, [rbp+var_68] mov [rbp+var_58], rax mov eax, [rbp+var_60] mov [rbp+var_50], eax add rdi, 48h ; 'H' call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable15StencilTablePtr3GetIfEEPNS1_16StencilTableRealIT_EEv; OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(void) mov [rbp+var_70], rax mov rdi, [rbp+var_70] add rdi, 10h lea rsi, [rbp+var_28] call __ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&) mov [rbp+var_74], 0 loc_151590: mov eax, [rbp+var_74] cmp eax, [rbp+var_28] jge loc_151620 mov rax, [rbp+var_70] add rax, 58h ; 'X' mov [rbp+var_98], rax mov esi, [rbp+var_74] lea rdi, [rbp+var_58] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIfEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<float>::operator[](int) mov rdi, [rbp+var_98] mov rsi, rax call __ZNSt6vectorIfSaIfEE9push_backERKf; std::vector<float>::push_back(float const&) mov rax, [rbp+var_70] add rax, 40h ; '@' mov [rbp+var_90], rax mov rax, [rbp+var_20] mov [rbp+var_88], rax mov esi, [rbp+var_74] lea rdi, [rbp+var_38] call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int) mov rdi, [rbp+var_90] mov rcx, rax mov rax, [rbp+var_88] movsxd rcx, dword ptr [rcx] mov eax, [rax+rcx*4] add eax, [rbp+var_24] mov [rbp+var_78], eax lea rsi, [rbp+var_78] call __ZNSt6vectorIiSaIiEE9push_backEOi; std::vector<int>::push_back(int &&) mov eax, [rbp+var_74] add eax, 1 mov [rbp+var_74], eax jmp loc_151590 loc_151620: add rsp, 0A0h pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float>( long long a1, long long a2, unsigned int a3, long long a4, int a5) { long long RowColumns; // rax int v6; // edx long long RowElements; // rax int v8; // edx long long result; // rax long long v10; // rax int *v11; // rax long long v12; // [rsp+8h] [rbp-98h] long long v13; // [rsp+10h] [rbp-90h] long long v14; // [rsp+18h] [rbp-88h] int v15; // [rsp+28h] [rbp-78h] BYREF unsigned int i; // [rsp+2Ch] [rbp-74h] long long v17; // [rsp+30h] [rbp-70h] long long v18; // [rsp+38h] [rbp-68h] int v19; // [rsp+40h] [rbp-60h] long long v20; // [rsp+48h] [rbp-58h] BYREF int v21; // [rsp+50h] [rbp-50h] long long v22; // [rsp+58h] [rbp-48h] int v23; // [rsp+60h] [rbp-40h] long long v24; // [rsp+68h] [rbp-38h] BYREF int v25; // [rsp+70h] [rbp-30h] int RowSize; // [rsp+78h] [rbp-28h] BYREF int v27; // [rsp+7Ch] [rbp-24h] long long v28; // [rsp+80h] [rbp-20h] unsigned int v29; // [rsp+8Ch] [rbp-14h] long long v30; // [rsp+90h] [rbp-10h] long long v31; // [rsp+98h] [rbp-8h] v31 = a1; v30 = a2; v29 = a3; v28 = a4; v27 = a5; RowSize = OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowSize(a2, a3); RowColumns = OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowColumns(a2, v29); v23 = v6; v22 = RowColumns; v25 = v6; v24 = RowColumns; RowElements = OpenSubdiv::v3_6_0::Far::SparseMatrix<float>::GetRowElements(a2, v29); v19 = v8; v18 = RowElements; v20 = RowElements; v21 = v8; v17 = OpenSubdiv::v3_6_0::Far::PatchTable::StencilTablePtr::Get<float>(a1 + 72); std::vector<int>::push_back(v17 + 16, &RowSize); for ( i = 0; ; ++i ) { result = i; if ( (int)i >= RowSize ) break; v12 = v17 + 88; v10 = OpenSubdiv::v3_6_0::Vtr::ConstArray<float>::operator[](&v20, i); std::vector<float>::push_back(v12, v10); v13 = v17 + 64; v14 = v28; v11 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v24, i); v15 = v27 + *(_DWORD *)(v14 + 4LL * *v11); std::vector<int>::push_back(v13, &v15); } return result; }
31,544
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LocalPointHelper::appendLocalPointStencil( SparseMatrix<REAL> const & conversionMatrix, int stencilRow, Index const sourcePoints[], int sourcePointOffset) { int stencilSize = conversionMatrix.GetRowSize(stencilRow); ConstArray<int> matrixColumns = conversionMatrix.GetRowColumns(stencilRow); ConstArray<REAL> matrixWeights = conversionMatrix.GetRowElements(stencilRow); StencilTableReal<REAL>* stencilTable = _stencilTable.Get<REAL>(); stencilTable->_sizes.push_back(stencilSize); for (int i = 0; i < stencilSize; ++i) { stencilTable->_weights.push_back(matrixWeights[i]); stencilTable->_indices.push_back( sourcePoints[matrixColumns[i]] + sourcePointOffset); } }
O1
cpp
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %ebx movq %rcx, %r14 movq 0x10(%rsi), %rcx movslq %edx, %rdx movl 0x4(%rcx,%rdx,4), %eax subl (%rcx,%rdx,4), %eax movl %eax, (%rsp) movslq (%rcx,%rdx,4), %r15 shlq $0x2, %r15 movq 0x28(%rsi), %rbp addq %r15, %rbp addq 0x40(%rsi), %r15 movq 0x48(%rdi), %r12 movq 0x18(%r12), %rsi cmpq 0x20(%r12), %rsi je 0x70069 movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x18(%r12) jmp 0x70076 leaq 0x10(%r12), %rdi movq %rsp, %rdx callq 0x38ba0 cmpl $0x0, (%rsp) jle 0x7010b leaq 0x58(%r12), %rax movq %rax, 0x10(%rsp) leaq 0x40(%r12), %rax movq %rax, 0x8(%rsp) xorl %r13d, %r13d movq 0x60(%r12), %rsi cmpq 0x68(%r12), %rsi je 0x700b7 movss (%r15), %xmm0 movss %xmm0, (%rsi) addq $0x4, %rsi movq %rsi, 0x60(%r12) jmp 0x700c4 movq 0x10(%rsp), %rdi movq %r15, %rdx callq 0x3c0b0 movslq (%rbp,%r13,4), %rax movl (%r14,%rax,4), %eax addl %ebx, %eax movl %eax, 0x4(%rsp) movq 0x48(%r12), %rsi cmpq 0x50(%r12), %rsi je 0x700ec movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x48(%r12) jmp 0x700fb movq 0x8(%rsp), %rdi leaq 0x4(%rsp), %rdx callq 0x3b550 incq %r13 movslq (%rsp), %rax addq $0x4, %r15 cmpq %rax, %r13 jl 0x70097 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper23appendLocalPointStencilIfEEvRKNS1_12SparseMatrixIT_EEiPKii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebx, r8d mov r14, rcx mov rcx, [rsi+10h] movsxd rdx, edx mov eax, [rcx+rdx*4+4] sub eax, [rcx+rdx*4] mov [rsp+48h+var_48], eax movsxd r15, dword ptr [rcx+rdx*4] shl r15, 2 mov rbp, [rsi+28h] add rbp, r15 add r15, [rsi+40h] mov r12, [rdi+48h] mov rsi, [r12+18h] cmp rsi, [r12+20h] jz short loc_70069 mov [rsi], eax add rsi, 4 mov [r12+18h], rsi jmp short loc_70076 loc_70069: lea rdi, [r12+10h] mov rdx, rsp call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_70076: cmp [rsp+48h+var_48], 0 jle loc_7010B lea rax, [r12+58h] mov [rsp+48h+var_38], rax lea rax, [r12+40h] mov [rsp+48h+var_40], rax xor r13d, r13d loc_70097: mov rsi, [r12+60h] cmp rsi, [r12+68h] jz short loc_700B7 movss xmm0, dword ptr [r15] movss dword ptr [rsi], xmm0 add rsi, 4 mov [r12+60h], rsi jmp short loc_700C4 loc_700B7: mov rdi, [rsp+48h+var_38] mov rdx, r15 call __ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_; std::vector<float>::_M_realloc_insert<float const&>(__gnu_cxx::__normal_iterator<float *,std::vector<float>>,float const&) loc_700C4: movsxd rax, dword ptr [rbp+r13*4+0] mov eax, [r14+rax*4] add eax, ebx mov [rsp+48h+var_44], eax mov rsi, [r12+48h] cmp rsi, [r12+50h] jz short loc_700EC mov [rsi], eax add rsi, 4 mov [r12+48h], rsi jmp short loc_700FB loc_700EC: mov rdi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_44] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_700FB: inc r13 movsxd rax, [rsp+48h+var_48] add r15, 4 cmp r13, rax jl short loc_70097 loc_7010B: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float>( long long a1, _QWORD *a2, int a3, long long a4, int a5) { long long v7; // rcx long long result; // rax long long v9; // r15 long long v10; // rbp _DWORD *v11; // r15 _QWORD *v12; // r12 _DWORD *v13; // rsi long long i; // r13 _DWORD *v15; // rsi int v16; // eax _DWORD *v17; // rsi int v18; // [rsp+0h] [rbp-48h] BYREF int v19; // [rsp+4h] [rbp-44h] BYREF _QWORD *v20; // [rsp+8h] [rbp-40h] _QWORD *v21; // [rsp+10h] [rbp-38h] v7 = a2[2]; result = (unsigned int)(*(_DWORD *)(v7 + 4LL * a3 + 4) - *(_DWORD *)(v7 + 4LL * a3)); v18 = *(_DWORD *)(v7 + 4LL * a3 + 4) - *(_DWORD *)(v7 + 4LL * a3); v9 = 4LL * *(int *)(v7 + 4LL * a3); v10 = v9 + a2[5]; v11 = (_DWORD *)(a2[8] + v9); v12 = *(_QWORD **)(a1 + 72); v13 = (_DWORD *)v12[3]; if ( v13 == (_DWORD *)v12[4] ) { result = std::vector<int>::_M_realloc_insert<int const&>(v12 + 2, v13, &v18); } else { *v13 = result; v12[3] = v13 + 1; } if ( v18 > 0 ) { v21 = v12 + 11; v20 = v12 + 8; for ( i = 0LL; i < v18; ++i ) { v15 = (_DWORD *)v12[12]; if ( v15 == (_DWORD *)v12[13] ) { std::vector<float>::_M_realloc_insert<float const&>(v21, v15, v11); } else { *v15 = *v11; v12[12] = v15 + 1; } v16 = a5 + *(_DWORD *)(a4 + 4LL * *(int *)(v10 + 4 * i)); v19 = v16; v17 = (_DWORD *)v12[9]; if ( v17 == (_DWORD *)v12[10] ) { std::vector<int>::_M_realloc_insert<int>(v20, v17, &v19); } else { *v17 = v16; v12[9] = v17 + 1; } result = v18; ++v11; } } return result; }
appendLocalPointStencil<float>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBX,R8D MOV R14,RCX MOV RCX,qword ptr [RSI + 0x10] MOVSXD RDX,EDX MOV EAX,dword ptr [RCX + RDX*0x4 + 0x4] SUB EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RSP],EAX MOVSXD R15,dword ptr [RCX + RDX*0x4] SHL R15,0x2 MOV RBP,qword ptr [RSI + 0x28] ADD RBP,R15 ADD R15,qword ptr [RSI + 0x40] MOV R12,qword ptr [RDI + 0x48] MOV RSI,qword ptr [R12 + 0x18] CMP RSI,qword ptr [R12 + 0x20] JZ 0x00170069 MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [R12 + 0x18],RSI JMP 0x00170076 LAB_00170069: LEA RDI,[R12 + 0x10] MOV RDX,RSP CALL 0x00138ba0 LAB_00170076: CMP dword ptr [RSP],0x0 JLE 0x0017010b LEA RAX,[R12 + 0x58] MOV qword ptr [RSP + 0x10],RAX LEA RAX,[R12 + 0x40] MOV qword ptr [RSP + 0x8],RAX XOR R13D,R13D LAB_00170097: MOV RSI,qword ptr [R12 + 0x60] CMP RSI,qword ptr [R12 + 0x68] JZ 0x001700b7 MOVSS XMM0,dword ptr [R15] MOVSS dword ptr [RSI],XMM0 ADD RSI,0x4 MOV qword ptr [R12 + 0x60],RSI JMP 0x001700c4 LAB_001700b7: MOV RDI,qword ptr [RSP + 0x10] MOV RDX,R15 CALL 0x0013c0b0 LAB_001700c4: MOVSXD RAX,dword ptr [RBP + R13*0x4] MOV EAX,dword ptr [R14 + RAX*0x4] ADD EAX,EBX MOV dword ptr [RSP + 0x4],EAX MOV RSI,qword ptr [R12 + 0x48] CMP RSI,qword ptr [R12 + 0x50] JZ 0x001700ec MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [R12 + 0x48],RSI JMP 0x001700fb LAB_001700ec: MOV RDI,qword ptr [RSP + 0x8] LEA RDX,[RSP + 0x4] CALL 0x0013b550 LAB_001700fb: INC R13 MOVSXD RAX,dword ptr [RSP] ADD R15,0x4 CMP R13,RAX JL 0x00170097 LAB_0017010b: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float> const&, int, int const*, int) */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float> (LocalPointHelper *this,SparseMatrix *param_1,int param_2,int *param_3,int param_4) { long lVar1; int *piVar2; int4 *puVar3; long lVar4; long lVar5; long lVar6; int4 *puVar7; int local_48; int local_44; vector<int,std::allocator<int>> *local_40; vector<float,std::allocator<float>> *local_38; lVar1 = *(long *)(param_1 + 0x10); lVar4 = (long)param_2; local_48 = *(int *)(lVar1 + 4 + lVar4 * 4) - *(int *)(lVar1 + lVar4 * 4); lVar6 = (long)*(int *)(lVar1 + lVar4 * 4) * 4; lVar1 = *(long *)(param_1 + 0x28); puVar7 = (int4 *)(lVar6 + *(long *)(param_1 + 0x40)); lVar4 = *(long *)(this + 0x48); piVar2 = *(int **)(lVar4 + 0x18); if (piVar2 == *(int **)(lVar4 + 0x20)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)(lVar4 + 0x10),piVar2,&local_48); } else { *piVar2 = local_48; *(int **)(lVar4 + 0x18) = piVar2 + 1; } if (0 < local_48) { local_38 = (vector<float,std::allocator<float>> *)(lVar4 + 0x58); local_40 = (vector<int,std::allocator<int>> *)(lVar4 + 0x40); lVar5 = 0; do { puVar3 = *(int4 **)(lVar4 + 0x60); if (puVar3 == *(int4 **)(lVar4 + 0x68)) { std::vector<float,std::allocator<float>>::_M_realloc_insert<float_const&> (local_38,puVar3,puVar7); } else { *puVar3 = *puVar7; *(int4 **)(lVar4 + 0x60) = puVar3 + 1; } local_44 = param_3[*(int *)(lVar1 + lVar6 + lVar5 * 4)] + param_4; piVar2 = *(int **)(lVar4 + 0x48); if (piVar2 == *(int **)(lVar4 + 0x50)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int>(local_40,piVar2,&local_44); } else { *piVar2 = local_44; *(int **)(lVar4 + 0x48) = piVar2 + 1; } lVar5 = lVar5 + 1; puVar7 = puVar7 + 1; } while (lVar5 < local_48); } return; }
31,545
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LocalPointHelper::appendLocalPointStencil( SparseMatrix<REAL> const & conversionMatrix, int stencilRow, Index const sourcePoints[], int sourcePointOffset) { int stencilSize = conversionMatrix.GetRowSize(stencilRow); ConstArray<int> matrixColumns = conversionMatrix.GetRowColumns(stencilRow); ConstArray<REAL> matrixWeights = conversionMatrix.GetRowElements(stencilRow); StencilTableReal<REAL>* stencilTable = _stencilTable.Get<REAL>(); stencilTable->_sizes.push_back(stencilSize); for (int i = 0; i < stencilSize; ++i) { stencilTable->_weights.push_back(matrixWeights[i]); stencilTable->_indices.push_back( sourcePoints[matrixColumns[i]] + sourcePointOffset); } }
O2
cpp
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, 0xc(%rsp) movq %rcx, %r14 movq 0x10(%rsi), %rax movslq %edx, %rcx movl 0x4(%rax,%rcx,4), %edx movslq (%rax,%rcx,4), %r15 subl %r15d, %edx leaq 0x14(%rsp), %rax movl %edx, (%rax) leaq (,%r15,4), %rbp addq 0x28(%rsi), %rbp shlq $0x3, %r15 addq 0x40(%rsi), %r15 movq 0x48(%rdi), %r12 leaq 0x10(%r12), %rdi movq %rax, %rsi callq 0x4f610 leaq 0x58(%r12), %r13 addq $0x40, %r12 xorl %ebx, %ebx movslq 0x14(%rsp), %rax cmpq %rax, %rbx jge 0x816f9 movq %r13, %rdi movq %r15, %rsi callq 0x52b50 movslq (%rbp,%rbx,4), %rax movl (%r14,%rax,4), %eax addl 0xc(%rsp), %eax movl %eax, 0x10(%rsp) movq %r12, %rdi leaq 0x10(%rsp), %rsi callq 0x54910 incq %rbx addq $0x8, %r15 jmp 0x816bd addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper23appendLocalPointStencilIdEEvRKNS1_12SparseMatrixIT_EEiPKii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_3C], r8d mov r14, rcx mov rax, [rsi+10h] movsxd rcx, edx mov edx, [rax+rcx*4+4] movsxd r15, dword ptr [rax+rcx*4] sub edx, r15d lea rax, [rsp+48h+var_34] mov [rax], edx lea rbp, ds:0[r15*4] add rbp, [rsi+28h] shl r15, 3 add r15, [rsi+40h] mov r12, [rdi+48h] lea rdi, [r12+10h] mov rsi, rax call __ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&) lea r13, [r12+58h] add r12, 40h ; '@' xor ebx, ebx loc_816BD: movsxd rax, [rsp+48h+var_34] cmp rbx, rax jge short loc_816F9 mov rdi, r13 mov rsi, r15 call __ZNSt6vectorIdSaIdEE9push_backERKd; std::vector<double>::push_back(double const&) movsxd rax, dword ptr [rbp+rbx*4+0] mov eax, [r14+rax*4] add eax, [rsp+48h+var_3C] mov [rsp+48h+var_38], eax mov rdi, r12 lea rsi, [rsp+48h+var_38] call __ZNSt6vectorIiSaIiEE12emplace_backIJiEEERiDpOT_; std::vector<int>::emplace_back<int>(int &&) inc rbx add r15, 8 jmp short loc_816BD loc_816F9: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>( long long a1, _QWORD *a2, int a3, long long a4, int a5) { long long v6; // rax long long v7; // r15 long long v8; // rbp long long v9; // r15 long long v10; // r12 long long v11; // r13 long long v12; // r12 long long i; // rbx long long result; // rax int v16; // [rsp+10h] [rbp-38h] BYREF _DWORD v17[13]; // [rsp+14h] [rbp-34h] BYREF v6 = a2[2]; v7 = *(int *)(v6 + 4LL * a3); v17[0] = *(_DWORD *)(v6 + 4LL * a3 + 4) - v7; v8 = a2[5] + 4 * v7; v9 = a2[8] + 8 * v7; v10 = *(_QWORD *)(a1 + 72); std::vector<int>::push_back(v10 + 16, v17); v11 = v10 + 88; v12 = v10 + 64; for ( i = 0LL; ; ++i ) { result = v17[0]; if ( i >= v17[0] ) break; std::vector<double>::push_back(v11, v9); v16 = a5 + *(_DWORD *)(a4 + 4LL * *(int *)(v8 + 4 * i)); std::vector<int>::emplace_back<int>(v12, &v16); v9 += 8LL; } return result; }
appendLocalPointStencil<double>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV dword ptr [RSP + 0xc],R8D MOV R14,RCX MOV RAX,qword ptr [RSI + 0x10] MOVSXD RCX,EDX MOV EDX,dword ptr [RAX + RCX*0x4 + 0x4] MOVSXD R15,dword ptr [RAX + RCX*0x4] SUB EDX,R15D LEA RAX,[RSP + 0x14] MOV dword ptr [RAX],EDX LEA RBP,[R15*0x4] ADD RBP,qword ptr [RSI + 0x28] SHL R15,0x3 ADD R15,qword ptr [RSI + 0x40] MOV R12,qword ptr [RDI + 0x48] LEA RDI,[R12 + 0x10] MOV RSI,RAX CALL 0x0014f610 LEA R13,[R12 + 0x58] ADD R12,0x40 XOR EBX,EBX LAB_001816bd: MOVSXD RAX,dword ptr [RSP + 0x14] CMP RBX,RAX JGE 0x001816f9 MOV RDI,R13 MOV RSI,R15 CALL 0x00152b50 MOVSXD RAX,dword ptr [RBP + RBX*0x4] MOV EAX,dword ptr [R14 + RAX*0x4] ADD EAX,dword ptr [RSP + 0xc] MOV dword ptr [RSP + 0x10],EAX MOV RDI,R12 LEA RSI,[RSP + 0x10] CALL 0x00154910 INC RBX ADD R15,0x8 JMP 0x001816bd LAB_001816f9: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int) */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double> (LocalPointHelper *this,SparseMatrix *param_1,int param_2,int *param_3,int param_4) { int iVar1; long lVar2; long lVar3; long lVar4; double *pdVar5; int local_38; int local_34; iVar1 = *(int *)(*(long *)(param_1 + 0x10) + (long)param_2 * 4); local_34 = *(int *)(*(long *)(param_1 + 0x10) + 4 + (long)param_2 * 4) - iVar1; lVar2 = *(long *)(param_1 + 0x28); pdVar5 = (double *)((long)iVar1 * 8 + *(long *)(param_1 + 0x40)); lVar3 = *(long *)(this + 0x48); std::vector<int,std::allocator<int>>::push_back ((vector<int,std::allocator<int>> *)(lVar3 + 0x10),&local_34); for (lVar4 = 0; lVar4 < local_34; lVar4 = lVar4 + 1) { std::vector<double,std::allocator<double>>::push_back ((vector<double,std::allocator<double>> *)(lVar3 + 0x58),pdVar5); local_38 = param_3[*(int *)((long)iVar1 * 4 + lVar2 + lVar4 * 4)] + param_4; std::vector<int,std::allocator<int>>::emplace_back<int> ((vector<int,std::allocator<int>> *)(lVar3 + 0x40),&local_38); pdVar5 = pdVar5 + 1; } return; }
31,546
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTableFactory.cpp
void PatchTableBuilder::LocalPointHelper::appendLocalPointStencil( SparseMatrix<REAL> const & conversionMatrix, int stencilRow, Index const sourcePoints[], int sourcePointOffset) { int stencilSize = conversionMatrix.GetRowSize(stencilRow); ConstArray<int> matrixColumns = conversionMatrix.GetRowColumns(stencilRow); ConstArray<REAL> matrixWeights = conversionMatrix.GetRowElements(stencilRow); StencilTableReal<REAL>* stencilTable = _stencilTable.Get<REAL>(); stencilTable->_sizes.push_back(stencilSize); for (int i = 0; i < stencilSize; ++i) { stencilTable->_weights.push_back(matrixWeights[i]); stencilTable->_indices.push_back( sourcePoints[matrixColumns[i]] + sourcePointOffset); } }
O3
cpp
void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<double>(OpenSubdiv::v3_6_0::Far::SparseMatrix<double> const&, int, int const*, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %ebx movq %rcx, %r14 movq 0x10(%rsi), %rcx movslq %edx, %rdx movl 0x4(%rcx,%rdx,4), %eax movslq (%rcx,%rdx,4), %r15 subl %r15d, %eax movl %eax, (%rsp) shlq $0x2, %r15 movq 0x28(%rsi), %rbp addq %r15, %rbp addq 0x40(%rsi), %r15 movq 0x48(%rdi), %r12 movq 0x18(%r12), %rsi cmpq 0x20(%r12), %rsi je 0x7168b movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x18(%r12) jmp 0x7169f leaq 0x10(%r12), %rdi movq %rsp, %r13 movq %r13, %rdx callq 0x38ba0 movl (%r13), %eax testl %eax, %eax jle 0x71732 leaq 0x58(%r12), %rax movq %rax, 0x10(%rsp) leaq 0x40(%r12), %rax movq %rax, 0x8(%rsp) xorl %r13d, %r13d movq 0x60(%r12), %rsi cmpq 0x68(%r12), %rsi je 0x716de movss (%r15), %xmm0 movss %xmm0, (%rsi) addq $0x4, %rsi movq %rsi, 0x60(%r12) jmp 0x716eb movq 0x10(%rsp), %rdi movq %r15, %rdx callq 0x3c060 movslq (%rbp,%r13,4), %rax movl (%r14,%rax,4), %eax addl %ebx, %eax movl %eax, 0x4(%rsp) movq 0x48(%r12), %rsi cmpq 0x50(%r12), %rsi je 0x71713 movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x48(%r12) jmp 0x71722 movq 0x8(%rsp), %rdi leaq 0x4(%rsp), %rdx callq 0x3b510 incq %r13 movslq (%rsp), %rax addq $0x4, %r15 cmpq %rax, %r13 jl 0x716be addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN10OpenSubdiv6v3_6_03Far17PatchTableBuilder16LocalPointHelper23appendLocalPointStencilIfEEvRKNS1_12SparseMatrixIT_EEiPKii: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebx, r8d mov r14, rcx mov rcx, [rsi+10h] movsxd rdx, edx mov eax, [rcx+rdx*4+4] movsxd r15, dword ptr [rcx+rdx*4] sub eax, r15d mov [rsp+48h+var_48], eax shl r15, 2 mov rbp, [rsi+28h] add rbp, r15 add r15, [rsi+40h] mov r12, [rdi+48h] mov rsi, [r12+18h] cmp rsi, [r12+20h] jz short loc_7168B mov [rsi], eax add rsi, 4 mov [r12+18h], rsi jmp short loc_7169F loc_7168B: lea rdi, [r12+10h] mov r13, rsp mov rdx, r13 call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) mov eax, [r13+0] loc_7169F: test eax, eax jle loc_71732 lea rax, [r12+58h] mov [rsp+48h+var_38], rax lea rax, [r12+40h] mov [rsp+48h+var_40], rax xor r13d, r13d loc_716BE: mov rsi, [r12+60h] cmp rsi, [r12+68h] jz short loc_716DE movss xmm0, dword ptr [r15] movss dword ptr [rsi], xmm0 add rsi, 4 mov [r12+60h], rsi jmp short loc_716EB loc_716DE: mov rdi, [rsp+48h+var_38] mov rdx, r15 call __ZNSt6vectorIfSaIfEE17_M_realloc_insertIJRKfEEEvN9__gnu_cxx17__normal_iteratorIPfS1_EEDpOT_; std::vector<float>::_M_realloc_insert<float const&>(__gnu_cxx::__normal_iterator<float *,std::vector<float>>,float const&) loc_716EB: movsxd rax, dword ptr [rbp+r13*4+0] mov eax, [r14+rax*4] add eax, ebx mov [rsp+48h+var_44], eax mov rsi, [r12+48h] cmp rsi, [r12+50h] jz short loc_71713 mov [rsi], eax add rsi, 4 mov [r12+48h], rsi jmp short loc_71722 loc_71713: mov rdi, [rsp+48h+var_40] lea rdx, [rsp+48h+var_44] call __ZNSt6vectorIiSaIiEE17_M_realloc_insertIJiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int &&) loc_71722: inc r13 movsxd rax, [rsp+48h+var_48] add r15, 4 cmp r13, rax jl short loc_716BE loc_71732: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float>( long long a1, _QWORD *a2, int a3, long long a4, int a5) { long long v7; // rcx long long v8; // r15 long long result; // rax long long v10; // rbp _DWORD *v11; // r15 _QWORD *v12; // r12 _DWORD *v13; // rsi long long v14; // r13 _DWORD *v15; // rsi int v16; // eax _DWORD *v17; // rsi unsigned int v18; // [rsp+0h] [rbp-48h] BYREF int v19; // [rsp+4h] [rbp-44h] BYREF _QWORD *v20; // [rsp+8h] [rbp-40h] _QWORD *v21; // [rsp+10h] [rbp-38h] v7 = a2[2]; v8 = *(int *)(v7 + 4LL * a3); result = (unsigned int)(*(_DWORD *)(v7 + 4LL * a3 + 4) - v8); v18 = *(_DWORD *)(v7 + 4LL * a3 + 4) - v8; v8 *= 4LL; v10 = v8 + a2[5]; v11 = (_DWORD *)(a2[8] + v8); v12 = *(_QWORD **)(a1 + 72); v13 = (_DWORD *)v12[3]; if ( v13 == (_DWORD *)v12[4] ) { std::vector<int>::_M_realloc_insert<int const&>(v12 + 2, v13, &v18); result = v18; } else { *v13 = result; v12[3] = v13 + 1; } if ( (int)result > 0 ) { v21 = v12 + 11; v20 = v12 + 8; v14 = 0LL; do { v15 = (_DWORD *)v12[12]; if ( v15 == (_DWORD *)v12[13] ) { std::vector<float>::_M_realloc_insert<float const&>(v21, v15, v11); } else { *v15 = *v11; v12[12] = v15 + 1; } v16 = a5 + *(_DWORD *)(a4 + 4LL * *(int *)(v10 + 4 * v14)); v19 = v16; v17 = (_DWORD *)v12[9]; if ( v17 == (_DWORD *)v12[10] ) { std::vector<int>::_M_realloc_insert<int>(v20, v17, &v19); } else { *v17 = v16; v12[9] = v17 + 1; } ++v14; result = (int)v18; ++v11; } while ( v14 < (int)v18 ); } return result; }
appendLocalPointStencil<float>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBX,R8D MOV R14,RCX MOV RCX,qword ptr [RSI + 0x10] MOVSXD RDX,EDX MOV EAX,dword ptr [RCX + RDX*0x4 + 0x4] MOVSXD R15,dword ptr [RCX + RDX*0x4] SUB EAX,R15D MOV dword ptr [RSP],EAX SHL R15,0x2 MOV RBP,qword ptr [RSI + 0x28] ADD RBP,R15 ADD R15,qword ptr [RSI + 0x40] MOV R12,qword ptr [RDI + 0x48] MOV RSI,qword ptr [R12 + 0x18] CMP RSI,qword ptr [R12 + 0x20] JZ 0x0017168b MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [R12 + 0x18],RSI JMP 0x0017169f LAB_0017168b: LEA RDI,[R12 + 0x10] MOV R13,RSP MOV RDX,R13 CALL 0x00138ba0 MOV EAX,dword ptr [R13] LAB_0017169f: TEST EAX,EAX JLE 0x00171732 LEA RAX,[R12 + 0x58] MOV qword ptr [RSP + 0x10],RAX LEA RAX,[R12 + 0x40] MOV qword ptr [RSP + 0x8],RAX XOR R13D,R13D LAB_001716be: MOV RSI,qword ptr [R12 + 0x60] CMP RSI,qword ptr [R12 + 0x68] JZ 0x001716de MOVSS XMM0,dword ptr [R15] MOVSS dword ptr [RSI],XMM0 ADD RSI,0x4 MOV qword ptr [R12 + 0x60],RSI JMP 0x001716eb LAB_001716de: MOV RDI,qword ptr [RSP + 0x10] MOV RDX,R15 CALL 0x0013c060 LAB_001716eb: MOVSXD RAX,dword ptr [RBP + R13*0x4] MOV EAX,dword ptr [R14 + RAX*0x4] ADD EAX,EBX MOV dword ptr [RSP + 0x4],EAX MOV RSI,qword ptr [R12 + 0x48] CMP RSI,qword ptr [R12 + 0x50] JZ 0x00171713 MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [R12 + 0x48],RSI JMP 0x00171722 LAB_00171713: MOV RDI,qword ptr [RSP + 0x8] LEA RDX,[RSP + 0x4] CALL 0x0013b510 LAB_00171722: INC R13 MOVSXD RAX,dword ptr [RSP] ADD R15,0x4 CMP R13,RAX JL 0x001716be LAB_00171732: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float>(OpenSubdiv::v3_6_0::Far::SparseMatrix<float> const&, int, int const*, int) */ void __thiscall OpenSubdiv::v3_6_0::Far::PatchTableBuilder::LocalPointHelper::appendLocalPointStencil<float> (LocalPointHelper *this,SparseMatrix *param_1,int param_2,int *param_3,int param_4) { int iVar1; long lVar2; long lVar3; int *piVar4; int4 *puVar5; long lVar6; long lVar7; int4 *puVar8; int local_48; int local_44; vector<int,std::allocator<int>> *local_40; vector<float,std::allocator<float>> *local_38; iVar1 = *(int *)(*(long *)(param_1 + 0x10) + (long)param_2 * 4); local_48 = *(int *)(*(long *)(param_1 + 0x10) + 4 + (long)param_2 * 4) - iVar1; lVar7 = (long)iVar1 * 4; lVar2 = *(long *)(param_1 + 0x28); puVar8 = (int4 *)(lVar7 + *(long *)(param_1 + 0x40)); lVar3 = *(long *)(this + 0x48); piVar4 = *(int **)(lVar3 + 0x18); if (piVar4 == *(int **)(lVar3 + 0x20)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)(lVar3 + 0x10),piVar4,&local_48); } else { *piVar4 = local_48; *(int **)(lVar3 + 0x18) = piVar4 + 1; } if (0 < local_48) { local_38 = (vector<float,std::allocator<float>> *)(lVar3 + 0x58); local_40 = (vector<int,std::allocator<int>> *)(lVar3 + 0x40); lVar6 = 0; do { puVar5 = *(int4 **)(lVar3 + 0x60); if (puVar5 == *(int4 **)(lVar3 + 0x68)) { std::vector<float,std::allocator<float>>::_M_realloc_insert<float_const&> (local_38,puVar5,puVar8); } else { *puVar5 = *puVar8; *(int4 **)(lVar3 + 0x60) = puVar5 + 1; } local_44 = param_3[*(int *)(lVar2 + lVar7 + lVar6 * 4)] + param_4; piVar4 = *(int **)(lVar3 + 0x48); if (piVar4 == *(int **)(lVar3 + 0x50)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int>(local_40,piVar4,&local_44); } else { *piVar4 = local_44; *(int **)(lVar3 + 0x48) = piVar4 + 1; } lVar6 = lVar6 + 1; puVar8 = puVar8 + 1; } while (lVar6 < local_48); } return; }
31,547
inline_mysql_mutex_init
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_mutex_init( #ifdef HAVE_PSI_MUTEX_INTERFACE PSI_mutex_key key, #endif mysql_mutex_t *that, const pthread_mutexattr_t *attr #ifdef SAFE_MUTEX , const char *src_name, const char *src_file, uint src_line #endif ) { #ifdef HAVE_PSI_MUTEX_INTERFACE that->m_psi= PSI_MUTEX_CALL(init_mutex)(key, &that->m_mutex); #else that->m_psi= NULL; #endif #ifdef COROUTINE_ENABLED that->l.data= that; that->l.prev= that->l.next= NULL; #endif #ifdef SAFE_MUTEX return safe_mutex_init(&that->m_mutex, attr, src_name, src_file, src_line); #else return pthread_mutex_init(&that->m_mutex, attr); #endif }
O0
c
inline_mysql_mutex_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x23154e(%rip), %rax # 0x2c2238 movq (%rax), %rax movq 0x40(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x38(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x30(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x28(%rax) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x2a320 addq $0x20, %rsp popq %rbp retq nopl (%rax)
inline_mysql_mutex_init_5: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, PSI_server mov rax, [rax] mov rax, [rax+40h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+40h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_10] mov [rax+38h], rcx mov rax, [rbp+var_10] mov qword ptr [rax+30h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+28h], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call _pthread_mutex_init add rsp, 20h pop rbp retn
long long inline_mysql_mutex_init_5(unsigned int a1, _QWORD *a2, long long a3) { a2[8] = ((long long ( *)(_QWORD, _QWORD *))PSI_server[8])(a1, a2); a2[7] = a2; a2[6] = 0LL; a2[5] = 0LL; return pthread_mutex_init(a2, a3); }
inline_mysql_mutex_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[0x3c2238] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x40] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x30],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x28],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0012a320 ADD RSP,0x20 POP RBP RET
void inline_mysql_mutex_init (int4 param_1,pthread_mutex_t *param_2,pthread_mutexattr_t *param_3) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x40))(param_1,param_2); *(int8 *)((long)param_2 + 0x40) = uVar1; *(pthread_mutex_t **)((long)param_2 + 0x38) = param_2; *(int8 *)((long)param_2 + 0x30) = 0; param_2[1].__align = 0; pthread_mutex_init(param_2,param_3); return; }
31,548
ftxui::ScreenInteractive::ScreenInteractive(int, int, ftxui::ScreenInteractive::Dimension, bool)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
ScreenInteractive::ScreenInteractive(int dimx, int dimy, Dimension dimension, bool use_alternative_screen) : Screen(dimx, dimy), dimension_(dimension), use_alternative_screen_(use_alternative_screen) { task_receiver_ = MakeReceiver<Task>(); }
O0
cpp
ftxui::ScreenInteractive::ScreenInteractive(int, int, ftxui::ScreenInteractive::Dimension, bool): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movb %r8b, %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) andb $0x1, %al movb %al, -0x15(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x38(%rbp) movl -0xc(%rbp), %esi movl -0x10(%rbp), %edx callq 0x87670 movq -0x38(%rbp), %rdi movq $0x0, 0x58(%rdi) movl -0x14(%rbp), %eax movl %eax, 0x60(%rdi) movb -0x15(%rbp), %al andb $0x1, %al movb %al, 0x64(%rdi) movb $0x1, 0x65(%rdi) addq $0x68, %rdi movq %rdi, -0x68(%rbp) callq 0x69450 movq -0x38(%rbp), %rdi addq $0x70, %rdi movq %rdi, -0x60(%rbp) callq 0x69480 movq -0x38(%rbp), %rdi addq $0x78, %rdi movq %rdi, -0x58(%rbp) callq 0xd850 movq -0x38(%rbp), %rdi addq $0x98, %rdi movq %rdi, -0x50(%rbp) callq 0xd850 movq -0x38(%rbp), %rdi addq $0xb8, %rdi xorl %esi, %esi callq 0x694b0 movq -0x38(%rbp), %rdi addq $0xc0, %rdi movq %rdi, -0x48(%rbp) callq 0x694e0 movq -0x38(%rbp), %rdi addq $0xc8, %rdi movq %rdi, -0x40(%rbp) callq 0x694e0 movq -0x38(%rbp), %rdi movb $0x0, 0xd0(%rdi) addq $0xd8, %rdi callq 0x69500 jmp 0x61694 movq -0x38(%rbp), %rax movl $0x1, 0xe0(%rax) movl $0x1, 0xe4(%rax) movb $0x0, 0xe8(%rax) movb $0x0, 0xe9(%rax) movb $0x0, 0xea(%rax) leaq -0x30(%rbp), %rdi callq 0x69530 jmp 0x616cc movq -0x38(%rbp), %rdi addq $0x70, %rdi leaq -0x30(%rbp), %rsi callq 0x69560 leaq -0x30(%rbp), %rdi callq 0x20ee0 addq $0x70, %rsp popq %rbp retq movq -0x40(%rbp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, -0x20(%rbp) movl %eax, -0x24(%rbp) callq 0x20eb0 movq -0x48(%rbp), %rdi callq 0x20eb0 movq -0x50(%rbp), %rdi callq 0xdbc8 movq -0x58(%rbp), %rdi callq 0xdbc8 movq -0x60(%rbp), %rdi callq 0x20ee0 movq -0x68(%rbp), %rdi callq 0x20f50 movq -0x38(%rbp), %rdi callq 0x20fc0 movq -0x20(%rbp), %rdi callq 0xda90
_ZN5ftxui17ScreenInteractiveC2EiiNS0_9DimensionEb: push rbp; Alternative name is 'ftxui::ScreenInteractive::ScreenInteractive(int, int, ftxui::ScreenInteractive::Dimension, bool)' mov rbp, rsp sub rsp, 70h mov al, r8b mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_14], ecx and al, 1 mov [rbp+var_15], al mov rdi, [rbp+var_8]; this mov [rbp+var_38], rdi mov esi, [rbp+var_C]; int mov edx, [rbp+var_10]; int call _ZN5ftxui6ScreenC2Eii; ftxui::Screen::Screen(int,int) mov rdi, [rbp+var_38] mov qword ptr [rdi+58h], 0 mov eax, [rbp+var_14] mov [rdi+60h], eax mov al, [rbp+var_15] and al, 1 mov [rdi+64h], al mov byte ptr [rdi+65h], 1 add rdi, 68h ; 'h' mov [rbp+var_68], rdi call _ZNSt10unique_ptrIN5ftxui10SenderImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EEC2ISB_vEEv; std::unique_ptr<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::unique_ptr<std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>,void>(void) mov rdi, [rbp+var_38] add rdi, 70h ; 'p' mov [rbp+var_60], rdi call _ZNSt10unique_ptrIN5ftxui12ReceiverImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EEC2ISB_vEEv; std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::unique_ptr<std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>,void>(void) mov rdi, [rbp+var_38] add rdi, 78h ; 'x' mov [rbp+var_58], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rbp+var_38] add rdi, 98h mov [rbp+var_50], rdi call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov rdi, [rbp+var_38] add rdi, 0B8h xor esi, esi call _ZNSt6atomicIbEC2Eb; std::atomic<bool>::atomic(bool) mov rdi, [rbp+var_38] add rdi, 0C0h; this mov [rbp+var_48], rdi call _ZNSt6threadC2Ev; std::thread::thread(void) mov rdi, [rbp+var_38] add rdi, 0C8h; this mov [rbp+var_40], rdi call _ZNSt6threadC2Ev; std::thread::thread(void) mov rdi, [rbp+var_38] mov byte ptr [rdi+0D0h], 0 add rdi, 0D8h call _ZNSt6chrono10time_pointINS_3_V212steady_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEC2Ev; std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(void) jmp short $+2 loc_61694: mov rax, [rbp+var_38] mov dword ptr [rax+0E0h], 1 mov dword ptr [rax+0E4h], 1 mov byte ptr [rax+0E8h], 0 mov byte ptr [rax+0E9h], 0 mov byte ptr [rax+0EAh], 0 lea rdi, [rbp+var_30] call _ZN5ftxui12MakeReceiverISt7variantIJNS_5EventESt8functionIFvvEENS_13AnimationTaskEEEEESt10unique_ptrINS_12ReceiverImplIT_EESt14default_deleteISB_EEv; ftxui::MakeReceiver<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>(void) jmp short $+2 loc_616CC: mov rdi, [rbp+var_38] add rdi, 70h ; 'p' lea rsi, [rbp+var_30] call _ZNSt10unique_ptrIN5ftxui12ReceiverImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EEaSEOSC_; std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::operator=(std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>&&) lea rdi, [rbp+var_30] call _ZNSt10unique_ptrIN5ftxui12ReceiverImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EED2Ev; std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::~unique_ptr() add rsp, 70h pop rbp retn mov rdi, [rbp+var_40]; this mov rcx, rax mov eax, edx mov [rbp+var_20], rcx mov [rbp+var_24], eax call _ZNSt6threadD2Ev; std::thread::~thread() mov rdi, [rbp+var_48]; this call _ZNSt6threadD2Ev; std::thread::~thread() mov rdi, [rbp+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_58]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rdi, [rbp+var_60] call _ZNSt10unique_ptrIN5ftxui12ReceiverImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EED2Ev; std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::~unique_ptr() mov rdi, [rbp+var_68] call _ZNSt10unique_ptrIN5ftxui10SenderImplISt7variantIJNS0_5EventESt8functionIFvvEENS0_13AnimationTaskEEEEESt14default_deleteIS9_EED2Ev; std::unique_ptr<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::~unique_ptr() mov rdi, [rbp+var_38]; this call _ZN5ftxui6ScreenD2Ev; ftxui::Screen::~Screen() mov rdi, [rbp+var_20] call __Unwind_Resume
_QWORD * ftxui::ScreenInteractive::ScreenInteractive(long long a1, int a2, int a3, int a4, char a5) { _BYTE v6[12]; // [rsp+40h] [rbp-30h] BYREF char v7; // [rsp+5Bh] [rbp-15h] int v8; // [rsp+5Ch] [rbp-14h] int v9; // [rsp+60h] [rbp-10h] int v10; // [rsp+64h] [rbp-Ch] ftxui::Screen *v11; // [rsp+68h] [rbp-8h] v11 = (ftxui::Screen *)a1; v10 = a2; v9 = a3; v8 = a4; v7 = a5 & 1; ftxui::Screen::Screen((ftxui::Screen *)a1, a2, a3); *(_QWORD *)(a1 + 88) = 0LL; *(_DWORD *)(a1 + 96) = v8; *(_BYTE *)(a1 + 100) = v7 & 1; *(_BYTE *)(a1 + 101) = 1; std::unique_ptr<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::unique_ptr<std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>,void>(); std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::unique_ptr<std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>,void>(); std::string::basic_string(a1 + 120); std::string::basic_string(a1 + 152); std::atomic<bool>::atomic(a1 + 184, 0LL); std::thread::thread((std::thread *)(a1 + 192)); std::thread::thread((std::thread *)(a1 + 200)); *(_BYTE *)(a1 + 208) = 0; std::chrono::time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(a1 + 216); *(_DWORD *)(a1 + 224) = 1; *(_DWORD *)(a1 + 228) = 1; *(_BYTE *)(a1 + 232) = 0; *(_BYTE *)(a1 + 233) = 0; *(_BYTE *)(a1 + 234) = 0; ftxui::MakeReceiver<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>(v6); std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::operator=( a1 + 112, v6); return std::unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void ()(void)>,ftxui::AnimationTask>>>::~unique_ptr((long long)v6); }
ScreenInteractive: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV AL,R8B MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV dword ptr [RBP + -0x10],EDX MOV dword ptr [RBP + -0x14],ECX AND AL,0x1 MOV byte ptr [RBP + -0x15],AL MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x38],RDI MOV ESI,dword ptr [RBP + -0xc] MOV EDX,dword ptr [RBP + -0x10] CALL 0x00187670 MOV RDI,qword ptr [RBP + -0x38] MOV qword ptr [RDI + 0x58],0x0 MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RDI + 0x60],EAX MOV AL,byte ptr [RBP + -0x15] AND AL,0x1 MOV byte ptr [RDI + 0x64],AL MOV byte ptr [RDI + 0x65],0x1 ADD RDI,0x68 MOV qword ptr [RBP + -0x68],RDI CALL 0x00169450 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x70 MOV qword ptr [RBP + -0x60],RDI CALL 0x00169480 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x78 MOV qword ptr [RBP + -0x58],RDI CALL 0x0010d850 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x98 MOV qword ptr [RBP + -0x50],RDI CALL 0x0010d850 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0xb8 XOR ESI,ESI CALL 0x001694b0 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0xc0 MOV qword ptr [RBP + -0x48],RDI CALL 0x001694e0 MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0xc8 MOV qword ptr [RBP + -0x40],RDI CALL 0x001694e0 MOV RDI,qword ptr [RBP + -0x38] MOV byte ptr [RDI + 0xd0],0x0 ADD RDI,0xd8 LAB_0016168d: CALL 0x00169500 JMP 0x00161694 LAB_00161694: MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xe0],0x1 MOV dword ptr [RAX + 0xe4],0x1 MOV byte ptr [RAX + 0xe8],0x0 MOV byte ptr [RAX + 0xe9],0x0 MOV byte ptr [RAX + 0xea],0x0 LEA RDI,[RBP + -0x30] CALL 0x00169530 LAB_001616ca: JMP 0x001616cc LAB_001616cc: MOV RDI,qword ptr [RBP + -0x38] ADD RDI,0x70 LEA RSI,[RBP + -0x30] CALL 0x00169560 LEA RDI,[RBP + -0x30] CALL 0x00120ee0 ADD RSP,0x70 POP RBP RET
/* ftxui::ScreenInteractive::ScreenInteractive(int, int, ftxui::ScreenInteractive::Dimension, bool) */ void __thiscall ftxui::ScreenInteractive::ScreenInteractive (ScreenInteractive *this,int param_1,int param_2,int4 param_4,byte param_5) { ftxui local_38 [27]; byte local_1d; int4 local_1c; int local_18; int local_14; ScreenInteractive *local_10; local_1d = param_5 & 1; local_1c = param_4; local_18 = param_2; local_14 = param_1; local_10 = this; Screen::Screen((Screen *)this,param_1,param_2); *(int8 *)(this + 0x58) = 0; *(int4 *)(this + 0x60) = local_1c; this[100] = (ScreenInteractive)(local_1d & 1); this[0x65] = (ScreenInteractive)0x1; std:: unique_ptr<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> :: unique_ptr<std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>,void> ((unique_ptr<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::SenderImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> *)(this + 0x68)); std:: unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> :: unique_ptr<std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>,void> ((unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> *)(this + 0x70)); std::__cxx11::string::string((string *)(this + 0x78)); std::__cxx11::string::string((string *)(this + 0x98)); std::atomic<bool>::atomic((atomic<bool> *)(this + 0xb8),false); std::thread::thread((thread *)(this + 0xc0)); std::thread::thread((thread *)(this + 200)); this[0xd0] = (ScreenInteractive)0x0; /* try { // try from 0016168d to 001616c9 has its CatchHandler @ 001616ec */ std::chrono:: time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> ::time_point((time_point<std::chrono::_V2::steady_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>> *)(this + 0xd8)); *(int4 *)(this + 0xe0) = 1; *(int4 *)(this + 0xe4) = 1; this[0xe8] = (ScreenInteractive)0x0; this[0xe9] = (ScreenInteractive)0x0; this[0xea] = (ScreenInteractive)0x0; MakeReceiver<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>(local_38); std:: unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> ::operator=((unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> *)(this + 0x70),(unique_ptr *)local_38); std:: unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> ::~unique_ptr((unique_ptr<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>,std::default_delete<ftxui::ReceiverImpl<std::variant<ftxui::Event,std::function<void()>,ftxui::AnimationTask>>>> *)local_38); return; }
31,549
virtual thunk to nglog::NullStream::~NullStream()
ng-log[P]ng-log/src/ng-log/logging.h
class NGLOG_EXPORT NullStream : public LogMessage::LogStream { public: // Initialize the LogStream so the messages can be written somewhere // (they'll never be actually displayed). This will be needed if a // NullStream& is implicitly converted to LogStream&, in which case // the overloaded NullStream::operator<< will not be invoked. NullStream(); NullStream(const char* /*file*/, int /*line*/, const internal::CheckOpString& /*result*/); NullStream& stream(); private: // A very short buffer for messages (which we discard anyway). This // will be needed if NullStream& converted to LogStream& (e.g. as a // result of a conditional expression). char message_buffer_[3]; }
O0
c
virtual thunk to nglog::NullStream::~NullStream(): pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq (%rdi), %rax movq -0x18(%rax), %rax addq %rax, %rdi popq %rbp jmp 0x1eec0 nopl (%rax)
_ZTv0_n24_N5nglog10NullStreamD0Ev: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rdi, [rbp+var_8] mov rax, [rdi] mov rax, [rax-18h] add rdi, rax; this pop rbp jmp _ZN5nglog10NullStreamD0Ev; nglog::NullStream::~NullStream()
void `virtual thunk to'nglog::NullStream::~NullStream(nglog::NullStream *this) { nglog::NullStream::~NullStream((nglog::NullStream *)((char *)this + *(_QWORD *)(*(_QWORD *)this - 24LL))); }
~NullStream: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + -0x18] ADD RDI,RAX POP RBP JMP 0x0011eec0
/* virtual thunk to nglog::NullStream::~NullStream() */ void __thiscall nglog::NullStream::~NullStream(NullStream *this) { ~NullStream(this + *(long *)(*(long *)this + -0x18)); return; }
31,550
virtual thunk to nglog::NullStream::~NullStream()
ng-log[P]ng-log/src/ng-log/logging.h
class NGLOG_EXPORT NullStream : public LogMessage::LogStream { public: // Initialize the LogStream so the messages can be written somewhere // (they'll never be actually displayed). This will be needed if a // NullStream& is implicitly converted to LogStream&, in which case // the overloaded NullStream::operator<< will not be invoked. NullStream(); NullStream(const char* /*file*/, int /*line*/, const internal::CheckOpString& /*result*/); NullStream& stream(); private: // A very short buffer for messages (which we discard anyway). This // will be needed if NullStream& converted to LogStream& (e.g. as a // result of a conditional expression). char message_buffer_[3]; }
O1
c
virtual thunk to nglog::NullStream::~NullStream(): pushq %r14 pushq %rbx pushq %rax movq (%rdi), %rax movq -0x18(%rax), %rax leaq (%rdi,%rax), %rbx leaq 0x1e37a(%rip), %rcx # 0x30898 leaq 0x18(%rcx), %rdx leaq (%rdi,%rax), %r14 addq $0x60, %r14 movq %rdx, -0x60(%r14) addq $0x40, %rcx movq %rcx, (%r14) movq 0x1e9fc(%rip), %rcx # 0x30f38 addq $0x10, %rcx movq %rcx, -0x58(%r14) addq %rax, %rdi addq $0x40, %rdi callq 0x77b0 movq %r14, %rdi callq 0x7170 movl $0x168, %esi # imm = 0x168 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x906c
_ZTv0_n24_N5nglog10NullStreamD0Ev: push r14 push rbx push rax mov rax, [rdi] mov rax, [rax-18h] lea rbx, [rdi+rax] lea rcx, _ZTCN5nglog10NullStreamE0_NS_10LogMessage9LogStreamE; `construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream lea rdx, [rcx+18h] lea r14, [rdi+rax] add r14, 60h ; '`' mov [r14-60h], rdx add rcx, 40h ; '@' mov [r14], rcx mov rcx, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr add rcx, 10h mov [r14-58h], rcx add rdi, rax add rdi, 40h ; '@'; this call __ZNSt6localeD1Ev; std::locale::~locale() mov rdi, r14; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov esi, 168h; unsigned __int64 mov rdi, rbx; void * add rsp, 8 pop rbx pop r14 jmp _ZdlPvm; operator delete(void *,ulong)
void `virtual thunk to'nglog::NullStream::~NullStream(nglog::NullStream *this) { _QWORD *v1; // rbx v1 = (_QWORD *)((char *)this + *(_QWORD *)(*(_QWORD *)this - 24LL)); *v1 = (char *)&`construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream + 24; v1[12] = (char *)&`construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream + 64; v1[1] = (char *)&`vtable for'std::streambuf + 16; std::locale::~locale((std::locale *)(v1 + 8)); std::ios_base::~ios_base((std::ios_base *)(v1 + 12)); operator delete(v1); }
~NullStream: PUSH R14 PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + -0x18] LEA RBX,[RDI + RAX*0x1] LEA RCX,[0x130898] LEA RDX,[RCX + 0x18] LEA R14,[RDI + RAX*0x1] ADD R14,0x60 MOV qword ptr [R14 + -0x60],RDX ADD RCX,0x40 MOV qword ptr [R14],RCX MOV RCX,qword ptr [0x00130f38] ADD RCX,0x10 MOV qword ptr [R14 + -0x58],RCX ADD RDI,RAX ADD RDI,0x40 CALL 0x001077b0 MOV RDI,R14 CALL 0x00107170 MOV ESI,0x168 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x0010906c
/* virtual thunk to nglog::NullStream::~NullStream() */ void __thiscall nglog::NullStream::~NullStream(NullStream *this) { NullStream *pNVar1; long lVar2; lVar2 = *(long *)(*(long *)this + -0x18); pNVar1 = this + lVar2; *(int8 *)pNVar1 = 0x1308b0; *(int8 *)(pNVar1 + 0x60) = 0x1308d8; *(int **)(pNVar1 + 8) = PTR_vtable_00130f38 + 0x10; std::locale::~locale((locale *)(this + lVar2 + 0x40)); std::ios_base::~ios_base((ios_base *)(pNVar1 + 0x60)); operator_delete(this + lVar2,0x168); return; }
31,551
virtual thunk to nglog::NullStream::~NullStream()
ng-log[P]ng-log/src/ng-log/logging.h
class NGLOG_EXPORT NullStream : public LogMessage::LogStream { public: // Initialize the LogStream so the messages can be written somewhere // (they'll never be actually displayed). This will be needed if a // NullStream& is implicitly converted to LogStream&, in which case // the overloaded NullStream::operator<< will not be invoked. NullStream(); NullStream(const char* /*file*/, int /*line*/, const internal::CheckOpString& /*result*/); NullStream& stream(); private: // A very short buffer for messages (which we discard anyway). This // will be needed if NullStream& converted to LogStream& (e.g. as a // result of a conditional expression). char message_buffer_[3]; }
O3
c
virtual thunk to nglog::NullStream::~NullStream(): pushq %r14 pushq %rbx pushq %rax movq (%rdi), %rax movq -0x18(%rax), %rax leaq (%rdi,%rax), %rbx leaq 0x1e6cc(%rip), %rcx # 0x308d8 leaq 0x18(%rcx), %rdx leaq (%rdi,%rax), %r14 addq $0x60, %r14 movq %rdx, -0x60(%r14) addq $0x40, %rcx movq %rcx, (%r14) movq 0x1ed0e(%rip), %rcx # 0x30f38 addq $0x10, %rcx movq %rcx, -0x58(%r14) addq %rax, %rdi addq $0x40, %rdi callq 0x77b0 movq %r14, %rdi callq 0x7170 movl $0x168, %esi # imm = 0x168 movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x8efc
_ZTv0_n24_N5nglog10NullStreamD0Ev: push r14 push rbx push rax mov rax, [rdi] mov rax, [rax-18h] lea rbx, [rdi+rax] lea rcx, _ZTCN5nglog10NullStreamE0_NS_10LogMessage9LogStreamE; `construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream lea rdx, [rcx+18h] lea r14, [rdi+rax] add r14, 60h ; '`' mov [r14-60h], rdx add rcx, 40h ; '@' mov [r14], rcx mov rcx, cs:_ZTVSt15basic_streambufIcSt11char_traitsIcEE_ptr add rcx, 10h mov [r14-58h], rcx add rdi, rax add rdi, 40h ; '@'; this call __ZNSt6localeD1Ev; std::locale::~locale() mov rdi, r14; this call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base() mov esi, 168h; unsigned __int64 mov rdi, rbx; void * add rsp, 8 pop rbx pop r14 jmp _ZdlPvm; operator delete(void *,ulong)
void `virtual thunk to'nglog::NullStream::~NullStream(nglog::NullStream *this) { _QWORD *v1; // rbx v1 = (_QWORD *)((char *)this + *(_QWORD *)(*(_QWORD *)this - 24LL)); *v1 = (char *)&`construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream + 24; v1[12] = (char *)&`construction vtable for'nglog::LogMessage::LogStream-in-nglog::NullStream + 64; v1[1] = (char *)&`vtable for'std::streambuf + 16; std::locale::~locale((std::locale *)(v1 + 8)); std::ios_base::~ios_base((std::ios_base *)(v1 + 12)); operator delete(v1); }
~NullStream: PUSH R14 PUSH RBX PUSH RAX MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + -0x18] LEA RBX,[RDI + RAX*0x1] LEA RCX,[0x1308d8] LEA RDX,[RCX + 0x18] LEA R14,[RDI + RAX*0x1] ADD R14,0x60 MOV qword ptr [R14 + -0x60],RDX ADD RCX,0x40 MOV qword ptr [R14],RCX MOV RCX,qword ptr [0x00130f38] ADD RCX,0x10 MOV qword ptr [R14 + -0x58],RCX ADD RDI,RAX ADD RDI,0x40 CALL 0x001077b0 MOV RDI,R14 CALL 0x00107170 MOV ESI,0x168 MOV RDI,RBX ADD RSP,0x8 POP RBX POP R14 JMP 0x00108efc
/* virtual thunk to nglog::NullStream::~NullStream() */ void __thiscall nglog::NullStream::~NullStream(NullStream *this) { NullStream *pNVar1; long lVar2; lVar2 = *(long *)(*(long *)this + -0x18); pNVar1 = this + lVar2; *(int8 *)pNVar1 = 0x1308f0; *(int8 *)(pNVar1 + 0x60) = 0x130918; *(int **)(pNVar1 + 8) = PTR_vtable_00130f38 + 0x10; std::locale::~locale((locale *)(this + lVar2 + 0x40)); std::ios_base::~ios_base((ios_base *)(pNVar1 + 0x60)); operator_delete(this + lVar2,0x168); return; }
31,552
ma_read_dynamic_record
eloqsql/storage/maria/ma_dynrec.c
int _ma_read_dynamic_record(MARIA_HA *info, uchar *buf, MARIA_RECORD_POS filepos) { int block_of_record; uint b_type; MARIA_BLOCK_INFO block_info; File file; uchar *UNINIT_VAR(to); uint UNINIT_VAR(left_length); MARIA_SHARE *share= info->s; myf flag= MY_WME | (share->temporary ? MY_THREAD_SPECIFIC : 0); DBUG_ENTER("_ma_read_dynamic_record"); if (filepos == HA_OFFSET_ERROR) goto err; file= info->dfile.file; block_of_record= 0; /* First block of record is numbered as zero. */ block_info.second_read= 0; do { /* A corrupted table can have wrong pointers. (Bug# 19835) */ if (filepos == HA_OFFSET_ERROR) goto panic; if (info->opt_flag & WRITE_CACHE_USED && (info->rec_cache.pos_in_file < filepos + MARIA_BLOCK_INFO_HEADER_LENGTH) && flush_io_cache(&info->rec_cache)) goto err; info->rec_cache.seek_not_done=1; if ((b_type= _ma_get_block_info(info, &block_info, file, filepos)) & (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR)) { if (b_type & (BLOCK_SYNC_ERROR | BLOCK_DELETED)) my_errno=HA_ERR_RECORD_DELETED; goto err; } if (block_of_record++ == 0) /* First block */ { info->cur_row.total_length= block_info.rec_len; if (block_info.rec_len > (uint) share->base.max_pack_length) goto panic; if (share->base.blobs) { if (_ma_alloc_buffer(&info->rec_buff, &info->rec_buff_size, block_info.rec_len + share->base.extra_rec_buff_size, flag)) goto err; } to= info->rec_buff; left_length=block_info.rec_len; } if (left_length < block_info.data_len || ! block_info.data_len) goto panic; /* Wrong linked record */ /* copy information that is already read */ { uint offset= (uint) (block_info.filepos - filepos); uint prefetch_len= (sizeof(block_info.header) - offset); filepos+= sizeof(block_info.header); if (prefetch_len > block_info.data_len) prefetch_len= block_info.data_len; if (prefetch_len) { memcpy(to, block_info.header + offset, prefetch_len); block_info.data_len-= prefetch_len; left_length-= prefetch_len; to+= prefetch_len; } } /* read rest of record from file */ if (block_info.data_len) { if (info->opt_flag & WRITE_CACHE_USED && info->rec_cache.pos_in_file < filepos + block_info.data_len && flush_io_cache(&info->rec_cache)) goto err; /* What a pity that this method is not called 'file_pread' and that there is no equivalent without seeking. We are at the right position already. :( */ if (share->file_read(info, to, block_info.data_len, filepos, MYF(MY_NABP))) goto panic; left_length-=block_info.data_len; to+=block_info.data_len; } filepos= block_info.next_filepos; } while (left_length); info->update|= HA_STATE_AKTIV; /* We have a aktive record */ fast_ma_writeinfo(info); DBUG_RETURN(_ma_rec_unpack(info,buf,info->rec_buff,block_info.rec_len) != MY_FILE_ERROR ? 0 : my_errno); err: fast_ma_writeinfo(info); DBUG_RETURN(my_errno); panic: _ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD); goto err; }
O3
c
ma_read_dynamic_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %rsi, -0xb8(%rbp) movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %r15 cmpb $0x0, 0x7d9(%r15) setne %al cmpq $-0x1, %rdx je 0x3f95e movq %rdx, %r12 xorl %ecx, %ecx movb %al, %cl shll $0x10, %ecx orq $0x10, %rcx movq %rcx, -0xc8(%rbp) movl 0x480(%rbx), %eax movl %eax, -0xa4(%rbp) leaq -0x88(%rbp), %rax movl $0x0, 0x50(%rax) leaq 0x4b8(%rbx), %rax movq %rax, -0x98(%rbp) leaq 0x3a0(%rbx), %rax movq %rax, -0xb0(%rbp) leaq 0x460(%rbx), %rax movq %rax, -0xc0(%rbp) xorl %r14d, %r14d movq %rbx, -0xd8(%rbp) movq %r15, -0xd0(%rbp) cmpq $-0x1, %r12 je 0x3f951 testb $0x10, 0x61c(%rbx) je 0x3f76d leaq 0x14(%r12), %rax movq -0x98(%rbp), %rcx cmpq %rax, (%rcx) jae 0x3f76d movq -0x98(%rbp), %rdi movl $0x1, %esi callq 0x9648d testl %eax, %eax jne 0x3f95e movl $0x1, 0x598(%rbx) movq %rbx, %rdi leaq -0x88(%rbp), %rsi movl -0xa4(%rbp), %edx movq %r12, %rcx callq 0x3e93c cmpl $0x4, %eax jae 0x3f99c subl $0x1, %r14d jae 0x3f807 movq -0x70(%rbp), %r13 movq %r13, 0x110(%rbx) movl 0x3b0(%r15), %eax cmpq %rax, %r13 ja 0x3f951 cmpl $0x0, 0x3f0(%r15) je 0x3f7f6 movl 0x424(%r15), %eax addq %rax, %r13 movq -0xb0(%rbp), %rdi movq -0xc0(%rbp), %rsi movq %r13, %rdx movq -0xc8(%rbp), %rcx callq 0x55dd7 testb %al, %al jne 0x3f95e movq -0x70(%rbp), %r13 movq -0xb0(%rbp), %rax movq (%rax), %rax movq %rax, -0xa0(%rbp) movl %r13d, %eax movq -0x68(%rbp), %rdx leaq -0x1(%rdx), %rcx cmpq %rax, %rcx jae 0x3f951 movl %r14d, -0x8c(%rbp) movq -0x50(%rbp), %rax subq %r12, %rax movl $0x14, %ecx subl %eax, %ecx cmpq %rcx, %rdx movl %edx, %r14d cmovael %ecx, %r14d testl %r14d, %r14d je 0x3f892 movl %eax, %eax leaq (%rax,%rbp), %rsi addq $-0x88, %rsi movl %r14d, %r15d movq -0xa0(%rbp), %rbx movq %rbx, %rdi movq %r15, %rdx callq 0x29080 movq -0x68(%rbp), %rdx subl %r14d, %r13d addq %r15, %rbx movq %rbx, -0xa0(%rbp) subq %r15, %rdx movq -0xd0(%rbp), %r15 movq -0xd8(%rbp), %rbx movq %rdx, -0x68(%rbp) movl -0x8c(%rbp), %r14d jne 0x3f899 jmp 0x3f900 movl -0x8c(%rbp), %r14d addq $0x14, %r12 testb $0x10, 0x61c(%rbx) je 0x3f8d3 leaq (%rdx,%r12), %rax movq -0x98(%rbp), %rcx cmpq %rax, (%rcx) jae 0x3f8d3 movq -0x98(%rbp), %rdi movl $0x1, %esi callq 0x9648d testl %eax, %eax jne 0x3f95e movq -0x68(%rbp), %rdx movl $0x4, %r8d movq %rbx, %rdi movq -0xa0(%rbp), %rsi movq %r12, %rcx callq *0x6e0(%r15) testq %rax, %rax jne 0x3f951 movq -0x68(%rbp), %rax subl %eax, %r13d addq %rax, -0xa0(%rbp) movq -0x48(%rbp), %r12 testl %r13d, %r13d jne 0x3f730 orb $0x2, 0x624(%rbx) movq (%rbx), %rax cmpl $0x0, 0x7b8(%rax) jne 0x3f92a movq %rbx, %rdi xorl %esi, %esi callq 0x38d12 movq 0x3a0(%rbx), %rdx movq -0x70(%rbp), %rcx movq %rbx, %rdi movq -0xb8(%rbp), %rsi callq 0x3f237 movq %rax, %rcx xorl %eax, %eax cmpq $-0x1, %rcx jne 0x3f97b jmp 0x3f974 movq %rbx, %rdi movl $0x7f, %esi callq 0x37978 movq (%rbx), %rax cmpl $0x0, 0x7b8(%rax) jne 0x3f974 movq %rbx, %rdi xorl %esi, %esi callq 0x38d12 callq 0xa2a4e movl (%rax), %eax movq %fs:0x28, %rcx cmpq -0x30(%rbp), %rcx jne 0x3f9ad addq $0xb8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq testb $0x14, %al je 0x3f95e callq 0xa2a4e movl $0x86, (%rax) jmp 0x3f95e callq 0x29270
_ma_read_dynamic_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0B8h mov [rbp+var_B8], rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax mov r15, [rdi] cmp byte ptr [r15+7D9h], 0 setnz al cmp rdx, 0FFFFFFFFFFFFFFFFh jz loc_3F95E mov r12, rdx xor ecx, ecx mov cl, al shl ecx, 10h or rcx, 10h mov [rbp+var_C8], rcx mov eax, [rbx+480h] mov [rbp+var_A4], eax lea rax, [rbp+var_88] mov dword ptr [rax+50h], 0 lea rax, [rbx+4B8h] mov [rbp+var_98], rax lea rax, [rbx+3A0h] mov [rbp+var_B0], rax lea rax, [rbx+460h] mov [rbp+var_C0], rax xor r14d, r14d mov [rbp+var_D8], rbx mov [rbp+var_D0], r15 loc_3F730: cmp r12, 0FFFFFFFFFFFFFFFFh jz loc_3F951 test byte ptr [rbx+61Ch], 10h jz short loc_3F76D lea rax, [r12+14h] mov rcx, [rbp+var_98] cmp [rcx], rax jnb short loc_3F76D mov rdi, [rbp+var_98] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_3F95E loc_3F76D: mov dword ptr [rbx+598h], 1 mov rdi, rbx lea rsi, [rbp+var_88] mov edx, [rbp+var_A4] mov rcx, r12 call _ma_get_block_info cmp eax, 4 jnb loc_3F99C sub r14d, 1 jnb short loc_3F807 mov r13, [rbp+var_70] mov [rbx+110h], r13 mov eax, [r15+3B0h] cmp r13, rax ja loc_3F951 cmp dword ptr [r15+3F0h], 0 jz short loc_3F7F6 mov eax, [r15+424h] add r13, rax mov rdi, [rbp+var_B0] mov rsi, [rbp+var_C0] mov rdx, r13 mov rcx, [rbp+var_C8] call _ma_alloc_buffer test al, al jnz loc_3F95E mov r13, [rbp+var_70] loc_3F7F6: mov rax, [rbp+var_B0] mov rax, [rax] mov [rbp+var_A0], rax loc_3F807: mov eax, r13d mov rdx, [rbp+var_68] lea rcx, [rdx-1] cmp rcx, rax jnb loc_3F951 mov [rbp+var_8C], r14d mov rax, [rbp+var_50] sub rax, r12 mov ecx, 14h sub ecx, eax cmp rdx, rcx mov r14d, edx cmovnb r14d, ecx test r14d, r14d jz short loc_3F892 mov eax, eax lea rsi, [rax+rbp] add rsi, 0FFFFFFFFFFFFFF78h mov r15d, r14d mov rbx, [rbp+var_A0] mov rdi, rbx mov rdx, r15 call _memcpy mov rdx, [rbp+var_68] sub r13d, r14d add rbx, r15 mov [rbp+var_A0], rbx sub rdx, r15 mov r15, [rbp+var_D0] mov rbx, [rbp+var_D8] mov [rbp+var_68], rdx mov r14d, [rbp+var_8C] jnz short loc_3F899 jmp short loc_3F900 loc_3F892: mov r14d, [rbp+var_8C] loc_3F899: add r12, 14h test byte ptr [rbx+61Ch], 10h jz short loc_3F8D3 lea rax, [rdx+r12] mov rcx, [rbp+var_98] cmp [rcx], rax jnb short loc_3F8D3 mov rdi, [rbp+var_98] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_3F95E mov rdx, [rbp+var_68] loc_3F8D3: mov r8d, 4 mov rdi, rbx mov rsi, [rbp+var_A0] mov rcx, r12 call qword ptr [r15+6E0h] test rax, rax jnz short loc_3F951 mov rax, [rbp+var_68] sub r13d, eax add [rbp+var_A0], rax loc_3F900: mov r12, [rbp+var_48] test r13d, r13d jnz loc_3F730 or byte ptr [rbx+624h], 2 mov rax, [rbx] cmp dword ptr [rax+7B8h], 0 jnz short loc_3F92A mov rdi, rbx xor esi, esi call _ma_writeinfo loc_3F92A: mov rdx, [rbx+3A0h] mov rcx, [rbp+var_70] mov rdi, rbx mov rsi, [rbp+var_B8] call _ma_rec_unpack mov rcx, rax xor eax, eax cmp rcx, 0FFFFFFFFFFFFFFFFh jnz short loc_3F97B jmp short loc_3F974 loc_3F951: mov rdi, rbx mov esi, 7Fh call _ma_set_fatal_error loc_3F95E: mov rax, [rbx] cmp dword ptr [rax+7B8h], 0 jnz short loc_3F974 mov rdi, rbx xor esi, esi call _ma_writeinfo loc_3F974: call _my_thread_var mov eax, [rax] loc_3F97B: mov rcx, fs:28h cmp rcx, [rbp+var_30] jnz short loc_3F9AD add rsp, 0B8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3F99C: test al, 14h jz short loc_3F95E call _my_thread_var mov dword ptr [rax], 86h jmp short loc_3F95E loc_3F9AD: call ___stack_chk_fail
long long ma_read_dynamic_record( _DWORD *a1, unsigned __int8 *a2, long long a3, long long a4, unsigned long long a5, int a6) { unsigned long long v6; // r13 long long v7; // rbx long long v8; // r15 long long v9; // r12 int v10; // r14d unsigned int block_info; // eax bool v12; // cf int v13; // r14d unsigned int v14; // r14d bool v15; // zf long long v16; // r12 long long result; // rax _DWORD *v18; // [rsp+8h] [rbp-D8h] long long v19; // [rsp+10h] [rbp-D0h] long long v20; // [rsp+18h] [rbp-C8h] unsigned __int8 *v21; // [rsp+20h] [rbp-C0h] unsigned __int8 *v22; // [rsp+28h] [rbp-B8h] _QWORD *v23; // [rsp+30h] [rbp-B0h] unsigned int v24; // [rsp+3Ch] [rbp-A4h] long long v25; // [rsp+40h] [rbp-A0h] _QWORD *v26; // [rsp+48h] [rbp-98h] int v27; // [rsp+54h] [rbp-8Ch] unsigned __int8 v28[24]; // [rsp+58h] [rbp-88h] BYREF unsigned long long v29; // [rsp+70h] [rbp-70h] unsigned long long v30; // [rsp+78h] [rbp-68h] long long v31; // [rsp+90h] [rbp-50h] long long v32; // [rsp+98h] [rbp-48h] int v33; // [rsp+A8h] [rbp-38h] unsigned long long v34; // [rsp+B0h] [rbp-30h] v22 = a2; v7 = (long long)a1; v34 = __readfsqword(0x28u); v8 = *(_QWORD *)a1; if ( a3 != -1 ) { v9 = a3; a4 = ((unsigned __int8)(*(_BYTE *)(*(_QWORD *)a1 + 2009LL) != 0) << 16) | 0x10LL; v20 = a4; v24 = a1[288]; v33 = 0; v26 = a1 + 302; v23 = a1 + 232; v21 = (unsigned __int8 *)(a1 + 280); v10 = 0; v18 = a1; v19 = v8; while ( 1 ) { if ( v9 == -1 ) { LABEL_32: a1 = (_DWORD *)v7; a2 = (_BYTE *)(&dword_7C + 3); ma_set_fatal_error((_DWORD *)v7, 127LL, a3, a4, a5, a6); goto LABEL_33; } if ( (*(_BYTE *)(v7 + 1564) & 0x10) != 0 && *v26 < (unsigned long long)(v9 + 20) ) { a1 = v26; a2 = (_BYTE *)(&dword_0 + 1); if ( (unsigned int)my_b_flush_io_cache(v26, 1LL) ) goto LABEL_33; } *(_DWORD *)(v7 + 1432) = 1; a1 = (_DWORD *)v7; a2 = v28; block_info = ma_get_block_info(v7, v28, v24, v9, a5, a6); if ( block_info >= 4 ) { if ( (block_info & 0x14) != 0 ) *(_DWORD *)my_thread_var(v7, v28, a3, a4, a5) = 134; goto LABEL_33; } v12 = v10 == 0; v13 = v10 - 1; if ( v12 ) { v6 = v29; *(_QWORD *)(v7 + 272) = v29; if ( v6 > *(unsigned int *)(v8 + 944) ) goto LABEL_32; if ( *(_DWORD *)(v8 + 1008) ) { a1 = v23; a2 = v21; if ( (unsigned __int8)ma_alloc_buffer(v23, v21, *(unsigned int *)(v8 + 1060) + v6, v20) ) goto LABEL_33; LODWORD(v6) = v29; } v25 = *v23; } a3 = v30; a4 = v30 - 1; if ( v30 - 1 >= (unsigned int)v6 ) goto LABEL_32; v27 = v13; v14 = v30; if ( v30 >= (unsigned int)(20 - (v31 - v9)) ) v14 = 20 - (v31 - v9); if ( !v14 ) break; memcpy(v25, &v28[(unsigned int)(v31 - v9)], v14); LODWORD(v6) = v6 - v14; v25 += v14; a3 = v30 - v14; v15 = v30 == v14; v8 = v19; v7 = (long long)v18; v30 = a3; v10 = v27; if ( !v15 ) goto LABEL_21; LABEL_27: v9 = v32; if ( !(_DWORD)v6 ) { *(_BYTE *)(v7 + 1572) |= 2u; if ( !*(_DWORD *)(*(_QWORD *)v7 + 1976LL) ) ma_writeinfo((long long *)v7, 0LL, a3, a4, a5); a1 = (_DWORD *)v7; a2 = v22; a4 = ma_rec_unpack((_DWORD *)v7, v22, *(_QWORD *)(v7 + 928), v29, a5, a6); result = 0LL; if ( a4 != -1 ) return result; return *(unsigned int *)my_thread_var(a1, a2, a3, a4, a5); } } v10 = v27; LABEL_21: v16 = v9 + 20; if ( (*(_BYTE *)(v7 + 1564) & 0x10) != 0 && *v26 < (unsigned long long)(a3 + v16) ) { a1 = v26; a2 = (_BYTE *)(&dword_0 + 1); if ( (unsigned int)my_b_flush_io_cache(v26, 1LL) ) goto LABEL_33; a3 = v30; } if ( (*(long long ( **)(long long, long long, long long, long long, long long))(v8 + 1760))(v7, v25, a3, v16, 4LL) ) goto LABEL_32; LODWORD(v6) = v6 - v30; v25 += v30; goto LABEL_27; } LABEL_33: if ( !*(_DWORD *)(*(_QWORD *)v7 + 1976LL) ) { a1 = (_DWORD *)v7; a2 = 0LL; ma_writeinfo((long long *)v7, 0LL, a3, a4, a5); } return *(unsigned int *)my_thread_var(a1, a2, a3, a4, a5); }
_ma_read_dynamic_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xb8 MOV qword ptr [RBP + -0xb8],RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV R15,qword ptr [RDI] CMP byte ptr [R15 + 0x7d9],0x0 SETNZ AL CMP RDX,-0x1 JZ 0x0013f95e MOV R12,RDX XOR ECX,ECX MOV CL,AL SHL ECX,0x10 OR RCX,0x10 MOV qword ptr [RBP + -0xc8],RCX MOV EAX,dword ptr [RBX + 0x480] MOV dword ptr [RBP + -0xa4],EAX LEA RAX,[RBP + -0x88] MOV dword ptr [RAX + 0x50],0x0 LEA RAX,[RBX + 0x4b8] MOV qword ptr [RBP + -0x98],RAX LEA RAX,[RBX + 0x3a0] MOV qword ptr [RBP + -0xb0],RAX LEA RAX,[RBX + 0x460] MOV qword ptr [RBP + -0xc0],RAX XOR R14D,R14D MOV qword ptr [RBP + -0xd8],RBX MOV qword ptr [RBP + -0xd0],R15 LAB_0013f730: CMP R12,-0x1 JZ 0x0013f951 TEST byte ptr [RBX + 0x61c],0x10 JZ 0x0013f76d LEA RAX,[R12 + 0x14] MOV RCX,qword ptr [RBP + -0x98] CMP qword ptr [RCX],RAX JNC 0x0013f76d MOV RDI,qword ptr [RBP + -0x98] MOV ESI,0x1 CALL 0x0019648d TEST EAX,EAX JNZ 0x0013f95e LAB_0013f76d: MOV dword ptr [RBX + 0x598],0x1 MOV RDI,RBX LEA RSI,[RBP + -0x88] MOV EDX,dword ptr [RBP + -0xa4] MOV RCX,R12 CALL 0x0013e93c CMP EAX,0x4 JNC 0x0013f99c SUB R14D,0x1 JNC 0x0013f807 MOV R13,qword ptr [RBP + -0x70] MOV qword ptr [RBX + 0x110],R13 MOV EAX,dword ptr [R15 + 0x3b0] CMP R13,RAX JA 0x0013f951 CMP dword ptr [R15 + 0x3f0],0x0 JZ 0x0013f7f6 MOV EAX,dword ptr [R15 + 0x424] ADD R13,RAX MOV RDI,qword ptr [RBP + -0xb0] MOV RSI,qword ptr [RBP + -0xc0] MOV RDX,R13 MOV RCX,qword ptr [RBP + -0xc8] CALL 0x00155dd7 TEST AL,AL JNZ 0x0013f95e MOV R13,qword ptr [RBP + -0x70] LAB_0013f7f6: MOV RAX,qword ptr [RBP + -0xb0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0xa0],RAX LAB_0013f807: MOV EAX,R13D MOV RDX,qword ptr [RBP + -0x68] LEA RCX,[RDX + -0x1] CMP RCX,RAX JNC 0x0013f951 MOV dword ptr [RBP + -0x8c],R14D MOV RAX,qword ptr [RBP + -0x50] SUB RAX,R12 MOV ECX,0x14 SUB ECX,EAX CMP RDX,RCX MOV R14D,EDX CMOVNC R14D,ECX TEST R14D,R14D JZ 0x0013f892 MOV EAX,EAX LEA RSI,[RAX + RBP*0x1] ADD RSI,-0x88 MOV R15D,R14D MOV RBX,qword ptr [RBP + -0xa0] MOV RDI,RBX MOV RDX,R15 CALL 0x00129080 MOV RDX,qword ptr [RBP + -0x68] SUB R13D,R14D ADD RBX,R15 MOV qword ptr [RBP + -0xa0],RBX SUB RDX,R15 MOV R15,qword ptr [RBP + -0xd0] MOV RBX,qword ptr [RBP + -0xd8] MOV qword ptr [RBP + -0x68],RDX MOV R14D,dword ptr [RBP + -0x8c] JNZ 0x0013f899 JMP 0x0013f900 LAB_0013f892: MOV R14D,dword ptr [RBP + -0x8c] LAB_0013f899: ADD R12,0x14 TEST byte ptr [RBX + 0x61c],0x10 JZ 0x0013f8d3 LEA RAX,[RDX + R12*0x1] MOV RCX,qword ptr [RBP + -0x98] CMP qword ptr [RCX],RAX JNC 0x0013f8d3 MOV RDI,qword ptr [RBP + -0x98] MOV ESI,0x1 CALL 0x0019648d TEST EAX,EAX JNZ 0x0013f95e MOV RDX,qword ptr [RBP + -0x68] LAB_0013f8d3: MOV R8D,0x4 MOV RDI,RBX MOV RSI,qword ptr [RBP + -0xa0] MOV RCX,R12 CALL qword ptr [R15 + 0x6e0] TEST RAX,RAX JNZ 0x0013f951 MOV RAX,qword ptr [RBP + -0x68] SUB R13D,EAX ADD qword ptr [RBP + -0xa0],RAX LAB_0013f900: MOV R12,qword ptr [RBP + -0x48] TEST R13D,R13D JNZ 0x0013f730 OR byte ptr [RBX + 0x624],0x2 MOV RAX,qword ptr [RBX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x0013f92a MOV RDI,RBX XOR ESI,ESI CALL 0x00138d12 LAB_0013f92a: MOV RDX,qword ptr [RBX + 0x3a0] MOV RCX,qword ptr [RBP + -0x70] MOV RDI,RBX MOV RSI,qword ptr [RBP + -0xb8] CALL 0x0013f237 MOV RCX,RAX XOR EAX,EAX CMP RCX,-0x1 JNZ 0x0013f97b JMP 0x0013f974 LAB_0013f951: MOV RDI,RBX MOV ESI,0x7f CALL 0x00137978 LAB_0013f95e: MOV RAX,qword ptr [RBX] CMP dword ptr [RAX + 0x7b8],0x0 JNZ 0x0013f974 MOV RDI,RBX XOR ESI,ESI CALL 0x00138d12 LAB_0013f974: CALL 0x001a2a4e MOV EAX,dword ptr [RAX] LAB_0013f97b: MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x30] JNZ 0x0013f9ad ADD RSP,0xb8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013f99c: TEST AL,0x14 JZ 0x0013f95e CALL 0x001a2a4e MOV dword ptr [RAX],0x86 JMP 0x0013f95e LAB_0013f9ad: CALL 0x00129270
int4 _ma_read_dynamic_record(long *param_1,int8 param_2,long param_3) { ulong *puVar1; char cVar2; long lVar3; char cVar4; int iVar5; uint uVar6; uint uVar7; int4 uVar8; long lVar9; long lVar10; int4 *puVar11; uint uVar12; ulong unaff_R13; int iVar13; uint uVar14; ulong __n; long in_FS_OFFSET; bool bVar15; void *local_a8; int1 local_90 [24]; ulong local_78; ulong local_70; int8 local_58; long local_50; int4 local_40; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); lVar10 = *param_1; cVar2 = *(char *)(lVar10 + 0x7d9); if (param_3 == -1) { LAB_0013f95e: if (*(int *)(*param_1 + 0x7b8) == 0) { _ma_writeinfo(param_1,0); } } else { lVar3 = param_1[0x90]; local_40 = 0; puVar1 = (ulong *)(param_1 + 0x97); iVar13 = 0; do { if (param_3 == -1) { LAB_0013f951: _ma_set_fatal_error(param_1,0x7f); goto LAB_0013f95e; } if ((((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) && (*puVar1 < param_3 + 0x14U)) && (iVar5 = my_b_flush_io_cache(puVar1,1), iVar5 != 0)) goto LAB_0013f95e; *(int4 *)(param_1 + 0xb3) = 1; uVar6 = _ma_get_block_info(param_1,local_90,(int)lVar3,param_3); if (3 < uVar6) { if ((uVar6 & 0x14) != 0) { puVar11 = (int4 *)_my_thread_var(); *puVar11 = 0x86; } goto LAB_0013f95e; } bVar15 = iVar13 == 0; iVar13 = iVar13 + -1; if (bVar15) { param_1[0x22] = local_78; if (*(uint *)(lVar10 + 0x3b0) < local_78) goto LAB_0013f951; if ((*(int *)(lVar10 + 0x3f0) != 0) && (cVar4 = _ma_alloc_buffer(param_1 + 0x74,param_1 + 0x8c, local_78 + *(uint *)(lVar10 + 0x424), (ulong)(cVar2 != '\0') << 0x10 | 0x10), cVar4 != '\0')) goto LAB_0013f95e; local_a8 = (void *)param_1[0x74]; unaff_R13 = local_78; } uVar6 = (uint)unaff_R13; if ((unaff_R13 & 0xffffffff) <= local_70 - 1) goto LAB_0013f951; uVar7 = (int)local_58 - (int)param_3; uVar12 = 0x14 - uVar7; uVar14 = (uint)local_70; if (uVar12 <= local_70) { uVar14 = uVar12; } if (uVar14 == 0) { LAB_0013f899: if ((((*(byte *)((long)param_1 + 0x61c) & 0x10) != 0) && (*puVar1 < local_70 + param_3 + 0x14)) && (iVar5 = my_b_flush_io_cache(puVar1,1), iVar5 != 0)) goto LAB_0013f95e; lVar9 = (**(code **)(lVar10 + 0x6e0))(param_1,local_a8,local_70,param_3 + 0x14,4); if (lVar9 != 0) goto LAB_0013f951; uVar6 = uVar6 - (int)local_70; local_a8 = (void *)((long)local_a8 + local_70); } else { __n = (ulong)uVar14; memcpy(local_a8,local_90 + uVar7,__n); uVar6 = uVar6 - uVar14; local_a8 = (void *)((long)local_a8 + __n); local_70 = local_70 - __n; if (local_70 != 0) goto LAB_0013f899; } unaff_R13 = (ulong)uVar6; param_3 = local_50; } while (uVar6 != 0); *(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) | 2; if (*(int *)(*param_1 + 0x7b8) == 0) { _ma_writeinfo(param_1,0); } lVar10 = _ma_rec_unpack(param_1,param_2,param_1[0x74],local_78); uVar8 = 0; if (lVar10 != -1) goto LAB_0013f97b; } puVar11 = (int4 *)_my_thread_var(); uVar8 = *puVar11; LAB_0013f97b: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar8; }
31,553
nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
string LogSink::ToString(LogSeverity severity, const char* file, int line, const LogMessageTime& time, const char* message, size_t message_len) { ostringstream stream; stream.fill('0'); stream << LogSeverityNames[severity][0]; if (FLAGS_log_year_in_prefix) { stream << setw(4) << 1900 + time.year(); } stream << setw(2) << 1 + time.month() << setw(2) << time.day() << ' ' << setw(2) << time.hour() << ':' << setw(2) << time.min() << ':' << setw(2) << time.sec() << '.' << setw(6) << time.usec() << ' ' << setfill(' ') << setw(5) << std::this_thread::get_id() << setfill('0') << ' ' << file << ':' << line << "] "; // A call to `write' is enclosed in parenthneses to prevent possible macro // expansion. On Windows, `write' could be a macro defined for portability. (stream.write)(message, static_cast<std::streamsize>(message_len)); return stream.str(); }
O0
cpp
nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x320, %rsp # imm = 0x320 movq %rdi, -0x1f8(%rbp) movq %rdi, %rax movq %rax, -0x1f0(%rbp) movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq -0x1a8(%rbp), %rdi callq 0x9a10 movq -0x1a8(%rbp), %rax movq -0x18(%rax), %rax leaq -0x1a8(%rbp,%rax), %rdi movl $0x30, %esi callq 0x97f0 jmp 0xfda1 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x5f943(%rip), %rax # 0x6f6f0 movq (%rax,%rcx,8), %rax movsbl (%rax), %esi leaq -0x1a8(%rbp), %rdi callq 0x98a0 jmp 0xfdc2 leaq 0x60e0c(%rip), %rax # 0x70bd5 testb $0x1, (%rax) je 0xfe4b movl $0x4, %edi callq 0x174a0 movl %eax, -0x1fc(%rbp) jmp 0xfde0 movl -0x1fc(%rbp), %eax movl %eax, -0x1b8(%rbp) movl -0x1b8(%rbp), %esi leaq -0x1a8(%rbp), %rdi callq 0x9880 movq %rax, -0x208(%rbp) jmp 0xfe07 movq -0x28(%rbp), %rdi callq 0x174c0 movq -0x208(%rbp), %rdi movl %eax, %esi addl $0x76c, %esi # imm = 0x76C callq 0x9cd0 jmp 0xfe26 jmp 0xfe4b movq %rax, %rcx movl %edx, %eax movq %rcx, -0x1b0(%rbp) movl %eax, -0x1b4(%rbp) leaq -0x1a8(%rbp), %rdi callq 0x9160 jmp 0x1027c movl $0x2, %edi callq 0x174a0 movl %eax, -0x20c(%rbp) jmp 0xfe5d movl -0x20c(%rbp), %eax movl %eax, -0x1bc(%rbp) movl -0x1bc(%rbp), %esi leaq -0x1a8(%rbp), %rdi callq 0x9880 movq %rax, -0x218(%rbp) jmp 0xfe84 movq -0x28(%rbp), %rdi callq 0x17550 movq -0x218(%rbp), %rdi movl %eax, %esi incl %esi callq 0x9cd0 movq %rax, -0x220(%rbp) jmp 0xfea6 movl $0x2, %edi callq 0x174a0 movl %eax, -0x224(%rbp) jmp 0xfeb8 movq -0x220(%rbp), %rdi movl -0x224(%rbp), %eax movl %eax, -0x1c0(%rbp) movl -0x1c0(%rbp), %esi callq 0x9880 movq %rax, -0x230(%rbp) jmp 0xfedf movq -0x28(%rbp), %rdi callq 0x17570 movq -0x230(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x238(%rbp) jmp 0xfeff movq -0x238(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x240(%rbp) jmp 0xff19 movl $0x2, %edi callq 0x174a0 movl %eax, -0x244(%rbp) jmp 0xff2b movq -0x240(%rbp), %rdi movl -0x244(%rbp), %eax movl %eax, -0x1c4(%rbp) movl -0x1c4(%rbp), %esi callq 0x9880 movq %rax, -0x250(%rbp) jmp 0xff52 movq -0x28(%rbp), %rdi callq 0x17590 movq -0x250(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x258(%rbp) jmp 0xff72 movq -0x258(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x260(%rbp) jmp 0xff8c movl $0x2, %edi callq 0x174a0 movl %eax, -0x264(%rbp) jmp 0xff9e movq -0x260(%rbp), %rdi movl -0x264(%rbp), %eax movl %eax, -0x1c8(%rbp) movl -0x1c8(%rbp), %esi callq 0x9880 movq %rax, -0x270(%rbp) jmp 0xffc5 movq -0x28(%rbp), %rdi callq 0x175b0 movq -0x270(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x278(%rbp) jmp 0xffe5 movq -0x278(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x280(%rbp) jmp 0xffff movl $0x2, %edi callq 0x174a0 movl %eax, -0x284(%rbp) jmp 0x10011 movq -0x280(%rbp), %rdi movl -0x284(%rbp), %eax movl %eax, -0x1cc(%rbp) movl -0x1cc(%rbp), %esi callq 0x9880 movq %rax, -0x290(%rbp) jmp 0x10038 movq -0x28(%rbp), %rdi callq 0x175d0 movq -0x290(%rbp), %rdi movl %eax, %esi callq 0x9cd0 movq %rax, -0x298(%rbp) jmp 0x10058 movq -0x298(%rbp), %rdi movl $0x2e, %esi callq 0x98a0 movq %rax, -0x2a0(%rbp) jmp 0x10072 movl $0x6, %edi callq 0x174a0 movl %eax, -0x2a4(%rbp) jmp 0x10084 movq -0x2a0(%rbp), %rdi movl -0x2a4(%rbp), %eax movl %eax, -0x1d0(%rbp) movl -0x1d0(%rbp), %esi callq 0x9880 movq %rax, -0x2b0(%rbp) jmp 0x100ab movq -0x28(%rbp), %rdi callq 0x175e0 movq -0x2b0(%rbp), %rdi movq %rax, %rsi callq 0x9d60 movq %rax, -0x2b8(%rbp) jmp 0x100cc movq -0x2b8(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x2c0(%rbp) jmp 0x100e6 movl $0x20, %edi callq 0x17620 movb %al, -0x2c1(%rbp) jmp 0x100f8 movq -0x2c0(%rbp), %rdi movb -0x2c1(%rbp), %al movb %al, -0x1d1(%rbp) movzbl -0x1d1(%rbp), %esi callq 0x9ba0 movq %rax, -0x2d0(%rbp) jmp 0x10120 movl $0x5, %edi callq 0x174a0 movl %eax, -0x2d4(%rbp) jmp 0x10132 movq -0x2d0(%rbp), %rdi movl -0x2d4(%rbp), %eax movl %eax, -0x1d8(%rbp) movl -0x1d8(%rbp), %esi callq 0x9880 movq %rax, -0x2e0(%rbp) jmp 0x10159 callq 0x17470 movq -0x2e0(%rbp), %rdi movq %rax, -0x1e0(%rbp) movq -0x1e0(%rbp), %rsi callq 0x174e0 movq %rax, -0x2e8(%rbp) jmp 0x10181 movl $0x30, %edi callq 0x17620 movb %al, -0x2e9(%rbp) jmp 0x10193 movq -0x2e8(%rbp), %rdi movb -0x2e9(%rbp), %al movb %al, -0x1e1(%rbp) movzbl -0x1e1(%rbp), %esi callq 0x9ba0 movq %rax, -0x2f8(%rbp) jmp 0x101bb movq -0x2f8(%rbp), %rdi movl $0x20, %esi callq 0x98a0 movq %rax, -0x300(%rbp) jmp 0x101d5 movq -0x300(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x96f0 movq %rax, -0x308(%rbp) jmp 0x101ee movq -0x308(%rbp), %rdi movl $0x3a, %esi callq 0x98a0 movq %rax, -0x310(%rbp) jmp 0x10208 movq -0x310(%rbp), %rdi movl -0x1c(%rbp), %esi callq 0x9cd0 movq %rax, -0x318(%rbp) jmp 0x10220 movq -0x318(%rbp), %rdi leaq 0x3da25(%rip), %rsi # 0x4dc53 callq 0x96f0 jmp 0x10235 movq -0x30(%rbp), %rsi movq 0x10(%rbp), %rdx leaq -0x1a8(%rbp), %rdi callq 0x99d0 jmp 0x1024b movq -0x1f8(%rbp), %rdi leaq -0x1a8(%rbp), %rsi callq 0x9740 jmp 0x10260 leaq -0x1a8(%rbp), %rdi callq 0x9160 movq -0x1f0(%rbp), %rax addq $0x320, %rsp # imm = 0x320 popq %rbp retq movq -0x1b0(%rbp), %rdi callq 0x9d00 nopl (%rax,%rax)
_ZN5nglog7LogSink8ToStringB5cxx11ENS_11LogSeverityEPKciRKNS_14LogMessageTimeES3_m: push rbp mov rbp, rsp sub rsp, 320h mov [rbp+var_1F8], rdi mov rax, rdi mov [rbp+var_1F0], rax mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void) mov rax, [rbp+var_1A8] mov rax, [rax-18h] lea rdi, [rbp+rax+var_1A8] mov esi, 30h ; '0' call __ZNSt9basic_iosIcSt11char_traitsIcEE4fillEc; std::ios::fill(char) jmp short $+2 loc_FDA1: mov eax, [rbp+var_C] mov ecx, eax lea rax, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames mov rax, [rax+rcx*8] movsx esi, byte ptr [rax] lea rdi, [rbp+var_1A8] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) jmp short $+2 loc_FDC2: lea rax, _ZN3fLB24FLAGS_log_year_in_prefixE; fLB::FLAGS_log_year_in_prefix test byte ptr [rax], 1 jz short loc_FE4B mov edi, 4; int call _ZSt4setwi; std::setw(int) mov [rbp+var_1FC], eax jmp short $+2 loc_FDE0: mov eax, [rbp+var_1FC] mov [rbp+var_1B8], eax mov esi, [rbp+var_1B8] lea rdi, [rbp+var_1A8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_208], rax jmp short $+2 loc_FE07: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4yearEv; nglog::LogMessageTime::year(void) mov rdi, [rbp+var_208] mov esi, eax add esi, 76Ch call __ZNSolsEi; std::ostream::operator<<(int) jmp short $+2 loc_FE26: jmp short loc_FE4B mov rcx, rax mov eax, edx mov [rbp+var_1B0], rcx mov [rbp+var_1B4], eax lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() jmp loc_1027C loc_FE4B: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_20C], eax jmp short $+2 loc_FE5D: mov eax, [rbp+var_20C] mov [rbp+var_1BC], eax mov esi, [rbp+var_1BC] lea rdi, [rbp+var_1A8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_218], rax jmp short $+2 loc_FE84: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime5monthEv; nglog::LogMessageTime::month(void) mov rdi, [rbp+var_218] mov esi, eax inc esi call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_220], rax jmp short $+2 loc_FEA6: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_224], eax jmp short $+2 loc_FEB8: mov rdi, [rbp+var_220] mov eax, [rbp+var_224] mov [rbp+var_1C0], eax mov esi, [rbp+var_1C0] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_230], rax jmp short $+2 loc_FEDF: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3dayEv; nglog::LogMessageTime::day(void) mov rdi, [rbp+var_230] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_238], rax jmp short $+2 loc_FEFF: mov rdi, [rbp+var_238] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_240], rax jmp short $+2 loc_FF19: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_244], eax jmp short $+2 loc_FF2B: mov rdi, [rbp+var_240] mov eax, [rbp+var_244] mov [rbp+var_1C4], eax mov esi, [rbp+var_1C4] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_250], rax jmp short $+2 loc_FF52: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4hourEv; nglog::LogMessageTime::hour(void) mov rdi, [rbp+var_250] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_258], rax jmp short $+2 loc_FF72: mov rdi, [rbp+var_258] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_260], rax jmp short $+2 loc_FF8C: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_264], eax jmp short $+2 loc_FF9E: mov rdi, [rbp+var_260] mov eax, [rbp+var_264] mov [rbp+var_1C8], eax mov esi, [rbp+var_1C8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_270], rax jmp short $+2 loc_FFC5: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3minEv; nglog::LogMessageTime::min(void) mov rdi, [rbp+var_270] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_278], rax jmp short $+2 loc_FFE5: mov rdi, [rbp+var_278] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_280], rax jmp short $+2 loc_FFFF: mov edi, 2; int call _ZSt4setwi; std::setw(int) mov [rbp+var_284], eax jmp short $+2 loc_10011: mov rdi, [rbp+var_280] mov eax, [rbp+var_284] mov [rbp+var_1CC], eax mov esi, [rbp+var_1CC] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_290], rax jmp short $+2 loc_10038: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime3secEv; nglog::LogMessageTime::sec(void) mov rdi, [rbp+var_290] mov esi, eax call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_298], rax jmp short $+2 loc_10058: mov rdi, [rbp+var_298] mov esi, 2Eh ; '.' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_2A0], rax jmp short $+2 loc_10072: mov edi, 6; int call _ZSt4setwi; std::setw(int) mov [rbp+var_2A4], eax jmp short $+2 loc_10084: mov rdi, [rbp+var_2A0] mov eax, [rbp+var_2A4] mov [rbp+var_1D0], eax mov esi, [rbp+var_1D0] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_2B0], rax jmp short $+2 loc_100AB: mov rdi, [rbp+var_28]; this call _ZNK5nglog14LogMessageTime4usecEv; nglog::LogMessageTime::usec(void) mov rdi, [rbp+var_2B0] mov rsi, rax call __ZNSolsEl; std::ostream::operator<<(long) mov [rbp+var_2B8], rax jmp short $+2 loc_100CC: mov rdi, [rbp+var_2B8] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_2C0], rax jmp short $+2 loc_100E6: mov edi, 20h ; ' ' call _ZSt7setfillIcESt8_SetfillIT_ES1_; std::setfill<char>(char) mov [rbp+var_2C1], al jmp short $+2 loc_100F8: mov rdi, [rbp+var_2C0] mov al, [rbp+var_2C1] mov [rbp+var_1D1], al movzx esi, [rbp+var_1D1] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St8_SetfillIS3_E; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setfill<char>) mov [rbp+var_2D0], rax jmp short $+2 loc_10120: mov edi, 5; int call _ZSt4setwi; std::setw(int) mov [rbp+var_2D4], eax jmp short $+2 loc_10132: mov rdi, [rbp+var_2D0]; this mov eax, [rbp+var_2D4] mov [rbp+var_1D8], eax mov esi, [rbp+var_1D8] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St5_Setw; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setw) mov [rbp+var_2E0], rax jmp short $+2 loc_10159: call _ZNSt11this_thread6get_idEv; std::this_thread::get_id(void) mov rdi, [rbp+var_2E0] mov [rbp+var_1E0], rax mov rsi, [rbp+var_1E0] call _ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_NSt6thread2idE; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::thread::id) mov [rbp+var_2E8], rax jmp short $+2 loc_10181: mov edi, 30h ; '0' call _ZSt7setfillIcESt8_SetfillIT_ES1_; std::setfill<char>(char) mov [rbp+var_2E9], al jmp short $+2 loc_10193: mov rdi, [rbp+var_2E8] mov al, [rbp+var_2E9] mov [rbp+var_1E1], al movzx esi, [rbp+var_1E1] call __ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St8_SetfillIS3_E; std::operator<<<char,std::char_traits<char>>(std::ostream &,std::_Setfill<char>) mov [rbp+var_2F8], rax jmp short $+2 loc_101BB: mov rdi, [rbp+var_2F8] mov esi, 20h ; ' ' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_300], rax jmp short $+2 loc_101D5: mov rdi, [rbp+var_300] mov rsi, [rbp+var_18] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov [rbp+var_308], rax jmp short $+2 loc_101EE: mov rdi, [rbp+var_308] mov esi, 3Ah ; ':' call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c; std::operator<<<std::char_traits<char>>(std::ostream &,char) mov [rbp+var_310], rax jmp short $+2 loc_10208: mov rdi, [rbp+var_310] mov esi, [rbp+var_1C] call __ZNSolsEi; std::ostream::operator<<(int) mov [rbp+var_318], rax jmp short $+2 loc_10220: mov rdi, [rbp+var_318] lea rsi, aLog_0+4; "] " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) jmp short $+2 loc_10235: mov rsi, [rbp+var_30]; char * mov rdx, [rbp+arg_0]; __int64 lea rdi, [rbp+var_1A8]; this call __ZNSo5writeEPKcl; std::ostream::write(char const*,long) jmp short $+2 loc_1024B: mov rdi, [rbp+var_1F8] lea rsi, [rbp+var_1A8] call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void) jmp short $+2 loc_10260: lea rdi, [rbp+var_1A8] call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream() mov rax, [rbp+var_1F0] add rsp, 320h pop rbp retn loc_1027C: mov rdi, [rbp+var_1B0] call __Unwind_Resume
long long nglog::LogSink::ToString[abi:cxx11]( long long a1, unsigned int a2, long long a3, unsigned int a4, nglog::LogMessageTime *a5, char *a6, long long a7) { int v7; // eax int v8; // eax unsigned int v9; // eax unsigned int v10; // eax unsigned int v11; // eax unsigned int v12; // eax long long v13; // rax long long v15; // [rsp+8h] [rbp-318h] long long v16; // [rsp+10h] [rbp-310h] long long v17; // [rsp+18h] [rbp-308h] long long v18; // [rsp+20h] [rbp-300h] long long v19; // [rsp+28h] [rbp-2F8h] long long v20; // [rsp+38h] [rbp-2E8h] long long v21; // [rsp+40h] [rbp-2E0h] std::this_thread *v22; // [rsp+50h] [rbp-2D0h] long long v23; // [rsp+60h] [rbp-2C0h] long long v24; // [rsp+68h] [rbp-2B8h] long long v25; // [rsp+70h] [rbp-2B0h] long long v26; // [rsp+80h] [rbp-2A0h] long long v27; // [rsp+88h] [rbp-298h] long long v28; // [rsp+90h] [rbp-290h] long long v29; // [rsp+A0h] [rbp-280h] long long v30; // [rsp+A8h] [rbp-278h] long long v31; // [rsp+B0h] [rbp-270h] long long v32; // [rsp+C0h] [rbp-260h] long long v33; // [rsp+C8h] [rbp-258h] long long v34; // [rsp+D0h] [rbp-250h] long long v35; // [rsp+E0h] [rbp-240h] long long v36; // [rsp+E8h] [rbp-238h] long long v37; // [rsp+F0h] [rbp-230h] long long v38; // [rsp+100h] [rbp-220h] long long v39; // [rsp+108h] [rbp-218h] long long v40; // [rsp+118h] [rbp-208h] unsigned __int8 v41; // [rsp+13Fh] [rbp-1E1h] long long id; // [rsp+140h] [rbp-1E0h] unsigned int v43; // [rsp+148h] [rbp-1D8h] unsigned __int8 v44; // [rsp+14Fh] [rbp-1D1h] unsigned int v45; // [rsp+150h] [rbp-1D0h] unsigned int v46; // [rsp+154h] [rbp-1CCh] unsigned int v47; // [rsp+158h] [rbp-1C8h] unsigned int v48; // [rsp+15Ch] [rbp-1C4h] unsigned int v49; // [rsp+160h] [rbp-1C0h] unsigned int v50; // [rsp+164h] [rbp-1BCh] unsigned int v51; // [rsp+168h] [rbp-1B8h] _QWORD v52[47]; // [rsp+178h] [rbp-1A8h] BYREF char *v53; // [rsp+2F0h] [rbp-30h] nglog::LogMessageTime *v54; // [rsp+2F8h] [rbp-28h] unsigned int v55; // [rsp+304h] [rbp-1Ch] long long v56; // [rsp+308h] [rbp-18h] unsigned int v57; // [rsp+314h] [rbp-Ch] long long v58; // [rsp+318h] [rbp-8h] v58 = a1; v57 = a2; v56 = a3; v55 = a4; v54 = a5; v53 = a6; std::ostringstream::basic_ostringstream(v52); std::ios::fill((char *)v52 + *(_QWORD *)(v52[0] - 24LL), 48LL); std::operator<<<std::char_traits<char>>(v52, (unsigned int)*(char *)*(&nglog::LogSeverityNames + v57)); if ( (fLB::FLAGS_log_year_in_prefix & 1) != 0 ) { v51 = std::setw(4); v40 = std::operator<<<char,std::char_traits<char>>(v52, v51); v7 = nglog::LogMessageTime::year(v54); std::ostream::operator<<(v40, (unsigned int)(v7 + 1900)); } v50 = std::setw(2); v39 = std::operator<<<char,std::char_traits<char>>(v52, v50); v8 = nglog::LogMessageTime::month(v54); v38 = std::ostream::operator<<(v39, (unsigned int)(v8 + 1)); v49 = std::setw(2); v37 = std::operator<<<char,std::char_traits<char>>(v38, v49); v9 = nglog::LogMessageTime::day(v54); v36 = std::ostream::operator<<(v37, v9); v35 = std::operator<<<std::char_traits<char>>(v36, 32LL); v48 = std::setw(2); v34 = std::operator<<<char,std::char_traits<char>>(v35, v48); v10 = nglog::LogMessageTime::hour(v54); v33 = std::ostream::operator<<(v34, v10); v32 = std::operator<<<std::char_traits<char>>(v33, 58LL); v47 = std::setw(2); v31 = std::operator<<<char,std::char_traits<char>>(v32, v47); v11 = nglog::LogMessageTime::min(v54); v30 = std::ostream::operator<<(v31, v11); v29 = std::operator<<<std::char_traits<char>>(v30, 58LL); v46 = std::setw(2); v28 = std::operator<<<char,std::char_traits<char>>(v29, v46); v12 = nglog::LogMessageTime::sec(v54); v27 = std::ostream::operator<<(v28, v12); v26 = std::operator<<<std::char_traits<char>>(v27, 46LL); v45 = std::setw(6); v25 = std::operator<<<char,std::char_traits<char>>(v26, v45); v13 = nglog::LogMessageTime::usec(v54); v24 = std::ostream::operator<<(v25, v13); v23 = std::operator<<<std::char_traits<char>>(v24, 32LL); v44 = std::setfill<char>(32LL); v22 = (std::this_thread *)std::operator<<<char,std::char_traits<char>>(v23, v44); v43 = std::setw(5); v21 = std::operator<<<char,std::char_traits<char>>(v22, v43); id = std::this_thread::get_id(v22); v20 = std::operator<<<char,std::char_traits<char>>(v21, id); v41 = std::setfill<char>(48LL); v19 = std::operator<<<char,std::char_traits<char>>(v20, v41); v18 = std::operator<<<std::char_traits<char>>(v19, 32LL); v17 = std::operator<<<std::char_traits<char>>(v18, v56); v16 = std::operator<<<std::char_traits<char>>(v17, 58LL); v15 = std::ostream::operator<<(v16, v55); std::operator<<<std::char_traits<char>>(v15, "] "); std::ostream::write((std::ostream *)v52, v53, a7); std::ostringstream::str(a1, v52); std::ostringstream::~ostringstream(v52); return a1; }
ToString[abi:cxx11]: PUSH RBP MOV RBP,RSP SUB RSP,0x320 MOV qword ptr [RBP + -0x1f8],RDI MOV RAX,RDI MOV qword ptr [RBP + -0x1f0],RAX MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RDI,[RBP + -0x1a8] CALL 0x00109a10 MOV RAX,qword ptr [RBP + -0x1a8] MOV RAX,qword ptr [RAX + -0x18] LEA RDI,[RBP + RAX*0x1 + -0x1a8] LAB_0010fd95: MOV ESI,0x30 CALL 0x001097f0 JMP 0x0010fda1 LAB_0010fda1: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x16f6f0] MOV RAX,qword ptr [RAX + RCX*0x8] MOVSX ESI,byte ptr [RAX] LEA RDI,[RBP + -0x1a8] CALL 0x001098a0 JMP 0x0010fdc2 LAB_0010fdc2: LEA RAX,[0x170bd5] TEST byte ptr [RAX],0x1 JZ 0x0010fe4b MOV EDI,0x4 CALL 0x001174a0 MOV dword ptr [RBP + -0x1fc],EAX JMP 0x0010fde0 LAB_0010fde0: MOV EAX,dword ptr [RBP + -0x1fc] MOV dword ptr [RBP + -0x1b8],EAX MOV ESI,dword ptr [RBP + -0x1b8] LEA RDI,[RBP + -0x1a8] CALL 0x00109880 MOV qword ptr [RBP + -0x208],RAX JMP 0x0010fe07 LAB_0010fe07: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001174c0 MOV RDI,qword ptr [RBP + -0x208] MOV ESI,EAX ADD ESI,0x76c CALL 0x00109cd0 JMP 0x0010fe26 LAB_0010fe26: JMP 0x0010fe4b LAB_0010fe4b: MOV EDI,0x2 CALL 0x001174a0 MOV dword ptr [RBP + -0x20c],EAX JMP 0x0010fe5d LAB_0010fe5d: MOV EAX,dword ptr [RBP + -0x20c] MOV dword ptr [RBP + -0x1bc],EAX MOV ESI,dword ptr [RBP + -0x1bc] LEA RDI,[RBP + -0x1a8] CALL 0x00109880 MOV qword ptr [RBP + -0x218],RAX JMP 0x0010fe84 LAB_0010fe84: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117550 MOV RDI,qword ptr [RBP + -0x218] MOV ESI,EAX INC ESI CALL 0x00109cd0 MOV qword ptr [RBP + -0x220],RAX JMP 0x0010fea6 LAB_0010fea6: MOV EDI,0x2 CALL 0x001174a0 MOV dword ptr [RBP + -0x224],EAX JMP 0x0010feb8 LAB_0010feb8: MOV RDI,qword ptr [RBP + -0x220] MOV EAX,dword ptr [RBP + -0x224] MOV dword ptr [RBP + -0x1c0],EAX MOV ESI,dword ptr [RBP + -0x1c0] CALL 0x00109880 MOV qword ptr [RBP + -0x230],RAX JMP 0x0010fedf LAB_0010fedf: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117570 MOV RDI,qword ptr [RBP + -0x230] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x238],RAX JMP 0x0010feff LAB_0010feff: MOV RDI,qword ptr [RBP + -0x238] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x240],RAX JMP 0x0010ff19 LAB_0010ff19: MOV EDI,0x2 CALL 0x001174a0 MOV dword ptr [RBP + -0x244],EAX JMP 0x0010ff2b LAB_0010ff2b: MOV RDI,qword ptr [RBP + -0x240] MOV EAX,dword ptr [RBP + -0x244] MOV dword ptr [RBP + -0x1c4],EAX MOV ESI,dword ptr [RBP + -0x1c4] CALL 0x00109880 MOV qword ptr [RBP + -0x250],RAX JMP 0x0010ff52 LAB_0010ff52: MOV RDI,qword ptr [RBP + -0x28] CALL 0x00117590 MOV RDI,qword ptr [RBP + -0x250] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x258],RAX JMP 0x0010ff72 LAB_0010ff72: MOV RDI,qword ptr [RBP + -0x258] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x260],RAX JMP 0x0010ff8c LAB_0010ff8c: MOV EDI,0x2 CALL 0x001174a0 MOV dword ptr [RBP + -0x264],EAX JMP 0x0010ff9e LAB_0010ff9e: MOV RDI,qword ptr [RBP + -0x260] MOV EAX,dword ptr [RBP + -0x264] MOV dword ptr [RBP + -0x1c8],EAX MOV ESI,dword ptr [RBP + -0x1c8] CALL 0x00109880 MOV qword ptr [RBP + -0x270],RAX JMP 0x0010ffc5 LAB_0010ffc5: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001175b0 MOV RDI,qword ptr [RBP + -0x270] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x278],RAX JMP 0x0010ffe5 LAB_0010ffe5: MOV RDI,qword ptr [RBP + -0x278] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x280],RAX JMP 0x0010ffff LAB_0010ffff: MOV EDI,0x2 CALL 0x001174a0 MOV dword ptr [RBP + -0x284],EAX JMP 0x00110011 LAB_00110011: MOV RDI,qword ptr [RBP + -0x280] MOV EAX,dword ptr [RBP + -0x284] MOV dword ptr [RBP + -0x1cc],EAX MOV ESI,dword ptr [RBP + -0x1cc] CALL 0x00109880 MOV qword ptr [RBP + -0x290],RAX JMP 0x00110038 LAB_00110038: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001175d0 MOV RDI,qword ptr [RBP + -0x290] MOV ESI,EAX CALL 0x00109cd0 MOV qword ptr [RBP + -0x298],RAX JMP 0x00110058 LAB_00110058: MOV RDI,qword ptr [RBP + -0x298] MOV ESI,0x2e CALL 0x001098a0 MOV qword ptr [RBP + -0x2a0],RAX JMP 0x00110072 LAB_00110072: MOV EDI,0x6 CALL 0x001174a0 MOV dword ptr [RBP + -0x2a4],EAX JMP 0x00110084 LAB_00110084: MOV RDI,qword ptr [RBP + -0x2a0] MOV EAX,dword ptr [RBP + -0x2a4] MOV dword ptr [RBP + -0x1d0],EAX MOV ESI,dword ptr [RBP + -0x1d0] CALL 0x00109880 MOV qword ptr [RBP + -0x2b0],RAX JMP 0x001100ab LAB_001100ab: MOV RDI,qword ptr [RBP + -0x28] CALL 0x001175e0 MOV RDI,qword ptr [RBP + -0x2b0] MOV RSI,RAX CALL 0x00109d60 MOV qword ptr [RBP + -0x2b8],RAX JMP 0x001100cc LAB_001100cc: MOV RDI,qword ptr [RBP + -0x2b8] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x2c0],RAX JMP 0x001100e6 LAB_001100e6: MOV EDI,0x20 CALL 0x00117620 MOV byte ptr [RBP + -0x2c1],AL JMP 0x001100f8 LAB_001100f8: MOV RDI,qword ptr [RBP + -0x2c0] MOV AL,byte ptr [RBP + -0x2c1] MOV byte ptr [RBP + -0x1d1],AL MOVZX ESI,byte ptr [RBP + -0x1d1] CALL 0x00109ba0 MOV qword ptr [RBP + -0x2d0],RAX JMP 0x00110120 LAB_00110120: MOV EDI,0x5 CALL 0x001174a0 MOV dword ptr [RBP + -0x2d4],EAX JMP 0x00110132 LAB_00110132: MOV RDI,qword ptr [RBP + -0x2d0] MOV EAX,dword ptr [RBP + -0x2d4] MOV dword ptr [RBP + -0x1d8],EAX MOV ESI,dword ptr [RBP + -0x1d8] CALL 0x00109880 MOV qword ptr [RBP + -0x2e0],RAX JMP 0x00110159 LAB_00110159: CALL 0x00117470 MOV RDI,qword ptr [RBP + -0x2e0] MOV qword ptr [RBP + -0x1e0],RAX MOV RSI,qword ptr [RBP + -0x1e0] CALL 0x001174e0 MOV qword ptr [RBP + -0x2e8],RAX JMP 0x00110181 LAB_00110181: MOV EDI,0x30 CALL 0x00117620 MOV byte ptr [RBP + -0x2e9],AL JMP 0x00110193 LAB_00110193: MOV RDI,qword ptr [RBP + -0x2e8] MOV AL,byte ptr [RBP + -0x2e9] MOV byte ptr [RBP + -0x1e1],AL MOVZX ESI,byte ptr [RBP + -0x1e1] CALL 0x00109ba0 MOV qword ptr [RBP + -0x2f8],RAX JMP 0x001101bb LAB_001101bb: MOV RDI,qword ptr [RBP + -0x2f8] MOV ESI,0x20 CALL 0x001098a0 MOV qword ptr [RBP + -0x300],RAX JMP 0x001101d5 LAB_001101d5: MOV RDI,qword ptr [RBP + -0x300] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001096f0 MOV qword ptr [RBP + -0x308],RAX JMP 0x001101ee LAB_001101ee: MOV RDI,qword ptr [RBP + -0x308] MOV ESI,0x3a CALL 0x001098a0 MOV qword ptr [RBP + -0x310],RAX JMP 0x00110208 LAB_00110208: MOV RDI,qword ptr [RBP + -0x310] MOV ESI,dword ptr [RBP + -0x1c] CALL 0x00109cd0 MOV qword ptr [RBP + -0x318],RAX JMP 0x00110220 LAB_00110220: MOV RDI,qword ptr [RBP + -0x318] LEA RSI,[0x14dc53] CALL 0x001096f0 JMP 0x00110235 LAB_00110235: MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + 0x10] LEA RDI,[RBP + -0x1a8] CALL 0x001099d0 JMP 0x0011024b LAB_0011024b: MOV RDI,qword ptr [RBP + -0x1f8] LEA RSI,[RBP + -0x1a8] CALL 0x00109740 LAB_0011025e: JMP 0x00110260 LAB_00110260: LEA RDI,[RBP + -0x1a8] CALL 0x00109160 MOV RAX,qword ptr [RBP + -0x1f0] ADD RSP,0x320 POP RBP RET
/* nglog::LogSink::ToString[abi:cxx11](nglog::LogSeverity, char const*, int, nglog::LogMessageTime const&, char const*, unsigned long) */ int8 nglog::LogSink::ToString_abi_cxx11_ (int8 param_1,uint param_2,char *param_3,int param_4,LogMessageTime *param_5, long param_6) { int1 uVar1; int4 uVar2; int iVar3; ostream *poVar4; int8 uVar5; long lVar6; long local_1b0 [47]; long local_38; LogMessageTime *local_30; int local_24; char *local_20; uint local_14; int8 local_10; local_38 = param_6; local_30 = param_5; local_24 = param_4; local_20 = param_3; local_14 = param_2; local_10 = param_1; std::__cxx11::ostringstream::ostringstream((ostringstream *)local_1b0); /* try { // try from 0010fd95 to 0011025d has its CatchHandler @ 0010fe28 */ std::ios::fill((char)local_1b0 + (char)*(int8 *)(local_1b0[0] + -0x18)); std::operator<<((ostream *)local_1b0,**(char **)(LogSeverityNames + (ulong)local_14 * 8)); if ((fLB::FLAGS_log_year_in_prefix & 1) != 0) { uVar2 = std::setw(4); poVar4 = std::operator<<(local_1b0,uVar2); iVar3 = LogMessageTime::year(local_30); std::ostream::operator<<(poVar4,iVar3 + 0x76c); } uVar2 = std::setw(2); poVar4 = std::operator<<(local_1b0,uVar2); iVar3 = LogMessageTime::month(local_30); uVar5 = std::ostream::operator<<(poVar4,iVar3 + 1); uVar2 = std::setw(2); poVar4 = std::operator<<(uVar5,uVar2); iVar3 = LogMessageTime::day(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,' '); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::hour(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,':'); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::min(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,':'); uVar2 = std::setw(2); poVar4 = std::operator<<(poVar4,uVar2); iVar3 = LogMessageTime::sec(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,iVar3); poVar4 = std::operator<<(poVar4,'.'); uVar2 = std::setw(6); poVar4 = std::operator<<(poVar4,uVar2); lVar6 = LogMessageTime::usec(local_30); poVar4 = (ostream *)std::ostream::operator<<(poVar4,lVar6); poVar4 = std::operator<<(poVar4,' '); uVar1 = std::setfill<char>(' '); poVar4 = std::operator<<(poVar4,uVar1); uVar2 = std::setw(5); poVar4 = std::operator<<(poVar4,uVar2); uVar5 = std::this_thread::get_id(); poVar4 = std::operator<<(poVar4,uVar5); uVar1 = std::setfill<char>('0'); poVar4 = std::operator<<(poVar4,uVar1); poVar4 = std::operator<<(poVar4,' '); poVar4 = std::operator<<(poVar4,local_20); poVar4 = std::operator<<(poVar4,':'); poVar4 = (ostream *)std::ostream::operator<<(poVar4,local_24); std::operator<<(poVar4,"] "); std::ostream::write((char *)local_1b0,local_38); std::__cxx11::ostringstream::str(); std::__cxx11::ostringstream::~ostringstream((ostringstream *)local_1b0); return param_1; }
31,554
inline_mysql_file_fopen
eloqsql/include/mysql/psi/mysql_file.h
static inline MYSQL_FILE* inline_mysql_file_fopen( #ifdef HAVE_PSI_FILE_INTERFACE PSI_file_key key, const char *src_file, uint src_line, #endif const char *filename, int flags, myf myFlags) { MYSQL_FILE *that; that= (MYSQL_FILE*) my_malloc(PSI_NOT_INSTRUMENTED, sizeof(MYSQL_FILE), MYF(MY_WME)); if (likely(that != NULL)) { #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_name_locker)(&state, key, PSI_FILE_STREAM_OPEN, filename, that); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); that->m_file= my_fopen(filename, flags, myFlags); that->m_psi= PSI_FILE_CALL(end_file_open_wait)(locker, that->m_file); if (unlikely(that->m_file == NULL)) { my_free(that); return NULL; } return that; } #endif that->m_psi= NULL; that->m_file= my_fopen(filename, flags, myFlags); if (unlikely(that->m_file == NULL)) { my_free(that); return NULL; } } return that; }
O0
c
inline_mysql_file_fopen: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movl %edi, -0xc(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq %rcx, -0x28(%rbp) movl %r8d, -0x2c(%rbp) movq %r9, -0x38(%rbp) xorl %edi, %edi movl $0x10, %edx movq %rdx, %rsi callq 0xf99f0 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 0xdf689 leaq 0x1e8061(%rip), %rax # 0x2c75a0 movq (%rax), %rax movq 0x148(%rax), %rax movl -0xc(%rbp), %esi movq -0x28(%rbp), %rcx movq -0x40(%rbp), %r8 leaq -0x90(%rbp), %rdi movl $0x3, %edx callq *%rax movq %rax, -0x48(%rbp) cmpq $0x0, -0x48(%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 0xdf62b leaq 0x1e800f(%rip), %rax # 0x2c75a0 movq (%rax), %rax movq 0x1f0(%rax), %rax movq -0x48(%rbp), %rdi movq -0x18(%rbp), %rsi movl -0x1c(%rbp), %edx callq *%rax movq -0x28(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx callq 0xf20d0 movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) leaq 0x1e7fd7(%rip), %rax # 0x2c75a0 movq (%rax), %rax movq 0x1f8(%rax), %rax movq -0x48(%rbp), %rdi movq -0x40(%rbp), %rcx movq (%rcx), %rsi callq *%rax movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x40(%rbp), %rax cmpq $0x0, (%rax) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xdf621 movq -0x40(%rbp), %rdi callq 0xf9d70 movq $0x0, -0x8(%rbp) jmp 0xdf691 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xdf691 movq -0x40(%rbp), %rax movq $0x0, 0x8(%rax) movq -0x28(%rbp), %rdi movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx callq 0xf20d0 movq %rax, %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x40(%rbp), %rax cmpq $0x0, (%rax) sete %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xdf687 movq -0x40(%rbp), %rdi callq 0xf9d70 movq $0x0, -0x8(%rbp) jmp 0xdf691 jmp 0xdf689 movq -0x40(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x90, %rsp popq %rbp retq nop
inline_mysql_file_fopen: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_C], edi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov [rbp+var_28], rcx mov [rbp+var_2C], r8d mov [rbp+var_38], r9 xor edi, edi mov edx, 10h mov rsi, rdx call my_malloc mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_DF689 lea rax, PSI_server mov rax, [rax] mov rax, [rax+148h] mov esi, [rbp+var_C] mov rcx, [rbp+var_28] mov r8, [rbp+var_40] lea rdi, [rbp+var_90] mov edx, 3 call rax mov [rbp+var_48], rax cmp [rbp+var_48], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_DF62B lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F0h] mov rdi, [rbp+var_48] mov rsi, [rbp+var_18] mov edx, [rbp+var_1C] call rax mov rdi, [rbp+var_28] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] call my_fopen mov rcx, rax mov rax, [rbp+var_40] mov [rax], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1F8h] mov rdi, [rbp+var_48] mov rcx, [rbp+var_40] mov rsi, [rcx] call rax mov rcx, rax mov rax, [rbp+var_40] mov [rax+8], rcx mov rax, [rbp+var_40] cmp qword ptr [rax], 0 setz 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_DF621 mov rdi, [rbp+var_40] call my_free mov [rbp+var_8], 0 jmp short loc_DF691 loc_DF621: mov rax, [rbp+var_40] mov [rbp+var_8], rax jmp short loc_DF691 loc_DF62B: mov rax, [rbp+var_40] mov qword ptr [rax+8], 0 mov rdi, [rbp+var_28] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] call my_fopen mov rcx, rax mov rax, [rbp+var_40] mov [rax], rcx mov rax, [rbp+var_40] cmp qword ptr [rax], 0 setz 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_DF687 mov rdi, [rbp+var_40] call my_free mov [rbp+var_8], 0 jmp short loc_DF691 loc_DF687: jmp short $+2 loc_DF689: mov rax, [rbp+var_40] mov [rbp+var_8], rax loc_DF691: mov rax, [rbp+var_8] add rsp, 90h pop rbp retn
long long * inline_mysql_file_fopen( unsigned int a1, long long a2, unsigned int a3, long long a4, unsigned int a5, long long a6) { long long v6; // rax long long v7; // rax long long v8; // rax _BYTE v10[72]; // [rsp+0h] [rbp-90h] BYREF long long v11; // [rsp+48h] [rbp-48h] long long *v12; // [rsp+50h] [rbp-40h] long long v13; // [rsp+58h] [rbp-38h] unsigned int v14; // [rsp+64h] [rbp-2Ch] long long v15; // [rsp+68h] [rbp-28h] unsigned int v16; // [rsp+74h] [rbp-1Ch] long long v17; // [rsp+78h] [rbp-18h] unsigned int v18; // [rsp+84h] [rbp-Ch] v18 = a1; v17 = a2; v16 = a3; v15 = a4; v14 = a5; v13 = a6; v12 = (long long *)my_malloc(0LL, 16LL, 16LL); if ( !v12 ) return v12; v11 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, long long *))PSI_server[41])(v10, v18, 3LL, v15, v12); if ( !v11 ) { v12[1] = 0LL; v8 = my_fopen(v15, v14, v13); *v12 = v8; if ( !*v12 ) goto LABEL_4; return v12; } ((void ( *)(long long, long long, _QWORD))PSI_server[62])(v11, v17, v16); v6 = my_fopen(v15, v14, v13); *v12 = v6; v7 = ((long long ( *)(long long, long long))PSI_server[63])(v11, *v12); v12[1] = v7; if ( *v12 ) return v12; LABEL_4: my_free(v12); return 0LL; }
inline_mysql_file_fopen: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV dword ptr [RBP + -0xc],EDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV qword ptr [RBP + -0x28],RCX MOV dword ptr [RBP + -0x2c],R8D MOV qword ptr [RBP + -0x38],R9 XOR EDI,EDI MOV EDX,0x10 MOV RSI,RDX CALL 0x001f99f0 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 0x001df689 LEA RAX,[0x3c75a0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x148] MOV ESI,dword ptr [RBP + -0xc] MOV RCX,qword ptr [RBP + -0x28] MOV R8,qword ptr [RBP + -0x40] LEA RDI,[RBP + -0x90] MOV EDX,0x3 CALL RAX MOV qword ptr [RBP + -0x48],RAX CMP qword ptr [RBP + -0x48],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 0x001df62b LEA RAX,[0x3c75a0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f0] MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x18] MOV EDX,dword ptr [RBP + -0x1c] CALL RAX MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] CALL 0x001f20d0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX LEA RAX,[0x3c75a0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1f8] MOV RDI,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RCX] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001df621 MOV RDI,qword ptr [RBP + -0x40] CALL 0x001f9d70 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001df691 LAB_001df621: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX JMP 0x001df691 LAB_001df62b: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX + 0x8],0x0 MOV RDI,qword ptr [RBP + -0x28] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] CALL 0x001f20d0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x40] CMP qword ptr [RAX],0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001df687 MOV RDI,qword ptr [RBP + -0x40] CALL 0x001f9d70 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001df691 LAB_001df687: JMP 0x001df689 LAB_001df689: MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x8],RAX LAB_001df691: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x90 POP RBP RET
long * inline_mysql_file_fopen (int4 param_1,int8 param_2,int4 param_3,int8 param_4, int4 param_5,int8 param_6) { long lVar1; int1 local_98 [72]; long local_50; long *local_48; int8 local_40; int4 local_34; int8 local_30; int4 local_24; int8 local_20; int4 local_14; local_40 = param_6; local_34 = param_5; local_30 = param_4; local_24 = param_3; local_20 = param_2; local_14 = param_1; local_48 = (long *)my_malloc(0,0x10); if (local_48 != (long *)0x0) { local_50 = (**(code **)(PSI_server + 0x148))(local_98,local_14,3,local_30,local_48); if (local_50 != 0) { (**(code **)(PSI_server + 0x1f0))(local_50,local_20,local_24); lVar1 = my_fopen(local_30,local_34,local_40); *local_48 = lVar1; lVar1 = (**(code **)(PSI_server + 0x1f8))(local_50,*local_48); local_48[1] = lVar1; if (*local_48 == 0) { my_free(local_48); return (long *)0x0; } return local_48; } local_48[1] = 0; lVar1 = my_fopen(local_30,local_34,local_40); *local_48 = lVar1; if (*local_48 == 0) { my_free(local_48); return (long *)0x0; } } return local_48; }
31,555
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::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>>::start_array(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O0
cpp
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::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>>::start_array(unsigned long): subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, 0x20(%rsp) movq %rdi, %rax addq $0x80, %rax movq %rax, 0x18(%rsp) addq $0x8, %rdi callq 0xaef70 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rcx movl %eax, %esi addq $0xa8, %rcx movl $0x2, %edx callq 0xaef10 movq 0x20(%rsp), %rdi andb $0x1, %al movb %al, 0x97(%rsp) addq $0x20, %rdi movb 0x97(%rsp), %al andb $0x1, %al movzbl %al, %esi callq 0xabbc0 movq 0x20(%rsp), %rdi movb $0x2, 0x7f(%rsp) leaq 0x7f(%rsp), %rsi movl $0x1, %edx callq 0xaef90 movq 0x20(%rsp), %rdi movb %al, 0x80(%rsp) movq %rdx, 0x88(%rsp) addq $0x8, %rdi leaq 0x80(%rsp), %rsi addq $0x8, %rsi callq 0xaf4f0 movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xaf560 cmpq $0x0, (%rax) je 0xae735 xorl %eax, %eax cmpq $-0x1, 0x98(%rsp) movb %al, 0x17(%rsp) je 0xae64b movq 0x20(%rsp), %rdi movq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) addq $0x8, %rdi callq 0xaf560 movq (%rax), %rdi callq 0xaf5a0 movq %rax, %rcx movq 0x8(%rsp), %rax cmpq %rcx, %rax seta %al movb %al, 0x17(%rsp) movb 0x17(%rsp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xae65c jmp 0xae735 movb $0x1, 0x2b(%rsp) movl $0x20, %edi callq 0x5a6b0 movq %rax, (%rsp) movq 0x98(%rsp), %rsi leaq 0x38(%rsp), %rdi callq 0xaf880 jmp 0xae683 leaq 0x15fe5c(%rip), %rsi # 0x20e4e6 leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0xb8100 jmp 0xae69b movq 0x20(%rsp), %rdi addq $0x8, %rdi callq 0xaf560 movq (%rsp), %rdi movq (%rax), %rcx movl $0x198, %esi # imm = 0x198 leaq 0x58(%rsp), %rdx callq 0xaf620 jmp 0xae6c1 movq (%rsp), %rdi movb $0x0, 0x2b(%rsp) leaq 0x1f2637(%rip), %rsi # 0x2a0d08 leaq 0x558(%rip), %rdx # 0xaec30 callq 0x5ab30 jmp 0xae74b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xae721 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) jmp 0xae717 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x30(%rsp) movl %eax, 0x2c(%rsp) leaq 0x58(%rsp), %rdi callq 0x5b588 leaq 0x38(%rsp), %rdi callq 0x5b588 testb $0x1, 0x2b(%rsp) jne 0xae72a jmp 0xae733 movq (%rsp), %rdi callq 0x5af90 jmp 0xae741 movb $0x1, %al andb $0x1, %al addq $0xa8, %rsp retq movq 0x30(%rsp), %rdi callq 0x5abf0 nopl (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: sub rsp, 0A8h mov qword ptr [rsp+0A8h+var_8], rdi mov [rsp+0A8h+var_10], rsi mov rdi, qword ptr [rsp+0A8h+var_8] mov qword ptr [rsp+0A8h+var_88], rdi; int mov rax, rdi add rax, 80h mov qword ptr [rsp+0A8h+var_90], rax; char add rdi, 8 call _ZNKSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::size(void) mov rdi, qword ptr [rsp+0A8h+var_90] mov rcx, qword ptr [rsp+0A8h+var_88] mov esi, eax add rcx, 0A8h mov edx, 2 call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; 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> &)>::operator()(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> &) mov rdi, qword ptr [rsp+0A8h+var_88] and al, 1 mov [rsp+0A8h+var_11], al add rdi, 20h ; ' ' mov al, [rsp+0A8h+var_11] and al, 1 movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov [rsp+0A8h+var_29], 2 lea rsi, [rsp+0A8h+var_29] mov edx, 1 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; 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>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) mov rdi, qword ptr [rsp+0A8h+var_88] mov byte ptr [rsp+0A8h+var_28], al; int mov qword ptr [rsp+0A8h+var_20], rdx; int add rdi, 8 lea rsi, [rsp+0A8h+var_28] add rsi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) cmp qword ptr [rax], 0 jz loc_AE735 xor eax, eax cmp [rsp+0A8h+var_10], 0FFFFFFFFFFFFFFFFh mov [rsp+0A8h+var_91], al jz short loc_AE64B mov rdi, qword ptr [rsp+0A8h+var_88] mov rax, [rsp+0A8h+var_10] mov qword ptr [rsp+0A8h+var_A0], rax; int add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rax] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) mov rcx, rax mov rax, qword ptr [rsp+0A8h+var_A0] cmp rax, rcx setnbe al mov [rsp+0A8h+var_91], al loc_AE64B: mov al, [rsp+0A8h+var_91] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_AE65C jmp loc_AE735 loc_AE65C: mov [rsp+0A8h+var_7D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+0A8h+var_A8], rax; int mov rsi, [rsp+0A8h+var_10]; unsigned __int64 lea rdi, [rsp+0A8h+var_70]; this call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) jmp short $+2 loc_AE683: lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+0A8h+var_50] lea rdx, [rsp+0A8h+var_70] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) jmp short $+2 loc_AE69B: mov rdi, qword ptr [rsp+0A8h+var_88] add rdi, 8 call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::back(void) mov rdi, [rsp+0A8h+var_A8]; int mov rcx, [rax] mov esi, 198h lea rdx, [rsp+0A8h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_AE6C1: mov rdi, [rsp+0A8h+var_A8]; void * mov [rsp+0A8h+var_7D], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_AE74B mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_AE721 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax jmp short loc_AE717 mov rcx, rax mov eax, edx mov [rsp+arg_28], rcx mov [rsp+arg_24], eax lea rdi, [rsp+arg_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_AE717: lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_AE721: test [rsp+arg_23], 1 jnz short loc_AE72A jmp short loc_AE733 loc_AE72A: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_AE733: jmp short loc_AE741 loc_AE735: mov al, 1 and al, 1 add rsp, 0A8h retn loc_AE741: mov rdi, [rsp+arg_28] call __Unwind_Resume loc_AE74B: nop dword ptr [rax+rax+00h]
start_array: SUB RSP,0xa8 MOV qword ptr [RSP + 0xa0],RDI MOV qword ptr [RSP + 0x98],RSI MOV RDI,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x20],RDI MOV RAX,RDI ADD RAX,0x80 MOV qword ptr [RSP + 0x18],RAX ADD RDI,0x8 CALL 0x001aef70 MOV RDI,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x20] MOV ESI,EAX ADD RCX,0xa8 MOV EDX,0x2 CALL 0x001aef10 MOV RDI,qword ptr [RSP + 0x20] AND AL,0x1 MOV byte ptr [RSP + 0x97],AL ADD RDI,0x20 MOV AL,byte ptr [RSP + 0x97] AND AL,0x1 MOVZX ESI,AL CALL 0x001abbc0 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x7f],0x2 LEA RSI,[RSP + 0x7f] MOV EDX,0x1 CALL 0x001aef90 MOV RDI,qword ptr [RSP + 0x20] MOV byte ptr [RSP + 0x80],AL MOV qword ptr [RSP + 0x88],RDX ADD RDI,0x8 LEA RSI,[RSP + 0x80] ADD RSI,0x8 CALL 0x001af4f0 MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001af560 CMP qword ptr [RAX],0x0 JZ 0x001ae735 XOR EAX,EAX CMP qword ptr [RSP + 0x98],-0x1 MOV byte ptr [RSP + 0x17],AL JZ 0x001ae64b MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX ADD RDI,0x8 CALL 0x001af560 MOV RDI,qword ptr [RAX] CALL 0x001af5a0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] CMP RAX,RCX SETA AL MOV byte ptr [RSP + 0x17],AL LAB_001ae64b: MOV AL,byte ptr [RSP + 0x17] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001ae65c JMP 0x001ae735 LAB_001ae65c: MOV byte ptr [RSP + 0x2b],0x1 MOV EDI,0x20 CALL 0x0015a6b0 MOV qword ptr [RSP],RAX MOV RSI,qword ptr [RSP + 0x98] LAB_001ae677: LEA RDI,[RSP + 0x38] CALL 0x001af880 JMP 0x001ae683 LAB_001ae683: LEA RSI,[0x30e4e6] LEA RDI,[RSP + 0x58] LEA RDX,[RSP + 0x38] CALL 0x001b8100 JMP 0x001ae69b LAB_001ae69b: MOV RDI,qword ptr [RSP + 0x20] ADD RDI,0x8 CALL 0x001af560 MOV RDI,qword ptr [RSP] MOV RCX,qword ptr [RAX] LAB_001ae6b0: MOV ESI,0x198 LEA RDX,[RSP + 0x58] CALL 0x001af620 JMP 0x001ae6c1 LAB_001ae6c1: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x2b],0x0 LEA RSI,[0x3a0d08] LEA RDX,[0x1aec30] CALL 0x0015ab30 LAB_001ae735: MOV AL,0x1 AND AL,0x1 ADD RSP,0xa8 RET
/* 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> >::start_array(unsigned long) */ int8 __thiscall 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>> ::start_array(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,ulong param_1) { bool bVar1; ulong uVar2; byte bVar3; int4 uVar4; long *plVar5; int8 *puVar6; ulong uVar7; int8 uVar8; basic_json *extraout_RDX; __cxx11 local_70 [32]; detail local_50 [39]; value_t local_29; int1 local_28; basic_json *local_20; int1 local_11; ulong local_10; 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_8; local_10 = param_1; local_8 = this; uVar4 = std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); bVar3 = 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>&)> ::operator()((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>&)> *)(this + 0x80),uVar4,2,this + 0xa8); local_11 = bVar3 & 1; std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),(bool)local_11); local_29 = 2; local_28 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_29,true); local_20 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_20); plVar5 = (long *)std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar2 = local_10; if (*plVar5 != 0) { bVar1 = false; if (local_10 != 0xffffffffffffffff) { puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar7 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)*puVar6); bVar1 = uVar7 < uVar2; } if (bVar1) { uVar8 = __cxa_allocate_exception(0x20); /* try { // try from 001ae677 to 001ae680 has its CatchHandler @ 001ae6df */ std::__cxx11::to_string(local_70,local_10); /* try { // try from 001ae683 to 001ae698 has its CatchHandler @ 001ae6ef */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_50,"excessive array size: ",(string *)local_70); puVar6 = (int8 *) std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001ae6b0 to 001ae6dc has its CatchHandler @ 001ae6ff */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar8,0x198,local_50,*puVar6); /* WARNING: Subroutine does not return */ __cxa_throw(uVar8,&out_of_range::typeinfo,out_of_range::~out_of_range); } } return 1; }
31,556
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::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>>::start_array(unsigned long)
monkey531[P]llama/common/json.hpp
bool start_array(std::size_t len) { const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::array_start, discarded); keep_stack.push_back(keep); auto val = handle_value(BasicJsonType::value_t::array, true); ref_stack.push_back(val.second); // check array limit if (ref_stack.back() && JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
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::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>>::start_array(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x58, %rsp movq %rsi, %r15 movq %rdi, %r14 addq $0x80, %rdi leaq 0x8(%r14), %rbx movq 0x10(%r14), %rsi subq 0x8(%r14), %rsi shrq $0x3, %rsi leaq 0xa8(%r14), %rcx pushq $0x2 popq %rdx callq 0x418b0 leaq 0x20(%r14), %rdi movzbl %al, %esi callq 0x40b26 leaq 0x8(%rsp), %rsi movb $0x2, (%rsi) pushq $0x1 popq %rdx movq %r14, %rdi callq 0x418d4 leaq 0x50(%rsp), %rsi movb %al, -0x8(%rsi) movq %rdx, (%rsi) movq %rbx, %rdi callq 0x41ade movq 0x10(%r14), %rax movq -0x8(%rax), %rdi testq %rdi, %rdi sete %al cmpq $-0x1, %r15 sete %cl orb %al, %cl jne 0x414cf callq 0x41afc cmpq %r15, %rax jb 0x414dc movb $0x1, %al addq $0x58, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x23470 movq %rax, %rbx leaq 0x28(%rsp), %rdi movq %r15, %rsi callq 0x41c6f leaq 0x6fa56(%rip), %rsi # 0xb0f51 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x43a71 movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x41b24 xorl %ebp, %ebp leaq 0xba998(%rip), %rsi # 0xfbec8 leaq -0x15e3(%rip), %rdx # 0x3ff54 movq %rbx, %rdi callq 0x23f40 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x241f8 jmp 0x41554 movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi callq 0x241f8 testb %bpl, %bpl jne 0x41568 jmp 0x41570 movq %rax, %r14 movq %rbx, %rdi callq 0x236a0 movq %r14, %rdi callq 0x23fc0
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11start_arrayEm: push rbp push r15 push r14; char push rbx; int sub rsp, 58h mov r15, rsi mov r14, rdi add rdi, 80h lea rbx, [r14+8] mov rsi, [r14+10h] sub rsi, [r14+8] shr rsi, 3 lea rcx, [r14+0A8h] push 2 pop rdx call _ZNKSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEclEiS3_SH_; 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> &)>::operator()(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> &) lea rdi, [r14+20h] movzx esi, al call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) lea rsi, [rsp+78h+var_70] mov byte ptr [rsi], 2 push 1 pop rdx mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12handle_valueINS1_7value_tEEESt4pairIbPSF_EOT_b; 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>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&,bool) lea rsi, [rsp+78h+var_28] mov [rsi-8], al mov [rsi], rdx mov rdi, rbx call _ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backERKSE_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *,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> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> * const&) mov rax, [r14+10h] mov rdi, [rax-8] test rdi, rdi setz al cmp r15, 0FFFFFFFFFFFFFFFFh setz cl or cl, al jnz short loc_414CF call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::max_size(void) cmp rax, r15 jb short loc_414DC loc_414CF: mov al, 1 add rsp, 58h pop rbx pop r14 pop r15 pop rbp retn loc_414DC: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+78h+var_50]; this mov rsi, r15; unsigned __int64 call _ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveArray; "excessive array size: " lea rdi, [rsp+78h+var_70] lea rdx, [rsp+78h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA23_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>(char const(&)[23],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+78h+var_70] mov rdi, rbx; this mov esi, 198h; int call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+78h+var_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_41554 mov r14, rax mov bpl, 1 loc_41554: lea rdi, [rsp+78h+var_50]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_41568 jmp short loc_41570 mov r14, rax loc_41568: mov rdi, rbx; void * call ___cxa_free_exception loc_41570: mov rdi, r14 call __Unwind_Resume
char 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>>::start_array( long long a1, unsigned long long a2) { unsigned __int8 v2; // al long long v3; // rdx nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx char v6; // [rsp+0h] [rbp-78h] int v7[6]; // [rsp+8h] [rbp-70h] BYREF char v8; // [rsp+20h] [rbp-58h] int v9[6]; // [rsp+28h] [rbp-50h] BYREF char v10; // [rsp+40h] [rbp-38h] int v11; // [rsp+48h] [rbp-30h] long long v12; // [rsp+50h] [rbp-28h] int v13; // [rsp+58h] [rbp-20h] char v14; // [rsp+60h] [rbp-18h] v2 = 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> &)>::operator()( a1 + 128, (*(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8)) >> 3, 2LL, a1 + 168); std::vector<bool>::push_back(a1 + 32, v2); LOBYTE(v7[0]) = 2; LOBYTE(v11) = 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>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v7, 1LL); v12 = v3; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> *,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> *>>::push_back(a1 + 8); if ( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL) != 0LL && a2 != -1LL && 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>::max_size() < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v9, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[23],std::string>( v7, "excessive array size: ", v9); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, v6, v7[0], v7[2], v7[4], v8, v9[0], v9[2], v9[4], v10, v11, v12, v13, v14); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return 1; }
start_array: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x58 MOV R15,RSI MOV R14,RDI ADD RDI,0x80 LEA RBX,[R14 + 0x8] MOV RSI,qword ptr [R14 + 0x10] SUB RSI,qword ptr [R14 + 0x8] SHR RSI,0x3 LEA RCX,[R14 + 0xa8] PUSH 0x2 POP RDX CALL 0x001418b0 LEA RDI,[R14 + 0x20] MOVZX ESI,AL CALL 0x00140b26 LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x2 PUSH 0x1 POP RDX MOV RDI,R14 CALL 0x001418d4 LEA RSI,[RSP + 0x50] MOV byte ptr [RSI + -0x8],AL MOV qword ptr [RSI],RDX MOV RDI,RBX CALL 0x00141ade MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] TEST RDI,RDI SETZ AL CMP R15,-0x1 SETZ CL OR CL,AL JNZ 0x001414cf CALL 0x00141afc CMP RAX,R15 JC 0x001414dc LAB_001414cf: MOV AL,0x1 ADD RSP,0x58 POP RBX POP R14 POP R15 POP RBP RET LAB_001414dc: PUSH 0x20 POP RDI CALL 0x00123470 MOV RBX,RAX LAB_001414e7: LEA RDI,[RSP + 0x28] MOV RSI,R15 CALL 0x00141c6f LAB_001414f4: LEA RSI,[0x1b0f51] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x00143a71 MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_00141515: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x198 CALL 0x00141b24 XOR EBP,EBP LEA RSI,[0x1fbec8] LEA RDX,[0x13ff54] MOV RDI,RBX CALL 0x00123f40
/* 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> >::start_array(unsigned long) */ int8 __thiscall 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>> ::start_array(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,ulong param_1) { bool bVar1; ulong uVar2; int8 uVar3; basic_json *extraout_RDX; detail local_70 [32]; __cxx11 local_50 [32]; int1 local_30; basic_json *local_28; bVar1 = (bool)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>&)> ::operator()(this + 0x80,(ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3, 2,this + 0xa8); std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),bVar1); local_70[0] = (detail)0x2; local_30 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_70,true); local_28 = extraout_RDX; std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> ::push_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_28); if (param_1 != 0xffffffffffffffff && *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8) != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)0x0) { uVar2 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::max_size(*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8)); if (uVar2 < param_1) { uVar3 = __cxa_allocate_exception(0x20); /* try { // try from 001414e7 to 001414f3 has its CatchHandler @ 00141565 */ std::__cxx11::to_string(local_50,param_1); /* try { // try from 001414f4 to 00141509 has its CatchHandler @ 0014154e */ concat<std::__cxx11::string,char_const(&)[23],std::__cxx11::string> (local_70,"excessive array size: ",(string *)local_50); /* try { // try from 00141515 to 0014153e has its CatchHandler @ 0014153f */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar3,0x198,local_70,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar3,&out_of_range::typeinfo,exception::~exception); } } return 1; }
31,557
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&)
untodesu[P]voxelius/game/server/overworld.cc
bool Overworld::generate(const chunk_pos &cpos, VoxelStorage &voxels) { if(cpos.y <= m_bottommost_chunk.get_value()) { // If the player asks the generator // to generate a lot of stuff below // the surface, it will happily chew // through all the server threads return false; } voxels.fill(NULL_VOXEL_ID); m_mutex.lock(); generate_terrain(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_surface(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_caves(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_features(cpos, voxels); m_mutex.unlock(); return true; }
O0
cpp
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x30(%rbp) movq -0x18(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x24(%rbp) addq $0x338, %rdi # imm = 0x338 callq 0x2c5f0 movl %eax, %ecx movl -0x24(%rbp), %eax cmpl %ecx, %eax jg 0x2b084 movb $0x0, -0x1(%rbp) jmp 0x2b15c movq -0x20(%rbp), %rdi leaq 0x1b9a49(%rip), %rsi # 0x1e4ad8 callq 0x2c610 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c650 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x2b170 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c680 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c650 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x2b2b0 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c680 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c650 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x2b4e0 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c680 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c650 movq -0x30(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x2b5c0 movq -0x30(%rbp), %rdi addq $0x550, %rdi # imm = 0x550 callq 0x2c680 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN9Overworld8generateERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rdi, [rbp+var_10] mov [rbp+var_30], rdi mov rax, [rbp+var_18] mov eax, [rax+4] mov [rbp+var_24], eax add rdi, 338h call _ZNK12ConfigNumberIiE9get_valueEv; ConfigNumber<int>::get_value(void) mov ecx, eax mov eax, [rbp+var_24] cmp eax, ecx jg short loc_2B084 mov [rbp+var_1], 0 jmp loc_2B15C loc_2B084: mov rdi, [rbp+var_20] lea rsi, _ZL13NULL_VOXEL_ID; NULL_VOXEL_ID call _ZNSt5arrayItLm4096EE4fillERKt; std::array<ushort,4096ul>::fill(ushort const&) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _ZN9Overworld16generate_terrainERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_terrain(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex6unlockEv; std::mutex::unlock(void) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _ZN9Overworld16generate_surfaceERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_surface(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex6unlockEv; std::mutex::unlock(void) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _ZN9Overworld14generate_cavesERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_caves(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex6unlockEv; std::mutex::unlock(void) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, [rbp+var_30] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _ZN9Overworld17generate_featuresERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_features(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, [rbp+var_30] add rdi, 550h; this call _ZNSt5mutex6unlockEv; std::mutex::unlock(void) mov [rbp+var_1], 1 loc_2B15C: mov al, [rbp+var_1] and al, 1 add rsp, 30h pop rbp retn
char Overworld::generate(long long a1, long long a2, long long a3) { int v4; // [rsp+Ch] [rbp-24h] v4 = *(_DWORD *)(a2 + 4); if ( v4 <= (int)ConfigNumber<int>::get_value(a1 + 824) ) return 0; std::array<unsigned short,4096ul>::fill(a3, &NULL_VOXEL_ID); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_terrain(a1, a2, a3); std::mutex::unlock((std::mutex *)(a1 + 1360)); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_surface(a1, a2, a3); std::mutex::unlock((std::mutex *)(a1 + 1360)); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_caves(a1, a2, a3); std::mutex::unlock((std::mutex *)(a1 + 1360)); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_features(a1, a2, a3); std::mutex::unlock((std::mutex *)(a1 + 1360)); return 1; }
generate: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RDI MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x24],EAX ADD RDI,0x338 CALL 0x0012c5f0 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x24] CMP EAX,ECX JG 0x0012b084 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012b15c LAB_0012b084: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x2e4ad8] CALL 0x0012c610 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c650 MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0012b170 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c680 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c650 MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0012b2b0 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c680 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c650 MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0012b4e0 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c680 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c650 MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x0012b5c0 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x550 CALL 0x0012c680 MOV byte ptr [RBP + -0x1],0x1 LAB_0012b15c: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x30 POP RBP RET
/* Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&) */ bool __thiscall Overworld::generate(Overworld *this,vec *param_1,VoxelStorage *param_2) { int iVar1; int iVar2; iVar1 = *(int *)(param_1 + 4); iVar2 = ConfigNumber<int>::get_value((ConfigNumber<int> *)(this + 0x338)); if (iVar2 < iVar1) { std::array<unsigned_short,4096ul>::fill((array<unsigned_short,4096ul> *)param_2,&NULL_VOXEL_ID); std::mutex::lock((mutex *)(this + 0x550)); generate_terrain(this,param_1,param_2); std::mutex::unlock((mutex *)(this + 0x550)); std::mutex::lock((mutex *)(this + 0x550)); generate_surface(this,param_1,param_2); std::mutex::unlock((mutex *)(this + 0x550)); std::mutex::lock((mutex *)(this + 0x550)); generate_caves(this,param_1,param_2); std::mutex::unlock((mutex *)(this + 0x550)); std::mutex::lock((mutex *)(this + 0x550)); generate_features(this,param_1,param_2); std::mutex::unlock((mutex *)(this + 0x550)); } return iVar2 < iVar1; }
31,558
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&)
untodesu[P]voxelius/game/server/overworld.cc
bool Overworld::generate(const chunk_pos &cpos, VoxelStorage &voxels) { if(cpos.y <= m_bottommost_chunk.get_value()) { // If the player asks the generator // to generate a lot of stuff below // the surface, it will happily chew // through all the server threads return false; } voxels.fill(NULL_VOXEL_ID); m_mutex.lock(); generate_terrain(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_surface(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_caves(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_features(cpos, voxels); m_mutex.unlock(); return true; }
O2
cpp
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl 0x4(%rsi), %ebp movl 0x340(%rdi), %r13d cmpl %r13d, %ebp jle 0x1ca7d movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 leaq 0x8b0a4(%rip), %rsi # 0xa7a9a movq %rdx, %rdi callq 0x1d4c6 leaq 0x550(%r15), %r12 movq %r12, %rdi callq 0x1d4e0 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1ca92 movq %r12, %rdi callq 0x17560 movq %r12, %rdi callq 0x1d4e0 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1cb68 movq %r12, %rdi callq 0x17560 movq %r12, %rdi callq 0x1d4e0 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1ccf4 movq %r12, %rdi callq 0x17560 movq %r12, %rdi callq 0x1d4e0 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1cdb2 movq %r12, %rdi callq 0x17560 cmpl %r13d, %ebp setg %al addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN9Overworld8generateERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, [rsi+4] mov r13d, [rdi+340h] cmp ebp, r13d jle loc_1CA7D mov rbx, rdx mov r14, rsi mov r15, rdi lea rsi, _ZL13NULL_VOXEL_ID; NULL_VOXEL_ID mov rdi, rdx call _ZNSt5arrayItLm4096EE4fillERKt; std::array<ushort,4096ul>::fill(ushort const&) lea r12, [r15+550h] mov rdi, r12; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld16generate_terrainERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_terrain(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld16generate_surfaceERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_surface(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld14generate_cavesERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_caves(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12; this call _ZNSt5mutex4lockEv; std::mutex::lock(void) mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld17generate_featuresERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_features(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock loc_1CA7D: cmp ebp, r13d setnle al add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
bool Overworld::generate(long long a1, long long a2, long long a3) { int v3; // ebp int v4; // r13d v3 = *(_DWORD *)(a2 + 4); v4 = *(_DWORD *)(a1 + 832); if ( v3 > v4 ) { std::array<unsigned short,4096ul>::fill(a3, &NULL_VOXEL_ID); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_terrain(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_surface(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_caves(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); std::mutex::lock((std::mutex *)(a1 + 1360)); Overworld::generate_features(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); } return v3 > v4; }
generate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,dword ptr [RSI + 0x4] MOV R13D,dword ptr [RDI + 0x340] CMP EBP,R13D JLE 0x0011ca7d MOV RBX,RDX MOV R14,RSI MOV R15,RDI LEA RSI,[0x1a7a9a] MOV RDI,RDX CALL 0x0011d4c6 LEA R12,[R15 + 0x550] MOV RDI,R12 CALL 0x0011d4e0 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011ca92 MOV RDI,R12 CALL 0x00117560 MOV RDI,R12 CALL 0x0011d4e0 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011cb68 MOV RDI,R12 CALL 0x00117560 MOV RDI,R12 CALL 0x0011d4e0 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011ccf4 MOV RDI,R12 CALL 0x00117560 MOV RDI,R12 CALL 0x0011d4e0 MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011cdb2 MOV RDI,R12 CALL 0x00117560 LAB_0011ca7d: CMP EBP,R13D SETG AL ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&) */ bool __thiscall Overworld::generate(Overworld *this,vec *param_1,VoxelStorage *param_2) { pthread_mutex_t *__mutex; int iVar1; int iVar2; iVar1 = *(int *)(param_1 + 4); iVar2 = *(int *)(this + 0x340); if (iVar2 < iVar1) { std::array<unsigned_short,4096ul>::fill((array<unsigned_short,4096ul> *)param_2,&NULL_VOXEL_ID); __mutex = (pthread_mutex_t *)(this + 0x550); std::mutex::lock((mutex *)&__mutex->__data); generate_terrain(this,param_1,param_2); pthread_mutex_unlock(__mutex); std::mutex::lock((mutex *)&__mutex->__data); generate_surface(this,param_1,param_2); pthread_mutex_unlock(__mutex); std::mutex::lock((mutex *)&__mutex->__data); generate_caves(this,param_1,param_2); pthread_mutex_unlock(__mutex); std::mutex::lock((mutex *)&__mutex->__data); generate_features(this,param_1,param_2); pthread_mutex_unlock(__mutex); } return iVar2 < iVar1; }
31,559
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&)
untodesu[P]voxelius/game/server/overworld.cc
bool Overworld::generate(const chunk_pos &cpos, VoxelStorage &voxels) { if(cpos.y <= m_bottommost_chunk.get_value()) { // If the player asks the generator // to generate a lot of stuff below // the surface, it will happily chew // through all the server threads return false; } voxels.fill(NULL_VOXEL_ID); m_mutex.lock(); generate_terrain(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_surface(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_caves(cpos, voxels); m_mutex.unlock(); m_mutex.lock(); generate_features(cpos, voxels); m_mutex.unlock(); return true; }
O3
cpp
Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl 0x4(%rsi), %ebp movl 0x340(%rdi), %r13d cmpl %r13d, %ebp jle 0x1f707 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl $0x2000, %edx # imm = 0x2000 movq %rbx, %rdi xorl %esi, %esi callq 0x16370 leaq 0x550(%r15), %r12 movq %r12, %rdi callq 0x169f0 testl %eax, %eax jne 0x1f71c movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1f724 movq %r12, %rdi callq 0x16500 movq %r12, %rdi callq 0x169f0 testl %eax, %eax jne 0x1f71c movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1f7e8 movq %r12, %rdi callq 0x16500 movq %r12, %rdi callq 0x169f0 testl %eax, %eax jne 0x1f71c movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1f966 movq %r12, %rdi callq 0x16500 movq %r12, %rdi callq 0x169f0 testl %eax, %eax jne 0x1f71c movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1fa16 movq %r12, %rdi callq 0x16500 cmpl %r13d, %ebp setg %al addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl %eax, %edi callq 0x16470 nop
_ZN9Overworld8generateERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, [rsi+4] mov r13d, [rdi+340h] cmp ebp, r13d jle loc_1F707 mov rbx, rdx mov r14, rsi mov r15, rdi mov edx, 2000h mov rdi, rbx xor esi, esi call _memset lea r12, [r15+550h] mov rdi, r12 call _pthread_mutex_lock test eax, eax jnz loc_1F71C mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld16generate_terrainERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_terrain(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12 call _pthread_mutex_lock test eax, eax jnz short loc_1F71C mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld16generate_surfaceERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_surface(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12 call _pthread_mutex_lock test eax, eax jnz short loc_1F71C mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld14generate_cavesERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_caves(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock mov rdi, r12 call _pthread_mutex_lock test eax, eax jnz short loc_1F71C mov rdi, r15 mov rsi, r14 mov rdx, rbx call _ZN9Overworld17generate_featuresERKN3glm3vecILi3EiLNS0_9qualifierE0EEER12VoxelStorage; Overworld::generate_features(glm::vec<3,int,(glm::qualifier)0> const&,VoxelStorage &) mov rdi, r12 call _pthread_mutex_unlock loc_1F707: cmp ebp, r13d setnle al add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1F71C: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
bool Overworld::generate(long long a1, long long a2, long long a3) { int v3; // ebp int v4; // r13d int v6; // eax v3 = *(_DWORD *)(a2 + 4); v4 = *(_DWORD *)(a1 + 832); if ( v3 > v4 ) { memset(a3, 0LL, 0x2000LL); v6 = pthread_mutex_lock(a1 + 1360); if ( v6 ) goto LABEL_8; Overworld::generate_terrain(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); v6 = pthread_mutex_lock(a1 + 1360); if ( v6 || (Overworld::generate_surface(a1, a2, a3), pthread_mutex_unlock(a1 + 1360), (v6 = pthread_mutex_lock(a1 + 1360)) != 0) || (Overworld::generate_caves(a1, a2, a3), pthread_mutex_unlock(a1 + 1360), (v6 = pthread_mutex_lock(a1 + 1360)) != 0) ) { LABEL_8: std::__throw_system_error(v6); } Overworld::generate_features(a1, a2, a3); pthread_mutex_unlock(a1 + 1360); } return v3 > v4; }
generate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,dword ptr [RSI + 0x4] MOV R13D,dword ptr [RDI + 0x340] CMP EBP,R13D JLE 0x0011f707 MOV RBX,RDX MOV R14,RSI MOV R15,RDI MOV EDX,0x2000 MOV RDI,RBX XOR ESI,ESI CALL 0x00116370 LEA R12,[R15 + 0x550] MOV RDI,R12 CALL 0x001169f0 TEST EAX,EAX JNZ 0x0011f71c MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011f724 MOV RDI,R12 CALL 0x00116500 MOV RDI,R12 CALL 0x001169f0 TEST EAX,EAX JNZ 0x0011f71c MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011f7e8 MOV RDI,R12 CALL 0x00116500 MOV RDI,R12 CALL 0x001169f0 TEST EAX,EAX JNZ 0x0011f71c MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011f966 MOV RDI,R12 CALL 0x00116500 MOV RDI,R12 CALL 0x001169f0 TEST EAX,EAX JNZ 0x0011f71c MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011fa16 MOV RDI,R12 CALL 0x00116500 LAB_0011f707: CMP EBP,R13D SETG AL ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011f71c: MOV EDI,EAX CALL 0x00116470
/* Overworld::generate(glm::vec<3, int, (glm::qualifier)0> const&, VoxelStorage&) */ bool __thiscall Overworld::generate(Overworld *this,vec *param_1,VoxelStorage *param_2) { pthread_mutex_t *__mutex; int iVar1; int iVar2; int iVar3; iVar1 = *(int *)(param_1 + 4); iVar2 = *(int *)(this + 0x340); if (iVar1 <= iVar2) { LAB_0011f707: return iVar2 < iVar1; } memset(param_2,0,0x2000); __mutex = (pthread_mutex_t *)(this + 0x550); iVar3 = pthread_mutex_lock(__mutex); if (iVar3 == 0) { generate_terrain(this,param_1,param_2); pthread_mutex_unlock(__mutex); iVar3 = pthread_mutex_lock(__mutex); if (iVar3 == 0) { generate_surface(this,param_1,param_2); pthread_mutex_unlock(__mutex); iVar3 = pthread_mutex_lock(__mutex); if (iVar3 == 0) { generate_caves(this,param_1,param_2); pthread_mutex_unlock(__mutex); iVar3 = pthread_mutex_lock(__mutex); if (iVar3 == 0) { generate_features(this,param_1,param_2); pthread_mutex_unlock(__mutex); goto LAB_0011f707; } } } } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar3); }
31,560
escape_string_for_mysql
eloqsql/mysys/charset.c
size_t escape_string_for_mysql(CHARSET_INFO *charset_info, char *to, size_t to_length, const char *from, size_t length, my_bool *overflow) { const char *to_start= to; const char *end, *to_end=to_start + (to_length ? to_length-1 : 2*length); *overflow= FALSE; for (end= from + length; from < end; from++) { char escape= 0; #ifdef USE_MB int tmp_length= my_ci_charlen(charset_info, (const uchar *) from, (const uchar *) end); if (tmp_length > 1) { if (to + tmp_length > to_end) { *overflow= TRUE; break; } while (tmp_length--) *to++= *from++; from--; continue; } /* If the next character appears to begin a multi-byte character, we escape that first byte of that apparent multi-byte character. (The character just looks like a multi-byte character -- if it were actually a multi-byte character, it would have been passed through in the test above.) Without this check, we can create a problem by converting an invalid multi-byte character into a valid one. For example, 0xbf27 is not a valid GBK character, but 0xbf5c is. (0x27 = ', 0x5c = \) */ if (tmp_length < 1) /* Bad byte sequence */ escape= *from; else #endif switch (*from) { case 0: /* Must be escaped for 'mysql' */ escape= '0'; break; case '\n': /* Must be escaped for logs */ escape= 'n'; break; case '\r': escape= 'r'; break; case '\\': escape= '\\'; break; case '\'': escape= '\''; break; case '"': /* Better safe than sorry */ escape= '"'; break; case '\032': /* This gives problems on Win32 */ escape= 'Z'; break; } if (escape) { if (to + 2 > to_end) { *overflow= TRUE; break; } *to++= '\\'; *to++= escape; } else { if (to + 1 > to_end) { *overflow= TRUE; break; } *to++= *from; } } *to= 0; return (size_t) (to - to_start); }
O0
c
escape_string_for_mysql: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x58(%rbp) cmpq $0x0, -0x18(%rbp) je 0x2b855 movq -0x18(%rbp), %rax subq $0x1, %rax movq %rax, -0x60(%rbp) jmp 0x2b860 movq -0x28(%rbp), %rax shlq %rax movq %rax, -0x60(%rbp) movq -0x58(%rbp), %rax movq -0x60(%rbp), %rcx addq %rcx, %rax movq %rax, -0x48(%rbp) movq -0x30(%rbp), %rax movb $0x0, (%rax) movq -0x20(%rbp), %rax addq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rax cmpq -0x40(%rbp), %rax jae 0x2ba1f movb $0x0, -0x49(%rbp) movq -0x8(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x40(%rbp), %rdx callq 0x2ba40 movl %eax, -0x50(%rbp) cmpl $0x1, -0x50(%rbp) jle 0x2b912 movq -0x10(%rbp), %rax movslq -0x50(%rbp), %rcx addq %rcx, %rax cmpq -0x48(%rbp), %rax jbe 0x2b8cb movq -0x30(%rbp), %rax movb $0x1, (%rax) jmp 0x2ba1f jmp 0x2b8cd movl -0x50(%rbp), %eax movl %eax, %ecx addl $-0x1, %ecx movl %ecx, -0x50(%rbp) cmpl $0x0, %eax je 0x2b901 movq -0x20(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x20(%rbp) movb (%rax), %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x2b8cd movq -0x20(%rbp), %rax addq $-0x1, %rax movq %rax, -0x20(%rbp) jmp 0x2ba0e cmpl $0x1, -0x50(%rbp) jge 0x2b923 movq -0x20(%rbp), %rax movb (%rax), %al movb %al, -0x49(%rbp) jmp 0x2b999 movq -0x20(%rbp), %rax movsbl (%rax), %eax movl %eax, -0x64(%rbp) testl %eax, %eax je 0x2b96f jmp 0x2b933 movl -0x64(%rbp), %eax subl $0xa, %eax je 0x2b975 jmp 0x2b93d movl -0x64(%rbp), %eax subl $0xd, %eax je 0x2b97b jmp 0x2b947 movl -0x64(%rbp), %eax subl $0x1a, %eax je 0x2b993 jmp 0x2b951 movl -0x64(%rbp), %eax subl $0x22, %eax je 0x2b98d jmp 0x2b95b movl -0x64(%rbp), %eax subl $0x27, %eax je 0x2b987 jmp 0x2b965 movl -0x64(%rbp), %eax subl $0x5c, %eax je 0x2b981 jmp 0x2b997 movb $0x30, -0x49(%rbp) jmp 0x2b997 movb $0x6e, -0x49(%rbp) jmp 0x2b997 movb $0x72, -0x49(%rbp) jmp 0x2b997 movb $0x5c, -0x49(%rbp) jmp 0x2b997 movb $0x27, -0x49(%rbp) jmp 0x2b997 movb $0x22, -0x49(%rbp) jmp 0x2b997 movb $0x5a, -0x49(%rbp) jmp 0x2b999 cmpb $0x0, -0x49(%rbp) je 0x2b9de movq -0x10(%rbp), %rax addq $0x2, %rax cmpq -0x48(%rbp), %rax jbe 0x2b9b6 movq -0x30(%rbp), %rax movb $0x1, (%rax) jmp 0x2ba1f movq -0x10(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x10(%rbp) movb $0x5c, (%rax) movb -0x49(%rbp), %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x2ba0c movq -0x10(%rbp), %rax addq $0x1, %rax cmpq -0x48(%rbp), %rax jbe 0x2b9f5 movq -0x30(%rbp), %rax movb $0x1, (%rax) jmp 0x2ba1f movq -0x20(%rbp), %rax movb (%rax), %cl movq -0x10(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x10(%rbp) movb %cl, (%rax) jmp 0x2ba0e movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) jmp 0x2b882 movq -0x10(%rbp), %rax movb $0x0, (%rax) movq -0x10(%rbp), %rax movq -0x38(%rbp), %rcx subq %rcx, %rax addq $0x70, %rsp popq %rbp retq nopw (%rax,%rax)
escape_string_for_mysql: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_10] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_58], rax cmp [rbp+var_18], 0 jz short loc_2B855 mov rax, [rbp+var_18] sub rax, 1 mov [rbp+var_60], rax jmp short loc_2B860 loc_2B855: mov rax, [rbp+var_28] shl rax, 1 mov [rbp+var_60], rax loc_2B860: mov rax, [rbp+var_58] mov rcx, [rbp+var_60] add rax, rcx mov [rbp+var_48], rax mov rax, [rbp+var_30] mov byte ptr [rax], 0 mov rax, [rbp+var_20] add rax, [rbp+var_28] mov [rbp+var_40], rax loc_2B882: mov rax, [rbp+var_20] cmp rax, [rbp+var_40] jnb loc_2BA1F mov [rbp+var_49], 0 mov rdi, [rbp+var_8] mov rsi, [rbp+var_20] mov rdx, [rbp+var_40] call my_ci_charlen mov [rbp+var_50], eax cmp [rbp+var_50], 1 jle short loc_2B912 mov rax, [rbp+var_10] movsxd rcx, [rbp+var_50] add rax, rcx cmp rax, [rbp+var_48] jbe short loc_2B8CB mov rax, [rbp+var_30] mov byte ptr [rax], 1 jmp loc_2BA1F loc_2B8CB: jmp short $+2 loc_2B8CD: mov eax, [rbp+var_50] mov ecx, eax add ecx, 0FFFFFFFFh mov [rbp+var_50], ecx cmp eax, 0 jz short loc_2B901 mov rax, [rbp+var_20] mov rcx, rax add rcx, 1 mov [rbp+var_20], rcx mov cl, [rax] mov rax, [rbp+var_10] mov rdx, rax add rdx, 1 mov [rbp+var_10], rdx mov [rax], cl jmp short loc_2B8CD loc_2B901: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_20], rax jmp loc_2BA0E loc_2B912: cmp [rbp+var_50], 1 jge short loc_2B923 mov rax, [rbp+var_20] mov al, [rax] mov [rbp+var_49], al jmp short loc_2B999 loc_2B923: mov rax, [rbp+var_20] movsx eax, byte ptr [rax] mov [rbp+var_64], eax test eax, eax jz short loc_2B96F jmp short $+2 loc_2B933: mov eax, [rbp+var_64] sub eax, 0Ah jz short loc_2B975 jmp short $+2 loc_2B93D: mov eax, [rbp+var_64] sub eax, 0Dh jz short loc_2B97B jmp short $+2 loc_2B947: mov eax, [rbp+var_64] sub eax, 1Ah jz short loc_2B993 jmp short $+2 loc_2B951: mov eax, [rbp+var_64] sub eax, 22h ; '"' jz short loc_2B98D jmp short $+2 loc_2B95B: mov eax, [rbp+var_64] sub eax, 27h ; ''' jz short loc_2B987 jmp short $+2 loc_2B965: mov eax, [rbp+var_64] sub eax, 5Ch ; '\' jz short loc_2B981 jmp short loc_2B997 loc_2B96F: mov [rbp+var_49], 30h ; '0' jmp short loc_2B997 loc_2B975: mov [rbp+var_49], 6Eh ; 'n' jmp short loc_2B997 loc_2B97B: mov [rbp+var_49], 72h ; 'r' jmp short loc_2B997 loc_2B981: mov [rbp+var_49], 5Ch ; '\' jmp short loc_2B997 loc_2B987: mov [rbp+var_49], 27h ; ''' jmp short loc_2B997 loc_2B98D: mov [rbp+var_49], 22h ; '"' jmp short loc_2B997 loc_2B993: mov [rbp+var_49], 5Ah ; 'Z' loc_2B997: jmp short $+2 loc_2B999: cmp [rbp+var_49], 0 jz short loc_2B9DE mov rax, [rbp+var_10] add rax, 2 cmp rax, [rbp+var_48] jbe short loc_2B9B6 mov rax, [rbp+var_30] mov byte ptr [rax], 1 jmp short loc_2BA1F loc_2B9B6: mov rax, [rbp+var_10] mov rcx, rax add rcx, 1 mov [rbp+var_10], rcx mov byte ptr [rax], 5Ch ; '\' mov cl, [rbp+var_49] mov rax, [rbp+var_10] mov rdx, rax add rdx, 1 mov [rbp+var_10], rdx mov [rax], cl jmp short loc_2BA0C loc_2B9DE: mov rax, [rbp+var_10] add rax, 1 cmp rax, [rbp+var_48] jbe short loc_2B9F5 mov rax, [rbp+var_30] mov byte ptr [rax], 1 jmp short loc_2BA1F loc_2B9F5: mov rax, [rbp+var_20] mov cl, [rax] mov rax, [rbp+var_10] mov rdx, rax add rdx, 1 mov [rbp+var_10], rdx mov [rax], cl loc_2BA0C: jmp short $+2 loc_2BA0E: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax jmp loc_2B882 loc_2BA1F: mov rax, [rbp+var_10] mov byte ptr [rax], 0 mov rax, [rbp+var_10] mov rcx, [rbp+var_38] sub rax, rcx add rsp, 70h pop rbp retn
_BYTE * escape_string_for_mysql(long long a1, char *a2, long long a3, char *a4, long long a5, _BYTE *a6) { char *v7; // rax char v8; // cl char *v9; // rax char *v10; // rax char *v11; // rax int v13; // [rsp+Ch] [rbp-64h] long long v14; // [rsp+10h] [rbp-60h] int v15; // [rsp+20h] [rbp-50h] char v16; // [rsp+27h] [rbp-49h] unsigned long long v17; // [rsp+28h] [rbp-48h] unsigned long long v18; // [rsp+30h] [rbp-40h] char *v20; // [rsp+50h] [rbp-20h] char *v21; // [rsp+60h] [rbp-10h] v21 = a2; v20 = a4; if ( a3 ) v14 = a3 - 1; else v14 = 2 * a5; v17 = (unsigned long long)&a2[v14]; *a6 = 0; v18 = (unsigned long long)&a4[a5]; while ( (unsigned long long)v20 < v18 ) { v16 = 0; v15 = my_ci_charlen(a1, v20, v18); if ( v15 <= 1 ) { if ( v15 >= 1 ) { v13 = *v20; if ( *v20 ) { switch ( v13 ) { case 10: v16 = 110; break; case 13: v16 = 114; break; case 26: v16 = 90; break; case 34: v16 = 34; break; case 39: v16 = 39; break; case 92: v16 = 92; break; } } else { v16 = 48; } } else { v16 = *v20; } if ( v16 ) { if ( (unsigned long long)(v21 + 2) > v17 ) { *a6 = 1; break; } *v21 = 92; v10 = v21 + 1; v21 += 2; *v10 = v16; } else { if ( (unsigned long long)(v21 + 1) > v17 ) { *a6 = 1; break; } v11 = v21++; *v11 = *v20; } } else { if ( (unsigned long long)&v21[v15] > v17 ) { *a6 = 1; break; } while ( v15-- ) { v7 = v20++; v8 = *v7; v9 = v21++; *v9 = v8; } --v20; } ++v20; } *v21 = 0; return (_BYTE *)(v21 - a2); }
escape_string_for_mysql: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x58],RAX CMP qword ptr [RBP + -0x18],0x0 JZ 0x0012b855 MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x1 MOV qword ptr [RBP + -0x60],RAX JMP 0x0012b860 LAB_0012b855: MOV RAX,qword ptr [RBP + -0x28] SHL RAX,0x1 MOV qword ptr [RBP + -0x60],RAX LAB_0012b860: MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x60] ADD RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX LAB_0012b882: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x40] JNC 0x0012ba1f MOV byte ptr [RBP + -0x49],0x0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x40] CALL 0x0012ba40 MOV dword ptr [RBP + -0x50],EAX CMP dword ptr [RBP + -0x50],0x1 JLE 0x0012b912 MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x50] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x48] JBE 0x0012b8cb MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX],0x1 JMP 0x0012ba1f LAB_0012b8cb: JMP 0x0012b8cd LAB_0012b8cd: MOV EAX,dword ptr [RBP + -0x50] MOV ECX,EAX ADD ECX,-0x1 MOV dword ptr [RBP + -0x50],ECX CMP EAX,0x0 JZ 0x0012b901 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x20],RCX MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL JMP 0x0012b8cd LAB_0012b901: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x0012ba0e LAB_0012b912: CMP dword ptr [RBP + -0x50],0x1 JGE 0x0012b923 MOV RAX,qword ptr [RBP + -0x20] MOV AL,byte ptr [RAX] MOV byte ptr [RBP + -0x49],AL JMP 0x0012b999 LAB_0012b923: MOV RAX,qword ptr [RBP + -0x20] MOVSX EAX,byte ptr [RAX] MOV dword ptr [RBP + -0x64],EAX TEST EAX,EAX JZ 0x0012b96f JMP 0x0012b933 LAB_0012b933: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0xa JZ 0x0012b975 JMP 0x0012b93d LAB_0012b93d: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0xd JZ 0x0012b97b JMP 0x0012b947 LAB_0012b947: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0x1a JZ 0x0012b993 JMP 0x0012b951 LAB_0012b951: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0x22 JZ 0x0012b98d JMP 0x0012b95b LAB_0012b95b: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0x27 JZ 0x0012b987 JMP 0x0012b965 LAB_0012b965: MOV EAX,dword ptr [RBP + -0x64] SUB EAX,0x5c JZ 0x0012b981 JMP 0x0012b997 LAB_0012b96f: MOV byte ptr [RBP + -0x49],0x30 JMP 0x0012b997 LAB_0012b975: MOV byte ptr [RBP + -0x49],0x6e JMP 0x0012b997 LAB_0012b97b: MOV byte ptr [RBP + -0x49],0x72 JMP 0x0012b997 LAB_0012b981: MOV byte ptr [RBP + -0x49],0x5c JMP 0x0012b997 LAB_0012b987: MOV byte ptr [RBP + -0x49],0x27 JMP 0x0012b997 LAB_0012b98d: MOV byte ptr [RBP + -0x49],0x22 JMP 0x0012b997 LAB_0012b993: MOV byte ptr [RBP + -0x49],0x5a LAB_0012b997: JMP 0x0012b999 LAB_0012b999: CMP byte ptr [RBP + -0x49],0x0 JZ 0x0012b9de MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x48] JBE 0x0012b9b6 MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX],0x1 JMP 0x0012ba1f LAB_0012b9b6: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x10],RCX MOV byte ptr [RAX],0x5c MOV CL,byte ptr [RBP + -0x49] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL JMP 0x0012ba0c LAB_0012b9de: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 CMP RAX,qword ptr [RBP + -0x48] JBE 0x0012b9f5 MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX],0x1 JMP 0x0012ba1f LAB_0012b9f5: MOV RAX,qword ptr [RBP + -0x20] MOV CL,byte ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x10],RDX MOV byte ptr [RAX],CL LAB_0012ba0c: JMP 0x0012ba0e LAB_0012ba0e: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX JMP 0x0012b882 LAB_0012ba1f: MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x38] SUB RAX,RCX ADD RSP,0x70 POP RBP RET
long escape_string_for_mysql (int8 param_1,char *param_2,long param_3,char *param_4,long param_5, int1 *param_6) { char cVar1; char *pcVar2; long local_68; int local_58; char local_51; char *local_28; char *local_18; if (param_3 == 0) { local_68 = param_5 << 1; } else { local_68 = param_3 + -1; } pcVar2 = param_2 + local_68; *param_6 = 0; local_28 = param_4; local_18 = param_2; do { if (param_4 + param_5 <= local_28) { LAB_0012ba1f: *local_18 = '\0'; return (long)local_18 - (long)param_2; } local_51 = '\0'; local_58 = my_ci_charlen(param_1,local_28,param_4 + param_5); if (local_58 < 2) { if (local_58 < 1) { local_51 = *local_28; } else { cVar1 = *local_28; if (cVar1 == '\0') { local_51 = '0'; } else if (cVar1 == '\n') { local_51 = 'n'; } else if (cVar1 == '\r') { local_51 = 'r'; } else if (cVar1 == '\x1a') { local_51 = 'Z'; } else if (cVar1 == '\"') { local_51 = '\"'; } else if (cVar1 == '\'') { local_51 = '\''; } else if (cVar1 == '\\') { local_51 = '\\'; } } if (local_51 == '\0') { if (pcVar2 < local_18 + 1) { *param_6 = 1; goto LAB_0012ba1f; } *local_18 = *local_28; local_18 = local_18 + 1; } else { if (pcVar2 < local_18 + 2) { *param_6 = 1; goto LAB_0012ba1f; } *local_18 = '\\'; local_18[1] = local_51; local_18 = local_18 + 2; } } else { if (pcVar2 < local_18 + local_58) { *param_6 = 1; goto LAB_0012ba1f; } while (local_58 != 0) { *local_18 = *local_28; local_58 = local_58 + -1; local_28 = local_28 + 1; local_18 = local_18 + 1; } local_28 = local_28 + -1; } local_28 = local_28 + 1; } while( true ); }
31,561
my_collation_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_collation_get_by_name(MY_CHARSET_LOADER *loader, const char *name, myf flags) { uint cs_number; CHARSET_INFO *cs; my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_collation_number(name,flags); my_charset_loader_init_mysys(loader); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), name, index_file); } return cs; }
O0
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movq %rdx, -0x238(%rbp) leaq 0x3b8110(%rip), %rdi # 0x4186c4 leaq -0x90b(%rip), %rsi # 0x5fcb0 callq 0x262e0 movq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi callq 0x5fc00 movl %eax, -0x23c(%rbp) movq -0x228(%rbp), %rdi callq 0x5f2d0 cmpl $0x0, -0x23c(%rbp) je 0x60610 movq -0x228(%rbp), %rdi movl -0x23c(%rbp), %esi movq -0x238(%rbp), %rdx callq 0x60300 movq %rax, -0x250(%rbp) jmp 0x6061b xorl %eax, %eax movq %rax, -0x250(%rbp) jmp 0x6061b movq -0x250(%rbp), %rax movq %rax, -0x248(%rbp) cmpq $0x0, -0x248(%rbp) jne 0x6067e movq -0x238(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x6067e leaq -0x220(%rbp), %rdi callq 0x5f970 movq %rax, %rdi leaq 0x4f1e3(%rip), %rsi # 0xaf83d callq 0x26330 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x1c, %edi movl $0x4, %esi movb $0x0, %al callq 0x64910 movq -0x248(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x606ae movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x26360 nopw %cs:(%rax,%rax)
my_collation_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_238], rdx lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov rsi, [rbp+var_238] call get_collation_number mov [rbp+var_23C], eax mov rdi, [rbp+var_228] call my_charset_loader_init_mysys cmp [rbp+var_23C], 0 jz short loc_60610 mov rdi, [rbp+var_228] mov esi, [rbp+var_23C] mov rdx, [rbp+var_238] call get_internal_charset mov [rbp+var_250], rax jmp short loc_6061B loc_60610: xor eax, eax mov [rbp+var_250], rax jmp short $+2 loc_6061B: mov rax, [rbp+var_250] mov [rbp+var_248], rax cmp [rbp+var_248], 0 jnz short loc_6067E mov rax, [rbp+var_238] and rax, 10h cmp rax, 0 jz short loc_6067E lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 1Ch mov esi, 4 mov al, 0 call my_error loc_6067E: mov rax, [rbp+var_248] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_606AE mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_606AE: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { _BYTE *charsets_dir; // rax int v4; // r8d int v5; // r9d long long internal_charset; // [rsp+10h] [rbp-250h] unsigned int collation_number; // [rsp+24h] [rbp-23Ch] _BYTE v10[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); my_charset_loader_init_mysys(a1); if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( !internal_charset && (a3 & 0x10) != 0 ) { charsets_dir = get_charsets_dir(v10); stpcpy(charsets_dir, "Index.xml"); my_error(28, 4, a2, (unsigned int)v10, v4, v5); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV qword ptr [RBP + -0x238],RDX LEA RDI,[0x5186c4] LEA RSI,[0x15fcb0] CALL 0x001262e0 MOV RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] CALL 0x0015fc00 MOV dword ptr [RBP + -0x23c],EAX MOV RDI,qword ptr [RBP + -0x228] CALL 0x0015f2d0 CMP dword ptr [RBP + -0x23c],0x0 JZ 0x00160610 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x23c] MOV RDX,qword ptr [RBP + -0x238] CALL 0x00160300 MOV qword ptr [RBP + -0x250],RAX JMP 0x0016061b LAB_00160610: XOR EAX,EAX MOV qword ptr [RBP + -0x250],RAX JMP 0x0016061b LAB_0016061b: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x248],RAX CMP qword ptr [RBP + -0x248],0x0 JNZ 0x0016067e MOV RAX,qword ptr [RBP + -0x238] AND RAX,0x10 CMP RAX,0x0 JZ 0x0016067e LEA RDI,[RBP + -0x220] CALL 0x0015f970 MOV RDI,RAX LEA RSI,[0x1af83d] CALL 0x00126330 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x1c MOV ESI,0x4 MOV AL,0x0 CALL 0x00164910 LAB_0016067e: MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001606ae MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_001606ae: CALL 0x00126360
long my_collation_get_by_name(int8 param_1,int8 param_2,ulong param_3) { int iVar1; char *__dest; long in_FS_OFFSET; long local_258; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); my_charset_loader_init_mysys(param_1); if (iVar1 == 0) { local_258 = 0; } else { local_258 = get_internal_charset(param_1,iVar1,param_3); } if ((local_258 == 0) && ((param_3 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x1c,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_258; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,562
sha256_final
corpus-core[P]colibri-stateless/build_O2/_deps/blst-src/src/sha256.h
static void sha256_final(unsigned char md[32], SHA256_CTX *ctx) { unsigned long long bits = ctx->N * 8; size_t n = ctx->off; unsigned char *tail; ctx->buf[n++] = 0x80; if (n > (sizeof(ctx->buf) - 8)) { sha256_block_data_order(ctx->h, ctx->buf, 1); vec_zero(ctx->buf, sizeof(ctx->buf)); } tail = ctx->buf + sizeof(ctx->buf) - 8; __TOBE32(tail, (unsigned int)(bits >> 32)); __TOBE32(tail + 4, (unsigned int)bits); sha256_block_data_order(ctx->h, ctx->buf, 1); sha256_emit(md, ctx->h); }
O2
c
sha256_final: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movq 0x20(%rsi), %r12 movq 0x68(%rsi), %rax leaq 0x28(%rsi), %r15 movb $-0x80, 0x28(%rsi,%rax) addq $-0x38, %rax cmpq $-0x3a, %rax ja 0x5b38d pushq $0x1 popq %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x5f0c0 pushq $0x40 popq %rsi movq %r15, %rdi callq 0x50ea6 shlq $0x3, %r12 bswapq %r12 movq %r12, 0x60(%rbx) pushq $0x1 popq %rdx movq %rbx, %rdi movq %r15, %rsi callq 0x5f0c0 movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp jmp 0x61420
sha256_final: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rsi mov r14, rdi mov r12, [rsi+20h] mov rax, [rsi+68h] lea r15, [rsi+28h] mov byte ptr [rsi+rax+28h], 80h add rax, 0FFFFFFFFFFFFFFC8h cmp rax, 0FFFFFFFFFFFFFFC6h ja short loc_5B38D push 1 pop rdx mov rdi, rbx mov rsi, r15 call blst_sha256_block_data_order push 40h ; '@' pop rsi mov rdi, r15 call vec_zero loc_5B38D: shl r12, 3 bswap r12 mov [rbx+60h], r12 push 1 pop rdx mov rdi, rbx mov rsi, r15 call blst_sha256_block_data_order mov rdi, r14 mov rsi, rbx pop rbx pop r12 pop r14 pop r15 pop rbp jmp blst_sha256_emit
sha256_final: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV R12,qword ptr [RSI + 0x20] MOV RAX,qword ptr [RSI + 0x68] LEA R15,[RSI + 0x28] MOV byte ptr [RSI + RAX*0x1 + 0x28],0x80 ADD RAX,-0x38 CMP RAX,-0x3a JA 0x0015b38d PUSH 0x1 POP RDX MOV RDI,RBX MOV RSI,R15 CALL 0x0015f0c0 PUSH 0x40 POP RSI MOV RDI,R15 CALL 0x00150ea6 LAB_0015b38d: SHL R12,0x3 BSWAP R12 MOV qword ptr [RBX + 0x60],R12 PUSH 0x1 POP RDX MOV RDI,RBX MOV RSI,R15 CALL 0x0015f0c0 MOV RDI,R14 MOV RSI,RBX POP RBX POP R12 POP R14 POP R15 POP RBP JMP 0x00161420
void sha256_final(int8 param_1,long param_2) { long lVar1; long lVar2; long lVar3; ulong uVar4; lVar2 = *(long *)(param_2 + 0x20); lVar3 = *(long *)(param_2 + 0x68); lVar1 = param_2 + 0x28; *(int1 *)(param_2 + 0x28 + lVar3) = 0x80; if (lVar3 - 0x38U < 0xffffffffffffffc7) { blst_sha256_block_data_order(param_2,lVar1,1); vec_zero(lVar1,0x40); } uVar4 = lVar2 << 3; *(ulong *)(param_2 + 0x60) = uVar4 >> 0x38 | (uVar4 & 0xff000000000000) >> 0x28 | (uVar4 & 0xff0000000000) >> 0x18 | (uVar4 & 0xff00000000) >> 8 | (uVar4 & 0xff000000) << 8 | (uVar4 & 0xff0000) << 0x18 | (uVar4 & 0xff00) << 0x28 | lVar2 << 0x3b; blst_sha256_block_data_order(param_2,lVar1,1); blst_sha256_emit(param_1,param_2); return; }
31,563
LefDefParser::defwStartNonDefaultRules(int)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
int defwStartNonDefaultRules(int count) { defwFunc = DEFW_NDR_START; // Current function of writer if (!defwFile) return DEFW_UNINITIALIZED; if ((defwState >= DEFW_NDR_START) && (defwState <= DEFW_NDR_END)) return DEFW_BAD_ORDER; if (defVersionNum < 5.6) return DEFW_WRONG_VERSION; fprintf(defwFile, "NONDEFAULTRULES %d ;\n", count); defwLines++; defwState = DEFW_NDR_START; defwCounter = count; return DEFW_OK; }
O0
cpp
LefDefParser::defwStartNonDefaultRules(int): pushq %rax movl %edi, (%rsp) leaq 0x9e6d(%rip), %rax # 0x2b168 movl $0x5a, (%rax) leaq 0x9e50(%rip), %rax # 0x2b158 cmpq $0x0, (%rax) jne 0x2131b movl $0x1, 0x4(%rsp) jmp 0x213aa leaq 0x9e42(%rip), %rax # 0x2b164 cmpl $0x5a, (%rax) jl 0x2133d leaq 0x9e36(%rip), %rax # 0x2b164 cmpl $0x5c, (%rax) jg 0x2133d movl $0x2, 0x4(%rsp) jmp 0x213aa movsd 0x1fa3(%rip), %xmm0 # 0x232e8 ucomisd 0x9d63(%rip), %xmm0 # 0x2b0b0 jbe 0x21359 movl $0x5, 0x4(%rsp) jmp 0x213aa leaq 0x9df8(%rip), %rax # 0x2b158 movq (%rax), %rdi movl (%rsp), %edx leaq 0x3f19(%rip), %rsi # 0x25286 movb $0x0, %al callq 0x10f0 leaq 0x9de5(%rip), %rax # 0x2b160 movl (%rax), %ecx addl $0x1, %ecx leaq 0x9dd9(%rip), %rax # 0x2b160 movl %ecx, (%rax) leaq 0x9dd4(%rip), %rax # 0x2b164 movl $0x5a, (%rax) movl (%rsp), %ecx leaq 0x9dd8(%rip), %rax # 0x2b178 movl %ecx, (%rax) movl $0x0, 0x4(%rsp) movl 0x4(%rsp), %eax popq %rcx retq
_ZN12LefDefParser24defwStartNonDefaultRulesEi: push rax mov [rsp+8+var_8], edi lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc mov dword ptr [rax], 5Ah ; 'Z' lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile cmp qword ptr [rax], 0 jnz short loc_2131B mov [rsp+8+var_4], 1 jmp loc_213AA loc_2131B: lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 5Ah ; 'Z' jl short loc_2133D lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState cmp dword ptr [rax], 5Ch ; '\' jg short loc_2133D mov [rsp+8+var_4], 2 jmp short loc_213AA loc_2133D: movsd xmm0, cs:dbl_232E8 ucomisd xmm0, cs:_ZN12LefDefParserL13defVersionNumE; LefDefParser::defVersionNum jbe short loc_21359 mov [rsp+8+var_4], 5 jmp short loc_213AA loc_21359: lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile mov rdi, [rax] mov edx, [rsp+8+var_8] lea rsi, aNondefaultrule_2; "NONDEFAULTRULES %d ;\n" mov al, 0 call _fprintf lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov ecx, [rax] add ecx, 1 lea rax, _ZN12LefDefParser9defwLinesE; LefDefParser::defwLines mov [rax], ecx lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState mov dword ptr [rax], 5Ah ; 'Z' mov ecx, [rsp+8+var_8] lea rax, _ZN12LefDefParser11defwCounterE; LefDefParser::defwCounter mov [rax], ecx mov [rsp+8+var_4], 0 loc_213AA: mov eax, [rsp+8+var_4] pop rcx retn
long long LefDefParser::defwStartNonDefaultRules(LefDefParser *this) { LefDefParser::defwFunc = 90; if ( LefDefParser::defwFile ) { if ( LefDefParser::defwState < 90 || LefDefParser::defwState > 92 ) { if ( *(double *)&LefDefParser::defVersionNum >= 5.6 ) { fprintf(LefDefParser::defwFile, "NONDEFAULTRULES %d ;\n", (_DWORD)this); ++LefDefParser::defwLines; LefDefParser::defwState = 90; LefDefParser::defwCounter = (_DWORD)this; return 0; } else { return 5; } } else { return 2; } } else { return 1; } }
defwStartNonDefaultRules: PUSH RAX MOV dword ptr [RSP],EDI LEA RAX,[0x12b168] MOV dword ptr [RAX],0x5a LEA RAX,[0x12b158] CMP qword ptr [RAX],0x0 JNZ 0x0012131b MOV dword ptr [RSP + 0x4],0x1 JMP 0x001213aa LAB_0012131b: LEA RAX,[0x12b164] CMP dword ptr [RAX],0x5a JL 0x0012133d LEA RAX,[0x12b164] CMP dword ptr [RAX],0x5c JG 0x0012133d MOV dword ptr [RSP + 0x4],0x2 JMP 0x001213aa LAB_0012133d: MOVSD XMM0,qword ptr [0x001232e8] UCOMISD XMM0,qword ptr [0x0012b0b0] JBE 0x00121359 MOV dword ptr [RSP + 0x4],0x5 JMP 0x001213aa LAB_00121359: LEA RAX,[0x12b158] MOV RDI,qword ptr [RAX] MOV EDX,dword ptr [RSP] LEA RSI,[0x125286] MOV AL,0x0 CALL 0x001010f0 LEA RAX,[0x12b160] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0x12b160] MOV dword ptr [RAX],ECX LEA RAX,[0x12b164] MOV dword ptr [RAX],0x5a MOV ECX,dword ptr [RSP] LEA RAX,[0x12b178] MOV dword ptr [RAX],ECX MOV dword ptr [RSP + 0x4],0x0 LAB_001213aa: MOV EAX,dword ptr [RSP + 0x4] POP RCX RET
/* LefDefParser::defwStartNonDefaultRules(int) */ int4 LefDefParser::defwStartNonDefaultRules(int param_1) { int4 local_4; defwFunc = 0x5a; if (defwFile == (FILE *)0x0) { local_4 = 1; } else if ((defwState < 0x5a) || (0x5c < defwState)) { if (DAT_001232e8 <= defVersionNum) { fprintf(defwFile,"NONDEFAULTRULES %d ;\n",param_1); defwLines = defwLines + 1; defwState = 0x5a; local_4 = 0; defwCounter = param_1; } else { local_4 = 5; } } else { local_4 = 2; } return local_4; }
31,564
js_new_module_def
bluesky950520[P]quickjs/quickjs.c
static JSModuleDef *js_new_module_def(JSContext *ctx, JSAtom name) { JSModuleDef *m; m = js_mallocz(ctx, sizeof(*m)); if (!m) { JS_FreeAtom(ctx, name); return NULL; } m->header.ref_count = 1; m->module_name = name; m->module_ns = JS_UNDEFINED; m->func_obj = JS_UNDEFINED; m->eval_exception = JS_UNDEFINED; m->meta_obj = JS_UNDEFINED; m->promise = JS_UNDEFINED; m->resolving_funcs[0] = JS_UNDEFINED; m->resolving_funcs[1] = JS_UNDEFINED; list_add_tail(&m->link, &ctx->loaded_modules); return m; }
O0
c
js_new_module_def: subq $0x98, %rsp movq %rdi, 0x88(%rsp) movl %esi, 0x84(%rsp) movq 0x88(%rsp), %rdi movl $0x118, %esi # imm = 0x118 callq 0x20a70 movq %rax, 0x78(%rsp) cmpq $0x0, 0x78(%rsp) jne 0x4832a movq 0x88(%rsp), %rdi movl 0x84(%rsp), %esi callq 0x27d80 movq $0x0, 0x90(%rsp) jmp 0x484a4 movq 0x78(%rsp), %rax movl $0x1, (%rax) movl 0x84(%rsp), %ecx movq 0x78(%rsp), %rax movl %ecx, 0x4(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x68(%rsp) movq $0x3, 0x70(%rsp) movq 0x68(%rsp), %rcx movq %rcx, 0x58(%rax) movq 0x70(%rsp), %rcx movq %rcx, 0x60(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x58(%rsp) movq $0x3, 0x60(%rsp) movq 0x58(%rsp), %rcx movq %rcx, 0x68(%rax) movq 0x60(%rsp), %rcx movq %rcx, 0x70(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x48(%rsp) movq $0x3, 0x50(%rsp) movq 0x48(%rsp), %rcx movq %rcx, 0xf8(%rax) movq 0x50(%rsp), %rcx movq %rcx, 0x100(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x38(%rsp) movq $0x3, 0x40(%rsp) movq 0x38(%rsp), %rcx movq %rcx, 0x108(%rax) movq 0x40(%rsp), %rcx movq %rcx, 0x110(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x28(%rsp) movq $0x3, 0x30(%rsp) movq 0x28(%rsp), %rcx movq %rcx, 0xc0(%rax) movq 0x30(%rsp), %rcx movq %rcx, 0xc8(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x18(%rsp) movq $0x3, 0x20(%rsp) movq 0x18(%rsp), %rcx movq %rcx, 0xd0(%rax) movq 0x20(%rsp), %rcx movq %rcx, 0xd8(%rax) movq 0x78(%rsp), %rax movl $0x0, 0x8(%rsp) movq $0x3, 0x10(%rsp) movq 0x8(%rsp), %rcx movq %rcx, 0xe0(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0xe8(%rax) movq 0x78(%rsp), %rdi addq $0x8, %rdi movq 0x88(%rsp), %rsi addq $0x1e0, %rsi # imm = 0x1E0 callq 0x22790 movq 0x78(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rax addq $0x98, %rsp retq nopw %cs:(%rax,%rax)
js_new_module_def: sub rsp, 98h mov [rsp+98h+var_10], rdi mov [rsp+98h+var_14], esi mov rdi, [rsp+98h+var_10] mov esi, 118h call js_mallocz mov [rsp+98h+var_20], rax cmp [rsp+98h+var_20], 0 jnz short loc_4832A mov rdi, [rsp+98h+var_10] mov esi, [rsp+98h+var_14] call JS_FreeAtom mov [rsp+98h+var_8], 0 jmp loc_484A4 loc_4832A: mov rax, [rsp+98h+var_20] mov dword ptr [rax], 1 mov ecx, [rsp+98h+var_14] mov rax, [rsp+98h+var_20] mov [rax+4], ecx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_30], 0 mov [rsp+98h+var_28], 3 mov rcx, [rsp+98h+var_30] mov [rax+58h], rcx mov rcx, [rsp+98h+var_28] mov [rax+60h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_40], 0 mov [rsp+98h+var_38], 3 mov rcx, [rsp+98h+var_40] mov [rax+68h], rcx mov rcx, [rsp+98h+var_38] mov [rax+70h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_50], 0 mov [rsp+98h+var_48], 3 mov rcx, [rsp+98h+var_50] mov [rax+0F8h], rcx mov rcx, [rsp+98h+var_48] mov [rax+100h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_60], 0 mov [rsp+98h+var_58], 3 mov rcx, [rsp+98h+var_60] mov [rax+108h], rcx mov rcx, [rsp+98h+var_58] mov [rax+110h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_70], 0 mov [rsp+98h+var_68], 3 mov rcx, [rsp+98h+var_70] mov [rax+0C0h], rcx mov rcx, [rsp+98h+var_68] mov [rax+0C8h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_80], 0 mov [rsp+98h+var_78], 3 mov rcx, [rsp+98h+var_80] mov [rax+0D0h], rcx mov rcx, [rsp+98h+var_78] mov [rax+0D8h], rcx mov rax, [rsp+98h+var_20] mov dword ptr [rsp+98h+var_90], 0 mov [rsp+98h+var_88], 3 mov rcx, [rsp+98h+var_90] mov [rax+0E0h], rcx mov rcx, [rsp+98h+var_88] mov [rax+0E8h], rcx mov rdi, [rsp+98h+var_20] add rdi, 8 mov rsi, [rsp+98h+var_10] add rsi, 1E0h call list_add_tail_0 mov rax, [rsp+98h+var_20] mov [rsp+98h+var_8], rax loc_484A4: mov rax, [rsp+98h+var_8] add rsp, 98h retn
long long js_new_module_def(long long a1, unsigned int a2) { long long v3; // [rsp+8h] [rbp-90h] long long v4; // [rsp+18h] [rbp-80h] long long v5; // [rsp+28h] [rbp-70h] long long v6; // [rsp+38h] [rbp-60h] long long v7; // [rsp+48h] [rbp-50h] long long v8; // [rsp+58h] [rbp-40h] long long v9; // [rsp+68h] [rbp-30h] long long v10; // [rsp+78h] [rbp-20h] v10 = js_mallocz(a1, 0x118uLL); if ( v10 ) { *(_DWORD *)v10 = 1; *(_DWORD *)(v10 + 4) = a2; LODWORD(v9) = 0; *(_QWORD *)(v10 + 88) = v9; *(_QWORD *)(v10 + 96) = 3LL; LODWORD(v8) = 0; *(_QWORD *)(v10 + 104) = v8; *(_QWORD *)(v10 + 112) = 3LL; LODWORD(v7) = 0; *(_QWORD *)(v10 + 248) = v7; *(_QWORD *)(v10 + 256) = 3LL; LODWORD(v6) = 0; *(_QWORD *)(v10 + 264) = v6; *(_QWORD *)(v10 + 272) = 3LL; LODWORD(v5) = 0; *(_QWORD *)(v10 + 192) = v5; *(_QWORD *)(v10 + 200) = 3LL; LODWORD(v4) = 0; *(_QWORD *)(v10 + 208) = v4; *(_QWORD *)(v10 + 216) = 3LL; LODWORD(v3) = 0; *(_QWORD *)(v10 + 224) = v3; *(_QWORD *)(v10 + 232) = 3LL; list_add_tail_0(v10 + 8, (_QWORD *)(a1 + 480)); return v10; } else { JS_FreeAtom(a1, a2); return 0LL; } }
js_new_module_def: SUB RSP,0x98 MOV qword ptr [RSP + 0x88],RDI MOV dword ptr [RSP + 0x84],ESI MOV RDI,qword ptr [RSP + 0x88] MOV ESI,0x118 CALL 0x00120a70 MOV qword ptr [RSP + 0x78],RAX CMP qword ptr [RSP + 0x78],0x0 JNZ 0x0014832a MOV RDI,qword ptr [RSP + 0x88] MOV ESI,dword ptr [RSP + 0x84] CALL 0x00127d80 MOV qword ptr [RSP + 0x90],0x0 JMP 0x001484a4 LAB_0014832a: MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RAX],0x1 MOV ECX,dword ptr [RSP + 0x84] MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x68],0x0 MOV qword ptr [RSP + 0x70],0x3 MOV RCX,qword ptr [RSP + 0x68] MOV qword ptr [RAX + 0x58],RCX MOV RCX,qword ptr [RSP + 0x70] MOV qword ptr [RAX + 0x60],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x58],0x0 MOV qword ptr [RSP + 0x60],0x3 MOV RCX,qword ptr [RSP + 0x58] MOV qword ptr [RAX + 0x68],RCX MOV RCX,qword ptr [RSP + 0x60] MOV qword ptr [RAX + 0x70],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x48],0x0 MOV qword ptr [RSP + 0x50],0x3 MOV RCX,qword ptr [RSP + 0x48] MOV qword ptr [RAX + 0xf8],RCX MOV RCX,qword ptr [RSP + 0x50] MOV qword ptr [RAX + 0x100],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x3 MOV RCX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x108],RCX MOV RCX,qword ptr [RSP + 0x40] MOV qword ptr [RAX + 0x110],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x28],0x0 MOV qword ptr [RSP + 0x30],0x3 MOV RCX,qword ptr [RSP + 0x28] MOV qword ptr [RAX + 0xc0],RCX MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RAX + 0xc8],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x3 MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0xd0],RCX MOV RCX,qword ptr [RSP + 0x20] MOV qword ptr [RAX + 0xd8],RCX MOV RAX,qword ptr [RSP + 0x78] MOV dword ptr [RSP + 0x8],0x0 MOV qword ptr [RSP + 0x10],0x3 MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0xe0],RCX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0xe8],RCX MOV RDI,qword ptr [RSP + 0x78] ADD RDI,0x8 MOV RSI,qword ptr [RSP + 0x88] ADD RSI,0x1e0 CALL 0x00122790 MOV RAX,qword ptr [RSP + 0x78] MOV qword ptr [RSP + 0x90],RAX LAB_001484a4: MOV RAX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
int4 * js_new_module_def(long param_1,int4 param_2) { uint uStack_8c; uint uStack_7c; uint uStack_6c; uint uStack_5c; uint uStack_4c; uint uStack_3c; uint uStack_2c; int4 *local_8; local_8 = (int4 *)js_mallocz(param_1,0x118); if (local_8 == (int4 *)0x0) { JS_FreeAtom(param_1,param_2); local_8 = (int4 *)0x0; } else { *local_8 = 1; local_8[1] = param_2; *(ulong *)(local_8 + 0x16) = (ulong)uStack_2c << 0x20; *(int8 *)(local_8 + 0x18) = 3; *(ulong *)(local_8 + 0x1a) = (ulong)uStack_3c << 0x20; *(int8 *)(local_8 + 0x1c) = 3; *(ulong *)(local_8 + 0x3e) = (ulong)uStack_4c << 0x20; *(int8 *)(local_8 + 0x40) = 3; *(ulong *)(local_8 + 0x42) = (ulong)uStack_5c << 0x20; *(int8 *)(local_8 + 0x44) = 3; *(ulong *)(local_8 + 0x30) = (ulong)uStack_6c << 0x20; *(int8 *)(local_8 + 0x32) = 3; *(ulong *)(local_8 + 0x34) = (ulong)uStack_7c << 0x20; *(int8 *)(local_8 + 0x36) = 3; *(ulong *)(local_8 + 0x38) = (ulong)uStack_8c << 0x20; *(int8 *)(local_8 + 0x3a) = 3; list_add_tail(local_8 + 2,param_1 + 0x1e0); } return local_8; }
31,565
js_new_module_def
bluesky950520[P]quickjs/quickjs.c
static JSModuleDef *js_new_module_def(JSContext *ctx, JSAtom name) { JSModuleDef *m; m = js_mallocz(ctx, sizeof(*m)); if (!m) { JS_FreeAtom(ctx, name); return NULL; } m->header.ref_count = 1; m->module_name = name; m->module_ns = JS_UNDEFINED; m->func_obj = JS_UNDEFINED; m->eval_exception = JS_UNDEFINED; m->meta_obj = JS_UNDEFINED; m->promise = JS_UNDEFINED; m->resolving_funcs[0] = JS_UNDEFINED; m->resolving_funcs[1] = JS_UNDEFINED; list_add_tail(&m->link, &ctx->loaded_modules); return m; }
O1
c
js_new_module_def: pushq %rbp pushq %rbx pushq %rax movl %esi, %ebp movq %rdi, %rbx movl $0x118, %esi # imm = 0x118 callq 0xed7d testq %rax, %rax je 0xff96 movl $0x1, (%rax) movl %ebp, 0x4(%rax) andl $0x0, 0x58(%rax) pushq $0x3 popq %rcx movq %rcx, 0x60(%rax) andl $0x0, 0x68(%rax) movq %rcx, 0x70(%rax) andl $0x0, 0xf8(%rax) movq %rcx, 0x100(%rax) andl $0x0, 0x108(%rax) movq %rcx, 0x110(%rax) andl $0x0, 0xc0(%rax) movq %rcx, 0xc8(%rax) andl $0x0, 0xd0(%rax) movq %rcx, 0xd8(%rax) andl $0x0, 0xe0(%rax) movq %rcx, 0xe8(%rax) movq %rax, %rcx addq $0x8, %rcx leaq 0x1e0(%rbx), %rdx movq 0x1e0(%rbx), %rsi movq %rcx, 0x8(%rsi) movq %rsi, 0x8(%rax) movq %rdx, 0x10(%rax) movq %rcx, 0x1e0(%rbx) jmp 0xffa2 movq %rbx, %rdi movl %ebp, %esi callq 0x1fbc4 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %rbp retq
js_new_module_def: push rbp push rbx push rax mov ebp, esi mov rbx, rdi mov esi, 118h call js_mallocz test rax, rax jz loc_FF96 mov dword ptr [rax], 1 mov [rax+4], ebp and dword ptr [rax+58h], 0 push 3 pop rcx mov [rax+60h], rcx and dword ptr [rax+68h], 0 mov [rax+70h], rcx and dword ptr [rax+0F8h], 0 mov [rax+100h], rcx and dword ptr [rax+108h], 0 mov [rax+110h], rcx and dword ptr [rax+0C0h], 0 mov [rax+0C8h], rcx and dword ptr [rax+0D0h], 0 mov [rax+0D8h], rcx and dword ptr [rax+0E0h], 0 mov [rax+0E8h], rcx mov rcx, rax add rcx, 8 lea rdx, [rbx+1E0h] mov rsi, [rbx+1E0h] mov [rsi+8], rcx mov [rax+8], rsi mov [rax+10h], rdx mov [rbx+1E0h], rcx jmp short loc_FFA2 loc_FF96: mov rdi, rbx mov esi, ebp call JS_FreeAtom xor eax, eax loc_FFA2: add rsp, 8 pop rbx pop rbp retn
long long js_new_module_def(long long a1, unsigned int a2) { long long result; // rax long long v3; // rsi result = js_mallocz(a1, 0x118uLL); if ( result ) { *(_DWORD *)result = 1; *(_DWORD *)(result + 4) = a2; *(_DWORD *)(result + 88) = 0; *(_QWORD *)(result + 96) = 3LL; *(_DWORD *)(result + 104) = 0; *(_QWORD *)(result + 112) = 3LL; *(_DWORD *)(result + 248) = 0; *(_QWORD *)(result + 256) = 3LL; *(_DWORD *)(result + 264) = 0; *(_QWORD *)(result + 272) = 3LL; *(_DWORD *)(result + 192) = 0; *(_QWORD *)(result + 200) = 3LL; *(_DWORD *)(result + 208) = 0; *(_QWORD *)(result + 216) = 3LL; *(_DWORD *)(result + 224) = 0; *(_QWORD *)(result + 232) = 3LL; v3 = *(_QWORD *)(a1 + 480); *(_QWORD *)(v3 + 8) = result + 8; *(_QWORD *)(result + 8) = v3; *(_QWORD *)(result + 16) = a1 + 480; *(_QWORD *)(a1 + 480) = result + 8; } else { JS_FreeAtom(a1, a2); return 0LL; } return result; }
js_new_module_def: PUSH RBP PUSH RBX PUSH RAX MOV EBP,ESI MOV RBX,RDI MOV ESI,0x118 CALL 0x0010ed7d TEST RAX,RAX JZ 0x0010ff96 MOV dword ptr [RAX],0x1 MOV dword ptr [RAX + 0x4],EBP AND dword ptr [RAX + 0x58],0x0 PUSH 0x3 POP RCX MOV qword ptr [RAX + 0x60],RCX AND dword ptr [RAX + 0x68],0x0 MOV qword ptr [RAX + 0x70],RCX AND dword ptr [RAX + 0xf8],0x0 MOV qword ptr [RAX + 0x100],RCX AND dword ptr [RAX + 0x108],0x0 MOV qword ptr [RAX + 0x110],RCX AND dword ptr [RAX + 0xc0],0x0 MOV qword ptr [RAX + 0xc8],RCX AND dword ptr [RAX + 0xd0],0x0 MOV qword ptr [RAX + 0xd8],RCX AND dword ptr [RAX + 0xe0],0x0 MOV qword ptr [RAX + 0xe8],RCX MOV RCX,RAX ADD RCX,0x8 LEA RDX,[RBX + 0x1e0] MOV RSI,qword ptr [RBX + 0x1e0] MOV qword ptr [RSI + 0x8],RCX MOV qword ptr [RAX + 0x8],RSI MOV qword ptr [RAX + 0x10],RDX MOV qword ptr [RBX + 0x1e0],RCX JMP 0x0010ffa2 LAB_0010ff96: MOV RDI,RBX MOV ESI,EBP CALL 0x0011fbc4 XOR EAX,EAX LAB_0010ffa2: ADD RSP,0x8 POP RBX POP RBP RET
int4 * js_new_module_def(long param_1,int4 param_2) { long lVar1; int4 *puVar2; puVar2 = (int4 *)js_mallocz(param_1,0x118); if (puVar2 == (int4 *)0x0) { JS_FreeAtom(param_1,param_2); puVar2 = (int4 *)0x0; } else { *puVar2 = 1; puVar2[1] = param_2; puVar2[0x16] = 0; *(int8 *)(puVar2 + 0x18) = 3; puVar2[0x1a] = 0; *(int8 *)(puVar2 + 0x1c) = 3; puVar2[0x3e] = 0; *(int8 *)(puVar2 + 0x40) = 3; puVar2[0x42] = 0; *(int8 *)(puVar2 + 0x44) = 3; puVar2[0x30] = 0; *(int8 *)(puVar2 + 0x32) = 3; puVar2[0x34] = 0; *(int8 *)(puVar2 + 0x36) = 3; puVar2[0x38] = 0; *(int8 *)(puVar2 + 0x3a) = 3; lVar1 = *(long *)(param_1 + 0x1e0); *(int4 **)(lVar1 + 8) = puVar2 + 2; *(long *)(puVar2 + 2) = lVar1; *(long *)(puVar2 + 4) = param_1 + 0x1e0; *(int4 **)(param_1 + 0x1e0) = puVar2 + 2; } return puVar2; }
31,566
directory_file_name
eloqsql/mysys/my_lib.c
static char *directory_file_name (char * dst, const char *src) { /* Process as Unix format: just remove test the final slash. */ char *end; DBUG_ASSERT(strlen(src) < (FN_REFLEN + 1)); if (src[0] == 0) src= (char*) "."; /* Use empty as current */ end= strnmov(dst, src, FN_REFLEN + 1); if (end[-1] != FN_LIBCHAR) { *end++= FN_LIBCHAR; /* Add last '/' */ *end='\0'; } return end; }
O0
c
directory_file_name: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x66542 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jne 0x66559 leaq 0x4a342(%rip), %rax # 0xb0897 movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl $0x201, %edx # imm = 0x201 callq 0xace70 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movsbl -0x1(%rax), %eax cmpl $0x2f, %eax je 0x66595 movq -0x18(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x18(%rbp) movb $0x2f, (%rax) movq -0x18(%rbp), %rax movb $0x0, (%rax) movq -0x18(%rbp), %rax addq $0x20, %rsp popq %rbp retq nop
directory_file_name: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_66542: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 0 jnz short loc_66559 lea rax, asc_B0896+1; "." mov [rbp+var_10], rax loc_66559: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov edx, 201h call strnmov mov [rbp+var_18], rax mov rax, [rbp+var_18] movsx eax, byte ptr [rax-1] cmp eax, 2Fh ; '/' jz short loc_66595 mov rax, [rbp+var_18] mov rcx, rax add rcx, 1 mov [rbp+var_18], rcx mov byte ptr [rax], 2Fh ; '/' mov rax, [rbp+var_18] mov byte ptr [rax], 0 loc_66595: mov rax, [rbp+var_18] add rsp, 20h pop rbp retn
_BYTE * directory_file_name(long long a1, char *a2) { _BYTE *v2; // rax _BYTE *v4; // [rsp+8h] [rbp-18h] char *v5; // [rsp+10h] [rbp-10h] v5 = a2; if ( !*a2 ) v5 = "."; v4 = (_BYTE *)strnmov(a1, v5, 513LL); if ( *(v4 - 1) != 47 ) { v2 = v4++; *v2 = 47; *v4 = 0; } return v4; }
directory_file_name: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x00166542 LAB_00166542: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JNZ 0x00166559 LEA RAX,[0x1b0897] MOV qword ptr [RBP + -0x10],RAX LAB_00166559: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,0x201 CALL 0x001ace70 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2f JZ 0x00166595 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x18],RCX MOV byte ptr [RAX],0x2f MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX],0x0 LAB_00166595: MOV RAX,qword ptr [RBP + -0x18] ADD RSP,0x20 POP RBP RET
int1 * directory_file_name(int8 param_1,char *param_2) { int1 *puVar1; int1 *local_20; char *local_18; local_18 = param_2; if (*param_2 == '\0') { local_18 = "."; } puVar1 = (int1 *)strnmov(param_1,local_18,0x201); local_20 = puVar1; if (puVar1[-1] != '/') { local_20 = puVar1 + 1; *puVar1 = 0x2f; *local_20 = 0; } return local_20; }
31,567
test_rms_norm_back::build_graph(ggml_context*)
monkey531[P]llama/tests/test-backend-ops.cpp
ggml_tensor * build_graph(ggml_context * ctx) override { ggml_tensor * a = ggml_new_tensor(ctx, type, 4, ne.data()); ggml_set_name(a, "a"); ggml_tensor * b = ggml_new_tensor(ctx, type, 4, ne.data()); ggml_set_name(b, "b"); ggml_tensor * out = ggml_rms_norm_back(ctx, a, b, eps); ggml_set_name(out, "out"); return out; }
O1
cpp
test_rms_norm_back::build_graph(ggml_context*): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x38(%rdi), %esi leaq 0x40(%rdi), %r12 movq %rbx, %rdi movl $0x4, %edx movq %r12, %rcx callq 0xd080 movq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi callq 0x1bc8c leaq 0x1b587(%rip), %rsi # 0x45df1 movq %r15, %rdi callq 0xdb10 movl 0x38(%r14), %esi movq %rbx, %rdi movl $0x4, %edx movq %r12, %rcx callq 0xd080 movq %rax, %r12 movq %r14, %rdi movq %rbx, %rsi callq 0x1bc8c leaq 0x1b300(%rip), %rsi # 0x45b9b movq %r12, %rdi callq 0xdb10 movss 0x60(%r14), %xmm0 movq %rbx, %rdi movq %r15, %rsi movq %r12, %rdx callq 0xdaf0 movq %rax, %rbx leaq 0x1bad7(%rip), %rsi # 0x46398 movq %rax, %rdi callq 0xdb10 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN18test_rms_norm_back11build_graphEP12ggml_context: push r15 push r14 push r12 push rbx push rax mov rbx, rsi mov r14, rdi mov esi, [rdi+38h] lea r12, [rdi+40h] mov rdi, rbx mov edx, 4 mov rcx, r12 call _ggml_new_tensor mov r15, rax mov rdi, r14 mov rsi, rbx call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *) lea rsi, aViewOfA+8; "a" mov rdi, r15 call _ggml_set_name mov esi, [r14+38h] mov rdi, rbx mov edx, 4 mov rcx, r12 call _ggml_new_tensor mov r12, rax mov rdi, r14 mov rsi, rbx call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *) lea rsi, aB+1; "b" mov rdi, r12 call _ggml_set_name movss xmm0, dword ptr [r14+60h] mov rdi, rbx mov rsi, r15 mov rdx, r12 call _ggml_rms_norm_back mov rbx, rax lea rsi, aSumOfOut+7; "out" mov rdi, rax call _ggml_set_name mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long test_rms_norm_back::build_graph(long long a1, long long a2) { long long v2; // r15 long long v3; // r12 long long v4; // rbx v2 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL); test_case::add_sentinel(a1, a2); ggml_set_name(v2, "a"); v3 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL); test_case::add_sentinel(a1, a2); ggml_set_name(v3, "b"); v4 = ggml_rms_norm_back(a2, v2, v3, *(float *)(a1 + 96)); ggml_set_name(v4, "out"); return v4; }
build_graph: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV ESI,dword ptr [RDI + 0x38] LEA R12,[RDI + 0x40] MOV RDI,RBX MOV EDX,0x4 MOV RCX,R12 CALL 0x0010d080 MOV R15,RAX MOV RDI,R14 MOV RSI,RBX CALL 0x0011bc8c LEA RSI,[0x145df1] MOV RDI,R15 CALL 0x0010db10 MOV ESI,dword ptr [R14 + 0x38] MOV RDI,RBX MOV EDX,0x4 MOV RCX,R12 CALL 0x0010d080 MOV R12,RAX MOV RDI,R14 MOV RSI,RBX CALL 0x0011bc8c LEA RSI,[0x145b9b] MOV RDI,R12 CALL 0x0010db10 MOVSS XMM0,dword ptr [R14 + 0x60] MOV RDI,RBX MOV RSI,R15 MOV RDX,R12 CALL 0x0010daf0 MOV RBX,RAX LEA RSI,[0x146398] MOV RDI,RAX CALL 0x0010db10 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* test_rms_norm_back::build_graph(ggml_context*) */ int8 __thiscall test_rms_norm_back::build_graph(test_rms_norm_back *this,ggml_context *param_1) { int8 uVar1; int8 uVar2; uVar1 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40); test_case::add_sentinel((test_case *)this,param_1); ggml_set_name(uVar1,"a"); uVar2 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40); test_case::add_sentinel((test_case *)this,param_1); ggml_set_name(uVar2,&DAT_00145b9b); uVar1 = ggml_rms_norm_back(*(int4 *)(this + 0x60),param_1,uVar1,uVar2); ggml_set_name(uVar1,"out"); return uVar1; }
31,568
stbi_info_from_memory
monkey531[P]llama/examples/llava/../../common/stb_image.h
STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) { stbi__context s; stbi__start_mem(&s,buffer,len); return stbi__info_main(&s,x,y,comp); }
O3
c
stbi_info_from_memory: subq $0xe8, %rsp leaq 0x8(%rsp), %rax movq $0x0, 0x10(%rax) xorl %r9d, %r9d movl %r9d, 0x30(%rax) movl %r9d, 0xb8(%rax) movq %rdi, 0xd0(%rax) movq %rdi, 0xc0(%rax) movslq %esi, %rsi addq %rdi, %rsi movq %rsi, 0xd8(%rax) movq %rsi, 0xc8(%rax) movq %rax, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx callq 0x2a93d addq $0xe8, %rsp retq
stbi_info_from_memory: sub rsp, 0E8h lea rax, [rsp+0E8h+var_E0] mov qword ptr [rax+10h], 0 xor r9d, r9d mov [rax+30h], r9d mov [rax+0B8h], r9d mov [rax+0D0h], rdi mov [rax+0C0h], rdi movsxd rsi, esi add rsi, rdi mov [rax+0D8h], rsi mov [rax+0C8h], rsi mov rdi, rax mov rsi, rdx mov rdx, rcx mov rcx, r8 call _ZL15stbi__info_mainP13stbi__contextPiS1_S1_; stbi__info_main(stbi__context *,int *,int *,int *) add rsp, 0E8h retn
long long stbi_info_from_memory(long long a1, int a2, _DWORD *a3, _DWORD *a4, _DWORD *a5) { _BYTE v6[16]; // [rsp+8h] [rbp-E0h] BYREF long long v7; // [rsp+18h] [rbp-D0h] int v8; // [rsp+38h] [rbp-B0h] int v9; // [rsp+C0h] [rbp-28h] long long v10; // [rsp+C8h] [rbp-20h] long long v11; // [rsp+D0h] [rbp-18h] long long v12; // [rsp+D8h] [rbp-10h] long long v13; // [rsp+E0h] [rbp-8h] v7 = 0LL; v8 = 0; v9 = 0; v12 = a1; v10 = a1; v13 = a1 + a2; v11 = v13; return stbi__info_main((long long)v6, a3, a4, a5); }
stbi_info_from_memory: SUB RSP,0xe8 LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x10],0x0 XOR R9D,R9D MOV dword ptr [RAX + 0x30],R9D MOV dword ptr [RAX + 0xb8],R9D MOV qword ptr [RAX + 0xd0],RDI MOV qword ptr [RAX + 0xc0],RDI MOVSXD RSI,ESI ADD RSI,RDI MOV qword ptr [RAX + 0xd8],RSI MOV qword ptr [RAX + 0xc8],RSI MOV RDI,RAX MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 CALL 0x0012a93d ADD RSP,0xe8 RET
void stbi_info_from_memory(long param_1,int param_2,int *param_3,int *param_4,int *param_5) { stbi__context local_e0 [16]; int8 local_d0; int4 local_b0; int4 local_28; long local_20; long local_18; long local_10; long local_8; local_d0 = 0; local_b0 = 0; local_28 = 0; local_18 = param_2 + param_1; local_20 = param_1; local_10 = param_1; local_8 = local_18; stbi__info_main(local_e0,param_3,param_4,param_5); return; }
31,569
minja::Parser::parseMathUnaryPlusMinus()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseMathUnaryPlusMinus() { static std::regex unary_plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto op_str = consumeToken(unary_plus_minus_tok); auto expr = parseExpansion(); if (!expr) throw std::runtime_error("Expected expr of 'unary plus/minus/expansion' expression"); if (!op_str.empty()) { auto op = op_str == "+" ? UnaryOpExpr::Op::Plus : UnaryOpExpr::Op::Minus; return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op); } return expr; }
O0
cpp
minja::Parser::parseMathUnaryPlusMinus(): subq $0xb8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x18cd70(%rip), %rax # 0x2a1298 cmpb $0x0, (%rax) jne 0x11457e leaq 0x18cd64(%rip), %rdi # 0x2a1298 callq 0x595d0 cmpl $0x0, %eax je 0x11457e leaq 0x18cd33(%rip), %rdi # 0x2a1278 leaq 0xfa170(%rip), %rsi # 0x20e6bc movl $0x10, %edx callq 0xbb840 jmp 0x114558 leaq -0x5883f(%rip), %rdi # 0xbbd20 leaq 0x18cd12(%rip), %rsi # 0x2a1278 leaq 0x18c4fb(%rip), %rdx # 0x2a0a68 callq 0x59f00 leaq 0x18cd1f(%rip), %rdi # 0x2a1298 callq 0x599c0 movq 0x28(%rsp), %rsi leaq 0x18ccee(%rip), %rdx # 0x2a1278 leaq 0x78(%rsp), %rdi movl $0x1, %ecx callq 0x109b60 movq 0x28(%rsp), %rsi leaq 0x68(%rsp), %rdi callq 0x1149a0 jmp 0x1145aa leaq 0x68(%rsp), %rdi callq 0x109d40 testb $0x1, %al jne 0x114676 movl $0x10, %edi callq 0x59660 movq %rax, %rdi movq %rdi, %rax movq %rax, 0x10(%rsp) leaq 0xfa1ce(%rip), %rsi # 0x20e7a6 callq 0x59450 jmp 0x1145df movq 0x10(%rsp), %rdi movq 0x18b9c5(%rip), %rsi # 0x29ffb0 movq 0x18b986(%rip), %rdx # 0x29ff78 callq 0x59ac0 jmp 0x114781 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) leaq 0x18cc81(%rip), %rdi # 0x2a1298 callq 0x596f0 jmp 0x114774 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) jmp 0x11476a movq 0x10(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) callq 0x59f20 jmp 0x114760 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) jmp 0x114760 leaq 0x78(%rsp), %rdi callq 0x594c0 testb $0x1, %al jne 0x114728 leaq 0xfabc5(%rip), %rsi # 0x20f254 leaq 0x78(%rsp), %rdi callq 0x8a540 movb %al, 0xf(%rsp) jmp 0x11469f movq 0x28(%rsp), %rsi movb 0xf(%rsp), %al notb %al movzbl %al, %eax andl $0x1, %eax movl %eax, 0x64(%rsp) leaq 0x38(%rsp), %rdi callq 0x109140 jmp 0x1146c0 leaq 0x50(%rsp), %rdi leaq 0x38(%rsp), %rsi leaq 0x68(%rsp), %rdx leaq 0x64(%rsp), %rcx callq 0x114c40 jmp 0x1146db movq 0x18(%rsp), %rdi leaq 0x50(%rsp), %rsi callq 0x10e930 leaq 0x50(%rsp), %rdi callq 0x10e960 leaq 0x38(%rsp), %rdi callq 0x10c700 movl $0x1, 0x34(%rsp) jmp 0x11473f movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) leaq 0x38(%rsp), %rdi callq 0x10c700 jmp 0x114760 movq 0x18(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0x10de40 movl $0x1, 0x34(%rsp) leaq 0x68(%rsp), %rdi callq 0x109b50 leaq 0x78(%rsp), %rdi callq 0x5a4d8 movq 0x20(%rsp), %rax addq $0xb8, %rsp retq leaq 0x68(%rsp), %rdi callq 0x109b50 leaq 0x78(%rsp), %rdi callq 0x5a4d8 movq 0xa0(%rsp), %rdi callq 0x59b80 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN5minja6Parser23parseMathUnaryPlusMinusEv: sub rsp, 0B8h mov [rsp+0B8h+var_A0], rdi mov rax, rdi mov [rsp+0B8h+var_98], rax mov [rsp+0B8h+var_8], rdi mov [rsp+0B8h+var_10], rsi mov rax, [rsp+0B8h+var_10] mov [rsp+0B8h+var_90], rax lea rax, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok cmp byte ptr [rax], 0 jnz short loc_11457E lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire cmp eax, 0 jz short loc_11457E lea rdi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok lea rsi, asc_20E6BC; "\\+|-(?![}%#]\\})" 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) jmp short $+2 loc_114558: lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release loc_11457E: mov rsi, [rsp+0B8h+var_90] lea rdx, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok lea rdi, [rsp+0B8h+var_40] mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov rsi, [rsp+0B8h+var_90] lea rdi, [rsp+0B8h+var_50]; this call _ZN5minja6Parser14parseExpansionEv; minja::Parser::parseExpansion(void) jmp short $+2 loc_1145AA: lea rdi, [rsp+0B8h+var_50] call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void) test al, 1 jnz loc_114676 mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rdi, rax; this mov rax, rdi mov [rsp+0B8h+var_A8], rax lea rsi, aExpectedExprOf; "Expected expr of 'unary plus/minus/expa"... call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short $+2 loc_1145DF: mov rdi, [rsp+0B8h+var_A8]; void * mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) call ___cxa_throw jmp loc_114781 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp loc_114774 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax jmp loc_11476A mov rdi, [rsp+arg_8]; void * mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax call ___cxa_free_exception jmp loc_114760 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax jmp loc_114760 loc_114676: lea rdi, [rsp+0B8h+var_40] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz loc_114728 lea rsi, aSRN_0+0Bh; "+" lea rdi, [rsp+0B8h+var_40] call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rsp+0B8h+var_A9], al jmp short $+2 loc_11469F: mov rsi, [rsp+0B8h+var_90] mov al, [rsp+0B8h+var_A9] not al movzx eax, al and eax, 1 mov [rsp+0B8h+var_54], eax lea rdi, [rsp+0B8h+var_80]; this call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void) jmp short $+2 loc_1146C0: lea rdi, [rsp+0B8h+var_68] lea rsi, [rsp+0B8h+var_80] lea rdx, [rsp+0B8h+var_50] lea rcx, [rsp+0B8h+var_54] call _ZSt11make_sharedIN5minja11UnaryOpExprEJNS0_8LocationESt10shared_ptrINS0_10ExpressionEERNS1_2OpEEES3_IT_EDpOT0_; std::make_shared<minja::UnaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &) jmp short $+2 loc_1146DB: mov rdi, [rsp+0B8h+var_A0] lea rsi, [rsp+0B8h+var_68] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2INS0_11UnaryOpExprEvEEOS_IT_E; std::shared_ptr<minja::Expression>::shared_ptr<minja::UnaryOpExpr,void>(std::shared_ptr&&<minja::UnaryOpExpr>) lea rdi, [rsp+0B8h+var_68] call _ZNSt10shared_ptrIN5minja11UnaryOpExprEED2Ev; std::shared_ptr<minja::UnaryOpExpr>::~shared_ptr() lea rdi, [rsp+0B8h+var_80]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() mov [rsp+0B8h+var_84], 1 jmp short loc_11473F mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax lea rdi, [rsp+arg_30]; this call _ZN5minja8LocationD2Ev; minja::Location::~Location() jmp short loc_114760 loc_114728: mov rdi, [rsp+0B8h+var_A0] lea rsi, [rsp+0B8h+var_50] call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&) mov [rsp+0B8h+var_84], 1 loc_11473F: lea rdi, [rsp+0B8h+var_50] call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr() lea rdi, [rsp+0B8h+var_40]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov rax, [rsp+0B8h+var_98] add rsp, 0B8h retn loc_114760: lea rdi, [rsp+arg_60] call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr() loc_11476A: lea rdi, [rsp+arg_70]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_114774: mov rdi, [rsp+arg_98] call __Unwind_Resume loc_114781: nop word ptr [rax+rax+00000000h] nop dword ptr [rax+rax+00h]
minja::Parser * minja::Parser::parseMathUnaryPlusMinus(minja::Parser *this, long long a2) { int v2; // r8d int v3; // r9d std::runtime_error *exception; // [rsp+10h] [rbp-A8h] _BYTE v6[24]; // [rsp+38h] [rbp-80h] BYREF _BYTE v7[20]; // [rsp+50h] [rbp-68h] BYREF BOOL v8; // [rsp+64h] [rbp-54h] BYREF _QWORD v9[2]; // [rsp+68h] [rbp-50h] BYREF _BYTE v10[48]; // [rsp+78h] [rbp-40h] BYREF long long v11; // [rsp+A8h] [rbp-10h] minja::Parser *v12; // [rsp+B0h] [rbp-8h] v12 = this; v11 = a2; if ( !(_BYTE)`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]); } minja::Parser::consumeToken( (long long)v10, a2, (long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], 1u); minja::Parser::parseExpansion((minja::Parser *)v9); if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(v9) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected expr of 'unary plus/minus/expansion' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( (std::string::empty(v10) & 1) != 0 ) { std::shared_ptr<minja::Expression>::shared_ptr((long long)this, (long long)v9); } else { v8 = !std::operator==<char>((long long)v10, (long long)"+"); minja::Parser::get_location((minja::Parser *)v6, a2); std::make_shared<minja::UnaryOpExpr,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>( (unsigned int)v7, (unsigned int)v6, (unsigned int)v9, (unsigned int)&v8, v2, v3); std::shared_ptr<minja::Expression>::shared_ptr<minja::UnaryOpExpr,void>((long long)this, (long long)v7); std::shared_ptr<minja::UnaryOpExpr>::~shared_ptr((long long)v7); minja::Location::~Location((minja::Location *)v6); } std::shared_ptr<minja::Expression>::~shared_ptr((long long)v9); std::string::~string(v10); return this; }
31,570
minja::Parser::parseMathUnaryPlusMinus()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseMathUnaryPlusMinus() { static std::regex unary_plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto op_str = consumeToken(unary_plus_minus_tok); auto expr = parseExpansion(); if (!expr) throw std::runtime_error("Expected expr of 'unary plus/minus/expansion' expression"); if (!op_str.empty()) { auto op = op_str == "+" ? UnaryOpExpr::Op::Plus : UnaryOpExpr::Op::Minus; return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op); } return expr; }
O3
cpp
minja::Parser::parseMathUnaryPlusMinus(): pushq %r14 pushq %rbx subq $0x68, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0xa38c2(%rip), %rax # 0x12b0c8 movb (%rax), %al testb %al, %al je 0x87930 leaq 0xa3891(%rip), %rdx # 0x12b0a8 leaq 0x30(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x82c30 leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0x87ab8 movq 0x10(%rsp), %rax testq %rax, %rax je 0x87987 cmpq $0x0, 0x38(%rsp) je 0x8788f leaq 0x6802a(%rip), %rsi # 0xef87d leaq 0x30(%rsp), %rdi callq 0x1a210 xorl %ecx, %ecx testl %eax, %eax setne %cl movl %ecx, 0xc(%rsp) movq (%r14), %rax movq %rax, 0x50(%rsp) movq 0x8(%r14), %rax movq %rax, 0x58(%rsp) testq %rax, %rax je 0x878a1 movq 0xa26fb(%rip), %rcx # 0x129f80 cmpb $0x0, (%rcx) je 0x8789d incl 0x8(%rax) jmp 0x878a1 movq %rax, (%rbx) movq 0x18(%rsp), %rax movq %rax, 0x8(%rbx) jmp 0x8790a lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax leaq 0x50(%rsp), %rcx movq %rax, 0x10(%rcx) leaq 0x28(%rsp), %rdi movq $0x0, -0x8(%rdi) leaq 0x20(%rsp), %rsi leaq 0xb(%rsp), %rdx leaq 0x10(%rsp), %r8 leaq 0xc(%rsp), %r9 callq 0x943e0 movaps 0x20(%rsp), %xmm0 xorl %eax, %eax movq %rax, 0x28(%rsp) movups %xmm0, (%rbx) movq %rax, 0x20(%rsp) movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x878fb callq 0x6c8e8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x8790a callq 0x6c8e8 leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x87925 movq 0x40(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rax addq $0x68, %rsp popq %rbx popq %r14 retq leaq 0xa3791(%rip), %rdi # 0x12b0c8 callq 0x1af80 testl %eax, %eax je 0x87810 leaq 0xa375d(%rip), %rdi # 0x12b0a8 leaq 0x67393(%rip), %rsi # 0xeece5 movl $0x10, %edx callq 0x61876 leaq -0x25de9(%rip), %rdi # 0x61b7a leaq 0xa373e(%rip), %rsi # 0x12b0a8 leaq 0xa2f27(%rip), %rdx # 0x12a898 callq 0x1a770 leaq 0xa374b(%rip), %rdi # 0x12b0c8 callq 0x1a590 jmp 0x87810 movl $0x10, %edi callq 0x1a430 movq %rax, %r14 leaq 0x67434(%rip), %rsi # 0xeedcf movq %rax, %rdi callq 0x1a310 movq 0xa263e(%rip), %rsi # 0x129fe8 movq 0xa25a7(%rip), %rdx # 0x129f58 movq %r14, %rdi callq 0x1aea0 movq %rax, %rbx leaq 0xa3705(%rip), %rdi # 0x12b0c8 callq 0x1a580 jmp 0x87a1d movq %rax, %rbx jmp 0x879ee movq %rax, %rbx movq %r14, %rdi callq 0x1a640 jmp 0x879ee movq %rax, %rbx movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x879ee callq 0x6c8e8 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x87a02 callq 0x6c8e8 jmp 0x87a02 movq %rax, %rbx leaq 0x40(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x87a1d movq 0x40(%rsp), %rsi incq %rsi callq 0x1a890 movq %rbx, %rdi callq 0x1af20 nop
_ZN5minja6Parser23parseMathUnaryPlusMinusEv: push r14 push rbx sub rsp, 68h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok mov al, [rax] test al, al jz loc_87930 loc_87810: lea rdx, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok lea rdi, [rsp+78h+var_48] 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 rdi, [rsp+78h+var_68]; this mov rsi, r14 call _ZN5minja6Parser14parseExpansionEv; minja::Parser::parseExpansion(void) mov rax, [rsp+78h+var_68] test rax, rax jz loc_87987 cmp [rsp+78h+var_40], 0 jz short loc_8788F lea rsi, aSRN_0+0Bh; "+" lea rdi, [rsp+78h+var_48] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) xor ecx, ecx test eax, eax setnz cl mov [rsp+78h+var_6C], ecx mov rax, [r14] mov [rsp+78h+var_28], rax mov rax, [r14+8] mov [rsp+78h+var_20], rax test rax, rax jz short loc_878A1 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_8789D inc dword ptr [rax+8] jmp short loc_878A1 loc_8788F: mov [rbx], rax mov rax, [rsp+78h+var_60] mov [rbx+8], rax jmp short loc_8790A loc_8789D: lock inc dword ptr [rax+8] loc_878A1: mov rax, [r14+20h] sub rax, [r14+10h] lea rcx, [rsp+78h+var_28] mov [rcx+10h], rax lea rdi, [rsp+78h+var_58+8] mov qword ptr [rdi-8], 0 lea rsi, [rsp+78h+var_58] lea rdx, [rsp+78h+var_6D] lea r8, [rsp+78h+var_68] lea r9, [rsp+78h+var_6C] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEERNS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &) movaps xmm0, [rsp+78h+var_58] xor eax, eax mov qword ptr [rsp+78h+var_58+8], rax movups xmmword ptr [rbx], xmm0 mov qword ptr [rsp+78h+var_58], rax mov rdi, [rsp+78h+var_20] test rdi, rdi jz short loc_878FB call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_878FB: mov rdi, [rsp+78h+var_60] test rdi, rdi jz short loc_8790A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8790A: lea rax, [rsp+78h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_87925 mov rsi, [rsp+78h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_87925: mov rax, rbx add rsp, 68h pop rbx pop r14 retn loc_87930: lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_87810 lea rdi, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok lea rsi, asc_EECE5; "\\+|-(?![}%#]\\})" 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, _ZZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_87810 loc_87987: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedExprOf; "Expected expr of 'unary plus/minus/expa"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax lea rdi, _ZGVZN5minja6Parser23parseMathUnaryPlusMinusEvE20unary_plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_87A1D mov rbx, rax jmp short loc_879EE mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_879EE mov rbx, rax mov rdi, [rsp+78h+var_20] test rdi, rdi jz short loc_879EE call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_879EE: mov rdi, [rsp+78h+var_60] test rdi, rdi jz short loc_87A02 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_87A02 mov rbx, rax loc_87A02: lea rax, [rsp+78h+var_38] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_87A1D mov rsi, [rsp+78h+var_38] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_87A1D: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseMathUnaryPlusMinus(minja::Parser *this, long long *a2) { volatile signed __int32 *v2; // rax __int128 v3; // xmm0 std::runtime_error *exception; // r14 char v6; // [rsp+Bh] [rbp-6Dh] BYREF BOOL v7; // [rsp+Ch] [rbp-6Ch] BYREF long long v8; // [rsp+10h] [rbp-68h] BYREF volatile signed __int32 *v9; // [rsp+18h] [rbp-60h] __int128 v10; // [rsp+20h] [rbp-58h] BYREF void *v11[2]; // [rsp+30h] [rbp-48h] BYREF long long v12; // [rsp+40h] [rbp-38h] BYREF long long v13; // [rsp+50h] [rbp-28h] BYREF volatile signed __int32 *v14; // [rsp+58h] [rbp-20h] long long v15; // [rsp+60h] [rbp-18h] if ( !(_BYTE)`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11]); } minja::Parser::consumeToken( (long long)v11, (long long)a2, (long long)&minja::Parser::parseMathUnaryPlusMinus(void)::unary_plus_minus_tok[abi:cxx11], 1u); minja::Parser::parseExpansion((minja::Parser *)&v8); if ( !v8 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected expr of 'unary plus/minus/expansion' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( v11[1] ) { v7 = std::string::compare(v11, "+") != 0; v13 = *a2; v2 = (volatile signed __int32 *)a2[1]; v14 = v2; if ( v2 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v2 + 2); else _InterlockedIncrement(v2 + 2); } v15 = a2[4] - a2[2]; *(_QWORD *)&v10 = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &>( (char *)&v10 + 8, &v10, &v6, &v13, &v8, &v7); v3 = v10; *((_QWORD *)&v10 + 1) = 0LL; *(_OWORD *)this = v3; *(_QWORD *)&v10 = 0LL; if ( v14 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14); if ( v9 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v9); } else { *(_QWORD *)this = v8; *((_QWORD *)this + 1) = v9; } if ( v11[0] != &v12 ) operator delete(v11[0], v12 + 1); return this; }
parseMathUnaryPlusMinus: PUSH R14 PUSH RBX SUB RSP,0x68 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x22b0c8] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x00187930 LAB_00187810: LEA RDX,[0x22b0a8] LEA RDI,[RSP + 0x30] MOV RSI,R14 MOV ECX,0x1 CALL 0x00182c30 LAB_00187829: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x00187ab8 MOV RAX,qword ptr [RSP + 0x10] TEST RAX,RAX JZ 0x00187987 CMP qword ptr [RSP + 0x38],0x0 JZ 0x0018788f LEA RSI,[0x1ef87d] LEA RDI,[RSP + 0x30] CALL 0x0011a210 XOR ECX,ECX TEST EAX,EAX SETNZ CL MOV dword ptr [RSP + 0xc],ECX MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x58],RAX TEST RAX,RAX JZ 0x001878a1 MOV RCX,qword ptr [0x00229f80] CMP byte ptr [RCX],0x0 JZ 0x0018789d INC dword ptr [RAX + 0x8] JMP 0x001878a1 LAB_0018788f: MOV qword ptr [RBX],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RBX + 0x8],RAX JMP 0x0018790a LAB_0018789d: INC.LOCK dword ptr [RAX + 0x8] LAB_001878a1: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] LEA RCX,[RSP + 0x50] MOV qword ptr [RCX + 0x10],RAX LEA RDI,[RSP + 0x28] MOV qword ptr [RDI + -0x8],0x0 LAB_001878bf: LEA RSI,[RSP + 0x20] LEA RDX,[RSP + 0xb] LEA R8,[RSP + 0x10] LEA R9,[RSP + 0xc] CALL 0x001943e0 MOVAPS XMM0,xmmword ptr [RSP + 0x20] XOR EAX,EAX MOV qword ptr [RSP + 0x28],RAX MOVUPS xmmword ptr [RBX],XMM0 MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x58] TEST RDI,RDI JZ 0x001878fb CALL 0x0016c8e8 LAB_001878fb: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x0018790a CALL 0x0016c8e8 LAB_0018790a: LEA RAX,[RSP + 0x40] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00187925 MOV RSI,qword ptr [RSP + 0x40] INC RSI CALL 0x0011a890 LAB_00187925: MOV RAX,RBX ADD RSP,0x68 POP RBX POP R14 RET LAB_00187930: LEA RDI,[0x22b0c8] CALL 0x0011af80 TEST EAX,EAX JZ 0x00187810 LAB_00187944: LEA RDI,[0x22b0a8] LEA RSI,[0x1eece5] MOV EDX,0x10 CALL 0x00161876 LAB_0018795c: LEA RDI,[0x161b7a] LEA RSI,[0x22b0a8] LEA RDX,[0x22a898] CALL 0x0011a770 LEA RDI,[0x22b0c8] CALL 0x0011a590 JMP 0x00187810 LAB_00187987: MOV EDI,0x10 CALL 0x0011a430 MOV R14,RAX LAB_00187994: LEA RSI,[0x1eedcf] MOV RDI,RAX CALL 0x0011a310 LAB_001879a3: MOV RSI,qword ptr [0x00229fe8] MOV RDX,qword ptr [0x00229f58] MOV RDI,R14 CALL 0x0011aea0
/* minja::Parser::parseMathUnaryPlusMinus() */ void minja::Parser::parseMathUnaryPlusMinus(void) { long lVar1; int iVar2; runtime_error *this; int8 *in_RSI; long *in_RDI; int1 local_6d; uint local_6c; long local_68; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60; long local_58; long lStack_50; long *local_48; long local_40; long local_38 [2]; int8 local_28; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20; long local_18; if (parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_ == '\0') { iVar2 = __cxa_guard_acquire(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_); if (iVar2 != 0) { /* try { // try from 00187944 to 0018795b has its CatchHandler @ 001879b9 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10 ); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseMathUnaryPlusMinus()::unary_plus_minus_tok_abi_cxx11_); } } consumeToken(&local_48); /* try { // try from 00187829 to 00187835 has its CatchHandler @ 001879ff */ parseExpansion(); if (local_68 != 0) { if (local_40 == 0) { *in_RDI = local_68; in_RDI[1] = (long)local_60; } else { iVar2 = std::__cxx11::string::compare((char *)&local_48); local_6c = (uint)(iVar2 != 0); local_28 = *in_RSI; local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00229f80 == '\0') { LOCK(); *(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1; UNLOCK(); } else { *(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1; } } local_18 = in_RSI[4] - in_RSI[2]; local_58 = 0; /* try { // try from 001878bf to 001878d7 has its CatchHandler @ 001879dc */ std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op&> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_50,&local_58,&local_6d, &local_28,&local_68,&local_6c); lVar1 = lStack_50; lStack_50 = 0; *in_RDI = local_58; in_RDI[1] = lVar1; local_58 = 0; if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20); } if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60); } } if (local_48 != local_38) { operator_delete(local_48,local_38[0] + 1); } return; } this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00187994 to 001879a2 has its CatchHandler @ 001879cf */ std::runtime_error::runtime_error (this,"Expected expr of \'unary plus/minus/expansion\' expression"); /* try { // try from 001879a3 to 001879b8 has its CatchHandler @ 001879ca */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00229fe8,PTR__runtime_error_00229f58); }
31,571
google::protobuf::compiler::objectivec::IsPrimitiveType(google::protobuf::FieldDescriptor const*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
bool IsPrimitiveType(const FieldDescriptor* field) { ObjectiveCType type = GetObjectiveCType(field); switch (type) { case OBJECTIVECTYPE_INT32: case OBJECTIVECTYPE_UINT32: case OBJECTIVECTYPE_INT64: case OBJECTIVECTYPE_UINT64: case OBJECTIVECTYPE_FLOAT: case OBJECTIVECTYPE_DOUBLE: case OBJECTIVECTYPE_BOOLEAN: case OBJECTIVECTYPE_ENUM: return true; break; default: return false; } }
O0
cpp
google::protobuf::compiler::objectivec::IsPrimitiveType(google::protobuf::FieldDescriptor const*): subq $0x18, %rsp movq %rdi, 0x8(%rsp) movq 0x8(%rsp), %rdi callq 0x8d7a0 movl %eax, 0x4(%rsp) movl 0x4(%rsp), %eax movl %eax, (%rsp) subl $0x7, %eax jb 0x85c9f jmp 0x85c95 movl (%rsp), %eax subl $0x9, %eax jne 0x85ca6 jmp 0x85c9f movb $0x1, 0x17(%rsp) jmp 0x85cab movb $0x0, 0x17(%rsp) movb 0x17(%rsp), %al andb $0x1, %al addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN6google8protobuf8compiler10objectivec15IsPrimitiveTypeEPKNS0_15FieldDescriptorE: sub rsp, 18h mov [rsp+18h+var_10], rdi mov rdi, [rsp+18h+var_10]; this call _ZN6google8protobuf8compiler10objectivec17GetObjectiveCTypeEPKNS0_15FieldDescriptorE; google::protobuf::compiler::objectivec::GetObjectiveCType(google::protobuf::FieldDescriptor const*) mov [rsp+18h+var_14], eax mov eax, [rsp+18h+var_14] mov [rsp+18h+var_18], eax sub eax, 7 jb short loc_85C9F jmp short $+2 loc_85C95: mov eax, [rsp+18h+var_18] sub eax, 9 jnz short loc_85CA6 jmp short $+2 loc_85C9F: mov [rsp+18h+var_1], 1 jmp short loc_85CAB loc_85CA6: mov [rsp+18h+var_1], 0 loc_85CAB: mov al, [rsp+18h+var_1] and al, 1 add rsp, 18h retn
bool google::protobuf::compiler::objectivec::IsPrimitiveType( google::protobuf::compiler::objectivec *this, const google::protobuf::FieldDescriptor *a2) { unsigned int ObjectiveCType; // [rsp+0h] [rbp-18h] ObjectiveCType = google::protobuf::compiler::objectivec::GetObjectiveCType(this, a2); return ObjectiveCType < 7 || ObjectiveCType == 9; }
IsPrimitiveType: SUB RSP,0x18 MOV qword ptr [RSP + 0x8],RDI MOV RDI,qword ptr [RSP + 0x8] CALL 0x0018d7a0 MOV dword ptr [RSP + 0x4],EAX MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP],EAX SUB EAX,0x7 JC 0x00185c9f JMP 0x00185c95 LAB_00185c95: MOV EAX,dword ptr [RSP] SUB EAX,0x9 JNZ 0x00185ca6 JMP 0x00185c9f LAB_00185c9f: MOV byte ptr [RSP + 0x17],0x1 JMP 0x00185cab LAB_00185ca6: MOV byte ptr [RSP + 0x17],0x0 LAB_00185cab: MOV AL,byte ptr [RSP + 0x17] AND AL,0x1 ADD RSP,0x18 RET
/* google::protobuf::compiler::objectivec::IsPrimitiveType(google::protobuf::FieldDescriptor const*) */ int8 google::protobuf::compiler::objectivec::IsPrimitiveType(FieldDescriptor *param_1) { uint uVar1; ulong uVar2; int1 local_1; uVar1 = GetObjectiveCType(param_1); uVar2 = (ulong)(uVar1 - 7); if ((uVar1 < 7) || (uVar2 = (ulong)(uVar1 - 9), uVar1 - 9 == 0)) { local_1 = 1; } else { local_1 = 0; } return CONCAT71((int7)(uVar2 >> 8),local_1); }
31,572
common_log_entry::print(_IO_FILE*) const
monkey531[P]llama/common/log.cpp
void print(FILE * file = nullptr) const { FILE * fcur = file; if (!fcur) { // stderr displays DBG messages only when their verbosity level is not higher than the threshold // these messages will still be logged to a file if (level == GGML_LOG_LEVEL_DEBUG && common_log_verbosity_thold < LOG_DEFAULT_DEBUG) { return; } fcur = stdout; if (level != GGML_LOG_LEVEL_NONE) { fcur = stderr; } } if (level != GGML_LOG_LEVEL_NONE && level != GGML_LOG_LEVEL_CONT && prefix) { if (timestamp) { // [M.s.ms.us] fprintf(fcur, "%s%d.%02d.%03d.%03d%s ", g_col[COMMON_LOG_COL_BLUE], (int) (timestamp / 1000000 / 60), (int) (timestamp / 1000000 % 60), (int) (timestamp / 1000 % 1000), (int) (timestamp % 1000), g_col[COMMON_LOG_COL_DEFAULT]); } switch (level) { case GGML_LOG_LEVEL_INFO: fprintf(fcur, "%sI %s", g_col[COMMON_LOG_COL_GREEN], g_col[COMMON_LOG_COL_DEFAULT]); break; case GGML_LOG_LEVEL_WARN: fprintf(fcur, "%sW %s", g_col[COMMON_LOG_COL_MAGENTA], "" ); break; case GGML_LOG_LEVEL_ERROR: fprintf(fcur, "%sE %s", g_col[COMMON_LOG_COL_RED], "" ); break; case GGML_LOG_LEVEL_DEBUG: fprintf(fcur, "%sD %s", g_col[COMMON_LOG_COL_YELLOW], "" ); break; default: break; } } fprintf(fcur, "%s", msg.data()); if (level == GGML_LOG_LEVEL_WARN || level == GGML_LOG_LEVEL_ERROR || level == GGML_LOG_LEVEL_DEBUG) { fprintf(fcur, "%s", g_col[COMMON_LOG_COL_DEFAULT]); } fflush(fcur); }
O2
cpp
common_log_entry::print(_IO_FILE*) const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl (%rdi), %eax testq %rsi, %rsi jne 0x7edcb cmpl $0x1, %eax jne 0x7edb4 leaq 0x656b9(%rip), %rcx # 0xe4460 cmpl $0x0, (%rcx) jg 0x7edb4 addq $0x8, %rsp popq %rbx popq %r14 retq testl %eax, %eax jne 0x7edc1 movq 0x64169(%rip), %rcx # 0xe2f28 jmp 0x7edc8 movq 0x641d0(%rip), %rcx # 0xe2f98 movq (%rcx), %r14 testl %eax, %eax je 0x7eee3 cmpl $0x5, %eax je 0x7eee3 cmpb $0x1, 0x4(%rbx) jne 0x7eee3 movq 0x8(%rbx), %rsi testq %rsi, %rsi je 0x7ee6a movq 0x65672(%rip), %rax # 0xe4468 movq (%rax), %r11 movq 0x28(%rax), %rcx movl $0xf4240, %edi # imm = 0xF4240 movq %rsi, %rax cqto idivq %rdi movq %rax, %rdi movl $0x3938700, %r8d # imm = 0x3938700 movq %rsi, %rax cqto idivq %r8 movq %rax, %r8 pushq $0x3c popq %r9 movq %rdi, %rax cqto idivq %r9 movq %rdx, %r9 movl $0x3e8, %edi # imm = 0x3E8 movq %rsi, %rax cqto idivq %rdi movq %rdx, %r10 cqto idivq %rdi movq %rdx, %rax leaq 0x24690(%rip), %rsi # 0xa34dc movq %r14, %rdi movq %rcx, %rdx movl %r8d, %ecx movl %r9d, %r8d movl %eax, %r9d xorl %eax, %eax pushq %r11 pushq %r10 callq 0x22b40 popq %rcx popq %rdx movl (%rbx), %eax decl %eax cmpl $0x3, %eax ja 0x7eee3 leaq 0x24654(%rip), %rcx # 0xa34cc movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x655e0(%rip), %rax # 0xe4468 movq 0x20(%rax), %rdx leaq 0x24675(%rip), %rsi # 0xa3508 jmp 0x7eebb movq 0x655cc(%rip), %rax # 0xe4468 movq 0x30(%rax), %rdx leaq 0x24653(%rip), %rsi # 0xa34fa jmp 0x7eebb movq 0x655b8(%rip), %rax # 0xe4468 movq 0x10(%rax), %rdx leaq 0x24646(%rip), %rsi # 0xa3501 leaq 0x1dd7f(%rip), %rcx # 0x9cc41 jmp 0x7eed9 movq 0x6559d(%rip), %rax # 0xe4468 movq (%rax), %rcx movq 0x18(%rax), %rdx leaq 0x2461a(%rip), %rsi # 0xa34f3 movq %r14, %rdi xorl %eax, %eax callq 0x22b40 movq 0x10(%rbx), %rdi movq %r14, %rsi callq 0x228c0 movl (%rbx), %eax cmpl $0x4, %eax ja 0x7ef10 pushq $0x1a popq %rcx btl %eax, %ecx jae 0x7ef10 movq 0x65563(%rip), %rax # 0xe4468 movq (%rax), %rdi movq %r14, %rsi callq 0x228c0 movq %r14, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x22920 nop
_ZNK16common_log_entry5printEP8_IO_FILE: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov eax, [rdi] test rsi, rsi jnz short loc_7EDCB cmp eax, 1 jnz short loc_7EDB4 lea rcx, common_log_verbosity_thold cmp dword ptr [rcx], 0 jg short loc_7EDB4 add rsp, 8 pop rbx pop r14 retn loc_7EDB4: test eax, eax jnz short loc_7EDC1 mov rcx, cs:stdout_ptr jmp short loc_7EDC8 loc_7EDC1: mov rcx, cs:stderr_ptr loc_7EDC8: mov r14, [rcx] loc_7EDCB: test eax, eax jz def_7EE7F; jumptable 000000000007EE7F default case cmp eax, 5 jz def_7EE7F; jumptable 000000000007EE7F default case cmp byte ptr [rbx+4], 1 jnz def_7EE7F; jumptable 000000000007EE7F default case mov rsi, [rbx+8] test rsi, rsi jz short loc_7EE6A mov rax, cs:_ZL5g_col; g_col mov r11, [rax] mov rcx, [rax+28h] mov edi, 0F4240h mov rax, rsi cqo idiv rdi mov rdi, rax mov r8d, 3938700h mov rax, rsi cqo idiv r8 mov r8, rax push 3Ch ; '<' pop r9 mov rax, rdi cqo idiv r9 mov r9, rdx mov edi, 3E8h mov rax, rsi cqo idiv rdi mov r10, rdx cqo idiv rdi mov rax, rdx lea rsi, aSD02d03d03dS; "%s%d.%02d.%03d.%03d%s " mov rdi, r14 mov rdx, rcx mov ecx, r8d mov r8d, r9d mov r9d, eax xor eax, eax push r11 push r10 call _fprintf pop rcx pop rdx mov eax, [rbx] loc_7EE6A: dec eax; switch 4 cases cmp eax, 3 ja short def_7EE7F; jumptable 000000000007EE7F default case lea rcx, jpt_7EE7F movsxd rax, ds:(jpt_7EE7F - 0A34CCh)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_7EE81: mov rax, cs:_ZL5g_col; jumptable 000000000007EE7F case 1 mov rdx, [rax+20h] lea rsi, aSdS; "%sD %s" jmp short loc_7EEBB loc_7EE95: mov rax, cs:_ZL5g_col; jumptable 000000000007EE7F case 3 mov rdx, [rax+30h] lea rsi, aSwS; "%sW %s" jmp short loc_7EEBB loc_7EEA9: mov rax, cs:_ZL5g_col; jumptable 000000000007EE7F case 4 mov rdx, [rax+10h] lea rsi, aSeS; "%sE %s" loc_7EEBB: lea rcx, aEndIndexOutOfB+19h; "" jmp short loc_7EED9 loc_7EEC4: mov rax, cs:_ZL5g_col; jumptable 000000000007EE7F case 2 mov rcx, [rax] mov rdx, [rax+18h] lea rsi, aSiS; "%sI %s" loc_7EED9: mov rdi, r14 xor eax, eax call _fprintf def_7EE7F: mov rdi, [rbx+10h]; jumptable 000000000007EE7F default case mov rsi, r14 call _fputs mov eax, [rbx] cmp eax, 4 ja short loc_7EF10 push 1Ah pop rcx bt ecx, eax jnb short loc_7EF10 mov rax, cs:_ZL5g_col; g_col mov rdi, [rax] mov rsi, r14 call _fputs loc_7EF10: mov rdi, r14 add rsp, 8 pop rbx pop r14 jmp _fflush
long long common_log_entry::print(unsigned int *a1, long long a2) { long long v2; // r14 long long result; // rax long long *v4; // rcx long long v5; // rsi long long v6; // rdx const char *v7; // rsi char *v8; // rcx int v9; // ecx v2 = a2; result = *a1; if ( !a2 ) { if ( (_DWORD)result == 1 && common_log_verbosity_thold[0] <= 0 ) return result; if ( (_DWORD)result ) v4 = (long long *)&stderr; else v4 = (long long *)&stdout; v2 = *v4; } if ( (_DWORD)result && (_DWORD)result != 5 && *((_BYTE *)a1 + 4) == 1 ) { v5 = *((_QWORD *)a1 + 1); if ( v5 ) { fprintf( v2, "%s%d.%02d.%03d.%03d%s ", *(const char **)(g_col + 40), v5 / 60000000, v5 / 1000000 % 60, v5 / 1000 % 1000, v5 % 1000, *(const char **)g_col); LODWORD(result) = *a1; } switch ( (int)result ) { case 1: v6 = *(_QWORD *)(g_col + 32); v7 = "%sD %s"; goto LABEL_17; case 2: v8 = *(char **)g_col; v6 = *(_QWORD *)(g_col + 24); v7 = "%sI %s"; goto LABEL_19; case 3: v6 = *(_QWORD *)(g_col + 48); v7 = "%sW %s"; goto LABEL_17; case 4: v6 = *(_QWORD *)(g_col + 16); v7 = "%sE %s"; LABEL_17: v8 = ""; LABEL_19: fprintf(v2, v7, v6, v8); break; default: break; } } fputs(*((_QWORD *)a1 + 2), v2); if ( *a1 <= 4 ) { v9 = 26; if ( _bittest(&v9, *a1) ) fputs(*(_QWORD *)g_col, v2); } return fflush(v2); }
print: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV EAX,dword ptr [RDI] TEST RSI,RSI JNZ 0x0017edcb CMP EAX,0x1 JNZ 0x0017edb4 LEA RCX,[0x1e4460] CMP dword ptr [RCX],0x0 JG 0x0017edb4 ADD RSP,0x8 POP RBX POP R14 RET LAB_0017edb4: TEST EAX,EAX JNZ 0x0017edc1 MOV RCX,qword ptr [0x001e2f28] JMP 0x0017edc8 LAB_0017edc1: MOV RCX,qword ptr [0x001e2f98] LAB_0017edc8: MOV R14,qword ptr [RCX] LAB_0017edcb: TEST EAX,EAX JZ 0x0017eee3 CMP EAX,0x5 JZ 0x0017eee3 CMP byte ptr [RBX + 0x4],0x1 JNZ 0x0017eee3 MOV RSI,qword ptr [RBX + 0x8] TEST RSI,RSI JZ 0x0017ee6a MOV RAX,qword ptr [0x001e4468] MOV R11,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x28] MOV EDI,0xf4240 MOV RAX,RSI CQO IDIV RDI MOV RDI,RAX MOV R8D,0x3938700 MOV RAX,RSI CQO IDIV R8 MOV R8,RAX PUSH 0x3c POP R9 MOV RAX,RDI CQO IDIV R9 MOV R9,RDX MOV EDI,0x3e8 MOV RAX,RSI CQO IDIV RDI MOV R10,RDX CQO IDIV RDI MOV RAX,RDX LEA RSI,[0x1a34dc] MOV RDI,R14 MOV RDX,RCX MOV ECX,R8D MOV R8D,R9D MOV R9D,EAX XOR EAX,EAX PUSH R11 PUSH R10 CALL 0x00122b40 POP RCX POP RDX MOV EAX,dword ptr [RBX] LAB_0017ee6a: DEC EAX CMP EAX,0x3 JA 0x0017eee3 LEA RCX,[0x1a34cc] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV RAX,qword ptr [0x001e4468] MOV RDX,qword ptr [RAX + 0x20] LEA RSI,[0x1a3508] JMP 0x0017eebb caseD_3: MOV RAX,qword ptr [0x001e4468] MOV RDX,qword ptr [RAX + 0x30] LEA RSI,[0x1a34fa] JMP 0x0017eebb caseD_4: MOV RAX,qword ptr [0x001e4468] MOV RDX,qword ptr [RAX + 0x10] LEA RSI,[0x1a3501] LAB_0017eebb: LEA RCX,[0x19cc41] JMP 0x0017eed9 caseD_2: MOV RAX,qword ptr [0x001e4468] MOV RCX,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x18] LEA RSI,[0x1a34f3] LAB_0017eed9: MOV RDI,R14 XOR EAX,EAX CALL 0x00122b40 default: MOV RDI,qword ptr [RBX + 0x10] MOV RSI,R14 CALL 0x001228c0 MOV EAX,dword ptr [RBX] CMP EAX,0x4 JA 0x0017ef10 PUSH 0x1a POP RCX BT ECX,EAX JNC 0x0017ef10 MOV RAX,qword ptr [0x001e4468] MOV RDI,qword ptr [RAX] MOV RSI,R14 CALL 0x001228c0 LAB_0017ef10: MOV RDI,R14 ADD RSP,0x8 POP RBX POP R14 JMP 0x00122920
/* common_log_entry::print(_IO_FILE*) const */ void __thiscall common_log_entry::print(common_log_entry *this,_IO_FILE *param_1) { long lVar1; int iVar2; int8 *puVar3; char *pcVar4; int8 uVar5; char *__format; iVar2 = *(int *)this; if (param_1 == (_IO_FILE *)0x0) { if ((iVar2 == 1) && (common_log_verbosity_thold < 1)) { return; } puVar3 = (int8 *)PTR_stderr_001e2f98; if (iVar2 == 0) { puVar3 = (int8 *)PTR_stdout_001e2f28; } param_1 = (_IO_FILE *)*puVar3; } if (((iVar2 == 0) || (iVar2 == 5)) || (this[4] != (common_log_entry)0x1)) goto switchD_0017ee7f_default; lVar1 = *(long *)(this + 8); if (lVar1 != 0) { fprintf(param_1,"%s%d.%02d.%03d.%03d%s ",g_col[5],lVar1 / 60000000 & 0xffffffff, (lVar1 / 1000000) % 0x3c & 0xffffffff,(lVar1 / 1000) % 1000 & 0xffffffff,lVar1 % 1000, *g_col); iVar2 = *(int *)this; } switch(iVar2) { case 1: uVar5 = g_col[4]; __format = "%sD %s"; break; case 2: pcVar4 = (char *)*g_col; uVar5 = g_col[3]; __format = "%sI %s"; goto LAB_0017eed9; case 3: uVar5 = g_col[6]; __format = "%sW %s"; break; case 4: uVar5 = g_col[2]; __format = "%sE %s"; break; default: goto switchD_0017ee7f_default; } pcVar4 = ""; LAB_0017eed9: fprintf(param_1,__format,uVar5,pcVar4); switchD_0017ee7f_default: fputs(*(char **)(this + 0x10),param_1); if ((*(uint *)this < 5) && ((0x1aU >> (*(uint *)this & 0x1f) & 1) != 0)) { fputs((char *)*g_col,param_1); } fflush(param_1); return; }
31,573
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); }
O0
c
my_once_alloc: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax addq $0x8, %rax subq $0x1, %rax andq $-0x8, %rax movq %rax, -0x10(%rbp) leaq 0xb8f2e5(%rip), %rax # 0xc83290 movq %rax, -0x40(%rbp) movq $0x0, -0x28(%rbp) leaq 0xb8f2d2(%rip), %rax # 0xc83290 movq (%rax), %rax movq %rax, -0x38(%rbp) xorl %eax, %eax cmpq $0x0, -0x38(%rbp) movb %al, -0x41(%rbp) je 0xf3fe3 movq -0x38(%rbp), %rax movq 0x8(%rax), %rax cmpq -0x10(%rbp), %rax setb %al movb %al, -0x41(%rbp) movb -0x41(%rbp), %al testb $0x1, %al jne 0xf3fec jmp 0xf401b movq -0x38(%rbp), %rax movq 0x8(%rax), %rax cmpq -0x28(%rbp), %rax jbe 0xf4006 movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x28(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) jmp 0xf3fc5 cmpq $0x0, -0x38(%rbp) jne 0xf40f4 movq -0x10(%rbp), %rax addq $0x18, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax shlq $0x2, %rax leaq 0x1cbb8f(%rip), %rcx # 0x2bfbd0 movl (%rcx), %ecx cmpq %rcx, %rax jae 0xf4067 movq -0x20(%rbp), %rax leaq 0x1cbb7d(%rip), %rcx # 0x2bfbd0 movl (%rcx), %ecx cmpq %rcx, %rax jae 0xf4067 leaq 0x1cbb6f(%rip), %rax # 0x2bfbd0 movl (%rax), %eax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x2a6d0 movq %rax, -0x38(%rbp) cmpq $0x0, %rax jne 0xf40be callq 0x2a760 movl (%rax), %eax movl %eax, -0x48(%rbp) callq 0xf60c0 movl -0x48(%rbp), %ecx movl %ecx, (%rax) movq -0x18(%rbp), %rax andq $0x18, %rax cmpq $0x0, %rax je 0xf40b1 movq -0x20(%rbp), %rdx movl $0x5, %edi movl $0x1004, %esi # imm = 0x1004 movb $0x0, %al callq 0xefb70 movq $0x0, -0x8(%rbp) jmp 0xf4147 jmp 0xf40c0 jmp 0xf40c2 movq -0x38(%rbp), %rax movq $0x0, (%rax) movq -0x20(%rbp), %rcx movq -0x38(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x20(%rbp), %rcx subq $0x18, %rcx movq -0x38(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x38(%rbp), %rcx movq -0x40(%rbp), %rax movq %rcx, (%rax) movq -0x38(%rbp), %rax movq -0x38(%rbp), %rcx movq 0x10(%rcx), %rcx movq -0x38(%rbp), %rdx subq 0x8(%rdx), %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rdx movq -0x38(%rbp), %rax movq 0x8(%rax), %rcx subq %rdx, %rcx movq %rcx, 0x8(%rax) movq -0x18(%rbp), %rax andq $0x20, %rax cmpq $0x0, %rax je 0xf413f movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rdx xorl %esi, %esi callq 0x2a2c0 movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x50, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_once_alloc: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] add rax, 8 sub rax, 1 and rax, 0FFFFFFFFFFFFFFF8h mov [rbp+var_10], rax lea rax, my_once_root_block mov [rbp+var_40], rax mov [rbp+var_28], 0 lea rax, my_once_root_block mov rax, [rax] mov [rbp+var_38], rax loc_F3FC5: xor eax, eax cmp [rbp+var_38], 0 mov [rbp+var_41], al jz short loc_F3FE3 mov rax, [rbp+var_38] mov rax, [rax+8] cmp rax, [rbp+var_10] setb al mov [rbp+var_41], al loc_F3FE3: mov al, [rbp+var_41] test al, 1 jnz short loc_F3FEC jmp short loc_F401B loc_F3FEC: mov rax, [rbp+var_38] mov rax, [rax+8] cmp rax, [rbp+var_28] jbe short loc_F4006 mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_28], rax loc_F4006: mov rax, [rbp+var_38] mov [rbp+var_40], rax mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_38], rax jmp short loc_F3FC5 loc_F401B: cmp [rbp+var_38], 0 jnz loc_F40F4 mov rax, [rbp+var_10] add rax, 18h mov [rbp+var_20], rax mov rax, [rbp+var_28] shl rax, 2 lea rcx, my_once_extra mov ecx, [rcx] cmp rax, rcx jnb short loc_F4067 mov rax, [rbp+var_20] lea rcx, my_once_extra mov ecx, [rcx] cmp rax, rcx jnb short loc_F4067 lea rax, my_once_extra mov eax, [rax] mov [rbp+var_20], rax loc_F4067: mov rdi, [rbp+var_20] call _malloc mov [rbp+var_38], rax cmp rax, 0 jnz short loc_F40BE call ___errno_location mov eax, [rax] mov [rbp+var_48], eax call _my_thread_var mov ecx, [rbp+var_48] mov [rax], ecx mov rax, [rbp+var_18] and rax, 18h cmp rax, 0 jz short loc_F40B1 mov rdx, [rbp+var_20] mov edi, 5 mov esi, 1004h mov al, 0 call my_error loc_F40B1: mov [rbp+var_8], 0 jmp loc_F4147 loc_F40BE: jmp short $+2 loc_F40C0: jmp short $+2 loc_F40C2: mov rax, [rbp+var_38] mov qword ptr [rax], 0 mov rcx, [rbp+var_20] mov rax, [rbp+var_38] mov [rax+10h], rcx mov rcx, [rbp+var_20] sub rcx, 18h mov rax, [rbp+var_38] mov [rax+8], rcx mov rcx, [rbp+var_38] mov rax, [rbp+var_40] mov [rax], rcx loc_F40F4: mov rax, [rbp+var_38] mov rcx, [rbp+var_38] mov rcx, [rcx+10h] mov rdx, [rbp+var_38] sub rcx, [rdx+8] add rax, rcx mov [rbp+var_30], rax mov rdx, [rbp+var_10] mov rax, [rbp+var_38] mov rcx, [rax+8] sub rcx, rdx mov [rax+8], rcx mov rax, [rbp+var_18] and rax, 20h cmp rax, 0 jz short loc_F413F mov rdi, [rbp+var_30] mov rdx, [rbp+var_10] xor esi, esi call _memset loc_F413F: mov rax, [rbp+var_30] mov [rbp+var_8], rax loc_F4147: mov rax, [rbp+var_8] add rsp, 50h pop rbp retn
char * my_once_alloc(long long a1, const char *a2) { int v3; // [rsp+8h] [rbp-48h] bool v4; // [rsp+Fh] [rbp-41h] _QWORD *v5; // [rsp+10h] [rbp-40h] _QWORD *i; // [rsp+18h] [rbp-38h] char *v7; // [rsp+20h] [rbp-30h] unsigned long long v8; // [rsp+28h] [rbp-28h] unsigned long long v9; // [rsp+30h] [rbp-20h] unsigned long long v10; // [rsp+40h] [rbp-10h] v10 = (a1 + 7) & 0xFFFFFFFFFFFFFFF8LL; v5 = &my_once_root_block; v8 = 0LL; for ( i = (_QWORD *)my_once_root_block; ; i = (_QWORD *)*i ) { v4 = 0; if ( i ) v4 = i[1] < v10; if ( !v4 ) break; if ( i[1] > v8 ) v8 = i[1]; v5 = i; } if ( !i ) { v9 = v10 + 24; if ( 4 * v8 < my_once_extra && v9 < my_once_extra ) v9 = my_once_extra; i = (_QWORD *)malloc(v9); if ( !i ) { v3 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var(v9, a2) = v3; if ( ((unsigned __int8)a2 & 0x18) != 0 ) my_error(5u, 4100LL, v9); return 0LL; } *i = 0LL; i[2] = v9; i[1] = v9 - 24; *v5 = i; } v7 = (char *)i + i[2] - i[1]; i[1] -= v10; if ( ((unsigned __int8)a2 & 0x20) != 0 ) memset(v7, 0LL, v10); return v7; }
my_once_alloc: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x8 SUB RAX,0x1 AND RAX,-0x8 MOV qword ptr [RBP + -0x10],RAX LEA RAX,[0xd83290] MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x28],0x0 LEA RAX,[0xd83290] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX LAB_001f3fc5: XOR EAX,EAX CMP qword ptr [RBP + -0x38],0x0 MOV byte ptr [RBP + -0x41],AL JZ 0x001f3fe3 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x10] SETC AL MOV byte ptr [RBP + -0x41],AL LAB_001f3fe3: MOV AL,byte ptr [RBP + -0x41] TEST AL,0x1 JNZ 0x001f3fec JMP 0x001f401b LAB_001f3fec: MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] CMP RAX,qword ptr [RBP + -0x28] JBE 0x001f4006 MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x28],RAX LAB_001f4006: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX JMP 0x001f3fc5 LAB_001f401b: CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001f40f4 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x18 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] SHL RAX,0x2 LEA RCX,[0x3bfbd0] MOV ECX,dword ptr [RCX] CMP RAX,RCX JNC 0x001f4067 MOV RAX,qword ptr [RBP + -0x20] LEA RCX,[0x3bfbd0] MOV ECX,dword ptr [RCX] CMP RAX,RCX JNC 0x001f4067 LEA RAX,[0x3bfbd0] MOV EAX,dword ptr [RAX] MOV qword ptr [RBP + -0x20],RAX LAB_001f4067: MOV RDI,qword ptr [RBP + -0x20] CALL 0x0012a6d0 MOV qword ptr [RBP + -0x38],RAX CMP RAX,0x0 JNZ 0x001f40be CALL 0x0012a760 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x48],EAX CALL 0x001f60c0 MOV ECX,dword ptr [RBP + -0x48] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x18 CMP RAX,0x0 JZ 0x001f40b1 MOV RDX,qword ptr [RBP + -0x20] MOV EDI,0x5 MOV ESI,0x1004 MOV AL,0x0 CALL 0x001efb70 LAB_001f40b1: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001f4147 LAB_001f40be: JMP 0x001f40c0 LAB_001f40c0: JMP 0x001f40c2 LAB_001f40c2: MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX],0x0 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x10],RCX MOV RCX,qword ptr [RBP + -0x20] SUB RCX,0x18 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RAX + 0x8],RCX MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RAX],RCX LAB_001f40f4: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RCX + 0x10] MOV RDX,qword ptr [RBP + -0x38] SUB RCX,qword ptr [RDX + 0x8] ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RDX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RAX + 0x8] SUB RCX,RDX MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x20 CMP RAX,0x0 JZ 0x001f413f MOV RDI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x10] XOR ESI,ESI CALL 0x0012a2c0 LAB_001f413f: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX LAB_001f4147: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x50 POP RBP RET
void * my_once_alloc(long param_1,ulong param_2) { int iVar1; ulong __n; int *piVar2; void *__s; bool bVar3; int8 *local_48; int8 *local_40; ulong local_30; size_t local_28; __n = param_1 + 7U & 0xfffffffffffffff8; local_48 = &my_once_root_block; local_30 = 0; local_40 = my_once_root_block; while( true ) { bVar3 = false; if (local_40 != (int8 *)0x0) { bVar3 = (ulong)local_40[1] < __n; } if (!bVar3) break; if (local_30 < (ulong)local_40[1]) { local_30 = local_40[1]; } local_48 = local_40; local_40 = (int8 *)*local_40; } if (local_40 == (int8 *)0x0) { local_28 = __n + 0x18; if ((local_30 << 2 < (ulong)my_once_extra) && (local_28 < my_once_extra)) { local_28 = (size_t)my_once_extra; } local_40 = (int8 *)malloc(local_28); if (local_40 == (int8 *)0x0) { piVar2 = __errno_location(); iVar1 = *piVar2; piVar2 = (int *)_my_thread_var(); *piVar2 = iVar1; if ((param_2 & 0x18) != 0) { my_error(5,0x1004,local_28); } return (void *)0x0; } *local_40 = 0; local_40[2] = local_28; local_40[1] = local_28 - 0x18; *local_48 = local_40; } __s = (void *)((long)local_40 + (local_40[2] - local_40[1])); local_40[1] = local_40[1] - __n; if ((param_2 & 0x20) != 0) { memset(__s,0,__n); } return __s; }
31,574
std::pair<__gnu_cxx::__normal_iterator<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>*, std::vector<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>, 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>>>>, bool> 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>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&)
monkey531[P]llama/common/json.hpp
std::pair<iterator, bool> emplace(KeyType && key, T && t) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return {it, false}; } } Container::emplace_back(std::forward<KeyType>(key), std::forward<T>(t)); return {std::prev(this->end()), true}; }
O0
cpp
std::pair<__gnu_cxx::__normal_iterator<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>*, std::vector<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>, 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>>>>, bool> 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>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&): subq $0x68, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xde640 movq %rax, 0x38(%rsp) movq 0x8(%rsp), %rdi callq 0xde6b0 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi leaq 0x30(%rsp), %rsi callq 0xde670 testb $0x1, %al jne 0x10294b jmp 0x1029a2 movq 0x8(%rsp), %rax addq $0x18, %rax movq %rax, (%rsp) leaq 0x38(%rsp), %rdi callq 0xde6e0 movq (%rsp), %rdi movq %rax, %rsi movq 0x48(%rsp), %rdx callq 0x102a00 testb $0x1, %al jne 0x102979 jmp 0x102994 movb $0x0, 0x2f(%rsp) leaq 0x58(%rsp), %rdi leaq 0x38(%rsp), %rsi leaq 0x2f(%rsp), %rdx callq 0x102a60 jmp 0x1029f2 jmp 0x102996 leaq 0x38(%rsp), %rdi callq 0xdea50 jmp 0x102927 movq 0x8(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x40(%rsp), %rdx callq 0x102a90 movq 0x8(%rsp), %rdi callq 0xde6b0 movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rdi movl $0x1, %esi callq 0x102b20 movq %rax, 0x20(%rsp) movb $0x1, 0x17(%rsp) leaq 0x58(%rsp), %rdi leaq 0x20(%rsp), %rsi leaq 0x17(%rsp), %rdx callq 0x102b60 movq 0x58(%rsp), %rax movb 0x60(%rsp), %dl addq $0x68, %rsp retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_: sub rsp, 68h mov [rsp+68h+var_18], rdi mov [rsp+68h+var_20], rsi mov [rsp+68h+var_28], rdx mov rdi, [rsp+68h+var_18] mov [rsp+68h+var_60], rdi call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::begin(void) mov [rsp+68h+var_30], rax loc_102927: mov rdi, [rsp+68h+var_60] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::end(void) mov [rsp+68h+var_38], rax lea rdi, [rsp+68h+var_30] lea rsi, [rsp+68h+var_38] call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>> const&) test al, 1 jnz short loc_10294B jmp short loc_1029A2 loc_10294B: mov rax, [rsp+68h+var_60] add rax, 18h mov [rsp+68h+var_68], rax lea rdi, [rsp+68h+var_30] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>::operator->(void) mov rdi, [rsp+68h+var_68] mov rsi, rax mov rdx, [rsp+68h+var_20] call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEERKSC_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSL_OSM_ test al, 1 jnz short loc_102979 jmp short loc_102994 loc_102979: mov [rsp+68h+var_39], 0 lea rdi, [rsp+68h+var_10] lea rsi, [rsp+68h+var_30] lea rdx, [rsp+68h+var_39] call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2IRSO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIST_SU_EEEbE4typeELb1EEEOST_OSU_ jmp short loc_1029F2 loc_102994: jmp short $+2 loc_102996: lea rdi, [rsp+68h+var_30] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>::operator++(void) jmp short loc_102927 loc_1029A2: mov rdi, [rsp+68h+var_60] mov rsi, [rsp+68h+var_20] mov rdx, [rsp+68h+var_28] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRKSA_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::emplace_back<std::string const&,minja::Value>(std::string const&,minja::Value &&) mov rdi, [rsp+68h+var_60] call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::end(void) mov [rsp+68h+var_50], rax mov rdi, [rsp+68h+var_50] mov esi, 1 call _ZSt4prevIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::prev<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>>::difference_type) mov [rsp+68h+var_48], rax mov [rsp+68h+var_51], 1 lea rdi, [rsp+68h+var_10] lea rsi, [rsp+68h+var_48] lea rdx, [rsp+68h+var_51] call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2ISO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISS_ST_EEEbE4typeELb1EEEOSS_OST_ loc_1029F2: mov rax, [rsp+68h+var_10] mov dl, [rsp+68h+var_8] add rsp, 68h retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_( long long a1, long long a2, long long a3) { long long v3; // rax char v5; // [rsp+17h] [rbp-51h] BYREF long long v6; // [rsp+18h] [rbp-50h] long long v7; // [rsp+20h] [rbp-48h] BYREF char v8; // [rsp+2Fh] [rbp-39h] BYREF long long v9; // [rsp+30h] [rbp-38h] BYREF long long i; // [rsp+38h] [rbp-30h] BYREF long long v11; // [rsp+40h] [rbp-28h] long long v12; // [rsp+48h] [rbp-20h] long long v13; // [rsp+50h] [rbp-18h] long long v14; // [rsp+58h] [rbp-10h] BYREF v13 = a1; v12 = a2; v11 = a3; for ( i = std::vector<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>>::begin(a1); ; __gnu_cxx::__normal_iterator<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> *,std::vector<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>>>::operator++(&i) ) { v9 = std::vector<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>>::end(a1); if ( !__gnu_cxx::operator!=<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> *,std::vector<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>>>( (long long)&i, (long long)&v9) ) break; v3 = __gnu_cxx::__normal_iterator<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> *,std::vector<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>>>::operator->((long long)&i); if ( (std::equal_to<void>::operator()<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&,std::string const&>( a1 + 24, v3, v12) & 1) != 0 ) { v8 = 0; ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2IRSO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIST_SU_EEEbE4typeELb1EEEOST_OSU_( &v14, &i, &v8); return v14; } } std::vector<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>>::emplace_back<std::string const&,minja::Value>( a1, v12, v11); v6 = std::vector<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>>::end(a1); v7 = std::prev<__gnu_cxx::__normal_iterator<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> *,std::vector<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>>>>( v6, 1LL); v5 = 1; ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2ISO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISS_ST_EEEbE4typeELb1EEEOSS_OST_( &v14, &v7, &v5); return v14; }
31,575
std::pair<__gnu_cxx::__normal_iterator<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>*, std::vector<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>, 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>>>>, bool> 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>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&)
monkey531[P]llama/common/json.hpp
std::pair<iterator, bool> emplace(KeyType && key, T && t) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return {it, false}; } } Container::emplace_back(std::forward<KeyType>(key), std::forward<T>(t)); return {std::prev(this->end()), true}; }
O2
cpp
std::pair<__gnu_cxx::__normal_iterator<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>*, std::vector<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>, 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>>>>, bool> 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>>>::emplace<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, 0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Value&&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %r14 movq (%rdi), %rbx leaq 0x18(%rdi), %r13 cmpq 0x8(%r14), %rbx je 0x5ad77 movq %r13, %rdi movq %rbx, %rsi movq %r12, %rdx callq 0x5ada0 testb %al, %al jne 0x5ad91 addq $0x60, %rbx jmp 0x5ad59 movq %r14, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x5adda movq 0x8(%r14), %rbx addq $-0x60, %rbx movb $0x1, %dl jmp 0x5ad93 xorl %edx, %edx movq %rbx, %rax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_: push r15 push r14 push r13 push r12 push rbx mov r15, rdx mov r12, rsi mov r14, rdi mov rbx, [rdi] lea r13, [rdi+18h] loc_5AD59: cmp rbx, [r14+8] jz short loc_5AD77 mov rdi, r13 mov rsi, rbx mov rdx, r12 call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEERKSC_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSL_OSM_ test al, al jnz short loc_5AD91 add rbx, 60h ; '`' jmp short loc_5AD59 loc_5AD77: mov rdi, r14 mov rsi, r12 mov rdx, r15 call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRKSA_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::emplace_back<std::string const&,minja::Value>(std::string const&,minja::Value &&) mov rbx, [r14+8] add rbx, 0FFFFFFFFFFFFFFA0h mov dl, 1 jmp short loc_5AD93 loc_5AD91: xor edx, edx loc_5AD93: mov rax, rbx pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_( long long *a1, long long a2, long long a3) { long long i; // rbx for ( i = *a1; i != a1[1]; i += 96LL ) { if ( (unsigned __int8)std::equal_to<void>::operator()<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&,std::string const&>( a1 + 3, i, a2) ) return i; } std::vector<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>>::emplace_back<std::string const&,minja::Value>( a1, a2, a3); return a1[1] - 96; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RDX MOV R12,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LEA R13,[RDI + 0x18] LAB_0015ad59: CMP RBX,qword ptr [R14 + 0x8] JZ 0x0015ad77 MOV RDI,R13 MOV RSI,RBX MOV RDX,R12 CALL 0x0015ada0 TEST AL,AL JNZ 0x0015ad91 ADD RBX,0x60 JMP 0x0015ad59 LAB_0015ad77: MOV RDI,R14 MOV RSI,R12 MOV RDX,R15 CALL 0x0015adda MOV RBX,qword ptr [R14 + 0x8] ADD RBX,-0x60 MOV DL,0x1 JMP 0x0015ad93 LAB_0015ad91: XOR EDX,EDX LAB_0015ad93: MOV RAX,RBX POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEESI_IN9__gnu_cxx17__normal_iteratorIPSK_S3_ISK_SL_EEEbEOST_OSF_ (vector<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>,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>>> *param_1,string *param_2,Value *param_3) { char cVar1; int8 extraout_RDX; int8 uVar2; basic_json *pbVar3; int1 auVar4 [16]; pbVar3 = *(basic_json **)param_1; do { if (pbVar3 == *(basic_json **)(param_1 + 8)) { std:: vector<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>,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>>> ::emplace_back<std::__cxx11::string_const&,minja::Value>(param_1,param_2,param_3); pbVar3 = (basic_json *)(*(long *)(param_1 + 8) + -0x60); uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1); LAB_0015ad93: auVar4._8_8_ = uVar2; auVar4._0_8_ = pbVar3; return auVar4; } cVar1 = std::equal_to<void>::operator()((equal_to<void> *)(param_1 + 0x18),pbVar3,param_2); if (cVar1 != '\0') { uVar2 = 0; goto LAB_0015ad93; } pbVar3 = pbVar3 + 0x60; } while( true ); }
31,576
ggml_build_forward_impl
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
static void ggml_build_forward_impl(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor, bool expand) { if (!expand) { // TODO: this branch isn't accessible anymore, maybe move this to ggml_build_forward_expand ggml_graph_clear(cgraph); } const int n0 = cgraph->n_nodes; ggml_visit_parents(cgraph, tensor); const int n_new = cgraph->n_nodes - n0; GGML_PRINT_DEBUG("%s: visited %d new nodes\n", __func__, n_new); if (n_new > 0) { // the last added node should always be starting point GGML_ASSERT(cgraph->nodes[cgraph->n_nodes - 1] == tensor); } }
O0
c
ggml_build_forward_impl: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) testb $0x1, -0x11(%rbp) jne 0x557c6 movq -0x8(%rbp), %rdi callq 0x462d0 movq -0x8(%rbp), %rax movl 0x4(%rax), %eax movl %eax, -0x18(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x5a3d0 movq -0x8(%rbp), %rax movl 0x4(%rax), %eax subl -0x18(%rbp), %eax movl %eax, -0x1c(%rbp) cmpl $0x0, -0x1c(%rbp) jle 0x55832 movq -0x8(%rbp), %rax movq 0x10(%rax), %rax movq -0x8(%rbp), %rcx movl 0x4(%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx movq (%rax,%rcx,8), %rax cmpq -0x10(%rbp), %rax je 0x55830 leaq 0x5bda1(%rip), %rdi # 0xb15b7 movl $0x1679, %esi # imm = 0x1679 leaq 0x5bde7(%rip), %rdx # 0xb1609 leaq 0x5e569(%rip), %rcx # 0xb3d92 movb $0x0, %al callq 0x48a00 jmp 0x55832 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
ggml_build_forward_impl: push rbp mov rbp, rsp sub rsp, 20h mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi and al, 1 mov [rbp+var_11], al test [rbp+var_11], 1 jnz short loc_557C6 mov rdi, [rbp+var_8] call _ggml_graph_clear loc_557C6: mov rax, [rbp+var_8] mov eax, [rax+4] mov [rbp+var_18], eax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call ggml_visit_parents mov rax, [rbp+var_8] mov eax, [rax+4] sub eax, [rbp+var_18] mov [rbp+var_1C], eax cmp [rbp+var_1C], 0 jle short loc_55832 mov rax, [rbp+var_8] mov rax, [rax+10h] mov rcx, [rbp+var_8] mov ecx, [rcx+4] sub ecx, 1 movsxd rcx, ecx mov rax, [rax+rcx*8] cmp rax, [rbp+var_10] jz short loc_55830 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 1679h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aCgraphNodesCgr; "cgraph->nodes[cgraph->n_nodes - 1] == t"... mov al, 0 call _ggml_abort loc_55830: jmp short $+2 loc_55832: add rsp, 20h pop rbp retn
long long ggml_build_forward_impl(long long a1, long long a2, char a3) { long long result; // rax int v4; // [rsp+8h] [rbp-18h] if ( (a3 & 1) == 0 ) ggml_graph_clear(a1); v4 = *(_DWORD *)(a1 + 4); ggml_visit_parents(a1, a2); result = (unsigned int)(*(_DWORD *)(a1 + 4) - v4); if ( *(_DWORD *)(a1 + 4) - v4 > 0 ) { result = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * (*(_DWORD *)(a1 + 4) - 1)); if ( result != a2 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 5753, (long long)"GGML_ASSERT(%s) failed", "cgraph->nodes[cgraph->n_nodes - 1] == tensor"); } return result; }
ggml_build_forward_impl: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI AND AL,0x1 MOV byte ptr [RBP + -0x11],AL TEST byte ptr [RBP + -0x11],0x1 JNZ 0x001557c6 MOV RDI,qword ptr [RBP + -0x8] CALL 0x001462d0 LAB_001557c6: MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBP + -0x18],EAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x0015a3d0 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x4] SUB EAX,dword ptr [RBP + -0x18] MOV dword ptr [RBP + -0x1c],EAX CMP dword ptr [RBP + -0x1c],0x0 JLE 0x00155832 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x4] SUB ECX,0x1 MOVSXD RCX,ECX MOV RAX,qword ptr [RAX + RCX*0x8] CMP RAX,qword ptr [RBP + -0x10] JZ 0x00155830 LEA RDI,[0x1b15b7] MOV ESI,0x1679 LEA RDX,[0x1b1609] LEA RCX,[0x1b3d92] MOV AL,0x0 CALL 0x00148a00 LAB_00155830: JMP 0x00155832 LAB_00155832: ADD RSP,0x20 POP RBP RET
void ggml_build_forward_impl(long param_1,long param_2,byte param_3) { int iVar1; if ((param_3 & 1) == 0) { ggml_graph_clear(param_1); } iVar1 = *(int *)(param_1 + 4); ggml_visit_parents(param_1,param_2); if ((0 < *(int *)(param_1 + 4) - iVar1) && (*(long *)(*(long *)(param_1 + 0x10) + (long)(*(int *)(param_1 + 4) + -1) * 8) != param_2)) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0x1679,"GGML_ASSERT(%s) failed","cgraph->nodes[cgraph->n_nodes - 1] == tensor"); } return; }
31,577
my_hrtime
eloqsql/mysys/my_getsystime.c
my_hrtime_t my_hrtime() { my_hrtime_t hrtime; #if defined(_WIN32) ulonglong newtime; GetSystemTimePreciseAsFileTime((FILETIME*)&newtime); hrtime.val= (newtime - OFFSET_TO_EPOC)/10; #elif defined(HAVE_CLOCK_GETTIME) struct timespec tp; clock_gettime(CLOCK_REALTIME, &tp); hrtime.val= tp.tv_sec*1000000ULL+tp.tv_nsec/1000ULL; #else struct timeval t; /* The following loop is here because gettimeofday may fail */ while (gettimeofday(&t, NULL) != 0) {} hrtime.val= t.tv_sec*1000000ULL + t.tv_usec; #endif DBUG_EXECUTE_IF("system_time_plus_one_hour", hrtime.val += 3600*1000000ULL;); DBUG_EXECUTE_IF("system_time_minus_one_hour", hrtime.val -= 3600*1000000ULL;); return hrtime; }
O3
c
my_hrtime: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x18, %rsp leaq -0x18(%rbp), %rbx xorl %edi, %edi movq %rbx, %rsi callq 0x242f0 imulq $0xf4240, (%rbx), %rcx # imm = 0xF4240 movq 0x8(%rbx), %rax shrq $0x3, %rax movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF mulq %rdx shrq $0x4, %rdx addq %rdx, %rcx movq %rcx, %rax addq $0x18, %rsp popq %rbx popq %rbp retq
my_hrtime: push rbp mov rbp, rsp push rbx sub rsp, 18h lea rbx, [rbp+var_18] xor edi, edi mov rsi, rbx call _clock_gettime imul rcx, [rbx], 0F4240h mov rax, [rbx+8] shr rax, 3 mov rdx, 20C49BA5E353F7CFh mul rdx shr rdx, 4 add rcx, rdx mov rax, rcx add rsp, 18h pop rbx pop rbp retn
unsigned long long my_hrtime() { long long v1; // [rsp+8h] [rbp-18h] BYREF unsigned long long v2; // [rsp+10h] [rbp-10h] clock_gettime(0LL, &v1); return v2 / 0x3E8 + 1000000 * v1; }
my_hrtime: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x18 LEA RBX,[RBP + -0x18] XOR EDI,EDI MOV RSI,RBX CALL 0x001242f0 IMUL RCX,qword ptr [RBX],0xf4240 MOV RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 MOV RDX,0x20c49ba5e353f7cf MUL RDX SHR RDX,0x4 ADD RCX,RDX MOV RAX,RCX ADD RSP,0x18 POP RBX POP RBP RET
long my_hrtime(void) { timespec local_20; clock_gettime(0,&local_20); return local_20.tv_sec * 1000000 + (ulong)local_20.tv_nsec / 1000; }
31,578
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
T& operator[](const key_type& key) { return emplace(key, T{}).first->second; }
O1
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rsp, %r15 movb $0x0, (%r15) movq $0x0, 0x8(%r15) movq %r15, %rdi movl $0x1, %esi callq 0x5869e movq %r15, %rdi movl $0x1, %esi callq 0x5869e movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x5f54a movq %rax, %rbx addq $0x20, %rbx movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x5869e movq %r14, %rdi callq 0x5de8a movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x5869e movq %r14, %rdi callq 0x5de8a movq %rbx, %rdi callq 0x1bf90 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_: push r15 push r14 push rbx sub rsp, 10h mov rbx, rsi mov r14, rdi mov r15, rsp mov byte ptr [r15], 0 mov qword ptr [r15+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov rsi, rbx mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rbx, rax add rbx, 20h ; ' ' mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn mov rbx, rax mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[]( long long a1, long long a2) { long long v2; // rbx char v4[8]; // [rsp+0h] [rbp-28h] BYREF long long v5; // [rsp+8h] [rbp-20h] v4[0] = 0; 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(v4); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4); v2 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( a1, a2, v4) + 32; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v4); return v2; }
operator[]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RSI MOV R14,RDI MOV R15,RSP MOV byte ptr [R15],0x0 MOV qword ptr [R15 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x0015869e MOV RDI,R15 MOV ESI,0x1 CALL 0x0015869e LAB_0015f4b6: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0015f54a LAB_0015f4c4: MOV RBX,RAX ADD RBX,0x20 MOV R14,RSP MOV RDI,R14 XOR ESI,ESI CALL 0x0015869e MOV RDI,R14 CALL 0x0015de8a MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::operator[](std::__cxx11::string const&) */ long __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator[](ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1) { long lVar1; bool bVar2; basic_json local_28 [8]; int8 local_20; local_28[0] = (basic_json)0x0; local_20 = 0; bVar2 = SUB81(local_28,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(bVar2); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar2); /* try { // try from 0015f4b6 to 0015f4c3 has its CatchHandler @ 0015f4ed */ lVar1 = emplace(this,param_1,local_28); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar2); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_28); return lVar1 + 0x20; }
31,579
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json.hpp
T& operator[](const key_type& key) { return emplace(key, T{}).first->second; }
O3
cpp
nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rsp, %r15 movb $0x0, (%r15) movq $0x0, 0x8(%r15) movq %r15, %rdi movl $0x1, %esi callq 0x590b4 movq %r15, %rdi movl $0x1, %esi callq 0x590b4 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x5fc86 movq %rax, %rbx addq $0x20, %rbx movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x590b4 movq %r14, %rdi callq 0x5e5a2 movq %rbx, %rax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq %rsp, %r14 movq %r14, %rdi xorl %esi, %esi callq 0x590b4 movq %r14, %rdi callq 0x5e5a2 movq %rbx, %rdi callq 0x1bf90 nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEixERSH_: push r15 push r14 push rbx sub rsp, 10h mov rbx, rsi mov r14, rdi mov r15, rsp mov byte ptr [r15], 0 mov qword ptr [r15+8], 0 mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r15 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov rsi, rbx mov rdx, r15 call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_; nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::emplace(std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) mov rbx, rax add rbx, 20h ; ' ' mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, rbx add rsp, 10h pop rbx pop r14 pop r15 retn mov rbx, rax mov r14, rsp mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, rbx call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator[]( long long a1, long long a2) { long long v2; // rbx char v4[8]; // [rsp+0h] [rbp-28h] BYREF long long v5; // [rsp+8h] [rbp-20h] v4[0] = 0; 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(v4); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4); v2 = nlohmann::json_abi_v3_11_3::ordered_map<std::string,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::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace( a1, a2, v4) + 32; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v4); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v4); return v2; }
operator[]: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV RBX,RSI MOV R14,RDI MOV R15,RSP MOV byte ptr [R15],0x0 MOV qword ptr [R15 + 0x8],0x0 MOV RDI,R15 MOV ESI,0x1 CALL 0x001590b4 MOV RDI,R15 MOV ESI,0x1 CALL 0x001590b4 LAB_0015fbf2: MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 CALL 0x0015fc86 LAB_0015fc00: MOV RBX,RAX ADD RBX,0x20 MOV R14,RSP MOV RDI,R14 XOR ESI,ESI CALL 0x001590b4 MOV RDI,R14 CALL 0x0015e5a2 MOV RAX,RBX ADD RSP,0x10 POP RBX POP R14 POP R15 RET
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::string const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > > >::operator[](std::__cxx11::string const&) */ long __thiscall nlohmann::json_abi_v3_11_3:: ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::operator[](ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *this,string *param_1) { long lVar1; bool bVar2; basic_json local_28 [8]; int8 local_20; local_28[0] = (basic_json)0x0; local_20 = 0; bVar2 = SUB81(local_28,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(bVar2); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar2); /* try { // try from 0015fbf2 to 0015fbff has its CatchHandler @ 0015fc29 */ lVar1 = emplace(this,param_1,local_28); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar2); basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_28); return lVar1 + 0x20; }
31,580
carry_global_memory_stat_delta(PFS_memory_stat_delta*, unsigned int)
eloqsql/storage/perfschema/pfs_instr.cc
void carry_global_memory_stat_delta(PFS_memory_stat_delta *delta, uint index) { PFS_memory_stat *stat; PFS_memory_stat_delta delta_buffer; stat= & global_instr_class_memory_array[index]; (void) stat->apply_delta(delta, &delta_buffer); }
O3
cpp
carry_global_memory_stat_delta(PFS_memory_stat_delta*, unsigned int): pushq %rbp movq %rsp, %rbp movq 0x399ffb(%rip), %rax # 0x3d0ad0 movl %esi, %ecx leaq (%rcx,%rcx,8), %rcx movb $0x1, (%rax,%rcx,8) movq 0x28(%rax,%rcx,8), %rdx movq 0x30(%rax,%rcx,8), %rsi xorl %r8d, %r8d subq (%rdi), %rdx cmovbq %r8, %rdx movq %rdx, 0x28(%rax,%rcx,8) movq 0x38(%rax,%rcx,8), %rdx subq 0x10(%rdi), %rdx cmovbq %r8, %rdx movq %rdx, 0x38(%rax,%rcx,8) subq 0x8(%rdi), %rsi cmovbq %r8, %rsi movq %rsi, 0x30(%rax,%rcx,8) movq 0x40(%rax,%rcx,8), %rdx subq 0x18(%rdi), %rdx cmovbq %r8, %rdx movq %rdx, 0x40(%rax,%rcx,8) popq %rbp retq
_Z30carry_global_memory_stat_deltaP21PFS_memory_stat_deltaj: push rbp mov rbp, rsp mov rax, cs:global_instr_class_memory_array mov ecx, esi lea rcx, [rcx+rcx*8] mov byte ptr [rax+rcx*8], 1 mov rdx, [rax+rcx*8+28h] mov rsi, [rax+rcx*8+30h] xor r8d, r8d sub rdx, [rdi] cmovb rdx, r8 mov [rax+rcx*8+28h], rdx mov rdx, [rax+rcx*8+38h] sub rdx, [rdi+10h] cmovb rdx, r8 mov [rax+rcx*8+38h], rdx sub rsi, [rdi+8] cmovb rsi, r8 mov [rax+rcx*8+30h], rsi mov rdx, [rax+rcx*8+40h] sub rdx, [rdi+18h] cmovb rdx, r8 mov [rax+rcx*8+40h], rdx pop rbp retn
PFS_memory_stat * carry_global_memory_stat_delta(unsigned long long *a1, unsigned int a2) { PFS_memory_stat *result; // rax long long v3; // rcx unsigned long long v4; // rdx unsigned long long v5; // rsi bool v6; // cf unsigned long long v7; // rdx unsigned long long v8; // rdx unsigned long long v9; // rdx unsigned long long v10; // rsi unsigned long long v11; // rdx unsigned long long v12; // rdx result = global_instr_class_memory_array; v3 = 9LL * a2; *((_BYTE *)global_instr_class_memory_array + 72 * a2) = 1; v4 = *((_QWORD *)result + 9 * a2 + 5); v5 = *((_QWORD *)result + 9 * a2 + 6); v6 = v4 < *a1; v7 = v4 - *a1; if ( v6 ) v7 = 0LL; *((_QWORD *)result + v3 + 5) = v7; v8 = *((_QWORD *)result + v3 + 7); v6 = v8 < a1[2]; v9 = v8 - a1[2]; if ( v6 ) v9 = 0LL; *((_QWORD *)result + v3 + 7) = v9; v6 = v5 < a1[1]; v10 = v5 - a1[1]; if ( v6 ) v10 = 0LL; *((_QWORD *)result + v3 + 6) = v10; v11 = *((_QWORD *)result + v3 + 8); v6 = v11 < a1[3]; v12 = v11 - a1[3]; if ( v6 ) v12 = 0LL; *((_QWORD *)result + v3 + 8) = v12; return result; }
carry_global_memory_stat_delta: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [0x004d0ad0] MOV ECX,ESI LEA RCX,[RCX + RCX*0x8] MOV byte ptr [RAX + RCX*0x8],0x1 MOV RDX,qword ptr [RAX + RCX*0x8 + 0x28] MOV RSI,qword ptr [RAX + RCX*0x8 + 0x30] XOR R8D,R8D SUB RDX,qword ptr [RDI] CMOVC RDX,R8 MOV qword ptr [RAX + RCX*0x8 + 0x28],RDX MOV RDX,qword ptr [RAX + RCX*0x8 + 0x38] SUB RDX,qword ptr [RDI + 0x10] CMOVC RDX,R8 MOV qword ptr [RAX + RCX*0x8 + 0x38],RDX SUB RSI,qword ptr [RDI + 0x8] CMOVC RSI,R8 MOV qword ptr [RAX + RCX*0x8 + 0x30],RSI MOV RDX,qword ptr [RAX + RCX*0x8 + 0x40] SUB RDX,qword ptr [RDI + 0x18] CMOVC RDX,R8 MOV qword ptr [RAX + RCX*0x8 + 0x40],RDX POP RBP RET
/* carry_global_memory_stat_delta(PFS_memory_stat_delta*, unsigned int) */ void carry_global_memory_stat_delta(PFS_memory_stat_delta *param_1,uint param_2) { ulong uVar1; ulong uVar2; ulong uVar3; long lVar4; long lVar5; long lVar6; lVar4 = global_instr_class_memory_array; uVar3 = (ulong)param_2; *(int1 *)(global_instr_class_memory_array + uVar3 * 0x48) = 1; uVar1 = *(ulong *)(lVar4 + 0x28 + uVar3 * 0x48); uVar2 = *(ulong *)(lVar4 + 0x30 + uVar3 * 0x48); lVar6 = 0; lVar5 = uVar1 - *(long *)param_1; if (uVar1 < *(ulong *)param_1) { lVar5 = lVar6; } *(long *)(lVar4 + 0x28 + uVar3 * 0x48) = lVar5; uVar1 = *(ulong *)(lVar4 + 0x38 + uVar3 * 0x48); lVar5 = uVar1 - *(ulong *)(param_1 + 0x10); if (uVar1 < *(ulong *)(param_1 + 0x10)) { lVar5 = lVar6; } *(long *)(lVar4 + 0x38 + uVar3 * 0x48) = lVar5; lVar5 = uVar2 - *(ulong *)(param_1 + 8); if (uVar2 < *(ulong *)(param_1 + 8)) { lVar5 = lVar6; } *(long *)(lVar4 + 0x30 + uVar3 * 0x48) = lVar5; uVar1 = *(ulong *)(lVar4 + 0x40 + uVar3 * 0x48); lVar5 = uVar1 - *(ulong *)(param_1 + 0x18); if (uVar1 < *(ulong *)(param_1 + 0x18)) { lVar5 = lVar6; } *(long *)(lVar4 + 0x40 + uVar3 * 0x48) = lVar5; return; }
31,581
my_end
eloqsql/mysys/my_init.c
void my_end(int infoflag) { /* this code is suboptimal to workaround a bug in Sun CC: Sun C++ 5.6 2004/06/02 for x86, and should not be optimized until this compiler is not in use anymore */ FILE *info_file= DBUG_FILE; my_bool print_info= (info_file != stderr); if (!my_init_done) return; /* We do not use DBUG_ENTER here, as after cleanup DBUG is no longer operational, so we cannot use DBUG_RETURN. */ DBUG_PRINT("info",("Shutting down: infoflag: %d print_info: %d", infoflag, print_info)); if (!info_file) { info_file= stderr; print_info= 0; } if ((infoflag & MY_CHECK_ERROR) || print_info) { /* Test if some file is left open */ char ebuff[512]; uint i, open_files, open_streams; for (open_streams= open_files= i= 0 ; i < my_file_limit ; i++) { if (my_file_info[i].type == UNOPEN) continue; if (my_file_info[i].type == STREAM_BY_FOPEN || my_file_info[i].type == STREAM_BY_FDOPEN) open_streams++; else open_files++; #ifdef EXTRA_DEBUG fprintf(stderr, EE(EE_FILE_NOT_CLOSED), my_file_info[i].name, i); fputc('\n', stderr); #endif } if (open_files || open_streams) { my_snprintf(ebuff, sizeof(ebuff), EE(EE_OPEN_WARNING), open_files, open_streams); my_message_stderr(EE_OPEN_WARNING, ebuff, ME_BELL); DBUG_PRINT("error", ("%s", ebuff)); } #ifdef CHECK_UNLIKELY end_my_likely(info_file); #endif } free_charsets(); my_error_unregister_all(); my_once_free(); if ((infoflag & MY_GIVE_INFO) || print_info) { #ifdef HAVE_GETRUSAGE struct rusage rus; #ifdef HAVE_valgrind /* Purify assumes that rus is uninitialized after getrusage call */ bzero((char*) &rus, sizeof(rus)); #endif if (!getrusage(RUSAGE_SELF, &rus)) fprintf(info_file,"\n\ User time %.2f, System time %.2f\n\ Maximum resident set size %ld, Integral resident set size %ld\n\ Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n\ Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n\ Voluntary context switches %ld, Involuntary context switches %ld\n", (rus.ru_utime.tv_sec * SCALE_SEC + rus.ru_utime.tv_usec / SCALE_USEC) / 100.0, (rus.ru_stime.tv_sec * SCALE_SEC + rus.ru_stime.tv_usec / SCALE_USEC) / 100.0, rus.ru_maxrss, rus.ru_idrss, rus.ru_minflt, rus.ru_majflt, rus.ru_nswap, rus.ru_inblock, rus.ru_oublock, rus.ru_msgsnd, rus.ru_msgrcv, rus.ru_nsignals, rus.ru_nvcsw, rus.ru_nivcsw); #endif #if defined(_MSC_VER) _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_WARN, _CRTDBG_FILE_STDERR ); _CrtSetReportMode( _CRT_ERROR, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_ERROR, _CRTDBG_FILE_STDERR ); _CrtSetReportMode( _CRT_ASSERT, _CRTDBG_MODE_FILE ); _CrtSetReportFile( _CRT_ASSERT, _CRTDBG_FILE_STDERR ); _CrtCheckMemory(); #endif } my_thread_end(); my_thread_global_end(); if (!(infoflag & MY_DONT_FREE_DBUG)) DBUG_END(); /* Must be done as late as possible */ my_mutex_end(); #if defined(SAFE_MUTEX) /* Check on destroying of mutexes. A few may be left that will get cleaned up by C++ destructors */ safe_mutex_end((infoflag & (MY_GIVE_INFO | MY_CHECK_ERROR)) ? stderr : (FILE *) 0); #endif /* defined(SAFE_MUTEX) */ #ifdef _WIN32 WSACleanup(); #endif /* At very last, delete mysys key, it is used everywhere including DBUG */ pthread_key_delete(THR_KEY_mysys); my_init_done= my_thr_key_mysys_exists= 0; }
O0
c
my_end: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x308, %rsp # imm = 0x308 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movl %edi, -0x234(%rbp) movq 0x1a86ba(%rip), %rax # 0x1cdfd8 movq (%rax), %rax movq %rax, -0x240(%rbp) movq -0x240(%rbp), %rax movq 0x1a86a2(%rip), %rcx # 0x1cdfd8 cmpq (%rcx), %rax setne %al andb $0x1, %al movzbl %al, %eax movb %al, -0x241(%rbp) leaq 0x35ff1a(%rip), %rax # 0x385868 cmpb $0x0, (%rax) jne 0x25958 jmp 0x25c51 jmp 0x2595a jmp 0x2595c cmpq $0x0, -0x240(%rbp) jne 0x2597e movq 0x1a866b(%rip), %rax # 0x1cdfd8 movq (%rax), %rax movq %rax, -0x240(%rbp) movb $0x0, -0x241(%rbp) movl -0x234(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax jne 0x2599c movsbl -0x241(%rbp), %eax cmpl $0x0, %eax je 0x25aba movl $0x0, -0x248(%rbp) movl $0x0, -0x24c(%rbp) movl $0x0, -0x250(%rbp) movl -0x248(%rbp), %eax leaq 0x1a8a39(%rip), %rcx # 0x1ce400 cmpl (%rcx), %eax jae 0x25a5e leaq 0x1a8a32(%rip), %rax # 0x1ce408 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x0, 0x8(%rax) jne 0x259ee jmp 0x25a4a leaq 0x1a8a13(%rip), %rax # 0x1ce408 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x3, 0x8(%rax) je 0x25a28 leaq 0x1a89f6(%rip), %rax # 0x1ce408 movq (%rax), %rax movl -0x248(%rbp), %ecx shlq $0x4, %rcx addq %rcx, %rax cmpl $0x4, 0x8(%rax) jne 0x25a39 movl -0x250(%rbp), %eax addl $0x1, %eax movl %eax, -0x250(%rbp) jmp 0x25a48 movl -0x24c(%rbp), %eax addl $0x1, %eax movl %eax, -0x24c(%rbp) jmp 0x25a4a movl -0x248(%rbp), %eax addl $0x1, %eax movl %eax, -0x248(%rbp) jmp 0x259ba cmpl $0x0, -0x24c(%rbp) jne 0x25a70 cmpl $0x0, -0x250(%rbp) je 0x25ab8 leaq -0x230(%rbp), %rdi leaq 0x1a8e72(%rip), %rax # 0x1ce8f0 movq 0x90(%rax), %rdx movl -0x24c(%rbp), %ecx movl -0x250(%rbp), %r8d movl $0x200, %esi # imm = 0x200 movb $0x0, %al callq 0x76910 leaq -0x230(%rbp), %rsi movl $0x13, %edi movl $0x4, %edx callq 0x25ec0 jmp 0x25ab6 jmp 0x25ab8 jmp 0x25aba callq 0x29930 callq 0x2ea10 callq 0x26230 movl -0x234(%rbp), %eax andl $0x2, %eax cmpl $0x0, %eax jne 0x25ae7 movsbl -0x241(%rbp), %eax cmpl $0x0, %eax je 0x25c0c xorl %edi, %edi leaq -0x2e0(%rbp), %rsi callq 0x241e0 cmpl $0x0, %eax jne 0x25c0a movq -0x240(%rbp), %rdi imulq $0x64, -0x2e0(%rbp), %rax movq %rax, -0x2f0(%rbp) movq -0x2d8(%rbp), %rax movl $0x2710, %ecx # imm = 0x2710 cqto idivq %rcx movq %rax, %rcx movq -0x2f0(%rbp), %rax addq %rcx, %rax cvtsi2sd %rax, %xmm0 movsd 0x580d9(%rip), %xmm1 # 0x7dc18 divsd %xmm1, %xmm0 imulq $0x64, -0x2d0(%rbp), %rax movq %rax, -0x2e8(%rbp) movq -0x2c8(%rbp), %rax movl $0x2710, %ecx # imm = 0x2710 cqto idivq %rcx movq %rax, %rcx movq -0x2e8(%rbp), %rax addq %rcx, %rax cvtsi2sd %rax, %xmm1 movsd 0x5809b(%rip), %xmm2 # 0x7dc18 divsd %xmm2, %xmm1 movq -0x2c0(%rbp), %rdx movq -0x2b0(%rbp), %rcx movq -0x2a0(%rbp), %r8 movq -0x298(%rbp), %r9 movq -0x290(%rbp), %r13 movq -0x288(%rbp), %r12 movq -0x280(%rbp), %r15 movq -0x278(%rbp), %r14 movq -0x270(%rbp), %rbx movq -0x268(%rbp), %r11 movq -0x260(%rbp), %r10 movq -0x258(%rbp), %rax leaq 0x5364c(%rip), %rsi # 0x79228 movq %r13, (%rsp) movq %r12, 0x8(%rsp) movq %r15, 0x10(%rsp) movq %r14, 0x18(%rsp) movq %rbx, 0x20(%rsp) movq %r11, 0x28(%rsp) movq %r10, 0x30(%rsp) movq %rax, 0x38(%rsp) movb $0x2, %al callq 0x244b0 jmp 0x25c0c callq 0x26a60 callq 0x267d0 movl -0x234(%rbp), %eax andl $0x4, %eax cmpl $0x0, %eax jne 0x25c2a jmp 0x25c26 jmp 0x25c28 jmp 0x25c2a callq 0x27900 leaq 0x360916(%rip), %rax # 0x38654c movl (%rax), %edi callq 0x24390 leaq 0x360640(%rip), %rax # 0x386284 movb $0x0, (%rax) leaq 0x35fc1a(%rip), %rax # 0x385868 movb $0x0, (%rax) movq %fs:0x28, %rax movq -0x30(%rbp), %rcx cmpq %rcx, %rax jne 0x25c75 addq $0x308, %rsp # imm = 0x308 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x24340 nopw (%rax,%rax)
my_end: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 308h mov rax, fs:28h mov [rbp+var_30], rax mov [rbp+var_234], edi mov rax, cs:stderr_ptr mov rax, [rax] mov [rbp+var_240], rax mov rax, [rbp+var_240] mov rcx, cs:stderr_ptr cmp rax, [rcx] setnz al and al, 1 movzx eax, al mov [rbp+var_241], al lea rax, my_init_done cmp byte ptr [rax], 0 jnz short loc_25958 jmp loc_25C51 loc_25958: jmp short $+2 loc_2595A: jmp short $+2 loc_2595C: cmp [rbp+var_240], 0 jnz short loc_2597E mov rax, cs:stderr_ptr mov rax, [rax] mov [rbp+var_240], rax mov [rbp+var_241], 0 loc_2597E: mov eax, [rbp+var_234] and eax, 1 cmp eax, 0 jnz short loc_2599C movsx eax, [rbp+var_241] cmp eax, 0 jz loc_25ABA loc_2599C: mov [rbp+var_248], 0 mov [rbp+var_24C], 0 mov [rbp+var_250], 0 loc_259BA: mov eax, [rbp+var_248] lea rcx, my_file_limit cmp eax, [rcx] jnb loc_25A5E lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 0 jnz short loc_259EE jmp short loc_25A4A loc_259EE: lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 3 jz short loc_25A28 lea rax, my_file_info mov rax, [rax] mov ecx, [rbp+var_248] shl rcx, 4 add rax, rcx cmp dword ptr [rax+8], 4 jnz short loc_25A39 loc_25A28: mov eax, [rbp+var_250] add eax, 1 mov [rbp+var_250], eax jmp short loc_25A48 loc_25A39: mov eax, [rbp+var_24C] add eax, 1 mov [rbp+var_24C], eax loc_25A48: jmp short $+2 loc_25A4A: mov eax, [rbp+var_248] add eax, 1 mov [rbp+var_248], eax jmp loc_259BA loc_25A5E: cmp [rbp+var_24C], 0 jnz short loc_25A70 cmp [rbp+var_250], 0 jz short loc_25AB8 loc_25A70: lea rdi, [rbp+var_230] lea rax, globerrs mov rdx, [rax+90h] mov ecx, [rbp+var_24C] mov r8d, [rbp+var_250] mov esi, 200h mov al, 0 call my_snprintf lea rsi, [rbp+var_230] mov edi, 13h mov edx, 4 call my_message_stderr jmp short $+2 loc_25AB6: jmp short $+2 loc_25AB8: jmp short $+2 loc_25ABA: call free_charsets call my_error_unregister_all call my_once_free mov eax, [rbp+var_234] and eax, 2 cmp eax, 0 jnz short loc_25AE7 movsx eax, [rbp+var_241] cmp eax, 0 jz loc_25C0C loc_25AE7: xor edi, edi lea rsi, [rbp+var_2E0] call _getrusage cmp eax, 0 jnz loc_25C0A mov rdi, [rbp+var_240] imul rax, [rbp+var_2E0], 64h ; 'd' mov [rbp+var_2F0], rax mov rax, [rbp+var_2D8] mov ecx, 2710h cqo idiv rcx mov rcx, rax mov rax, [rbp+var_2F0] add rax, rcx cvtsi2sd xmm0, rax movsd xmm1, cs:qword_7DC18 divsd xmm0, xmm1 imul rax, [rbp+var_2D0], 64h ; 'd' mov [rbp+var_2E8], rax mov rax, [rbp+var_2C8] mov ecx, 2710h cqo idiv rcx mov rcx, rax mov rax, [rbp+var_2E8] add rax, rcx cvtsi2sd xmm1, rax movsd xmm2, cs:qword_7DC18 divsd xmm1, xmm2 mov rdx, [rbp+var_2C0] mov rcx, [rbp+var_2B0] mov r8, [rbp+var_2A0] mov r9, [rbp+var_298] mov r13, [rbp+var_290] mov r12, [rbp+var_288] mov r15, [rbp+var_280] mov r14, [rbp+var_278] mov rbx, [rbp+var_270] mov r11, [rbp+var_268] mov r10, [rbp+var_260] mov rax, [rbp+var_258] lea rsi, aUserTime2fSyst; "\nUser time %.2f, System time %.2f\nMax"... mov [rsp+330h+var_330], r13 mov [rsp+330h+var_328], r12 mov [rsp+330h+var_320], r15 mov [rsp+330h+var_318], r14 mov [rsp+330h+var_310], rbx mov [rsp+330h+var_308], r11 mov [rsp+330h+var_300], r10 mov [rsp+330h+var_2F8], rax mov al, 2 call _fprintf loc_25C0A: jmp short $+2 loc_25C0C: call my_thread_end call my_thread_global_end mov eax, [rbp+var_234] and eax, 4 cmp eax, 0 jnz short loc_25C2A jmp short $+2 loc_25C26: jmp short $+2 loc_25C28: jmp short $+2 loc_25C2A: call my_mutex_end lea rax, THR_KEY_mysys mov edi, [rax] call _pthread_key_delete lea rax, my_thr_key_mysys_exists mov byte ptr [rax], 0 lea rax, my_init_done mov byte ptr [rax], 0 loc_25C51: mov rax, fs:28h mov rcx, [rbp+var_30] cmp rax, rcx jnz short loc_25C75 add rsp, 308h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_25C75: call ___stack_chk_fail
unsigned long long my_end(int a1, long long a2, long long a3, long long a4, long long a5, int a6) { _QWORD v7[2]; // [rsp+50h] [rbp-2E0h] BYREF long long v8; // [rsp+60h] [rbp-2D0h] long long v9; // [rsp+68h] [rbp-2C8h] long long v10; // [rsp+70h] [rbp-2C0h] long long v11; // [rsp+80h] [rbp-2B0h] long long v12; // [rsp+90h] [rbp-2A0h] long long v13; // [rsp+98h] [rbp-298h] long long v14; // [rsp+A0h] [rbp-290h] long long v15; // [rsp+A8h] [rbp-288h] long long v16; // [rsp+B0h] [rbp-280h] long long v17; // [rsp+B8h] [rbp-278h] long long v18; // [rsp+C0h] [rbp-270h] long long v19; // [rsp+C8h] [rbp-268h] long long v20; // [rsp+D0h] [rbp-260h] long long v21; // [rsp+D8h] [rbp-258h] int v22; // [rsp+E0h] [rbp-250h] int v23; // [rsp+E4h] [rbp-24Ch] unsigned int v24; // [rsp+E8h] [rbp-248h] char v25; // [rsp+EFh] [rbp-241h] long long v26; // [rsp+F0h] [rbp-240h] int v27; // [rsp+FCh] [rbp-234h] _BYTE v28[512]; // [rsp+100h] [rbp-230h] BYREF unsigned long long v29; // [rsp+300h] [rbp-30h] v29 = __readfsqword(0x28u); v27 = a1; v26 = stderr; v25 = 0; if ( my_init_done ) { if ( !v26 ) { v26 = stderr; v25 = 0; } if ( (v27 & 1) != 0 ) { v24 = 0; v23 = 0; v22 = 0; while ( v24 < my_file_limit ) { if ( *((_DWORD *)my_file_info + 4 * v24 + 2) ) { if ( *((_DWORD *)my_file_info + 4 * v24 + 2) == 3 || *((_DWORD *)my_file_info + 4 * v24 + 2) == 4 ) ++v22; else ++v23; } ++v24; } if ( v23 || v22 ) { my_snprintf((unsigned int)v28, 512, (unsigned int)globerrs[18], v23, v22, a6); my_message_stderr(19LL, v28, 4LL); } } free_charsets(); my_error_unregister_all(); my_once_free(); if ( (v27 & 2) != 0 && !(unsigned int)getrusage(0LL, v7) ) fprintf( v26, "\n" "User time %.2f, System time %.2f\n" "Maximum resident set size %ld, Integral resident set size %ld\n" "Non-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\n" "Blocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\n" "Voluntary context switches %ld, Involuntary context switches %ld\n", (double)(int)(v7[1] / 10000LL + 100 * LODWORD(v7[0])) / 100.0, (double)(int)(v9 / 10000 + 100 * v8) / 100.0, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21); my_thread_end(); my_thread_global_end(); my_mutex_end(); pthread_key_delete(THR_KEY_mysys); my_thr_key_mysys_exists = 0; my_init_done = 0; } return __readfsqword(0x28u); }
my_end: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x308 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x234],EDI MOV RAX,qword ptr [0x002cdfd8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x240],RAX MOV RAX,qword ptr [RBP + -0x240] MOV RCX,qword ptr [0x002cdfd8] CMP RAX,qword ptr [RCX] SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x241],AL LEA RAX,[0x485868] CMP byte ptr [RAX],0x0 JNZ 0x00125958 JMP 0x00125c51 LAB_00125958: JMP 0x0012595a LAB_0012595a: JMP 0x0012595c LAB_0012595c: CMP qword ptr [RBP + -0x240],0x0 JNZ 0x0012597e MOV RAX,qword ptr [0x002cdfd8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x240],RAX MOV byte ptr [RBP + -0x241],0x0 LAB_0012597e: MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x1 CMP EAX,0x0 JNZ 0x0012599c MOVSX EAX,byte ptr [RBP + -0x241] CMP EAX,0x0 JZ 0x00125aba LAB_0012599c: MOV dword ptr [RBP + -0x248],0x0 MOV dword ptr [RBP + -0x24c],0x0 MOV dword ptr [RBP + -0x250],0x0 LAB_001259ba: MOV EAX,dword ptr [RBP + -0x248] LEA RCX,[0x2ce400] CMP EAX,dword ptr [RCX] JNC 0x00125a5e LEA RAX,[0x2ce408] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x0 JNZ 0x001259ee JMP 0x00125a4a LAB_001259ee: LEA RAX,[0x2ce408] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x3 JZ 0x00125a28 LEA RAX,[0x2ce408] MOV RAX,qword ptr [RAX] MOV ECX,dword ptr [RBP + -0x248] SHL RCX,0x4 ADD RAX,RCX CMP dword ptr [RAX + 0x8],0x4 JNZ 0x00125a39 LAB_00125a28: MOV EAX,dword ptr [RBP + -0x250] ADD EAX,0x1 MOV dword ptr [RBP + -0x250],EAX JMP 0x00125a48 LAB_00125a39: MOV EAX,dword ptr [RBP + -0x24c] ADD EAX,0x1 MOV dword ptr [RBP + -0x24c],EAX LAB_00125a48: JMP 0x00125a4a LAB_00125a4a: MOV EAX,dword ptr [RBP + -0x248] ADD EAX,0x1 MOV dword ptr [RBP + -0x248],EAX JMP 0x001259ba LAB_00125a5e: CMP dword ptr [RBP + -0x24c],0x0 JNZ 0x00125a70 CMP dword ptr [RBP + -0x250],0x0 JZ 0x00125ab8 LAB_00125a70: LEA RDI,[RBP + -0x230] LEA RAX,[0x2ce8f0] MOV RDX,qword ptr [RAX + 0x90] MOV ECX,dword ptr [RBP + -0x24c] MOV R8D,dword ptr [RBP + -0x250] MOV ESI,0x200 MOV AL,0x0 CALL 0x00176910 LEA RSI,[RBP + -0x230] MOV EDI,0x13 MOV EDX,0x4 CALL 0x00125ec0 JMP 0x00125ab6 LAB_00125ab6: JMP 0x00125ab8 LAB_00125ab8: JMP 0x00125aba LAB_00125aba: CALL 0x00129930 CALL 0x0012ea10 CALL 0x00126230 MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x2 CMP EAX,0x0 JNZ 0x00125ae7 MOVSX EAX,byte ptr [RBP + -0x241] CMP EAX,0x0 JZ 0x00125c0c LAB_00125ae7: XOR EDI,EDI LEA RSI,[RBP + -0x2e0] CALL 0x001241e0 CMP EAX,0x0 JNZ 0x00125c0a MOV RDI,qword ptr [RBP + -0x240] IMUL RAX,qword ptr [RBP + -0x2e0],0x64 MOV qword ptr [RBP + -0x2f0],RAX MOV RAX,qword ptr [RBP + -0x2d8] MOV ECX,0x2710 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x2f0] ADD RAX,RCX CVTSI2SD XMM0,RAX MOVSD XMM1,qword ptr [0x0017dc18] DIVSD XMM0,XMM1 IMUL RAX,qword ptr [RBP + -0x2d0],0x64 MOV qword ptr [RBP + -0x2e8],RAX MOV RAX,qword ptr [RBP + -0x2c8] MOV ECX,0x2710 CQO IDIV RCX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x2e8] ADD RAX,RCX CVTSI2SD XMM1,RAX MOVSD XMM2,qword ptr [0x0017dc18] DIVSD XMM1,XMM2 MOV RDX,qword ptr [RBP + -0x2c0] MOV RCX,qword ptr [RBP + -0x2b0] MOV R8,qword ptr [RBP + -0x2a0] MOV R9,qword ptr [RBP + -0x298] MOV R13,qword ptr [RBP + -0x290] MOV R12,qword ptr [RBP + -0x288] MOV R15,qword ptr [RBP + -0x280] MOV R14,qword ptr [RBP + -0x278] MOV RBX,qword ptr [RBP + -0x270] MOV R11,qword ptr [RBP + -0x268] MOV R10,qword ptr [RBP + -0x260] MOV RAX,qword ptr [RBP + -0x258] LEA RSI,[0x179228] MOV qword ptr [RSP],R13 MOV qword ptr [RSP + 0x8],R12 MOV qword ptr [RSP + 0x10],R15 MOV qword ptr [RSP + 0x18],R14 MOV qword ptr [RSP + 0x20],RBX MOV qword ptr [RSP + 0x28],R11 MOV qword ptr [RSP + 0x30],R10 MOV qword ptr [RSP + 0x38],RAX MOV AL,0x2 CALL 0x001244b0 LAB_00125c0a: JMP 0x00125c0c LAB_00125c0c: CALL 0x00126a60 CALL 0x001267d0 MOV EAX,dword ptr [RBP + -0x234] AND EAX,0x4 CMP EAX,0x0 JNZ 0x00125c2a JMP 0x00125c26 LAB_00125c26: JMP 0x00125c28 LAB_00125c28: JMP 0x00125c2a LAB_00125c2a: CALL 0x00127900 LEA RAX,[0x48654c] MOV EDI,dword ptr [RAX] CALL 0x00124390 LEA RAX,[0x486284] MOV byte ptr [RAX],0x0 LEA RAX,[0x485868] MOV byte ptr [RAX],0x0 LAB_00125c51: MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x30] CMP RAX,RCX JNZ 0x00125c75 ADD RSP,0x308 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00125c75: CALL 0x00124340
void my_end(uint param_1) { int iVar1; long in_FS_OFFSET; bool bVar2; bool bVar3; rusage local_2e8; int local_258; int local_254; uint local_250; bool local_249; FILE *local_248; uint local_23c; int1 local_238 [512]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_248 = *(FILE **)PTR_stderr_002cdfd8; bVar2 = local_248 != *(FILE **)PTR_stderr_002cdfd8; local_249 = bVar2; local_23c = param_1; if (my_init_done != '\0') { bVar3 = local_248 == (FILE *)0x0; if (bVar3) { local_248 = *(FILE **)PTR_stderr_002cdfd8; } bVar3 = !bVar3; local_249 = bVar3 && bVar2; if (((param_1 & 1) != 0) || (bVar3 && bVar2)) { local_254 = 0; local_258 = 0; for (local_250 = 0; local_250 < my_file_limit; local_250 = local_250 + 1) { if (*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) != 0) { if ((*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 3) || (*(int *)(my_file_info + (ulong)local_250 * 0x10 + 8) == 4)) { local_258 = local_258 + 1; } else { local_254 = local_254 + 1; } } } if ((local_254 != 0) || (local_258 != 0)) { my_snprintf(local_238,0x200,globerrs._144_8_,local_254,local_258); my_message_stderr(0x13,local_238,4); } } free_charsets(); my_error_unregister_all(); my_once_free(); if ((((local_23c & 2) != 0) || (local_249 != false)) && (iVar1 = getrusage(RUSAGE_SELF,&local_2e8), iVar1 == 0)) { fprintf(local_248, "\nUser time %.2f, System time %.2f\nMaximum resident set size %ld, Integral resident set size %ld\nNon-physical pagefaults %ld, Physical pagefaults %ld, Swaps %ld\nBlocks in %ld out %ld, Messages in %ld out %ld, Signals %ld\nVoluntary context switches %ld, Involuntary context switches %ld\n" ,(double)(local_2e8.ru_utime.tv_sec * 100 + local_2e8.ru_utime.tv_usec / 10000) / DAT_0017dc18, (double)(local_2e8.ru_stime.tv_sec * 100 + local_2e8.ru_stime.tv_usec / 10000) / DAT_0017dc18,local_2e8.ru_maxrss,local_2e8.ru_idrss,local_2e8.ru_minflt, local_2e8.ru_majflt,local_2e8.ru_nswap,local_2e8.ru_inblock,local_2e8.ru_oublock, local_2e8.ru_msgsnd,local_2e8.ru_msgrcv,local_2e8.ru_nsignals,local_2e8.ru_nvcsw, local_2e8.ru_nivcsw); } my_thread_end(); my_thread_global_end(); my_mutex_end(); pthread_key_delete(THR_KEY_mysys); my_thr_key_mysys_exists = 0; my_init_done = '\0'; } if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,582
partitioned_key_cache_read
eloqsql/mysys/mf_keycache.c
static uchar *partitioned_key_cache_read(PARTITIONED_KEY_CACHE_CB *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length, uint block_length __attribute__((unused)), int return_buffer __attribute__((unused))) { uint r_length; uint offset= (uint) (filepos % keycache->key_cache_block_size); uchar *start= buff; DBUG_ENTER("partitioned_key_cache_read"); DBUG_PRINT("enter", ("fd: %u pos: %lu length: %u", (uint) file, (ulong) filepos, length)); /* Read data in key_cache_block_size increments */ do { SIMPLE_KEY_CACHE_CB *partition= get_key_cache_partition(keycache, file, filepos); uchar *ret_buff= 0; r_length= length; set_if_smaller(r_length, keycache->key_cache_block_size - offset); ret_buff= simple_key_cache_read((void *) partition, file, filepos, level, buff, r_length, block_length, return_buffer); if (ret_buff == 0) DBUG_RETURN(0); filepos+= r_length; buff+= r_length; offset= 0; } while ((length-= r_length)); DBUG_RETURN(start); }
O0
c
partitioned_key_cache_read: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx xorl %edx, %edx divq %rcx movl %edx, %eax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x48(%rbp) jmp 0xed983 jmp 0xed985 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x20(%rbp), %rdx callq 0xedfc0 movq %rax, -0x50(%rbp) movq $0x0, -0x58(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x38(%rbp) movl -0x38(%rbp), %eax movq -0x10(%rbp), %rcx movl 0x18(%rcx), %ecx subl -0x3c(%rbp), %ecx cmpl %ecx, %eax jbe 0xed9c5 movq -0x10(%rbp), %rax movl 0x18(%rax), %eax subl -0x3c(%rbp), %eax movl %eax, -0x38(%rbp) jmp 0xed9c7 movq -0x50(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x20(%rbp), %rdx movl -0x24(%rbp), %ecx movq -0x30(%rbp), %r8 movl -0x38(%rbp), %r9d movl 0x10(%rbp), %r10d movl 0x18(%rbp), %eax movl %r10d, (%rsp) movl %eax, 0x8(%rsp) callq 0xe8a70 movq %rax, -0x58(%rbp) cmpq $0x0, -0x58(%rbp) jne 0xeda08 jmp 0xed9fe movq $0x0, -0x8(%rbp) jmp 0xeda48 movl -0x38(%rbp), %eax addq -0x20(%rbp), %rax movq %rax, -0x20(%rbp) movl -0x38(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) movl $0x0, -0x3c(%rbp) movl -0x38(%rbp), %ecx movl -0x34(%rbp), %eax subl %ecx, %eax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jne 0xed985 jmp 0xeda40 movq -0x48(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
partitioned_key_cache_read: push rbp mov rbp, rsp sub rsp, 70h mov eax, [rbp+arg_8] mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_34], r9d mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] xor edx, edx div rcx mov eax, edx mov [rbp+var_3C], eax mov rax, [rbp+var_30] mov [rbp+var_48], rax jmp short $+2 loc_ED983: jmp short $+2 loc_ED985: mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov rdx, [rbp+var_20] call get_key_cache_partition mov [rbp+var_50], rax mov [rbp+var_58], 0 mov eax, [rbp+var_34] mov [rbp+var_38], eax mov eax, [rbp+var_38] mov rcx, [rbp+var_10] mov ecx, [rcx+18h] sub ecx, [rbp+var_3C] cmp eax, ecx jbe short loc_ED9C5 mov rax, [rbp+var_10] mov eax, [rax+18h] sub eax, [rbp+var_3C] mov [rbp+var_38], eax loc_ED9C5: jmp short $+2 loc_ED9C7: mov rdi, [rbp+var_50] mov esi, [rbp+var_14] mov rdx, [rbp+var_20] mov ecx, [rbp+var_24] mov r8, [rbp+var_30] mov r9d, [rbp+var_38] mov r10d, [rbp+arg_0] mov eax, [rbp+arg_8] mov [rsp+70h+var_70], r10d mov [rsp+70h+var_68], eax call simple_key_cache_read mov [rbp+var_58], rax cmp [rbp+var_58], 0 jnz short loc_EDA08 jmp short $+2 loc_ED9FE: mov [rbp+var_8], 0 jmp short loc_EDA48 loc_EDA08: mov eax, [rbp+var_38] add rax, [rbp+var_20] mov [rbp+var_20], rax mov ecx, [rbp+var_38] mov rax, [rbp+var_30] mov ecx, ecx add rax, rcx mov [rbp+var_30], rax mov [rbp+var_3C], 0 mov ecx, [rbp+var_38] mov eax, [rbp+var_34] sub eax, ecx mov [rbp+var_34], eax cmp eax, 0 jnz loc_ED985 jmp short $+2 loc_EDA40: mov rax, [rbp+var_48] mov [rbp+var_8], rax loc_EDA48: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long partitioned_key_cache_read( long long a1, unsigned int a2, unsigned long long a3, unsigned int a4, long long a5, unsigned int a6) { _BYTE *key_cache_partition; // [rsp+20h] [rbp-50h] int v9; // [rsp+34h] [rbp-3Ch] unsigned int v10; // [rsp+38h] [rbp-38h] long long v12; // [rsp+40h] [rbp-30h] unsigned long long v14; // [rsp+50h] [rbp-20h] v14 = a3; v12 = a5; v9 = a3 % *(unsigned int *)(a1 + 24); do { key_cache_partition = (_BYTE *)get_key_cache_partition(a1, a2, v14); v10 = a6; if ( a6 > *(_DWORD *)(a1 + 24) - v9 ) v10 = *(_DWORD *)(a1 + 24) - v9; if ( !simple_key_cache_read(key_cache_partition, a2, v14, a4, v12, v10) ) return 0LL; v14 += v10; v12 += v10; v9 = 0; a6 -= v10; } while ( a6 ); return a5; }
partitioned_key_cache_read: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV EAX,dword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] XOR EDX,EDX DIV RCX MOV EAX,EDX MOV dword ptr [RBP + -0x3c],EAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],RAX JMP 0x001ed983 LAB_001ed983: JMP 0x001ed985 LAB_001ed985: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001edfc0 MOV qword ptr [RBP + -0x50],RAX MOV qword ptr [RBP + -0x58],0x0 MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x38],EAX MOV EAX,dword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x18] SUB ECX,dword ptr [RBP + -0x3c] CMP EAX,ECX JBE 0x001ed9c5 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x18] SUB EAX,dword ptr [RBP + -0x3c] MOV dword ptr [RBP + -0x38],EAX LAB_001ed9c5: JMP 0x001ed9c7 LAB_001ed9c7: MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x24] MOV R8,qword ptr [RBP + -0x30] MOV R9D,dword ptr [RBP + -0x38] MOV R10D,dword ptr [RBP + 0x10] MOV EAX,dword ptr [RBP + 0x18] MOV dword ptr [RSP],R10D MOV dword ptr [RSP + 0x8],EAX CALL 0x001e8a70 MOV qword ptr [RBP + -0x58],RAX CMP qword ptr [RBP + -0x58],0x0 JNZ 0x001eda08 JMP 0x001ed9fe LAB_001ed9fe: MOV qword ptr [RBP + -0x8],0x0 JMP 0x001eda48 LAB_001eda08: MOV EAX,dword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x20],RAX MOV ECX,dword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x30] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV dword ptr [RBP + -0x3c],0x0 MOV ECX,dword ptr [RBP + -0x38] MOV EAX,dword ptr [RBP + -0x34] SUB EAX,ECX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JNZ 0x001ed985 JMP 0x001eda40 LAB_001eda40: MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0x8],RAX LAB_001eda48: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
long partitioned_key_cache_read (long param_1,int4 param_2,ulong param_3,int4 param_4,long param_5, uint param_6,int4 param_7,int4 param_8) { int8 uVar1; long lVar2; int local_44; uint local_40; uint local_3c; long local_38; ulong local_28; local_44 = (int)(param_3 % (ulong)*(uint *)(param_1 + 0x18)); local_3c = param_6; local_38 = param_5; local_28 = param_3; while( true ) { uVar1 = get_key_cache_partition(param_1,param_2,local_28); local_40 = local_3c; if ((uint)(*(int *)(param_1 + 0x18) - local_44) < local_3c) { local_40 = *(int *)(param_1 + 0x18) - local_44; } lVar2 = simple_key_cache_read(uVar1,param_2,local_28,param_4,local_38,local_40,param_7,param_8); if (lVar2 == 0) break; local_28 = local_40 + local_28; local_38 = local_38 + (ulong)local_40; local_44 = 0; local_3c = local_3c - local_40; if (local_3c == 0) { return param_5; } } return 0; }
31,583
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::erase<char const (&) [11], 0>(char const (&) [11])
monkey531[P]llama/common/json.hpp
size_type erase(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { // Since we cannot move const Keys, re-construct them in place for (auto next = it; ++next != this->end(); ++it) { it->~value_type(); // Destroy but keep allocation new (&*it) value_type{std::move(*next)}; } Container::pop_back(); return 1; } } return 0; }
O2
cpp
unsigned long nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>>::erase<char const (&) [11], 0>(char const (&) [11]): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r15 movq %rdi, %r14 movq (%rdi), %rbx movq 0x8(%r14), %r13 cmpq %r13, %rbx je 0x9a735 movq %rbx, %rdi movq %r15, %rsi callq 0x48529 testb %al, %al jne 0x9a708 addq $0x30, %rbx jmp 0x9a6ea movq %rbx, %r15 leaq 0x30(%r15), %r12 cmpq 0x8(%r14), %r12 je 0x9a72d movq %r15, %rdi callq 0x69962 movq %r15, %rdi movq %r12, %rsi callq 0x6a54c movq %r12, %r15 jmp 0x9a70b movq %r14, %rdi callq 0x9a748 xorl %eax, %eax cmpq %r13, %rbx setne %al popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: push r15 push r14 push r13 push r12 push rbx mov r15, rsi mov r14, rdi mov rbx, [rdi] loc_9A6EA: mov r13, [r14+8] cmp rbx, r13 jz short loc_9A735 mov rdi, rbx mov rsi, r15 call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_9A708 add rbx, 30h ; '0' jmp short loc_9A6EA loc_9A708: mov r15, rbx loc_9A70B: lea r12, [r15+30h] cmp r12, [r14+8] jz short loc_9A72D mov rdi, r15; void * call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEED2Ev; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~pair() mov rdi, r15 mov rsi, r12 call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS8_11ordered_mapESt6vectorS5_blmdSaNS8_14adl_serializerESB_IhSaIhEEvEEEC2EOSG_; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::pair(std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>&&) mov r15, r12 jmp short loc_9A70B loc_9A72D: mov rdi, r14 call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE8pop_backEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::pop_back(void) loc_9A735: xor eax, eax cmp rbx, r13 setnz al pop rbx pop r12 pop r13 pop r14 pop r15 retn
_BOOL8 ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_( long long *a1, char *a2) { long long i; // rbx long long v4; // r13 char *v5; // rsi char *j; // r15 for ( i = *a1; ; i += 48LL ) { v4 = a1[1]; if ( i == v4 ) break; v5 = a2; if ( std::operator==<char>(i) ) { for ( j = (char *)i; j + 48 != (char *)a1[1]; j += 48 ) { std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~pair(j); v5 = j + 48; std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::pair( (long long)j, (long long)(j + 48)); } std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::pop_back( a1, v5); return i != v4; } } return i != v4; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV R15,RSI MOV R14,RDI MOV RBX,qword ptr [RDI] LAB_0019a6ea: MOV R13,qword ptr [R14 + 0x8] CMP RBX,R13 JZ 0x0019a735 MOV RDI,RBX MOV RSI,R15 CALL 0x00148529 TEST AL,AL JNZ 0x0019a708 ADD RBX,0x30 JMP 0x0019a6ea LAB_0019a708: MOV R15,RBX LAB_0019a70b: LEA R12,[R15 + 0x30] CMP R12,qword ptr [R14 + 0x8] JZ 0x0019a72d MOV RDI,R15 CALL 0x00169962 MOV RDI,R15 MOV RSI,R12 CALL 0x0016a54c MOV R15,R12 JMP 0x0019a70b LAB_0019a72d: MOV RDI,R14 CALL 0x0019a748 LAB_0019a735: XOR EAX,EAX CMP RBX,R13 SETNZ AL POP RBX POP R12 POP R13 POP R14 POP R15 RET
bool _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE5eraseIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEmOSS_ (vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *param_1,char *param_2) { pair *ppVar1; string *psVar2; bool bVar3; string *psVar4; pair *this; for (psVar4 = *(string **)param_1; psVar2 = *(string **)(param_1 + 8), psVar4 != psVar2; psVar4 = psVar4 + 0x30) { bVar3 = std::operator==(psVar4,param_2); this = (pair *)psVar4; if (bVar3) goto LAB_0019a70b; } LAB_0019a735: return psVar4 != psVar2; LAB_0019a70b: while (ppVar1 = (pair *)((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this + 0x30), ppVar1 != *(pair **)(param_1 + 8)) { std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::~pair((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this); std:: pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::pair((pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)this,ppVar1); this = ppVar1; } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::pop_back(param_1); goto LAB_0019a735; }
31,584
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type()
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
bool supports_op(ggml_backend_dev_t, const struct ggml_tensor * op) override { if ( op->op == GGML_OP_MUL_MAT && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 2) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} // may be possible if Q8_0 packed... } else if (op->op == GGML_OP_MUL_MAT_ID && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 3) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} } return false; }
O0
cpp
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type(): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x20(%rbp), %rax cmpl $0x1a, 0x50(%rax) jne 0x51a24 movq -0x20(%rbp), %rax movq 0x98(%rax), %rax cmpq $0x0, 0x8(%rax) je 0x51a24 movq -0x20(%rbp), %rax movq 0x98(%rax), %rdi callq 0xd0c0 cmpl $0x2, %eax jne 0x51a24 movq -0x20(%rbp), %rax movq 0x98(%rax), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %rax movq %rax, -0x28(%rbp) callq 0xe120 movq %rax, %rcx movq -0x28(%rbp), %rax cmpq %rcx, %rax jne 0x51a24 movq -0x20(%rbp), %rax movq 0x98(%rax), %rdi callq 0x4fc40 cmpq $0x0, %rax je 0x51a24 movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax cmpq $0x0, 0x8(%rax) je 0x51a06 movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %rdi callq 0xdbb0 testb $0x1, %al jne 0x51a06 movb $0x0, -0x1(%rbp) jmp 0x51af1 movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax cmpl $0x0, (%rax) jne 0x51a1f movb $0x1, -0x1(%rbp) jmp 0x51af1 jmp 0x51aed movq -0x20(%rbp), %rax cmpl $0x1b, 0x50(%rax) jne 0x51aeb movq -0x20(%rbp), %rax movq 0x98(%rax), %rax cmpq $0x0, 0x8(%rax) je 0x51aeb movq -0x20(%rbp), %rax movq 0x98(%rax), %rdi callq 0xd0c0 cmpl $0x3, %eax jne 0x51aeb movq -0x20(%rbp), %rax movq 0x98(%rax), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %rax movq %rax, -0x30(%rbp) callq 0xe120 movq %rax, %rcx movq -0x30(%rbp), %rax cmpq %rcx, %rax jne 0x51aeb movq -0x20(%rbp), %rax movq 0x98(%rax), %rdi callq 0x4fc40 cmpq $0x0, %rax je 0x51aeb movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax cmpq $0x0, 0x8(%rax) je 0x51ad3 movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %rdi callq 0xdbb0 testb $0x1, %al jne 0x51ad3 movb $0x0, -0x1(%rbp) jmp 0x51af1 movq -0x20(%rbp), %rax movq 0xa0(%rax), %rax cmpl $0x0, (%rax) jne 0x51ae9 movb $0x1, -0x1(%rbp) jmp 0x51af1 jmp 0x51aeb jmp 0x51aed movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x30, %rsp popq %rbp retq nopl (%rax)
_ZN4ggml3cpu7aarch6417extra_buffer_type11supports_opEP19ggml_backend_devicePK11ggml_tensor: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_20] cmp dword ptr [rax+50h], 1Ah jnz loc_51A24 mov rax, [rbp+var_20] mov rax, [rax+98h] cmp qword ptr [rax+8], 0 jz loc_51A24 mov rax, [rbp+var_20] mov rdi, [rax+98h] call _ggml_n_dims cmp eax, 2 jnz loc_51A24 mov rax, [rbp+var_20] mov rax, [rax+98h] mov rax, [rax+8] mov rax, [rax+48h] mov [rbp+var_28], rax call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) mov rcx, rax mov rax, [rbp+var_28] cmp rax, rcx jnz short loc_51A24 mov rax, [rbp+var_20] mov rdi, [rax+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) cmp rax, 0 jz short loc_51A24 mov rax, [rbp+var_20] mov rax, [rax+0A0h] cmp qword ptr [rax+8], 0 jz short loc_51A06 mov rax, [rbp+var_20] mov rax, [rax+0A0h] mov rax, [rax+8] mov rdi, [rax+48h] call _ggml_backend_buft_is_host test al, 1 jnz short loc_51A06 mov [rbp+var_1], 0 jmp loc_51AF1 loc_51A06: mov rax, [rbp+var_20] mov rax, [rax+0A0h] cmp dword ptr [rax], 0 jnz short loc_51A1F mov [rbp+var_1], 1 jmp loc_51AF1 loc_51A1F: jmp loc_51AED loc_51A24: mov rax, [rbp+var_20] cmp dword ptr [rax+50h], 1Bh jnz loc_51AEB mov rax, [rbp+var_20] mov rax, [rax+98h] cmp qword ptr [rax+8], 0 jz loc_51AEB mov rax, [rbp+var_20] mov rdi, [rax+98h] call _ggml_n_dims cmp eax, 3 jnz loc_51AEB mov rax, [rbp+var_20] mov rax, [rax+98h] mov rax, [rax+8] mov rax, [rax+48h] mov [rbp+var_30], rax call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) mov rcx, rax mov rax, [rbp+var_30] cmp rax, rcx jnz short loc_51AEB mov rax, [rbp+var_20] mov rdi, [rax+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) cmp rax, 0 jz short loc_51AEB mov rax, [rbp+var_20] mov rax, [rax+0A0h] cmp qword ptr [rax+8], 0 jz short loc_51AD3 mov rax, [rbp+var_20] mov rax, [rax+0A0h] mov rax, [rax+8] mov rdi, [rax+48h] call _ggml_backend_buft_is_host test al, 1 jnz short loc_51AD3 mov [rbp+var_1], 0 jmp short loc_51AF1 loc_51AD3: mov rax, [rbp+var_20] mov rax, [rax+0A0h] cmp dword ptr [rax], 0 jnz short loc_51AE9 mov [rbp+var_1], 1 jmp short loc_51AF1 loc_51AE9: jmp short $+2 loc_51AEB: jmp short $+2 loc_51AED: mov [rbp+var_1], 0 loc_51AF1: mov al, [rbp+var_1] and al, 1 add rsp, 30h pop rbp retn
bool ggml::cpu::aarch64::extra_buffer_type::supports_op(long long a1, long long a2, long long a3) { long long v4; // [rsp+0h] [rbp-30h] long long v5; // [rsp+8h] [rbp-28h] if ( *(_DWORD *)(a3 + 80) != 26 || !*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) || (unsigned int)ggml_n_dims(*(_QWORD *)(a3 + 152)) != 2 || (v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL), v5 != ggml_backend_cpu_aarch64_buffer_type()) || !ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) ) { if ( *(_DWORD *)(a3 + 80) == 27 ) { if ( *(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) ) { if ( (unsigned int)ggml_n_dims(*(_QWORD *)(a3 + 152)) == 3 ) { v4 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL); if ( v4 == ggml_backend_cpu_aarch64_buffer_type() ) { if ( ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) ) { if ( *(_QWORD *)(*(_QWORD *)(a3 + 160) + 8LL) && (ggml_backend_buft_is_host(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a3 + 160) + 8LL) + 72LL)) & 1) == 0 ) { return 0; } if ( !**(_DWORD **)(a3 + 160) ) return 1; } } } } } return 0; } if ( !*(_QWORD *)(*(_QWORD *)(a3 + 160) + 8LL) || (ggml_backend_buft_is_host(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a3 + 160) + 8LL) + 72LL)) & 1) != 0 ) { return !**(_DWORD **)(a3 + 160); } return 0; }
supports_op: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x50],0x1a JNZ 0x00151a24 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x98] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00151a24 MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x98] CALL 0x0010d0c0 CMP EAX,0x2 JNZ 0x00151a24 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x28],RAX CALL 0x0010e120 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x28] CMP RAX,RCX JNZ 0x00151a24 MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x98] CALL 0x0014fc40 CMP RAX,0x0 JZ 0x00151a24 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00151a06 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RAX + 0x48] CALL 0x0010dbb0 TEST AL,0x1 JNZ 0x00151a06 MOV byte ptr [RBP + -0x1],0x0 JMP 0x00151af1 LAB_00151a06: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] CMP dword ptr [RAX],0x0 JNZ 0x00151a1f MOV byte ptr [RBP + -0x1],0x1 JMP 0x00151af1 LAB_00151a1f: JMP 0x00151aed LAB_00151a24: MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x50],0x1b JNZ 0x00151aeb MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x98] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00151aeb MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x98] CALL 0x0010d0c0 CMP EAX,0x3 JNZ 0x00151aeb MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x30],RAX CALL 0x0010e120 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x30] CMP RAX,RCX JNZ 0x00151aeb MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x98] CALL 0x0014fc40 CMP RAX,0x0 JZ 0x00151aeb MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00151ad3 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RAX + 0x48] CALL 0x0010dbb0 TEST AL,0x1 JNZ 0x00151ad3 MOV byte ptr [RBP + -0x1],0x0 JMP 0x00151af1 LAB_00151ad3: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xa0] CMP dword ptr [RAX],0x0 JNZ 0x00151ae9 MOV byte ptr [RBP + -0x1],0x1 JMP 0x00151af1 LAB_00151ae9: JMP 0x00151aeb LAB_00151aeb: JMP 0x00151aed LAB_00151aed: MOV byte ptr [RBP + -0x1],0x0 LAB_00151af1: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x30 POP RBP RET
/* ggml::cpu::aarch64::extra_buffer_type::supports_op(ggml_backend_device*, ggml_tensor const*) */ int1 __thiscall ggml::cpu::aarch64::extra_buffer_type::supports_op (extra_buffer_type *this,ggml_backend_device *param_1,ggml_tensor *param_2) { int iVar1; long lVar2; long lVar3; ulong uVar4; if ((((*(int *)(param_2 + 0x50) == 0x1a) && (*(long *)(*(long *)(param_2 + 0x98) + 8) != 0)) && (iVar1 = ggml_n_dims(*(int8 *)(param_2 + 0x98)), iVar1 == 2)) && ((lVar3 = *(long *)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48), lVar2 = ggml_backend_cpu_aarch64_buffer_type(), lVar3 == lVar2 && (lVar3 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)), lVar3 != 0)) )) { if ((*(long *)(*(long *)(param_2 + 0xa0) + 8) != 0) && (uVar4 = ggml_backend_buft_is_host (*(int8 *)(*(long *)(*(long *)(param_2 + 0xa0) + 8) + 0x48)), (uVar4 & 1) == 0)) { return 0; } if (**(int **)(param_2 + 0xa0) == 0) { return 1; } } else if ((((*(int *)(param_2 + 0x50) == 0x1b) && ((*(long *)(*(long *)(param_2 + 0x98) + 8) != 0 && (iVar1 = ggml_n_dims(*(int8 *)(param_2 + 0x98)), iVar1 == 3)))) && (lVar3 = *(long *)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48), lVar2 = ggml_backend_cpu_aarch64_buffer_type(), lVar3 == lVar2)) && (lVar3 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)), lVar3 != 0)) { if ((*(long *)(*(long *)(param_2 + 0xa0) + 8) != 0) && (uVar4 = ggml_backend_buft_is_host (*(int8 *)(*(long *)(*(long *)(param_2 + 0xa0) + 8) + 0x48)), (uVar4 & 1) == 0)) { return 0; } if (**(int **)(param_2 + 0xa0) == 0) { return 1; } } return 0; }
31,585
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type()
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
bool supports_op(ggml_backend_dev_t, const struct ggml_tensor * op) override { if ( op->op == GGML_OP_MUL_MAT && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 2) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} // may be possible if Q8_0 packed... } else if (op->op == GGML_OP_MUL_MAT_ID && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 3) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} } return false; }
O1
cpp
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type(): pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx cmpl $0x1a, 0x50(%rdx) jne 0x2e0f5 movq 0x98(%rbx), %rdi cmpq $0x0, 0x8(%rdi) je 0x2e0f5 callq 0x8090 cmpl $0x2, %eax jne 0x2e0f5 movq 0x98(%rbx), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %r14 callq 0x8900 leaq 0x5f7a0(%rip), %rax # 0x8d890 cmpq %rax, %r14 je 0x2e14a cmpl $0x1b, 0x50(%rbx) jne 0x2e184 movq 0x98(%rbx), %rdi cmpq $0x0, 0x8(%rdi) je 0x2e184 callq 0x8090 cmpl $0x3, %eax jne 0x2e184 movq 0x98(%rbx), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %r14 callq 0x8900 leaq 0x5f75e(%rip), %rax # 0x8d890 cmpq %rax, %r14 jne 0x2e184 movq 0x98(%rbx), %rdi callq 0x2d745 testq %rax, %rax jne 0x2e15b jmp 0x2e184 movq 0x98(%rbx), %rdi callq 0x2d745 testq %rax, %rax je 0x2e0f5 movq 0xa0(%rbx), %rax movq 0x8(%rax), %rax testq %rax, %rax je 0x2e178 movq 0x48(%rax), %rdi callq 0x8680 testb %al, %al je 0x2e184 movq 0xa0(%rbx), %rax cmpl $0x0, (%rax) je 0x2e18e xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq movb $0x1, %al jmp 0x2e186
_ZN4ggml3cpu7aarch6417extra_buffer_type11supports_opEP19ggml_backend_devicePK11ggml_tensor: push r14 push rbx push rax mov rbx, rdx cmp dword ptr [rdx+50h], 1Ah jnz short loc_2E0F5 mov rdi, [rbx+98h] cmp qword ptr [rdi+8], 0 jz short loc_2E0F5 call _ggml_n_dims cmp eax, 2 jnz short loc_2E0F5 mov rax, [rbx+98h] mov rax, [rax+8] mov r14, [rax+48h] call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) lea rax, _ZZ36ggml_backend_cpu_aarch64_buffer_typevE36ggml_backend_cpu_buffer_type_aarch64; ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 cmp r14, rax jz short loc_2E14A loc_2E0F5: cmp dword ptr [rbx+50h], 1Bh jnz loc_2E184 mov rdi, [rbx+98h] cmp qword ptr [rdi+8], 0 jz short loc_2E184 call _ggml_n_dims cmp eax, 3 jnz short loc_2E184 mov rax, [rbx+98h] mov rax, [rax+8] mov r14, [rax+48h] call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) lea rax, _ZZ36ggml_backend_cpu_aarch64_buffer_typevE36ggml_backend_cpu_buffer_type_aarch64; ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 cmp r14, rax jnz short loc_2E184 mov rdi, [rbx+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) test rax, rax jnz short loc_2E15B jmp short loc_2E184 loc_2E14A: mov rdi, [rbx+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) test rax, rax jz short loc_2E0F5 loc_2E15B: mov rax, [rbx+0A0h] mov rax, [rax+8] test rax, rax jz short loc_2E178 mov rdi, [rax+48h] call _ggml_backend_buft_is_host test al, al jz short loc_2E184 loc_2E178: mov rax, [rbx+0A0h] cmp dword ptr [rax], 0 jz short loc_2E18E loc_2E184: xor eax, eax loc_2E186: add rsp, 8 pop rbx pop r14 retn loc_2E18E: mov al, 1 jmp short loc_2E186
bool ggml::cpu::aarch64::extra_buffer_type::supports_op(long long a1, long long a2, long long a3) { long long v4; // rdi long long *v5; // r14 long long v6; // rdi long long *v7; // r14 long long v8; // rax bool result; // al result = 0; if ( *(_DWORD *)(a3 + 80) == 26 && (v4 = *(_QWORD *)(a3 + 152), *(_QWORD *)(v4 + 8)) && (unsigned int)ggml_n_dims(v4) == 2 && (v5 = *(long long **)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL), ggml_backend_cpu_aarch64_buffer_type(), v5 == &ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64) && ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) || *(_DWORD *)(a3 + 80) == 27 && (v6 = *(_QWORD *)(a3 + 152), *(_QWORD *)(v6 + 8)) && (unsigned int)ggml_n_dims(v6) == 3 && (v7 = *(long long **)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL), ggml_backend_cpu_aarch64_buffer_type(), v7 == &ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64) && ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) ) { v8 = *(_QWORD *)(*(_QWORD *)(a3 + 160) + 8LL); if ( (!v8 || (unsigned __int8)ggml_backend_buft_is_host(*(_QWORD *)(v8 + 72))) && !**(_DWORD **)(a3 + 160) ) return 1; } return result; }
supports_op: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX CMP dword ptr [RDX + 0x50],0x1a JNZ 0x0012e0f5 MOV RDI,qword ptr [RBX + 0x98] CMP qword ptr [RDI + 0x8],0x0 JZ 0x0012e0f5 CALL 0x00108090 CMP EAX,0x2 JNZ 0x0012e0f5 MOV RAX,qword ptr [RBX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x48] CALL 0x00108900 LEA RAX,[0x18d890] CMP R14,RAX JZ 0x0012e14a LAB_0012e0f5: CMP dword ptr [RBX + 0x50],0x1b JNZ 0x0012e184 MOV RDI,qword ptr [RBX + 0x98] CMP qword ptr [RDI + 0x8],0x0 JZ 0x0012e184 CALL 0x00108090 CMP EAX,0x3 JNZ 0x0012e184 MOV RAX,qword ptr [RBX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x48] CALL 0x00108900 LEA RAX,[0x18d890] CMP R14,RAX JNZ 0x0012e184 MOV RDI,qword ptr [RBX + 0x98] CALL 0x0012d745 TEST RAX,RAX JNZ 0x0012e15b JMP 0x0012e184 LAB_0012e14a: MOV RDI,qword ptr [RBX + 0x98] CALL 0x0012d745 TEST RAX,RAX JZ 0x0012e0f5 LAB_0012e15b: MOV RAX,qword ptr [RBX + 0xa0] MOV RAX,qword ptr [RAX + 0x8] TEST RAX,RAX JZ 0x0012e178 MOV RDI,qword ptr [RAX + 0x48] CALL 0x00108680 TEST AL,AL JZ 0x0012e184 LAB_0012e178: MOV RAX,qword ptr [RBX + 0xa0] CMP dword ptr [RAX],0x0 JZ 0x0012e18e LAB_0012e184: XOR EAX,EAX LAB_0012e186: ADD RSP,0x8 POP RBX POP R14 RET LAB_0012e18e: MOV AL,0x1 JMP 0x0012e186
/* ggml::cpu::aarch64::extra_buffer_type::supports_op(ggml_backend_device*, ggml_tensor const*) */ int8 __thiscall ggml::cpu::aarch64::extra_buffer_type::supports_op (extra_buffer_type *this,ggml_backend_device *param_1,ggml_tensor *param_2) { int1 *puVar1; char cVar2; int iVar3; long lVar4; int8 uVar5; if ((((((*(int *)(param_2 + 0x50) == 0x1a) && (*(long *)(*(long *)(param_2 + 0x98) + 8) != 0)) && (iVar3 = ggml_n_dims(), iVar3 == 2)) && ((puVar1 = *(int1 **)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48), ggml_backend_cpu_aarch64_buffer_type(), puVar1 == ggml_backend_cpu_aarch64_buffer_type()::ggml_backend_cpu_buffer_type_aarch64 && (lVar4 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)), lVar4 != 0 )))) || (((*(int *)(param_2 + 0x50) == 0x1b && ((*(long *)(*(long *)(param_2 + 0x98) + 8) != 0 && (iVar3 = ggml_n_dims(), iVar3 == 3)))) && ((puVar1 = *(int1 **)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48), ggml_backend_cpu_aarch64_buffer_type(), puVar1 == ggml_backend_cpu_aarch64_buffer_type():: ggml_backend_cpu_buffer_type_aarch64 && (lVar4 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)), lVar4 != 0)))))) && (((*(long *)(*(long *)(param_2 + 0xa0) + 8) == 0 || (cVar2 = ggml_backend_buft_is_host (*(int8 *)(*(long *)(*(long *)(param_2 + 0xa0) + 8) + 0x48)), cVar2 != '\0')) && (**(int **)(param_2 + 0xa0) == 0)))) { uVar5 = CONCAT71((int7)((ulong)*(int **)(param_2 + 0xa0) >> 8),1); } else { uVar5 = 0; } return uVar5; }
31,586
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type()
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
bool supports_op(ggml_backend_dev_t, const struct ggml_tensor * op) override { if ( op->op == GGML_OP_MUL_MAT && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 2) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} // may be possible if Q8_0 packed... } else if (op->op == GGML_OP_MUL_MAT_ID && op->src[0]->buffer && (ggml_n_dims(op->src[0]) == 3) && op->src[0]->buffer->buft == ggml_backend_cpu_aarch64_buffer_type() && ggml_aarch64_get_optimal_repack_type(op->src[0]) ) { if (op->src[1]->buffer && !ggml_backend_buft_is_host(op->src[1]->buffer->buft)) { return false; } if (op->src[1]->type == GGML_TYPE_F32) { return true; } //if (op->src[1]->type == GGML_TYPE_Q8_0) { // return true; //} } return false; }
O3
cpp
ggml::cpu::aarch64::extra_buffer_type::extra_buffer_type(): pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movl 0x50(%rdx), %eax cmpl $0x1a, %eax jne 0x2ea08 movq 0x98(%rbx), %rdi cmpq $0x0, 0x8(%rdi) je 0x2ea05 callq 0x8090 cmpl $0x2, %eax jne 0x2ea05 movq 0x98(%rbx), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %r14 callq 0x8900 leaq 0x5ee90(%rip), %rax # 0x8d890 cmpq %rax, %r14 je 0x2ea5c movl 0x50(%rbx), %eax cmpl $0x1b, %eax jne 0x2ea96 movq 0x98(%rbx), %rdi cmpq $0x0, 0x8(%rdi) je 0x2ea96 callq 0x8090 cmpl $0x3, %eax jne 0x2ea96 movq 0x98(%rbx), %rax movq 0x8(%rax), %rax movq 0x48(%rax), %r14 callq 0x8900 leaq 0x5ee4c(%rip), %rax # 0x8d890 cmpq %rax, %r14 jne 0x2ea96 movq 0x98(%rbx), %rdi callq 0x2df91 testq %rax, %rax jne 0x2ea6d jmp 0x2ea96 movq 0x98(%rbx), %rdi callq 0x2df91 testq %rax, %rax je 0x2ea05 movq 0xa0(%rbx), %rax movq 0x8(%rax), %rcx testq %rcx, %rcx je 0x2ea91 movq 0x48(%rcx), %rdi callq 0x8680 testb %al, %al je 0x2ea96 movq 0xa0(%rbx), %rax cmpl $0x0, (%rax) je 0x2eaa0 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 retq movb $0x1, %al jmp 0x2ea98
_ZN4ggml3cpu7aarch6417extra_buffer_type11supports_opEP19ggml_backend_devicePK11ggml_tensor: push r14 push rbx push rax mov rbx, rdx mov eax, [rdx+50h] cmp eax, 1Ah jnz short loc_2EA08 mov rdi, [rbx+98h] cmp qword ptr [rdi+8], 0 jz short loc_2EA05 call _ggml_n_dims cmp eax, 2 jnz short loc_2EA05 mov rax, [rbx+98h] mov rax, [rax+8] mov r14, [rax+48h] call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) lea rax, _ZZ36ggml_backend_cpu_aarch64_buffer_typevE36ggml_backend_cpu_buffer_type_aarch64; ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 cmp r14, rax jz short loc_2EA5C loc_2EA05: mov eax, [rbx+50h] loc_2EA08: cmp eax, 1Bh jnz loc_2EA96 mov rdi, [rbx+98h] cmp qword ptr [rdi+8], 0 jz short loc_2EA96 call _ggml_n_dims cmp eax, 3 jnz short loc_2EA96 mov rax, [rbx+98h] mov rax, [rax+8] mov r14, [rax+48h] call __Z36ggml_backend_cpu_aarch64_buffer_typev; ggml_backend_cpu_aarch64_buffer_type(void) lea rax, _ZZ36ggml_backend_cpu_aarch64_buffer_typevE36ggml_backend_cpu_buffer_type_aarch64; ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 cmp r14, rax jnz short loc_2EA96 mov rdi, [rbx+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) test rax, rax jnz short loc_2EA6D jmp short loc_2EA96 loc_2EA5C: mov rdi, [rbx+98h] call _ZL36ggml_aarch64_get_optimal_repack_typePK11ggml_tensor; ggml_aarch64_get_optimal_repack_type(ggml_tensor const*) test rax, rax jz short loc_2EA05 loc_2EA6D: mov rax, [rbx+0A0h] mov rcx, [rax+8] test rcx, rcx jz short loc_2EA91 mov rdi, [rcx+48h] call _ggml_backend_buft_is_host test al, al jz short loc_2EA96 mov rax, [rbx+0A0h] loc_2EA91: cmp dword ptr [rax], 0 jz short loc_2EAA0 loc_2EA96: xor eax, eax loc_2EA98: add rsp, 8 pop rbx pop r14 retn loc_2EAA0: mov al, 1 jmp short loc_2EA98
bool ggml::cpu::aarch64::extra_buffer_type::supports_op(long long a1, long long a2, long long a3) { int v4; // eax long long v5; // rdi long long *v6; // r14 long long v7; // rdi long long *v8; // r14 long long v9; // rax long long v10; // rcx v4 = *(_DWORD *)(a3 + 80); if ( v4 == 26 ) { v5 = *(_QWORD *)(a3 + 152); if ( *(_QWORD *)(v5 + 8) ) { if ( (unsigned int)ggml_n_dims(v5) == 2 ) { v6 = *(long long **)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL); ggml_backend_cpu_aarch64_buffer_type(); if ( v6 == &ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 ) { if ( ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) ) goto LABEL_13; } } } v4 = *(_DWORD *)(a3 + 80); } if ( v4 != 27 ) return 0; v7 = *(_QWORD *)(a3 + 152); if ( !*(_QWORD *)(v7 + 8) ) return 0; if ( (unsigned int)ggml_n_dims(v7) != 3 ) return 0; v8 = *(long long **)(*(_QWORD *)(*(_QWORD *)(a3 + 152) + 8LL) + 72LL); ggml_backend_cpu_aarch64_buffer_type(); if ( v8 != &ggml_backend_cpu_aarch64_buffer_type(void)::ggml_backend_cpu_buffer_type_aarch64 || !ggml_aarch64_get_optimal_repack_type(*(_QWORD *)(a3 + 152)) ) { return 0; } LABEL_13: v9 = *(_QWORD *)(a3 + 160); v10 = *(_QWORD *)(v9 + 8); if ( v10 ) { if ( !(unsigned __int8)ggml_backend_buft_is_host(*(_QWORD *)(v10 + 72)) ) return 0; v9 = *(_QWORD *)(a3 + 160); } return !*(_DWORD *)v9; }
supports_op: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV EAX,dword ptr [RDX + 0x50] CMP EAX,0x1a JNZ 0x0012ea08 MOV RDI,qword ptr [RBX + 0x98] CMP qword ptr [RDI + 0x8],0x0 JZ 0x0012ea05 CALL 0x00108090 CMP EAX,0x2 JNZ 0x0012ea05 MOV RAX,qword ptr [RBX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x48] CALL 0x00108900 LEA RAX,[0x18d890] CMP R14,RAX JZ 0x0012ea5c LAB_0012ea05: MOV EAX,dword ptr [RBX + 0x50] LAB_0012ea08: CMP EAX,0x1b JNZ 0x0012ea96 MOV RDI,qword ptr [RBX + 0x98] CMP qword ptr [RDI + 0x8],0x0 JZ 0x0012ea96 CALL 0x00108090 CMP EAX,0x3 JNZ 0x0012ea96 MOV RAX,qword ptr [RBX + 0x98] MOV RAX,qword ptr [RAX + 0x8] MOV R14,qword ptr [RAX + 0x48] CALL 0x00108900 LEA RAX,[0x18d890] CMP R14,RAX JNZ 0x0012ea96 MOV RDI,qword ptr [RBX + 0x98] CALL 0x0012df91 TEST RAX,RAX JNZ 0x0012ea6d JMP 0x0012ea96 LAB_0012ea5c: MOV RDI,qword ptr [RBX + 0x98] CALL 0x0012df91 TEST RAX,RAX JZ 0x0012ea05 LAB_0012ea6d: MOV RAX,qword ptr [RBX + 0xa0] MOV RCX,qword ptr [RAX + 0x8] TEST RCX,RCX JZ 0x0012ea91 MOV RDI,qword ptr [RCX + 0x48] CALL 0x00108680 TEST AL,AL JZ 0x0012ea96 MOV RAX,qword ptr [RBX + 0xa0] LAB_0012ea91: CMP dword ptr [RAX],0x0 JZ 0x0012eaa0 LAB_0012ea96: XOR EAX,EAX LAB_0012ea98: ADD RSP,0x8 POP RBX POP R14 RET LAB_0012eaa0: MOV AL,0x1 JMP 0x0012ea98
/* ggml::cpu::aarch64::extra_buffer_type::supports_op(ggml_backend_device*, ggml_tensor const*) */ int8 __thiscall ggml::cpu::aarch64::extra_buffer_type::supports_op (extra_buffer_type *this,ggml_backend_device *param_1,ggml_tensor *param_2) { int1 *puVar1; char cVar2; int iVar3; long lVar4; int *piVar5; iVar3 = *(int *)(param_2 + 0x50); if (iVar3 == 0x1a) { if ((((*(long *)(*(long *)(param_2 + 0x98) + 8) != 0) && (iVar3 = ggml_n_dims(), iVar3 == 2)) && (puVar1 = *(int1 **)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48), ggml_backend_cpu_aarch64_buffer_type(), puVar1 == ggml_backend_cpu_aarch64_buffer_type()::ggml_backend_cpu_buffer_type_aarch64)) && (lVar4 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)), lVar4 != 0) ) goto LAB_0012ea6d; iVar3 = *(int *)(param_2 + 0x50); } if (iVar3 != 0x1b) { return 0; } if (*(long *)(*(long *)(param_2 + 0x98) + 8) == 0) { return 0; } iVar3 = ggml_n_dims(); if (iVar3 != 3) { return 0; } puVar1 = *(int1 **)(*(long *)(*(long *)(param_2 + 0x98) + 8) + 0x48); ggml_backend_cpu_aarch64_buffer_type(); if (puVar1 != ggml_backend_cpu_aarch64_buffer_type()::ggml_backend_cpu_buffer_type_aarch64) { return 0; } lVar4 = ggml_aarch64_get_optimal_repack_type(*(ggml_tensor **)(param_2 + 0x98)); if (lVar4 == 0) { return 0; } LAB_0012ea6d: piVar5 = *(int **)(param_2 + 0xa0); if (*(long *)(piVar5 + 2) != 0) { cVar2 = ggml_backend_buft_is_host(*(int8 *)(*(long *)(piVar5 + 2) + 0x48)); if (cVar2 == '\0') { return 0; } piVar5 = *(int **)(param_2 + 0xa0); } if (*piVar5 != 0) { return 0; } return CONCAT71((int7)((ulong)piVar5 >> 8),1); }
31,587
reset_partitioned_key_cache_counters
eloqsql/mysys/mf_keycache.c
static int reset_partitioned_key_cache_counters(const char *name __attribute__((unused)), PARTITIONED_KEY_CACHE_CB *keycache) { uint i; uint partitions= keycache->partitions; DBUG_ENTER("partitioned_reset_key_cache_counters"); for (i = 0; i < partitions; i++) { reset_simple_key_cache_counters(name, keycache->partition_array[i]); } DBUG_RETURN(0); }
O0
c
reset_partitioned_key_cache_counters: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, -0x18(%rbp) movl $0x0, -0x14(%rbp) movl -0x14(%rbp), %eax cmpl -0x18(%rbp), %eax jae 0xe9c5c movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movl -0x14(%rbp), %ecx movq (%rax,%rcx,8), %rsi callq 0xe81d0 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) jmp 0xe9c31 jmp 0xe9c5e jmp 0xe9c60 xorl %eax, %eax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
reset_partitioned_key_cache_counters: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_10] mov eax, [rax+1Ch] mov [rbp+var_18], eax mov [rbp+var_14], 0 loc_E9C31: mov eax, [rbp+var_14] cmp eax, [rbp+var_18] jnb short loc_E9C5C mov rdi, [rbp+var_8] mov rax, [rbp+var_10] mov rax, [rax+8] mov ecx, [rbp+var_14] mov rsi, [rax+rcx*8] call reset_simple_key_cache_counters mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax jmp short loc_E9C31 loc_E9C5C: jmp short $+2 loc_E9C5E: jmp short $+2 loc_E9C60: xor eax, eax add rsp, 20h pop rbp retn
long long reset_partitioned_key_cache_counters(long long a1, long long a2) { unsigned int v3; // [rsp+8h] [rbp-18h] unsigned int i; // [rsp+Ch] [rbp-14h] v3 = *(_DWORD *)(a2 + 28); for ( i = 0; i < v3; ++i ) reset_simple_key_cache_counters(a1, *(_QWORD *)(*(_QWORD *)(a2 + 8) + 8LL * i)); return 0LL; }
reset_partitioned_key_cache_counters: 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 EAX,dword ptr [RAX + 0x1c] MOV dword ptr [RBP + -0x18],EAX MOV dword ptr [RBP + -0x14],0x0 LAB_001e9c31: MOV EAX,dword ptr [RBP + -0x14] CMP EAX,dword ptr [RBP + -0x18] JNC 0x001e9c5c MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x14] MOV RSI,qword ptr [RAX + RCX*0x8] CALL 0x001e81d0 MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX JMP 0x001e9c31 LAB_001e9c5c: JMP 0x001e9c5e LAB_001e9c5e: JMP 0x001e9c60 LAB_001e9c60: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
int8 reset_partitioned_key_cache_counters(int8 param_1,long param_2) { uint uVar1; int4 local_1c; uVar1 = *(uint *)(param_2 + 0x1c); for (local_1c = 0; local_1c < uVar1; local_1c = local_1c + 1) { reset_simple_key_cache_counters (param_1,*(int8 *)(*(long *)(param_2 + 8) + (ulong)local_1c * 8)); } return 0; }
31,588
get_dynamic
eloqsql/mysys/array.c
void get_dynamic(DYNAMIC_ARRAY *array, void *element, uint idx) { if (idx >= array->elements) { DBUG_PRINT("warning",("To big array idx: %d, array size is %d", idx,array->elements)); bzero(element,array->size_of_element); return; } memcpy(element,array->buffer+idx*array->size_of_element, (size_t) array->size_of_element); }
O0
c
get_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x8(%rcx), %eax jb 0x7ab89 jmp 0x7ab71 jmp 0x7ab73 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a190 jmp 0x7abb2 movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movq (%rax), %rsi movl -0x14(%rbp), %eax movq -0x8(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax addq %rax, %rsi movq -0x8(%rbp), %rax movl 0x14(%rax), %eax movl %eax, %edx callq 0x2a230 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
get_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx mov eax, [rbp+var_14] mov rcx, [rbp+var_8] cmp eax, [rcx+8] jb short loc_7AB89 jmp short $+2 loc_7AB71: jmp short $+2 loc_7AB73: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax xor esi, esi call _memset jmp short loc_7ABB2 loc_7AB89: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov rsi, [rax] mov eax, [rbp+var_14] mov rcx, [rbp+var_8] imul eax, [rcx+14h] mov eax, eax add rsi, rax mov rax, [rbp+var_8] mov eax, [rax+14h] mov edx, eax call _memcpy loc_7ABB2: add rsp, 20h pop rbp retn
long long get_dynamic(long long a1, long long a2, unsigned int a3) { if ( a3 < *(_DWORD *)(a1 + 8) ) return memcpy(a2, *(_DWORD *)(a1 + 20) * a3 + *(_QWORD *)a1, *(unsigned int *)(a1 + 20)); else return memset(a2, 0LL, *(unsigned int *)(a1 + 20)); }
get_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x8] JC 0x0017ab89 JMP 0x0017ab71 LAB_0017ab71: JMP 0x0017ab73 LAB_0017ab73: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a190 JMP 0x0017abb2 LAB_0017ab89: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] MOV EAX,dword ptr [RBP + -0x14] MOV RCX,qword ptr [RBP + -0x8] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX ADD RSI,RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] MOV EDX,EAX CALL 0x0012a230 LAB_0017abb2: ADD RSP,0x20 POP RBP RET
void get_dynamic(long *param_1,void *param_2,uint param_3) { if (param_3 < *(uint *)(param_1 + 1)) { memcpy(param_2,(void *)(*param_1 + (ulong)(param_3 * *(int *)((long)param_1 + 0x14))), (ulong)*(uint *)((long)param_1 + 0x14)); } else { memset(param_2,0,(ulong)*(uint *)((long)param_1 + 0x14)); } return; }
31,589
my_snprintf
eloqsql/strings/my_vsnprintf.c
size_t my_snprintf(char* to, size_t n, const char* fmt, ...) { size_t result; va_list args; va_start(args,fmt); result= my_vsnprintf(to, n, fmt, args); va_end(args); return result; }
O0
c
my_snprintf: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0x7f1eb movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rbp) movq %rcx, -0xd8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq -0xf0(%rbp), %rax movq %rax, -0x30(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x38(%rbp) movl $0x30, -0x3c(%rbp) movl $0x18, -0x40(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0x7f170 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0xf0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_snprintf: push rbp mov rbp, rsp sub rsp, 0F0h test al, al jz short loc_7F1EB movaps [rbp+var_C0], xmm0 movaps [rbp+var_B0], xmm1 movaps [rbp+var_A0], xmm2 movaps [rbp+var_90], xmm3 movaps [rbp+var_80], xmm4 movaps [rbp+var_70], xmm5 movaps [rbp+var_60], xmm6 movaps [rbp+var_50], xmm7 loc_7F1EB: mov [rbp+var_C8], r9 mov [rbp+var_D0], r8 mov [rbp+var_D8], rcx mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rax, [rbp+var_F0] mov [rbp+var_30], rax lea rax, [rbp+arg_0] mov [rbp+var_38], rax mov [rbp+var_3C], 30h ; '0' mov [rbp+var_40], 18h mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] lea rcx, [rbp+var_40] call my_vsnprintf mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 0F0h pop rbp retn
_BYTE * my_snprintf( _BYTE *a1, long long a2, char *a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-F0h] BYREF long long v17; // [rsp+18h] [rbp-D8h] long long v18; // [rsp+20h] [rbp-D0h] long long v19; // [rsp+28h] [rbp-C8h] __m128 v20; // [rsp+30h] [rbp-C0h] __m128 v21; // [rsp+40h] [rbp-B0h] __m128 v22; // [rsp+50h] [rbp-A0h] __m128 v23; // [rsp+60h] [rbp-90h] __m128 v24; // [rsp+70h] [rbp-80h] __m128 v25; // [rsp+80h] [rbp-70h] __m128 v26; // [rsp+90h] [rbp-60h] __m128 v27; // [rsp+A0h] [rbp-50h] int v28[2]; // [rsp+B0h] [rbp-40h] BYREF char *v29; // [rsp+B8h] [rbp-38h] char *v30; // [rsp+C0h] [rbp-30h] char *v31; // [rsp+D8h] [rbp-18h] long long v32; // [rsp+E0h] [rbp-10h] _BYTE *v33; // [rsp+E8h] [rbp-8h] v20 = a7; v21 = a8; v22 = a9; v23 = a10; v24 = a11; v25 = a12; v26 = a13; v27 = a14; v19 = a6; v18 = a5; v17 = a4; v33 = a1; v32 = a2; v31 = a3; v30 = &v16; v29 = &a15; v28[1] = 48; v28[0] = 24; return my_vsnprintf(a1, a2, a3, v28); }
my_snprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 TEST AL,AL JZ 0x0017f1eb MOVAPS xmmword ptr [RBP + -0xc0],XMM0 MOVAPS xmmword ptr [RBP + -0xb0],XMM1 MOVAPS xmmword ptr [RBP + -0xa0],XMM2 MOVAPS xmmword ptr [RBP + -0x90],XMM3 MOVAPS xmmword ptr [RBP + -0x80],XMM4 MOVAPS xmmword ptr [RBP + -0x70],XMM5 MOVAPS xmmword ptr [RBP + -0x60],XMM6 MOVAPS xmmword ptr [RBP + -0x50],XMM7 LAB_0017f1eb: MOV qword ptr [RBP + -0xc8],R9 MOV qword ptr [RBP + -0xd0],R8 MOV qword ptr [RBP + -0xd8],RCX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RAX,[RBP + -0xf0] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x3c],0x30 MOV dword ptr [RBP + -0x40],0x18 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] LEA RCX,[RBP + -0x40] CALL 0x0017f170 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0xf0 POP RBP RET
int8 my_snprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int8 uVar1; int1 local_f8 [24]; int8 local_e0; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int4 local_48; int4 local_44; int1 *local_40; int1 *local_38; int8 local_20; int8 local_18; int8 local_10; if (in_AL != '\0') { local_c8 = param_1; local_b8 = param_2; local_a8 = param_3; local_98 = param_4; local_88 = param_5; local_78 = param_6; local_68 = param_7; local_58 = param_8; } local_38 = local_f8; local_40 = &stack0x00000008; local_44 = 0x30; local_48 = 0x18; local_e0 = param_12; local_d8 = param_13; local_d0 = param_14; local_20 = param_11; local_18 = param_10; local_10 = param_9; uVar1 = my_vsnprintf(param_9,param_10,param_11,&local_48); return uVar1; }
31,590
my_snprintf
eloqsql/strings/my_vsnprintf.c
size_t my_snprintf(char* to, size_t n, const char* fmt, ...) { size_t result; va_list args; va_start(args,fmt); result= my_vsnprintf(to, n, fmt, args); va_end(args); return result; }
O3
c
my_snprintf: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdx, %r10 movq %rsi, %rdx movq %rdi, %rsi leaq -0xd0(%rbp), %rdi movq %rcx, 0x18(%rdi) movq %r8, 0x20(%rdi) movq %r9, 0x28(%rdi) testb %al, %al je 0x5f063 movaps %xmm0, -0xa0(%rbp) movaps %xmm1, -0x90(%rbp) movaps %xmm2, -0x80(%rbp) movaps %xmm3, -0x70(%rbp) movaps %xmm4, -0x60(%rbp) movaps %xmm5, -0x50(%rbp) movaps %xmm6, -0x40(%rbp) movaps %xmm7, -0x30(%rbp) leaq -0x20(%rbp), %r8 movq %rdi, 0x10(%r8) leaq 0x10(%rbp), %rax movq %rax, 0x8(%r8) movabsq $0x3000000018, %rax # imm = 0x3000000018 movq %rax, (%r8) leaq 0x2bdeb9(%rip), %rdi # 0x31cf40 movq %r10, %rcx callq 0x5de30 addq $0xd0, %rsp popq %rbp retq
my_snprintf: push rbp mov rbp, rsp sub rsp, 0D0h mov r10, rdx mov rdx, rsi mov rsi, rdi lea rdi, [rbp+var_D0] mov [rdi+18h], rcx mov [rdi+20h], r8 mov [rdi+28h], r9 test al, al jz short loc_5F063 movaps [rbp+var_A0], xmm0 movaps [rbp+var_90], xmm1 movaps [rbp+var_80], xmm2 movaps [rbp+var_70], xmm3 movaps [rbp+var_60], xmm4 movaps [rbp+var_50], xmm5 movaps [rbp+var_40], xmm6 movaps [rbp+var_30], xmm7 loc_5F063: lea r8, [rbp+var_20] mov [r8+10h], rdi lea rax, [rbp+arg_0] mov [r8+8], rax mov rax, 3000000018h mov [r8], rax lea rdi, my_charset_latin1 mov rcx, r10 call my_vsnprintf_ex add rsp, 0D0h pop rbp retn
unsigned long long my_snprintf( unsigned long long a1, long long a2, unsigned __int8 *a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-D0h] BYREF long long v17; // [rsp+18h] [rbp-B8h] long long v18; // [rsp+20h] [rbp-B0h] long long v19; // [rsp+28h] [rbp-A8h] __m128 v20; // [rsp+30h] [rbp-A0h] __m128 v21; // [rsp+40h] [rbp-90h] __m128 v22; // [rsp+50h] [rbp-80h] __m128 v23; // [rsp+60h] [rbp-70h] __m128 v24; // [rsp+70h] [rbp-60h] __m128 v25; // [rsp+80h] [rbp-50h] __m128 v26; // [rsp+90h] [rbp-40h] __m128 v27; // [rsp+A0h] [rbp-30h] _QWORD v28[4]; // [rsp+B0h] [rbp-20h] BYREF v20 = a7; v21 = a8; v22 = a9; v23 = a10; v24 = a11; v25 = a12; v26 = a13; v27 = a14; v17 = a4; v18 = a5; v19 = a6; v28[2] = &v16; v28[1] = &a15; v28[0] = 0x3000000018LL; return my_vsnprintf_ex((long long)my_charset_latin1, a1, a2, a3, (unsigned int *)v28); }
my_snprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 MOV R10,RDX MOV RDX,RSI MOV RSI,RDI LEA RDI,[RBP + -0xd0] MOV qword ptr [RDI + 0x18],RCX MOV qword ptr [RDI + 0x20],R8 MOV qword ptr [RDI + 0x28],R9 TEST AL,AL JZ 0x0015f063 MOVAPS xmmword ptr [RBP + -0xa0],XMM0 MOVAPS xmmword ptr [RBP + -0x90],XMM1 MOVAPS xmmword ptr [RBP + -0x80],XMM2 MOVAPS xmmword ptr [RBP + -0x70],XMM3 MOVAPS xmmword ptr [RBP + -0x60],XMM4 MOVAPS xmmword ptr [RBP + -0x50],XMM5 MOVAPS xmmword ptr [RBP + -0x40],XMM6 MOVAPS xmmword ptr [RBP + -0x30],XMM7 LAB_0015f063: LEA R8,[RBP + -0x20] MOV qword ptr [R8 + 0x10],RDI LEA RAX,[RBP + 0x10] MOV qword ptr [R8 + 0x8],RAX MOV RAX,0x3000000018 MOV qword ptr [R8],RAX LEA RDI,[0x41cf40] MOV RCX,R10 CALL 0x0015de30 ADD RSP,0xd0 POP RBP RET
void my_snprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [24]; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; int1 *local_20; int1 *local_18; local_18 = local_d8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_20 = &stack0x00000008; local_28 = 0x3000000018; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; my_vsnprintf_ex(&my_charset_latin1,param_9,param_10,param_11); return; }
31,591
lunasvg::SVGElement::hasAttribute(std::basic_string_view<char, std::char_traits<char>> const&) const
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
bool SVGElement::hasAttribute(const std::string_view& name) const { auto id = propertyid(name); if(id == PropertyID::Unknown) return false; return hasAttribute(id); }
O1
cpp
lunasvg::SVGElement::hasAttribute(std::basic_string_view<char, std::char_traits<char>> const&) const: pushq %rbx movq %rdi, %rbx movq %rsi, %rdi callq 0x1f1ec testb %al, %al je 0xf1c2 addq $0x48, %rbx movq (%rbx), %rbx testq %rbx, %rbx setne %cl je 0xf1c4 cmpb %al, 0xc(%rbx) jne 0xf1b0 jmp 0xf1c4 xorl %ecx, %ecx movl %ecx, %eax popq %rbx retq
_ZNK7lunasvg10SVGElement12hasAttributeERKSt17basic_string_viewIcSt11char_traitsIcEE: push rbx mov rbx, rdi mov rdi, rsi call _ZN7lunasvg10propertyidERKSt17basic_string_viewIcSt11char_traitsIcEE; lunasvg::propertyid(std::string_view const&) test al, al jz short loc_F1C2 add rbx, 48h ; 'H' loc_F1B0: mov rbx, [rbx] test rbx, rbx setnz cl jz short loc_F1C4 cmp [rbx+0Ch], al jnz short loc_F1B0 jmp short loc_F1C4 loc_F1C2: xor ecx, ecx loc_F1C4: mov eax, ecx pop rbx retn
long long lunasvg::SVGElement::hasAttribute(long long a1, long long a2) { char v2; // al unsigned int v3; // ecx long long *v4; // rbx v2 = lunasvg::propertyid(a2); if ( v2 ) { v4 = (long long *)(a1 + 72); do { v4 = (long long *)*v4; LOBYTE(v3) = v4 != 0LL; } while ( v4 && *((_BYTE *)v4 + 12) != v2 ); } else { return 0; } return v3; }
hasAttribute: PUSH RBX MOV RBX,RDI MOV RDI,RSI CALL 0x0011f1ec TEST AL,AL JZ 0x0010f1c2 ADD RBX,0x48 LAB_0010f1b0: MOV RBX,qword ptr [RBX] TEST RBX,RBX SETNZ CL JZ 0x0010f1c4 CMP byte ptr [RBX + 0xc],AL JNZ 0x0010f1b0 JMP 0x0010f1c4 LAB_0010f1c2: XOR ECX,ECX LAB_0010f1c4: MOV EAX,ECX POP RBX RET
/* lunasvg::SVGElement::hasAttribute(std::basic_string_view<char, std::char_traits<char> > const&) const */ ulong lunasvg::SVGElement::hasAttribute(basic_string_view *param_1) { basic_string_view bVar1; ulong in_RCX; basic_string_view *pbVar2; basic_string_view *in_RSI; bVar1 = (basic_string_view)propertyid(in_RSI); if (bVar1 == (basic_string_view)0x0) { in_RCX = 0; } else { pbVar2 = param_1 + 0x48; do { pbVar2 = *(basic_string_view **)pbVar2; in_RCX = CONCAT71((int7)(in_RCX >> 8),pbVar2 != (basic_string_view *)0x0); if (pbVar2 == (basic_string_view *)0x0) break; } while (pbVar2[0xc] != bVar1); } return in_RCX & 0xffffffff; }
31,592
my_casedn_8bit
eloqsql/strings/ctype-simple.c
size_t my_casedn_8bit(CHARSET_INFO * cs, const char *src, size_t srclen, char *dst, size_t dstlen __attribute__((unused))) { const char *end= src + srclen; register const uchar *map=cs->to_lower; DBUG_ASSERT(srclen <= dstlen); for ( ; src != end ; src++) *dst++= (char) map[(uchar) *src]; return srclen; }
O0
c
my_casedn_8bit: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x8(%rbp), %rax movq 0x48(%rax), %rax movq %rax, -0x38(%rbp) jmp 0x77b92 jmp 0x77b94 movq -0x10(%rbp), %rax cmpq -0x30(%rbp), %rax je 0x77bcb movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movb (%rax,%rcx), %cl movq -0x20(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x20(%rbp) movb %cl, (%rax) movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) jmp 0x77b94 movq -0x18(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
my_casedn_8bit: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_30], rax mov rax, [rbp+var_8] mov rax, [rax+48h] mov [rbp+var_38], rax jmp short $+2 loc_77B92: jmp short $+2 loc_77B94: mov rax, [rbp+var_10] cmp rax, [rbp+var_30] jz short loc_77BCB mov rax, [rbp+var_38] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] mov cl, [rax+rcx] mov rax, [rbp+var_20] mov rdx, rax add rdx, 1 mov [rbp+var_20], rdx mov [rax], cl mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax jmp short loc_77B94 loc_77BCB: mov rax, [rbp+var_18] pop rbp retn
long long my_casedn_8bit(long long a1, unsigned __int8 *a2, long long a3, _BYTE *a4) { _BYTE *v4; // rax long long v6; // [rsp+0h] [rbp-38h] unsigned __int8 *v8; // [rsp+28h] [rbp-10h] v8 = a2; v6 = *(_QWORD *)(a1 + 72); while ( v8 != &a2[a3] ) { v4 = a4++; *v4 = *(_BYTE *)(v6 + *v8++); } return a3; }
my_casedn_8bit: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x48] MOV qword ptr [RBP + -0x38],RAX JMP 0x00177b92 LAB_00177b92: JMP 0x00177b94 LAB_00177b94: MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x30] JZ 0x00177bcb MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOV CL,byte ptr [RAX + RCX*0x1] MOV RAX,qword ptr [RBP + -0x20] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x20],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX JMP 0x00177b94 LAB_00177bcb: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
long my_casedn_8bit(long param_1,byte *param_2,long param_3,int1 *param_4) { long lVar1; int1 *local_28; byte *local_18; lVar1 = *(long *)(param_1 + 0x48); local_28 = param_4; for (local_18 = param_2; local_18 != param_2 + param_3; local_18 = local_18 + 1) { *local_28 = *(int1 *)(lVar1 + (ulong)*local_18); local_28 = local_28 + 1; } return param_3; }
31,593
VoxelStorage::serialize(WriteBuffer&) const
untodesu[P]voxelius/game/shared/voxel_storage.cc
void VoxelStorage::serialize(WriteBuffer &buffer) const { auto bound = mz_compressBound(sizeof(VoxelStorage)); auto zdata = std::vector<unsigned char>(bound); VoxelStorage net_storage; for(std::size_t i = 0; i < CHUNK_VOLUME; ++i) { // Convert voxel indices into network byte order; // We're going to compress them but we still want // the order to be consistent across all the platforms net_storage[i] = ENET_HOST_TO_NET_16(at(i)); } mz_compress(zdata.data(), &bound, reinterpret_cast<unsigned char*>(net_storage.data()), sizeof(VoxelStorage)); buffer.write_UI64(bound); // Write all the compressed data into the buffer for(std::size_t i = 0; i < bound; buffer.write_UI8(zdata[i++])); }
O0
cpp
VoxelStorage::serialize(WriteBuffer&) const: pushq %rbp movq %rsp, %rbp subq $0x2090, %rsp # imm = 0x2090 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x2070(%rbp) movl $0x2000, %edi # imm = 0x2000 callq 0x1c7ca0 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x2068(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x2060(%rbp) callq 0xed2e0 movq -0x2068(%rbp), %rsi movq -0x2060(%rbp), %rdx leaq -0x30(%rbp), %rdi callq 0xed300 jmp 0xecfc0 leaq -0x31(%rbp), %rdi callq 0xed370 movq $0x0, -0x2050(%rbp) cmpq $0x1000, -0x2050(%rbp) # imm = 0x1000 jae 0xed07c movq -0x2070(%rbp), %rdi movq -0x2050(%rbp), %rsi callq 0xed390 movq %rax, -0x2078(%rbp) jmp 0xed001 movq -0x2078(%rbp), %rax movzwl (%rax), %edi callq 0x1a090 movw %ax, -0x207a(%rbp) movq -0x2050(%rbp), %rsi leaq -0x2044(%rbp), %rdi callq 0x2cd30 movw -0x207a(%rbp), %cx movw %cx, (%rax) movq -0x2050(%rbp), %rax addq $0x1, %rax movq %rax, -0x2050(%rbp) jmp 0xecfd4 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x31(%rbp), %rdi callq 0xed370 jmp 0xed128 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) leaq -0x30(%rbp), %rdi callq 0xed430 jmp 0xed128 leaq -0x30(%rbp), %rdi callq 0xed3f0 movq %rax, -0x2088(%rbp) leaq -0x2044(%rbp), %rdi callq 0x2f660 movq -0x2088(%rbp), %rdi movq %rax, %rdx leaq -0x18(%rbp), %rsi movl $0x2000, %ecx # imm = 0x2000 callq 0x1c7c60 jmp 0xed0b2 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0xf2a60 jmp 0xed0c1 movq $0x0, -0x2058(%rbp) movq -0x2058(%rbp), %rax cmpq -0x18(%rbp), %rax jae 0xed116 jmp 0xed0db movq -0x10(%rbp), %rax movq %rax, -0x2090(%rbp) movq -0x2058(%rbp), %rsi movq %rsi, %rax incq %rax movq %rax, -0x2058(%rbp) leaq -0x30(%rbp), %rdi callq 0xed410 movq -0x2090(%rbp), %rdi movzbl (%rax), %esi callq 0xf2910 jmp 0xed114 jmp 0xed0cc leaq -0x30(%rbp), %rdi callq 0xed430 addq $0x2090, %rsp # imm = 0x2090 popq %rbp retq movq -0x40(%rbp), %rdi callq 0x1aff0 nopw %cs:(%rax,%rax)
_ZNK12VoxelStorage9serializeER11WriteBuffer: push rbp mov rbp, rsp sub rsp, 2090h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov [rbp+var_2070], rax mov edi, 2000h call mz_compressBound mov [rbp+var_18], rax mov rax, [rbp+var_18] mov [rbp+var_2068], rax lea rdi, [rbp+var_31] mov [rbp+var_2060], rdi call _ZNSaIhEC2Ev; std::allocator<uchar>::allocator(void) mov rsi, [rbp+var_2068] mov rdx, [rbp+var_2060] lea rdi, [rbp+var_30] call _ZNSt6vectorIhSaIhEEC2EmRKS0_; std::vector<uchar>::vector(ulong,std::allocator<uchar> const&) jmp short $+2 loc_ECFC0: lea rdi, [rbp+var_31] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() mov [rbp+var_2050], 0 loc_ECFD4: cmp [rbp+var_2050], 1000h jnb loc_ED07C mov rdi, [rbp+var_2070] mov rsi, [rbp+var_2050] call _ZNKSt5arrayItLm4096EE2atEm; std::array<ushort,4096ul>::at(ulong) mov [rbp+var_2078], rax jmp short $+2 loc_ED001: mov rax, [rbp+var_2078] movzx edi, word ptr [rax] call _htons mov [rbp+var_207A], ax mov rsi, [rbp+var_2050] lea rdi, [rbp+var_2044] call _ZNSt5arrayItLm4096EEixEm; std::array<ushort,4096ul>::operator[](ulong) mov cx, [rbp+var_207A] mov [rax], cx mov rax, [rbp+var_2050] add rax, 1 mov [rbp+var_2050], rax jmp short loc_ECFD4 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_31] call _ZNSaIhED2Ev; std::allocator<uchar>::~allocator() jmp loc_ED128 mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax lea rdi, [rbp+var_30] call _ZNSt6vectorIhSaIhEED2Ev; std::vector<uchar>::~vector() jmp loc_ED128 loc_ED07C: lea rdi, [rbp+var_30] call _ZNSt6vectorIhSaIhEE4dataEv; std::vector<uchar>::data(void) mov [rbp+var_2088], rax lea rdi, [rbp+var_2044] call _ZNSt5arrayItLm4096EE4dataEv; std::array<ushort,4096ul>::data(void) mov rdi, [rbp+var_2088] mov rdx, rax lea rsi, [rbp+var_18] mov ecx, 2000h call mz_compress jmp short $+2 loc_ED0B2: mov rdi, [rbp+var_10]; this mov rsi, [rbp+var_18]; unsigned __int64 call _ZN11WriteBuffer10write_UI64Em; WriteBuffer::write_UI64(ulong) jmp short $+2 loc_ED0C1: mov [rbp+var_2058], 0 loc_ED0CC: mov rax, [rbp+var_2058] cmp rax, [rbp+var_18] jnb short loc_ED116 jmp short $+2 loc_ED0DB: mov rax, [rbp+var_10] mov [rbp+var_2090], rax mov rsi, [rbp+var_2058] mov rax, rsi inc rax mov [rbp+var_2058], rax lea rdi, [rbp+var_30] call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong) mov rdi, [rbp+var_2090]; this movzx esi, byte ptr [rax]; unsigned __int8 call _ZN11WriteBuffer9write_UI8Eh; WriteBuffer::write_UI8(uchar) jmp short $+2 loc_ED114: jmp short loc_ED0CC loc_ED116: lea rdi, [rbp+var_30] call _ZNSt6vectorIhSaIhEED2Ev; std::vector<uchar>::~vector() add rsp, 2090h pop rbp retn loc_ED128: mov rdi, [rbp+var_40] call __Unwind_Resume
long long VoxelStorage::serialize(VoxelStorage *this, WriteBuffer *a2) { long long v2; // rax unsigned __int8 *v3; // rax WriteBuffer *v5; // [rsp+0h] [rbp-2090h] long long v6; // [rsp+8h] [rbp-2088h] __int16 v7; // [rsp+16h] [rbp-207Ah] unsigned __int16 *v8; // [rsp+18h] [rbp-2078h] unsigned long long v9; // [rsp+28h] [rbp-2068h] unsigned long long j; // [rsp+38h] [rbp-2058h] unsigned long long i; // [rsp+40h] [rbp-2050h] _BYTE v12[8192]; // [rsp+4Ch] [rbp-2044h] BYREF char v13; // [rsp+205Fh] [rbp-31h] BYREF _BYTE v14[24]; // [rsp+2060h] [rbp-30h] BYREF unsigned long long v15; // [rsp+2078h] [rbp-18h] BYREF WriteBuffer *v16; // [rsp+2080h] [rbp-10h] VoxelStorage *v17; // [rsp+2088h] [rbp-8h] v17 = this; v16 = a2; v15 = mz_compressBound(0x2000LL); v9 = v15; std::allocator<unsigned char>::allocator(); std::vector<unsigned char>::vector(v14, v9, &v13); std::allocator<unsigned char>::~allocator(&v13); for ( i = 0LL; i < 0x1000; ++i ) { v8 = (unsigned __int16 *)std::array<unsigned short,4096ul>::at(this, i); v7 = htons(*v8); *(_WORD *)std::array<unsigned short,4096ul>::operator[]((long long)v12, i) = v7; } v6 = std::vector<unsigned char>::data(v14); v2 = std::array<unsigned short,4096ul>::data((long long)v12); mz_compress(v6, &v15, v2, 0x2000LL); WriteBuffer::write_UI64(v16, v15); for ( j = 0LL; j < v15; ++j ) { v5 = v16; v3 = (unsigned __int8 *)std::vector<unsigned char>::operator[](v14); WriteBuffer::write_UI8(v5, *v3); } return std::vector<unsigned char>::~vector(v14); }
serialize: PUSH RBP MOV RBP,RSP SUB RSP,0x2090 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x2070],RAX MOV EDI,0x2000 CALL 0x002c7ca0 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x2068],RAX LEA RDI,[RBP + -0x31] MOV qword ptr [RBP + -0x2060],RDI CALL 0x001ed2e0 MOV RSI,qword ptr [RBP + -0x2068] MOV RDX,qword ptr [RBP + -0x2060] LAB_001ecfb5: LEA RDI,[RBP + -0x30] CALL 0x001ed300 JMP 0x001ecfc0 LAB_001ecfc0: LEA RDI,[RBP + -0x31] CALL 0x001ed370 MOV qword ptr [RBP + -0x2050],0x0 LAB_001ecfd4: CMP qword ptr [RBP + -0x2050],0x1000 JNC 0x001ed07c MOV RDI,qword ptr [RBP + -0x2070] MOV RSI,qword ptr [RBP + -0x2050] LAB_001ecff3: CALL 0x001ed390 MOV qword ptr [RBP + -0x2078],RAX JMP 0x001ed001 LAB_001ed001: MOV RAX,qword ptr [RBP + -0x2078] MOVZX EDI,word ptr [RAX] CALL 0x0011a090 MOV word ptr [RBP + -0x207a],AX MOV RSI,qword ptr [RBP + -0x2050] LEA RDI,[RBP + -0x2044] CALL 0x0012cd30 MOV CX,word ptr [RBP + -0x207a] MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x2050] ADD RAX,0x1 MOV qword ptr [RBP + -0x2050],RAX JMP 0x001ecfd4 LAB_001ed07c: LEA RDI,[RBP + -0x30] CALL 0x001ed3f0 MOV qword ptr [RBP + -0x2088],RAX LEA RDI,[RBP + -0x2044] CALL 0x0012f660 MOV RDI,qword ptr [RBP + -0x2088] MOV RDX,RAX LEA RSI,[RBP + -0x18] MOV ECX,0x2000 CALL 0x002c7c60 JMP 0x001ed0b2 LAB_001ed0b2: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x001f2a60 JMP 0x001ed0c1 LAB_001ed0c1: MOV qword ptr [RBP + -0x2058],0x0 LAB_001ed0cc: MOV RAX,qword ptr [RBP + -0x2058] CMP RAX,qword ptr [RBP + -0x18] JNC 0x001ed116 JMP 0x001ed0db LAB_001ed0db: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x2090],RAX MOV RSI,qword ptr [RBP + -0x2058] MOV RAX,RSI INC RAX MOV qword ptr [RBP + -0x2058],RAX LEA RDI,[RBP + -0x30] CALL 0x001ed410 MOV RDI,qword ptr [RBP + -0x2090] MOVZX ESI,byte ptr [RAX] CALL 0x001f2910 LAB_001ed112: JMP 0x001ed114 LAB_001ed114: JMP 0x001ed0cc LAB_001ed116: LEA RDI,[RBP + -0x30] CALL 0x001ed430 ADD RSP,0x2090 POP RBP RET
/* VoxelStorage::serialize(WriteBuffer&) const */ void __thiscall VoxelStorage::serialize(VoxelStorage *this,WriteBuffer *param_1) { WriteBuffer *this_00; uint16_t uVar1; ulong uVar2; uint16_t *puVar3; int8 uVar4; int8 uVar5; uchar *puVar6; ulong local_2060; ulong local_2058; array<unsigned_short,4096ul> local_204c [8211]; allocator local_39; vector<unsigned_char,std::allocator<unsigned_char>> local_38 [24]; ulong local_20; WriteBuffer *local_18; VoxelStorage *local_10; local_18 = param_1; local_10 = this; uVar2 = mz_compressBound(0x2000); local_20 = uVar2; std::allocator<unsigned_char>::allocator(); /* try { // try from 001ecfb5 to 001ecfbd has its CatchHandler @ 001ed048 */ std::vector<unsigned_char,std::allocator<unsigned_char>>::vector(local_38,uVar2,&local_39); std::allocator<unsigned_char>::~allocator((allocator<unsigned_char> *)&local_39); for (local_2058 = 0; local_2058 < 0x1000; local_2058 = local_2058 + 1) { /* try { // try from 001ecff3 to 001ed111 has its CatchHandler @ 001ed062 */ puVar3 = (uint16_t *) std::array<unsigned_short,4096ul>::at((array<unsigned_short,4096ul> *)this,local_2058); uVar1 = htons(*puVar3); puVar3 = (uint16_t *)std::array<unsigned_short,4096ul>::operator[](local_204c,local_2058); *puVar3 = uVar1; } uVar4 = std::vector<unsigned_char,std::allocator<unsigned_char>>::data(local_38); uVar5 = std::array<unsigned_short,4096ul>::data(local_204c); mz_compress(uVar4,&local_20,uVar5,0x2000); WriteBuffer::write_UI64(local_18,local_20); local_2060 = 0; while (this_00 = local_18, local_2060 < local_20) { puVar6 = (uchar *)std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[] (local_38,local_2060); WriteBuffer::write_UI8(this_00,*puVar6); local_2060 = local_2060 + 1; } std::vector<unsigned_char,std::allocator<unsigned_char>>::~vector(local_38); return; }
31,594
allocate_head
eloqsql/storage/maria/ma_bitmap.c
static my_bool allocate_head(MARIA_FILE_BITMAP *bitmap, uint size, MARIA_BITMAP_BLOCK *block) { uint min_bits= size_to_head_pattern(bitmap, size); uchar *data, *end; uchar *best_data= 0; uint best_bits= (uint) -1, UNINIT_VAR(best_pos); my_bool first_pattern= 0; /* if doing insert_order */ my_bool first_found= 1; MARIA_SHARE *share= bitmap->share; my_bool insert_order= MY_TEST(share->base.extra_options & MA_EXTRA_OPTIONS_INSERT_ORDER); DBUG_ENTER("allocate_head"); DBUG_ASSERT(size <= FULL_PAGE_SIZE(share)); end= bitmap->map + bitmap->used_size; if (insert_order && bitmap->page == share->last_insert_bitmap) { uint last_insert_page= share->last_insert_page; uint byte= 6 * (last_insert_page / 16); first_pattern= last_insert_page % 16; data= bitmap->map+byte; first_found= 0; /* Don't update full_head_size */ DBUG_ASSERT(data <= end); } else data= bitmap->map + (bitmap->full_head_size/6)*6; for (; data < end; data+= 6, first_pattern= 0) { ulonglong bits= uint6korr(data); /* 6 bytes = 6*8/3= 16 patterns */ uint i; /* Skip common patterns We can skip empty pages (if we already found a match) or anything matching the following pattern as this will be either a full page or a tail page */ if ((!bits && best_data) || ((bits & 04444444444444444LL) == 04444444444444444LL)) continue; for (i= first_pattern, bits >>= (3 * first_pattern); i < 16 ; i++, bits >>= 3) { uint pattern= (uint) (bits & 7); if (pattern <= 3) /* Room for more data */ { if (first_found) { first_found= 0; bitmap->full_head_size= (uint)(data - bitmap->map); } } if (pattern <= min_bits) { /* There is enough space here, check if we have found better */ if ((int) pattern > (int) best_bits) { /* There is more than enough space here and it's better than what we have found so far. Remember it, as we will choose it if we don't find anything in this bitmap page. */ best_bits= pattern; best_data= data; best_pos= i; if (pattern == min_bits || bitmap->return_first_match) goto found; /* Best possible match */ } } } } if (!best_data) /* Found no place */ { if (data >= bitmap->map + bitmap->total_size) DBUG_RETURN(1); /* No space in bitmap */ DBUG_ASSERT(uint6korr(data) == 0); /* Allocate data at end of bitmap */ bitmap->used_size= (uint) (data - bitmap->map) + 6; best_data= data; best_pos= best_bits= 0; } else { /* This is not stricly needed as used_size should be alligned on 6, but for easier debugging lets try to keep it more accurate */ uint position= (uint) (best_data - bitmap->map) + 6; set_if_bigger(bitmap->used_size, position); } DBUG_ASSERT(bitmap->used_size <= bitmap->total_size); found: if (insert_order) { share->last_insert_page= ((uint) (best_data - bitmap->map)) / 6 * 16 + best_pos; share->last_insert_bitmap= bitmap->page; } fill_block(bitmap, block, best_data, best_pos, best_bits, FULL_HEAD_PAGE); DBUG_RETURN(0); }
O0
c
allocate_head: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi callq 0x44480 movl %eax, -0x24(%rbp) movq $0x0, -0x40(%rbp) movl $0xffffffff, -0x44(%rbp) # imm = 0xFFFFFFFF movl -0x48(%rbp), %eax movl %eax, -0x48(%rbp) movb $0x0, -0x49(%rbp) movb $0x1, -0x4a(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rax movl 0x428(%rax), %edx andl $0x2, %edx xorl %eax, %eax movl $0x1, %ecx cmpl $0x0, %edx cmovnel %ecx, %eax movb %al, -0x59(%rbp) jmp 0x4410c movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx movl 0x24(%rcx), %ecx addq %rcx, %rax movq %rax, -0x38(%rbp) movsbl -0x59(%rbp), %eax cmpl $0x0, %eax je 0x4417c movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq -0x58(%rbp), %rcx cmpq 0xc30(%rcx), %rax jne 0x4417c movq -0x58(%rbp), %rax movl 0xc28(%rax), %eax movl %eax, -0x60(%rbp) movl -0x60(%rbp), %eax shrl $0x4, %eax imull $0x6, %eax, %eax movl %eax, -0x64(%rbp) movl -0x60(%rbp), %eax andl $0xf, %eax movb %al, -0x49(%rbp) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movl -0x64(%rbp), %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) movb $0x0, -0x4a(%rbp) jmp 0x4417a jmp 0x441b0 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x88(%rbp) movq -0x10(%rbp), %rax movl 0x28(%rax), %eax movl $0x6, %ecx xorl %edx, %edx divl %ecx movl %eax, %ecx movq -0x88(%rbp), %rax imull $0x6, %ecx, %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x30(%rbp) jmp 0x441b2 movq -0x30(%rbp), %rax cmpq -0x38(%rbp), %rax jae 0x442cc movq -0x30(%rbp), %rdi callq 0x42250 movq %rax, -0x70(%rbp) cmpq $0x0, -0x70(%rbp) jne 0x441db cmpq $0x0, -0x40(%rbp) jne 0x441f8 movabsq $0x924924924924, %rax # imm = 0x924924924924 andq -0x70(%rbp), %rax movabsq $0x924924924924, %rcx # imm = 0x924924924924 cmpq %rcx, %rax jne 0x441fd jmp 0x442b7 movsbl -0x49(%rbp), %eax movl %eax, -0x74(%rbp) movsbl -0x49(%rbp), %eax imull $0x3, %eax, %ecx movq -0x70(%rbp), %rax movl %ecx, %ecx shrq %cl, %rax movq %rax, -0x70(%rbp) cmpl $0x10, -0x74(%rbp) jae 0x442b5 movq -0x70(%rbp), %rax andq $0x7, %rax movl %eax, -0x78(%rbp) cmpl $0x3, -0x78(%rbp) ja 0x44257 cmpb $0x0, -0x4a(%rbp) je 0x44255 movb $0x0, -0x4a(%rbp) movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx subq %rcx, %rax movl %eax, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x28(%rax) jmp 0x44257 movl -0x78(%rbp), %eax cmpl -0x24(%rbp), %eax ja 0x44299 movl -0x78(%rbp), %eax cmpl -0x44(%rbp), %eax jle 0x44297 movl -0x78(%rbp), %eax movl %eax, -0x44(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x40(%rbp) movl -0x74(%rbp), %eax movl %eax, -0x48(%rbp) movl -0x78(%rbp), %eax cmpl -0x24(%rbp), %eax je 0x44290 movq -0x10(%rbp), %rax movsbl 0x22(%rax), %eax cmpl $0x0, %eax je 0x44295 jmp 0x44368 jmp 0x44297 jmp 0x44299 jmp 0x4429b movl -0x74(%rbp), %eax addl $0x1, %eax movl %eax, -0x74(%rbp) movq -0x70(%rbp), %rax shrq $0x3, %rax movq %rax, -0x70(%rbp) jmp 0x44218 jmp 0x442b7 movq -0x30(%rbp), %rax addq $0x6, %rax movq %rax, -0x30(%rbp) movb $0x0, -0x49(%rbp) jmp 0x441b2 cmpq $0x0, -0x40(%rbp) jne 0x44333 movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx movq -0x10(%rbp), %rdx movl 0x128(%rdx), %edx addq %rdx, %rcx cmpq %rcx, %rax jb 0x442fc jmp 0x442f3 movb $0x1, -0x1(%rbp) jmp 0x443cd jmp 0x442fe jmp 0x44300 movq -0x30(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx subq %rcx, %rax movl %eax, %ecx addl $0x6, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x24(%rax) movq -0x30(%rbp), %rax movq %rax, -0x40(%rbp) movl $0x0, -0x44(%rbp) movl $0x0, -0x48(%rbp) jmp 0x44362 movq -0x40(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx subq %rcx, %rax addl $0x6, %eax movl %eax, -0x7c(%rbp) movq -0x10(%rbp), %rax movl 0x24(%rax), %eax cmpl -0x7c(%rbp), %eax jae 0x4435e movl -0x7c(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x24(%rax) jmp 0x44360 jmp 0x44362 jmp 0x44364 jmp 0x44366 jmp 0x44368 cmpb $0x0, -0x59(%rbp) je 0x443ab movq -0x40(%rbp), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx subq %rcx, %rax movl $0x6, %ecx xorl %edx, %edx divl %ecx movl %eax, %ecx shll $0x4, %ecx addl -0x48(%rbp), %ecx movq -0x58(%rbp), %rax movl %ecx, 0xc28(%rax) movq -0x10(%rbp), %rax movq 0x10(%rax), %rcx movq -0x58(%rbp), %rax movq %rcx, 0xc30(%rax) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x40(%rbp), %rdx movl -0x48(%rbp), %ecx movl -0x44(%rbp), %r8d movl $0x4, %r9d callq 0x444f0 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x90, %rsp popq %rbp retq nopl (%rax)
allocate_head: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov rdi, [rbp+var_10] mov esi, [rbp+var_14] call size_to_head_pattern mov [rbp+var_24], eax mov [rbp+var_40], 0 mov [rbp+var_44], 0FFFFFFFFh mov eax, [rbp+var_48] mov [rbp+var_48], eax mov [rbp+var_49], 0 mov [rbp+var_4A], 1 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_58], rax mov rax, [rbp+var_58] mov edx, [rax+428h] and edx, 2 xor eax, eax mov ecx, 1 cmp edx, 0 cmovnz eax, ecx mov [rbp+var_59], al jmp short $+2 loc_4410C: mov rax, [rbp+var_10] mov rax, [rax+8] mov rcx, [rbp+var_10] mov ecx, [rcx+24h] add rax, rcx mov [rbp+var_38], rax movsx eax, [rbp+var_59] cmp eax, 0 jz short loc_4417C mov rax, [rbp+var_10] mov rax, [rax+10h] mov rcx, [rbp+var_58] cmp rax, [rcx+0C30h] jnz short loc_4417C mov rax, [rbp+var_58] mov eax, [rax+0C28h] mov [rbp+var_60], eax mov eax, [rbp+var_60] shr eax, 4 imul eax, 6 mov [rbp+var_64], eax mov eax, [rbp+var_60] and eax, 0Fh mov [rbp+var_49], al mov rax, [rbp+var_10] mov rax, [rax+8] mov ecx, [rbp+var_64] add rax, rcx mov [rbp+var_30], rax mov [rbp+var_4A], 0 jmp short $+2 loc_4417A: jmp short loc_441B0 loc_4417C: mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_88], rax mov rax, [rbp+var_10] mov eax, [rax+28h] mov ecx, 6 xor edx, edx div ecx mov ecx, eax mov rax, [rbp+var_88] imul ecx, 6 mov ecx, ecx add rax, rcx mov [rbp+var_30], rax loc_441B0: jmp short $+2 loc_441B2: mov rax, [rbp+var_30] cmp rax, [rbp+var_38] jnb loc_442CC mov rdi, [rbp+var_30] call uint6korr mov [rbp+var_70], rax cmp [rbp+var_70], 0 jnz short loc_441DB cmp [rbp+var_40], 0 jnz short loc_441F8 loc_441DB: mov rax, 924924924924h and rax, [rbp+var_70] mov rcx, 924924924924h cmp rax, rcx jnz short loc_441FD loc_441F8: jmp loc_442B7 loc_441FD: movsx eax, [rbp+var_49] mov [rbp+var_74], eax movsx eax, [rbp+var_49] imul ecx, eax, 3 mov rax, [rbp+var_70] mov ecx, ecx shr rax, cl mov [rbp+var_70], rax loc_44218: cmp [rbp+var_74], 10h jnb loc_442B5 mov rax, [rbp+var_70] and rax, 7 mov [rbp+var_78], eax cmp [rbp+var_78], 3 ja short loc_44257 cmp [rbp+var_4A], 0 jz short loc_44255 mov [rbp+var_4A], 0 mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov rcx, [rcx+8] sub rax, rcx mov ecx, eax mov rax, [rbp+var_10] mov [rax+28h], ecx loc_44255: jmp short $+2 loc_44257: mov eax, [rbp+var_78] cmp eax, [rbp+var_24] ja short loc_44299 mov eax, [rbp+var_78] cmp eax, [rbp+var_44] jle short loc_44297 mov eax, [rbp+var_78] mov [rbp+var_44], eax mov rax, [rbp+var_30] mov [rbp+var_40], rax mov eax, [rbp+var_74] mov [rbp+var_48], eax mov eax, [rbp+var_78] cmp eax, [rbp+var_24] jz short loc_44290 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+22h] cmp eax, 0 jz short loc_44295 loc_44290: jmp loc_44368 loc_44295: jmp short $+2 loc_44297: jmp short $+2 loc_44299: jmp short $+2 loc_4429B: mov eax, [rbp+var_74] add eax, 1 mov [rbp+var_74], eax mov rax, [rbp+var_70] shr rax, 3 mov [rbp+var_70], rax jmp loc_44218 loc_442B5: jmp short $+2 loc_442B7: mov rax, [rbp+var_30] add rax, 6 mov [rbp+var_30], rax mov [rbp+var_49], 0 jmp loc_441B2 loc_442CC: cmp [rbp+var_40], 0 jnz short loc_44333 mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov rcx, [rcx+8] mov rdx, [rbp+var_10] mov edx, [rdx+128h] add rcx, rdx cmp rax, rcx jb short loc_442FC jmp short $+2 loc_442F3: mov [rbp+var_1], 1 jmp loc_443CD loc_442FC: jmp short $+2 loc_442FE: jmp short $+2 loc_44300: mov rax, [rbp+var_30] mov rcx, [rbp+var_10] mov rcx, [rcx+8] sub rax, rcx mov ecx, eax add ecx, 6 mov rax, [rbp+var_10] mov [rax+24h], ecx mov rax, [rbp+var_30] mov [rbp+var_40], rax mov [rbp+var_44], 0 mov [rbp+var_48], 0 jmp short loc_44362 loc_44333: mov rax, [rbp+var_40] mov rcx, [rbp+var_10] mov rcx, [rcx+8] sub rax, rcx add eax, 6 mov [rbp+var_7C], eax mov rax, [rbp+var_10] mov eax, [rax+24h] cmp eax, [rbp+var_7C] jnb short loc_4435E mov ecx, [rbp+var_7C] mov rax, [rbp+var_10] mov [rax+24h], ecx loc_4435E: jmp short $+2 loc_44360: jmp short $+2 loc_44362: jmp short $+2 loc_44364: jmp short $+2 loc_44366: jmp short $+2 loc_44368: cmp [rbp+var_59], 0 jz short loc_443AB mov rax, [rbp+var_40] mov rcx, [rbp+var_10] mov rcx, [rcx+8] sub rax, rcx mov ecx, 6 xor edx, edx div ecx mov ecx, eax shl ecx, 4 add ecx, [rbp+var_48] mov rax, [rbp+var_58] mov [rax+0C28h], ecx mov rax, [rbp+var_10] mov rcx, [rax+10h] mov rax, [rbp+var_58] mov [rax+0C30h], rcx loc_443AB: mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rdx, [rbp+var_40] mov ecx, [rbp+var_48] mov r8d, [rbp+var_44] mov r9d, 4 call fill_block mov [rbp+var_1], 0 loc_443CD: mov al, [rbp+var_1] add rsp, 90h pop rbp retn
char allocate_head(long long *a1, unsigned int a2, long long a3) { unsigned int v4; // [rsp+14h] [rbp-7Ch] unsigned int v5; // [rsp+18h] [rbp-78h] unsigned int v6; // [rsp+1Ch] [rbp-74h] unsigned long long v7; // [rsp+20h] [rbp-70h] unsigned long long v8; // [rsp+20h] [rbp-70h] unsigned int v9; // [rsp+30h] [rbp-60h] bool v10; // [rsp+37h] [rbp-59h] long long v11; // [rsp+38h] [rbp-58h] char v12; // [rsp+46h] [rbp-4Ah] char v13; // [rsp+47h] [rbp-49h] unsigned int v14; // [rsp+48h] [rbp-48h] int v15; // [rsp+4Ch] [rbp-44h] unsigned int *v16; // [rsp+50h] [rbp-40h] unsigned long long v17; // [rsp+58h] [rbp-38h] unsigned int *v18; // [rsp+60h] [rbp-30h] unsigned int v19; // [rsp+6Ch] [rbp-24h] v19 = size_to_head_pattern(a1, a2); v16 = 0LL; v15 = -1; v13 = 0; v12 = 1; v11 = *a1; v10 = (*(_DWORD *)(*a1 + 1064) & 2) != 0; v17 = *((unsigned int *)a1 + 9) + a1[1]; if ( (*(_DWORD *)(*a1 + 1064) & 2) != 0 && a1[2] == *(_QWORD *)(v11 + 3120) ) { v9 = *(_DWORD *)(v11 + 3112); v13 = v9 & 0xF; v18 = (unsigned int *)(6 * (v9 >> 4) + a1[1]); v12 = 0; } else { v18 = (unsigned int *)(6 * (*((_DWORD *)a1 + 10) / 6u) + a1[1]); } while ( (unsigned long long)v18 < v17 ) { v7 = uint6korr(v18); if ( (v7 || !v16) && (v7 & 0x924924924924LL) != 0x924924924924LL ) { v6 = v13; v8 = v7 >> (3 * v13); while ( v6 < 0x10 ) { v5 = v8 & 7; if ( v5 <= 3 && v12 ) { v12 = 0; *((_DWORD *)a1 + 10) = (_DWORD)v18 - a1[1]; } if ( v5 <= v19 && (int)v5 > v15 ) { v15 = v8 & 7; v16 = v18; v14 = v6; if ( v5 == v19 || *((_BYTE *)a1 + 34) ) goto LABEL_28; } ++v6; v8 >>= 3; } } v18 = (unsigned int *)((char *)v18 + 6); v13 = 0; } if ( v16 ) { v4 = (_DWORD)v16 - a1[1] + 6; if ( *((_DWORD *)a1 + 9) < v4 ) *((_DWORD *)a1 + 9) = v4; } else { if ( (unsigned long long)v18 >= (unsigned long long)*((unsigned int *)a1 + 74) + a1[1] ) return 1; *((_DWORD *)a1 + 9) = (_DWORD)v18 - a1[1] + 6; v16 = v18; v15 = 0; v14 = 0; } LABEL_28: if ( v10 ) { *(_DWORD *)(v11 + 3112) = v14 + 16 * (((unsigned int)v16 - (unsigned int)a1[1]) / 6); *(_QWORD *)(v11 + 3120) = a1[2]; } fill_block(a1, a3, v16, v14, (unsigned int)v15, 4LL); return 0; }
allocate_head: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV qword ptr [RBP + -0x20],RDX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] CALL 0x00144480 MOV dword ptr [RBP + -0x24],EAX MOV qword ptr [RBP + -0x40],0x0 MOV dword ptr [RBP + -0x44],0xffffffff MOV EAX,dword ptr [RBP + -0x48] MOV dword ptr [RBP + -0x48],EAX MOV byte ptr [RBP + -0x49],0x0 MOV byte ptr [RBP + -0x4a],0x1 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x58] MOV EDX,dword ptr [RAX + 0x428] AND EDX,0x2 XOR EAX,EAX MOV ECX,0x1 CMP EDX,0x0 CMOVNZ EAX,ECX MOV byte ptr [RBP + -0x59],AL JMP 0x0014410c LAB_0014410c: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RCX + 0x24] ADD RAX,RCX MOV qword ptr [RBP + -0x38],RAX MOVSX EAX,byte ptr [RBP + -0x59] CMP EAX,0x0 JZ 0x0014417c MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RBP + -0x58] CMP RAX,qword ptr [RCX + 0xc30] JNZ 0x0014417c MOV RAX,qword ptr [RBP + -0x58] MOV EAX,dword ptr [RAX + 0xc28] MOV dword ptr [RBP + -0x60],EAX MOV EAX,dword ptr [RBP + -0x60] SHR EAX,0x4 IMUL EAX,EAX,0x6 MOV dword ptr [RBP + -0x64],EAX MOV EAX,dword ptr [RBP + -0x60] AND EAX,0xf MOV byte ptr [RBP + -0x49],AL MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,dword ptr [RBP + -0x64] ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV byte ptr [RBP + -0x4a],0x0 JMP 0x0014417a LAB_0014417a: JMP 0x001441b0 LAB_0014417c: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x88],RAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x28] MOV ECX,0x6 XOR EDX,EDX DIV ECX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x88] IMUL ECX,ECX,0x6 MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX LAB_001441b0: JMP 0x001441b2 LAB_001441b2: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x38] JNC 0x001442cc MOV RDI,qword ptr [RBP + -0x30] CALL 0x00142250 MOV qword ptr [RBP + -0x70],RAX CMP qword ptr [RBP + -0x70],0x0 JNZ 0x001441db CMP qword ptr [RBP + -0x40],0x0 JNZ 0x001441f8 LAB_001441db: MOV RAX,0x924924924924 AND RAX,qword ptr [RBP + -0x70] MOV RCX,0x924924924924 CMP RAX,RCX JNZ 0x001441fd LAB_001441f8: JMP 0x001442b7 LAB_001441fd: MOVSX EAX,byte ptr [RBP + -0x49] MOV dword ptr [RBP + -0x74],EAX MOVSX EAX,byte ptr [RBP + -0x49] IMUL ECX,EAX,0x3 MOV RAX,qword ptr [RBP + -0x70] MOV ECX,ECX SHR RAX,CL MOV qword ptr [RBP + -0x70],RAX LAB_00144218: CMP dword ptr [RBP + -0x74],0x10 JNC 0x001442b5 MOV RAX,qword ptr [RBP + -0x70] AND RAX,0x7 MOV dword ptr [RBP + -0x78],EAX CMP dword ptr [RBP + -0x78],0x3 JA 0x00144257 CMP byte ptr [RBP + -0x4a],0x0 JZ 0x00144255 MOV byte ptr [RBP + -0x4a],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] SUB RAX,RCX MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],ECX LAB_00144255: JMP 0x00144257 LAB_00144257: MOV EAX,dword ptr [RBP + -0x78] CMP EAX,dword ptr [RBP + -0x24] JA 0x00144299 MOV EAX,dword ptr [RBP + -0x78] CMP EAX,dword ptr [RBP + -0x44] JLE 0x00144297 MOV EAX,dword ptr [RBP + -0x78] MOV dword ptr [RBP + -0x44],EAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x40],RAX MOV EAX,dword ptr [RBP + -0x74] MOV dword ptr [RBP + -0x48],EAX MOV EAX,dword ptr [RBP + -0x78] CMP EAX,dword ptr [RBP + -0x24] JZ 0x00144290 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x22] CMP EAX,0x0 JZ 0x00144295 LAB_00144290: JMP 0x00144368 LAB_00144295: JMP 0x00144297 LAB_00144297: JMP 0x00144299 LAB_00144299: JMP 0x0014429b LAB_0014429b: MOV EAX,dword ptr [RBP + -0x74] ADD EAX,0x1 MOV dword ptr [RBP + -0x74],EAX MOV RAX,qword ptr [RBP + -0x70] SHR RAX,0x3 MOV qword ptr [RBP + -0x70],RAX JMP 0x00144218 LAB_001442b5: JMP 0x001442b7 LAB_001442b7: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x6 MOV qword ptr [RBP + -0x30],RAX MOV byte ptr [RBP + -0x49],0x0 JMP 0x001441b2 LAB_001442cc: CMP qword ptr [RBP + -0x40],0x0 JNZ 0x00144333 MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] MOV RDX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RDX + 0x128] ADD RCX,RDX CMP RAX,RCX JC 0x001442fc JMP 0x001442f3 LAB_001442f3: MOV byte ptr [RBP + -0x1],0x1 JMP 0x001443cd LAB_001442fc: JMP 0x001442fe LAB_001442fe: JMP 0x00144300 LAB_00144300: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] SUB RAX,RCX MOV ECX,EAX ADD ECX,0x6 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x24],ECX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0x44],0x0 MOV dword ptr [RBP + -0x48],0x0 JMP 0x00144362 LAB_00144333: MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] SUB RAX,RCX ADD EAX,0x6 MOV dword ptr [RBP + -0x7c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x24] CMP EAX,dword ptr [RBP + -0x7c] JNC 0x0014435e MOV ECX,dword ptr [RBP + -0x7c] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x24],ECX LAB_0014435e: JMP 0x00144360 LAB_00144360: JMP 0x00144362 LAB_00144362: JMP 0x00144364 LAB_00144364: JMP 0x00144366 LAB_00144366: JMP 0x00144368 LAB_00144368: CMP byte ptr [RBP + -0x59],0x0 JZ 0x001443ab MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] SUB RAX,RCX MOV ECX,0x6 XOR EDX,EDX DIV ECX MOV ECX,EAX SHL ECX,0x4 ADD ECX,dword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x58] MOV dword ptr [RAX + 0xc28],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0xc30],RCX LAB_001443ab: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RBP + -0x48] MOV R8D,dword ptr [RBP + -0x44] MOV R9D,0x4 CALL 0x001444f0 MOV byte ptr [RBP + -0x1],0x0 LAB_001443cd: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x90 POP RBP RET
int1 allocate_head(long *param_1,int4 param_2,int8 param_3) { long lVar1; long lVar2; bool bVar3; uint uVar4; uint uVar5; uint uVar6; bool bVar7; uint local_7c; ulong local_78; byte local_51; uint local_50; uint local_4c; ulong local_48; ulong local_38; uVar4 = size_to_head_pattern(param_1,param_2); local_48 = 0; local_4c = 0xffffffff; local_51 = 0; bVar3 = true; lVar1 = *param_1; bVar7 = (*(uint *)(lVar1 + 0x428) & 2) != 0; lVar2 = param_1[1]; uVar6 = *(uint *)((long)param_1 + 0x24); if ((bVar7) && (param_1[2] == *(long *)(lVar1 + 0xc30))) { local_51 = (byte)*(uint *)(lVar1 + 0xc28) & 0xf; local_38 = param_1[1] + (ulong)((*(uint *)(lVar1 + 0xc28) >> 4) * 6); bVar3 = false; } else { local_38 = param_1[1] + (ulong)((*(uint *)(param_1 + 5) / 6) * 6); } for (; local_38 < lVar2 + (ulong)uVar6; local_38 = local_38 + 6) { local_78 = uint6korr(local_38); if (((local_78 != 0) || (local_48 == 0)) && ((local_78 & 0x924924924924) != 0x924924924924)) { local_78 = local_78 >> local_51 * '\x03'; for (local_7c = (uint)(char)local_51; local_7c < 0x10; local_7c = local_7c + 1) { uVar5 = (uint)local_78 & 7; if ((uVar5 < 4) && (bVar3)) { bVar3 = false; *(int *)(param_1 + 5) = (int)local_38 - (int)param_1[1]; } if ((uVar5 <= uVar4) && ((int)local_4c < (int)uVar5)) { local_48 = local_38; local_50 = local_7c; local_4c = uVar5; if ((uVar5 == uVar4) || (*(char *)((long)param_1 + 0x22) != '\0')) goto LAB_00144368; } local_78 = local_78 >> 3; } } local_51 = 0; } if (local_48 == 0) { if (param_1[1] + (ulong)*(uint *)(param_1 + 0x25) <= local_38) { return 1; } *(int *)((long)param_1 + 0x24) = ((int)local_38 - (int)param_1[1]) + 6; local_48 = local_38; local_4c = 0; local_50 = 0; } else { uVar6 = ((int)local_48 - (int)param_1[1]) + 6; if (*(uint *)((long)param_1 + 0x24) < uVar6) { *(uint *)((long)param_1 + 0x24) = uVar6; } } LAB_00144368: if (bVar7) { *(uint *)(lVar1 + 0xc28) = (int)((local_48 - param_1[1] & 0xffffffff) / 6) * 0x10 + local_50; *(long *)(lVar1 + 0xc30) = param_1[2]; } fill_block(param_1,param_3,local_48,local_50,local_4c,4); return 0; }
31,595
llama_kv_cache_seq_keep(llama_kv_cache&, int)
monkey531[P]llama/src/llama-kv-cache.cpp
void llama_kv_cache_seq_keep(struct llama_kv_cache & cache, llama_seq_id seq_id) { uint32_t new_head = cache.size; for (uint32_t i = 0; i < cache.size; ++i) { if (cache.recurrent && (llama_seq_id) i != seq_id) { cache.cells[i].tail = -1; } if (!cache.cells[i].has_seq_id(seq_id)) { if (cache.cells[i].pos >= 0) cache.used--; cache.cells[i].pos = -1; cache.cells[i].src = -1; cache.cells[i].seq_id.clear(); if (new_head == cache.size) new_head = i; } else { cache.cells[i].seq_id.clear(); cache.cells[i].seq_id.insert(seq_id); } } // If we freed up a slot, set head to it so searching can start there. if (new_head != cache.size && new_head < cache.head) cache.head = new_head; }
O3
cpp
llama_kv_cache_seq_keep(llama_kv_cache&, int): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %esi, 0x4(%rsp) movl 0xc(%rdi), %ebp testl %ebp, %ebp je 0xabcdd movq %rdi, %rbx xorl %r15d, %r15d movl $0xffffffff, %r12d # imm = 0xFFFFFFFF leaq 0x4(%rsp), %r14 movq 0x20(%rbx), %rcx cmpb $0x1, 0x2(%rbx) jne 0xabc38 movl 0x4(%rsp), %eax cmpq %rax, %r15 je 0xabc38 movq %r15, %rax shlq $0x6, %rax movl $0xffffffff, 0xc(%rcx,%rax) # imm = 0xFFFFFFFF movq %r15, %r13 shlq $0x6, %r13 leaq (%rcx,%r13), %rdi movq 0x20(%rcx,%r13), %rax testq %rax, %rax je 0xabc7e leaq (%rcx,%r13), %rsi addq $0x18, %rsi movl 0x4(%rsp), %ecx movq %rsi, %rdx xorl %r8d, %r8d cmpl %ecx, 0x20(%rax) setl %r8b cmovgeq %rax, %rdx movq 0x10(%rax,%r8,8), %rax testq %rax, %rax jne 0xabc5c cmpq %rsi, %rdx je 0xabc7e cmpl 0x20(%rdx), %ecx jge 0xabcaf cmpl $0x0, (%rdi) js 0xabc86 decl 0x10(%rbx) movl %r12d, (%rdi) movl %r12d, 0x8(%rdi) addq $0x10, %rdi callq 0x68cc0 movl 0xc(%rbx), %eax cmpl %eax, %ebp cmovel %r15d, %ebp incq %r15 movl %eax, %ecx cmpq %rcx, %r15 jb 0xabc16 jmp 0xabcd1 addq $0x10, %rdi callq 0x68cc0 movq 0x20(%rbx), %rax leaq (%rax,%r13), %rdi addq $0x10, %rdi movq %r14, %rsi callq 0x68370 movl 0xc(%rbx), %eax jmp 0xabc9f cmpl %eax, %ebp je 0xabcdd cmpl 0x8(%rbx), %ebp jae 0xabcdd movl %ebp, 0x8(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z23llama_kv_cache_seq_keepR14llama_kv_cachei: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov [rsp+38h+var_34], esi mov ebp, [rdi+0Ch] test ebp, ebp jz loc_ABCDD mov rbx, rdi xor r15d, r15d mov r12d, 0FFFFFFFFh lea r14, [rsp+38h+var_34] loc_ABC16: mov rcx, [rbx+20h] cmp byte ptr [rbx+2], 1 jnz short loc_ABC38 mov eax, [rsp+38h+var_34] cmp r15, rax jz short loc_ABC38 mov rax, r15 shl rax, 6 mov dword ptr [rcx+rax+0Ch], 0FFFFFFFFh loc_ABC38: mov r13, r15 shl r13, 6 lea rdi, [rcx+r13] mov rax, [rcx+r13+20h] test rax, rax jz short loc_ABC7E lea rsi, [rcx+r13] add rsi, 18h mov ecx, [rsp+38h+var_34] mov rdx, rsi loc_ABC5C: xor r8d, r8d cmp [rax+20h], ecx setl r8b cmovge rdx, rax mov rax, [rax+r8*8+10h] test rax, rax jnz short loc_ABC5C cmp rdx, rsi jz short loc_ABC7E cmp ecx, [rdx+20h] jge short loc_ABCAF loc_ABC7E: cmp dword ptr [rdi], 0 js short loc_ABC86 dec dword ptr [rbx+10h] loc_ABC86: mov [rdi], r12d mov [rdi+8], r12d add rdi, 10h call __ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE5clearEv; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear(void) mov eax, [rbx+0Ch] cmp ebp, eax cmovz ebp, r15d loc_ABC9F: inc r15 mov ecx, eax cmp r15, rcx jb loc_ABC16 jmp short loc_ABCD1 loc_ABCAF: add rdi, 10h call __ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE5clearEv; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear(void) mov rax, [rbx+20h] lea rdi, [rax+r13] add rdi, 10h mov rsi, r14 call __ZNSt8_Rb_treeIiiSt9_IdentityIiESt4lessIiESaIiEE16_M_insert_uniqueIRKiEESt4pairISt17_Rb_tree_iteratorIiEbEOT_; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_insert_unique<int const&>(int const&) mov eax, [rbx+0Ch] jmp short loc_ABC9F loc_ABCD1: cmp ebp, eax jz short loc_ABCDD cmp ebp, [rbx+8] jnb short loc_ABCDD mov [rbx+8], ebp loc_ABCDD: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long llama_kv_cache_seq_keep(long long a1, int a2) { long long result; // rax unsigned int v3; // ebp unsigned long long v5; // r15 long long v6; // rcx unsigned long long v7; // r13 long long v8; // rdi long long v9; // rax long long v10; // rdx _DWORD v11[13]; // [rsp+0h] [rbp-34h] BYREF v11[0] = a2; v3 = *(_DWORD *)(a1 + 12); if ( v3 ) { v5 = 0LL; do { v6 = *(_QWORD *)(a1 + 32); if ( *(_BYTE *)(a1 + 2) == 1 && v5 != v11[0] ) *(_DWORD *)(v6 + (v5 << 6) + 12) = -1; v7 = v5 << 6; v8 = v6 + (v5 << 6); v9 = *(_QWORD *)(v8 + 32); if ( !v9 ) goto LABEL_13; v10 = v6 + v7 + 24; do { if ( *(_DWORD *)(v9 + 32) >= v11[0] ) v10 = v9; v9 = *(_QWORD *)(v9 + 8LL * (*(_DWORD *)(v9 + 32) < v11[0]) + 16); } while ( v9 ); if ( v10 != v6 + v7 + 24 && v11[0] >= *(_DWORD *)(v10 + 32) ) { std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear(v8 + 16); std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::_M_insert_unique<int const&>( *(_QWORD *)(a1 + 32) + v7 + 16, v11); result = *(unsigned int *)(a1 + 12); } else { LABEL_13: if ( *(int *)v8 >= 0 ) --*(_DWORD *)(a1 + 16); *(_DWORD *)v8 = -1; *(_DWORD *)(v8 + 8) = -1; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear(v8 + 16); result = *(unsigned int *)(a1 + 12); if ( v3 == (_DWORD)result ) v3 = v5; } ++v5; } while ( v5 < (unsigned int)result ); if ( v3 != (_DWORD)result && v3 < *(_DWORD *)(a1 + 8) ) *(_DWORD *)(a1 + 8) = v3; } return result; }
llama_kv_cache_seq_keep: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV dword ptr [RSP + 0x4],ESI MOV EBP,dword ptr [RDI + 0xc] TEST EBP,EBP JZ 0x001abcdd MOV RBX,RDI XOR R15D,R15D MOV R12D,0xffffffff LEA R14,[RSP + 0x4] LAB_001abc16: MOV RCX,qword ptr [RBX + 0x20] CMP byte ptr [RBX + 0x2],0x1 JNZ 0x001abc38 MOV EAX,dword ptr [RSP + 0x4] CMP R15,RAX JZ 0x001abc38 MOV RAX,R15 SHL RAX,0x6 MOV dword ptr [RCX + RAX*0x1 + 0xc],0xffffffff LAB_001abc38: MOV R13,R15 SHL R13,0x6 LEA RDI,[RCX + R13*0x1] MOV RAX,qword ptr [RCX + R13*0x1 + 0x20] TEST RAX,RAX JZ 0x001abc7e LEA RSI,[RCX + R13*0x1] ADD RSI,0x18 MOV ECX,dword ptr [RSP + 0x4] MOV RDX,RSI LAB_001abc5c: XOR R8D,R8D CMP dword ptr [RAX + 0x20],ECX SETL R8B CMOVGE RDX,RAX MOV RAX,qword ptr [RAX + R8*0x8 + 0x10] TEST RAX,RAX JNZ 0x001abc5c CMP RDX,RSI JZ 0x001abc7e CMP ECX,dword ptr [RDX + 0x20] JGE 0x001abcaf LAB_001abc7e: CMP dword ptr [RDI],0x0 JS 0x001abc86 DEC dword ptr [RBX + 0x10] LAB_001abc86: MOV dword ptr [RDI],R12D MOV dword ptr [RDI + 0x8],R12D ADD RDI,0x10 CALL 0x00168cc0 MOV EAX,dword ptr [RBX + 0xc] CMP EBP,EAX CMOVZ EBP,R15D LAB_001abc9f: INC R15 MOV ECX,EAX CMP R15,RCX JC 0x001abc16 JMP 0x001abcd1 LAB_001abcaf: ADD RDI,0x10 CALL 0x00168cc0 MOV RAX,qword ptr [RBX + 0x20] LEA RDI,[RAX + R13*0x1] ADD RDI,0x10 MOV RSI,R14 CALL 0x00168370 MOV EAX,dword ptr [RBX + 0xc] JMP 0x001abc9f LAB_001abcd1: CMP EBP,EAX JZ 0x001abcdd CMP EBP,dword ptr [RBX + 0x8] JNC 0x001abcdd MOV dword ptr [RBX + 0x8],EBP LAB_001abcdd: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* llama_kv_cache_seq_keep(llama_kv_cache&, int) */ void llama_kv_cache_seq_keep(llama_kv_cache *param_1,int param_2) { int *piVar1; uint uVar2; long lVar3; long lVar4; uint uVar5; long lVar6; long lVar7; ulong uVar8; uint local_34; uVar5 = *(uint *)(param_1 + 0xc); if (uVar5 != 0) { uVar8 = 0; local_34 = param_2; do { lVar4 = *(long *)(param_1 + 0x20); if ((param_1[2] == (llama_kv_cache)0x1) && (uVar8 != local_34)) { *(int4 *)(lVar4 + 0xc + uVar8 * 0x40) = 0xffffffff; } lVar7 = uVar8 * 0x40; piVar1 = (int *)(lVar4 + lVar7); lVar3 = *(long *)(lVar4 + 0x20 + lVar7); if (lVar3 == 0) { LAB_001abc7e: if (-1 < *piVar1) { *(int *)(param_1 + 0x10) = *(int *)(param_1 + 0x10) + -1; } *piVar1 = -1; piVar1[2] = -1; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear ((_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> *) (piVar1 + 4)); uVar2 = *(uint *)(param_1 + 0xc); if (uVar5 == uVar2) { uVar5 = (uint)uVar8; } } else { lVar6 = lVar4 + lVar7 + 0x18; lVar4 = lVar6; do { if ((int)local_34 <= *(int *)(lVar3 + 0x20)) { lVar4 = lVar3; } lVar3 = *(long *)(lVar3 + 0x10 + (ulong)(*(int *)(lVar3 + 0x20) < (int)local_34) * 8); } while (lVar3 != 0); if ((lVar4 == lVar6) || ((int)local_34 < *(int *)(lVar4 + 0x20))) goto LAB_001abc7e; std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>::clear ((_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> *) (piVar1 + 4)); std::_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>>:: _M_insert_unique<int_const&> ((_Rb_tree<int,int,std::_Identity<int>,std::less<int>,std::allocator<int>> *) (*(long *)(param_1 + 0x20) + lVar7 + 0x10),(int *)&local_34); uVar2 = *(uint *)(param_1 + 0xc); } uVar8 = uVar8 + 1; } while (uVar8 < uVar2); if ((uVar5 != uVar2) && (uVar5 < *(uint *)(param_1 + 8))) { *(uint *)(param_1 + 8) = uVar5; } } return; }
31,596
ma_check_index_cond
eloqsql/storage/maria/ma_key.c
check_result_t ma_check_index_cond(register MARIA_HA *info, uint keynr, uchar *record) { check_result_t res= CHECK_POS; if (info->index_cond_func) { if (_ma_put_key_in_record(info, keynr, FALSE, record)) { /* Impossible case; Can only happen if bug in code */ _ma_print_error(info, HA_ERR_CRASHED, 0); info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_CRASHED; res= CHECK_ERROR; } else if ((res= info->index_cond_func(info->index_cond_func_arg)) == CHECK_OUT_OF_RANGE) { /* We got beyond the end of scanned range */ info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */ my_errno= HA_ERR_END_OF_FILE; } } return res; }
O3
c
ma_check_index_cond: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax cmpq $0x0, 0x6f8(%rdi) je 0x40679 movq %rdx, %rcx movq %rdi, %rbx xorl %edx, %edx callq 0x40239 testl %eax, %eax je 0x40681 movl $0x7e, %r15d movq %rbx, %rdi movl $0x7e, %esi xorl %edx, %edx callq 0x39af6 movl $0xffffffff, %r14d # imm = 0xFFFFFFFF jmp 0x406a2 movl $0x1, %r14d jmp 0x406b5 movq 0x700(%rbx), %rdi callq *0x6f8(%rbx) movl %eax, %r14d cmpl $0x2, %eax jne 0x406b5 movl $0x2, %r14d movl $0x89, %r15d movq $-0x1, 0x98(%rbx) callq 0xa7c22 movl %r15d, (%rax) movl %r14d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
ma_check_index_cond: push rbp mov rbp, rsp push r15 push r14 push rbx push rax cmp qword ptr [rdi+6F8h], 0 jz short loc_40679 mov rcx, rdx mov rbx, rdi xor edx, edx call _ma_put_key_in_record test eax, eax jz short loc_40681 mov r15d, 7Eh ; '~' mov rdi, rbx mov esi, 7Eh ; '~' xor edx, edx call _ma_print_error mov r14d, 0FFFFFFFFh jmp short loc_406A2 loc_40679: mov r14d, 1 jmp short loc_406B5 loc_40681: mov rdi, [rbx+700h] call qword ptr [rbx+6F8h] mov r14d, eax cmp eax, 2 jnz short loc_406B5 mov r14d, 2 mov r15d, 89h loc_406A2: mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh call _my_thread_var mov [rax], r15d loc_406B5: mov eax, r14d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long ma_check_index_cond(long long a1, const char *a2, long long a3) { long long v3; // rbx long long v4; // rcx long long v5; // r8 int v6; // r9d int v7; // r15d unsigned int v8; // r14d if ( *(_QWORD *)(a1 + 1784) ) { v3 = a1; if ( (unsigned int)ma_put_key_in_record(a1, (unsigned int)a2, 0, a3) ) { v7 = 126; a2 = (_BYTE *)(&dword_7C + 2); ma_print_error((_DWORD *)a1, 126, 0, v4, v5, v6); v8 = -1; LABEL_7: *(_QWORD *)(v3 + 152) = -1LL; *(_DWORD *)my_thread_var(a1, a2) = v7; return v8; } a1 = *(_QWORD *)(a1 + 1792); v8 = (*(long long ( **)(long long))(v3 + 1784))(a1); if ( v8 == 2 ) { v8 = 2; v7 = 137; goto LABEL_7; } } else { return 1; } return v8; }
ma_check_index_cond: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX CMP qword ptr [RDI + 0x6f8],0x0 JZ 0x00140679 MOV RCX,RDX MOV RBX,RDI XOR EDX,EDX CALL 0x00140239 TEST EAX,EAX JZ 0x00140681 MOV R15D,0x7e MOV RDI,RBX MOV ESI,0x7e XOR EDX,EDX CALL 0x00139af6 MOV R14D,0xffffffff JMP 0x001406a2 LAB_00140679: MOV R14D,0x1 JMP 0x001406b5 LAB_00140681: MOV RDI,qword ptr [RBX + 0x700] CALL qword ptr [RBX + 0x6f8] MOV R14D,EAX CMP EAX,0x2 JNZ 0x001406b5 MOV R14D,0x2 MOV R15D,0x89 LAB_001406a2: MOV qword ptr [RBX + 0x98],-0x1 CALL 0x001a7c22 MOV dword ptr [RAX],R15D LAB_001406b5: MOV EAX,R14D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int ma_check_index_cond(long param_1,int8 param_2,int8 param_3) { int iVar1; int4 *puVar2; int4 uVar3; if (*(long *)(param_1 + 0x6f8) == 0) { iVar1 = 1; } else { iVar1 = _ma_put_key_in_record(param_1,param_2,0,param_3); if (iVar1 == 0) { iVar1 = (**(code **)(param_1 + 0x6f8))(*(int8 *)(param_1 + 0x700)); if (iVar1 != 2) { return iVar1; } iVar1 = 2; uVar3 = 0x89; } else { uVar3 = 0x7e; _ma_print_error(param_1,0x7e,0); iVar1 = -1; } *(int8 *)(param_1 + 0x98) = 0xffffffffffffffff; puVar2 = (int4 *)_my_thread_var(); *puVar2 = uVar3; } return iVar1; }
31,597
uf_space_prespace
eloqsql/storage/maria/ma_packrec.c
static void uf_space_prespace(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if (get_bit(bit_buff)) bfill(to, (end-to), ' '); else { if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } bfill(to, spaces, ' '); if (to+spaces != end) decode_bytes(rec,bit_buff,to+spaces,end); } }
O0
c
uf_space_prespace: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0x3a5c7 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0x3a5eb jmp 0x3a609 movq -0x10(%rbp), %rdi callq 0x39690 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0x3a609 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rdx movq -0x18(%rbp), %rax subq %rax, %rdx movl $0x20, %esi callq 0x2a2c0 jmp 0x3a6c1 movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x24(%rcx), %eax jb 0x3a64c movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %ecx movl %ecx, %edx leaq 0x282c9c(%rip), %rcx # 0x2bd2e0 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0x3a65f movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x24(%rax), %esi callq 0x38e40 movl %eax, -0x28(%rbp) movl -0x28(%rbp), %ecx movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax jbe 0x3a681 movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0x3a6c1 movq -0x18(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x2a2c0 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0x3a6bf movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movl -0x24(%rbp), %eax addq %rax, %rdx movq -0x20(%rbp), %rcx callq 0x399d0 jmp 0x3a6c1 addq $0x30, %rsp popq %rbp retq nopw (%rax,%rax)
uf_space_prespace: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_3A5C7 mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_3A5EB jmp short loc_3A609 loc_3A5C7: mov rdi, [rbp+var_10] call fill_buffer mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz short loc_3A609 loc_3A5EB: mov rdi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_18] sub rdx, rax mov esi, 20h ; ' ' call _memset jmp loc_3A6C1 loc_3A609: mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+24h] jb short loc_3A64C mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+24h] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+24h] mov edx, ecx lea rcx, mask and eax, [rcx+rdx*4] mov [rbp+var_28], eax jmp short loc_3A65F loc_3A64C: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+24h] call fill_and_get_bits mov [rbp+var_28], eax loc_3A65F: mov ecx, [rbp+var_28] mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx cmp rax, [rbp+var_20] jbe short loc_3A681 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_3A6C1 loc_3A681: mov rdi, [rbp+var_18] mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_3A6BF mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov eax, [rbp+var_24] add rdx, rax mov rcx, [rbp+var_20] call decode_bytes loc_3A6BF: jmp short $+2 loc_3A6C1: add rsp, 30h pop rbp retn
long long uf_space_prespace(long long a1, int *a2, long long a3, _BYTE *a4) { int v4; // eax int v5; // ecx long long result; // rax unsigned int v7; // eax int v8; // ecx unsigned int bits; // [rsp+8h] [rbp-28h] if ( a2[1] ) { v4 = *a2; v5 = a2[1] - 1; a2[1] = v5; if ( ((1 << v5) & v4) == 0 ) goto LABEL_6; return memset(a3, 32LL, &a4[-a3]); } fill_buffer((long long)a2); a2[1] = 31; if ( *a2 < 0 ) return memset(a3, 32LL, &a4[-a3]); LABEL_6: if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 36) ) { bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36)); } else { v7 = *a2; v8 = a2[1] - *(_DWORD *)(a1 + 36); a2[1] = v8; bits = mask[*(unsigned int *)(a1 + 36)] & (v7 >> v8); } if ( (unsigned long long)bits + a3 <= (unsigned long long)a4 ) { memset(a3, 32LL, bits); result = bits + a3; if ( (_BYTE *)result != a4 ) return decode_bytes(a1, (long long)a2, (_BYTE *)(bits + a3), a4); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_space_prespace: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x0013a5c7 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x0013a5eb JMP 0x0013a609 LAB_0013a5c7: MOV RDI,qword ptr [RBP + -0x10] CALL 0x00139690 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x0013a609 LAB_0013a5eb: MOV RDI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] SUB RDX,RAX MOV ESI,0x20 CALL 0x0012a2c0 JMP 0x0013a6c1 LAB_0013a609: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x24] JC 0x0013a64c MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x24] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x24] MOV EDX,ECX LEA RCX,[0x3bd2e0] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x0013a65f LAB_0013a64c: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x24] CALL 0x00138e40 MOV dword ptr [RBP + -0x28],EAX LAB_0013a65f: MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JBE 0x0013a681 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x0013a6c1 LAB_0013a681: MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x0012a2c0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x0013a6bf MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x20] CALL 0x001399d0 LAB_0013a6bf: JMP 0x0013a6c1 LAB_0013a6c1: ADD RSP,0x30 POP RBP RET
void uf_space_prespace(long param_1,uint *param_2,void *param_3,ulong param_4) { uint uVar1; uint local_30; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { if (param_2[1] < *(uint *)(param_1 + 0x24)) { local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24)); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x24); param_2[1] = uVar1; local_30 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4); } if (param_4 < (long)param_3 + (ulong)local_30) { param_2[10] = 1; } else { memset(param_3,0x20,(ulong)local_30); if ((long)param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4); } } } else { memset(param_3,0x20,param_4 - (long)param_3); } return; }
31,598
ggml_vec_dot_q5_0_q8_0
ngxson[P]ggml-easy/ggml/src/ggml-cpu/ggml-cpu-quants.c
void ggml_vec_dot_q5_0_q8_0(int n, float * GGML_RESTRICT s, size_t bs, const void * GGML_RESTRICT vx, size_t bx, const void * GGML_RESTRICT vy, size_t by, int nrc) { const int qk = QK8_0; const int nb = n / qk; int ib = 0; float sumf = 0; assert(n % qk == 0); assert(qk == QK5_0); assert(nrc == 1); UNUSED(nrc); UNUSED(bx); UNUSED(by); UNUSED(bs); const block_q5_0 * GGML_RESTRICT x = vx; const block_q8_0 * GGML_RESTRICT y = vy; #if defined(__ARM_NEON) float32x4_t sumv0 = vdupq_n_f32(0.0f); float32x4_t sumv1 = vdupq_n_f32(0.0f); uint32_t qh0; uint32_t qh1; uint64_t tmp0[4]; uint64_t tmp1[4]; for (; ib + 1 < nb; ib += 2) { const block_q5_0 * GGML_RESTRICT x0 = &x[ib]; const block_q5_0 * GGML_RESTRICT x1 = &x[ib + 1]; const block_q8_0 * GGML_RESTRICT y0 = &y[ib]; const block_q8_0 * GGML_RESTRICT y1 = &y[ib + 1]; const uint8x16_t m4b = vdupq_n_u8(0x0F); // extract the 5th bit via lookup table ((!b) << 4) memcpy(&qh0, x0->qh, sizeof(qh0)); memcpy(&qh1, x1->qh, sizeof(qh1)); tmp0[0] = table_b2b_1[(qh0 >> 0) & 0xFF]; tmp0[1] = table_b2b_1[(qh0 >> 8) & 0xFF]; tmp0[2] = table_b2b_1[(qh0 >> 16) & 0xFF]; tmp0[3] = table_b2b_1[(qh0 >> 24) ]; tmp1[0] = table_b2b_1[(qh1 >> 0) & 0xFF]; tmp1[1] = table_b2b_1[(qh1 >> 8) & 0xFF]; tmp1[2] = table_b2b_1[(qh1 >> 16) & 0xFF]; tmp1[3] = table_b2b_1[(qh1 >> 24) ]; const int8x16_t qhl0 = vld1q_s8((const int8_t *)(tmp0 + 0)); const int8x16_t qhh0 = vld1q_s8((const int8_t *)(tmp0 + 2)); const int8x16_t qhl1 = vld1q_s8((const int8_t *)(tmp1 + 0)); const int8x16_t qhh1 = vld1q_s8((const int8_t *)(tmp1 + 2)); const uint8x16_t v0_0 = vld1q_u8(x0->qs); const uint8x16_t v0_1 = vld1q_u8(x1->qs); // 4-bit -> 8-bit int8x16_t v0_0l = vreinterpretq_s8_u8(vandq_u8 (v0_0, m4b)); int8x16_t v0_0h = vreinterpretq_s8_u8(vshrq_n_u8(v0_0, 4)); int8x16_t v0_1l = vreinterpretq_s8_u8(vandq_u8 (v0_1, m4b)); int8x16_t v0_1h = vreinterpretq_s8_u8(vshrq_n_u8(v0_1, 4)); // add high bit and sub 16 (equivalent to sub 0x10 when bit is zero) const int8x16_t v0_0lf = vsubq_s8(v0_0l, qhl0); const int8x16_t v0_0hf = vsubq_s8(v0_0h, qhh0); const int8x16_t v0_1lf = vsubq_s8(v0_1l, qhl1); const int8x16_t v0_1hf = vsubq_s8(v0_1h, qhh1); // load y const int8x16_t v1_0l = vld1q_s8(y0->qs); const int8x16_t v1_0h = vld1q_s8(y0->qs + 16); const int8x16_t v1_1l = vld1q_s8(y1->qs); const int8x16_t v1_1h = vld1q_s8(y1->qs + 16); sumv0 = vmlaq_n_f32(sumv0, vcvtq_f32_s32(vaddq_s32( ggml_vdotq_s32(vdupq_n_s32(0), v0_0lf, v1_0l), ggml_vdotq_s32(vdupq_n_s32(0), v0_0hf, v1_0h))), GGML_FP16_TO_FP32(x0->d)*GGML_FP16_TO_FP32(y0->d)); sumv1 = vmlaq_n_f32(sumv1, vcvtq_f32_s32(vaddq_s32( ggml_vdotq_s32(vdupq_n_s32(0), v0_1lf, v1_1l), ggml_vdotq_s32(vdupq_n_s32(0), v0_1hf, v1_1h))), GGML_FP16_TO_FP32(x1->d)*GGML_FP16_TO_FP32(y1->d)); } sumf = vaddvq_f32(sumv0) + vaddvq_f32(sumv1); #elif defined __wasm_simd128__ v128_t sumv = wasm_f32x4_splat(0.0f); uint32_t qh_; uint64_t tmp[4]; // TODO: check if unrolling this is better for (; ib < nb; ++ib) { const block_q5_0 * GGML_RESTRICT x0 = &x[ib]; const block_q8_0 * GGML_RESTRICT y0 = &y[ib]; const v128_t m4b = wasm_i8x16_splat(0x0F); // extract the 5th bit memcpy(&qh_, x0->qh, sizeof(qh_)); tmp[0] = table_b2b_1[(qh_ >> 0) & 0xFF]; tmp[1] = table_b2b_1[(qh_ >> 8) & 0xFF]; tmp[2] = table_b2b_1[(qh_ >> 16) & 0xFF]; tmp[3] = table_b2b_1[(qh_ >> 24) ]; const v128_t qhl = wasm_v128_load(tmp + 0); const v128_t qhh = wasm_v128_load(tmp + 2); const v128_t v0 = wasm_v128_load(x0->qs); // 4-bit -> 8-bit const v128_t v0l = wasm_v128_and (v0, m4b); const v128_t v0h = wasm_u8x16_shr(v0, 4); // add high bit and sub 16 (equivalent to sub 0x10 when bit is zero) const v128_t v0lf = wasm_i8x16_sub(v0l, qhl); const v128_t v0hf = wasm_i8x16_sub(v0h, qhh); // load y const v128_t v1l = wasm_v128_load(y0->qs); const v128_t v1h = wasm_v128_load(y0->qs + 16); // int8x16 -> int16x8 const v128_t v0lfl = wasm_i16x8_extend_low_i8x16 (v0lf); const v128_t v0lfh = wasm_i16x8_extend_high_i8x16(v0lf); const v128_t v0hfl = wasm_i16x8_extend_low_i8x16 (v0hf); const v128_t v0hfh = wasm_i16x8_extend_high_i8x16(v0hf); const v128_t v1ll = wasm_i16x8_extend_low_i8x16 (v1l); const v128_t v1lh = wasm_i16x8_extend_high_i8x16(v1l); const v128_t v1hl = wasm_i16x8_extend_low_i8x16 (v1h); const v128_t v1hh = wasm_i16x8_extend_high_i8x16(v1h); // dot product sumv = wasm_f32x4_add(sumv, wasm_f32x4_mul(wasm_f32x4_convert_i32x4( wasm_i32x4_add( wasm_i32x4_add(wasm_i32x4_dot_i16x8(v0lfl, v1ll), wasm_i32x4_dot_i16x8(v0lfh, v1lh)), wasm_i32x4_add(wasm_i32x4_dot_i16x8(v0hfl, v1hl), wasm_i32x4_dot_i16x8(v0hfh, v1hh)))), wasm_f32x4_splat(GGML_FP16_TO_FP32(x0->d) * GGML_FP16_TO_FP32(y0->d)))); } sumf = wasm_f32x4_extract_lane(sumv, 0) + wasm_f32x4_extract_lane(sumv, 1) + wasm_f32x4_extract_lane(sumv, 2) + wasm_f32x4_extract_lane(sumv, 3); #elif defined(__AVX2__) // Initialize accumulator with zeros __m256 acc = _mm256_setzero_ps(); // Main loop for (; ib < nb; ++ib) { /* Compute combined scale for the block */ const __m256 d = _mm256_set1_ps(GGML_FP16_TO_FP32(x[ib].d) * GGML_FP16_TO_FP32(y[ib].d)); __m256i qx = bytes_from_nibbles_32(x[ib].qs); __m256i bxhi = bytes_from_bits_32(x[ib].qh); bxhi = _mm256_andnot_si256(bxhi, _mm256_set1_epi8((char)0xF0)); qx = _mm256_or_si256(qx, bxhi); __m256i qy = _mm256_loadu_si256((const __m256i *)y[ib].qs); const __m256 q = mul_sum_i8_pairs_float(qx, qy); /* Multiply q with scale and accumulate */ acc = _mm256_fmadd_ps(d, q, acc); } sumf = hsum_float_8(acc); #elif defined(__AVX__) // Initialize accumulator with zeros __m256 acc = _mm256_setzero_ps(); __m128i mask = _mm_set1_epi8((char)0xF0); // Main loop for (; ib < nb; ++ib) { /* Compute combined scale for the block */ const __m256 d = _mm256_set1_ps(GGML_FP16_TO_FP32(x[ib].d) * GGML_FP16_TO_FP32(y[ib].d)); __m256i bx_0 = bytes_from_nibbles_32(x[ib].qs); const __m256i bxhi = bytes_from_bits_32(x[ib].qh); __m128i bxhil = _mm256_castsi256_si128(bxhi); __m128i bxhih = _mm256_extractf128_si256(bxhi, 1); bxhil = _mm_andnot_si128(bxhil, mask); bxhih = _mm_andnot_si128(bxhih, mask); __m128i bxl = _mm256_castsi256_si128(bx_0); __m128i bxh = _mm256_extractf128_si256(bx_0, 1); bxl = _mm_or_si128(bxl, bxhil); bxh = _mm_or_si128(bxh, bxhih); bx_0 = MM256_SET_M128I(bxh, bxl); const __m256i by_0 = _mm256_loadu_si256((const __m256i *)y[ib].qs); const __m256 q = mul_sum_i8_pairs_float(bx_0, by_0); /* Multiply q with scale and accumulate */ acc = _mm256_add_ps(_mm256_mul_ps(d, q), acc); } sumf = hsum_float_8(acc); #elif defined(__riscv_v_intrinsic) size_t vl; size_t vlenb = __riscv_vlenb(); for (; ib < nb; ++ib) { vl = qk / 2; vuint8m1_t v0 = __riscv_vle8_v_u8m1(x[ib].qs, vl); vint8m1_t v0l = __riscv_vreinterpret_v_u8m1_i8m1(__riscv_vand_vx_u8m1(v0, 0x0F, vl)); vint8m1_t v0h = __riscv_vreinterpret_v_u8m1_i8m1(__riscv_vsrl_vx_u8m1(v0, 4, vl)); vint8m2_t v0c; if (vlenb == 16) { v0c = __riscv_vcreate_v_i8m1_i8m2(v0l, v0h); } else { v0l = __riscv_vslideup_vx_i8m1(v0l, v0h, 16, 32); v0c = __riscv_vlmul_ext_v_i8m1_i8m2(v0l); } vl = qk; vbool4_t qh = __riscv_vlm_v_b4(x[ib].qh, vl); qh = __riscv_vmnand_mm_b4(qh, qh, vl); vint8m2_t v0f = __riscv_vsub_vx_i8m2_mu(qh, v0c, v0c, 0x10, vl); vint8m2_t v1 = __riscv_vle8_v_i8m2(y[ib].qs, vl); vint16m4_t mul = __riscv_vwmul_vv_i16m4(v0f, v1, vl); vint32m1_t zero = __riscv_vmv_v_x_i32m1(0, vl); vint32m1_t sum = __riscv_vwredsum_vs_i16m4_i32m1(mul, zero, vl); int32_t sumi = __riscv_vmv_x_s_i32m1_i32(sum); sumf += (GGML_FP16_TO_FP32(x[ib].d) * GGML_FP16_TO_FP32(y[ib].d)) * sumi; } #elif defined(__POWER9_VECTOR__) const vector signed char lowMask = vec_splats((signed char)0xF); const vector unsigned char v4 = vec_splats((unsigned char)4); vector float vsumf0 = vec_splats(0.0f); #pragma GCC unroll 4 for (; ib < nb; ++ib) { __builtin_prefetch(x[ib].qs, 0, 1); __builtin_prefetch(y[ib].qs, 0, 1); vector float vxd = vec_splats(GGML_FP16_TO_FP32(x[ib].d)); vector float vyd = vec_splats(GGML_FP16_TO_FP32(y[ib].d)); vector float vd = vec_mul(vxd, vyd); vector signed long long aux64x2_0 = {(uint64_t)(table_b2b_1[x[ib].qh[0]]), (uint64_t)(table_b2b_1[x[ib].qh[1]])}; vector signed long long aux64x2_1 = {(uint64_t)(table_b2b_1[x[ib].qh[2]]), (uint64_t)(table_b2b_1[x[ib].qh[3]])}; vector signed char qh0 = (vector signed char)aux64x2_0; vector signed char qh1 = (vector signed char)aux64x2_1; vector signed char qxs = (vector signed char)vec_xl( 0, x[ib].qs); vector signed char q5x0 = vec_sub(vec_and (qxs, lowMask), qh0); vector signed char q5x1 = vec_sub(vec_sr(qxs, v4), qh1); vector signed char q8y0 = vec_xl( 0, y[ib].qs); vector signed char q8y1 = vec_xl( 16, y[ib].qs); vector signed short qv0 = vec_add(vec_mule(q5x0, q8y0), vec_mulo(q5x0, q8y0)); vector signed short qv1 = vec_add(vec_mule(q5x1, q8y1), vec_mulo(q5x1, q8y1)); qv0 = vec_add(qv0, qv1); vector signed int vsumi0 = vec_add(vec_unpackh(qv0), vec_unpackl(qv0)); vsumf0 = vec_madd(vec_ctf(vsumi0, 0), vd, vsumf0); } vsumf0 = vec_add(vsumf0, vec_sld(vsumf0, vsumf0, 4)); vsumf0 = vec_add(vsumf0, vec_sld(vsumf0, vsumf0, 8)); sumf = vec_extract(vsumf0, 0); #elif defined(__loongarch_asx) // Initialize accumulator with zeros __m256 acc = (__m256)__lasx_xvldi(0); // Main loop for (; ib < nb; ++ib) { /* Compute combined scale for the block */ const __m256 d = __lasx_xvreplfr2vr_s(GGML_FP16_TO_FP32(x[ib].d) * GGML_FP16_TO_FP32(y[ib].d)); //FIXME __m256i qx = bytes_from_nibbles_32(x[ib].qs); __m256i bxhi = bytes_from_bits_32(x[ib].qh); bxhi = __lasx_xvandn_v(bxhi, __lasx_xvreplgr2vr_b((char)0xF0)); qx = __lasx_xvor_v(qx, bxhi); __m256i qy = __lasx_xvld((const __m256i *)y[ib].qs, 0); const __m256 q = mul_sum_i8_pairs_float(qx, qy); /* Multiply q with scale and accumulate */ acc = __lasx_xvfmadd_s(d, q, acc); } sumf = hsum_float_8(acc); #endif for (; ib < nb; ++ib) { uint32_t qh; memcpy(&qh, x[ib].qh, sizeof(qh)); int sumi0 = 0; int sumi1 = 0; for (int j = 0; j < qk/2; ++j) { const uint8_t xh_0 = ((qh & (1u << (j + 0 ))) >> (j + 0 )) << 4; const uint8_t xh_1 = ((qh & (1u << (j + 16))) >> (j + 12)); const int32_t x0 = (int8_t)(((x[ib].qs[j] & 0x0F) | xh_0) - 16); const int32_t x1 = (int8_t)(((x[ib].qs[j] >> 4) | xh_1) - 16); sumi0 += (x0 * y[ib].qs[j]); sumi1 += (x1 * y[ib].qs[j + qk/2]); } int sumi = sumi0 + sumi1; sumf += (GGML_FP16_TO_FP32(x[ib].d)*GGML_FP16_TO_FP32(y[ib].d)) * sumi; } *s = sumf; }
O1
c
ggml_vec_dot_q5_0_q8_0: pushq %rbp pushq %rbx leal 0x1f(%rdi), %eax testl %edi, %edi cmovnsl %edi, %eax sarl $0x5, %eax cmpl $0x20, %edi jl 0x1dbf0 movl %eax, %r8d leaq 0x2(%r9), %rdx leaq (%r8,%r8,4), %rdi leaq (%r8,%rdi,4), %rdi addq %r8, %rdi vxorps %xmm0, %xmm0, %xmm0 xorl %r8d, %r8d vmovdqa 0x2ca40(%rip), %ymm1 # 0x4a580 vpbroadcastq 0x2ccdf(%rip), %ymm2 # 0x4a828 movq 0x3e410(%rip), %r10 # 0x5bf60 vpcmpeqd %ymm3, %ymm3, %ymm3 vpbroadcastq 0x2ccc3(%rip), %ymm4 # 0x4a820 vpbroadcastw 0x2cd28(%rip), %ymm5 # 0x4a88e movzwl (%rcx,%r8), %r11d vmovss (%r10,%r11,4), %xmm6 movzwl -0x2(%rdx), %r11d vmulss (%r10,%r11,4), %xmm6, %xmm6 vbroadcastss %xmm6, %ymm6 vmovdqu 0x6(%rcx,%r8), %xmm7 vpsrlw $0x4, %xmm7, %xmm8 vmovd 0x2(%rcx,%r8), %xmm9 vinserti128 $0x1, %xmm8, %ymm7, %ymm7 vpermq $0x44, %ymm9, %ymm8 # ymm8 = ymm9[0,1,0,1] vpshufb %ymm1, %ymm8, %ymm8 vpor %ymm2, %ymm8, %ymm8 vpcmpeqb %ymm3, %ymm8, %ymm8 vpternlogq $0xf, %ymm8, %ymm8, %ymm8 vpternlogq $0xe4, %ymm4, %ymm7, %ymm8 vmovdqu (%rdx), %ymm7 vpsignb %ymm8, %ymm8, %ymm9 vpsignb %ymm8, %ymm7, %ymm7 vpmaddubsw %ymm7, %ymm9, %ymm7 vpmaddwd %ymm7, %ymm5, %ymm7 vcvtdq2ps %ymm7, %ymm7 vfmadd231ps %ymm7, %ymm6, %ymm0 # ymm0 = (ymm6 * ymm7) + ymm0 addq $0x22, %rdx addq $0x16, %r8 cmpq %r8, %rdi jne 0x1db66 movl %eax, %edx jmp 0x1dbf6 xorl %edx, %edx vxorps %xmm0, %xmm0, %xmm0 vextractf128 $0x1, %ymm0, %xmm1 vaddps %xmm0, %xmm1, %xmm0 vshufpd $0x1, %xmm0, %xmm0, %xmm1 # xmm1 = xmm0[1,0] vaddps %xmm1, %xmm0, %xmm0 vhaddps %xmm0, %xmm0, %xmm0 cmpl %eax, %edx jge 0x1ddd1 movl %edx, %edx movq %rdx, %rdi shlq $0x5, %rdi leaq (%rdi,%rdx,2), %rdi addq %r9, %rdi addq $0x12, %rdi leaq (%rdx,%rdx,4), %r8 leaq (%rdx,%r8,4), %r8 addq %rdx, %r8 vpmovsxbd 0x2c2e3(%rip), %ymm1 # 0x49f20 vpbroadcastd 0x2c916(%rip), %ymm2 # 0x4a55c vpbroadcastd 0x2c911(%rip), %ymm3 # 0x4a560 vpbroadcastd 0x2c90c(%rip), %ymm4 # 0x4a564 vpbroadcastd 0x2c197(%rip), %ymm5 # 0x49df8 vpbroadcastd 0x2c8fe(%rip), %ymm6 # 0x4a568 addq %rcx, %r8 addq $0x6, %r8 vpbroadcastw 0x2cc16(%rip), %xmm7 # 0x4a890 vpbroadcastd 0x2c161(%rip), %ymm8 # 0x49de4 movq 0x3e2d6(%rip), %r10 # 0x5bf60 leaq (%rdx,%rdx,4), %r11 leaq (%rdx,%r11,4), %rbx addq %rdx, %rbx leaq (%rcx,%rbx), %r11 vpbroadcastd 0x2(%rcx,%rbx), %ymm11 vpxor %xmm10, %xmm10, %xmm10 xorl %ebx, %ebx vpxor %xmm9, %xmm9, %xmm9 vmovdqa %ymm1, %ymm12 vmovdqa %ymm1, %ymm13 vmovdqa %ymm1, %ymm14 vpsrlvd %ymm12, %ymm11, %ymm15 vpslld $0x4, %ymm15, %ymm15 vpand %ymm2, %ymm15, %ymm15 vpsllvd %ymm13, %ymm3, %ymm16 vpandd %ymm11, %ymm16, %ymm16 vpaddd %ymm4, %ymm14, %ymm17 vpsrlvd %ymm17, %ymm16, %ymm16 vpmovzxbd (%r8,%rbx), %ymm17 vpternlogd $0xf8, %ymm5, %ymm17, %ymm15 vpsrld $0x4, %ymm17, %ymm17 vpord %ymm16, %ymm17, %ymm16 vpslld $0x18, %ymm16, %ymm16 vpaddd %ymm6, %ymm16, %ymm16 vpsrad $0x18, %ymm16, %ymm16 vpmovsxbw -0x10(%rdi,%rbx), %xmm17 vpmovdw %ymm15, %xmm15 vpaddw %xmm7, %xmm15, %xmm15 vpmaddwd %xmm17, %xmm15, %xmm15 vpaddd %ymm10, %ymm15, %ymm10 vpmovsxbw (%rdi,%rbx), %xmm15 vpmovdw %ymm16, %xmm16 vpmaddwd %xmm15, %xmm16, %xmm15 vpaddd %ymm9, %ymm15, %ymm9 addq $0x8, %rbx vpaddd %ymm8, %ymm12, %ymm12 vpaddd %ymm8, %ymm13, %ymm13 vpaddd %ymm8, %ymm14, %ymm14 cmpq $0x10, %rbx jne 0x1dcb8 vextracti128 $0x1, %ymm10, %xmm11 vphaddd %xmm10, %xmm11, %xmm10 vphaddd %xmm10, %xmm10, %xmm10 vphaddd %xmm10, %xmm10, %xmm10 vmovd %xmm10, %ebx vextracti128 $0x1, %ymm9, %xmm10 vphaddd %xmm9, %xmm10, %xmm9 vphaddd %xmm9, %xmm9, %xmm9 vphaddd %xmm9, %xmm9, %xmm9 vmovd %xmm9, %ebp addl %ebx, %ebp movzwl (%r11), %r11d vmovss (%r10,%r11,4), %xmm9 movq %rdx, %r11 shlq $0x5, %r11 leaq (%r11,%rdx,2), %r11 movzwl (%r9,%r11), %r11d vmulss (%r10,%r11,4), %xmm9, %xmm9 vcvtsi2ss %ebp, %xmm18, %xmm10 vfmadd231ss %xmm10, %xmm9, %xmm0 # xmm0 = (xmm9 * xmm10) + xmm0 incq %rdx addq $0x22, %rdi addq $0x16, %r8 cmpl %edx, %eax jg 0x1dc8a vmovss %xmm0, (%rsi) popq %rbx popq %rbp vzeroupper retq
ggml_vec_dot_q5_0_q8_0: push rbp push rbx lea eax, [rdi+1Fh] test edi, edi cmovns eax, edi sar eax, 5 cmp edi, 20h ; ' ' jl loc_1DBF0 mov r8d, eax lea rdx, [r9+2] lea rdi, [r8+r8*4] lea rdi, [r8+rdi*4] add rdi, r8 vxorps xmm0, xmm0, xmm0 xor r8d, r8d vmovdqa ymm1, cs:ymmword_4A580 vpbroadcastq ymm2, cs:qword_4A828 mov r10, cs:ggml_table_f32_f16_ptr vpcmpeqd ymm3, ymm3, ymm3 vpbroadcastq ymm4, cs:qword_4A820 vpbroadcastw ymm5, cs:word_4A88E loc_1DB66: movzx r11d, word ptr [rcx+r8] vmovss xmm6, dword ptr [r10+r11*4] movzx r11d, word ptr [rdx-2] vmulss xmm6, xmm6, dword ptr [r10+r11*4] vbroadcastss ymm6, xmm6 vmovdqu xmm7, xmmword ptr [rcx+r8+6] vpsrlw xmm8, xmm7, 4 vmovd xmm9, dword ptr [rcx+r8+2] vinserti128 ymm7, ymm7, xmm8, 1 vpermq ymm8, ymm9, 44h ; 'D' vpshufb ymm8, ymm8, ymm1 vpor ymm8, ymm8, ymm2 vpcmpeqb ymm8, ymm8, ymm3 vpternlogq ymm8, ymm8, ymm8, 0Fh vpternlogq ymm8, ymm7, ymm4, 0E4h vmovdqu ymm7, ymmword ptr [rdx] vpsignb ymm9, ymm8, ymm8 vpsignb ymm7, ymm7, ymm8 vpmaddubsw ymm7, ymm9, ymm7 vpmaddwd ymm7, ymm5, ymm7 vcvtdq2ps ymm7, ymm7 vfmadd231ps ymm0, ymm6, ymm7 add rdx, 22h ; '"' add r8, 16h cmp rdi, r8 jnz loc_1DB66 mov edx, eax jmp short loc_1DBF6 loc_1DBF0: xor edx, edx vxorps xmm0, xmm0, xmm0 loc_1DBF6: vextractf128 xmm1, ymm0, 1 vaddps xmm0, xmm1, xmm0 vshufpd xmm1, xmm0, xmm0, 1 vaddps xmm0, xmm0, xmm1 vhaddps xmm0, xmm0, xmm0 cmp edx, eax jge loc_1DDD1 mov edx, edx mov rdi, rdx shl rdi, 5 lea rdi, [rdi+rdx*2] add rdi, r9 add rdi, 12h lea r8, [rdx+rdx*4] lea r8, [rdx+r8*4] add r8, rdx vpmovsxbd ymm1, cs:qword_49F20 vpbroadcastd ymm2, cs:dword_4A55C vpbroadcastd ymm3, cs:dword_4A560 vpbroadcastd ymm4, cs:dword_4A564 vpbroadcastd ymm5, cs:dword_49DF8 vpbroadcastd ymm6, cs:dword_4A568 add r8, rcx add r8, 6 vpbroadcastw xmm7, cs:word_4A890 vpbroadcastd ymm8, dword ptr cs:xmmword_49DE0+4 mov r10, cs:ggml_table_f32_f16_ptr loc_1DC8A: lea r11, [rdx+rdx*4] lea rbx, [rdx+r11*4] add rbx, rdx lea r11, [rcx+rbx] vpbroadcastd ymm11, dword ptr [rcx+rbx+2] vpxor xmm10, xmm10, xmm10 xor ebx, ebx vpxor xmm9, xmm9, xmm9 vmovdqa ymm12, ymm1 vmovdqa ymm13, ymm1 vmovdqa ymm14, ymm1 loc_1DCB8: vpsrlvd ymm15, ymm11, ymm12 vpslld ymm15, ymm15, 4 vpand ymm15, ymm15, ymm2 vpsllvd ymm16, ymm3, ymm13 vpandd ymm16, ymm16, ymm11 vpaddd ymm17, ymm14, ymm4 vpsrlvd ymm16, ymm16, ymm17 vpmovzxbd ymm17, qword ptr [r8+rbx] vpternlogd ymm15, ymm17, ymm5, 0F8h vpsrld ymm17, ymm17, 4 vpord ymm16, ymm17, ymm16 vpslld ymm16, ymm16, 18h vpaddd ymm16, ymm16, ymm6 vpsrad ymm16, ymm16, 18h vpmovsxbw xmm17, qword ptr [rdi+rbx-10h] vpmovdw xmm15, ymm15 vpaddw xmm15, xmm15, xmm7 vpmaddwd xmm15, xmm15, xmm17 vpaddd ymm10, ymm15, ymm10 vpmovsxbw xmm15, qword ptr [rdi+rbx] vpmovdw xmm16, ymm16 vpmaddwd xmm15, xmm16, xmm15 vpaddd ymm9, ymm15, ymm9 add rbx, 8 vpaddd ymm12, ymm12, ymm8 vpaddd ymm13, ymm13, ymm8 vpaddd ymm14, ymm14, ymm8 cmp rbx, 10h jnz loc_1DCB8 vextracti128 xmm11, ymm10, 1 vphaddd xmm10, xmm11, xmm10 vphaddd xmm10, xmm10, xmm10 vphaddd xmm10, xmm10, xmm10 vmovd ebx, xmm10 vextracti128 xmm10, ymm9, 1 vphaddd xmm9, xmm10, xmm9 vphaddd xmm9, xmm9, xmm9 vphaddd xmm9, xmm9, xmm9 vmovd ebp, xmm9 add ebp, ebx movzx r11d, word ptr [r11] vmovss xmm9, dword ptr [r10+r11*4] mov r11, rdx shl r11, 5 lea r11, [r11+rdx*2] movzx r11d, word ptr [r9+r11] vmulss xmm9, xmm9, dword ptr [r10+r11*4] vcvtsi2ss xmm10, xmm18, ebp vfmadd231ss xmm0, xmm9, xmm10 inc rdx add rdi, 22h ; '"' add r8, 16h cmp eax, edx jg loc_1DC8A loc_1DDD1: vmovss dword ptr [rsi], xmm0 pop rbx pop rbp vzeroupper retn
long long ggml_vec_dot_q5_0_q8_0( int a1, long long _RSI, __m128 _XMM0, long long a4, long long _RCX, long long a6, long long a7) { long long result; // rax long long v40; // rdx result = (unsigned int)(a1 / 32); if ( a1 < 32 ) { LODWORD(v40) = 0; __asm { vxorps xmm0, xmm0, xmm0 } } else { _RDX = a7 + 2; __asm { vxorps xmm0, xmm0, xmm0 } _R8 = 0LL; __asm { vmovdqa ymm1, cs:ymmword_4A580 vpbroadcastq ymm2, cs:qword_4A828 } _R10 = &ggml_table_f32_f16; __asm { vpcmpeqd ymm3, ymm3, ymm3 vpbroadcastq ymm4, cs:qword_4A820 vpbroadcastw ymm5, cs:word_4A88E } do { _R11 = *(unsigned __int16 *)(_RCX + _R8); __asm { vmovss xmm6, dword ptr [r10+r11*4] vmulss xmm6, xmm6, dword ptr [r10+r11*4] vbroadcastss ymm6, xmm6 vmovdqu xmm7, xmmword ptr [rcx+r8+6] vpsrlw xmm8, xmm7, 4 vmovd xmm9, dword ptr [rcx+r8+2] vinserti128 ymm7, ymm7, xmm8, 1 vpermq ymm8, ymm9, 44h ; 'D' vpshufb ymm8, ymm8, ymm1 vpor ymm8, ymm8, ymm2 vpcmpeqb ymm8, ymm8, ymm3 vpternlogq ymm8, ymm8, ymm8, 0Fh vpternlogq ymm8, ymm7, ymm4, 0E4h vmovdqu ymm7, ymmword ptr [rdx] vpsignb ymm9, ymm8, ymm8 vpsignb ymm7, ymm7, ymm8 vpmaddubsw ymm7, ymm9, ymm7 vpmaddwd ymm7, ymm5, ymm7 vcvtdq2ps ymm7, ymm7 vfmadd231ps ymm0, ymm6, ymm7 } _RDX += 34LL; _R8 += 22LL; } while ( 22LL * (unsigned int)result != _R8 ); LODWORD(v40) = a1 / 32; } __asm { vextractf128 xmm1, ymm0, 1 vaddps xmm0, xmm1, xmm0 vshufpd xmm1, xmm0, xmm0, 1 vaddps xmm0, xmm0, xmm1 vhaddps xmm0, xmm0, xmm0 } if ( (int)v40 < (int)result ) { v40 = (unsigned int)v40; _RDI = a7 + 34LL * (unsigned int)v40 + 18; __asm { vpmovsxbd ymm1, cs:qword_49F20 vpbroadcastd ymm2, cs:dword_4A55C vpbroadcastd ymm3, cs:dword_4A560 vpbroadcastd ymm4, cs:dword_4A564 vpbroadcastd ymm5, cs:dword_49DF8 vpbroadcastd ymm6, cs:dword_4A568 } _R8 = _RCX + 22LL * (unsigned int)v40 + 6; __asm { vpbroadcastw xmm7, cs:word_4A890 vpbroadcastd ymm8, dword ptr cs:xmmword_49DE0+4 } _R10 = &ggml_table_f32_f16; do { _R11 = (unsigned __int16 *)(_RCX + 22 * v40); __asm { vpbroadcastd ymm11, dword ptr [rcx+rbx+2] vpxor xmm10, xmm10, xmm10 } _RBX = 0LL; __asm { vpxor xmm9, xmm9, xmm9 vmovdqa ymm12, ymm1 vmovdqa ymm13, ymm1 vmovdqa ymm14, ymm1 } do { __asm { vpsrlvd ymm15, ymm11, ymm12 vpslld ymm15, ymm15, 4 vpand ymm15, ymm15, ymm2 vpsllvd ymm16, ymm3, ymm13 vpandd ymm16, ymm16, ymm11 vpaddd ymm17, ymm14, ymm4 vpsrlvd ymm16, ymm16, ymm17 vpmovzxbd ymm17, qword ptr [r8+rbx] vpternlogd ymm15, ymm17, ymm5, 0F8h vpsrld ymm17, ymm17, 4 vpord ymm16, ymm17, ymm16 vpslld ymm16, ymm16, 18h vpaddd ymm16, ymm16, ymm6 vpsrad ymm16, ymm16, 18h vpmovsxbw xmm17, qword ptr [rdi+rbx-10h] vpmovdw xmm15, ymm15 vpaddw xmm15, xmm15, xmm7 vpmaddwd xmm15, xmm15, xmm17 vpaddd ymm10, ymm15, ymm10 vpmovsxbw xmm15, qword ptr [rdi+rbx] vpmovdw xmm16, ymm16 vpmaddwd xmm15, xmm16, xmm15 vpaddd ymm9, ymm15, ymm9 } _RBX += 8LL; __asm { vpaddd ymm12, ymm12, ymm8 vpaddd ymm13, ymm13, ymm8 vpaddd ymm14, ymm14, ymm8 } } while ( _RBX != 16 ); __asm { vextracti128 xmm11, ymm10, 1 vphaddd xmm10, xmm11, xmm10 vphaddd xmm10, xmm10, xmm10 vphaddd xmm10, xmm10, xmm10 vmovd ebx, xmm10 vextracti128 xmm10, ymm9, 1 vphaddd xmm9, xmm10, xmm9 vphaddd xmm9, xmm9, xmm9 vphaddd xmm9, xmm9, xmm9 vmovd ebp, xmm9 } _R11 = *_R11; __asm { vmovss xmm9, dword ptr [r10+r11*4] vmulss xmm9, xmm9, dword ptr [r10+r11*4] vcvtsi2ss xmm10, xmm18, ebp vfmadd231ss xmm0, xmm9, xmm10 } ++v40; _RDI += 34LL; _R8 += 22LL; } while ( (int)result > (int)v40 ); } __asm { vmovss dword ptr [rsi], xmm0 vzeroupper } return result; }
ggml_vec_dot_q5_0_q8_0: PUSH RBP PUSH RBX LEA EAX,[RDI + 0x1f] TEST EDI,EDI CMOVNS EAX,EDI SAR EAX,0x5 CMP EDI,0x20 JL 0x0011dbf0 MOV R8D,EAX LEA RDX,[R9 + 0x2] LEA RDI,[R8 + R8*0x4] LEA RDI,[R8 + RDI*0x4] ADD RDI,R8 VXORPS XMM0,XMM0,XMM0 XOR R8D,R8D VMOVDQA YMM1,ymmword ptr [0x0014a580] VPBROADCASTQ YMM2,qword ptr [0x0014a828] MOV R10,qword ptr [0x0015bf60] VPCMPEQD YMM3,YMM3,YMM3 VPBROADCASTQ YMM4,qword ptr [0x0014a820] VPBROADCASTW YMM5,word ptr [0x0014a88e] LAB_0011db66: MOVZX R11D,word ptr [RCX + R8*0x1] VMOVSS XMM6,dword ptr [R10 + R11*0x4] MOVZX R11D,word ptr [RDX + -0x2] VMULSS XMM6,XMM6,dword ptr [R10 + R11*0x4] VBROADCASTSS YMM6,XMM6 VMOVDQU XMM7,xmmword ptr [RCX + R8*0x1 + 0x6] VPSRLW XMM8,XMM7,0x4 VMOVD XMM9,dword ptr [RCX + R8*0x1 + 0x2] VINSERTI128 YMM7,YMM7,XMM8,0x1 VPERMQ YMM8,YMM9,0x44 VPSHUFB YMM8,YMM8,YMM1 VPOR YMM8,YMM8,YMM2 VPCMPEQB YMM8,YMM8,YMM3 VPTERNLOGQ YMM8,YMM8,YMM8,0xf VPTERNLOGQ YMM8,YMM7,YMM4,0xe4 VMOVDQU YMM7,ymmword ptr [RDX] VPSIGNB YMM9,YMM8,YMM8 VPSIGNB YMM7,YMM7,YMM8 VPMADDUBSW YMM7,YMM9,YMM7 VPMADDWD YMM7,YMM5,YMM7 VCVTDQ2PS YMM7,YMM7 VFMADD231PS YMM0,YMM6,YMM7 ADD RDX,0x22 ADD R8,0x16 CMP RDI,R8 JNZ 0x0011db66 MOV EDX,EAX JMP 0x0011dbf6 LAB_0011dbf0: XOR EDX,EDX VXORPS XMM0,XMM0,XMM0 LAB_0011dbf6: VEXTRACTF128 XMM1,YMM0,0x1 VADDPS XMM0,XMM1,XMM0 VSHUFPD XMM1,XMM0,XMM0,0x1 VADDPS XMM0,XMM0,XMM1 VHADDPS XMM0,XMM0,XMM0 CMP EDX,EAX JGE 0x0011ddd1 MOV EDX,EDX MOV RDI,RDX SHL RDI,0x5 LEA RDI,[RDI + RDX*0x2] ADD RDI,R9 ADD RDI,0x12 LEA R8,[RDX + RDX*0x4] LEA R8,[RDX + R8*0x4] ADD R8,RDX VPMOVSXBD YMM1,qword ptr [0x00149f20] VPBROADCASTD YMM2,dword ptr [0x0014a55c] VPBROADCASTD YMM3,dword ptr [0x0014a560] VPBROADCASTD YMM4,dword ptr [0x0014a564] VPBROADCASTD YMM5,dword ptr [0x00149df8] VPBROADCASTD YMM6,dword ptr [0x0014a568] ADD R8,RCX ADD R8,0x6 VPBROADCASTW XMM7,word ptr [0x0014a890] VPBROADCASTD YMM8,dword ptr [0x00149de4] MOV R10,qword ptr [0x0015bf60] LAB_0011dc8a: LEA R11,[RDX + RDX*0x4] LEA RBX,[RDX + R11*0x4] ADD RBX,RDX LEA R11,[RCX + RBX*0x1] VPBROADCASTD YMM11,dword ptr [RCX + RBX*0x1 + 0x2] VPXOR XMM10,XMM10,XMM10 XOR EBX,EBX VPXOR XMM9,XMM9,XMM9 VMOVDQA YMM12,YMM1 VMOVDQA YMM13,YMM1 VMOVDQA YMM14,YMM1 LAB_0011dcb8: VPSRLVD YMM15,YMM11,YMM12 VPSLLD YMM15,YMM15,0x4 VPAND YMM15,YMM15,YMM2 VPSLLVD YMM0,YMM3,YMM13 VPANDD YMM0,YMM0,YMM11 VPADDD YMM1,YMM14,YMM4 VPSRLVD YMM0,YMM0,YMM1 VPMOVZXBD YMM1,qword ptr [R8 + RBX*0x1] VPTERNLOGD YMM15,YMM1,YMM5,0xf8 VPSRLD YMM1,YMM1,0x4 VPORD YMM0,YMM1,YMM0 VPSLLD YMM0,YMM0,0x18 VPADDD YMM0,YMM0,YMM6 VPSRAD YMM0,YMM0,0x18 VPMOVSXBW XMM1,qword ptr [RDI + RBX*0x1 + -0x10] VPMOVDW XMM15,YMM15 VPADDW XMM15,XMM15,XMM7 VPMADDWD XMM15,XMM15,XMM1 VPADDD YMM10,YMM15,YMM10 VPMOVSXBW XMM15,qword ptr [RDI + RBX*0x1] VPMOVDW XMM0,YMM0 VPMADDWD XMM15,XMM0,XMM15 VPADDD YMM9,YMM15,YMM9 ADD RBX,0x8 VPADDD YMM12,YMM12,YMM8 VPADDD YMM13,YMM13,YMM8 VPADDD YMM14,YMM14,YMM8 CMP RBX,0x10 JNZ 0x0011dcb8 VEXTRACTI128 XMM11,YMM10,0x1 VPHADDD XMM10,XMM11,XMM10 VPHADDD XMM10,XMM10,XMM10 VPHADDD XMM10,XMM10,XMM10 VMOVD EBX,XMM10 VEXTRACTI128 XMM10,YMM9,0x1 VPHADDD XMM9,XMM10,XMM9 VPHADDD XMM9,XMM9,XMM9 VPHADDD XMM9,XMM9,XMM9 VMOVD EBP,XMM9 ADD EBP,EBX MOVZX R11D,word ptr [R11] VMOVSS XMM9,dword ptr [R10 + R11*0x4] MOV R11,RDX SHL R11,0x5 LEA R11,[R11 + RDX*0x2] MOVZX R11D,word ptr [R9 + R11*0x1] VMULSS XMM9,XMM9,dword ptr [R10 + R11*0x4] VCVTSI2SS XMM10,XMM2,EBP VFMADD231SS XMM0,XMM9,XMM10 INC RDX ADD RDI,0x22 ADD R8,0x16 CMP EAX,EDX JG 0x0011dc8a LAB_0011ddd1: VMOVSS dword ptr [RSI],XMM0 POP RBX POP RBP VZEROUPPER RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void ggml_vec_dot_q5_0_q8_0 (int param_1,int4 *param_2,int8 param_3,long param_4,int8 param_5, long param_6) { int1 auVar1 [16]; int1 auVar2 [16]; int1 auVar3 [16]; float fVar4; uint uVar5; uint uVar7; int1 (*pauVar8) [32]; ulong uVar9; long lVar10; long lVar11; long lVar12; int1 auVar13 [16]; int1 auVar14 [32]; int1 auVar15 [32]; int1 auVar16 [32]; int1 auVar17 [32]; int4 uVar18; int1 auVar19 [16]; int1 auVar20 [16]; int1 auVar21 [64]; int1 auVar22 [32]; int1 auVar23 [16]; int1 auVar24 [32]; int1 in_ZMM3 [64]; int1 auVar25 [32]; int1 auVar26 [32]; int1 auVar27 [32]; int1 auVar28 [32]; int1 auVar29 [32]; int1 auVar30 [16]; int1 auVar31 [16]; int1 auVar32 [32]; int1 auVar33 [64]; int1 auVar34 [64]; int1 auVar35 [32]; int1 auVar36 [16]; int iVar6; iVar6 = param_1 + 0x1f; if (-1 < param_1) { iVar6 = param_1; } uVar5 = iVar6 >> 5; if (param_1 < 0x20) { auVar14 = SUB6432(ZEXT864(0),0); uVar7 = 0; } else { pauVar8 = (int1 (*) [32])(param_6 + 2); auVar21 = ZEXT864(0); lVar11 = 0; auVar22._8_8_ = DAT_0014a828; auVar22._0_8_ = DAT_0014a828; auVar22._16_8_ = DAT_0014a828; auVar22._24_8_ = DAT_0014a828; auVar24 = vpcmpeqd_avx2(in_ZMM3._0_32_,in_ZMM3._0_32_); auVar25._8_8_ = DAT_0014a820; auVar25._0_8_ = DAT_0014a820; auVar25._16_8_ = DAT_0014a820; auVar25._24_8_ = DAT_0014a820; auVar27._2_2_ = DAT_0014a88e; auVar27._0_2_ = DAT_0014a88e; auVar27._4_2_ = DAT_0014a88e; auVar27._6_2_ = DAT_0014a88e; auVar27._8_2_ = DAT_0014a88e; auVar27._10_2_ = DAT_0014a88e; auVar27._12_2_ = DAT_0014a88e; auVar27._14_2_ = DAT_0014a88e; auVar27._16_2_ = DAT_0014a88e; auVar27._18_2_ = DAT_0014a88e; auVar27._20_2_ = DAT_0014a88e; auVar27._22_2_ = DAT_0014a88e; auVar27._24_2_ = DAT_0014a88e; auVar27._26_2_ = DAT_0014a88e; auVar27._28_2_ = DAT_0014a88e; auVar27._30_2_ = DAT_0014a88e; do { fVar4 = *(float *)(PTR_ggml_table_f32_f16_0015bf60 + (ulong)*(ushort *)(param_4 + lVar11) * 4) * *(float *)(PTR_ggml_table_f32_f16_0015bf60 + (ulong)*(ushort *)(pauVar8[-1] + 0x1e) * 4); auVar16._4_4_ = fVar4; auVar16._0_4_ = fVar4; auVar16._8_4_ = fVar4; auVar16._12_4_ = fVar4; auVar16._16_4_ = fVar4; auVar16._20_4_ = fVar4; auVar16._24_4_ = fVar4; auVar16._28_4_ = fVar4; auVar13 = *(int1 (*) [16])(param_4 + 6 + lVar11); auVar31 = vpsrlw_avx(auVar13,4); auVar15._0_16_ = ZEXT116(0) * auVar31 + ZEXT116(1) * auVar13; auVar15._16_16_ = ZEXT116(0) * SUB4816((int1 [48])0x0,0) + ZEXT116(1) * auVar31; auVar14 = vpermq_avx2(ZEXT432(*(uint *)(param_4 + 2 + lVar11)),0x44); auVar14 = vpshufb_avx2(auVar14,_DAT_0014a580); auVar14 = vpor_avx2(auVar14,auVar22); auVar14 = vpcmpeqb_avx2(auVar14,auVar24); auVar14 = vpternlogq_avx512vl(auVar14,auVar14,auVar14,0xf); auVar15 = vpternlogq_avx512vl(auVar14,auVar15,auVar25,0xe4); auVar14 = vpsignb_avx2(auVar15,auVar15); auVar15 = vpsignb_avx2(*pauVar8,auVar15); auVar14 = vpmaddubsw_avx2(auVar14,auVar15); auVar14 = vpmaddwd_avx2(auVar27,auVar14); auVar14 = vcvtdq2ps_avx(auVar14); auVar13 = vfmadd231ps_fma(auVar21._0_32_,auVar16,auVar14); auVar21 = ZEXT1664(auVar13); auVar14 = ZEXT1632(auVar13); pauVar8 = (int1 (*) [32])(pauVar8[1] + 2); lVar11 = lVar11 + 0x16; uVar7 = uVar5; } while ((ulong)uVar5 * 0x16 != lVar11); } auVar31._0_4_ = auVar14._16_4_ + auVar14._0_4_; auVar31._4_4_ = auVar14._20_4_ + auVar14._4_4_; auVar31._8_4_ = auVar14._24_4_ + auVar14._8_4_; auVar31._12_4_ = auVar14._28_4_ + auVar14._12_4_; auVar13 = vshufpd_avx(auVar31,auVar31,1); auVar19._0_4_ = auVar31._0_4_ + auVar13._0_4_; auVar19._4_4_ = auVar31._4_4_ + auVar13._4_4_; auVar19._8_4_ = auVar31._8_4_ + auVar13._8_4_; auVar19._12_4_ = auVar31._12_4_ + auVar13._12_4_; auVar13 = vhaddps_avx(auVar19,auVar19); uVar18 = auVar13._0_4_; if ((int)uVar7 < (int)uVar5) { uVar9 = (ulong)uVar7; lVar11 = uVar9 * 0x22 + param_6 + 0x12; auVar13._8_8_ = 0; auVar13._0_8_ = DAT_00149f20; auVar14 = vpmovsxbd_avx2(auVar13); auVar21 = ZEXT3264(auVar14); auVar23._4_4_ = DAT_0014a55c; auVar23._0_4_ = DAT_0014a55c; auVar23._8_4_ = DAT_0014a55c; auVar23._12_4_ = DAT_0014a55c; auVar14._16_4_ = DAT_0014a55c; auVar14._0_16_ = auVar23; auVar14._20_4_ = DAT_0014a55c; auVar14._24_4_ = DAT_0014a55c; auVar14._28_4_ = DAT_0014a55c; auVar24._4_4_ = DAT_0014a560; auVar24._0_4_ = DAT_0014a560; auVar24._8_4_ = DAT_0014a560; auVar24._12_4_ = DAT_0014a560; auVar24._16_4_ = DAT_0014a560; auVar24._20_4_ = DAT_0014a560; auVar24._24_4_ = DAT_0014a560; auVar24._28_4_ = DAT_0014a560; auVar26._4_4_ = DAT_0014a564; auVar26._0_4_ = DAT_0014a564; auVar26._8_4_ = DAT_0014a564; auVar26._12_4_ = DAT_0014a564; auVar26._16_4_ = DAT_0014a564; auVar26._20_4_ = DAT_0014a564; auVar26._24_4_ = DAT_0014a564; auVar26._28_4_ = DAT_0014a564; auVar28._4_4_ = DAT_00149df8; auVar28._0_4_ = DAT_00149df8; auVar28._8_4_ = DAT_00149df8; auVar28._12_4_ = DAT_00149df8; auVar28._16_4_ = DAT_00149df8; auVar28._20_4_ = DAT_00149df8; auVar28._24_4_ = DAT_00149df8; auVar28._28_4_ = DAT_00149df8; auVar29._4_4_ = DAT_0014a568; auVar29._0_4_ = DAT_0014a568; auVar29._8_4_ = DAT_0014a568; auVar29._12_4_ = DAT_0014a568; auVar29._16_4_ = DAT_0014a568; auVar29._20_4_ = DAT_0014a568; auVar29._24_4_ = DAT_0014a568; auVar29._28_4_ = DAT_0014a568; lVar12 = uVar9 * 0x16 + param_4 + 6; auVar30._2_2_ = DAT_0014a890; auVar30._0_2_ = DAT_0014a890; auVar30._4_2_ = DAT_0014a890; auVar30._6_2_ = DAT_0014a890; auVar30._8_2_ = DAT_0014a890; auVar30._10_2_ = DAT_0014a890; auVar30._12_2_ = DAT_0014a890; auVar30._14_2_ = DAT_0014a890; auVar32._4_4_ = DAT_00149de4; auVar32._0_4_ = DAT_00149de4; auVar32._8_4_ = DAT_00149de4; auVar32._12_4_ = DAT_00149de4; auVar32._16_4_ = DAT_00149de4; auVar32._20_4_ = DAT_00149de4; auVar32._24_4_ = DAT_00149de4; auVar32._28_4_ = DAT_00149de4; do { uVar18 = *(int4 *)(param_4 + 2 + uVar9 * 0x16); auVar35._4_4_ = uVar18; auVar35._0_4_ = uVar18; auVar35._8_4_ = uVar18; auVar35._12_4_ = uVar18; auVar35._16_4_ = uVar18; auVar35._20_4_ = uVar18; auVar35._24_4_ = uVar18; auVar35._28_4_ = uVar18; auVar34 = ZEXT1664((int1 [16])0x0); lVar10 = 0; auVar33 = ZEXT1664((int1 [16])0x0); auVar22 = auVar21._0_32_; auVar25 = auVar22; auVar27 = auVar22; do { auVar15 = vpsrlvd_avx2(auVar35,auVar22); auVar15 = vpslld_avx2(auVar15,4); auVar15 = vpand_avx2(auVar15,auVar14); auVar16 = vpsllvd_avx512vl(auVar24,auVar25); auVar16 = vpandd_avx512vl(auVar16,auVar35); auVar17 = vpaddd_avx512vl(auVar27,auVar26); auVar16 = vpsrlvd_avx512vl(auVar16,auVar17); auVar1._8_8_ = 0; auVar1._0_8_ = *(ulong *)(lVar12 + lVar10); auVar17 = vpmovzxbd_avx512vl(auVar1); auVar15 = vpternlogd_avx512vl(auVar15,auVar17,auVar28,0xf8); auVar17 = vpsrld_avx512vl(auVar17,4); auVar16 = vpord_avx512vl(auVar17,auVar16); auVar16 = vpslld_avx512vl(auVar16,0x18); auVar16 = vpaddd_avx512vl(auVar16,auVar29); auVar16 = vpsrad_avx512vl(auVar16,0x18); auVar2._8_8_ = 0; auVar2._0_8_ = *(ulong *)(lVar11 + -0x10 + lVar10); auVar31 = vpmovsxbw_avx512vl(auVar2); auVar21 = ZEXT1664(auVar31); auVar13 = vpmovdw_avx512vl(auVar15); auVar36._8_8_ = 0; auVar36._0_8_ = auVar13._0_8_; auVar13 = vpaddw_avx(auVar36,auVar30); auVar13 = vpmaddwd_avx512vl(auVar13,auVar31); auVar15 = vpaddd_avx2(ZEXT1632(auVar13),auVar34._0_32_); auVar34 = ZEXT3264(auVar15); auVar3._8_8_ = 0; auVar3._0_8_ = *(ulong *)(lVar11 + lVar10); auVar13 = vpmovsxbw_avx(auVar3); auVar31 = vpmovdw_avx512vl(auVar16); auVar20._8_8_ = 0; auVar20._0_8_ = auVar31._0_8_; auVar13 = vpmaddwd_avx512vl(auVar20,auVar13); auVar16 = vpaddd_avx2(ZEXT1632(auVar13),auVar33._0_32_); auVar33 = ZEXT3264(auVar16); lVar10 = lVar10 + 8; auVar22 = vpaddd_avx2(auVar22,auVar32); auVar25 = vpaddd_avx2(auVar25,auVar32); auVar27 = vpaddd_avx2(auVar27,auVar32); } while (lVar10 != 0x10); auVar13 = vphaddd_avx(auVar15._16_16_,auVar15._0_16_); auVar13 = vphaddd_avx(auVar13,auVar13); auVar13 = vphaddd_avx(auVar13,auVar13); auVar31 = vphaddd_avx(auVar16._16_16_,auVar16._0_16_); auVar31 = vphaddd_avx(auVar31,auVar31); auVar31 = vphaddd_avx(auVar31,auVar31); auVar13 = vcvtsi2ss_avx512f(auVar23,auVar31._0_4_ + auVar13._0_4_); auVar13 = vfmadd231ss_fma(auVar20,ZEXT416((uint)(*(float *)(PTR_ggml_table_f32_f16_0015bf60 + (ulong)*(ushort *) (param_4 + uVar9 * 0x16) * 4) * *(float *)(PTR_ggml_table_f32_f16_0015bf60 + (ulong)*(ushort *) (param_6 + uVar9 * 0x22) * 4 ))),auVar13); uVar18 = auVar13._0_4_; uVar9 = uVar9 + 1; lVar11 = lVar11 + 0x22; lVar12 = lVar12 + 0x16; } while ((int)uVar9 < (int)uVar5); } *param_2 = uVar18; return; }
31,599
stbi__tga_read_rgb16
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-stb-image.h
static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) { stbi__uint16 px = (stbi__uint16)stbi__get16le(s); stbi__uint16 fiveBitMask = 31; // we have 3 channels with 5bits each int r = (px >> 10) & fiveBitMask; int g = (px >> 5) & fiveBitMask; int b = px & fiveBitMask; // Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later out[0] = (stbi_uc)((r * 255)/31); out[1] = (stbi_uc)((g * 255)/31); out[2] = (stbi_uc)((b * 255)/31); // some people claim that the most significant bit might be used for alpha // (possibly if an alpha-bit is set in the "image descriptor byte") // but that only made 16bit test images completely translucent.. // so let's treat all 15 and 16bit TGAs as RGB with no alpha. }
O1
c
stbi__tga_read_rgb16: pushq %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 callq 0x15736 movzbl %al, %ebp movq %r14, %rdi callq 0x15736 movzbl %al, %eax movl %eax, %ecx shll $0x8, %ecx orl %ebp, %ecx shrl $0x2, %eax andl $0x1f, %eax shrl $0x5, %ecx andl $0x1f, %ecx andl $0x1f, %ebp movl %eax, %edx shll $0x8, %edx subl %eax, %edx imulq $0x8421085, %rdx, %rax # imm = 0x8421085 shrq $0x20, %rax movb %al, (%rbx) movl %ecx, %eax shll $0x8, %eax subl %ecx, %eax imulq $0x8421085, %rax, %rax # imm = 0x8421085 shrq $0x20, %rax movb %al, 0x1(%rbx) movl %ebp, %eax shll $0x8, %eax subl %ebp, %eax imulq $0x8421085, %rax, %rax # imm = 0x8421085 shrq $0x20, %rax movb %al, 0x2(%rbx) popq %rbx popq %r14 popq %rbp retq
stbi__tga_read_rgb16: push rbp push r14 push rbx mov rbx, rsi mov r14, rdi call stbi__get8 movzx ebp, al mov rdi, r14 call stbi__get8 movzx eax, al mov ecx, eax shl ecx, 8 or ecx, ebp shr eax, 2 and eax, 1Fh shr ecx, 5 and ecx, 1Fh and ebp, 1Fh mov edx, eax shl edx, 8 sub edx, eax imul rax, rdx, 8421085h shr rax, 20h mov [rbx], al mov eax, ecx shl eax, 8 sub eax, ecx imul rax, 8421085h shr rax, 20h mov [rbx+1], al mov eax, ebp shl eax, 8 sub eax, ebp imul rax, 8421085h shr rax, 20h mov [rbx+2], al pop rbx pop r14 pop rbp retn
unsigned long long stbi__tga_read_rgb16(long long a1, _BYTE *a2) { int v2; // ebp unsigned __int8 v3; // al unsigned long long result; // rax v2 = (unsigned __int8)stbi__get8(a1); v3 = stbi__get8(a1); *a2 = (138547333 * (unsigned long long)(255 * ((v3 >> 2) & 0x1Fu))) >> 32; a2[1] = (138547333 * (unsigned long long)(255 * (((unsigned int)(v2 | (v3 << 8)) >> 5) & 0x1F))) >> 32; result = (138547333 * (unsigned long long)(255 * (v2 & 0x1Fu))) >> 32; a2[2] = result; return result; }
stbi__tga_read_rgb16: PUSH RBP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI CALL 0x00115736 MOVZX EBP,AL MOV RDI,R14 CALL 0x00115736 MOVZX EAX,AL MOV ECX,EAX SHL ECX,0x8 OR ECX,EBP SHR EAX,0x2 AND EAX,0x1f SHR ECX,0x5 AND ECX,0x1f AND EBP,0x1f MOV EDX,EAX SHL EDX,0x8 SUB EDX,EAX IMUL RAX,RDX,0x8421085 SHR RAX,0x20 MOV byte ptr [RBX],AL MOV EAX,ECX SHL EAX,0x8 SUB EAX,ECX IMUL RAX,RAX,0x8421085 SHR RAX,0x20 MOV byte ptr [RBX + 0x1],AL MOV EAX,EBP SHL EAX,0x8 SUB EAX,EBP IMUL RAX,RAX,0x8421085 SHR RAX,0x20 MOV byte ptr [RBX + 0x2],AL POP RBX POP R14 POP RBP RET
void stbi__tga_read_rgb16(int8 param_1,int1 *param_2) { byte bVar1; byte bVar2; bVar1 = stbi__get8(); bVar2 = stbi__get8(param_1); *param_2 = (char)((ulong)((bVar2 >> 2 & 0x1f) * 0xff) * 0x8421085 >> 0x20); param_2[1] = (char)((ulong)(((ushort)(CONCAT11(bVar2,bVar1) >> 5) & 0x1f) * 0xff) * 0x8421085 >> 0x20); param_2[2] = (char)((ulong)((bVar1 & 0x1f) * 0xff) * 0x8421085 >> 0x20); return; }