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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
43,700 | stbi__tga_test(stbi__context*) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__tga_test(stbi__context *s)
{
int res = 0;
int sz, tga_color_type;
stbi__get8(s); // discard Offset
tga_color_type = stbi__get8(s); // color type
if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed
sz = stbi__get8(s); // image type
if ( tga_color_type == 1 ) { // colormapped (paletted) image
if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9
stbi__skip(s,4); // skip index of first colormap entry and number of entries
sz = stbi__get8(s); // check bits per palette color entry
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd;
stbi__skip(s,4); // skip image x and y origin
} else { // "normal" image w/o colormap
if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE
stbi__skip(s,9); // skip colormap specification and image x/y origin
}
if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width
if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height
sz = stbi__get8(s); // bits per pixel
if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd;
res = 1; // if we got this far, everything's good and we can return 1 instead of 0
errorEnd:
stbi__rewind(s);
return res;
} | O3 | c | stbi__tga_test(stbi__context*):
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0xc0(%rdi), %rax
movq 0xc8(%rdi), %rcx
cmpq %rcx, %rax
jb 0x3ba9a
cmpl $0x0, 0x30(%rbx)
je 0x3baa4
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
movq 0xc8(%rbx), %rcx
incq %rax
movq %rax, 0xc0(%rbx)
cmpq %rcx, %rax
jb 0x3babe
cmpl $0x0, 0x30(%rbx)
je 0x3bae1
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
movq %rax, %rcx
incq %rax
movq %rax, 0xc0(%rbx)
movb (%rcx), %dl
cmpb $0x1, %dl
ja 0x3bb4d
movq 0xc8(%rbx), %rcx
testb %dl, %dl
sete %r14b
jmp 0x3bae4
movb $0x1, %r14b
cmpq %rcx, %rax
jb 0x3bb02
cmpl $0x0, 0x30(%rbx)
je 0x3bb97
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rdx
movq %rdx, 0xc0(%rbx)
movb (%rax), %cl
movq %rdx, %rax
testb %r14b, %r14b
je 0x3bb54
andb $-0xa, %cl
cmpb $0x2, %cl
jne 0x3bb4d
cmpq $0x0, 0x10(%rbx)
je 0x3bb9e
movq 0xc8(%rbx), %rdx
movl %edx, %ecx
subl %eax, %ecx
cmpl $0x8, %ecx
jg 0x3bb9e
movq %rdx, 0xc0(%rbx)
movq 0x28(%rbx), %rdi
movl $0x9, %esi
subl %ecx, %esi
jmp 0x3bc29
xorl %ebp, %ebp
jmp 0x3bcb2
andb $-0x9, %cl
xorl %ebp, %ebp
cmpb $0x1, %cl
jne 0x3bcb2
cmpq $0x0, 0x10(%rbx)
je 0x3bba7
movq 0xc8(%rbx), %rdx
movl %edx, %ecx
subl %eax, %ecx
cmpl $0x3, %ecx
jg 0x3bba7
movq %rdx, 0xc0(%rbx)
movq 0x28(%rbx), %rdi
movl $0x4, %esi
subl %ecx, %esi
callq *0x18(%rbx)
movq 0xc0(%rbx), %rax
jmp 0x3bbb2
xorl %ecx, %ecx
jmp 0x3bb12
addq $0x9, %rax
jmp 0x3bc32
addq $0x4, %rax
movq %rax, 0xc0(%rbx)
cmpq 0xc8(%rbx), %rax
jb 0x3bbd4
cmpl $0x0, 0x30(%rbx)
je 0x3bcb2
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
movzbl (%rax), %edx
cmpq $0x20, %rdx
ja 0x3bcb2
movabsq $0x101018100, %rsi # imm = 0x101018100
btq %rdx, %rsi
jae 0x3bcb2
cmpq $0x0, 0x10(%rbx)
je 0x3bc2e
movq 0xc8(%rbx), %rsi
movl %esi, %edx
subl %ecx, %edx
cmpl $0x3, %edx
jg 0x3bc2e
movq %rsi, 0xc0(%rbx)
movq 0x28(%rbx), %rdi
movl $0x4, %esi
subl %edx, %esi
callq *0x18(%rbx)
jmp 0x3bc39
addq $0x5, %rax
movq %rax, 0xc0(%rbx)
movq %rbx, %rdi
callq 0x3e945
xorl %ebp, %ebp
testl %eax, %eax
je 0x3bcb2
movq %rbx, %rdi
callq 0x3e945
testl %eax, %eax
je 0x3bcb2
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x3bc78
cmpl $0x0, 0x30(%rbx)
je 0x3bcc7
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
movb (%rax), %al
testb %r14b, %r14b
je 0x3bca8
cmpb $0x20, %al
ja 0x3bcb2
movzbl %al, %eax
movabsq $0x101018100, %rcx # imm = 0x101018100
btq %rax, %rcx
jae 0x3bcb2
movl $0x1, %ebp
jmp 0x3bcb2
addb $-0x8, %al
xorl %ebp, %ebp
testb $-0x9, %al
sete %bpl
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
jmp 0x3bc85
| _ZL14stbi__tga_testP13stbi__context:
push rbp
push r14
push rbx
mov rbx, rdi
mov rax, [rdi+0C0h]
mov rcx, [rdi+0C8h]
cmp rax, rcx
jb short loc_3BA9A
cmp dword ptr [rbx+30h], 0
jz short loc_3BAA4
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
mov rcx, [rbx+0C8h]
loc_3BA9A:
inc rax
mov [rbx+0C0h], rax
loc_3BAA4:
cmp rax, rcx
jb short loc_3BABE
cmp dword ptr [rbx+30h], 0
jz short loc_3BAE1
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3BABE:
mov rcx, rax
inc rax
mov [rbx+0C0h], rax
mov dl, [rcx]
cmp dl, 1
ja short loc_3BB4D
mov rcx, [rbx+0C8h]
test dl, dl
setz r14b
jmp short loc_3BAE4
loc_3BAE1:
mov r14b, 1
loc_3BAE4:
cmp rax, rcx
jb short loc_3BB02
cmp dword ptr [rbx+30h], 0
jz loc_3BB97
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3BB02:
lea rdx, [rax+1]
mov [rbx+0C0h], rdx
mov cl, [rax]
mov rax, rdx
loc_3BB12:
test r14b, r14b
jz short loc_3BB54
and cl, 0F6h
cmp cl, 2
jnz short loc_3BB4D
cmp qword ptr [rbx+10h], 0
jz short loc_3BB9E
mov rdx, [rbx+0C8h]
mov ecx, edx
sub ecx, eax
cmp ecx, 8
jg short loc_3BB9E
mov [rbx+0C0h], rdx
mov rdi, [rbx+28h]
mov esi, 9
sub esi, ecx
jmp loc_3BC29
loc_3BB4D:
xor ebp, ebp
jmp loc_3BCB2
loc_3BB54:
and cl, 0F7h
xor ebp, ebp
cmp cl, 1
jnz loc_3BCB2
cmp qword ptr [rbx+10h], 0
jz short loc_3BBA7
mov rdx, [rbx+0C8h]
mov ecx, edx
sub ecx, eax
cmp ecx, 3
jg short loc_3BBA7
mov [rbx+0C0h], rdx
mov rdi, [rbx+28h]
mov esi, 4
sub esi, ecx
call qword ptr [rbx+18h]
mov rax, [rbx+0C0h]
jmp short loc_3BBB2
loc_3BB97:
xor ecx, ecx
jmp loc_3BB12
loc_3BB9E:
add rax, 9
jmp loc_3BC32
loc_3BBA7:
add rax, 4
mov [rbx+0C0h], rax
loc_3BBB2:
cmp rax, [rbx+0C8h]
jb short loc_3BBD4
cmp dword ptr [rbx+30h], 0
jz loc_3BCB2
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3BBD4:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
movzx edx, byte ptr [rax]
cmp rdx, 20h ; ' '
ja loc_3BCB2
mov rsi, 101018100h
bt rsi, rdx
jnb loc_3BCB2
cmp qword ptr [rbx+10h], 0
jz short loc_3BC2E
mov rsi, [rbx+0C8h]
mov edx, esi
sub edx, ecx
cmp edx, 3
jg short loc_3BC2E
mov [rbx+0C0h], rsi
mov rdi, [rbx+28h]
mov esi, 4
sub esi, edx
loc_3BC29:
call qword ptr [rbx+18h]
jmp short loc_3BC39
loc_3BC2E:
add rax, 5
loc_3BC32:
mov [rbx+0C0h], rax
loc_3BC39:
mov rdi, rbx
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
xor ebp, ebp
test eax, eax
jz short loc_3BCB2
mov rdi, rbx
call _ZL13stbi__get16leP13stbi__context; stbi__get16le(stbi__context *)
test eax, eax
jz short loc_3BCB2
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_3BC78
cmp dword ptr [rbx+30h], 0
jz short loc_3BCC7
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3BC78:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
mov al, [rax]
loc_3BC85:
test r14b, r14b
jz short loc_3BCA8
cmp al, 20h ; ' '
ja short loc_3BCB2
movzx eax, al
mov rcx, 101018100h
bt rcx, rax
jnb short loc_3BCB2
mov ebp, 1
jmp short loc_3BCB2
loc_3BCA8:
add al, 0F8h
xor ebp, ebp
test al, 0F7h
setz bpl
loc_3BCB2:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
mov eax, ebp
pop rbx
pop r14
pop rbp
retn
loc_3BCC7:
xor eax, eax
jmp short loc_3BC85
| _BOOL8 stbi__tga_test(long long a1)
{
char *v2; // rax
unsigned long long v3; // rcx
char *v4; // rcx
char v5; // dl
bool v6; // r14
char v7; // cl
int v8; // ecx
long long v9; // rdi
long long v10; // rsi
BOOL v11; // ebp
int v12; // ecx
unsigned __int8 *v13; // rax
unsigned __int8 *v14; // rax
unsigned long long v15; // rdx
long long v16; // rsi
int v17; // edx
unsigned __int8 *v18; // rax
unsigned __int8 v19; // al
long long v20; // rcx
v2 = *(char **)(a1 + 192);
v3 = *(_QWORD *)(a1 + 200);
if ( (unsigned long long)v2 >= v3 )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_5;
stbi__refill_buffer(a1);
v2 = *(char **)(a1 + 192);
v3 = *(_QWORD *)(a1 + 200);
}
*(_QWORD *)(a1 + 192) = ++v2;
LABEL_5:
if ( (unsigned long long)v2 >= v3 )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v6 = 1;
goto LABEL_11;
}
stbi__refill_buffer(a1);
v2 = *(char **)(a1 + 192);
}
v4 = v2++;
*(_QWORD *)(a1 + 192) = v2;
v5 = *v4;
if ( (unsigned __int8)*v4 > 1u )
goto LABEL_20;
v3 = *(_QWORD *)(a1 + 200);
v6 = v5 == 0;
LABEL_11:
if ( (unsigned long long)v2 < v3 )
{
LABEL_14:
*(_QWORD *)(a1 + 192) = v2 + 1;
v7 = *v2++;
goto LABEL_15;
}
if ( *(_DWORD *)(a1 + 48) )
{
stbi__refill_buffer(a1);
v2 = *(char **)(a1 + 192);
goto LABEL_14;
}
v7 = 0;
LABEL_15:
if ( v6 )
{
if ( (v7 & 0xF6) == 2 )
{
if ( *(_QWORD *)(a1 + 16) )
{
v8 = *(_QWORD *)(a1 + 200) - (_DWORD)v2;
if ( v8 <= 8 )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
v9 = *(_QWORD *)(a1 + 40);
v10 = (unsigned int)(9 - v8);
LABEL_36:
(*(void ( **)(long long, long long))(a1 + 24))(v9, v10);
LABEL_39:
v11 = 0;
if ( !(unsigned int)stbi__get16le(a1) || !(unsigned int)stbi__get16le(a1) )
goto LABEL_50;
v18 = *(unsigned __int8 **)(a1 + 192);
if ( (unsigned long long)v18 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v19 = 0;
LABEL_45:
if ( v6 )
{
if ( v19 <= 0x20u )
{
v20 = 0x101018100LL;
if ( _bittest64(&v20, v19) )
v11 = 1;
}
}
else
{
v11 = ((v19 - 8) & 0xF7) == 0;
}
goto LABEL_50;
}
stbi__refill_buffer(a1);
v18 = *(unsigned __int8 **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v18 + 1;
v19 = *v18;
goto LABEL_45;
}
}
v14 = (unsigned __int8 *)(v2 + 9);
goto LABEL_38;
}
LABEL_20:
v11 = 0;
goto LABEL_50;
}
v11 = 0;
if ( (v7 & 0xF7) == 1 )
{
if ( *(_QWORD *)(a1 + 16) && (v12 = *(_QWORD *)(a1 + 200) - (_DWORD)v2, v12 <= 3) )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
(*(void ( **)(_QWORD, _QWORD))(a1 + 24))(*(_QWORD *)(a1 + 40), (unsigned int)(4 - v12));
v13 = *(unsigned __int8 **)(a1 + 192);
}
else
{
v13 = (unsigned __int8 *)(v2 + 4);
*(_QWORD *)(a1 + 192) = v13;
}
if ( (unsigned long long)v13 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_50;
stbi__refill_buffer(a1);
v13 = *(unsigned __int8 **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v13 + 1;
v15 = *v13;
if ( v15 <= 0x20 )
{
v16 = 0x101018100LL;
if ( _bittest64(&v16, v15) )
{
if ( *(_QWORD *)(a1 + 16) )
{
v17 = *(_QWORD *)(a1 + 200) - ((_DWORD)v13 + 1);
if ( v17 <= 3 )
{
*(_QWORD *)(a1 + 192) = *(_QWORD *)(a1 + 200);
v9 = *(_QWORD *)(a1 + 40);
v10 = (unsigned int)(4 - v17);
goto LABEL_36;
}
}
v14 = v13 + 5;
LABEL_38:
*(_QWORD *)(a1 + 192) = v14;
goto LABEL_39;
}
}
}
LABEL_50:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return v11;
}
| stbi__tga_test:
PUSH RBP
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0xc0]
MOV RCX,qword ptr [RDI + 0xc8]
CMP RAX,RCX
JC 0x0013ba9a
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013baa4
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
MOV RCX,qword ptr [RBX + 0xc8]
LAB_0013ba9a:
INC RAX
MOV qword ptr [RBX + 0xc0],RAX
LAB_0013baa4:
CMP RAX,RCX
JC 0x0013babe
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013bae1
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013babe:
MOV RCX,RAX
INC RAX
MOV qword ptr [RBX + 0xc0],RAX
MOV DL,byte ptr [RCX]
CMP DL,0x1
JA 0x0013bb4d
MOV RCX,qword ptr [RBX + 0xc8]
TEST DL,DL
SETZ R14B
JMP 0x0013bae4
LAB_0013bae1:
MOV R14B,0x1
LAB_0013bae4:
CMP RAX,RCX
JC 0x0013bb02
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013bb97
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013bb02:
LEA RDX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RDX
MOV CL,byte ptr [RAX]
MOV RAX,RDX
LAB_0013bb12:
TEST R14B,R14B
JZ 0x0013bb54
AND CL,0xf6
CMP CL,0x2
JNZ 0x0013bb4d
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0013bb9e
MOV RDX,qword ptr [RBX + 0xc8]
MOV ECX,EDX
SUB ECX,EAX
CMP ECX,0x8
JG 0x0013bb9e
MOV qword ptr [RBX + 0xc0],RDX
MOV RDI,qword ptr [RBX + 0x28]
MOV ESI,0x9
SUB ESI,ECX
JMP 0x0013bc29
LAB_0013bb4d:
XOR EBP,EBP
JMP 0x0013bcb2
LAB_0013bb54:
AND CL,0xf7
XOR EBP,EBP
CMP CL,0x1
JNZ 0x0013bcb2
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0013bba7
MOV RDX,qword ptr [RBX + 0xc8]
MOV ECX,EDX
SUB ECX,EAX
CMP ECX,0x3
JG 0x0013bba7
MOV qword ptr [RBX + 0xc0],RDX
MOV RDI,qword ptr [RBX + 0x28]
MOV ESI,0x4
SUB ESI,ECX
CALL qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RBX + 0xc0]
JMP 0x0013bbb2
LAB_0013bb97:
XOR ECX,ECX
JMP 0x0013bb12
LAB_0013bb9e:
ADD RAX,0x9
JMP 0x0013bc32
LAB_0013bba7:
ADD RAX,0x4
MOV qword ptr [RBX + 0xc0],RAX
LAB_0013bbb2:
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x0013bbd4
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013bcb2
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013bbd4:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
MOVZX EDX,byte ptr [RAX]
CMP RDX,0x20
JA 0x0013bcb2
MOV RSI,0x101018100
BT RSI,RDX
JNC 0x0013bcb2
CMP qword ptr [RBX + 0x10],0x0
JZ 0x0013bc2e
MOV RSI,qword ptr [RBX + 0xc8]
MOV EDX,ESI
SUB EDX,ECX
CMP EDX,0x3
JG 0x0013bc2e
MOV qword ptr [RBX + 0xc0],RSI
MOV RDI,qword ptr [RBX + 0x28]
MOV ESI,0x4
SUB ESI,EDX
LAB_0013bc29:
CALL qword ptr [RBX + 0x18]
JMP 0x0013bc39
LAB_0013bc2e:
ADD RAX,0x5
LAB_0013bc32:
MOV qword ptr [RBX + 0xc0],RAX
LAB_0013bc39:
MOV RDI,RBX
CALL 0x0013e945
XOR EBP,EBP
TEST EAX,EAX
JZ 0x0013bcb2
MOV RDI,RBX
CALL 0x0013e945
TEST EAX,EAX
JZ 0x0013bcb2
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x0013bc78
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013bcc7
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013bc78:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
MOV AL,byte ptr [RAX]
LAB_0013bc85:
TEST R14B,R14B
JZ 0x0013bca8
CMP AL,0x20
JA 0x0013bcb2
MOVZX EAX,AL
MOV RCX,0x101018100
BT RCX,RAX
JNC 0x0013bcb2
MOV EBP,0x1
JMP 0x0013bcb2
LAB_0013bca8:
ADD AL,0xf8
XOR EBP,EBP
TEST AL,0xf7
SETZ BPL
LAB_0013bcb2:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
MOV EAX,EBP
POP RBX
POP R14
POP RBP
RET
LAB_0013bcc7:
XOR EAX,EAX
JMP 0x0013bc85
|
/* stbi__tga_test(stbi__context*) */
bool stbi__tga_test(stbi__context *param_1)
{
byte *pbVar1;
byte *pbVar2;
ulong uVar3;
byte bVar4;
int iVar5;
int8 uVar6;
bool bVar7;
bool bVar8;
pbVar1 = *(byte **)(param_1 + 0xc0);
pbVar2 = *(byte **)(param_1 + 200);
if (pbVar1 < pbVar2) {
LAB_0013ba9a:
pbVar1 = pbVar1 + 1;
*(byte **)(param_1 + 0xc0) = pbVar1;
}
else if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar1 = *(byte **)(param_1 + 0xc0);
pbVar2 = *(byte **)(param_1 + 200);
goto LAB_0013ba9a;
}
if (pbVar1 < pbVar2) {
LAB_0013babe:
*(byte **)(param_1 + 0xc0) = pbVar1 + 1;
if (*pbVar1 < 2) {
pbVar2 = *(byte **)(param_1 + 200);
bVar7 = *pbVar1 == 0;
pbVar1 = pbVar1 + 1;
goto LAB_0013bae4;
}
LAB_0013bb4d:
bVar8 = false;
goto LAB_0013bcb2;
}
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar1 = *(byte **)(param_1 + 0xc0);
goto LAB_0013babe;
}
bVar7 = true;
LAB_0013bae4:
if (pbVar1 < pbVar2) {
LAB_0013bb02:
*(byte **)(param_1 + 0xc0) = pbVar1 + 1;
bVar4 = *pbVar1;
pbVar1 = pbVar1 + 1;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar1 = *(byte **)(param_1 + 0xc0);
goto LAB_0013bb02;
}
bVar4 = 0;
}
if (bVar7) {
if ((bVar4 & 0xf6) != 2) goto LAB_0013bb4d;
if (*(long *)(param_1 + 0x10) == 0) {
LAB_0013bb9e:
pbVar1 = pbVar1 + 9;
goto LAB_0013bc32;
}
iVar5 = (int)*(int8 *)(param_1 + 200) - (int)pbVar1;
if (8 < iVar5) goto LAB_0013bb9e;
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
uVar6 = *(int8 *)(param_1 + 0x28);
iVar5 = 9 - iVar5;
LAB_0013bc29:
(**(code **)(param_1 + 0x18))(uVar6,iVar5);
}
else {
bVar8 = false;
if ((bVar4 & 0xf7) != 1) goto LAB_0013bcb2;
if (*(long *)(param_1 + 0x10) == 0) {
LAB_0013bba7:
pbVar1 = pbVar1 + 4;
*(byte **)(param_1 + 0xc0) = pbVar1;
}
else {
iVar5 = (int)*(int8 *)(param_1 + 200) - (int)pbVar1;
if (3 < iVar5) goto LAB_0013bba7;
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
(**(code **)(param_1 + 0x18))(*(int8 *)(param_1 + 0x28),4 - iVar5);
pbVar1 = *(byte **)(param_1 + 0xc0);
}
if (*(byte **)(param_1 + 200) <= pbVar1) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013bcb2;
stbi__refill_buffer(param_1);
pbVar1 = *(byte **)(param_1 + 0xc0);
}
*(byte **)(param_1 + 0xc0) = pbVar1 + 1;
if ((0x20 < (ulong)*pbVar1) || ((0x101018100U >> ((ulong)*pbVar1 & 0x3f) & 1) == 0))
goto LAB_0013bcb2;
if (*(long *)(param_1 + 0x10) != 0) {
iVar5 = (int)*(int8 *)(param_1 + 200) - (int)(pbVar1 + 1);
if (iVar5 < 4) {
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 200);
uVar6 = *(int8 *)(param_1 + 0x28);
iVar5 = 4 - iVar5;
goto LAB_0013bc29;
}
}
pbVar1 = pbVar1 + 5;
LAB_0013bc32:
*(byte **)(param_1 + 0xc0) = pbVar1;
}
iVar5 = stbi__get16le(param_1);
bVar8 = false;
if (iVar5 == 0) goto LAB_0013bcb2;
iVar5 = stbi__get16le(param_1);
if (iVar5 == 0) goto LAB_0013bcb2;
pbVar2 = *(byte **)(param_1 + 0xc0);
if (pbVar2 < *(byte **)(param_1 + 200)) {
LAB_0013bc78:
*(byte **)(param_1 + 0xc0) = pbVar2 + 1;
uVar3 = (ulong)*pbVar2;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pbVar2 = *(byte **)(param_1 + 0xc0);
goto LAB_0013bc78;
}
uVar3 = 0;
}
if (bVar7) {
if (((byte)uVar3 < 0x21) && (bVar8 = false, (0x101018100U >> (uVar3 & 0x3f) & 1) != 0)) {
bVar8 = true;
}
}
else {
bVar8 = ((byte)uVar3 - 8 & 0xf7) == 0;
}
LAB_0013bcb2:
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return bVar8;
}
| |
43,701 | uf_prespace | eloqsql/storage/myisam/mi_packrec.c | static void uf_prespace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
} | O3 | c | uf_prespace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rsi), %ecx
movl 0x1c(%rdi), %r13d
cmpl %r13d, %ecx
jae 0x84a3c
subl %ecx, %r13d
leaq 0x5e63a(%rip), %rax # 0xe3040
movq %rbx, -0x30(%rbp)
movl (%rax,%rcx,4), %ebx
andl (%r14), %ebx
movl %r13d, %ecx
shll %cl, %ebx
movq %r14, %rdi
callq 0x8365d
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %ebx, %eax
movq -0x30(%rbp), %rbx
jmp 0x84a56
movl (%r14), %eax
subl %r13d, %ecx
movl %ecx, 0x4(%r14)
shrl %cl, %eax
movl 0x1c(%r15), %ecx
leaq 0x5e5ed(%rip), %rdx # 0xe3040
andl (%rdx,%rcx,4), %eax
movl %eax, %edx
leaq (%r12,%rdx), %r13
cmpq %rbx, %r13
jbe 0x84a6b
movl $0x1, 0x28(%r14)
jmp 0x84a9c
movq %r12, %rdi
movl $0x20, %esi
callq 0x292a0
cmpq %rbx, %r13
je 0x84a9c
movq %r15, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x83f4e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| uf_prespace_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov r15, rdi
mov ecx, [rsi+4]
mov r13d, [rdi+1Ch]
cmp ecx, r13d
jnb short loc_84A3C
sub r13d, ecx
lea rax, mask_0
mov [rbp+var_30], rbx
mov ebx, [rax+rcx*4]
and ebx, [r14]
mov ecx, r13d
shl ebx, cl
mov rdi, r14
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r13d
mov [r14+4], eax
mov eax, [r14]
neg r13d
mov ecx, r13d
shr eax, cl
add eax, ebx
mov rbx, [rbp+var_30]
jmp short loc_84A56
loc_84A3C:
mov eax, [r14]
sub ecx, r13d
mov [r14+4], ecx
shr eax, cl
mov ecx, [r15+1Ch]
lea rdx, mask_0
and eax, [rdx+rcx*4]
loc_84A56:
mov edx, eax
lea r13, [r12+rdx]
cmp r13, rbx
jbe short loc_84A6B
mov dword ptr [r14+28h], 1
jmp short loc_84A9C
loc_84A6B:
mov rdi, r12
mov esi, 20h ; ' '
call _memset
cmp r13, rbx
jz short loc_84A9C
mov rdi, r15
mov rsi, r14
mov rdx, r13
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
loc_84A9C:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long uf_prespace_0(long long a1, unsigned int *a2, long long a3, _BYTE *a4)
{
long long v6; // rcx
unsigned int v7; // r13d
int v8; // r13d
int v9; // ebx
long long result; // rax
unsigned int v11; // eax
unsigned int v12; // ecx
_BYTE *v13; // r13
_BYTE *v14; // [rsp+0h] [rbp-30h]
v6 = a2[1];
v7 = *(_DWORD *)(a1 + 28);
if ( (unsigned int)v6 >= v7 )
{
v11 = *a2;
v12 = v6 - v7;
a2[1] = v12;
result = mask_0[*(unsigned int *)(a1 + 28)] & (v11 >> v12);
}
else
{
v8 = v7 - v6;
v14 = a4;
v9 = (*a2 & mask_0[v6]) << v8;
fill_buffer_0((long long)a2);
a2[1] = 32 - v8;
result = v9 + (*a2 >> -(char)v8);
a4 = v14;
}
v13 = (_BYTE *)(a3 + (unsigned int)result);
if ( v13 <= a4 )
{
result = memset(a3, 32LL, (unsigned int)result);
if ( v13 != a4 )
return (long long)decode_bytes_0(a1, (long long)a2, v13, a4);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_prespace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV R15,RDI
MOV ECX,dword ptr [RSI + 0x4]
MOV R13D,dword ptr [RDI + 0x1c]
CMP ECX,R13D
JNC 0x00184a3c
SUB R13D,ECX
LEA RAX,[0x1e3040]
MOV qword ptr [RBP + -0x30],RBX
MOV EBX,dword ptr [RAX + RCX*0x4]
AND EBX,dword ptr [R14]
MOV ECX,R13D
SHL EBX,CL
MOV RDI,R14
CALL 0x0018365d
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD EAX,EBX
MOV RBX,qword ptr [RBP + -0x30]
JMP 0x00184a56
LAB_00184a3c:
MOV EAX,dword ptr [R14]
SUB ECX,R13D
MOV dword ptr [R14 + 0x4],ECX
SHR EAX,CL
MOV ECX,dword ptr [R15 + 0x1c]
LEA RDX,[0x1e3040]
AND EAX,dword ptr [RDX + RCX*0x4]
LAB_00184a56:
MOV EDX,EAX
LEA R13,[R12 + RDX*0x1]
CMP R13,RBX
JBE 0x00184a6b
MOV dword ptr [R14 + 0x28],0x1
JMP 0x00184a9c
LAB_00184a6b:
MOV RDI,R12
MOV ESI,0x20
CALL 0x001292a0
CMP R13,RBX
JZ 0x00184a9c
MOV RDI,R15
MOV RSI,R14
MOV RDX,R13
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00183f4e
LAB_00184a9c:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void uf_prespace(long param_1,uint *param_2,void *param_3,ulong param_4)
{
ulong uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
byte bVar6;
uVar5 = param_2[1];
uVar2 = *(uint *)(param_1 + 0x1c);
if (uVar5 < uVar2) {
uVar3 = (&mask)[uVar5];
uVar4 = *param_2;
bVar6 = (byte)(uVar2 - uVar5);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar2 - uVar5);
uVar5 = (*param_2 >> (-bVar6 & 0x1f)) + ((uVar3 & uVar4) << (bVar6 & 0x1f));
}
else {
param_2[1] = uVar5 - uVar2;
uVar5 = *param_2 >> ((byte)(uVar5 - uVar2) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
uVar1 = (long)param_3 + (ulong)uVar5;
if (param_4 < uVar1) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)uVar5);
if (uVar1 != param_4) {
decode_bytes(param_1,param_2,uVar1,param_4);
return;
}
}
return;
}
| |
43,702 | Catch::ReusableStringStream& Catch::ReusableStringStream::operator<<<char const*>(char const* const&) | 11AgReS1SoR11[P]Graph/build_O3/_deps/catch2-src/src/catch2/../catch2/internal/catch_reusable_string_stream.hpp | auto operator << ( T const& value ) -> ReusableStringStream& {
*m_oss << value;
return *this;
} | O3 | cpp | Catch::ReusableStringStream& Catch::ReusableStringStream::operator<<<char const*>(char const* const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %r14
movq (%rsi), %r15
testq %r15, %r15
je 0x23bd6
movq %r15, %rdi
callq 0x141f0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x14600
jmp 0x23bee
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x148e0
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
| _ZN5Catch20ReusableStringStreamlsIPKcEERS0_RKT_:
push r15
push r14
push rbx
mov rbx, rdi
mov r14, [rdi+8]
mov r15, [rsi]
test r15, r15
jz short loc_23BD6
mov rdi, r15
call _strlen
mov rdi, r14
mov rsi, r15
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_23BEE
loc_23BD6:
mov rax, [r14]
mov rax, [rax-18h]
lea rdi, [r14+rax]
mov esi, [r14+rax+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_23BEE:
mov rax, rbx
pop rbx
pop r14
pop r15
retn
| long long Catch::ReusableStringStream::operator<<<char const*>(long long a1, _QWORD *a2)
{
_QWORD *v2; // r14
long long v3; // r15
long long v4; // rax
v2 = *(_QWORD **)(a1 + 8);
v3 = *a2;
if ( *a2 )
{
v4 = strlen(*a2);
std::__ostream_insert<char,std::char_traits<char>>(v2, v3, v4);
}
else
{
std::ios::clear((char *)v2 + *(_QWORD *)(*v2 - 24LL), *(_DWORD *)((char *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) | 1u);
}
return a1;
}
| operator<<:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV R14,qword ptr [RDI + 0x8]
MOV R15,qword ptr [RSI]
TEST R15,R15
JZ 0x00123bd6
MOV RDI,R15
CALL 0x001141f0
MOV RDI,R14
MOV RSI,R15
MOV RDX,RAX
CALL 0x00114600
JMP 0x00123bee
LAB_00123bd6:
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + -0x18]
LEA RDI,[R14 + RAX*0x1]
MOV ESI,dword ptr [R14 + RAX*0x1 + 0x20]
OR ESI,0x1
CALL 0x001148e0
LAB_00123bee:
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* Catch::ReusableStringStream& Catch::ReusableStringStream::TEMPNAMEPLACEHOLDERVALUE(char const*
const&) */
ReusableStringStream * __thiscall
Catch::ReusableStringStream::operator<<(ReusableStringStream *this,char **param_1)
{
ostream *poVar1;
char *__s;
size_t sVar2;
poVar1 = *(ostream **)(this + 8);
__s = *param_1;
if (__s == (char *)0x0) {
std::ios::clear(poVar1 + *(long *)(*(long *)poVar1 + -0x18),
*(uint *)(poVar1 + *(long *)(*(long *)poVar1 + -0x18) + 0x20) | 1);
}
else {
sVar2 = strlen(__s);
std::__ostream_insert<char,std::char_traits<char>>(poVar1,__s,sVar2);
}
return this;
}
| |
43,703 | my_caseup_str_mb | eloqsql/strings/ctype-mb.c | size_t my_caseup_str_mb(CHARSET_INFO * cs, char *str)
{
register uint32 l;
register const uchar *map= cs->to_upper;
char *str_orig= str;
while (*str)
{
/* Pointing after the '\0' is safe here. */
if ((l= my_ismbchar(cs, str, str + cs->mbmaxlen)))
str+= l;
else
{
*str= (char) map[(uchar)*str];
str++;
}
}
return (size_t) (str - str_orig);
} | O0 | c | my_caseup_str_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
cmpb $0x0, (%rax)
je 0x467a7
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movl 0x9c(%rax), %eax
addq %rax, %rdx
callq 0x467c0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x46785
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x467a5
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
movzbl (%rcx), %ecx
movb (%rax,%rcx), %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x46744
movq -0x10(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_caseup_str_mb:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov rax, [rax+50h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
loc_46744:
mov rax, [rbp+var_10]
cmp byte ptr [rax], 0
jz short loc_467A7
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
mov rax, [rbp+var_8]
mov eax, [rax+9Ch]
add rdx, rax
call my_ismbchar_0
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_46785
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
jmp short loc_467A5
loc_46785:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
movzx ecx, byte ptr [rcx]
mov cl, [rax+rcx]
mov rax, [rbp+var_10]
mov [rax], cl
mov rax, [rbp+var_10]
add rax, 1
mov [rbp+var_10], rax
loc_467A5:
jmp short loc_46744
loc_467A7:
mov rax, [rbp+var_10]
mov rcx, [rbp+var_28]
sub rax, rcx
add rsp, 30h
pop rbp
retn
| _BYTE * my_caseup_str_mb(long long a1, _BYTE *a2)
{
long long v3; // [rsp+10h] [rbp-20h]
unsigned int v4; // [rsp+1Ch] [rbp-14h]
_BYTE *v5; // [rsp+20h] [rbp-10h]
v5 = a2;
v3 = *(_QWORD *)(a1 + 80);
while ( *v5 )
{
v4 = my_ismbchar_0(a1, v5, &v5[*(unsigned int *)(a1 + 156)]);
if ( v4 )
{
v5 += v4;
}
else
{
*v5 = *(_BYTE *)(v3 + (unsigned __int8)*v5);
++v5;
}
}
return (_BYTE *)(v5 - a2);
}
| my_caseup_str_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x50]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
LAB_00146744:
MOV RAX,qword ptr [RBP + -0x10]
CMP byte ptr [RAX],0x0
JZ 0x001467a7
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x9c]
ADD RDX,RAX
CALL 0x001467c0
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x00146785
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x001467a5
LAB_00146785:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
MOVZX ECX,byte ptr [RCX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_001467a5:
JMP 0x00146744
LAB_001467a7:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
ADD RSP,0x30
POP RBP
RET
|
long my_caseup_str_mb(long param_1,byte *param_2)
{
long lVar1;
uint uVar2;
byte *local_18;
lVar1 = *(long *)(param_1 + 0x50);
local_18 = param_2;
while (*local_18 != 0) {
uVar2 = my_ismbchar(param_1,local_18,local_18 + *(uint *)(param_1 + 0x9c));
if (uVar2 == 0) {
*local_18 = *(byte *)(lVar1 + (ulong)*local_18);
local_18 = local_18 + 1;
}
else {
local_18 = local_18 + uVar2;
}
}
return (long)local_18 - (long)param_2;
}
| |
43,704 | std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char) | monkey531[P]llama/common/common.h | static std::vector<T> string_split(const std::string & str, char delim) {
static_assert(!std::is_same<T, std::string>::value, "Please use the specialized version for std::string");
std::vector<T> values;
std::istringstream str_stream(str);
std::string token;
while (std::getline(str_stream, token, delim)) {
T value;
std::istringstream token_stream(token);
token_stream >> value;
values.push_back(value);
}
return values;
} | O3 | c | std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x328, %rsp # imm = 0x328
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %r14d, %r14d
movq %r14, 0x10(%rdi)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x8, %edx
callq 0x1aed0
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r14, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %r12
leaq 0x1a8(%rsp), %r13
leaq 0x4(%rsp), %rbp
movq 0xda625(%rip), %r14 # 0x12bf58
movq %r15, %rdi
movq %r12, %rsi
movl $0x2c, %edx
callq 0x1b090
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x519ab
movq %r13, %rdi
movq %r12, %rsi
movl $0x8, %edx
callq 0x1aed0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x1a580
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x51986
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x51991
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x21e1a
movq %r13, %rdi
movq %r14, %rsi
callq 0x1aca0
leaq 0x220(%rsp), %rdi
callq 0x1a2d0
jmp 0x51933
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x519c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq 0xda58a(%rip), %rsi # 0x12bf58
leaq 0x28(%rsp), %rdi
callq 0x1aca0
leaq 0xa0(%rsp), %rdi
callq 0x1a2d0
addq $0x328, %rsp # imm = 0x328
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x519f9
movq %rax, %r14
jmp 0x51a22
movq %rax, %r14
movq 0xda550(%rip), %rsi # 0x12bf58
leaq 0x1a8(%rsp), %rdi
callq 0x1aca0
leaq 0x220(%rsp), %rdi
callq 0x1a2d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x51a3e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8f0
movq 0xda513(%rip), %rsi # 0x12bf58
leaq 0x28(%rsp), %rdi
callq 0x1aca0
leaq 0xa0(%rsp), %rdi
callq 0x1a2d0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x51a70
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1a8f0
movq %r14, %rdi
callq 0x1afd0
| _ZL12string_splitIiESt6vectorIT_SaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 328h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
xor r14d, r14d
mov [rdi+10h], r14
lea r15, [rsp+358h+var_330]
mov rdi, r15
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
lea rax, [rsp+358h+var_340]
mov [rax-10h], rax
mov [rax-8], r14
mov byte ptr [rax], 0
lea r12, [rsp+358h+var_350]
lea r13, [rsp+358h+var_1B0]
lea rbp, [rsp+358h+var_354]
mov r14, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
loc_51933:
mov rdi, r15
mov rsi, r12
mov edx, 2Ch ; ','
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_519AB
mov rdi, r13
mov rsi, r12
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
mov rdi, r13
mov rsi, rbp
call __ZNSirsERi; std::istream::operator>>(int &)
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_51986
mov eax, [rsp+358h+var_354]
mov [rsi], eax
add rsi, 4
mov [rbx+8], rsi
jmp short loc_51991
loc_51986:
mov rdi, rbx
mov rdx, rbp
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_51991:
mov rdi, r13
mov rsi, r14
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+358h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
jmp short loc_51933
loc_519AB:
mov rdi, [rsp+358h+var_350]; void *
lea rax, [rsp+358h+var_340]
cmp rdi, rax
jz short loc_519C7
mov rsi, [rsp+358h+var_340]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_519C7:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+358h+var_330]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+358h+var_2B8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
add rsp, 328h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_519F9:
mov r14, rax
jmp short loc_51A22
mov r14, rax
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_1A0]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+arg_218]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
loc_51A22:
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
cmp rdi, rax
jz short loc_51A3E
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_51A3E:
mov rsi, cs:_ZTTNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED2Ev; std::istringstream::~istringstream()
lea rdi, [rsp+arg_98]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_51A70
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_51A70:
mov rdi, r14
call __Unwind_Resume
| void string_split<int>(long long *a1, long long a2)
{
_QWORD *v2; // rax
_DWORD *v3; // rsi
int v4; // [rsp+4h] [rbp-354h] BYREF
void *v5[2]; // [rsp+8h] [rbp-350h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-340h] BYREF
_BYTE v7[120]; // [rsp+28h] [rbp-330h] BYREF
_BYTE v8[264]; // [rsp+A0h] [rbp-2B8h] BYREF
_BYTE v9[120]; // [rsp+1A8h] [rbp-1B0h] BYREF
_BYTE v10[312]; // [rsp+220h] [rbp-138h] BYREF
*(_OWORD *)a1 = 0LL;
a1[2] = 0LL;
std::istringstream::basic_istringstream(v7, a2, 8LL);
v5[0] = v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
while ( 1 )
{
v2 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v7, v5, 44LL);
if ( (*((_BYTE *)v2 + *(_QWORD *)(*v2 - 24LL) + 32) & 5) != 0 )
break;
std::istringstream::basic_istringstream(v9, v5, 8LL);
std::istream::operator>>(v9, &v4);
v3 = (_DWORD *)a1[1];
if ( v3 == (_DWORD *)a1[2] )
{
std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v3, &v4);
}
else
{
*v3 = v4;
a1[1] = (long long)(v3 + 1);
}
std::istringstream::~istringstream(v9, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v10);
}
if ( v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
std::istringstream::~istringstream(v7, &`VTT for'std::istringstream);
std::ios_base::~ios_base((std::ios_base *)v8);
}
| string_split<int>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x328
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
XOR R14D,R14D
MOV qword ptr [RDI + 0x10],R14
LEA R15,[RSP + 0x28]
MOV RDI,R15
MOV EDX,0x8
CALL 0x0011aed0
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX + -0x10],RAX
MOV qword ptr [RAX + -0x8],R14
MOV byte ptr [RAX],0x0
LEA R12,[RSP + 0x8]
LEA R13,[RSP + 0x1a8]
LEA RBP,[RSP + 0x4]
MOV R14,qword ptr [0x0022bf58]
LAB_00151933:
MOV RDI,R15
MOV RSI,R12
MOV EDX,0x2c
CALL 0x0011b090
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JNZ 0x001519ab
LAB_00151951:
MOV RDI,R13
MOV RSI,R12
MOV EDX,0x8
CALL 0x0011aed0
LAB_00151961:
MOV RDI,R13
MOV RSI,RBP
CALL 0x0011a580
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x00151986
MOV EAX,dword ptr [RSP + 0x4]
MOV dword ptr [RSI],EAX
ADD RSI,0x4
MOV qword ptr [RBX + 0x8],RSI
JMP 0x00151991
LAB_00151986:
MOV RDI,RBX
MOV RDX,RBP
CALL 0x00121e1a
LAB_00151991:
MOV RDI,R13
MOV RSI,R14
CALL 0x0011aca0
LEA RDI,[RSP + 0x220]
CALL 0x0011a2d0
JMP 0x00151933
LAB_001519ab:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001519c7
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8f0
LAB_001519c7:
MOV RSI,qword ptr [0x0022bf58]
LEA RDI,[RSP + 0x28]
CALL 0x0011aca0
LEA RDI,[RSP + 0xa0]
CALL 0x0011a2d0
ADD RSP,0x328
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::vector<int, std::allocator<int> > string_split<int>(std::__cxx11::string const&, char) */
void string_split<int>(string *param_1,char param_2)
{
int *piVar1;
istream *piVar2;
int7 in_register_00000031;
int local_354;
int1 *local_350;
int8 local_348;
int1 local_340;
int7 uStack_33f;
istream local_330 [120];
ios_base local_2b8 [264];
istream local_1b0 [120];
ios_base local_138 [264];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
std::__cxx11::istringstream::istringstream
((istringstream *)local_330,CONCAT71(in_register_00000031,param_2),8);
local_350 = &local_340;
local_348 = 0;
local_340 = 0;
while( true ) {
/* try { // try from 00151933 to 00151942 has its CatchHandler @ 001519f9 */
piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>>
(local_330,(string *)&local_350,',');
if (((byte)piVar2[*(long *)(*(long *)piVar2 + -0x18) + 0x20] & 5) != 0) break;
/* try { // try from 00151951 to 00151960 has its CatchHandler @ 001519f7 */
std::__cxx11::istringstream::istringstream((istringstream *)local_1b0,(string *)&local_350,8);
/* try { // try from 00151961 to 00151990 has its CatchHandler @ 001519fe */
std::istream::operator>>(local_1b0,&local_354);
piVar1 = *(int **)(param_1 + 8);
if (piVar1 == *(int **)(param_1 + 0x10)) {
std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&>
((vector<int,std::allocator<int>> *)param_1,piVar1,&local_354);
}
else {
*piVar1 = local_354;
*(int **)(param_1 + 8) = piVar1 + 1;
}
std::__cxx11::istringstream::~istringstream((istringstream *)local_1b0);
std::ios_base::~ios_base(local_138);
}
if (local_350 != &local_340) {
operator_delete(local_350,CONCAT71(uStack_33f,local_340) + 1);
}
std::__cxx11::istringstream::~istringstream((istringstream *)local_330);
std::ios_base::~ios_base(local_2b8);
return;
}
| |
43,705 | vec_xor | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/hash_to_field.c | static void vec_xor(void *restrict ret, const void *restrict a,
const void *restrict b, size_t num)
{
limb_t *rp = (limb_t *)ret;
const limb_t *ap = (const limb_t *)a;
const limb_t *bp = (const limb_t *)b;
size_t i;
num /= sizeof(limb_t);
for (i = 0; i < num; i++)
rp[i] = ap[i] ^ bp[i];
} | O0 | c | vec_xor:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x20(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xb833c
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rcx
xorq (%rax,%rcx,8), %rdx
movq -0x28(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0xb8300
popq %rbp
retq
nop
| vec_xor:
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 rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
shr rax, 3
mov [rbp+var_20], rax
mov [rbp+var_40], 0
loc_B8300:
mov rax, [rbp+var_40]
cmp rax, [rbp+var_20]
jnb short loc_B833C
mov rax, [rbp+var_30]
mov rcx, [rbp+var_40]
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_38]
mov rcx, [rbp+var_40]
xor rdx, [rax+rcx*8]
mov rax, [rbp+var_28]
mov rcx, [rbp+var_40]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
jmp short loc_B8300
loc_B833C:
pop rbp
retn
| unsigned long long vec_xor(long long a1, long long a2, long long a3, unsigned long long a4)
{
unsigned long long result; // rax
unsigned long long i; // [rsp+0h] [rbp-40h]
for ( i = 0LL; ; ++i )
{
result = i;
if ( i >= a4 >> 3 )
break;
*(_QWORD *)(a1 + 8 * i) = *(_QWORD *)(a3 + 8 * i) ^ *(_QWORD *)(a2 + 8 * i);
}
return result;
}
| vec_xor:
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 RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x3
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x40],0x0
LAB_001b8300:
MOV RAX,qword ptr [RBP + -0x40]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001b833c
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x40]
XOR RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001b8300
LAB_001b833c:
POP RBP
RET
|
void vec_xor(long param_1,long param_2,long param_3,ulong param_4)
{
int8 local_48;
for (local_48 = 0; local_48 < param_4 >> 3; local_48 = local_48 + 1) {
*(ulong *)(param_1 + local_48 * 8) =
*(ulong *)(param_2 + local_48 * 8) ^ *(ulong *)(param_3 + local_48 * 8);
}
return;
}
| |
43,706 | google::protobuf::UninterpretedOption::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | void UninterpretedOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<UninterpretedOption*>(&to_msg);
auto& from = static_cast<const UninterpretedOption&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.name_.MergeFrom(from._impl_.name_);
cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x0000003fu) {
if (cached_has_bits & 0x00000001u) {
_this->_internal_set_identifier_value(from._internal_identifier_value());
}
if (cached_has_bits & 0x00000002u) {
_this->_internal_set_string_value(from._internal_string_value());
}
if (cached_has_bits & 0x00000004u) {
_this->_internal_set_aggregate_value(from._internal_aggregate_value());
}
if (cached_has_bits & 0x00000008u) {
_this->_impl_.positive_int_value_ = from._impl_.positive_int_value_;
}
if (cached_has_bits & 0x00000010u) {
_this->_impl_.negative_int_value_ = from._impl_.negative_int_value_;
}
if (cached_has_bits & 0x00000020u) {
_this->_impl_.double_value_ = from._impl_.double_value_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
} | O0 | cpp | google::protobuf::UninterpretedOption::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&):
subq $0x1a8, %rsp # imm = 0x1A8
movq %rdi, 0xd8(%rsp)
movq %rsi, 0xd0(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
xorl %eax, %eax
testb $0x1, %al
jne 0x2d3fb2
jmp 0x2d4071
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rcx
movb $0x0, 0x87(%rsp)
cmpq %rcx, %rax
je 0x2d3fd1
jmp 0x2d4027
leaq 0x11b2c0(%rip), %rdx # 0x3ef298
leaq 0x88(%rsp), %rdi
movq %rdi, 0x58(%rsp)
movl $0x3, %esi
movl $0x273c, %ecx # imm = 0x273C
callq 0x19a670
movq 0x58(%rsp), %rdi
movb $0x1, 0x87(%rsp)
leaq 0x10e0d7(%rip), %rsi # 0x3e20df
callq 0x199f30
movq %rax, 0x60(%rsp)
jmp 0x2d4014
movq 0x60(%rsp), %rsi
leaq 0x73(%rsp), %rdi
callq 0x19a0e0
jmp 0x2d4025
jmp 0x2d4027
testb $0x1, 0x87(%rsp)
jne 0x2d4033
jmp 0x2d4040
leaq 0x88(%rsp), %rdi
callq 0x19a6b0
jmp 0x2d3fa7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
testb $0x1, 0x87(%rsp)
jne 0x2d405f
jmp 0x2d406c
leaq 0x88(%rsp), %rdi
callq 0x19a6b0
jmp 0x2d4498
movl $0x0, 0x6c(%rsp)
movq 0xc8(%rsp), %rdi
addq $0x10, %rdi
addq $0x8, %rdi
movq 0xc0(%rsp), %rsi
addq $0x10, %rsi
addq $0x8, %rsi
callq 0x2e5060
movq 0xc0(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x130(%rsp)
movl $0x0, 0x12c(%rsp)
movq 0x130(%rsp), %rax
movslq 0x12c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
andl $0x3f, %eax
cmpl $0x0, %eax
je 0x2d4395
movl 0x6c(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x2d4192
movq 0xc8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x2973e0
movq 0x40(%rsp), %rcx
movq %rcx, 0x140(%rsp)
movq %rax, 0x138(%rsp)
movq 0x140(%rsp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, 0x150(%rsp)
movl $0x0, 0x14c(%rsp)
movq 0x150(%rsp), %rax
movslq 0x14c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
orl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq %rdi, %rax
addq $0x10, %rax
addq $0x20, %rax
movq %rax, 0x48(%rsp)
movq 0x138(%rsp), %rax
movq %rax, 0x50(%rsp)
callq 0x102610
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %rax, %rdx
callq 0x169310
movl 0x6c(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x2d4240
movq 0xc8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x297450
movq 0x28(%rsp), %rcx
movq %rcx, 0x160(%rsp)
movq %rax, 0x158(%rsp)
movq 0x160(%rsp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, 0x170(%rsp)
movl $0x0, 0x16c(%rsp)
movq 0x170(%rsp), %rax
movslq 0x16c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
orl $0x2, %edx
movl %edx, (%rax,%rcx,4)
movq %rdi, %rax
addq $0x10, %rax
addq $0x28, %rax
movq %rax, 0x30(%rsp)
movq 0x158(%rsp), %rax
movq %rax, 0x38(%rsp)
callq 0x102610
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq %rax, %rdx
callq 0x169310
movl 0x6c(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x2d42ee
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xc0(%rsp), %rdi
callq 0x297780
movq 0x10(%rsp), %rcx
movq %rcx, 0x180(%rsp)
movq %rax, 0x178(%rsp)
movq 0x180(%rsp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, 0x190(%rsp)
movl $0x0, 0x18c(%rsp)
movq 0x190(%rsp), %rax
movslq 0x18c(%rsp), %rcx
movl (%rax,%rcx,4), %edx
orl $0x4, %edx
movl %edx, (%rax,%rcx,4)
movq %rdi, %rax
addq $0x10, %rax
addq $0x30, %rax
movq %rax, 0x18(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x20(%rsp)
callq 0x102610
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rax, %rdx
callq 0x169310
movl 0x6c(%rsp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x2d4312
movq 0xc0(%rsp), %rax
movq 0x48(%rax), %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x48(%rax)
movl 0x6c(%rsp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x2d4336
movq 0xc0(%rsp), %rax
movq 0x50(%rax), %rcx
movq 0xc8(%rsp), %rax
movq %rcx, 0x50(%rax)
movl 0x6c(%rsp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x2d435c
movq 0xc0(%rsp), %rax
movsd 0x58(%rax), %xmm0
movq 0xc8(%rsp), %rax
movsd %xmm0, 0x58(%rax)
movl 0x6c(%rsp), %edx
movq 0xc8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x120(%rsp)
movl $0x0, 0x11c(%rsp)
movq 0x120(%rsp), %rax
movslq 0x11c(%rsp), %rcx
orl (%rax,%rcx,4), %edx
movl %edx, (%rax,%rcx,4)
movq 0xc8(%rsp), %rcx
addq $0x8, %rcx
movq 0xc0(%rsp), %rax
addq $0x8, %rax
movq %rcx, 0xe8(%rsp)
movq %rax, 0xe0(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2d4490
movq 0xe0(%rsp), %rax
movq %rax, 0x100(%rsp)
movq $0x0, 0xf8(%rsp)
movq 0x100(%rsp), %rax
movq %rax, (%rsp)
movq %rax, 0x110(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x198(%rsp)
movq 0x198(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2d446f
movq (%rsp), %rdi
callq 0x155370
addq $0x8, %rax
movq %rax, 0x108(%rsp)
jmp 0x2d447e
callq *0xf8(%rsp)
movq %rax, 0x108(%rsp)
movq 0x8(%rsp), %rdi
movq 0x108(%rsp), %rsi
callq 0x155200
addq $0x1a8, %rsp # imm = 0x1A8
retq
movq 0x78(%rsp), %rdi
callq 0x90db0
nopw %cs:(%rax,%rax)
| _ZN6google8protobuf19UninterpretedOption9MergeImplERNS0_7MessageERKS2_:
sub rsp, 1A8h
mov [rsp+1A8h+var_D0], rdi
mov [rsp+1A8h+var_D8], rsi
mov rax, [rsp+1A8h+var_D0]
mov [rsp+1A8h+var_E0], rax
mov rax, [rsp+1A8h+var_D8]
mov [rsp+1A8h+var_E8], rax
loc_2D3FA7:
xor eax, eax
test al, 1
jnz short loc_2D3FB2
jmp loc_2D4071
loc_2D3FB2:
mov rax, [rsp+1A8h+var_E8]
mov rcx, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_121], 0
cmp rax, rcx
jz short loc_2D3FD1
jmp short loc_2D4027
loc_2D3FD1:
lea rdx, aWorkspaceLlm4b_56; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+1A8h+var_120]
mov [rsp+1A8h+var_150], rdi
mov esi, 3
mov ecx, 273Ch
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+1A8h+var_150]
mov [rsp+1A8h+var_121], 1
lea rsi, aCheckFailedFro; "CHECK failed: (&from) != (_this): "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+1A8h+var_148], rax
jmp short $+2
loc_2D4014:
mov rsi, [rsp+1A8h+var_148]
lea rdi, [rsp+1A8h+var_135]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_2D4025:
jmp short $+2
loc_2D4027:
test [rsp+1A8h+var_121], 1
jnz short loc_2D4033
jmp short loc_2D4040
loc_2D4033:
lea rdi, [rsp+1A8h+var_120]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_2D4040:
jmp loc_2D3FA7
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
test [rsp+arg_7F], 1
jnz short loc_2D405F
jmp short loc_2D406C
loc_2D405F:
lea rdi, [rsp+arg_80]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_2D406C:
jmp loc_2D4498
loc_2D4071:
mov [rsp+1A8h+var_13C], 0
mov rdi, [rsp+1A8h+var_E0]
add rdi, 10h
add rdi, 8
mov rsi, [rsp+1A8h+var_E8]
add rsi, 10h
add rsi, 8
call _ZN6google8protobuf16RepeatedPtrFieldINS0_28UninterpretedOption_NamePartEE9MergeFromERKS3_; google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption_NamePart>::MergeFrom(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption_NamePart> const&)
mov rax, [rsp+1A8h+var_E8]
add rax, 10h
mov [rsp+1A8h+var_78], rax
mov [rsp+1A8h+var_7C], 0
mov rax, [rsp+1A8h+var_78]
movsxd rcx, [rsp+1A8h+var_7C]
mov eax, [rax+rcx*4]
mov [rsp+1A8h+var_13C], eax
mov eax, [rsp+1A8h+var_13C]
and eax, 3Fh
cmp eax, 0
jz loc_2D4395
mov eax, [rsp+1A8h+var_13C]
and eax, 1
cmp eax, 0
jz loc_2D4192
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_168], rax
mov rdi, [rsp+1A8h+var_E8]
call _ZNK6google8protobuf19UninterpretedOption26_internal_identifier_valueB5cxx11Ev; google::protobuf::UninterpretedOption::_internal_identifier_value(void)
mov rcx, [rsp+1A8h+var_168]
mov [rsp+1A8h+var_68], rcx
mov [rsp+1A8h+var_70], rax
mov rdi, [rsp+1A8h+var_68]; this
mov rax, rdi
add rax, 10h
mov [rsp+1A8h+var_58], rax
mov [rsp+1A8h+var_5C], 0
mov rax, [rsp+1A8h+var_58]
movsxd rcx, [rsp+1A8h+var_5C]
mov edx, [rax+rcx*4]
or edx, 1
mov [rax+rcx*4], edx
mov rax, rdi
add rax, 10h
add rax, 20h ; ' '
mov qword ptr [rsp+1A8h+var_160], rax
mov rax, [rsp+1A8h+var_70]
mov qword ptr [rsp+1A8h+var_158], rax
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov rdi, qword ptr [rsp+1A8h+var_160]; int
mov rsi, qword ptr [rsp+1A8h+var_158]; int
mov rdx, rax; int
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_2D4192:
mov eax, [rsp+1A8h+var_13C]
and eax, 2
cmp eax, 0
jz loc_2D4240
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_180], rax
mov rdi, [rsp+1A8h+var_E8]
call _ZNK6google8protobuf19UninterpretedOption22_internal_string_valueB5cxx11Ev; google::protobuf::UninterpretedOption::_internal_string_value(void)
mov rcx, [rsp+1A8h+var_180]
mov [rsp+1A8h+var_48], rcx
mov [rsp+1A8h+var_50], rax
mov rdi, [rsp+1A8h+var_48]; this
mov rax, rdi
add rax, 10h
mov [rsp+1A8h+var_38], rax
mov [rsp+1A8h+var_3C], 0
mov rax, [rsp+1A8h+var_38]
movsxd rcx, [rsp+1A8h+var_3C]
mov edx, [rax+rcx*4]
or edx, 2
mov [rax+rcx*4], edx
mov rax, rdi
add rax, 10h
add rax, 28h ; '('
mov qword ptr [rsp+1A8h+var_178], rax
mov rax, [rsp+1A8h+var_50]
mov qword ptr [rsp+1A8h+var_170], rax
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov rdi, qword ptr [rsp+1A8h+var_178]; int
mov rsi, qword ptr [rsp+1A8h+var_170]; int
mov rdx, rax; int
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_2D4240:
mov eax, [rsp+1A8h+var_13C]
and eax, 4
cmp eax, 0
jz loc_2D42EE
mov rax, [rsp+1A8h+var_E0]
mov [rsp+1A8h+var_198], rax
mov rdi, [rsp+1A8h+var_E8]
call _ZNK6google8protobuf19UninterpretedOption25_internal_aggregate_valueB5cxx11Ev; google::protobuf::UninterpretedOption::_internal_aggregate_value(void)
mov rcx, [rsp+1A8h+var_198]
mov [rsp+1A8h+var_28], rcx
mov [rsp+1A8h+var_30], rax
mov rdi, [rsp+1A8h+var_28]; this
mov rax, rdi
add rax, 10h
mov [rsp+1A8h+var_18], rax
mov [rsp+1A8h+var_1C], 0
mov rax, [rsp+1A8h+var_18]
movsxd rcx, [rsp+1A8h+var_1C]
mov edx, [rax+rcx*4]
or edx, 4
mov [rax+rcx*4], edx
mov rax, rdi
add rax, 10h
add rax, 30h ; '0'
mov qword ptr [rsp+1A8h+var_190], rax
mov rax, [rsp+1A8h+var_30]
mov qword ptr [rsp+1A8h+var_188], rax
call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void)
mov rdi, qword ptr [rsp+1A8h+var_190]; int
mov rsi, qword ptr [rsp+1A8h+var_188]; int
mov rdx, rax; int
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_2D42EE:
mov eax, [rsp+1A8h+var_13C]
and eax, 8
cmp eax, 0
jz short loc_2D4312
mov rax, [rsp+1A8h+var_E8]
mov rcx, [rax+48h]
mov rax, [rsp+1A8h+var_E0]
mov [rax+48h], rcx
loc_2D4312:
mov eax, [rsp+1A8h+var_13C]
and eax, 10h
cmp eax, 0
jz short loc_2D4336
mov rax, [rsp+1A8h+var_E8]
mov rcx, [rax+50h]
mov rax, [rsp+1A8h+var_E0]
mov [rax+50h], rcx
loc_2D4336:
mov eax, [rsp+1A8h+var_13C]
and eax, 20h
cmp eax, 0
jz short loc_2D435C
mov rax, [rsp+1A8h+var_E8]
movsd xmm0, qword ptr [rax+58h]
mov rax, [rsp+1A8h+var_E0]
movsd qword ptr [rax+58h], xmm0
loc_2D435C:
mov edx, [rsp+1A8h+var_13C]
mov rax, [rsp+1A8h+var_E0]
add rax, 10h
mov [rsp+1A8h+var_88], rax
mov [rsp+1A8h+var_8C], 0
mov rax, [rsp+1A8h+var_88]
movsxd rcx, [rsp+1A8h+var_8C]
or edx, [rax+rcx*4]
mov [rax+rcx*4], edx
loc_2D4395:
mov rcx, [rsp+1A8h+var_E0]
add rcx, 8
mov rax, [rsp+1A8h+var_E8]
add rax, 8
mov [rsp+1A8h+var_C0], rcx
mov [rsp+1A8h+var_C8], rax
mov rax, [rsp+1A8h+var_C0]
mov [rsp+1A8h+var_1A0], rax
mov rax, [rsp+1A8h+var_C8]
mov [rsp+1A8h+var_B8], rax
mov rax, [rsp+1A8h+var_B8]
mov [rsp+1A8h+var_8], rax
mov rax, [rsp+1A8h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz loc_2D4490
mov rax, [rsp+1A8h+var_C8]
mov [rsp+1A8h+var_A8], rax
mov [rsp+1A8h+var_B0], 0
mov rax, [rsp+1A8h+var_A8]
mov [rsp+1A8h+var_1A8], rax
mov [rsp+1A8h+var_98], rax
mov rax, [rsp+1A8h+var_98]
mov [rsp+1A8h+var_10], rax
mov rax, [rsp+1A8h+var_10]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_2D446F
mov rdi, [rsp+1A8h+var_1A8]
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+1A8h+var_A0], rax
jmp short loc_2D447E
loc_2D446F:
call [rsp+1A8h+var_B0]
mov qword ptr [rsp+1A8h+var_A0], rax
loc_2D447E:
mov rdi, [rsp+1A8h+var_1A0]; void *
mov rsi, qword ptr [rsp+1A8h+var_A0]; int
call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&)
loc_2D4490:
add rsp, 1A8h
retn
loc_2D4498:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
| long long google::protobuf::UninterpretedOption::MergeImpl(
google::protobuf::UninterpretedOption *this,
google::protobuf::Message *a2,
const google::protobuf::Message *a3)
{
char *v3; // rdi
char *v4; // rsi
int ArenaForAllocation; // eax
int v6; // eax
int v7; // eax
long long result; // rax
int v9; // [rsp+6Ch] [rbp-13Ch]
_QWORD *v12; // [rsp+E0h] [rbp-C8h]
int v13[2]; // [rsp+108h] [rbp-A0h]
unsigned long long v14; // [rsp+138h] [rbp-70h]
unsigned long long v15; // [rsp+158h] [rbp-50h]
unsigned long long v16; // [rsp+178h] [rbp-30h]
v3 = (char *)this + 24;
v4 = (char *)a2 + 24;
google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption_NamePart>::MergeFrom(
(char *)this + 24,
(char *)a2 + 24,
a3);
v9 = *((_DWORD *)a2 + 4);
if ( (v9 & 0x3F) != 0 )
{
if ( (v9 & 1) != 0 )
{
v14 = google::protobuf::UninterpretedOption::_internal_identifier_value[abi:cxx11]((long long)a2);
*((_DWORD *)this + 4) |= 1u;
ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this);
v3 = (char *)this + 48;
v4 = (char *)v14;
google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 48, v14, ArenaForAllocation);
}
if ( (v9 & 2) != 0 )
{
v15 = google::protobuf::UninterpretedOption::_internal_string_value[abi:cxx11]((long long)a2);
*((_DWORD *)this + 4) |= 2u;
v6 = google::protobuf::MessageLite::GetArenaForAllocation(this);
v3 = (char *)this + 56;
v4 = (char *)v15;
google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 56, v15, v6);
}
if ( (v9 & 4) != 0 )
{
v16 = google::protobuf::UninterpretedOption::_internal_aggregate_value[abi:cxx11]((long long)a2);
*((_DWORD *)this + 4) |= 4u;
v7 = google::protobuf::MessageLite::GetArenaForAllocation(this);
v3 = (char *)this + 64;
v4 = (char *)v16;
google::protobuf::internal::ArenaStringPtr::Set((_DWORD)this + 64, v16, v7);
}
if ( (v9 & 8) != 0 )
*((_QWORD *)this + 9) = *((_QWORD *)a2 + 9);
if ( (v9 & 0x10) != 0 )
*((_QWORD *)this + 10) = *((_QWORD *)a2 + 10);
if ( (v9 & 0x20) != 0 )
*((_QWORD *)this + 11) = *((_QWORD *)a2 + 11);
*((_DWORD *)this + 4) |= v9;
}
v12 = (_QWORD *)((char *)a2 + 8);
result = *((_QWORD *)a2 + 1) & 1LL;
if ( result )
{
if ( (*v12 & 1LL) != 0 )
*(_QWORD *)v13 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(v12)
+ 8;
else
v13[0] = ((long long ( *)(char *, char *))dword_0)(v3, v4);
return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(
(char *)this + 8,
v13[0]);
}
return result;
}
| |||
43,707 | google::protobuf::UninterpretedOption::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | void UninterpretedOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<UninterpretedOption*>(&to_msg);
auto& from = static_cast<const UninterpretedOption&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UninterpretedOption)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.name_.MergeFrom(from._impl_.name_);
cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x0000003fu) {
if (cached_has_bits & 0x00000001u) {
_this->_internal_set_identifier_value(from._internal_identifier_value());
}
if (cached_has_bits & 0x00000002u) {
_this->_internal_set_string_value(from._internal_string_value());
}
if (cached_has_bits & 0x00000004u) {
_this->_internal_set_aggregate_value(from._internal_aggregate_value());
}
if (cached_has_bits & 0x00000008u) {
_this->_impl_.positive_int_value_ = from._impl_.positive_int_value_;
}
if (cached_has_bits & 0x00000010u) {
_this->_impl_.negative_int_value_ = from._impl_.negative_int_value_;
}
if (cached_has_bits & 0x00000020u) {
_this->_impl_.double_value_ = from._impl_.double_value_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
} | O3 | cpp | google::protobuf::UninterpretedOption::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&):
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
cmpl $0x0, 0x20(%rsi)
je 0xf81d8
leaq 0x18(%r14), %rsi
leaq 0x18(%rbx), %rdi
leaq 0x37bd(%rip), %rdx # 0xfb98e
xorl %ecx, %ecx
callq 0x74546
movl 0x10(%r14), %ebp
testb $0x3f, %bpl
je 0xf829c
testb $0x1, %bpl
je 0xf8214
movq 0x30(%r14), %rsi
andq $-0x4, %rsi
orl $0x1, 0x10(%rbx)
leaq 0x30(%rbx), %rdi
movq 0x8(%rbx), %rax
movq %rax, %rdx
andq $-0x4, %rdx
testb $0x1, %al
jne 0xf82c3
callq 0x786ce
testb $0x2, %bpl
je 0xf8242
movq 0x38(%r14), %rsi
andq $-0x4, %rsi
orl $0x2, 0x10(%rbx)
leaq 0x38(%rbx), %rdi
movq 0x8(%rbx), %rax
movq %rax, %rdx
andq $-0x4, %rdx
testb $0x1, %al
jne 0xf82cb
callq 0x786ce
testb $0x4, %bpl
je 0xf826c
movq 0x40(%r14), %rsi
andq $-0x4, %rsi
orl $0x4, 0x10(%rbx)
leaq 0x40(%rbx), %rdi
movq 0x8(%rbx), %rax
movq %rax, %rdx
andq $-0x4, %rdx
testb $0x1, %al
jne 0xf82d3
callq 0x786ce
testb $0x8, %bpl
je 0xf827a
movq 0x48(%r14), %rax
movq %rax, 0x48(%rbx)
testb $0x10, %bpl
je 0xf8288
movq 0x50(%r14), %rax
movq %rax, 0x50(%rbx)
testb $0x20, %bpl
je 0xf8299
movsd 0x58(%r14), %xmm0
movsd %xmm0, 0x58(%rbx)
orl %ebp, 0x10(%rbx)
movq 0x8(%r14), %rsi
testb $0x1, %sil
jne 0xf82ab
popq %rbx
popq %r14
popq %rbp
retq
addq $0x8, %rbx
andq $-0x4, %rsi
addq $0x8, %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x734be
movq (%rdx), %rdx
jmp 0xf820f
movq (%rdx), %rdx
jmp 0xf823d
movq (%rdx), %rdx
jmp 0xf8267
| _ZN6google8protobuf19UninterpretedOption9MergeImplERNS0_7MessageERKS2_:
push rbp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
cmp dword ptr [rsi+20h], 0
jz short loc_F81D8
lea rsi, [r14+18h]
lea rdi, [rbx+18h]
lea rdx, _ZN6google8protobuf8internal20RepeatedPtrFieldBase18MergeFromInnerLoopINS0_16RepeatedPtrFieldINS0_28UninterpretedOption_NamePartEE11TypeHandlerEEEvPPvS9_ii; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption_NamePart>::TypeHandler>(void **,void **,int,int)
xor ecx, ecx
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase17MergeFromInternalERKS2_MS2_FvPPvS6_iiE; google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal(google::protobuf::internal::RepeatedPtrFieldBase const&,void (google::protobuf::internal::RepeatedPtrFieldBase::*)(void **,void **,int,int))
loc_F81D8:
mov ebp, [r14+10h]
test bpl, 3Fh
jz loc_F829C
test bpl, 1
jz short loc_F8214
mov rsi, [r14+30h]
and rsi, 0FFFFFFFFFFFFFFFCh
or dword ptr [rbx+10h], 1
lea rdi, [rbx+30h]
mov rax, [rbx+8]
mov rdx, rax
and rdx, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz loc_F82C3
loc_F820F:
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_F8214:
test bpl, 2
jz short loc_F8242
mov rsi, [r14+38h]
and rsi, 0FFFFFFFFFFFFFFFCh
or dword ptr [rbx+10h], 2
lea rdi, [rbx+38h]
mov rax, [rbx+8]
mov rdx, rax
and rdx, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz loc_F82CB
loc_F823D:
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_F8242:
test bpl, 4
jz short loc_F826C
mov rsi, [r14+40h]
and rsi, 0FFFFFFFFFFFFFFFCh
or dword ptr [rbx+10h], 4
lea rdi, [rbx+40h]
mov rax, [rbx+8]
mov rdx, rax
and rdx, 0FFFFFFFFFFFFFFFCh
test al, 1
jnz short loc_F82D3
loc_F8267:
call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *)
loc_F826C:
test bpl, 8
jz short loc_F827A
mov rax, [r14+48h]
mov [rbx+48h], rax
loc_F827A:
test bpl, 10h
jz short loc_F8288
mov rax, [r14+50h]
mov [rbx+50h], rax
loc_F8288:
test bpl, 20h
jz short loc_F8299
movsd xmm0, qword ptr [r14+58h]
movsd qword ptr [rbx+58h], xmm0
loc_F8299:
or [rbx+10h], ebp
loc_F829C:
mov rsi, [r14+8]
test sil, 1
jnz short loc_F82AB
pop rbx
pop r14
pop rbp
retn
loc_F82AB:
add rbx, 8
and rsi, 0FFFFFFFFFFFFFFFCh
add rsi, 8
mov rdi, rbx
pop rbx
pop r14
pop rbp
jmp _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&)
loc_F82C3:
mov rdx, [rdx]
jmp loc_F820F
loc_F82CB:
mov rdx, [rdx]
jmp loc_F823D
loc_F82D3:
mov rdx, [rdx]
jmp short loc_F8267
| long long google::protobuf::UninterpretedOption::MergeImpl(
google::protobuf::UninterpretedOption *this,
google::protobuf::Message *a2,
const google::protobuf::Message *a3)
{
long long result; // rax
int v5; // ebp
unsigned long long v6; // rsi
google::protobuf::Arena *v7; // rdx
unsigned long long v8; // rsi
google::protobuf::Arena *v9; // rdx
unsigned long long v10; // rsi
google::protobuf::Arena *v11; // rdx
long long v12; // rsi
if ( *((_DWORD *)a2 + 8) )
result = (long long)google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInternal(
(long long)this + 24,
(long long)a2 + 24,
(char *)google::protobuf::internal::RepeatedPtrFieldBase::MergeFromInnerLoop<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption_NamePart>::TypeHandler>,
0LL);
v5 = *((_DWORD *)a2 + 4);
if ( (v5 & 0x3F) != 0 )
{
if ( (v5 & 1) != 0 )
{
v6 = *((_QWORD *)a2 + 6) & 0xFFFFFFFFFFFFFFFCLL;
*((_DWORD *)this + 4) |= 1u;
v7 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL);
if ( (*((_QWORD *)this + 1) & 1) != 0 )
v7 = *(google::protobuf::Arena **)v7;
result = google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 6, v6, v7);
}
if ( (v5 & 2) != 0 )
{
v8 = *((_QWORD *)a2 + 7) & 0xFFFFFFFFFFFFFFFCLL;
*((_DWORD *)this + 4) |= 2u;
v9 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL);
if ( (*((_QWORD *)this + 1) & 1) != 0 )
v9 = *(google::protobuf::Arena **)v9;
result = google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 7, v8, v9);
}
if ( (v5 & 4) != 0 )
{
v10 = *((_QWORD *)a2 + 8) & 0xFFFFFFFFFFFFFFFCLL;
*((_DWORD *)this + 4) |= 4u;
v11 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL);
if ( (*((_QWORD *)this + 1) & 1) != 0 )
v11 = *(google::protobuf::Arena **)v11;
result = google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 8, v10, v11);
}
if ( (v5 & 8) != 0 )
{
result = *((_QWORD *)a2 + 9);
*((_QWORD *)this + 9) = result;
}
if ( (v5 & 0x10) != 0 )
{
result = *((_QWORD *)a2 + 10);
*((_QWORD *)this + 10) = result;
}
if ( (v5 & 0x20) != 0 )
*((_QWORD *)this + 11) = *((_QWORD *)a2 + 11);
*((_DWORD *)this + 4) |= v5;
}
v12 = *((_QWORD *)a2 + 1);
if ( (v12 & 1) != 0 )
return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(
(long long *)this + 1,
(const google::protobuf::UnknownFieldSet *)((v12 & 0xFFFFFFFFFFFFFFFCLL) + 8));
return result;
}
| MergeImpl:
PUSH RBP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
CMP dword ptr [RSI + 0x20],0x0
JZ 0x001f81d8
LEA RSI,[R14 + 0x18]
LEA RDI,[RBX + 0x18]
LEA RDX,[0x1fb98e]
XOR ECX,ECX
CALL 0x00174546
LAB_001f81d8:
MOV EBP,dword ptr [R14 + 0x10]
TEST BPL,0x3f
JZ 0x001f829c
TEST BPL,0x1
JZ 0x001f8214
MOV RSI,qword ptr [R14 + 0x30]
AND RSI,-0x4
OR dword ptr [RBX + 0x10],0x1
LEA RDI,[RBX + 0x30]
MOV RAX,qword ptr [RBX + 0x8]
MOV RDX,RAX
AND RDX,-0x4
TEST AL,0x1
JNZ 0x001f82c3
LAB_001f820f:
CALL 0x001786ce
LAB_001f8214:
TEST BPL,0x2
JZ 0x001f8242
MOV RSI,qword ptr [R14 + 0x38]
AND RSI,-0x4
OR dword ptr [RBX + 0x10],0x2
LEA RDI,[RBX + 0x38]
MOV RAX,qword ptr [RBX + 0x8]
MOV RDX,RAX
AND RDX,-0x4
TEST AL,0x1
JNZ 0x001f82cb
LAB_001f823d:
CALL 0x001786ce
LAB_001f8242:
TEST BPL,0x4
JZ 0x001f826c
MOV RSI,qword ptr [R14 + 0x40]
AND RSI,-0x4
OR dword ptr [RBX + 0x10],0x4
LEA RDI,[RBX + 0x40]
MOV RAX,qword ptr [RBX + 0x8]
MOV RDX,RAX
AND RDX,-0x4
TEST AL,0x1
JNZ 0x001f82d3
LAB_001f8267:
CALL 0x001786ce
LAB_001f826c:
TEST BPL,0x8
JZ 0x001f827a
MOV RAX,qword ptr [R14 + 0x48]
MOV qword ptr [RBX + 0x48],RAX
LAB_001f827a:
TEST BPL,0x10
JZ 0x001f8288
MOV RAX,qword ptr [R14 + 0x50]
MOV qword ptr [RBX + 0x50],RAX
LAB_001f8288:
TEST BPL,0x20
JZ 0x001f8299
MOVSD XMM0,qword ptr [R14 + 0x58]
MOVSD qword ptr [RBX + 0x58],XMM0
LAB_001f8299:
OR dword ptr [RBX + 0x10],EBP
LAB_001f829c:
MOV RSI,qword ptr [R14 + 0x8]
TEST SIL,0x1
JNZ 0x001f82ab
POP RBX
POP R14
POP RBP
RET
LAB_001f82ab:
ADD RBX,0x8
AND RSI,-0x4
ADD RSI,0x8
MOV RDI,RBX
POP RBX
POP R14
POP RBP
JMP 0x001734be
LAB_001f82c3:
MOV RDX,qword ptr [RDX]
JMP 0x001f820f
LAB_001f82cb:
MOV RDX,qword ptr [RDX]
JMP 0x001f823d
LAB_001f82d3:
MOV RDX,qword ptr [RDX]
JMP 0x001f8267
|
/* google::protobuf::UninterpretedOption::MergeImpl(google::protobuf::Message&,
google::protobuf::Message const&) */
void google::protobuf::UninterpretedOption::MergeImpl(Message *param_1,Message *param_2)
{
uint uVar1;
ulong uVar2;
Arena *pAVar3;
if (*(int *)(param_2 + 0x20) != 0) {
internal::RepeatedPtrFieldBase::MergeFromInternal
((RepeatedPtrFieldBase *)(param_1 + 0x18),
(_func_void_void_ptr_ptr_void_ptr_ptr_int_int *)(param_2 + 0x18));
}
uVar1 = *(uint *)(param_2 + 0x10);
if ((uVar1 & 0x3f) != 0) {
if ((uVar1 & 1) != 0) {
uVar2 = *(ulong *)(param_2 + 0x30);
*(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1;
pAVar3 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc);
if ((*(ulong *)(param_1 + 8) & 1) != 0) {
pAVar3 = *(Arena **)pAVar3;
}
internal::ArenaStringPtr::Set
((ArenaStringPtr *)(param_1 + 0x30),(string *)(uVar2 & 0xfffffffffffffffc),pAVar3);
}
if ((uVar1 & 2) != 0) {
uVar2 = *(ulong *)(param_2 + 0x38);
*(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 2;
pAVar3 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc);
if ((*(ulong *)(param_1 + 8) & 1) != 0) {
pAVar3 = *(Arena **)pAVar3;
}
internal::ArenaStringPtr::Set
((ArenaStringPtr *)(param_1 + 0x38),(string *)(uVar2 & 0xfffffffffffffffc),pAVar3);
}
if ((uVar1 & 4) != 0) {
uVar2 = *(ulong *)(param_2 + 0x40);
*(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 4;
pAVar3 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc);
if ((*(ulong *)(param_1 + 8) & 1) != 0) {
pAVar3 = *(Arena **)pAVar3;
}
internal::ArenaStringPtr::Set
((ArenaStringPtr *)(param_1 + 0x40),(string *)(uVar2 & 0xfffffffffffffffc),pAVar3);
}
if ((uVar1 & 8) != 0) {
*(int8 *)(param_1 + 0x48) = *(int8 *)(param_2 + 0x48);
}
if ((uVar1 & 0x10) != 0) {
*(int8 *)(param_1 + 0x50) = *(int8 *)(param_2 + 0x50);
}
if ((uVar1 & 0x20) != 0) {
*(int8 *)(param_1 + 0x58) = *(int8 *)(param_2 + 0x58);
}
*(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | uVar1;
}
if ((*(ulong *)(param_2 + 8) & 1) == 0) {
return;
}
internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>
((InternalMetadata *)(param_1 + 8),
(UnknownFieldSet *)((*(ulong *)(param_2 + 8) & 0xfffffffffffffffc) + 8));
return;
}
| |
43,708 | mysql_client_plugin_init | eloqsql/build_O3/libmariadb/libmariadb/ma_client_plugin.c | int mysql_client_plugin_init()
{
MYSQL mysql;
struct st_mysql_client_plugin **builtin;
va_list unused;
LINT_INIT_STRUCT(unused);
if (initialized)
return 0;
memset(&mysql, 0, sizeof(mysql)); /* dummy mysql for set_mysql_extended_error */
pthread_mutex_init(&LOCK_load_client_plugin, NULL);
ma_init_alloc_root(&mem_root, 128, 128);
memset(&plugin_list, 0, sizeof(plugin_list));
initialized= 1;
pthread_mutex_lock(&LOCK_load_client_plugin);
for (builtin= mysql_client_builtins; *builtin; builtin++)
add_plugin(&mysql, *builtin, 0, 0, unused);
pthread_mutex_unlock(&LOCK_load_client_plugin);
load_env_plugins(&mysql);
return 0;
} | O3 | c | mysql_client_plugin_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x520, %rsp # imm = 0x520
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x540(%rbp)
movq $0x0, -0x530(%rbp)
cmpb $0x0, 0x26195(%rip) # 0x4f950
jne 0x29926
leaq -0x520(%rbp), %rdi
movl $0x4f8, %edx # imm = 0x4F8
xorl %esi, %esi
callq 0x13260
leaq 0x2617d(%rip), %rbx # 0x4f958
movq %rbx, %rdi
xorl %esi, %esi
callq 0x136b0
leaq 0x26194(%rip), %rdi # 0x4f980
movl $0x80, %esi
movl $0x80, %edx
callq 0x201c0
leaq 0x261be(%rip), %rax # 0x4f9c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movb $0x1, 0x26135(%rip) # 0x4f950
movq %rbx, %rdi
callq 0x136a0
leaq 0x23676(%rip), %r15 # 0x4cea0
movq (%r15), %rsi
testq %rsi, %rsi
je 0x2985f
addq $0x8, %r15
leaq -0x520(%rbp), %rbx
leaq -0x540(%rbp), %r14
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2994c
movq (%r15), %rsi
addq $0x8, %r15
testq %rsi, %rsi
jne 0x29844
leaq 0x260f2(%rip), %rdi # 0x4f958
callq 0x13330
leaq 0xfe07(%rip), %rdi # 0x39679
callq 0x13590
testq %rax, %rax
je 0x29926
xorl %ecx, %ecx
cmpb $0x0, (%rax,%rcx)
je 0x29899
incq %rcx
cmpq $0x400, %rcx # imm = 0x400
jne 0x29882
jmp 0x29926
cmpq $0x3ff, %rcx # imm = 0x3FF
ja 0x29926
movq %rax, %rdi
callq 0x137d0
movq %rax, %rbx
movq %rax, %rdi
movl $0x3b, %esi
callq 0x13180
movq %rbx, %r15
testq %rax, %rax
je 0x29906
movq %rax, %r14
leaq -0x520(%rbp), %r12
movq %rbx, %r15
movb $0x0, (%r14)
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x29ef1
movq %r14, %r15
incq %r15
movq %r15, %rdi
movl $0x3b, %esi
callq 0x13180
movq %rax, %r14
testq %rax, %rax
jne 0x298d3
leaq -0x520(%rbp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %eax, %eax
callq 0x29ef1
movq %rbx, %rdi
callq 0x13570
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x29947
xorl %eax, %eax
addq $0x520, %rsp # imm = 0x520
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
| mysql_client_plugin_init:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 520h
mov rax, fs:28h
mov [rbp+var_28], rax
xorps xmm0, xmm0
movaps [rbp+var_540], xmm0
mov [rbp+var_530], 0
cmp cs:initialized, 0
jnz loc_29926
lea rdi, [rbp+var_520]
mov edx, 4F8h
xor esi, esi
call _memset
lea rbx, LOCK_load_client_plugin
mov rdi, rbx
xor esi, esi
call _pthread_mutex_init
lea rdi, mem_root
mov esi, 80h
mov edx, 80h
call ma_init_alloc_root
lea rax, plugin_list
xorps xmm0, xmm0
movaps xmmword ptr [rax+30h], xmm0
movaps xmmword ptr [rax+20h], xmm0
movaps xmmword ptr [rax+10h], xmm0
movaps xmmword ptr [rax], xmm0
mov cs:initialized, 1
mov rdi, rbx
call _pthread_mutex_lock
lea r15, mysql_client_builtins
mov rsi, [r15]
test rsi, rsi
jz short loc_2985F
add r15, 8
lea rbx, [rbp+var_520]
lea r14, [rbp+var_540]
loc_29844:
mov rdi, rbx
xor edx, edx
xor ecx, ecx
mov r8, r14
call add_plugin
mov rsi, [r15]
add r15, 8
test rsi, rsi
jnz short loc_29844
loc_2985F:
lea rdi, LOCK_load_client_plugin
call _pthread_mutex_unlock
lea rdi, aLibmysqlPlugin; "LIBMYSQL_PLUGINS"
call _getenv
test rax, rax
jz loc_29926
xor ecx, ecx
loc_29882:
cmp byte ptr [rax+rcx], 0
jz short loc_29899
inc rcx
cmp rcx, 400h
jnz short loc_29882
jmp loc_29926
loc_29899:
cmp rcx, 3FFh
ja loc_29926
mov rdi, rax
call _strdup
mov rbx, rax
mov rdi, rax
mov esi, 3Bh ; ';'
call _strchr
mov r15, rbx
test rax, rax
jz short loc_29906
mov r14, rax
lea r12, [rbp+var_520]
mov r15, rbx
loc_298D3:
mov byte ptr [r14], 0
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
xor eax, eax
call mysql_load_plugin
mov r15, r14
inc r15
mov rdi, r15
mov esi, 3Bh ; ';'
call _strchr
mov r14, rax
test rax, rax
jnz short loc_298D3
loc_29906:
lea rdi, [rbp+var_520]
mov rsi, r15
mov edx, 0FFFFFFFFh
xor ecx, ecx
xor eax, eax
call mysql_load_plugin
mov rdi, rbx
call _free
loc_29926:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_29947
xor eax, eax
add rsp, 520h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_29947:
call ___stack_chk_fail
| long long mysql_client_plugin_init()
{
void *v0; // rsi
void **v1; // r15
long long v2; // rax
unsigned long long v3; // rcx
long long v4; // rbx
long long v5; // rax
int v6; // r8d
int v7; // r9d
int v8; // r15d
_BYTE *v9; // r14
__int128 v11; // [rsp+0h] [rbp-540h] BYREF
long long v12; // [rsp+10h] [rbp-530h]
_BYTE v13[1272]; // [rsp+20h] [rbp-520h] BYREF
unsigned long long v14; // [rsp+518h] [rbp-28h]
v14 = __readfsqword(0x28u);
v11 = 0LL;
v12 = 0LL;
if ( !initialized )
{
memset(v13, 0LL, sizeof(v13));
pthread_mutex_init(&LOCK_load_client_plugin, 0LL);
ma_init_alloc_root((long long)&mem_root, 128LL, 128LL);
plugin_list[3] = 0LL;
plugin_list[2] = 0LL;
plugin_list[1] = 0LL;
plugin_list[0] = 0LL;
initialized = 1;
pthread_mutex_lock(&LOCK_load_client_plugin);
v0 = mysql_client_builtins;
if ( mysql_client_builtins )
{
v1 = (void **)(&mysql_client_builtins + 1);
do
{
((void ( *)(_BYTE *, void *, _QWORD, _QWORD, __int128 *))add_plugin)(v13, v0, 0LL, 0LL, &v11);
v0 = *v1++;
}
while ( v0 );
}
pthread_mutex_unlock(&LOCK_load_client_plugin);
v2 = getenv("LIBMYSQL_PLUGINS");
if ( v2 )
{
v3 = 0LL;
while ( *(_BYTE *)(v2 + v3) )
{
if ( ++v3 == 1024 )
return 0LL;
}
if ( v3 <= 0x3FF )
{
v4 = strdup(v2);
v5 = strchr(v4, 59LL);
v8 = v4;
if ( v5 )
{
v9 = (_BYTE *)v5;
v8 = v4;
do
{
*v9 = 0;
mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11);
v8 = (_DWORD)v9 + 1;
v9 = (_BYTE *)strchr(v9 + 1, 59LL);
}
while ( v9 );
}
mysql_load_plugin((unsigned int)v13, v8, -1, 0, v6, v7, v11);
free(v4);
}
}
}
return 0LL;
}
| mysql_client_plugin_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x520
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x540],XMM0
MOV qword ptr [RBP + -0x530],0x0
CMP byte ptr [0x0014f950],0x0
JNZ 0x00129926
LEA RDI,[RBP + -0x520]
MOV EDX,0x4f8
XOR ESI,ESI
CALL 0x00113260
LEA RBX,[0x14f958]
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001136b0
LEA RDI,[0x14f980]
MOV ESI,0x80
MOV EDX,0x80
CALL 0x001201c0
LEA RAX,[0x14f9c0]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RAX + 0x30],XMM0
MOVAPS xmmword ptr [RAX + 0x20],XMM0
MOVAPS xmmword ptr [RAX + 0x10],XMM0
MOVAPS xmmword ptr [RAX],XMM0
MOV byte ptr [0x0014f950],0x1
MOV RDI,RBX
CALL 0x001136a0
LEA R15,[0x14cea0]
MOV RSI,qword ptr [R15]
TEST RSI,RSI
JZ 0x0012985f
ADD R15,0x8
LEA RBX,[RBP + -0x520]
LEA R14,[RBP + -0x540]
LAB_00129844:
MOV RDI,RBX
XOR EDX,EDX
XOR ECX,ECX
MOV R8,R14
CALL 0x0012994c
MOV RSI,qword ptr [R15]
ADD R15,0x8
TEST RSI,RSI
JNZ 0x00129844
LAB_0012985f:
LEA RDI,[0x14f958]
CALL 0x00113330
LEA RDI,[0x139679]
CALL 0x00113590
TEST RAX,RAX
JZ 0x00129926
XOR ECX,ECX
LAB_00129882:
CMP byte ptr [RAX + RCX*0x1],0x0
JZ 0x00129899
INC RCX
CMP RCX,0x400
JNZ 0x00129882
JMP 0x00129926
LAB_00129899:
CMP RCX,0x3ff
JA 0x00129926
MOV RDI,RAX
CALL 0x001137d0
MOV RBX,RAX
MOV RDI,RAX
MOV ESI,0x3b
CALL 0x00113180
MOV R15,RBX
TEST RAX,RAX
JZ 0x00129906
MOV R14,RAX
LEA R12,[RBP + -0x520]
MOV R15,RBX
LAB_001298d3:
MOV byte ptr [R14],0x0
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00129ef1
MOV R15,R14
INC R15
MOV RDI,R15
MOV ESI,0x3b
CALL 0x00113180
MOV R14,RAX
TEST RAX,RAX
JNZ 0x001298d3
LAB_00129906:
LEA RDI,[RBP + -0x520]
MOV RSI,R15
MOV EDX,0xffffffff
XOR ECX,ECX
XOR EAX,EAX
CALL 0x00129ef1
MOV RDI,RBX
CALL 0x00113570
LAB_00129926:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x00129947
XOR EAX,EAX
ADD RSP,0x520
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00129947:
CALL 0x00113500
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 mysql_client_plugin_init(void)
{
char *pcVar1;
char *__s;
char *pcVar2;
ulong uVar3;
int *puVar4;
int **ppuVar5;
long in_FS_OFFSET;
int8 local_548;
int8 uStack_540;
int8 local_538;
int1 local_528 [1272];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
local_548 = 0;
uStack_540 = 0;
local_538 = 0;
if (initialized == '\0') {
memset(local_528,0,0x4f8);
pthread_mutex_init((pthread_mutex_t *)LOCK_load_client_plugin,(pthread_mutexattr_t *)0x0);
ma_init_alloc_root(mem_root,0x80,0x80);
_DAT_0014f9f0 = 0;
uRam000000000014f9f8 = 0;
_DAT_0014f9e0 = 0;
uRam000000000014f9e8 = 0;
_DAT_0014f9d0 = 0;
uRam000000000014f9d8 = 0;
plugin_list = 0;
DAT_0014f9c8 = 0;
initialized = '\x01';
pthread_mutex_lock((pthread_mutex_t *)LOCK_load_client_plugin);
if (mysql_client_builtins != (int *)0x0) {
ppuVar5 = &PTR_mysql_old_password_client_plugin_0014cea8;
puVar4 = mysql_client_builtins;
do {
add_plugin(local_528,puVar4,0,0,&local_548);
puVar4 = *ppuVar5;
ppuVar5 = ppuVar5 + 1;
} while (puVar4 != (int *)0x0);
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_load_client_plugin);
pcVar1 = getenv("LIBMYSQL_PLUGINS");
if (pcVar1 != (char *)0x0) {
uVar3 = 0;
do {
if (pcVar1[uVar3] == '\0') {
if (uVar3 < 0x400) {
__s = strdup(pcVar1);
pcVar2 = strchr(__s,0x3b);
pcVar1 = __s;
if (pcVar2 != (char *)0x0) {
do {
*pcVar2 = '\0';
mysql_load_plugin(local_528,pcVar1,0xffffffff,0);
pcVar1 = pcVar2 + 1;
pcVar2 = strchr(pcVar1,0x3b);
} while (pcVar2 != (char *)0x0);
}
mysql_load_plugin(local_528,pcVar1,0xffffffff,0);
free(__s);
}
break;
}
uVar3 = uVar3 + 1;
} while (uVar3 != 0x400);
}
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_30) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return 0;
}
| |
43,709 | queue_remove | eloqsql/mysys/queues.c | uchar *queue_remove(QUEUE *queue, uint idx)
{
uchar *element;
DBUG_ASSERT(idx >= 1);
DBUG_ASSERT(idx <= queue->elements);
element= queue->root[idx];
queue->root[idx]= queue->root[queue->elements--];
queue_replace(queue, idx);
return element;
} | O0 | c | queue_remove:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
jmp 0xf73c1
jmp 0xf73c3
jmp 0xf73c5
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rdx
movl 0x10(%rdx), %ecx
movl %ecx, %esi
addl $-0x1, %esi
movl %esi, 0x10(%rdx)
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl -0xc(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0xf7420
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| queue_remove:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
jmp short $+2
loc_F73C1:
jmp short $+2
loc_F73C3:
jmp short $+2
loc_F73C5:
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_C]
mov rax, [rax+rcx*8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov rdx, [rbp+var_8]
mov ecx, [rdx+10h]
mov esi, ecx
add esi, 0FFFFFFFFh
mov [rdx+10h], esi
mov ecx, ecx
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_8]
mov rax, [rax]
mov ecx, [rbp+var_C]
mov [rax+rcx*8], rdx
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
call queue_replace
mov rax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
| long long queue_remove(long long *a1, unsigned int a2)
{
long long v2; // rax
unsigned int v3; // ecx
long long v5; // [rsp+8h] [rbp-18h]
v5 = *(_QWORD *)(*a1 + 8LL * a2);
v2 = *a1;
v3 = *((_DWORD *)a1 + 4);
*((_DWORD *)a1 + 4) = v3 - 1;
*(_QWORD *)(*a1 + 8LL * a2) = *(_QWORD *)(v2 + 8LL * v3);
queue_replace(a1, a2);
return v5;
}
| queue_remove:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
JMP 0x001f73c1
LAB_001f73c1:
JMP 0x001f73c3
LAB_001f73c3:
JMP 0x001f73c5
LAB_001f73c5:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RDX + 0x10]
MOV ESI,ECX
ADD ESI,-0x1
MOV dword ptr [RDX + 0x10],ESI
MOV ECX,ECX
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV ECX,dword ptr [RBP + -0xc]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
CALL 0x001f7420
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
int8 queue_remove(long *param_1,uint param_2)
{
uint uVar1;
int8 uVar2;
uVar2 = *(int8 *)(*param_1 + (ulong)param_2 * 8);
uVar1 = *(uint *)(param_1 + 2);
*(uint *)(param_1 + 2) = uVar1 - 1;
*(int8 *)(*param_1 + (ulong)param_2 * 8) = *(int8 *)(*param_1 + (ulong)uVar1 * 8);
queue_replace(param_1,param_2);
return uVar2;
}
| |
43,710 | SET_source_port | xtate/src/xconf.c | static ConfRes SET_source_port(void *conf, const char *name,
const char *value) {
XConf *xconf = (XConf *)conf;
if (xconf->echo) {
if (xconf->nic.src.port.first) {
fprintf(xconf->echo, "source-port = %d", xconf->nic.src.port.first);
if (xconf->nic.src.port.first != xconf->nic.src.port.last) {
/* --adapter-port <first>-<last> */
fprintf(xconf->echo, "-%d", xconf->nic.src.port.last);
}
fprintf(xconf->echo, "\n");
}
return 0;
}
/* Send packets FROM this port number */
unsigned is_error = 0;
struct RangeList ports = {0};
rangelist_parse_ports(&ports, value, &is_error, 0);
/* Check if there was an error in parsing */
if (is_error) {
LOG(LEVEL_ERROR, "bad source port specification: %s\n", name);
return Conf_ERR;
}
/* Only allow one range of ports */
if (ports.list_len != 1) {
LOG(LEVEL_ERROR,
"only one '%s' range may be specified, found %u ranges\n", name,
ports.list_len);
return Conf_ERR;
}
/* verify range is power of 2 (1, 2, 4, 8, 16, ...) */
if (!conf_is_power_of_2(ports.list[0].end - ports.list[0].begin + 1)) {
LOG(LEVEL_ERROR, "source port range must be power of two: %s=%s\n",
name, value);
return Conf_ERR;
}
xconf->nic.src.port.first = ports.list[0].begin;
xconf->nic.src.port.last = ports.list[0].end;
xconf->nic.src.port.range = ports.list[0].end - ports.list[0].begin + 1;
return Conf_OK;
} | O3 | c | SET_source_port:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq 0x2a8(%rdi), %rdi
testq %rdi, %rdi
je 0x58be5
movl 0x114(%rbx), %edx
testl %edx, %edx
je 0x58c71
leaq 0x25f52(%rip), %rsi # 0x7eaf5
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x15220
movl 0x118(%rbx), %edx
cmpl %edx, 0x114(%rbx)
je 0x58bcf
movq 0x2a8(%rbx), %rdi
leaq 0x25f3e(%rip), %rsi # 0x7eb06
xorl %eax, %eax
callq 0x15220
movq 0x2a8(%rbx), %rsi
movl $0xa, %edi
callq 0x158d0
jmp 0x58cab
movq %rdx, %r15
movq %rsi, %r14
leaq 0xc(%rsp), %r12
movl $0x0, (%r12)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
movq %rdx, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x4634b
cmpl $0x0, (%r12)
je 0x58c33
leaq 0x25ee8(%rip), %rsi # 0x7eb0a
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %r14, %rdx
xorl %eax, %eax
callq 0x536da
jmp 0x58ca6
movl 0x18(%rsp), %ecx
cmpl $0x1, %ecx
jne 0x58c75
movq 0x10(%rsp), %rax
movl 0x4(%rax), %edi
subl (%rax), %edi
incl %edi
callq 0x52e56
testb %al, %al
je 0x58c8d
movq 0x10(%rsp), %rax
movl (%rax), %ecx
movl %ecx, 0x114(%rbx)
movl 0x4(%rax), %eax
movl %eax, 0x118(%rbx)
subl %ecx, %eax
incl %eax
movl %eax, 0x11c(%rbx)
xorl %ebp, %ebp
jmp 0x58cab
leaq 0x25eb1(%rip), %rsi # 0x7eb2d
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %r14, %rdx
xorl %eax, %eax
callq 0x536da
jmp 0x58ca6
leaq 0x25ed0(%rip), %rsi # 0x7eb64
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x536da
movl $0x1, %ebp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| SET_source_port:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 30h
mov rbx, rdi
mov rdi, [rdi+2A8h]
test rdi, rdi
jz short loc_58BE5
mov edx, [rbx+114h]
test edx, edx
jz loc_58C71
lea rsi, aSourcePortD; "source-port = %d"
xor ebp, ebp
xor eax, eax
call _fprintf
mov edx, [rbx+118h]
cmp [rbx+114h], edx
jz short loc_58BCF
mov rdi, [rbx+2A8h]
lea rsi, aD; "-%d"
xor eax, eax
call _fprintf
loc_58BCF:
mov rsi, [rbx+2A8h]
mov edi, 0Ah
call _fputc
jmp loc_58CAB
loc_58BE5:
mov r15, rdx
mov r14, rsi
lea r12, [rsp+58h+var_4C]
mov dword ptr [r12], 0
xorps xmm0, xmm0
lea rdi, [rsp+58h+var_48]
movaps xmmword ptr [rdi+10h], xmm0
movaps xmmword ptr [rdi], xmm0
mov rsi, rdx
mov rdx, r12
xor ecx, ecx
call rangelist_parse_ports
cmp dword ptr [r12], 0
jz short loc_58C33
lea rsi, aBadSourcePortS; "bad source port specification: %s\n"
mov edi, 0FFFFFFFFh
mov rdx, r14
xor eax, eax
call LOG
jmp short loc_58CA6
loc_58C33:
mov ecx, [rsp+58h+var_40]
cmp ecx, 1
jnz short loc_58C75
mov rax, [rsp+58h+var_48]
mov edi, [rax+4]
sub edi, [rax]
inc edi
call conf_is_power_of_2
test al, al
jz short loc_58C8D
mov rax, [rsp+58h+var_48]
mov ecx, [rax]
mov [rbx+114h], ecx
mov eax, [rax+4]
mov [rbx+118h], eax
sub eax, ecx
inc eax
mov [rbx+11Ch], eax
loc_58C71:
xor ebp, ebp
jmp short loc_58CAB
loc_58C75:
lea rsi, aOnlyOneSRangeM; "only one '%s' range may be specified, f"...
mov edi, 0FFFFFFFFh
mov rdx, r14
xor eax, eax
call LOG
jmp short loc_58CA6
loc_58C8D:
lea rsi, aSourcePortRang; "source port range must be power of two:"...
mov edi, 0FFFFFFFFh
mov rdx, r14
mov rcx, r15
xor eax, eax
call LOG
loc_58CA6:
mov ebp, 1
loc_58CAB:
mov eax, ebp
add rsp, 30h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long SET_source_port(
long long a1,
long long a2,
unsigned __int8 *a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13)
{
long long v14; // rdi
int v15; // edx
unsigned int v16; // ebp
int v17; // edx
long long v19; // rcx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // r8
long long v25; // r9
__m128 v26; // xmm4
__m128 v27; // xmm5
long long v28; // rax
int v29; // ecx
char v31; // [rsp+0h] [rbp-58h]
int v32; // [rsp+Ch] [rbp-4Ch] BYREF
_QWORD v33[9]; // [rsp+10h] [rbp-48h] BYREF
v14 = *(_QWORD *)(a1 + 680);
if ( !v14 )
{
v32 = 0;
memset(v33, 0, 32);
rangelist_parse_ports((long long)v33, a3, &v32, 0LL, a13);
if ( v32 )
{
LOG(
-1,
(long long)"bad source port specification: %s\n",
a2,
v19,
v20,
v21,
(__m128)0LL,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v31);
}
else if ( LODWORD(v33[1]) == 1 )
{
if ( conf_is_power_of_2((unsigned int)(*(_DWORD *)(v33[0] + 4LL) - *(_DWORD *)v33[0] + 1)) )
{
v28 = v33[0];
v29 = *(_DWORD *)v33[0];
*(_DWORD *)(a1 + 276) = *(_DWORD *)v33[0];
LODWORD(v28) = *(_DWORD *)(v28 + 4);
*(_DWORD *)(a1 + 280) = v28;
*(_DWORD *)(a1 + 284) = v28 - v29 + 1;
return 0;
}
LOG(
-1,
(long long)"source port range must be power of two: %s=%s\n",
a2,
(long long)a3,
v24,
v25,
(__m128)0LL,
a5,
a6,
a7,
v26,
v27,
a10,
a11,
v31);
}
else
{
LOG(
-1,
(long long)"only one '%s' range may be specified, found %u ranges\n",
a2,
LODWORD(v33[1]),
v20,
v21,
(__m128)0LL,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v31);
}
return 1;
}
v15 = *(_DWORD *)(a1 + 276);
if ( !v15 )
return 0;
v16 = 0;
fprintf(v14, "source-port = %d", v15);
v17 = *(_DWORD *)(a1 + 280);
if ( *(_DWORD *)(a1 + 276) != v17 )
fprintf(*(_QWORD *)(a1 + 680), "-%d", v17);
fputc(10LL, *(_QWORD *)(a1 + 680));
return v16;
}
| SET_source_port:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x2a8]
TEST RDI,RDI
JZ 0x00158be5
MOV EDX,dword ptr [RBX + 0x114]
TEST EDX,EDX
JZ 0x00158c71
LEA RSI,[0x17eaf5]
XOR EBP,EBP
XOR EAX,EAX
CALL 0x00115220
MOV EDX,dword ptr [RBX + 0x118]
CMP dword ptr [RBX + 0x114],EDX
JZ 0x00158bcf
MOV RDI,qword ptr [RBX + 0x2a8]
LEA RSI,[0x17eb06]
XOR EAX,EAX
CALL 0x00115220
LAB_00158bcf:
MOV RSI,qword ptr [RBX + 0x2a8]
MOV EDI,0xa
CALL 0x001158d0
JMP 0x00158cab
LAB_00158be5:
MOV R15,RDX
MOV R14,RSI
LEA R12,[RSP + 0xc]
MOV dword ptr [R12],0x0
XORPS XMM0,XMM0
LEA RDI,[RSP + 0x10]
MOVAPS xmmword ptr [RDI + 0x10],XMM0
MOVAPS xmmword ptr [RDI],XMM0
MOV RSI,RDX
MOV RDX,R12
XOR ECX,ECX
CALL 0x0014634b
CMP dword ptr [R12],0x0
JZ 0x00158c33
LEA RSI,[0x17eb0a]
MOV EDI,0xffffffff
MOV RDX,R14
XOR EAX,EAX
CALL 0x001536da
JMP 0x00158ca6
LAB_00158c33:
MOV ECX,dword ptr [RSP + 0x18]
CMP ECX,0x1
JNZ 0x00158c75
MOV RAX,qword ptr [RSP + 0x10]
MOV EDI,dword ptr [RAX + 0x4]
SUB EDI,dword ptr [RAX]
INC EDI
CALL 0x00152e56
TEST AL,AL
JZ 0x00158c8d
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX]
MOV dword ptr [RBX + 0x114],ECX
MOV EAX,dword ptr [RAX + 0x4]
MOV dword ptr [RBX + 0x118],EAX
SUB EAX,ECX
INC EAX
MOV dword ptr [RBX + 0x11c],EAX
LAB_00158c71:
XOR EBP,EBP
JMP 0x00158cab
LAB_00158c75:
LEA RSI,[0x17eb2d]
MOV EDI,0xffffffff
MOV RDX,R14
XOR EAX,EAX
CALL 0x001536da
JMP 0x00158ca6
LAB_00158c8d:
LEA RSI,[0x17eb64]
MOV EDI,0xffffffff
MOV RDX,R14
MOV RCX,R15
XOR EAX,EAX
CALL 0x001536da
LAB_00158ca6:
MOV EBP,0x1
LAB_00158cab:
MOV EAX,EBP
ADD RSP,0x30
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 SET_source_port(long param_1,int8 param_2,int8 param_3)
{
int iVar1;
int iVar2;
char cVar3;
int8 uVar4;
int local_4c;
int *local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
if (*(FILE **)(param_1 + 0x2a8) == (FILE *)0x0) {
local_4c = 0;
local_38 = 0;
uStack_30 = 0;
local_48 = (int *)0x0;
uStack_40 = 0;
rangelist_parse_ports(&local_48,param_3,&local_4c,0);
if (local_4c == 0) {
if ((int)uStack_40 == 1) {
cVar3 = conf_is_power_of_2((local_48[1] - *local_48) + 1);
if (cVar3 != '\0') {
iVar1 = *local_48;
*(int *)(param_1 + 0x114) = iVar1;
iVar2 = local_48[1];
*(int *)(param_1 + 0x118) = iVar2;
*(int *)(param_1 + 0x11c) = (iVar2 - iVar1) + 1;
goto LAB_00158c71;
}
LOG(0xffffffff,"source port range must be power of two: %s=%s\n",param_2,param_3);
}
else {
LOG(0xffffffff,"only one \'%s\' range may be specified, found %u ranges\n",param_2);
}
}
else {
LOG(0xffffffff,"bad source port specification: %s\n",param_2);
}
uVar4 = 1;
}
else {
if (*(int *)(param_1 + 0x114) != 0) {
fprintf(*(FILE **)(param_1 + 0x2a8),"source-port = %d");
if (*(int *)(param_1 + 0x114) != *(int *)(param_1 + 0x118)) {
fprintf(*(FILE **)(param_1 + 0x2a8),"-%d");
}
fputc(10,*(FILE **)(param_1 + 0x2a8));
return 0;
}
LAB_00158c71:
uVar4 = 0;
}
return uVar4;
}
| |
43,711 | heap_scan | eloqsql/storage/heap/hp_scan.c | int heap_scan(register HP_INFO *info, uchar *record)
{
HP_SHARE *share=info->s;
ulong pos;
DBUG_ENTER("heap_scan");
pos= ++info->current_record;
if (pos < info->next_block)
{
info->current_ptr+=share->block.recbuffer;
}
else
{
/* increase next_block to the next records_in_block boundary */
ulong rem= info->next_block % share->block.records_in_block;
info->next_block+=share->block.records_in_block - rem;
if (info->next_block >= share->records+share->deleted)
{
info->next_block= share->records+share->deleted;
if (pos >= info->next_block)
{
info->update= 0;
DBUG_RETURN(my_errno= HA_ERR_END_OF_FILE);
}
}
hp_find_record(info, pos);
}
if (!info->current_ptr[share->visible])
{
DBUG_PRINT("warning",("Found deleted record"));
info->update= HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND;
DBUG_RETURN(my_errno=HA_ERR_RECORD_DELETED);
}
info->update= HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND | HA_STATE_AKTIV;
memcpy(record,info->current_ptr,(size_t) share->reclength);
info->current_hash_ptr=0; /* Can't use read_next */
DBUG_RETURN(0);
} | O0 | c | heap_scan:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rax
addq $0x1, %rax
movq %rax, 0x18(%rcx)
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x2c7ed
movq -0x20(%rbp), %rax
movl 0x84(%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movl %edx, %edx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
jmp 0x2c8af
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
xorl %edx, %edx
divq 0x88(%rcx)
movq %rdx, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x88(%rax), %rcx
subq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x20(%rax), %rcx
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq 0xd0(%rcx), %rcx
movq -0x20(%rbp), %rdx
addq 0xe0(%rdx), %rcx
cmpq %rcx, %rax
jb 0x2c894
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rcx
movq -0x20(%rbp), %rax
addq 0xe0(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x20(%rcx), %rax
jb 0x2c892
movq -0x10(%rbp), %rax
movl $0x0, 0x38(%rax)
callq 0x31370
movl $0x89, (%rax)
movl $0x89, -0x4(%rbp)
jmp 0x2c925
jmp 0x2c894
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x26d60
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x20(%rbp), %rcx
movl 0xf8(%rcx), %ecx
cmpb $0x0, (%rax,%rcx)
jne 0x2c8ea
jmp 0x2c8c9
jmp 0x2c8cb
movq -0x10(%rbp), %rax
movl $0x30, 0x38(%rax)
callq 0x31370
movl $0x86, (%rax)
movl $0x86, -0x4(%rbp)
jmp 0x2c925
movq -0x10(%rbp), %rax
movl $0x32, 0x38(%rax)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x20(%rbp), %rax
movl 0xf4(%rax), %eax
movl %eax, %edx
callq 0x24200
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop
| heap_scan:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_20], rax
mov rcx, [rbp+var_10]
mov rax, [rcx+18h]
add rax, 1
mov [rcx+18h], rax
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
cmp rax, [rcx+20h]
jnb short loc_2C7ED
mov rax, [rbp+var_20]
mov edx, [rax+84h]
mov rax, [rbp+var_10]
mov rcx, [rax+8]
mov edx, edx
add rcx, rdx
mov [rax+8], rcx
jmp loc_2C8AF
loc_2C7ED:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
xor edx, edx
div qword ptr [rcx+88h]
mov [rbp+var_30], rdx
mov rax, [rbp+var_20]
mov rcx, [rax+88h]
sub rcx, [rbp+var_30]
mov rax, [rbp+var_10]
add rcx, [rax+20h]
mov [rax+20h], rcx
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rcx, [rcx+0D0h]
mov rdx, [rbp+var_20]
add rcx, [rdx+0E0h]
cmp rax, rcx
jb short loc_2C894
mov rax, [rbp+var_20]
mov rcx, [rax+0D0h]
mov rax, [rbp+var_20]
add rcx, [rax+0E0h]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_28]
mov rcx, [rbp+var_10]
cmp rax, [rcx+20h]
jb short loc_2C892
mov rax, [rbp+var_10]
mov dword ptr [rax+38h], 0
call _my_thread_var
mov dword ptr [rax], 89h
mov [rbp+var_4], 89h
jmp loc_2C925
loc_2C892:
jmp short $+2
loc_2C894:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rsi, [rbp+var_28]
call hp_find_block
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
loc_2C8AF:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_20]
mov ecx, [rcx+0F8h]
cmp byte ptr [rax+rcx], 0
jnz short loc_2C8EA
jmp short $+2
loc_2C8C9:
jmp short $+2
loc_2C8CB:
mov rax, [rbp+var_10]
mov dword ptr [rax+38h], 30h ; '0'
call _my_thread_var
mov dword ptr [rax], 86h
mov [rbp+var_4], 86h
jmp short loc_2C925
loc_2C8EA:
mov rax, [rbp+var_10]
mov dword ptr [rax+38h], 32h ; '2'
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_20]
mov eax, [rax+0F4h]
mov edx, eax
call _memcpy
mov rax, [rbp+var_10]
mov qword ptr [rax+10h], 0
mov [rbp+var_4], 0
loc_2C925:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long heap_scan(long long a1, long long a2)
{
unsigned long long v2; // rax
long long *v4; // [rsp+10h] [rbp-20h]
v4 = *(long long **)a1;
v2 = *(_QWORD *)(a1 + 24) + 1LL;
*(_QWORD *)(a1 + 24) = v2;
if ( v2 >= *(_QWORD *)(a1 + 32) )
{
*(_QWORD *)(a1 + 32) += v4[17] - *(_QWORD *)(a1 + 32) % (unsigned long long)v4[17];
if ( *(_QWORD *)(a1 + 32) >= (unsigned long long)(v4[28] + v4[26]) )
{
*(_QWORD *)(a1 + 32) = v4[28] + v4[26];
if ( v2 >= *(_QWORD *)(a1 + 32) )
{
*(_DWORD *)(a1 + 56) = 0;
*(_DWORD *)my_thread_var() = 137;
return 137;
}
}
*(_QWORD *)(a1 + 8) = hp_find_block(*(long long **)a1, v2);
}
else
{
*(_QWORD *)(a1 + 8) += *((unsigned int *)v4 + 33);
}
if ( *(_BYTE *)(*(_QWORD *)(a1 + 8) + *((unsigned int *)v4 + 62)) )
{
*(_DWORD *)(a1 + 56) = 50;
memcpy(a2, *(_QWORD *)(a1 + 8), *((unsigned int *)v4 + 61));
*(_QWORD *)(a1 + 16) = 0LL;
return 0;
}
else
{
*(_DWORD *)(a1 + 56) = 48;
*(_DWORD *)my_thread_var() = 134;
return 134;
}
}
| heap_scan:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x20],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RCX + 0x18]
ADD RAX,0x1
MOV qword ptr [RCX + 0x18],RAX
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x20]
JNC 0x0012c7ed
MOV RAX,qword ptr [RBP + -0x20]
MOV EDX,dword ptr [RAX + 0x84]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV EDX,EDX
ADD RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
JMP 0x0012c8af
LAB_0012c7ed:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
XOR EDX,EDX
DIV qword ptr [RCX + 0x88]
MOV qword ptr [RBP + -0x30],RDX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x88]
SUB RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0xd0]
MOV RDX,qword ptr [RBP + -0x20]
ADD RCX,qword ptr [RDX + 0xe0]
CMP RAX,RCX
JC 0x0012c894
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0xd0]
MOV RAX,qword ptr [RBP + -0x20]
ADD RCX,qword ptr [RAX + 0xe0]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x20]
JC 0x0012c892
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],0x0
CALL 0x00131370
MOV dword ptr [RAX],0x89
MOV dword ptr [RBP + -0x4],0x89
JMP 0x0012c925
LAB_0012c892:
JMP 0x0012c894
LAB_0012c894:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00126d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_0012c8af:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RCX + 0xf8]
CMP byte ptr [RAX + RCX*0x1],0x0
JNZ 0x0012c8ea
JMP 0x0012c8c9
LAB_0012c8c9:
JMP 0x0012c8cb
LAB_0012c8cb:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],0x30
CALL 0x00131370
MOV dword ptr [RAX],0x86
MOV dword ptr [RBP + -0x4],0x86
JMP 0x0012c925
LAB_0012c8ea:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],0x32
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0xf4]
MOV EDX,EAX
CALL 0x00124200
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_0012c925:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 heap_scan(long *param_1,void *param_2)
{
long lVar1;
ulong uVar2;
long lVar3;
int4 *puVar4;
int4 local_c;
lVar1 = *param_1;
uVar2 = param_1[3] + 1;
param_1[3] = uVar2;
if (uVar2 < (ulong)param_1[4]) {
param_1[1] = param_1[1] + (ulong)*(uint *)(lVar1 + 0x84);
}
else {
param_1[4] = (*(long *)(lVar1 + 0x88) - (ulong)param_1[4] % *(ulong *)(lVar1 + 0x88)) +
param_1[4];
if (((ulong)(*(long *)(lVar1 + 0xd0) + *(long *)(lVar1 + 0xe0)) <= (ulong)param_1[4]) &&
(param_1[4] = *(long *)(lVar1 + 0xd0) + *(long *)(lVar1 + 0xe0), (ulong)param_1[4] <= uVar2))
{
*(int4 *)(param_1 + 7) = 0;
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x89;
return 0x89;
}
lVar3 = hp_find_block(*param_1,uVar2);
param_1[1] = lVar3;
}
if (*(char *)(param_1[1] + (ulong)*(uint *)(lVar1 + 0xf8)) == '\0') {
*(int4 *)(param_1 + 7) = 0x30;
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x86;
local_c = 0x86;
}
else {
*(int4 *)(param_1 + 7) = 0x32;
memcpy(param_2,(void *)param_1[1],(ulong)*(uint *)(lVar1 + 0xf4));
param_1[2] = 0;
local_c = 0;
}
return local_c;
}
| |
43,712 | my_strntod_mb2_or_mb4 | eloqsql/strings/ctype-ucs2.c | static double
my_strntod_mb2_or_mb4(CHARSET_INFO *cs,
char *nptr, size_t length,
char **endptr, int *err)
{
char buf[256];
double res;
register char *b= buf;
register const uchar *s= (const uchar*) nptr;
const uchar *end;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc;
int cnv;
*err= 0;
/* Cut too long strings */
if (length >= sizeof(buf))
length= sizeof(buf) - 1;
end= s + length;
while ((cnv= mb_wc(cs, &wc, s, end)) > 0)
{
s+= cnv;
if (wc > (int) (uchar) 'e' || !wc)
break; /* Can't be part of double */
*b++= (char) wc;
}
*endptr= b;
res= my_strtod(buf, endptr, err);
*endptr= nptr + cs->mbminlen * (size_t) (*endptr - buf);
return res;
} | O3 | c | my_strntod_mb2_or_mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp # imm = 0x128
movq %rcx, -0x150(%rbp)
movq %rsi, %rcx
movq %rdi, %r15
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0xb8(%rdi), %rax
movq 0x28(%rax), %rbx
movq %r8, -0x148(%rbp)
movl $0x0, (%r8)
movl $0xff, %r13d
cmpq %r13, %rdx
cmovbq %rdx, %r13
addq %rsi, %r13
leaq -0x140(%rbp), %rsi
movq %rcx, -0x138(%rbp)
movq %rcx, %rdx
movq %r13, %rcx
callq *%rbx
leaq -0x130(%rbp), %r12
testl %eax, %eax
jle 0x4c2e5
movq -0x138(%rbp), %r14
movq -0x140(%rbp), %rcx
leaq -0x1(%rcx), %rdx
cmpq $0x64, %rdx
ja 0x4c2e5
movl %eax, %eax
addq %rax, %r14
movb %cl, (%r12)
incq %r12
movq %r15, %rdi
leaq -0x140(%rbp), %rsi
movq %r14, %rdx
movq %r13, %rcx
callq *%rbx
testl %eax, %eax
jg 0x4c2b2
movq -0x150(%rbp), %rbx
movq %r12, (%rbx)
leaq -0x130(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq -0x148(%rbp), %rdx
callq 0x5be60
movl 0x98(%r15), %eax
movq (%rbx), %rcx
subq %r14, %rcx
imulq %rax, %rcx
movq -0x138(%rbp), %rax
addq %rcx, %rax
movq %rax, (%rbx)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x4c347
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x24400
| my_strntod_mb2_or_mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov [rbp+var_150], rcx
mov rcx, rsi
mov r15, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+0B8h]
mov rbx, [rax+28h]
mov [rbp+var_148], r8
mov dword ptr [r8], 0
mov r13d, 0FFh
cmp rdx, r13
cmovb r13, rdx
add r13, rsi
lea rsi, [rbp+var_140]
mov [rbp+var_138], rcx
mov rdx, rcx
mov rcx, r13
call rbx
lea r12, [rbp+var_130]
test eax, eax
jle short loc_4C2E5
mov r14, [rbp+var_138]
loc_4C2B2:
mov rcx, [rbp+var_140]
lea rdx, [rcx-1]
cmp rdx, 64h ; 'd'
ja short loc_4C2E5
mov eax, eax
add r14, rax
mov [r12], cl
inc r12
mov rdi, r15
lea rsi, [rbp+var_140]
mov rdx, r14
mov rcx, r13
call rbx
test eax, eax
jg short loc_4C2B2
loc_4C2E5:
mov rbx, [rbp+var_150]
mov [rbx], r12
lea r14, [rbp+var_130]
mov rdi, r14
mov rsi, rbx
mov rdx, [rbp+var_148]
call my_strtod
mov eax, [r15+98h]
mov rcx, [rbx]
sub rcx, r14
imul rcx, rax
mov rax, [rbp+var_138]
add rax, rcx
mov [rbx], rax
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_4C347
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4C347:
call ___stack_chk_fail
| unsigned long long my_strntod_mb2_or_mb4(long long a1, long long a2, unsigned long long a3, _QWORD *a4, _DWORD *a5)
{
long long ( *v5)(long long, long long *, long long, long long); // rbx
long long v6; // r13
long long v7; // r13
int v8; // eax
_BYTE *v9; // r12
long long v10; // r14
long long v14; // [rsp+10h] [rbp-140h] BYREF
long long v15; // [rsp+18h] [rbp-138h]
_BYTE v16[256]; // [rsp+20h] [rbp-130h] BYREF
unsigned long long v17; // [rsp+120h] [rbp-30h]
v17 = __readfsqword(0x28u);
v5 = *(long long ( **)(long long, long long *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL);
*a5 = 0;
v6 = 255LL;
if ( a3 < 0xFF )
v6 = a3;
v7 = a2 + v6;
v15 = a2;
v8 = v5(a1, &v14, a2, v7);
v9 = v16;
if ( v8 > 0 )
{
v10 = v15;
do
{
if ( (unsigned long long)(v14 - 1) > 0x64 )
break;
v10 += (unsigned int)v8;
*v9++ = v14;
v8 = v5(a1, &v14, v10, v7);
}
while ( v8 > 0 );
}
*a4 = v9;
my_strtod(v16, a4, a5);
*a4 = *(unsigned int *)(a1 + 152) * (*a4 - (_QWORD)v16) + v15;
return __readfsqword(0x28u);
}
| my_strntod_mb2_or_mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV qword ptr [RBP + -0x150],RCX
MOV RCX,RSI
MOV R15,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0xb8]
MOV RBX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x148],R8
MOV dword ptr [R8],0x0
MOV R13D,0xff
CMP RDX,R13
CMOVC R13,RDX
ADD R13,RSI
LEA RSI,[RBP + -0x140]
MOV qword ptr [RBP + -0x138],RCX
MOV RDX,RCX
MOV RCX,R13
CALL RBX
LEA R12,[RBP + -0x130]
TEST EAX,EAX
JLE 0x0014c2e5
MOV R14,qword ptr [RBP + -0x138]
LAB_0014c2b2:
MOV RCX,qword ptr [RBP + -0x140]
LEA RDX,[RCX + -0x1]
CMP RDX,0x64
JA 0x0014c2e5
MOV EAX,EAX
ADD R14,RAX
MOV byte ptr [R12],CL
INC R12
MOV RDI,R15
LEA RSI,[RBP + -0x140]
MOV RDX,R14
MOV RCX,R13
CALL RBX
TEST EAX,EAX
JG 0x0014c2b2
LAB_0014c2e5:
MOV RBX,qword ptr [RBP + -0x150]
MOV qword ptr [RBX],R12
LEA R14,[RBP + -0x130]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,qword ptr [RBP + -0x148]
CALL 0x0015be60
MOV EAX,dword ptr [R15 + 0x98]
MOV RCX,qword ptr [RBX]
SUB RCX,R14
IMUL RCX,RAX
MOV RAX,qword ptr [RBP + -0x138]
ADD RAX,RCX
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0014c347
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014c347:
CALL 0x00124400
|
void my_strntod_mb2_or_mb4
(long param_1,long param_2,ulong param_3,long *param_4,int4 *param_5)
{
code *pcVar1;
uint uVar2;
int1 *puVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
long local_148;
long local_140;
int1 local_138 [256];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28);
*param_5 = 0;
uVar4 = 0xff;
if (param_3 < 0xff) {
uVar4 = param_3;
}
local_140 = param_2;
uVar2 = (*pcVar1)(param_1,&local_148,param_2,uVar4 + param_2);
puVar3 = local_138;
lVar5 = local_140;
while ((0 < (int)uVar2 && (local_148 - 1U < 0x65))) {
lVar5 = lVar5 + (ulong)uVar2;
*puVar3 = (char)local_148;
puVar3 = puVar3 + 1;
uVar2 = (*pcVar1)(param_1,&local_148,lVar5,uVar4 + param_2);
}
*param_4 = (long)puVar3;
my_strtod(local_138,param_4,param_5);
*param_4 = local_140 + (*param_4 - (long)local_138) * (ulong)*(uint *)(param_1 + 0x98);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
43,713 | void nlohmann::json_abi_v3_11_3::detail::from_json<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>, int, 0>(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&, int&) | llama.cpp/common/json.hpp | inline void from_json(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::boolean:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::from_json<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>, int, 0>(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&, int&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
addl $-0x4, %eax
cmpl $0x3, %eax
ja 0xbfed1
leaq 0x60782(%rip), %rcx # 0x12062c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x8(%r14), %eax
jmp 0xbfec6
movzbl 0x8(%r14), %eax
jmp 0xbfec6
cvttsd2si 0x8(%r14), %eax
movl %eax, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x21630
movq %rax, %rbx
movq %r14, %rdi
callq 0x89e28
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x6177b(%rip), %rsi # 0x121670
leaq 0x10(%rsp), %rdi
callq 0x7f7b4
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0xbb850
xorl %ebp, %ebp
leaq 0xa3110(%rip), %rsi # 0x163030
leaq -0x4a22f(%rip), %rdx # 0x75cf8
movq %rbx, %rdi
callq 0x21a50
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbff4d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21170
testb %bpl, %bpl
jne 0xbff57
jmp 0xbff5f
movq %rax, %r14
movq %rbx, %rdi
callq 0x21ef0
movq %r14, %rdi
callq 0x21af0
nop
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; void *
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
add eax, 0FFFFFFFCh; switch 4 cases
cmp eax, 3
ja short def_BFEB1; jumptable 00000000000BFEB1 default case
lea rcx, jpt_BFEB1
movsxd rax, ds:(jpt_BFEB1 - 12062Ch)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_BFEB3:
mov eax, [r14+8]; jumptable 00000000000BFEB1 cases 5,6
jmp short loc_BFEC6
loc_BFEB9:
movzx eax, byte ptr [r14+8]; jumptable 00000000000BFEB1 case 4
jmp short loc_BFEC6
loc_BFEC0:
cvttsd2si eax, qword ptr [r14+8]; jumptable 00000000000BFEB1 case 7
loc_BFEC6:
mov [rsi], eax
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
def_BFEB1:
mov edi, 20h ; ' '; jumptable 00000000000BFEB1 default case
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; 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
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_BFF4D
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_BFF4D:
test bpl, bpl
jnz short loc_BFF57
jmp short loc_BFF5F
mov r14, rax
loc_BFF57:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_BFF5F:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
unsigned __int8 *a1,
_DWORD *a2)
{
long long result; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v4; // [rsp+8h] [rbp-40h] BYREF
_QWORD v5[2]; // [rsp+10h] [rbp-38h] BYREF
switch ( *a1 )
{
case 4u:
result = a1[8];
break;
case 5u:
case 6u:
result = *((unsigned int *)a1 + 2);
break;
case 7u:
result = (unsigned int)(int)*((double *)a1 + 1);
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
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>::type_name(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v5,
(long long)"type must be number, but is ",
&v4);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v5);
__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);
}
*a2 = result;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
ADD EAX,-0x4
CMP EAX,0x3
JA 0x001bfed1
LEA RCX,[0x22062c]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_5:
MOV EAX,dword ptr [R14 + 0x8]
JMP 0x001bfec6
caseD_4:
MOVZX EAX,byte ptr [R14 + 0x8]
JMP 0x001bfec6
caseD_7:
CVTTSD2SI EAX,qword ptr [R14 + 0x8]
LAB_001bfec6:
MOV dword ptr [RSI],EAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
default:
MOV EDI,0x20
CALL 0x00121630
MOV RBX,RAX
MOV RDI,R14
CALL 0x00189e28
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001bfeee:
LEA RSI,[0x221670]
LEA RDI,[RSP + 0x10]
CALL 0x0017f7b4
MOV BPL,0x1
LAB_001bff02:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x001bb850
XOR EBP,EBP
LEA RSI,[0x263030]
LEA RDX,[0x175cf8]
MOV RDI,RBX
CALL 0x00121a50
|
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEiTnNSt9enable_ifIXaaaaaaaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_17number_unsigned_tEEE5valuentsr3std7is_sameISH_NSI_16number_integer_tEEE5valuentsr3std7is_sameISH_NSI_14number_float_tEEE5valuentsr3std7is_sameISH_NSI_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,uint *param_2)
{
uint uVar1;
int8 uVar2;
char *local_40;
detail local_38 [32];
switch(*param_1) {
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x4:
uVar1 = (uint)(byte)param_1[8];
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x5:
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x6:
uVar1 = *(uint *)(param_1 + 8);
break;
case (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x7:
uVar1 = (uint)*(double *)(param_1 + 8);
break;
default:
uVar2 = __cxa_allocate_exception(0x20);
local_40 = (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 001bfeee to 001bfefe has its CatchHandler @ 001bff54 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 001bff02 to 001bff2e has its CatchHandler @ 001bff2f */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*param_2 = uVar1;
return;
}
| |
43,714 | test::get_field_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | llama.cpp/examples/llama-bench/llama-bench.cpp | static field_type get_field_type(const std::string & field) {
if (field == "build_number" || field == "n_batch" || field == "n_ubatch" || field == "n_threads" ||
field == "poll" || field == "model_size" || field == "model_n_params" || field == "n_gpu_layers" ||
field == "main_gpu" || field == "n_prompt" || field == "n_gen" || field == "avg_ns" ||
field == "stddev_ns") {
return INT;
}
if (field == "f16_kv" || field == "no_kv_offload" || field == "cpu_strict" || field == "flash_attn" ||
field == "use_mmap" || field == "embeddings") {
return BOOL;
}
if (field == "avg_ts" || field == "stddev_ts") {
return FLOAT;
}
return STRING;
} | O3 | cpp | test::get_field_type(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xf6a7(%rip), %rsi # 0x404eb
callq 0x16aa0
movl $0x2, %ebx
testl %eax, %eax
je 0x31018
leaq 0xf6ea(%rip), %rsi # 0x40547
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf6db(%rip), %rsi # 0x4054f
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf6cd(%rip), %rsi # 0x40558
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xe5af(%rip), %rsi # 0x3f451
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf674(%rip), %rsi # 0x4052d
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf668(%rip), %rsi # 0x40538
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf69d(%rip), %rsi # 0x40584
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf69e(%rip), %rsi # 0x4059c
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf6bf(%rip), %rsi # 0x405d4
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf6b1(%rip), %rsi # 0x405dd
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf6aa(%rip), %rsi # 0x405ed
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf69a(%rip), %rsi # 0x405f4
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf74a(%rip), %rsi # 0x406bb
movq %r14, %rdi
callq 0x16aa0
movl $0x1, %ebx
testl %eax, %eax
je 0x31018
leaq 0xf618(%rip), %rsi # 0x405a5
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf5cb(%rip), %rsi # 0x4056b
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf600(%rip), %rsi # 0x405b3
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf605(%rip), %rsi # 0x405cb
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xe523(%rip), %rsi # 0x3f4fc
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31018
leaq 0xf612(%rip), %rsi # 0x405fe
movq %r14, %rdi
callq 0x16aa0
testl %eax, %eax
je 0x31013
leaq 0xf606(%rip), %rsi # 0x40605
movq %r14, %rdi
callq 0x16aa0
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
leal (%rcx,%rcx,2), %ebx
jmp 0x31018
movl $0x3, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN4test14get_field_typeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx
push rax
mov r14, rdi
lea rsi, aBuildNumber; "build_number"
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
mov ebx, 2
test eax, eax
jz loc_31018
lea rsi, aNBatch; "n_batch"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aNUbatch; "n_ubatch"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aNThreads; "n_threads"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aPoll+2; "poll"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aModelSize; "model_size"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aModelNParams; "model_n_params"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aNGpuLayers_0; "n_gpu_layers"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aMainGpu_0; "main_gpu"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aNPrompt_0; "n_prompt"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aNGen_0; "n_gen"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aAvgNs; "avg_ns"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aStddevNs; "stddev_ns"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz loc_31018
lea rsi, aF16Kv; "f16_kv"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
mov ebx, 1
test eax, eax
jz loc_31018
lea rsi, aNoKvOffload_0; "no_kv_offload"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31018
lea rsi, aCpuStrict_0; "cpu_strict"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31018
lea rsi, aFlashAttn_0; "flash_attn"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31018
lea rsi, aUseMmap; "use_mmap"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31018
lea rsi, aEmbeddings+2; "embeddings"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31018
lea rsi, aAvgTs; "avg_ts"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_31013
lea rsi, aStddevTs; "stddev_ts"
mov rdi, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
xor ecx, ecx
test eax, eax
setz cl
lea ebx, [rcx+rcx*2]
jmp short loc_31018
loc_31013:
mov ebx, 3
loc_31018:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
retn
| long long test::get_field_type(long long a1)
{
unsigned int v1; // ebx
v1 = 2;
if ( (unsigned int)std::string::compare(a1, "build_number") )
{
if ( (unsigned int)std::string::compare(a1, "n_batch") )
{
if ( (unsigned int)std::string::compare(a1, "n_ubatch") )
{
if ( (unsigned int)std::string::compare(a1, "n_threads") )
{
if ( (unsigned int)std::string::compare(a1, "poll") )
{
if ( (unsigned int)std::string::compare(a1, "model_size") )
{
if ( (unsigned int)std::string::compare(a1, "model_n_params") )
{
if ( (unsigned int)std::string::compare(a1, "n_gpu_layers") )
{
if ( (unsigned int)std::string::compare(a1, "main_gpu") )
{
if ( (unsigned int)std::string::compare(a1, "n_prompt") )
{
if ( (unsigned int)std::string::compare(a1, "n_gen") )
{
if ( (unsigned int)std::string::compare(a1, "avg_ns") )
{
if ( (unsigned int)std::string::compare(a1, "stddev_ns") )
{
v1 = 1;
if ( (unsigned int)std::string::compare(a1, "f16_kv") )
{
if ( (unsigned int)std::string::compare(a1, "no_kv_offload")
&& (unsigned int)std::string::compare(a1, "cpu_strict")
&& (unsigned int)std::string::compare(a1, "flash_attn")
&& (unsigned int)std::string::compare(a1, "use_mmap")
&& (unsigned int)std::string::compare(a1, "embeddings") )
{
if ( !(unsigned int)std::string::compare(a1, "avg_ts") )
return 3;
else
return 3 * (unsigned int)((unsigned int)std::string::compare(a1, "stddev_ts") == 0);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return v1;
}
| get_field_type:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
LEA RSI,[0x1404eb]
CALL 0x00116aa0
MOV EBX,0x2
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x140547]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x14054f]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x140558]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x13f451]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x14052d]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x140538]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x140584]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x14059c]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405d4]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405dd]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405ed]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405f4]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1406bb]
MOV RDI,R14
CALL 0x00116aa0
MOV EBX,0x1
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405a5]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x14056b]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405b3]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405cb]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x13f4fc]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131018
LEA RSI,[0x1405fe]
MOV RDI,R14
CALL 0x00116aa0
TEST EAX,EAX
JZ 0x00131013
LEA RSI,[0x140605]
MOV RDI,R14
CALL 0x00116aa0
XOR ECX,ECX
TEST EAX,EAX
SETZ CL
LEA EBX,[RCX + RCX*0x2]
JMP 0x00131018
LAB_00131013:
MOV EBX,0x3
LAB_00131018:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* test::get_field_type(std::__cxx11::string const&) */
char test::get_field_type(string *param_1)
{
int iVar1;
char cVar2;
iVar1 = std::__cxx11::string::compare((char *)param_1);
cVar2 = '\x02';
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
cVar2 = '\x01';
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 != 0) {
iVar1 = std::__cxx11::string::compare((char *)param_1);
if (iVar1 == 0) {
cVar2 = '\x03';
}
else {
iVar1 = std::__cxx11::string::compare((char *)param_1);
cVar2 = (iVar1 == 0) * '\x03';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return cVar2;
}
| |
43,715 | ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer(std::ostream&) | BadAccessGuards/build_O0/_deps/nanobench-src/src/include/nanobench.h | StreamStateRestorer::StreamStateRestorer(std::ostream& s)
: mStream(s)
, mLocale(s.getloc())
, mPrecision(s.precision())
, mWidth(s.width())
, mFill(s.fill())
, mFmtFlags(s.flags()) {} | O0 | c | ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer(std::ostream&):
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, (%rdi)
addq $0x8, %rdi
movq %rdi, -0x40(%rbp)
movq -0x10(%rbp), %rsi
movq (%rsi), %rax
movq -0x18(%rax), %rax
addq %rax, %rsi
callq 0x1d630
movq -0x38(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x1d670
movq %rax, -0x28(%rbp)
jmp 0x15fcf
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rdx
movq %rdx, (%rcx)
addq $0x18, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x1d690
movq %rax, -0x48(%rbp)
jmp 0x15fff
movq -0x38(%rbp), %rax
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rdx
movq %rdx, (%rcx)
addq $0x20, %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x41f0
movb %al, -0x51(%rbp)
jmp 0x1602e
movq -0x38(%rbp), %rax
movq -0x60(%rbp), %rcx
movb -0x51(%rbp), %dl
movb %dl, (%rcx)
addq $0x24, %rax
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x1d6b0
movl %eax, -0x64(%rbp)
jmp 0x1605b
movq -0x70(%rbp), %rax
movl -0x64(%rbp), %ecx
movl %ecx, (%rax)
addq $0x70, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x4650
movq -0x18(%rbp), %rdi
callq 0x47a0
nopl (%rax,%rax)
| _ZN6ankerl9nanobench6detail3fmt19StreamStateRestorerC2ERSo:
push rbp; Alternative name is 'ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer(std::ostream &)'
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
mov [rbp+var_38], rdi
mov rax, [rbp+var_10]
mov [rdi], rax
add rdi, 8; this
mov [rbp+var_40], rdi
mov rsi, [rbp+var_10]
mov rax, [rsi]
mov rax, [rax-18h]
add rsi, rax
call _ZNKSt8ios_base6getlocEv; std::ios_base::getloc(void)
mov rax, [rbp+var_38]
add rax, 10h
mov [rbp+var_30], rax
mov rdi, [rbp+var_10]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax; this
call _ZNKSt8ios_base9precisionEv; std::ios_base::precision(void)
mov [rbp+var_28], rax
jmp short $+2
loc_15FCF:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_30]
mov rdx, [rbp+var_28]
mov [rcx], rdx
add rax, 18h
mov [rbp+var_50], rax
mov rdi, [rbp+var_10]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax; this
call _ZNKSt8ios_base5widthEv; std::ios_base::width(void)
mov [rbp+var_48], rax
jmp short $+2
loc_15FFF:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_50]
mov rdx, [rbp+var_48]
mov [rcx], rdx
add rax, 20h ; ' '
mov [rbp+var_60], rax
mov rdi, [rbp+var_10]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax
call __ZNKSt9basic_iosIcSt11char_traitsIcEE4fillEv; std::ios::fill(void)
mov [rbp+var_51], al
jmp short $+2
loc_1602E:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_60]
mov dl, [rbp+var_51]
mov [rcx], dl
add rax, 24h ; '$'
mov [rbp+var_70], rax
mov rdi, [rbp+var_10]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax; this
call _ZNKSt8ios_base5flagsEv; std::ios_base::flags(void)
mov [rbp+var_64], eax
jmp short $+2
loc_1605B:
mov rax, [rbp+var_70]
mov ecx, [rbp+var_64]
mov [rax], ecx
add rsp, 70h
pop rbp
retn
mov rdi, [rbp+var_40]; this
mov rcx, rax
mov eax, edx
mov [rbp+var_18], rcx
mov [rbp+var_1C], eax
call __ZNSt6localeD1Ev; std::locale::~locale()
mov rdi, [rbp+var_18]
call __Unwind_Resume
| long long ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer(
ankerl::nanobench::detail::fmt::StreamStateRestorer *this,
std::ostream *a2)
{
char *v2; // rsi
long long result; // rax
int v4; // [rsp+Ch] [rbp-64h]
*(_QWORD *)this = a2;
v2 = (char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL);
std::ios_base::getloc((ankerl::nanobench::detail::fmt::StreamStateRestorer *)((char *)this + 8));
*((_QWORD *)this + 2) = std::ios_base::precision((std::ostream *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL)));
*((_QWORD *)this + 3) = std::ios_base::width((std::ostream *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL)));
*((_BYTE *)this + 32) = std::ios::fill((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL), v2);
v4 = std::ios_base::flags((std::ostream *)((char *)a2 + *(_QWORD *)(*(_QWORD *)a2 - 24LL)));
result = (long long)this + 36;
*((_DWORD *)this + 9) = v4;
return result;
}
| StreamStateRestorer:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x38],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RDI],RAX
ADD RDI,0x8
MOV qword ptr [RBP + -0x40],RDI
MOV RSI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RSI,RAX
CALL 0x0011d630
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x10
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
LAB_00115fc4:
CALL 0x0011d670
MOV qword ptr [RBP + -0x28],RAX
JMP 0x00115fcf
LAB_00115fcf:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
MOV qword ptr [RCX],RDX
ADD RAX,0x18
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
CALL 0x0011d690
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00115fff
LAB_00115fff:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
MOV qword ptr [RCX],RDX
ADD RAX,0x20
MOV qword ptr [RBP + -0x60],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
CALL 0x001041f0
MOV byte ptr [RBP + -0x51],AL
JMP 0x0011602e
LAB_0011602e:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x60]
MOV DL,byte ptr [RBP + -0x51]
MOV byte ptr [RCX],DL
ADD RAX,0x24
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
CALL 0x0011d6b0
LAB_00116056:
MOV dword ptr [RBP + -0x64],EAX
JMP 0x0011605b
LAB_0011605b:
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,dword ptr [RBP + -0x64]
MOV dword ptr [RAX],ECX
ADD RSP,0x70
POP RBP
RET
|
/* ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer(std::ostream&) */
void __thiscall
ankerl::nanobench::detail::fmt::StreamStateRestorer::StreamStateRestorer
(StreamStateRestorer *this,ostream *param_1)
{
StreamStateRestorer SVar1;
int4 uVar2;
int8 uVar3;
*(ostream **)this = param_1;
std::ios_base::getloc();
/* try { // try from 00115fc4 to 00116055 has its CatchHandler @ 0011606a */
uVar3 = std::ios_base::precision((ios_base *)(param_1 + *(long *)(*(long *)param_1 + -0x18)));
*(int8 *)(this + 0x10) = uVar3;
uVar3 = std::ios_base::width((ios_base *)(param_1 + *(long *)(*(long *)param_1 + -0x18)));
*(int8 *)(this + 0x18) = uVar3;
SVar1 = (StreamStateRestorer)std::ios::fill();
this[0x20] = SVar1;
uVar2 = std::ios_base::flags((ios_base *)(param_1 + *(long *)(*(long *)param_1 + -0x18)));
*(int4 *)(this + 0x24) = uVar2;
return;
}
| |
43,716 | my_xml_leave | eloqsql/strings/xml.c | static int my_xml_leave(MY_XML_PARSER *p, const char *str, size_t slen)
{
char *e, *tag;
size_t glen;
char s[32];
char g[32];
int rc;
/* Find previous '/' or beginning */
for (e= p->attr.end; (e > p->attr.start) && (e[0] != '/') ; e--);
glen= (size_t) ((e[0] == '/') ? (p->attr.end - e - 1) : p->attr.end - e);
tag= e[0] == '/' ? e + 1 : e;
if (str && (slen != glen || memcmp(str, tag, slen)))
{
mstr(s,str,sizeof(s)-1,slen);
if (glen)
{
mstr(g, tag, sizeof(g)-1, glen);
sprintf(p->errstr,"'</%s>' unexpected ('</%s>' wanted)",s,g);
}
else
sprintf(p->errstr,"'</%s>' unexpected (END-OF-INPUT wanted)", s);
return MY_XML_ERROR;
}
if (p->flags & MY_XML_FLAG_RELATIVE_NAMES)
rc= p->leave_xml ? p->leave_xml(p, str, slen) : MY_XML_OK;
else
rc= (p->leave_xml ?
p->leave_xml(p, p->attr.start, p->attr.end - p->attr.start) :
MY_XML_OK);
*e='\0';
p->attr.end= e;
return rc;
} | O0 | c | my_xml_leave:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x60(%rbp)
movq %rsi, -0x68(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rcx
movq -0x60(%rbp), %rdx
xorl %eax, %eax
cmpq 0x118(%rdx), %rcx
movb %al, -0x8d(%rbp)
jbe 0xcb8ef
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
setne %al
movb %al, -0x8d(%rbp)
movb -0x8d(%rbp), %al
testb $0x1, %al
jne 0xcb8fb
jmp 0xcb90b
jmp 0xcb8fd
movq -0x78(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0xcb8c3
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xcb936
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x78(%rbp), %rcx
subq %rcx, %rax
subq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0xcb94f
movq -0x60(%rbp), %rax
movq 0x120(%rax), %rax
movq -0x78(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2f, %eax
jne 0xcb97a
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0xcb985
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x68(%rbp)
je 0xcba3d
movq -0x70(%rbp), %rax
cmpq -0x88(%rbp), %rax
jne 0xcb9be
movq -0x68(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x37b30
cmpl $0x0, %eax
je 0xcba3d
leaq -0x30(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rcx
movl $0x1f, %edx
callq 0xcbff0
cmpq $0x0, -0x88(%rbp)
je 0xcba17
leaq -0x50(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x88(%rbp), %rcx
movl $0x1f, %edx
callq 0xcbff0
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x30(%rbp), %rdx
leaq -0x50(%rbp), %rcx
leaq 0xa10d(%rip), %rsi # 0xd5b1b
movb $0x0, %al
callq 0x37a20
jmp 0xcba31
movq -0x60(%rbp), %rdi
addq $0x8, %rdi
leaq -0x30(%rbp), %rdx
leaq 0xa115(%rip), %rsi # 0xd5b3f
movb $0x0, %al
callq 0x37a20
movl $0x1, -0x54(%rbp)
jmp 0xcbb12
movq -0x60(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xcba92
movq -0x60(%rbp), %rax
cmpq $0x0, 0x158(%rax)
je 0xcba7a
movq -0x60(%rbp), %rax
movq 0x158(%rax), %rax
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq *%rax
movl %eax, -0xa4(%rbp)
jmp 0xcba84
xorl %eax, %eax
movl %eax, -0xa4(%rbp)
jmp 0xcba84
movl -0xa4(%rbp), %eax
movl %eax, -0x8c(%rbp)
jmp 0xcbaf3
movq -0x60(%rbp), %rax
cmpq $0x0, 0x158(%rax)
je 0xcbadd
movq -0x60(%rbp), %rax
movq 0x158(%rax), %rax
movq -0x60(%rbp), %rdi
movq -0x60(%rbp), %rcx
movq 0x118(%rcx), %rsi
movq -0x60(%rbp), %rcx
movq 0x120(%rcx), %rdx
movq -0x60(%rbp), %rcx
movq 0x118(%rcx), %rcx
subq %rcx, %rdx
callq *%rax
movl %eax, -0xa8(%rbp)
jmp 0xcbae7
xorl %eax, %eax
movl %eax, -0xa8(%rbp)
jmp 0xcbae7
movl -0xa8(%rbp), %eax
movl %eax, -0x8c(%rbp)
movq -0x78(%rbp), %rax
movb $0x0, (%rax)
movq -0x78(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x120(%rax)
movl -0x8c(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0xac(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xcbb3c
movl -0xac(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
callq 0x372c0
nopw %cs:(%rax,%rax)
| my_xml_leave:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_60], rdi
mov [rbp+var_68], rsi
mov [rbp+var_70], rdx
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov [rbp+var_78], rax
loc_CB8C3:
mov rcx, [rbp+var_78]
mov rdx, [rbp+var_60]
xor eax, eax
cmp rcx, [rdx+118h]
mov [rbp+var_8D], al
jbe short loc_CB8EF
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
setnz al
mov [rbp+var_8D], al
loc_CB8EF:
mov al, [rbp+var_8D]
test al, 1
jnz short loc_CB8FB
jmp short loc_CB90B
loc_CB8FB:
jmp short $+2
loc_CB8FD:
mov rax, [rbp+var_78]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_78], rax
jmp short loc_CB8C3
loc_CB90B:
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_CB936
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov rcx, [rbp+var_78]
sub rax, rcx
sub rax, 1
mov [rbp+var_98], rax
jmp short loc_CB94F
loc_CB936:
mov rax, [rbp+var_60]
mov rax, [rax+120h]
mov rcx, [rbp+var_78]
sub rax, rcx
mov [rbp+var_98], rax
loc_CB94F:
mov rax, [rbp+var_98]
mov [rbp+var_88], rax
mov rax, [rbp+var_78]
movsx eax, byte ptr [rax]
cmp eax, 2Fh ; '/'
jnz short loc_CB97A
mov rax, [rbp+var_78]
add rax, 1
mov [rbp+var_A0], rax
jmp short loc_CB985
loc_CB97A:
mov rax, [rbp+var_78]
mov [rbp+var_A0], rax
loc_CB985:
mov rax, [rbp+var_A0]
mov [rbp+var_80], rax
cmp [rbp+var_68], 0
jz loc_CBA3D
mov rax, [rbp+var_70]
cmp rax, [rbp+var_88]
jnz short loc_CB9BE
mov rdi, [rbp+var_68]
mov rsi, [rbp+var_80]
mov rdx, [rbp+var_70]
call _memcmp
cmp eax, 0
jz short loc_CBA3D
loc_CB9BE:
lea rdi, [rbp+var_30]
mov rsi, [rbp+var_68]
mov rcx, [rbp+var_70]
mov edx, 1Fh
call mstr_0
cmp [rbp+var_88], 0
jz short loc_CBA17
lea rdi, [rbp+var_50]
mov rsi, [rbp+var_80]
mov rcx, [rbp+var_88]
mov edx, 1Fh
call mstr_0
mov rdi, [rbp+var_60]
add rdi, 8
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_50]
lea rsi, aSUnexpectedSWa; "'</%s>' unexpected ('</%s>' wanted)"
mov al, 0
call _sprintf
jmp short loc_CBA31
loc_CBA17:
mov rdi, [rbp+var_60]
add rdi, 8
lea rdx, [rbp+var_30]
lea rsi, aSUnexpectedEnd; "'</%s>' unexpected (END-OF-INPUT wanted"...
mov al, 0
call _sprintf
loc_CBA31:
mov [rbp+var_54], 1
jmp loc_CBB12
loc_CBA3D:
mov rax, [rbp+var_60]
mov eax, [rax]
and eax, 1
cmp eax, 0
jz short loc_CBA92
mov rax, [rbp+var_60]
cmp qword ptr [rax+158h], 0
jz short loc_CBA7A
mov rax, [rbp+var_60]
mov rax, [rax+158h]
mov rdi, [rbp+var_60]
mov rsi, [rbp+var_68]
mov rdx, [rbp+var_70]
call rax
mov [rbp+var_A4], eax
jmp short loc_CBA84
loc_CBA7A:
xor eax, eax
mov [rbp+var_A4], eax
jmp short $+2
loc_CBA84:
mov eax, [rbp+var_A4]
mov [rbp+var_8C], eax
jmp short loc_CBAF3
loc_CBA92:
mov rax, [rbp+var_60]
cmp qword ptr [rax+158h], 0
jz short loc_CBADD
mov rax, [rbp+var_60]
mov rax, [rax+158h]
mov rdi, [rbp+var_60]
mov rcx, [rbp+var_60]
mov rsi, [rcx+118h]
mov rcx, [rbp+var_60]
mov rdx, [rcx+120h]
mov rcx, [rbp+var_60]
mov rcx, [rcx+118h]
sub rdx, rcx
call rax
mov [rbp+var_A8], eax
jmp short loc_CBAE7
loc_CBADD:
xor eax, eax
mov [rbp+var_A8], eax
jmp short $+2
loc_CBAE7:
mov eax, [rbp+var_A8]
mov [rbp+var_8C], eax
loc_CBAF3:
mov rax, [rbp+var_78]
mov byte ptr [rax], 0
mov rcx, [rbp+var_78]
mov rax, [rbp+var_60]
mov [rax+120h], rcx
mov eax, [rbp+var_8C]
mov [rbp+var_54], eax
loc_CBB12:
mov eax, [rbp+var_54]
mov [rbp+var_AC], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_CBB3C
mov eax, [rbp+var_AC]
add rsp, 0B0h
pop rbp
retn
loc_CBB3C:
call ___stack_chk_fail
| long long my_xml_leave(long long a1, long long a2, long long a3)
{
unsigned int v4; // [rsp+8h] [rbp-A8h]
unsigned int v5; // [rsp+Ch] [rbp-A4h]
_BYTE *v6; // [rsp+10h] [rbp-A0h]
long long v7; // [rsp+18h] [rbp-98h]
bool v8; // [rsp+23h] [rbp-8Dh]
unsigned int v9; // [rsp+24h] [rbp-8Ch]
_BYTE *i; // [rsp+38h] [rbp-78h]
char v13[32]; // [rsp+60h] [rbp-50h] BYREF
char v14[40]; // [rsp+80h] [rbp-30h] BYREF
unsigned long long v15; // [rsp+A8h] [rbp-8h]
v15 = __readfsqword(0x28u);
for ( i = *(_BYTE **)(a1 + 288); ; --i )
{
v8 = 0;
if ( (unsigned long long)i > *(_QWORD *)(a1 + 280) )
v8 = *i != 47;
if ( !v8 )
break;
}
if ( *i == 47 )
v7 = *(_QWORD *)(a1 + 288) - (_QWORD)i - 1LL;
else
v7 = *(_QWORD *)(a1 + 288) - (_QWORD)i;
if ( *i == 47 )
v6 = i + 1;
else
v6 = i;
if ( !a2 || a3 == v7 && !(unsigned int)memcmp(a2, v6, a3) )
{
if ( (*(_DWORD *)a1 & 1) != 0 )
{
if ( *(_QWORD *)(a1 + 344) )
v5 = (*(long long ( **)(long long, long long, long long))(a1 + 344))(a1, a2, a3);
else
v5 = 0;
v9 = v5;
}
else
{
if ( *(_QWORD *)(a1 + 344) )
v4 = (*(long long ( **)(long long, _QWORD, _QWORD))(a1 + 344))(
a1,
*(_QWORD *)(a1 + 280),
*(_QWORD *)(a1 + 288) - *(_QWORD *)(a1 + 280));
else
v4 = 0;
v9 = v4;
}
*i = 0;
*(_QWORD *)(a1 + 288) = i;
return v9;
}
else
{
mstr_0(v14, a2, 31LL, a3);
if ( v7 )
{
mstr_0(v13, v6, 31LL, v7);
sprintf(a1 + 8, "'</%s>' unexpected ('</%s>' wanted)", v14, v13);
}
else
{
sprintf(a1 + 8, "'</%s>' unexpected (END-OF-INPUT wanted)", v14);
}
return 1;
}
}
| my_xml_leave:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x60],RDI
MOV qword ptr [RBP + -0x68],RSI
MOV qword ptr [RBP + -0x70],RDX
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV qword ptr [RBP + -0x78],RAX
LAB_001cb8c3:
MOV RCX,qword ptr [RBP + -0x78]
MOV RDX,qword ptr [RBP + -0x60]
XOR EAX,EAX
CMP RCX,qword ptr [RDX + 0x118]
MOV byte ptr [RBP + -0x8d],AL
JBE 0x001cb8ef
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
SETNZ AL
MOV byte ptr [RBP + -0x8d],AL
LAB_001cb8ef:
MOV AL,byte ptr [RBP + -0x8d]
TEST AL,0x1
JNZ 0x001cb8fb
JMP 0x001cb90b
LAB_001cb8fb:
JMP 0x001cb8fd
LAB_001cb8fd:
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x78],RAX
JMP 0x001cb8c3
LAB_001cb90b:
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001cb936
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x78]
SUB RAX,RCX
SUB RAX,0x1
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001cb94f
LAB_001cb936:
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x120]
MOV RCX,qword ptr [RBP + -0x78]
SUB RAX,RCX
MOV qword ptr [RBP + -0x98],RAX
LAB_001cb94f:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x88],RAX
MOV RAX,qword ptr [RBP + -0x78]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2f
JNZ 0x001cb97a
MOV RAX,qword ptr [RBP + -0x78]
ADD RAX,0x1
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001cb985
LAB_001cb97a:
MOV RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0xa0],RAX
LAB_001cb985:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x80],RAX
CMP qword ptr [RBP + -0x68],0x0
JZ 0x001cba3d
MOV RAX,qword ptr [RBP + -0x70]
CMP RAX,qword ptr [RBP + -0x88]
JNZ 0x001cb9be
MOV RDI,qword ptr [RBP + -0x68]
MOV RSI,qword ptr [RBP + -0x80]
MOV RDX,qword ptr [RBP + -0x70]
CALL 0x00137b30
CMP EAX,0x0
JZ 0x001cba3d
LAB_001cb9be:
LEA RDI,[RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x70]
MOV EDX,0x1f
CALL 0x001cbff0
CMP qword ptr [RBP + -0x88],0x0
JZ 0x001cba17
LEA RDI,[RBP + -0x50]
MOV RSI,qword ptr [RBP + -0x80]
MOV RCX,qword ptr [RBP + -0x88]
MOV EDX,0x1f
CALL 0x001cbff0
MOV RDI,qword ptr [RBP + -0x60]
ADD RDI,0x8
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x50]
LEA RSI,[0x1d5b1b]
MOV AL,0x0
CALL 0x00137a20
JMP 0x001cba31
LAB_001cba17:
MOV RDI,qword ptr [RBP + -0x60]
ADD RDI,0x8
LEA RDX,[RBP + -0x30]
LEA RSI,[0x1d5b3f]
MOV AL,0x0
CALL 0x00137a20
LAB_001cba31:
MOV dword ptr [RBP + -0x54],0x1
JMP 0x001cbb12
LAB_001cba3d:
MOV RAX,qword ptr [RBP + -0x60]
MOV EAX,dword ptr [RAX]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001cba92
MOV RAX,qword ptr [RBP + -0x60]
CMP qword ptr [RAX + 0x158],0x0
JZ 0x001cba7a
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x158]
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RBP + -0x68]
MOV RDX,qword ptr [RBP + -0x70]
CALL RAX
MOV dword ptr [RBP + -0xa4],EAX
JMP 0x001cba84
LAB_001cba7a:
XOR EAX,EAX
MOV dword ptr [RBP + -0xa4],EAX
JMP 0x001cba84
LAB_001cba84:
MOV EAX,dword ptr [RBP + -0xa4]
MOV dword ptr [RBP + -0x8c],EAX
JMP 0x001cbaf3
LAB_001cba92:
MOV RAX,qword ptr [RBP + -0x60]
CMP qword ptr [RAX + 0x158],0x0
JZ 0x001cbadd
MOV RAX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RAX + 0x158]
MOV RDI,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x60]
MOV RSI,qword ptr [RCX + 0x118]
MOV RCX,qword ptr [RBP + -0x60]
MOV RDX,qword ptr [RCX + 0x120]
MOV RCX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RCX + 0x118]
SUB RDX,RCX
CALL RAX
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x001cbae7
LAB_001cbadd:
XOR EAX,EAX
MOV dword ptr [RBP + -0xa8],EAX
JMP 0x001cbae7
LAB_001cbae7:
MOV EAX,dword ptr [RBP + -0xa8]
MOV dword ptr [RBP + -0x8c],EAX
LAB_001cbaf3:
MOV RAX,qword ptr [RBP + -0x78]
MOV byte ptr [RAX],0x0
MOV RCX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x120],RCX
MOV EAX,dword ptr [RBP + -0x8c]
MOV dword ptr [RBP + -0x54],EAX
LAB_001cbb12:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0xac],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001cbb3c
MOV EAX,dword ptr [RBP + -0xac]
ADD RSP,0xb0
POP RBP
RET
LAB_001cbb3c:
CALL 0x001372c0
|
int4 my_xml_leave(uint *param_1,void *param_2,size_t param_3)
{
int iVar1;
long in_FS_OFFSET;
bool bVar2;
int4 local_b0;
int4 local_ac;
char *local_a8;
size_t local_a0;
int4 local_94;
char *local_80;
int4 local_5c;
int1 local_58 [32];
int1 local_38 [40];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_80 = *(char **)(param_1 + 0x48);
while( true ) {
bVar2 = false;
if (*(char **)(param_1 + 0x46) < local_80) {
bVar2 = *local_80 != '/';
}
if (!bVar2) break;
local_80 = local_80 + -1;
}
if (*local_80 == '/') {
local_a0 = (*(long *)(param_1 + 0x48) - (long)local_80) - 1;
}
else {
local_a0 = *(long *)(param_1 + 0x48) - (long)local_80;
}
if (*local_80 == '/') {
local_a8 = local_80 + 1;
}
else {
local_a8 = local_80;
}
if (param_2 == (void *)0x0) {
LAB_001cba3d:
if ((*param_1 & 1) == 0) {
if (*(long *)(param_1 + 0x56) == 0) {
local_b0 = 0;
}
else {
local_b0 = (**(code **)(param_1 + 0x56))
(param_1,*(int8 *)(param_1 + 0x46),
*(long *)(param_1 + 0x48) - *(long *)(param_1 + 0x46));
}
local_94 = local_b0;
}
else {
if (*(long *)(param_1 + 0x56) == 0) {
local_ac = 0;
}
else {
local_ac = (**(code **)(param_1 + 0x56))(param_1,param_2,param_3);
}
local_94 = local_ac;
}
*local_80 = '\0';
*(char **)(param_1 + 0x48) = local_80;
local_5c = local_94;
}
else {
if (param_3 == local_a0) {
iVar1 = memcmp(param_2,local_a8,param_3);
if (iVar1 == 0) goto LAB_001cba3d;
}
mstr(local_38,param_2,0x1f,param_3);
if (local_a0 == 0) {
sprintf((char *)(param_1 + 2),"\'</%s>\' unexpected (END-OF-INPUT wanted)",local_38);
}
else {
mstr(local_58,local_a8,0x1f,local_a0);
sprintf((char *)(param_1 + 2),"\'</%s>\' unexpected (\'</%s>\' wanted)",local_38,local_58);
}
local_5c = 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_5c;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
43,717 | my_mb_wc_gb2312 | eloqsql/strings/ctype-gb2312.c | static int
my_mb_wc_gb2312(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e){
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80)
{
pwc[0]=hi;
return 1;
}
if (s+2>e)
return MY_CS_TOOSMALL2;
if (!IS_MB2_CHAR(hi, s[1]))
return MY_CS_ILSEQ;
if (!(pwc[0]=func_gb2312_uni_onechar(((hi<<8)+s[1])&0x7F7F)))
return -2;
return 2;
} | O3 | c | my_mb_wc_gb2312:
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xb077c
movsbq (%rdx), %rdi
testq %rdi, %rdi
js 0xb0758
movq %rdi, (%rsi)
movl $0x1, %eax
retq
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xb077c
leal 0x5f(%rdi), %ecx
xorl %eax, %eax
cmpb $0x56, %cl
ja 0xb077c
movzbl 0x1(%rdx), %ecx
leal 0x1(%rcx), %edx
cmpb $-0x5e, %dl
jae 0xb077d
retq
pushq %rbp
movq %rsp, %rbp
movzbl %dil, %eax
shll $0x8, %eax
orl %ecx, %eax
andl $0x7f7f, %eax # imm = 0x7F7F
leal -0x2121(%rax), %ecx
cmpl $0x537, %ecx # imm = 0x537
ja 0xb07a8
movl %ecx, %eax
leaq 0x13713a(%rip), %rcx # 0x1e78e0
jmp 0xb07d6
leal -0x2721(%rax), %ecx
cmpl $0x24e, %ecx # imm = 0x24E
ja 0xb07c1
movl %ecx, %eax
leaq 0x137b91(%rip), %rcx # 0x1e8350
jmp 0xb07d6
addl $0xffffcfdf, %eax # imm = 0xFFFFCFDF
cmpl $0x475e, %eax # imm = 0x475E
jae 0xb07ef
movl %eax, %eax
leaq 0x13801a(%rip), %rcx # 0x1e87f0
leaq (%rcx,%rax,2), %rax
movzwl (%rax), %eax
movzwl %ax, %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testw %cx, %cx
jne 0xb07fb
jmp 0xb07f6
movq $0x0, (%rsi)
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
popq %rbp
retq
| my_mb_wc_gb2312:
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short locret_B077C
movsx rdi, byte ptr [rdx]
test rdi, rdi
js short loc_B0758
mov [rsi], rdi
mov eax, 1
retn
loc_B0758:
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short locret_B077C
lea ecx, [rdi+5Fh]
xor eax, eax
cmp cl, 56h ; 'V'
ja short locret_B077C
movzx ecx, byte ptr [rdx+1]
lea edx, [rcx+1]
cmp dl, 0A2h
jnb short loc_B077D
locret_B077C:
retn
loc_B077D:
push rbp
mov rbp, rsp
movzx eax, dil
shl eax, 8
or eax, ecx
and eax, 7F7Fh
lea ecx, [rax-2121h]
cmp ecx, 537h
ja short loc_B07A8
mov eax, ecx
lea rcx, tab_gb2312_uni0
jmp short loc_B07D6
loc_B07A8:
lea ecx, [rax-2721h]
cmp ecx, 24Eh
ja short loc_B07C1
mov eax, ecx
lea rcx, tab_gb2312_uni1
jmp short loc_B07D6
loc_B07C1:
add eax, 0FFFFCFDFh
cmp eax, 475Eh
jnb short loc_B07EF
mov eax, eax
lea rcx, tab_gb2312_uni2
loc_B07D6:
lea rax, [rcx+rax*2]
movzx eax, word ptr [rax]
movzx ecx, ax
mov [rsi], rcx
mov eax, 2
test cx, cx
jnz short loc_B07FB
jmp short loc_B07F6
loc_B07EF:
mov qword ptr [rsi], 0
loc_B07F6:
mov eax, 0FFFFFFFEh
loc_B07FB:
pop rbp
retn
| long long my_mb_wc_gb2312(long long a1, long long *a2, char *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
unsigned __int16 v6; // cx
int v7; // eax
long long v8; // rax
unsigned __int16 *v9; // rcx
long long v10; // rcx
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *a3;
if ( v5 >= 0 )
{
*a2 = v5;
return 1LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
result = 0LL;
if ( (unsigned __int8)(v5 + 95) <= 0x56u )
{
v6 = (unsigned __int8)a3[1];
if ( (unsigned __int8)(v6 + 1) >= 0xA2u )
{
v7 = (v6 | (unsigned __int16)((unsigned __int8)v5 << 8)) & 0x7F7F;
if ( (unsigned int)(v7 - 8481) > 0x537 )
{
if ( (unsigned int)(v7 - 10017) > 0x24E )
{
LODWORD(v8) = v7 - 12321;
if ( (unsigned int)v8 >= 0x475E )
{
*a2 = 0LL;
return 4294967294LL;
}
v8 = (unsigned int)v8;
v9 = (unsigned __int16 *)&tab_gb2312_uni2;
}
else
{
v8 = (unsigned int)(v7 - 10017);
v9 = (unsigned __int16 *)&tab_gb2312_uni1;
}
}
else
{
v8 = (unsigned int)(v7 - 8481);
v9 = (unsigned __int16 *)&tab_gb2312_uni0;
}
v10 = v9[v8];
*a2 = v10;
result = 2LL;
if ( (_WORD)v10 )
return result;
return 4294967294LL;
}
}
}
}
return result;
}
| my_mb_wc_gb2312:
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001b077c
MOVSX RDI,byte ptr [RDX]
TEST RDI,RDI
JS 0x001b0758
MOV qword ptr [RSI],RDI
MOV EAX,0x1
RET
LAB_001b0758:
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001b077c
LEA ECX,[RDI + 0x5f]
XOR EAX,EAX
CMP CL,0x56
JA 0x001b077c
MOVZX ECX,byte ptr [RDX + 0x1]
LEA EDX,[RCX + 0x1]
CMP DL,0xa2
JNC 0x001b077d
LAB_001b077c:
RET
LAB_001b077d:
PUSH RBP
MOV RBP,RSP
MOVZX EAX,DIL
SHL EAX,0x8
OR EAX,ECX
AND EAX,0x7f7f
LEA ECX,[RAX + -0x2121]
CMP ECX,0x537
JA 0x001b07a8
MOV EAX,ECX
LEA RCX,[0x2e78e0]
JMP 0x001b07d6
LAB_001b07a8:
LEA ECX,[RAX + -0x2721]
CMP ECX,0x24e
JA 0x001b07c1
MOV EAX,ECX
LEA RCX,[0x2e8350]
JMP 0x001b07d6
LAB_001b07c1:
ADD EAX,0xffffcfdf
CMP EAX,0x475e
JNC 0x001b07ef
MOV EAX,EAX
LEA RCX,[0x2e87f0]
LAB_001b07d6:
LEA RAX,[RCX + RAX*0x2]
MOVZX EAX,word ptr [RAX]
MOVZX ECX,AX
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST CX,CX
JNZ 0x001b07fb
JMP 0x001b07f6
LAB_001b07ef:
MOV qword ptr [RSI],0x0
LAB_001b07f6:
MOV EAX,0xfffffffe
LAB_001b07fb:
POP RBP
RET
|
int8 my_mb_wc_gb2312(int8 param_1,ulong *param_2,char *param_3,char *param_4)
{
char cVar1;
ushort uVar2;
uint uVar3;
ulong uVar4;
int1 *puVar5;
if (param_4 <= param_3) {
return 0xffffff9b;
}
cVar1 = *param_3;
if (-1 < (long)cVar1) {
*param_2 = (long)cVar1;
return 1;
}
if (param_4 < param_3 + 2) {
return 0xffffff9a;
}
if ((byte)(cVar1 + 0x5fU) < 0x57) {
if ((byte)(param_3[1] + 1U) < 0xa2) {
return 0;
}
uVar3 = CONCAT11(cVar1,param_3[1]) & 0x7f7f;
if (uVar3 - 0x2121 < 0x538) {
uVar4 = (ulong)(uVar3 - 0x2121);
puVar5 = tab_gb2312_uni0;
}
else if (uVar3 - 0x2721 < 0x24f) {
uVar4 = (ulong)(uVar3 - 0x2721);
puVar5 = tab_gb2312_uni1;
}
else {
if (0x475d < uVar3 - 0x3021) {
*param_2 = 0;
return 0xfffffffe;
}
uVar4 = (ulong)(uVar3 - 0x3021);
puVar5 = tab_gb2312_uni2;
}
uVar2 = *(ushort *)(puVar5 + uVar4 * 2);
*param_2 = (ulong)uVar2;
if (uVar2 == 0) {
return 0xfffffffe;
}
return 2;
}
return 0;
}
| |
43,718 | wait_for_lock | eloqsql/mysys/thr_lock.c | static enum enum_thr_lock_result
wait_for_lock(struct st_lock_list *wait, THR_LOCK_DATA *data,
my_bool in_wait_list, ulong lock_wait_timeout)
{
struct st_my_thread_var *thread_var= my_thread_var;
mysql_cond_t *cond= &thread_var->suspend;
struct timespec wait_timeout;
enum enum_thr_lock_result result= THR_LOCK_ABORTED;
PSI_stage_info old_stage;
my_bool use_wait_callbacks= FALSE;
DBUG_ENTER("wait_for_lock");
/*
One can use this to signal when a thread is going to wait for a lock.
See debug_sync.cc.
Beware of waiting for a signal here. The lock has acquired its mutex.
While waiting on a signal here, the locking thread could not acquire
the mutex to release the lock. One could lock up the table
completely.
In detail it works so: When thr_lock() tries to acquire a table
lock, it locks the lock->mutex, checks if it can have the lock, and
if not, it calls wait_for_lock(). Here it unlocks the table lock
while waiting on a condition. The sync point is located before this
wait for condition. If we have a waiting action here, we hold the
the table locks mutex all the time. Any attempt to look at the table
lock by another thread blocks it immediately on lock->mutex. This
can easily become an unexpected and unobvious blockage. So be
warned: Do not request a WAIT_FOR action for the 'wait_for_lock'
sync point unless you really know what you do.
*/
DEBUG_SYNC_C("wait_for_lock");
if (!in_wait_list)
{
(*wait->last)=data; /* Wait for lock */
data->prev= wait->last;
wait->last= &data->next;
}
statistic_increment(locks_waited, &THR_LOCK_lock);
/* Set up control struct to allow others to abort locks */
thread_var->current_mutex= &data->lock->mutex;
thread_var->current_cond= cond;
data->cond= cond;
proc_info_hook(NULL, &stage_waiting_for_table_level_lock,
&old_stage,
__func__, __FILE__, __LINE__);
/*
Since before_lock_wait potentially can create more threads to
scheduler work for, we don't want to call the before_lock_wait
callback unless it will really start to wait.
For similar reasons, we do not want to call before_lock_wait and
after_lock_wait for each lap around the loop, so we restrict
ourselves to call it before_lock_wait once before starting to wait
and once after the thread has exited the wait loop.
*/
if ((!thread_var->abort || in_wait_list) && before_lock_wait)
{
use_wait_callbacks= TRUE;
(*before_lock_wait)();
}
set_timespec(wait_timeout, lock_wait_timeout);
while (!thread_var->abort || in_wait_list)
{
int rc= mysql_cond_timedwait(cond, &data->lock->mutex, &wait_timeout);
/*
We must break the wait if one of the following occurs:
- the connection has been aborted (!thread_var->abort), but
this is not a delayed insert thread (in_wait_list). For a delayed
insert thread the proper action at shutdown is, apparently, to
acquire the lock and complete the insert.
- the lock has been granted (data->cond is set to NULL by the granter),
or the waiting has been aborted (additionally data->type is set to
TL_UNLOCK).
- the wait has timed out (rc == ETIMEDOUT)
Order of checks below is important to not report about timeout
if the predicate is true.
*/
if (data->cond == 0)
{
DBUG_PRINT("thr_lock", ("lock granted/aborted"));
break;
}
if (rc == ETIMEDOUT || rc == ETIME)
{
/* purecov: begin inspected */
DBUG_PRINT("thr_lock", ("lock timed out"));
result= THR_LOCK_WAIT_TIMEOUT;
break;
/* purecov: end */
}
}
/*
We call the after_lock_wait callback once the wait loop has
finished.
*/
if (after_lock_wait && use_wait_callbacks)
(*after_lock_wait)();
DBUG_PRINT("thr_lock", ("aborted: %d in_wait_list: %d",
thread_var->abort, in_wait_list));
if (data->cond || data->type == TL_UNLOCK)
{
if (data->cond) /* aborted or timed out */
{
if (((*data->prev)=data->next)) /* remove from wait-list */
data->next->prev= data->prev;
else
wait->last=data->prev;
data->type= TL_UNLOCK; /* No lock */
check_locks(data->lock, "killed or timed out wait_for_lock", data->type,
1);
wake_up_waiters(data->lock);
}
else
{
DBUG_PRINT("thr_lock", ("lock aborted"));
check_locks(data->lock, "aborted wait_for_lock", data->type, 0);
}
}
else
{
result= THR_LOCK_SUCCESS;
if (data->lock->get_status &&
(*data->lock->get_status)(data->status_param,
data->type == TL_WRITE_CONCURRENT_INSERT))
result= THR_LOCK_ABORTED;
check_locks(data->lock,"got wait_for_lock", data->type, 0);
}
mysql_mutex_unlock(&data->lock->mutex);
/* The following must be done after unlock of lock->mutex */
mysql_mutex_lock(&thread_var->mutex);
thread_var->current_mutex= 0;
thread_var->current_cond= 0;
mysql_mutex_unlock(&thread_var->mutex);
proc_info_hook(NULL, &old_stage, NULL, __func__, __FILE__, __LINE__);
DBUG_RETURN(result);
} | O0 | c | wait_for_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movb %dl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq %rcx, -0x20(%rbp)
callq 0x8d620
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x30(%rbp)
movl $0x1, -0x44(%rbp)
movb $0x0, -0x61(%rbp)
jmp 0x907ee
cmpb $0x0, -0x11(%rbp)
jne 0x90823
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
leaq 0x376486(%rip), %rax # 0x406cb0
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0x376478(%rip), %rax # 0x406cb0
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rcx
addq $0x18, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
xorl %eax, %eax
movl %eax, %edi
leaq 0x1b5550(%rip), %rsi # 0x245dc8
leaq -0x60(%rbp), %rdx
leaq 0x55cfe(%rip), %rcx # 0xe6581
leaq 0x55c62(%rip), %r8 # 0xe64ec
movl $0x219, %r9d # imm = 0x219
leaq 0x1b58a9(%rip), %rax # 0x246140
callq *(%rax)
movq -0x28(%rbp), %rax
movl 0xe0(%rax), %eax
cmpl $0x0, %eax
je 0x908b1
movsbl -0x11(%rbp), %eax
cmpl $0x0, %eax
je 0x908c5
cmpq $0x0, 0x3763ff(%rip) # 0x406cb8
je 0x908c5
movb $0x1, -0x61(%rbp)
callq *0x3763f3(%rip) # 0x406cb8
jmp 0x908c7
callq 0x97000
movq %rax, -0x78(%rbp)
imulq $0x3e8, -0x78(%rbp), %rax # imm = 0x3E8
imulq $0x3b9aca00, -0x20(%rbp), %rcx # imm = 0x3B9ACA00
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl $0x3b9aca00, %ecx # imm = 0x3B9ACA00
xorl %edx, %edx
divq %rcx
movq %rax, -0x40(%rbp)
movq -0x70(%rbp), %rax
movl $0x3b9aca00, %ecx # imm = 0x3B9ACA00
xorl %edx, %edx
divq %rcx
movq %rdx, -0x38(%rbp)
jmp 0x9090d
movq -0x28(%rbp), %rax
movl 0xe0(%rax), %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x7d(%rbp)
je 0x9092e
movsbl -0x11(%rbp), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x7d(%rbp)
movb -0x7d(%rbp), %al
testb $0x1, %al
jne 0x90937
jmp 0x9098c
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
addq $0x18, %rsi
leaq -0x40(%rbp), %rdx
leaq 0x55b9a(%rip), %rcx # 0xe64ec
movl $0x22e, %r8d # imm = 0x22E
callq 0x91340
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x90971
jmp 0x9096d
jmp 0x9096f
jmp 0x9098c
cmpl $0x6e, -0x7c(%rbp)
je 0x9097d
cmpl $0x3e, -0x7c(%rbp)
jne 0x9098a
jmp 0x9097f
jmp 0x90981
movl $0x2, -0x44(%rbp)
jmp 0x9098c
jmp 0x9090d
cmpq $0x0, 0x37632c(%rip) # 0x406cc0
je 0x909a5
movsbl -0x61(%rbp), %eax
cmpl $0x0, %eax
je 0x909a5
callq *0x37631b(%rip) # 0x406cc0
jmp 0x909a7
jmp 0x909a9
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x909be
movq -0x10(%rbp), %rax
cmpl $0x0, 0x40(%rax)
jne 0x90a2a
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x90a22
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x909f8
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0x90a08
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x40(%rax)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x8f220
jmp 0x90a28
jmp 0x90a24
jmp 0x90a26
jmp 0x90a28
jmp 0x90a81
movl $0x0, -0x44(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0xb0(%rax)
je 0x90a7f
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0xb0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
movq -0x10(%rbp), %rcx
cmpl $0x8, 0x40(%rcx)
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
movsbl %cl, %esi
callq *%rax
movsbl %al, %eax
cmpl $0x0, %eax
je 0x90a7f
movl $0x1, -0x44(%rbp)
jmp 0x90a81
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
addq $0x18, %rdi
callq 0x8eed0
movq -0x28(%rbp), %rdi
addq $0x40, %rdi
leaq 0x55a4b(%rip), %rsi # 0xe64ec
movl $0x274, %edx # imm = 0x274
callq 0x8ee60
movq -0x28(%rbp), %rax
movq $0x0, 0x98(%rax)
movq -0x28(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x28(%rbp), %rdi
addq $0x40, %rdi
callq 0x8eed0
xorl %eax, %eax
movl %eax, %edx
leaq -0x60(%rbp), %rsi
leaq 0x55a9c(%rip), %rcx # 0xe6581
leaq 0x55a00(%rip), %r8 # 0xe64ec
movl $0x279, %r9d # imm = 0x279
leaq 0x1b5647(%rip), %rax # 0x246140
movq %rdx, %rdi
callq *(%rax)
movl -0x44(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| wait_for_lock:
push rbp
mov rbp, rsp
sub rsp, 90h
mov al, dl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_11], al
mov [rbp+var_20], rcx
call _my_thread_var
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
add rax, 8
mov [rbp+var_30], rax
mov [rbp+var_44], 1
mov [rbp+var_61], 0
jmp short $+2
loc_907EE:
cmp [rbp+var_11], 0
jnz short loc_90823
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_8]
mov [rax+8], rcx
loc_90823:
lea rax, locks_waited
mov rcx, [rax]
add rcx, 1
lea rax, locks_waited
mov [rax], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+18h]
add rcx, 18h
mov rax, [rbp+var_28]
mov [rax+98h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_28]
mov [rax+0A0h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
xor eax, eax
mov edi, eax
lea rsi, stage_waiting_for_table_level_lock
lea rdx, [rbp+var_60]
lea rcx, aUnknown_0; "<unknown>"
lea r8, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 219h
lea rax, proc_info_hook
call qword ptr [rax]
mov rax, [rbp+var_28]
mov eax, [rax+0E0h]
cmp eax, 0
jz short loc_908B1
movsx eax, [rbp+var_11]
cmp eax, 0
jz short loc_908C5
loc_908B1:
cmp cs:before_lock_wait, 0
jz short loc_908C5
mov [rbp+var_61], 1
call cs:before_lock_wait
loc_908C5:
jmp short $+2
loc_908C7:
call my_hrtime
mov [rbp+var_78], rax
imul rax, [rbp+var_78], 3E8h
imul rcx, [rbp+var_20], 3B9ACA00h
add rax, rcx
mov [rbp+var_70], rax
mov rax, [rbp+var_70]
mov ecx, 3B9ACA00h
xor edx, edx
div rcx
mov [rbp+var_40], rax
mov rax, [rbp+var_70]
mov ecx, 3B9ACA00h
xor edx, edx
div rcx
mov [rbp+var_38], rdx
jmp short $+2
loc_9090D:
mov rax, [rbp+var_28]
mov ecx, [rax+0E0h]
mov al, 1
cmp ecx, 0
mov [rbp+var_7D], al
jz short loc_9092E
movsx eax, [rbp+var_11]
cmp eax, 0
setnz al
mov [rbp+var_7D], al
loc_9092E:
mov al, [rbp+var_7D]
test al, 1
jnz short loc_90937
jmp short loc_9098C
loc_90937:
mov rdi, [rbp+var_30]
mov rax, [rbp+var_10]
mov rsi, [rax+18h]
add rsi, 18h
lea rdx, [rbp+var_40]
lea rcx, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov r8d, 22Eh
call inline_mysql_cond_timedwait_0
mov [rbp+var_7C], eax
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jnz short loc_90971
jmp short $+2
loc_9096D:
jmp short $+2
loc_9096F:
jmp short loc_9098C
loc_90971:
cmp [rbp+var_7C], 6Eh ; 'n'
jz short loc_9097D
cmp [rbp+var_7C], 3Eh ; '>'
jnz short loc_9098A
loc_9097D:
jmp short $+2
loc_9097F:
jmp short $+2
loc_90981:
mov [rbp+var_44], 2
jmp short loc_9098C
loc_9098A:
jmp short loc_9090D
loc_9098C:
cmp cs:after_lock_wait, 0
jz short loc_909A5
movsx eax, [rbp+var_61]
cmp eax, 0
jz short loc_909A5
call cs:after_lock_wait
loc_909A5:
jmp short $+2
loc_909A7:
jmp short $+2
loc_909A9:
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jnz short loc_909BE
mov rax, [rbp+var_10]
cmp dword ptr [rax+40h], 0
jnz short loc_90A2A
loc_909BE:
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jz short loc_90A22
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_909F8
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_90A08
loc_909F8:
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax+8], rcx
loc_90A08:
mov rax, [rbp+var_10]
mov dword ptr [rax+40h], 0
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
call wake_up_waiters
jmp short loc_90A28
loc_90A22:
jmp short $+2
loc_90A24:
jmp short $+2
loc_90A26:
jmp short $+2
loc_90A28:
jmp short loc_90A81
loc_90A2A:
mov [rbp+var_44], 0
mov rax, [rbp+var_10]
mov rax, [rax+18h]
cmp qword ptr [rax+0B0h], 0
jz short loc_90A7F
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rax, [rax+0B0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
mov rcx, [rbp+var_10]
cmp dword ptr [rcx+40h], 8
setz cl
and cl, 1
movzx ecx, cl
movsx esi, cl
call rax
movsx eax, al
cmp eax, 0
jz short loc_90A7F
mov [rbp+var_44], 1
loc_90A7F:
jmp short $+2
loc_90A81:
mov rax, [rbp+var_10]
mov rdi, [rax+18h]
add rdi, 18h
call inline_mysql_mutex_unlock_11
mov rdi, [rbp+var_28]
add rdi, 40h ; '@'
lea rsi, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 274h
call inline_mysql_mutex_lock_11
mov rax, [rbp+var_28]
mov qword ptr [rax+98h], 0
mov rax, [rbp+var_28]
mov qword ptr [rax+0A0h], 0
mov rdi, [rbp+var_28]
add rdi, 40h ; '@'
call inline_mysql_mutex_unlock_11
xor eax, eax
mov edx, eax
lea rsi, [rbp+var_60]
lea rcx, aUnknown_0; "<unknown>"
lea r8, aWorkspaceLlm4b_18; "/workspace/llm4binary/github2025/eloqsq"...
mov r9d, 279h
lea rax, proc_info_hook
mov rdi, rdx
call qword ptr [rax]
mov eax, [rbp+var_44]
mov [rbp+var_84], eax
mov eax, [rbp+var_84]
add rsp, 90h
pop rbp
retn
| long long wait_for_lock(long long a1, const char *a2, char a3, long long a4)
{
long long v4; // rax
bool v6; // [rsp+13h] [rbp-7Dh]
int v7; // [rsp+14h] [rbp-7Ch]
long long v8; // [rsp+18h] [rbp-78h]
char v9; // [rsp+2Fh] [rbp-61h]
unsigned int v10; // [rsp+4Ch] [rbp-44h]
_QWORD v11[2]; // [rsp+50h] [rbp-40h] BYREF
long long v12; // [rsp+60h] [rbp-30h]
long long v13; // [rsp+68h] [rbp-28h]
long long v14; // [rsp+70h] [rbp-20h]
char v15; // [rsp+7Fh] [rbp-11h]
const char *v16; // [rsp+80h] [rbp-10h]
long long v17; // [rsp+88h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = my_thread_var(a1, a2);
v12 = v13 + 8;
v10 = 1;
v9 = 0;
if ( !v15 )
{
**(_QWORD **)(v17 + 8) = v16;
*((_QWORD *)v16 + 2) = *(_QWORD *)(v17 + 8);
*(_QWORD *)(v17 + 8) = v16 + 8;
}
++locks_waited;
*(_QWORD *)(v13 + 152) = *((_QWORD *)v16 + 3) + 24LL;
*(_QWORD *)(v13 + 160) = v12;
*((_QWORD *)v16 + 4) = v12;
proc_info_hook();
if ( (!*(_DWORD *)(v13 + 224) || v15) && before_lock_wait )
{
v9 = 1;
before_lock_wait(0LL, &stage_waiting_for_table_level_lock);
}
v8 = my_hrtime(0LL, &stage_waiting_for_table_level_lock);
v11[0] = (1000000000 * v14 + 1000 * v8) / 0x3B9ACA00uLL;
v11[1] = (1000000000 * v14 + 1000 * v8) % 0x3B9ACA00uLL;
while ( 1 )
{
v6 = 1;
if ( *(_DWORD *)(v13 + 224) )
v6 = v15 != 0;
if ( !v6 )
break;
v7 = inline_mysql_cond_timedwait_0(
v12,
*((_QWORD *)v16 + 3) + 24LL,
v11,
"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",
558LL);
if ( !*((_QWORD *)v16 + 4) )
break;
if ( v7 == 110 || v7 == 62 )
{
v10 = 2;
break;
}
}
if ( after_lock_wait && v9 )
after_lock_wait();
if ( !*((_QWORD *)v16 + 4) && *((_DWORD *)v16 + 16) )
{
v10 = 0;
if ( *(_QWORD *)(*((_QWORD *)v16 + 3) + 176LL) )
v10 = (*(unsigned __int8 ( **)(_QWORD, bool))(*((_QWORD *)v16 + 3) + 176LL))(
*((_QWORD *)v16 + 5),
*((_DWORD *)v16 + 16) == 8) != 0;
}
else if ( *((_QWORD *)v16 + 4) )
{
v4 = *((_QWORD *)v16 + 1);
**((_QWORD **)v16 + 2) = v4;
if ( v4 )
*(_QWORD *)(*((_QWORD *)v16 + 1) + 16LL) = *((_QWORD *)v16 + 2);
else
*(_QWORD *)(v17 + 8) = *((_QWORD *)v16 + 2);
*((_DWORD *)v16 + 16) = 0;
wake_up_waiters(*((_QWORD *)v16 + 3));
}
inline_mysql_mutex_unlock_11(*((_QWORD *)v16 + 3) + 24LL);
inline_mysql_mutex_lock_11(v13 + 64, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x274u);
*(_QWORD *)(v13 + 152) = 0LL;
*(_QWORD *)(v13 + 160) = 0LL;
inline_mysql_mutex_unlock_11(v13 + 64);
proc_info_hook();
return v10;
}
| wait_for_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV AL,DL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV byte ptr [RBP + -0x11],AL
MOV qword ptr [RBP + -0x20],RCX
CALL 0x0018d620
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x8
MOV qword ptr [RBP + -0x30],RAX
MOV dword ptr [RBP + -0x44],0x1
MOV byte ptr [RBP + -0x61],0x0
JMP 0x001907ee
LAB_001907ee:
CMP byte ptr [RBP + -0x11],0x0
JNZ 0x00190823
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_00190823:
LEA RAX,[0x506cb0]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0x506cb0]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x18]
ADD RCX,0x18
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0xa0],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
XOR EAX,EAX
MOV EDI,EAX
LEA RSI,[0x345dc8]
LEA RDX,[RBP + -0x60]
LEA RCX,[0x1e6581]
LEA R8,[0x1e64ec]
MOV R9D,0x219
LEA RAX,[0x346140]
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RAX + 0xe0]
CMP EAX,0x0
JZ 0x001908b1
MOVSX EAX,byte ptr [RBP + -0x11]
CMP EAX,0x0
JZ 0x001908c5
LAB_001908b1:
CMP qword ptr [0x00506cb8],0x0
JZ 0x001908c5
MOV byte ptr [RBP + -0x61],0x1
CALL qword ptr [0x00506cb8]
LAB_001908c5:
JMP 0x001908c7
LAB_001908c7:
CALL 0x00197000
MOV qword ptr [RBP + -0x78],RAX
IMUL RAX,qword ptr [RBP + -0x78],0x3e8
IMUL RCX,qword ptr [RBP + -0x20],0x3b9aca00
ADD RAX,RCX
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,0x3b9aca00
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,0x3b9aca00
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0x38],RDX
JMP 0x0019090d
LAB_0019090d:
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RAX + 0xe0]
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x7d],AL
JZ 0x0019092e
MOVSX EAX,byte ptr [RBP + -0x11]
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x7d],AL
LAB_0019092e:
MOV AL,byte ptr [RBP + -0x7d]
TEST AL,0x1
JNZ 0x00190937
JMP 0x0019098c
LAB_00190937:
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x18]
ADD RSI,0x18
LEA RDX,[RBP + -0x40]
LEA RCX,[0x1e64ec]
MOV R8D,0x22e
CALL 0x00191340
MOV dword ptr [RBP + -0x7c],EAX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x00190971
JMP 0x0019096d
LAB_0019096d:
JMP 0x0019096f
LAB_0019096f:
JMP 0x0019098c
LAB_00190971:
CMP dword ptr [RBP + -0x7c],0x6e
JZ 0x0019097d
CMP dword ptr [RBP + -0x7c],0x3e
JNZ 0x0019098a
LAB_0019097d:
JMP 0x0019097f
LAB_0019097f:
JMP 0x00190981
LAB_00190981:
MOV dword ptr [RBP + -0x44],0x2
JMP 0x0019098c
LAB_0019098a:
JMP 0x0019090d
LAB_0019098c:
CMP qword ptr [0x00506cc0],0x0
JZ 0x001909a5
MOVSX EAX,byte ptr [RBP + -0x61]
CMP EAX,0x0
JZ 0x001909a5
CALL qword ptr [0x00506cc0]
LAB_001909a5:
JMP 0x001909a7
LAB_001909a7:
JMP 0x001909a9
LAB_001909a9:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x001909be
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x40],0x0
JNZ 0x00190a2a
LAB_001909be:
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JZ 0x00190a22
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x001909f8
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x00190a08
LAB_001909f8:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_00190a08:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x0018f220
JMP 0x00190a28
LAB_00190a22:
JMP 0x00190a24
LAB_00190a24:
JMP 0x00190a26
LAB_00190a26:
JMP 0x00190a28
LAB_00190a28:
JMP 0x00190a81
LAB_00190a2a:
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
CMP qword ptr [RAX + 0xb0],0x0
JZ 0x00190a7f
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0xb0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
MOV RCX,qword ptr [RBP + -0x10]
CMP dword ptr [RCX + 0x40],0x8
SETZ CL
AND CL,0x1
MOVZX ECX,CL
MOVSX ESI,CL
CALL RAX
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00190a7f
MOV dword ptr [RBP + -0x44],0x1
LAB_00190a7f:
JMP 0x00190a81
LAB_00190a81:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x18]
ADD RDI,0x18
CALL 0x0018eed0
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x40
LEA RSI,[0x1e64ec]
MOV EDX,0x274
CALL 0x0018ee60
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x98],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0xa0],0x0
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0x40
CALL 0x0018eed0
XOR EAX,EAX
MOV EDX,EAX
LEA RSI,[RBP + -0x60]
LEA RCX,[0x1e6581]
LEA R8,[0x1e64ec]
MOV R9D,0x279
LEA RAX,[0x346140]
MOV RDI,RDX
CALL qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x84],EAX
MOV EAX,dword ptr [RBP + -0x84]
ADD RSP,0x90
POP RBP
RET
|
int4 wait_for_lock(long param_1,long param_2,char param_3,long param_4)
{
char cVar1;
int iVar2;
long lVar3;
ulong uVar4;
ulong extraout_RDX;
ulong extraout_RDX_00;
bool bVar5;
int1 local_68 [28];
int4 local_4c;
ulong local_48;
ulong local_40;
long local_38;
long local_30;
long local_28;
char local_19;
long local_18;
long local_10;
local_28 = param_4;
local_19 = param_3;
local_18 = param_2;
local_10 = param_1;
local_30 = _my_thread_var();
local_38 = local_30 + 8;
local_4c = 1;
bVar5 = false;
if (local_19 == '\0') {
**(long **)(local_10 + 8) = local_18;
*(int8 *)(local_18 + 0x10) = *(int8 *)(local_10 + 8);
*(long *)(local_10 + 8) = local_18 + 8;
}
locks_waited = locks_waited + 1;
*(long *)(local_30 + 0x98) = *(long *)(local_18 + 0x18) + 0x18;
*(long *)(local_30 + 0xa0) = local_38;
*(long *)(local_18 + 0x20) = local_38;
(*(code *)proc_info_hook)
(0,stage_waiting_for_table_level_lock,local_68,"<unknown>",
"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x219);
if (((*(int *)(local_30 + 0xe0) == 0) || (local_19 != '\0')) && (before_lock_wait != (code *)0x0))
{
bVar5 = true;
(*before_lock_wait)();
}
lVar3 = my_hrtime();
uVar4 = lVar3 * 1000 + local_28 * 1000000000;
local_48 = uVar4 / 1000000000;
uVar4 = uVar4 % 1000000000;
local_40 = uVar4;
do {
if ((*(int *)(local_30 + 0xe0) != 0 && local_19 == '\0') ||
(iVar2 = inline_mysql_cond_timedwait
(local_38,*(long *)(local_18 + 0x18) + 0x18,&local_48,
"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x22e),
uVar4 = extraout_RDX, *(long *)(local_18 + 0x20) == 0)) goto LAB_0019098c;
} while ((iVar2 != 0x6e) && (iVar2 != 0x3e));
local_4c = 2;
LAB_0019098c:
if ((after_lock_wait != (code *)0x0) && (bVar5)) {
(*after_lock_wait)();
uVar4 = extraout_RDX_00;
}
if ((*(long *)(local_18 + 0x20) == 0) && (*(int *)(local_18 + 0x40) != 0)) {
local_4c = 0;
if ((*(long *)(*(long *)(local_18 + 0x18) + 0xb0) != 0) &&
(bVar5 = *(int *)(local_18 + 0x40) == 8,
cVar1 = (**(code **)(*(long *)(local_18 + 0x18) + 0xb0))
(*(int8 *)(local_18 + 0x28),bVar5,uVar4,bVar5), cVar1 != '\0')) {
local_4c = 1;
}
}
else if (*(long *)(local_18 + 0x20) != 0) {
lVar3 = *(long *)(local_18 + 8);
**(long **)(local_18 + 0x10) = lVar3;
if (lVar3 == 0) {
*(int8 *)(local_10 + 8) = *(int8 *)(local_18 + 0x10);
}
else {
*(int8 *)(*(long *)(local_18 + 8) + 0x10) = *(int8 *)(local_18 + 0x10);
}
*(int4 *)(local_18 + 0x40) = 0;
wake_up_waiters(*(int8 *)(local_18 + 0x18));
}
inline_mysql_mutex_unlock(*(long *)(local_18 + 0x18) + 0x18);
inline_mysql_mutex_lock
(local_30 + 0x40,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x274);
*(int8 *)(local_30 + 0x98) = 0;
*(int8 *)(local_30 + 0xa0) = 0;
inline_mysql_mutex_unlock(local_30 + 0x40);
(*(code *)proc_info_hook)
(0,local_68,0,"<unknown>","/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",
0x279);
return local_4c;
}
| |
43,719 | gpiohilo[abi:cxx11](int) | msxemulator/build_O3/_deps/picotool-src/main.cpp | string gpiohilo(int val) {
switch(val % 4) {
case 0: return "lo_" + gpiodir(val);
case 1: return "hi_" + gpiodir(val);
default: return "unknown";
}
} | O3 | cpp | gpiohilo[abi:cxx11](int):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leal 0x3(%rsi), %ecx
testl %esi, %esi
cmovnsl %esi, %ecx
andl $-0x4, %ecx
movl %esi, %eax
subl %ecx, %eax
cmpl $0x1, %eax
je 0x32355
testl %eax, %eax
jne 0x3239d
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3229c
leaq 0x73177(%rip), %rcx # 0xa54b8
movl $0x3, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf4e0
jmp 0x3237b
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3229c
leaq 0x73153(%rip), %rcx # 0xa54bc
movl $0x3, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf4e0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x323bc
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x323c2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x7caf9(%rip), %rsi # 0xaeea4
leaq 0x7caf9(%rip), %rdx # 0xaeeab
movq %rbx, %rdi
callq 0x5c00c
jmp 0x323f4
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x323f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
jmp 0x32401
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3241f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xf470
movq %rbx, %rdi
callq 0xf7d0
| _Z8gpiohiloB5cxx11i:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea ecx, [rsi+3]
test esi, esi
cmovns ecx, esi
and ecx, 0FFFFFFFCh
mov eax, esi
sub eax, ecx
cmp eax, 1
jz short loc_32355
test eax, eax
jnz short loc_3239D
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _Z7gpiodirB5cxx11i; gpiodir(int)
lea rcx, aLo; "lo_"
mov r8d, 3
mov rdi, r14
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
jmp short loc_3237B
loc_32355:
lea r14, [rsp+38h+var_30]
mov rdi, r14
call _Z7gpiodirB5cxx11i; gpiodir(int)
lea rcx, aHi; "hi_"
mov r8d, 3
mov rdi, r14
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_3237B:
lea rdx, [rbx+10h]
mov [rbx], rdx
mov rsi, [rax]
mov rcx, rax
add rcx, 10h
cmp rsi, rcx
jz short loc_323BC
mov [rbx], rsi
mov rdx, [rcx]
mov [rbx+10h], rdx
jmp short loc_323C2
loc_3239D:
lea rax, [rbx+10h]
mov [rbx], rax
lea rsi, aX509RequestedO+18h; "unknown"
lea rdx, aX509RequestedO+1Fh; ""
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
jmp short loc_323F4
loc_323BC:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdx], xmm0
loc_323C2:
mov rdx, [rax+8]
mov [rbx+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_323F4
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_323F4:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
jmp short $+2
loc_32401:
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3241F
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3241F:
mov rdi, rbx
call __Unwind_Resume
| long long gpiohilo[abi:cxx11](long long a1, int a2)
{
int v2; // ecx
unsigned int v3; // eax
long long v4; // rax
_OWORD *v5; // rcx
void *v7[2]; // [rsp+8h] [rbp-30h] BYREF
long long v8; // [rsp+18h] [rbp-20h] BYREF
v2 = a2 + 3;
if ( a2 >= 0 )
v2 = a2;
v3 = a2 - (v2 & 0xFFFFFFFC);
if ( v3 == 1 )
{
gpiodir[abi:cxx11](v7, a2);
v4 = std::string::replace(v7, 0LL, 0LL, "hi_", 3LL);
}
else
{
if ( v3 )
{
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<char const*>(a1, "unknown", "");
return a1;
}
gpiodir[abi:cxx11](v7, a2);
v4 = std::string::replace(v7, 0LL, 0LL, "lo_", 3LL);
}
*(_QWORD *)a1 = a1 + 16;
v5 = (_OWORD *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
*(_OWORD *)(a1 + 16) = *v5;
}
else
{
*(_QWORD *)a1 = *(_QWORD *)v4;
*(_QWORD *)(a1 + 16) = *(_QWORD *)v5;
}
*(_QWORD *)(a1 + 8) = *(_QWORD *)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
if ( v7[0] != &v8 )
operator delete(v7[0], v8 + 1);
return a1;
}
| gpiohilo[abi:cxx11]:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA ECX,[RSI + 0x3]
TEST ESI,ESI
CMOVNS ECX,ESI
AND ECX,0xfffffffc
MOV EAX,ESI
SUB EAX,ECX
CMP EAX,0x1
JZ 0x00132355
TEST EAX,EAX
JNZ 0x0013239d
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013229c
LAB_0013233a:
LEA RCX,[0x1a54b8]
MOV R8D,0x3
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0010f4e0
LAB_00132353:
JMP 0x0013237b
LAB_00132355:
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x0013229c
LAB_00132362:
LEA RCX,[0x1a54bc]
MOV R8D,0x3
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x0010f4e0
LAB_0013237b:
LEA RDX,[RBX + 0x10]
MOV qword ptr [RBX],RDX
MOV RSI,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RSI,RCX
JZ 0x001323bc
MOV qword ptr [RBX],RSI
MOV RDX,qword ptr [RCX]
MOV qword ptr [RBX + 0x10],RDX
JMP 0x001323c2
LAB_0013239d:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1aeea4]
LEA RDX,[0x1aeeab]
MOV RDI,RBX
CALL 0x0015c00c
JMP 0x001323f4
LAB_001323bc:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDX],XMM0
LAB_001323c2:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001323f4
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0010f470
LAB_001323f4:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* gpiohilo[abi:cxx11](int) */
string * gpiohilo_abi_cxx11_(int param_1)
{
long lVar1;
long *plVar2;
uint uVar3;
long *plVar4;
uint in_ESI;
int4 in_register_0000003c;
string *psVar5;
long *local_30 [2];
long local_20 [2];
psVar5 = (string *)CONCAT44(in_register_0000003c,param_1);
uVar3 = in_ESI + 3;
if (-1 < (int)in_ESI) {
uVar3 = in_ESI;
}
if (in_ESI - (uVar3 & 0xfffffffc) == 1) {
gpiodir_abi_cxx11_((int)local_30);
/* try { // try from 00132362 to 0013237a has its CatchHandler @ 001323ff */
plVar2 = (long *)std::__cxx11::string::replace((ulong)local_30,0,(char *)0x0,0x1a54bc);
}
else {
if (in_ESI != (uVar3 & 0xfffffffc)) {
*(string **)psVar5 = psVar5 + 0x10;
std::__cxx11::string::_M_construct<char_const*>(psVar5,"unknown","");
return psVar5;
}
gpiodir_abi_cxx11_((int)local_30);
/* try { // try from 0013233a to 00132352 has its CatchHandler @ 00132401 */
plVar2 = (long *)std::__cxx11::string::replace((ulong)local_30,0,(char *)0x0,0x1a54b8);
}
*(string **)psVar5 = psVar5 + 0x10;
plVar4 = plVar2 + 2;
if ((long *)*plVar2 == plVar4) {
lVar1 = plVar2[3];
*(long *)(psVar5 + 0x10) = *plVar4;
*(long *)(psVar5 + 0x18) = lVar1;
}
else {
*(long **)psVar5 = (long *)*plVar2;
*(long *)(psVar5 + 0x10) = *plVar4;
}
*(long *)(psVar5 + 8) = plVar2[1];
*plVar2 = (long)plVar4;
plVar2[1] = 0;
*(int1 *)(plVar2 + 2) = 0;
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return psVar5;
}
| |
43,720 | 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>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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> const&) | monkey531[P]llama/common/json.hpp | iterator insert(const_iterator pos, const basic_json& val)
{
// insert only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
// check if iterator pos fits to this JSON value
if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
// insert to array and return iterator
return insert_iterator(pos, val);
}
JSON_THROW(type_error::create(309, detail::concat("cannot use insert() 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>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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> const&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
cmpb $0x2, (%rsi)
jne 0x673ac
movq (%rdx), %rsi
cmpq %r14, %rsi
jne 0x6740a
movq %rdi, %rbx
leaq 0x30(%rsp), %rax
movq %rsi, (%rax)
movups 0x8(%rdx), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x18(%rdx), %rdx
movq %rdx, 0x18(%rax)
movq %r14, %rsi
movq %rax, %rdx
callq 0x67486
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x223c0
movq %rax, %rbx
movq %r14, %rdi
callq 0x41dd0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x2f6c6(%rip), %rsi # 0x96a94
leaq 0x10(%rsp), %rdi
callq 0x674f7
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x135, %esi # imm = 0x135
movq %r14, %rcx
callq 0x4b35e
xorl %ebp, %ebp
leaq 0x6dedf(%rip), %rsi # 0xd52d8
leaq -0x1a0ce(%rip), %rdx # 0x4d332
movq %rbx, %rdi
callq 0x22cd0
jmp 0x6745b
pushq $0x20
popq %rdi
callq 0x223c0
movq %rax, %rbx
leaq 0x2e68a(%rip), %rsi # 0x95aa6
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x26838
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x4b1ca
xorl %ebp, %ebp
leaq 0x6dfb4(%rip), %rsi # 0xd5400
leaq -0x1a121(%rip), %rdx # 0x4d332
movq %rbx, %rdi
callq 0x22cd0
jmp 0x6745f
jmp 0x67473
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x22f48
testb %bpl, %bpl
jne 0x67476
jmp 0x6747e
movq %rax, %r14
movq %rbx, %rdi
callq 0x22550
movq %r14, %rdi
callq 0x22d30
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6insertENS0_6detail9iter_implIKSD_EERSG_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 50h
mov r14, rsi
cmp byte ptr [rsi], 2
jnz short loc_673AC
mov rsi, [rdx]
cmp rsi, r14
jnz loc_6740A
mov rbx, rdi
lea rax, [rsp+68h+var_38]
mov [rax], rsi
movups xmm0, xmmword ptr [rdx+8]
movups xmmword ptr [rax+8], xmm0
mov rdx, [rdx+18h]
mov [rax+18h], rdx
mov rsi, r14
mov rdx, rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop rbp
retn
loc_673AC:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_60]
mov [rdx], rax
lea rsi, aCannotUseInser; "cannot use insert() with "
lea rdi, [rsp+68h+var_58]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA26_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(char const(&)[26],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_58]
mov rdi, rbx; this
mov esi, 135h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_6745B
loc_6740A:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdi, [rsp+68h+var_58]
lea rdx, [rsp+68h+var_60]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov bpl, 1
lea rdx, [rsp+68h+var_58]
mov rdi, rbx; this
mov esi, 0CAh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_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_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_6745B:
jmp short loc_6745F
jmp short loc_67473
loc_6745F:
mov r14, rax
lea rdi, [rsp+68h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_67476
jmp short loc_6747E
loc_67473:
mov r14, rax
loc_67476:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_6747E:
mov rdi, r14
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>::insert(
long long a1,
unsigned __int8 *a2,
long long a3)
{
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::invalid_iterator *v5; // rbx
_QWORD v6[4]; // [rsp+10h] [rbp-58h] BYREF
unsigned __int8 *v7; // [rsp+30h] [rbp-38h] BYREF
__int128 v8; // [rsp+38h] [rbp-30h]
long long v9; // [rsp+48h] [rbp-20h]
if ( *a2 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
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(a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(
v6,
"cannot use insert() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
309,
(long long)v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if ( *(unsigned __int8 **)a3 != a2 )
{
v5 = (nlohmann::json_abi_v3_11_3::detail::invalid_iterator *)__cxa_allocate_exception(0x20uLL);
std::string::basic_string<std::allocator<char>>(v6, (long long)"iterator does not fit current value");
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v5,
202,
(long long)v6);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v7 = *(unsigned __int8 **)a3;
v8 = *(_OWORD *)(a3 + 8);
v9 = *(_QWORD *)(a3 + 24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<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&>(
a1,
a2,
&v7);
return a1;
}
| insert:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
CMP byte ptr [RSI],0x2
JNZ 0x001673ac
MOV RSI,qword ptr [RDX]
CMP RSI,R14
JNZ 0x0016740a
MOV RBX,RDI
LEA RAX,[RSP + 0x30]
MOV qword ptr [RAX],RSI
MOVUPS XMM0,xmmword ptr [RDX + 0x8]
MOVUPS xmmword ptr [RAX + 0x8],XMM0
MOV RDX,qword ptr [RDX + 0x18]
MOV qword ptr [RAX + 0x18],RDX
MOV RSI,R14
MOV RDX,RAX
CALL 0x00167486
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP RBP
RET
LAB_001673ac:
PUSH 0x20
POP RDI
CALL 0x001223c0
MOV RBX,RAX
MOV RDI,R14
CALL 0x00141dd0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_001673c7:
LEA RSI,[0x196a94]
LEA RDI,[RSP + 0x10]
CALL 0x001674f7
MOV BPL,0x1
LAB_001673db:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x135
MOV RCX,R14
CALL 0x0014b35e
XOR EBP,EBP
LEA RSI,[0x1d52d8]
LEA RDX,[0x14d332]
MOV RDI,RBX
CALL 0x00122cd0
LAB_0016740a:
PUSH 0x20
POP RDI
CALL 0x001223c0
MOV RBX,RAX
LAB_00167415:
LEA RSI,[0x195aa6]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x8]
CALL 0x00126838
MOV BPL,0x1
LAB_0016742e:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0xca
MOV RCX,R14
CALL 0x0014b1ca
XOR EBP,EBP
LEA RSI,[0x1d5400]
LEA RDX,[0x14d332]
MOV RDI,RBX
CALL 0x00122cd0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const>,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::insert(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
int8 uVar1;
char *local_60;
detail local_58 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_38;
int4 local_30;
int4 uStack_2c;
int4 uStack_28;
int4 uStack_24;
long local_20;
if (*param_2 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar1 = __cxa_allocate_exception(0x20);
local_60 = (char *)type_name(param_2);
/* try { // try from 001673c7 to 001673d7 has its CatchHandler @ 00167473 */
detail::concat<std::__cxx11::string,char_const(&)[26],char_const*>
(local_58,"cannot use insert() with ",&local_60);
/* try { // try from 001673db to 00167407 has its CatchHandler @ 0016745f */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x135,local_58,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
local_38 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*param_3;
if (local_38 == param_2) {
local_30 = (int4)param_3[1];
uStack_2c = *(int4 *)((long)param_3 + 0xc);
uStack_28 = (int4)param_3[2];
uStack_24 = *(int4 *)((long)param_3 + 0x14);
local_20 = param_3[3];
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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&>
(this,param_2,&local_38);
return this;
}
uVar1 = __cxa_allocate_exception(0x20);
/* try { // try from 00167415 to 0016742a has its CatchHandler @ 0016745d */
std::__cxx11::string::string<std::allocator<char>>
((string *)local_58,"iterator does not fit current value",(allocator *)&local_60);
/* try { // try from 0016742e to 0016745a has its CatchHandler @ 0016745b */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0xca,local_58,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::invalid_iterator::typeinfo,detail::exception::~exception);
}
| |
43,721 | 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>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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> const&) | monkey531[P]llama/common/json.hpp | iterator insert(const_iterator pos, const basic_json& val)
{
// insert only works for arrays
if (JSON_HEDLEY_LIKELY(is_array()))
{
// check if iterator pos fits to this JSON value
if (JSON_HEDLEY_UNLIKELY(pos.m_object != this))
{
JSON_THROW(invalid_iterator::create(202, "iterator does not fit current value", this));
}
// insert to array and return iterator
return insert_iterator(pos, val);
}
JSON_THROW(type_error::create(309, detail::concat("cannot use insert() with ", type_name()), this));
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
cmpb $0x2, (%rsi)
jne 0x73650
movq (%rdx), %rsi
cmpq %r14, %rsi
jne 0x736ac
movq %rdi, %rbx
leaq 0x28(%rsp), %rax
movq %rsi, (%rax)
movups 0x8(%rdx), %xmm0
movups %xmm0, 0x8(%rax)
movq 0x18(%rdx), %rdx
movq %rdx, 0x18(%rax)
movq %r14, %rsi
movq %rax, %rdx
callq 0x7374e
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x1a390
movq %rax, %rbx
movq %r14, %rdi
callq 0x42dd6
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x3e421(%rip), %rsi # 0xb1a95
movq %rsp, %rdi
callq 0x737c2
movb $0x1, %bpl
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x135, %esi # imm = 0x135
movq %r14, %rcx
callq 0x4ea00
xorl %ebp, %ebp
leaq 0x6dc2d(%rip), %rsi # 0xe12c8
leaq -0x22606(%rip), %rdx # 0x5109c
movq %rbx, %rdi
callq 0x1acd0
jmp 0x73706
movl $0x20, %edi
callq 0x1a390
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x3d3ed(%rip), %rsi # 0xb0ab6
leaq 0x3d409(%rip), %rdx # 0xb0ad9
movq %rsp, %rdi
callq 0x20d82
movb $0x1, %bpl
movq %rsp, %rdx
movq %rbx, %rdi
movl $0xca, %esi
movq %r14, %rcx
callq 0x4e798
xorl %ebp, %ebp
leaq 0x6dcf9(%rip), %rsi # 0xe13f0
leaq -0x22662(%rip), %rdx # 0x5109c
movq %rbx, %rdi
callq 0x1acd0
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x73727
jmp 0x73734
jmp 0x7373b
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73734
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a740
testb %bpl, %bpl
jne 0x7373e
jmp 0x73746
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a530
movq %r14, %rdi
callq 0x1ad30
| _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6insertENS0_6detail9iter_implIKSD_EERSG_:
push rbp; char
push r15; int
push r14; int
push rbx; int
sub rsp, 48h
mov r14, rsi
cmp byte ptr [rsi], 2
jnz short loc_73650
mov rsi, [rdx]
cmp rsi, r14
jnz loc_736AC
mov rbx, rdi
lea rax, [rsp+68h+var_40]
mov [rax], rsi
movups xmm0, xmmword ptr [rdx+8]
movups xmmword ptr [rax+8], xmm0
mov rdx, [rdx+18h]
mov [rax+18h], rdx
mov rsi, r14
mov rdx, rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&>(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
mov rax, rbx
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_73650:
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)
lea rdx, [rsp+68h+var_48]
mov [rdx], rax
lea rsi, aCannotUseInser; "cannot use insert() with "
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA26_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(char const(&)[26],char const* &&)
mov bpl, 1
mov rdx, rsp
mov rdi, rbx; this
mov esi, 135h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_73706
loc_736AC:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+68h+var_58]
mov [r15-10h], r15
lea rsi, aIteratorDoesNo; "iterator does not fit current value"
lea rdx, aIteratorDoesNo+23h; ""
mov rdi, rsp
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 bpl, 1
mov rdx, rsp
mov rdi, rbx; this
mov esi, 0CAh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_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_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_73706:
mov r14, rax
mov rdi, [rsp+68h+var_68]
cmp rdi, r15
jnz short loc_73727
jmp short loc_73734
jmp short loc_7373B
mov r14, rax
lea rax, [rsp+68h+var_58]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_73734
loc_73727:
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_73734:
test bpl, bpl
jnz short loc_7373E
jmp short loc_73746
loc_7373B:
mov r14, rax
loc_7373E:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_73746:
mov rdi, r14
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>::insert(
long long a1,
unsigned __int8 *a2,
long long a3)
{
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::exception *v5; // rbx
_QWORD v6[2]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v7[3]; // [rsp+10h] [rbp-58h] BYREF
unsigned __int8 *v8; // [rsp+28h] [rbp-40h] BYREF
__int128 v9; // [rsp+30h] [rbp-38h]
long long v10; // [rsp+40h] [rbp-28h]
if ( *a2 != 2 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v7[2] = 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(a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>(
v6,
"cannot use insert() with ");
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
exception,
309,
v6);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if ( *(unsigned __int8 **)a3 != a2 )
{
v5 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v6[0] = v7;
std::string::_M_construct<char const*>((long long)v6, "iterator does not fit current value", (long long)"");
ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_(
v5,
202,
v6);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::invalid_iterator,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v8 = *(unsigned __int8 **)a3;
v9 = *(_OWORD *)(a3 + 8);
v10 = *(_QWORD *)(a3 + 24);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<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&>(
a1,
a2,
&v8);
return a1;
}
| insert:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
CMP byte ptr [RSI],0x2
JNZ 0x00173650
MOV RSI,qword ptr [RDX]
CMP RSI,R14
JNZ 0x001736ac
MOV RBX,RDI
LEA RAX,[RSP + 0x28]
MOV qword ptr [RAX],RSI
MOVUPS XMM0,xmmword ptr [RDX + 0x8]
MOVUPS xmmword ptr [RAX + 0x8],XMM0
MOV RDX,qword ptr [RDX + 0x18]
MOV qword ptr [RAX + 0x18],RDX
MOV RSI,R14
MOV RDX,RAX
CALL 0x0017374e
MOV RAX,RBX
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00173650:
MOV EDI,0x20
CALL 0x0011a390
MOV RBX,RAX
MOV RDI,R14
CALL 0x00142dd6
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LAB_0017366d:
LEA RSI,[0x1b1a95]
MOV RDI,RSP
CALL 0x001737c2
MOV BPL,0x1
LAB_0017367f:
MOV RDX,RSP
MOV RDI,RBX
MOV ESI,0x135
MOV RCX,R14
CALL 0x0014ea00
XOR EBP,EBP
LEA RSI,[0x1e12c8]
LEA RDX,[0x15109c]
MOV RDI,RBX
CALL 0x0011acd0
LAB_001736ac:
MOV EDI,0x20
CALL 0x0011a390
MOV RBX,RAX
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
LAB_001736c2:
LEA RSI,[0x1b0ab6]
LEA RDX,[0x1b0ad9]
MOV RDI,RSP
CALL 0x00120d82
MOV BPL,0x1
LAB_001736db:
MOV RDX,RSP
MOV RDI,RBX
MOV ESI,0xca
MOV RCX,R14
CALL 0x0014e798
XOR EBP,EBP
LEA RSI,[0x1e13f0]
LEA RDX,[0x15109c]
MOV RDI,RBX
CALL 0x0011acd0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::insert(nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const>,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
* __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::insert(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this,basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_2,long *param_3)
{
int8 uVar1;
int1 *local_68 [2];
int1 local_58 [16];
char *local_48;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*local_40;
int4 local_38;
int4 uStack_34;
int4 uStack_30;
int4 uStack_2c;
long local_28;
if (*param_2 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
uVar1 = __cxa_allocate_exception(0x20);
local_48 = (char *)type_name(param_2);
/* try { // try from 0017366d to 0017367b has its CatchHandler @ 0017373b */
detail::concat<std::__cxx11::string,char_const(&)[26],char_const*>
((detail *)local_68,"cannot use insert() with ",&local_48);
/* try { // try from 0017367f to 001736a9 has its CatchHandler @ 00173716 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0x135,local_68,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::type_error::typeinfo,detail::exception::~exception);
}
local_40 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_3;
if (local_40 == param_2) {
local_38 = (int4)param_3[1];
uStack_34 = *(int4 *)((long)param_3 + 0xc);
uStack_30 = (int4)param_3[2];
uStack_2c = *(int4 *)((long)param_3 + 0x14);
local_28 = param_3[3];
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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&>
(this,param_2,&local_40);
return this;
}
uVar1 = __cxa_allocate_exception(0x20);
local_68[0] = local_58;
/* try { // try from 001736c2 to 001736d7 has its CatchHandler @ 00173714 */
std::__cxx11::string::_M_construct<char_const*>(local_68,"iterator does not fit current value","")
;
/* try { // try from 001736db to 00173705 has its CatchHandler @ 00173706 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar1,0xca,local_68,param_2);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&detail::invalid_iterator::typeinfo,detail::exception::~exception);
}
| |
43,722 | re_parse_group_name | bluesky950520[P]quickjs/libregexp.c | static int re_parse_group_name(char *buf, int buf_size, const uint8_t **pp)
{
const uint8_t *p, *p_next;
uint32_t c, d;
char *q;
p = *pp;
q = buf;
for(;;) {
c = *p++;
if (c == '\\') {
if (*p != 'u')
return -1;
c = lre_parse_escape(&p, 2); // accept surrogate pairs
if ((int)c < 0)
return -1;
} else if (c == '>') {
break;
} else if (c >= 0x80) {
c = utf8_decode(p - 1, &p_next);
if (p_next == p)
return -1;
p = p_next;
if (is_hi_surrogate(c)) {
d = utf8_decode(p, &p_next);
if (is_lo_surrogate(d)) {
c = from_surrogate(c, d);
p = p_next;
}
}
}
if (q == buf) {
if (!lre_js_is_ident_first(c))
return -1;
} else {
if (!lre_js_is_ident_next(c))
return -1;
}
if ((q - buf + UTF8_CHAR_LEN_MAX + 1) > buf_size)
return -1;
if (c < 0x80) {
*q++ = c;
} else {
q += utf8_encode((uint8_t*)q, c);
}
}
if (q == buf)
return -1;
*q = '\0';
*pp = p;
return 0;
} | O1 | c | re_parse_group_name:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq %rsi, 0x10(%rsp)
movq (%rsi), %rax
movq %rsp, %r15
movq %rax, (%r15)
movq %rdi, %r12
movq (%rsp), %rdi
leaq 0x1(%rdi), %rbx
movq %rbx, (%rsp)
movzbl (%rdi), %ebp
cmpl $0x5c, %ebp
je 0x968ba
cmpl $0x3e, %ebp
je 0x9696e
testb %bpl, %bpl
jns 0x968e0
leaq 0x8(%rsp), %rsi
callq 0x1ab15
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x96989
movl %eax, %ebp
movq %rdi, (%rsp)
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x968e0
leaq 0x8(%rsp), %rsi
callq 0x1ab15
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x968e0
shll $0xa, %ebp
andl $0xffc00, %ebp # imm = 0xFFC00
andl $0x3ff, %eax # imm = 0x3FF
addl %eax, %ebp
addl $0x10000, %ebp # imm = 0x10000
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
jmp 0x968e0
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x75, (%rbx)
jne 0x9698f
movq %r15, %rdi
movl $0x2, %esi
callq 0x9392b
movl %eax, %ebp
testl %eax, %eax
js 0x9698f
movq %r12, %r13
subq %r14, %r13
je 0x968fb
cmpl $0x7f, %ebp
ja 0x96919
movl %ebp, %eax
shrl $0x5, %eax
leaq 0xb3a7(%rip), %rcx # 0xa1ca0
jmp 0x9690c
cmpl $0x7f, %ebp
ja 0x9693a
movl %ebp, %eax
shrl $0x5, %eax
leaq 0xb384(%rip), %rcx # 0xa1c90
movl (%rcx,%rax,4), %ecx
xorl %eax, %eax
btl %ebp, %ecx
setb %al
jmp 0x96941
movl %ebp, %edi
callq 0x97d4e
testl %eax, %eax
setne %al
movl %ebp, %ecx
andl $-0x2, %ecx
cmpl $0x200c, %ecx # imm = 0x200C
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x96941
movl %ebp, %edi
callq 0x97d36
testl %eax, %eax
je 0x96989
cmpq $0x7b, %r13
jg 0x96989
cmpl $0x7f, %ebp
ja 0x9695c
movb %bpl, (%r12)
incq %r12
jmp 0x9682f
movq %r12, %rdi
movl %ebp, %esi
callq 0x1aa6f
addq %rax, %r12
jmp 0x9682f
cmpq %r14, %r12
je 0x96989
movb $0x0, (%r12)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
xorl %r13d, %r13d
jmp 0x9698f
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| re_parse_group_name:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rdi
mov [rsp+48h+var_38], rsi
mov rax, [rsi]
mov r15, rsp
mov [r15], rax
mov r12, rdi
loc_9682F:
mov rdi, [rsp+48h+var_48]
lea rbx, [rdi+1]
mov [rsp+48h+var_48], rbx
movzx ebp, byte ptr [rdi]
cmp ebp, 5Ch ; '\'
jz short loc_968BA
cmp ebp, 3Eh ; '>'
jz loc_9696E
test bpl, bpl
jns loc_968E0
lea rsi, [rsp+48h+var_40]
call utf8_decode
mov rdi, [rsp+48h+var_40]
cmp rdi, rbx
jz loc_96989
mov ebp, eax
mov [rsp+48h+var_48], rdi
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz short loc_968E0
lea rsi, [rsp+48h+var_40]
call utf8_decode
mov ecx, eax
and ecx, 0FFFFFC00h
cmp ecx, 0DC00h
jnz short loc_968E0
shl ebp, 0Ah
and ebp, 0FFC00h
and eax, 3FFh
add ebp, eax
add ebp, 10000h
mov rax, [rsp+48h+var_40]
mov [rsp+48h+var_48], rax
jmp short loc_968E0
loc_968BA:
mov r13d, 0FFFFFFFFh
cmp byte ptr [rbx], 75h ; 'u'
jnz loc_9698F
mov rdi, r15
mov esi, 2
call lre_parse_escape
mov ebp, eax
test eax, eax
js loc_9698F
loc_968E0:
mov r13, r12
sub r13, r14
jz short loc_968FB
cmp ebp, 7Fh
ja short loc_96919
mov eax, ebp
shr eax, 5
lea rcx, lre_id_continue_table_ascii
jmp short loc_9690C
loc_968FB:
cmp ebp, 7Fh
ja short loc_9693A
mov eax, ebp
shr eax, 5
lea rcx, lre_id_start_table_ascii
loc_9690C:
mov ecx, [rcx+rax*4]
xor eax, eax
bt ecx, ebp
setb al
jmp short loc_96941
loc_96919:
mov edi, ebp
call lre_is_id_continue
test eax, eax
setnz al
mov ecx, ebp
and ecx, 0FFFFFFFEh
cmp ecx, 200Ch
setz cl
or cl, al
movzx eax, cl
jmp short loc_96941
loc_9693A:
mov edi, ebp
call lre_is_id_start
loc_96941:
test eax, eax
jz short loc_96989
cmp r13, 7Bh ; '{'
jg short loc_96989
cmp ebp, 7Fh
ja short loc_9695C
mov [r12], bpl
inc r12
jmp loc_9682F
loc_9695C:
mov rdi, r12
mov esi, ebp
call utf8_encode
add r12, rax
jmp loc_9682F
loc_9696E:
cmp r12, r14
jz short loc_96989
mov byte ptr [r12], 0
mov rax, [rsp+48h+var_48]
mov rcx, [rsp+48h+var_38]
mov [rcx], rax
xor r13d, r13d
jmp short loc_9698F
loc_96989:
mov r13d, 0FFFFFFFFh
loc_9698F:
mov eax, r13d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long re_parse_group_name(_BYTE *a1, unsigned __int8 **a2)
{
_BYTE *v3; // r12
char *v4; // rdi
char *v5; // rbx
unsigned int v6; // ebp
unsigned int v7; // eax
int v8; // eax
unsigned int v9; // r13d
long long v10; // rax
unsigned int *v11; // rcx
unsigned int v12; // ecx
int is_id_start; // eax
unsigned __int8 *v15; // [rsp+0h] [rbp-48h] BYREF
char *v16; // [rsp+8h] [rbp-40h] BYREF
unsigned __int8 **v17; // [rsp+10h] [rbp-38h]
v17 = a2;
v15 = *a2;
v3 = a1;
while ( 1 )
{
v4 = (char *)v15;
v5 = (char *)++v15;
v6 = (unsigned __int8)*v4;
if ( v6 == 92 )
{
v9 = -1;
if ( *v5 != 117 )
return v9;
v6 = lre_parse_escape(&v15, 2);
if ( (v6 & 0x80000000) != 0 )
return v9;
goto LABEL_11;
}
if ( v6 == 62 )
break;
if ( (v6 & 0x80u) != 0 )
{
v7 = utf8_decode(v4, &v16);
if ( v16 == v5 )
return (unsigned int)-1;
v6 = v7;
v15 = (unsigned __int8 *)v16;
if ( (v7 & 0xFFFFFC00) == 0xD800 )
{
v8 = utf8_decode(v16, &v16);
if ( (v8 & 0xFFFFFC00) == 0xDC00 )
{
v6 = (v8 & 0x3FF) + ((v6 << 10) & 0xFFC00) + 0x10000;
v15 = (unsigned __int8 *)v16;
}
}
}
LABEL_11:
if ( v3 == a1 )
{
if ( v6 > 0x7F )
{
is_id_start = lre_is_id_start(v6);
goto LABEL_19;
}
v10 = v6 >> 5;
v11 = lre_id_start_table_ascii;
}
else
{
if ( v6 > 0x7F )
{
is_id_start = (unsigned int)lre_is_id_continue(v6) != 0 || (v6 & 0xFFFFFFFE) == 8204;
goto LABEL_19;
}
v10 = v6 >> 5;
v11 = lre_id_continue_table_ascii;
}
v12 = v11[v10];
is_id_start = _bittest((const int *)&v12, v6);
LABEL_19:
if ( !is_id_start || v3 - a1 > 123 )
return (unsigned int)-1;
if ( v6 > 0x7F )
v3 += utf8_encode(v3, v6);
else
*v3++ = v6;
}
if ( v3 != a1 )
{
*v3 = 0;
*v17 = v15;
return 0;
}
return (unsigned int)-1;
}
| re_parse_group_name:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RAX,qword ptr [RSI]
MOV R15,RSP
MOV qword ptr [R15],RAX
MOV R12,RDI
LAB_0019682f:
MOV RDI,qword ptr [RSP]
LEA RBX,[RDI + 0x1]
MOV qword ptr [RSP],RBX
MOVZX EBP,byte ptr [RDI]
CMP EBP,0x5c
JZ 0x001968ba
CMP EBP,0x3e
JZ 0x0019696e
TEST BPL,BPL
JNS 0x001968e0
LEA RSI,[RSP + 0x8]
CALL 0x0011ab15
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBX
JZ 0x00196989
MOV EBP,EAX
MOV qword ptr [RSP],RDI
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x001968e0
LEA RSI,[RSP + 0x8]
CALL 0x0011ab15
MOV ECX,EAX
AND ECX,0xfffffc00
CMP ECX,0xdc00
JNZ 0x001968e0
SHL EBP,0xa
AND EBP,0xffc00
AND EAX,0x3ff
ADD EBP,EAX
ADD EBP,0x10000
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RAX
JMP 0x001968e0
LAB_001968ba:
MOV R13D,0xffffffff
CMP byte ptr [RBX],0x75
JNZ 0x0019698f
MOV RDI,R15
MOV ESI,0x2
CALL 0x0019392b
MOV EBP,EAX
TEST EAX,EAX
JS 0x0019698f
LAB_001968e0:
MOV R13,R12
SUB R13,R14
JZ 0x001968fb
CMP EBP,0x7f
JA 0x00196919
MOV EAX,EBP
SHR EAX,0x5
LEA RCX,[0x1a1ca0]
JMP 0x0019690c
LAB_001968fb:
CMP EBP,0x7f
JA 0x0019693a
MOV EAX,EBP
SHR EAX,0x5
LEA RCX,[0x1a1c90]
LAB_0019690c:
MOV ECX,dword ptr [RCX + RAX*0x4]
XOR EAX,EAX
BT ECX,EBP
SETC AL
JMP 0x00196941
LAB_00196919:
MOV EDI,EBP
CALL 0x00197d4e
TEST EAX,EAX
SETNZ AL
MOV ECX,EBP
AND ECX,0xfffffffe
CMP ECX,0x200c
SETZ CL
OR CL,AL
MOVZX EAX,CL
JMP 0x00196941
LAB_0019693a:
MOV EDI,EBP
CALL 0x00197d36
LAB_00196941:
TEST EAX,EAX
JZ 0x00196989
CMP R13,0x7b
JG 0x00196989
CMP EBP,0x7f
JA 0x0019695c
MOV byte ptr [R12],BPL
INC R12
JMP 0x0019682f
LAB_0019695c:
MOV RDI,R12
MOV ESI,EBP
CALL 0x0011aa6f
ADD R12,RAX
JMP 0x0019682f
LAB_0019696e:
CMP R12,R14
JZ 0x00196989
MOV byte ptr [R12],0x0
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RCX],RAX
XOR R13D,R13D
JMP 0x0019698f
LAB_00196989:
MOV R13D,0xffffffff
LAB_0019698f:
MOV EAX,R13D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 re_parse_group_name(int1 *param_1,long *param_2)
{
byte *pbVar1;
byte bVar2;
byte *pbVar3;
uint uVar4;
uint uVar5;
int iVar6;
long lVar7;
int1 *puVar8;
ulong uVar9;
int1 *puVar10;
byte *local_48;
byte *local_40;
long *local_38;
local_48 = (byte *)*param_2;
puVar10 = param_1;
local_38 = param_2;
do {
pbVar3 = local_48;
pbVar1 = local_48 + 1;
bVar2 = *local_48;
uVar9 = (ulong)bVar2;
local_48 = pbVar1;
if (bVar2 == 0x5c) {
if (*pbVar1 != 0x75) {
return 0xffffffff;
}
uVar4 = lre_parse_escape(&local_48,2);
uVar9 = (ulong)uVar4;
if ((int)uVar4 < 0) {
return 0xffffffff;
}
}
else {
if (bVar2 == 0x3e) {
if (puVar10 == param_1) {
return 0xffffffff;
}
*puVar10 = 0;
*local_38 = (long)pbVar1;
return 0;
}
if ((char)bVar2 < '\0') {
uVar4 = utf8_decode(pbVar3,&local_40);
if (local_40 == pbVar1) {
return 0xffffffff;
}
uVar9 = (ulong)uVar4;
local_48 = local_40;
if (((uVar4 & 0xfffffc00) == 0xd800) &&
(uVar5 = utf8_decode(local_40,&local_40), (uVar5 & 0xfffffc00) == 0xdc00)) {
uVar9 = (ulong)((uVar4 & 0x3ff) * 0x400 + (uVar5 & 0x3ff) + 0x10000);
local_48 = local_40;
}
}
}
uVar4 = (uint)uVar9;
if (puVar10 == param_1) {
if (uVar4 < 0x80) {
puVar8 = lre_id_start_table_ascii;
goto LAB_0019690c;
}
uVar5 = lre_is_id_start(uVar9);
}
else if (uVar4 < 0x80) {
puVar8 = lre_id_continue_table_ascii;
LAB_0019690c:
uVar5 = (uint)((*(uint *)(puVar8 + (uVar9 >> 5) * 4) >> (uVar4 & 0x1f) & 1) != 0);
}
else {
iVar6 = lre_is_id_continue(uVar9);
uVar5 = (uint)((uVar4 & 0xfffffffe) == 0x200c || iVar6 != 0);
}
if (uVar5 == 0) {
return 0xffffffff;
}
if (0x7b < (long)puVar10 - (long)param_1) {
return 0xffffffff;
}
if (uVar4 < 0x80) {
*puVar10 = (char)uVar9;
puVar10 = puVar10 + 1;
}
else {
lVar7 = utf8_encode(puVar10,uVar9);
puVar10 = puVar10 + lVar7;
}
} while( true );
}
| |
43,723 | re_parse_group_name | bluesky950520[P]quickjs/libregexp.c | static int re_parse_group_name(char *buf, int buf_size, const uint8_t **pp)
{
const uint8_t *p, *p_next;
uint32_t c, d;
char *q;
p = *pp;
q = buf;
for(;;) {
c = *p++;
if (c == '\\') {
if (*p != 'u')
return -1;
c = lre_parse_escape(&p, 2); // accept surrogate pairs
if ((int)c < 0)
return -1;
} else if (c == '>') {
break;
} else if (c >= 0x80) {
c = utf8_decode(p - 1, &p_next);
if (p_next == p)
return -1;
p = p_next;
if (is_hi_surrogate(c)) {
d = utf8_decode(p, &p_next);
if (is_lo_surrogate(d)) {
c = from_surrogate(c, d);
p = p_next;
}
}
}
if (q == buf) {
if (!lre_js_is_ident_first(c))
return -1;
} else {
if (!lre_js_is_ident_next(c))
return -1;
}
if ((q - buf + UTF8_CHAR_LEN_MAX + 1) > buf_size)
return -1;
if (c < 0x80) {
*q++ = c;
} else {
q += utf8_encode((uint8_t*)q, c);
}
}
if (q == buf)
return -1;
*q = '\0';
*pp = p;
return 0;
} | O3 | c | re_parse_group_name:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movq %rsp, %r15
movq %rsi, 0x10(%rsp)
movq %rsi, %rax
movq %rdi, %r12
movq (%rax), %rdi
leaq 0x1(%rdi), %rbx
movq %rbx, (%rsp)
movzbl (%rdi), %ebp
cmpl $0x5c, %ebp
je 0x991a1
cmpl $0x3e, %ebp
je 0x9925b
testb %bpl, %bpl
jns 0x991c7
leaq 0x8(%rsp), %rsi
callq 0x1b41e
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x99276
movl %eax, %ebp
movq %rdi, (%rsp)
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x991c7
leaq 0x8(%rsp), %rsi
callq 0x1b41e
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x991c7
shll $0xa, %ebp
andl $0xffc00, %ebp # imm = 0xFFC00
andl $0x3ff, %eax # imm = 0x3FF
addl %eax, %ebp
addl $0x10000, %ebp # imm = 0x10000
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
jmp 0x991c7
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x75, (%rbx)
jne 0x9927c
movq %r15, %rdi
movl $0x2, %esi
callq 0x9643f
movl %eax, %ebp
testl %eax, %eax
js 0x9927c
movq %r12, %r13
subq %r14, %r13
je 0x991e2
cmpl $0x7f, %ebp
ja 0x99200
movl %ebp, %eax
shrl $0x5, %eax
leaq 0xba70(%rip), %rcx # 0xa4c50
jmp 0x991f3
cmpl $0x7f, %ebp
ja 0x99221
movl %ebp, %eax
shrl $0x5, %eax
leaq 0xba4d(%rip), %rcx # 0xa4c40
movl (%rcx,%rax,4), %ecx
xorl %eax, %eax
btl %ebp, %ecx
setb %al
jmp 0x99228
movl %ebp, %edi
callq 0x9a63c
testl %eax, %eax
setne %al
movl %ebp, %ecx
andl $-0x2, %ecx
cmpl $0x200c, %ecx # imm = 0x200C
sete %cl
orb %al, %cl
movzbl %cl, %eax
jmp 0x99228
movl %ebp, %edi
callq 0x9a624
testl %eax, %eax
je 0x99276
cmpq $0x7b, %r13
jg 0x99276
cmpl $0x7f, %ebp
ja 0x99246
movb %bpl, (%r12)
incq %r12
movq %r15, %rax
jmp 0x99117
movq %r12, %rdi
movl %ebp, %esi
callq 0x1b378
addq %rax, %r12
movq %r15, %rax
jmp 0x99117
cmpq %r14, %r12
je 0x99276
movb $0x0, (%r12)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
xorl %r13d, %r13d
jmp 0x9927c
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| re_parse_group_name:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rdi
mov r15, rsp
mov [rsp+48h+var_38], rsi
mov rax, rsi
mov r12, rdi
loc_99117:
mov rdi, [rax]
lea rbx, [rdi+1]
mov [rsp+48h+var_48], rbx
movzx ebp, byte ptr [rdi]
cmp ebp, 5Ch ; '\'
jz short loc_991A1
cmp ebp, 3Eh ; '>'
jz loc_9925B
test bpl, bpl
jns loc_991C7
lea rsi, [rsp+48h+var_40]
call utf8_decode
mov rdi, [rsp+48h+var_40]
cmp rdi, rbx
jz loc_99276
mov ebp, eax
mov [rsp+48h+var_48], rdi
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz short loc_991C7
lea rsi, [rsp+48h+var_40]
call utf8_decode
mov ecx, eax
and ecx, 0FFFFFC00h
cmp ecx, 0DC00h
jnz short loc_991C7
shl ebp, 0Ah
and ebp, 0FFC00h
and eax, 3FFh
add ebp, eax
add ebp, 10000h
mov rax, [rsp+48h+var_40]
mov [rsp+48h+var_48], rax
jmp short loc_991C7
loc_991A1:
mov r13d, 0FFFFFFFFh
cmp byte ptr [rbx], 75h ; 'u'
jnz loc_9927C
mov rdi, r15
mov esi, 2
call lre_parse_escape
mov ebp, eax
test eax, eax
js loc_9927C
loc_991C7:
mov r13, r12
sub r13, r14
jz short loc_991E2
cmp ebp, 7Fh
ja short loc_99200
mov eax, ebp
shr eax, 5
lea rcx, lre_id_continue_table_ascii
jmp short loc_991F3
loc_991E2:
cmp ebp, 7Fh
ja short loc_99221
mov eax, ebp
shr eax, 5
lea rcx, lre_id_start_table_ascii
loc_991F3:
mov ecx, [rcx+rax*4]
xor eax, eax
bt ecx, ebp
setb al
jmp short loc_99228
loc_99200:
mov edi, ebp
call lre_is_id_continue
test eax, eax
setnz al
mov ecx, ebp
and ecx, 0FFFFFFFEh
cmp ecx, 200Ch
setz cl
or cl, al
movzx eax, cl
jmp short loc_99228
loc_99221:
mov edi, ebp
call lre_is_id_start
loc_99228:
test eax, eax
jz short loc_99276
cmp r13, 7Bh ; '{'
jg short loc_99276
cmp ebp, 7Fh
ja short loc_99246
mov [r12], bpl
inc r12
mov rax, r15
jmp loc_99117
loc_99246:
mov rdi, r12
mov esi, ebp
call utf8_encode
add r12, rax
mov rax, r15
jmp loc_99117
loc_9925B:
cmp r12, r14
jz short loc_99276
mov byte ptr [r12], 0
mov rax, [rsp+48h+var_48]
mov rcx, [rsp+48h+var_38]
mov [rcx], rax
xor r13d, r13d
jmp short loc_9927C
loc_99276:
mov r13d, 0FFFFFFFFh
loc_9927C:
mov eax, r13d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long re_parse_group_name(_BYTE *a1, _QWORD *a2)
{
char **v3; // rax
_BYTE *v4; // r12
char *v5; // rdi
unsigned __int8 *v6; // rbx
unsigned int v7; // ebp
unsigned int v8; // eax
int v9; // eax
unsigned int v10; // r13d
long long v11; // rax
unsigned int *v12; // rcx
unsigned int v13; // ecx
int is_id_start; // eax
unsigned __int8 *v16; // [rsp+0h] [rbp-48h] BYREF
char *v17; // [rsp+8h] [rbp-40h] BYREF
_QWORD *v18; // [rsp+10h] [rbp-38h]
v18 = a2;
v3 = (char **)a2;
v4 = a1;
while ( 1 )
{
v5 = *v3;
v6 = (unsigned __int8 *)(*v3 + 1);
v16 = v6;
v7 = (unsigned __int8)*v5;
if ( v7 == 92 )
{
v10 = -1;
if ( *v6 != 117 )
return v10;
v7 = lre_parse_escape(&v16, 2);
if ( (v7 & 0x80000000) != 0 )
return v10;
goto LABEL_11;
}
if ( v7 == 62 )
break;
if ( (v7 & 0x80u) != 0 )
{
v8 = utf8_decode(v5, &v17);
if ( v17 == (char *)v6 )
return (unsigned int)-1;
v7 = v8;
v16 = (unsigned __int8 *)v17;
if ( (v8 & 0xFFFFFC00) == 0xD800 )
{
v9 = utf8_decode(v17, &v17);
if ( (v9 & 0xFFFFFC00) == 0xDC00 )
{
v7 = (v9 & 0x3FF) + ((v7 << 10) & 0xFFC00) + 0x10000;
v16 = (unsigned __int8 *)v17;
}
}
}
LABEL_11:
if ( v4 == a1 )
{
if ( v7 > 0x7F )
{
is_id_start = lre_is_id_start(v7);
goto LABEL_19;
}
v11 = v7 >> 5;
v12 = lre_id_start_table_ascii;
}
else
{
if ( v7 > 0x7F )
{
is_id_start = (unsigned int)lre_is_id_continue(v7) != 0 || (v7 & 0xFFFFFFFE) == 8204;
goto LABEL_19;
}
v11 = v7 >> 5;
v12 = lre_id_continue_table_ascii;
}
v13 = v12[v11];
is_id_start = _bittest((const int *)&v13, v7);
LABEL_19:
if ( !is_id_start || v4 - a1 > 123 )
return (unsigned int)-1;
if ( v7 > 0x7F )
v4 += utf8_encode(v4, v7);
else
*v4++ = v7;
v3 = (char **)&v16;
}
if ( v4 != a1 )
{
*v4 = 0;
*v18 = v16;
return 0;
}
return (unsigned int)-1;
}
| re_parse_group_name:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RDI
MOV R15,RSP
MOV qword ptr [RSP + 0x10],RSI
MOV RAX,RSI
MOV R12,RDI
LAB_00199117:
MOV RDI,qword ptr [RAX]
LEA RBX,[RDI + 0x1]
MOV qword ptr [RSP],RBX
MOVZX EBP,byte ptr [RDI]
CMP EBP,0x5c
JZ 0x001991a1
CMP EBP,0x3e
JZ 0x0019925b
TEST BPL,BPL
JNS 0x001991c7
LEA RSI,[RSP + 0x8]
CALL 0x0011b41e
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,RBX
JZ 0x00199276
MOV EBP,EAX
MOV qword ptr [RSP],RDI
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x001991c7
LEA RSI,[RSP + 0x8]
CALL 0x0011b41e
MOV ECX,EAX
AND ECX,0xfffffc00
CMP ECX,0xdc00
JNZ 0x001991c7
SHL EBP,0xa
AND EBP,0xffc00
AND EAX,0x3ff
ADD EBP,EAX
ADD EBP,0x10000
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RAX
JMP 0x001991c7
LAB_001991a1:
MOV R13D,0xffffffff
CMP byte ptr [RBX],0x75
JNZ 0x0019927c
MOV RDI,R15
MOV ESI,0x2
CALL 0x0019643f
MOV EBP,EAX
TEST EAX,EAX
JS 0x0019927c
LAB_001991c7:
MOV R13,R12
SUB R13,R14
JZ 0x001991e2
CMP EBP,0x7f
JA 0x00199200
MOV EAX,EBP
SHR EAX,0x5
LEA RCX,[0x1a4c50]
JMP 0x001991f3
LAB_001991e2:
CMP EBP,0x7f
JA 0x00199221
MOV EAX,EBP
SHR EAX,0x5
LEA RCX,[0x1a4c40]
LAB_001991f3:
MOV ECX,dword ptr [RCX + RAX*0x4]
XOR EAX,EAX
BT ECX,EBP
SETC AL
JMP 0x00199228
LAB_00199200:
MOV EDI,EBP
CALL 0x0019a63c
TEST EAX,EAX
SETNZ AL
MOV ECX,EBP
AND ECX,0xfffffffe
CMP ECX,0x200c
SETZ CL
OR CL,AL
MOVZX EAX,CL
JMP 0x00199228
LAB_00199221:
MOV EDI,EBP
CALL 0x0019a624
LAB_00199228:
TEST EAX,EAX
JZ 0x00199276
CMP R13,0x7b
JG 0x00199276
CMP EBP,0x7f
JA 0x00199246
MOV byte ptr [R12],BPL
INC R12
MOV RAX,R15
JMP 0x00199117
LAB_00199246:
MOV RDI,R12
MOV ESI,EBP
CALL 0x0011b378
ADD R12,RAX
MOV RAX,R15
JMP 0x00199117
LAB_0019925b:
CMP R12,R14
JZ 0x00199276
MOV byte ptr [R12],0x0
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RCX],RAX
XOR R13D,R13D
JMP 0x0019927c
LAB_00199276:
MOV R13D,0xffffffff
LAB_0019927c:
MOV EAX,R13D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 re_parse_group_name(int1 *param_1,byte **param_2)
{
byte *pbVar1;
byte bVar2;
byte *pbVar3;
uint uVar4;
uint uVar5;
int iVar6;
long lVar7;
int1 *puVar8;
ulong uVar9;
int1 *puVar10;
byte *local_48;
byte *local_40;
long *local_38;
local_38 = (long *)param_2;
puVar10 = param_1;
do {
pbVar3 = *param_2;
pbVar1 = pbVar3 + 1;
local_48 = pbVar1;
bVar2 = *pbVar3;
uVar9 = (ulong)bVar2;
if (bVar2 == 0x5c) {
if (*pbVar1 != 0x75) {
return 0xffffffff;
}
uVar4 = lre_parse_escape(&local_48,2);
uVar9 = (ulong)uVar4;
if ((int)uVar4 < 0) {
return 0xffffffff;
}
}
else {
if (bVar2 == 0x3e) {
if (puVar10 == param_1) {
return 0xffffffff;
}
*puVar10 = 0;
*local_38 = (long)pbVar1;
return 0;
}
if ((char)bVar2 < '\0') {
uVar4 = utf8_decode(pbVar3,&local_40);
if (local_40 == pbVar1) {
return 0xffffffff;
}
uVar9 = (ulong)uVar4;
local_48 = local_40;
if (((uVar4 & 0xfffffc00) == 0xd800) &&
(uVar5 = utf8_decode(local_40,&local_40), (uVar5 & 0xfffffc00) == 0xdc00)) {
uVar9 = (ulong)((uVar4 & 0x3ff) * 0x400 + (uVar5 & 0x3ff) + 0x10000);
local_48 = local_40;
}
}
}
uVar4 = (uint)uVar9;
if (puVar10 == param_1) {
if (uVar4 < 0x80) {
puVar8 = lre_id_start_table_ascii;
goto LAB_001991f3;
}
uVar5 = lre_is_id_start(uVar9);
}
else if (uVar4 < 0x80) {
puVar8 = lre_id_continue_table_ascii;
LAB_001991f3:
uVar5 = (uint)((*(uint *)(puVar8 + (uVar9 >> 5) * 4) >> (uVar4 & 0x1f) & 1) != 0);
}
else {
iVar6 = lre_is_id_continue(uVar9);
uVar5 = (uint)((uVar4 & 0xfffffffe) == 0x200c || iVar6 != 0);
}
if (uVar5 == 0) {
return 0xffffffff;
}
if (0x7b < (long)puVar10 - (long)param_1) {
return 0xffffffff;
}
if (uVar4 < 0x80) {
*puVar10 = (char)uVar9;
puVar10 = puVar10 + 1;
param_2 = &local_48;
}
else {
lVar7 = utf8_encode(puVar10,uVar9);
puVar10 = puVar10 + lVar7;
param_2 = &local_48;
}
} while( true );
}
| |
43,724 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget() | monkey531[P]llama/common/json.hpp | void unget()
{
next_unget = true;
--position.chars_read_total;
// in case we "unget" a newline, we have to also decrement the lines_read
if (position.chars_read_current_line == 0)
{
if (position.lines_read > 0)
{
--position.lines_read;
}
}
else
{
--position.chars_read_current_line;
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
JSON_ASSERT(!token_string.empty());
token_string.pop_back();
}
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::unget():
movb $0x1, 0x18(%rdi)
decq 0x20(%rdi)
movq 0x28(%rdi), %rax
testq %rax, %rax
je 0x43043
leaq 0x28(%rdi), %rcx
jmp 0x43050
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x43056
leaq 0x30(%rdi), %rcx
decq %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x14(%rdi)
je 0x4306d
movq 0x40(%rdi), %rax
cmpq %rax, 0x38(%rdi)
je 0x4306e
decq %rax
movq %rax, 0x40(%rdi)
retq
pushq %rax
leaq 0x4cd61(%rip), %rdi # 0x8fdd7
leaq 0x4a20f(%rip), %rdx # 0x8d28c
leaq 0x4d433(%rip), %rcx # 0x904b7
movl $0x2240, %esi # imm = 0x2240
xorl %eax, %eax
callq 0x20af0
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv:
mov byte ptr [rdi+18h], 1
dec qword ptr [rdi+20h]
mov rax, [rdi+28h]
test rax, rax
jz short loc_43043
lea rcx, [rdi+28h]
jmp short loc_43050
loc_43043:
mov rax, [rdi+30h]
test rax, rax
jz short loc_43056
lea rcx, [rdi+30h]
loc_43050:
dec rax
mov [rcx], rax
loc_43056:
cmp dword ptr [rdi+14h], 0FFFFFFFFh
jz short locret_4306D
mov rax, [rdi+40h]
cmp [rdi+38h], rax
jz short loc_4306E
dec rax
mov [rdi+40h], rax
locret_4306D:
retn
loc_4306E:
push rax
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTokenStringEmp; "!token_string.empty()"
mov esi, 2240h
xor eax, eax
call _ggml_abort
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(
long long a1)
{
long long result; // rax
_QWORD *v2; // rcx
long long v3; // rax
*(_BYTE *)(a1 + 24) = 1;
--*(_QWORD *)(a1 + 32);
result = *(_QWORD *)(a1 + 40);
if ( result )
{
v2 = (_QWORD *)(a1 + 40);
}
else
{
result = *(_QWORD *)(a1 + 48);
if ( !result )
goto LABEL_6;
v2 = (_QWORD *)(a1 + 48);
}
*v2 = --result;
LABEL_6:
if ( *(_DWORD *)(a1 + 20) != -1 )
{
v3 = *(_QWORD *)(a1 + 64);
if ( *(_QWORD *)(a1 + 56) == v3 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
8768LL,
"GGML_ASSERT(%s) failed",
"!token_string.empty()");
return nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
else
{
result = v3 - 1;
*(_QWORD *)(a1 + 64) = result;
}
}
return result;
}
| unget:
MOV byte ptr [RDI + 0x18],0x1
DEC qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RDI + 0x28]
TEST RAX,RAX
JZ 0x00143043
LEA RCX,[RDI + 0x28]
JMP 0x00143050
LAB_00143043:
MOV RAX,qword ptr [RDI + 0x30]
TEST RAX,RAX
JZ 0x00143056
LEA RCX,[RDI + 0x30]
LAB_00143050:
DEC RAX
MOV qword ptr [RCX],RAX
LAB_00143056:
CMP dword ptr [RDI + 0x14],-0x1
JZ 0x0014306d
MOV RAX,qword ptr [RDI + 0x40]
CMP qword ptr [RDI + 0x38],RAX
JZ 0x0014306e
DEC RAX
MOV qword ptr [RDI + 0x40],RAX
LAB_0014306d:
RET
LAB_0014306e:
PUSH RAX
LEA RDI,[0x18fdd7]
LEA RDX,[0x18d28c]
LEA RCX,[0x1904b7]
MOV ESI,0x2240
XOR EAX,EAX
CALL 0x00120af0
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::unget() */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::unget(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
long lVar1;
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*plVar2;
int8 in_R8;
int8 in_R9;
this[0x18] = (lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
)0x1;
*(long *)(this + 0x20) = *(long *)(this + 0x20) + -1;
lVar1 = *(long *)(this + 0x28);
if (lVar1 == 0) {
lVar1 = *(long *)(this + 0x30);
if (lVar1 == 0) goto LAB_00143056;
plVar2 = this + 0x30;
}
else {
plVar2 = this + 0x28;
}
*(long *)plVar2 = lVar1 + -1;
LAB_00143056:
if (*(int *)(this + 0x14) != -1) {
lVar1 = *(long *)(this + 0x40);
if (*(long *)(this + 0x38) == lVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x2240,
"GGML_ASSERT(%s) failed","!token_string.empty()",in_R8,in_R9,lVar1);
}
*(long *)(this + 0x40) = lVar1 + -1;
}
return;
}
| |
43,725 | maria_rtree_fill_reinsert_list | eloqsql/storage/maria/ma_rt_index.c | static my_bool maria_rtree_fill_reinsert_list(stPageList *ReinsertList,
my_off_t page, int level)
{
DBUG_ENTER("maria_rtree_fill_reinsert_list");
DBUG_PRINT("rtree", ("page: %lu level: %d", (ulong) page, level));
if (ReinsertList->n_pages == ReinsertList->m_pages)
{
ReinsertList->m_pages += REINSERT_BUFFER_INC;
if (!(ReinsertList->pages= (stPageLevel*)my_realloc(PSI_INSTRUMENT_ME, (uchar*)ReinsertList->pages,
ReinsertList->m_pages * sizeof(stPageLevel), MYF(MY_ALLOW_ZERO_PTR))))
goto err;
}
/* save page to ReinsertList */
ReinsertList->pages[ReinsertList->n_pages].offs= page;
ReinsertList->pages[ReinsertList->n_pages].level= level;
ReinsertList->n_pages++;
DBUG_RETURN(0);
err:
DBUG_RETURN(1); /* purecov: inspected */
} | O0 | c | maria_rtree_fill_reinsert_list:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
jmp 0x8fa85
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x8fad4
movq -0x10(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0xa, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
shlq $0x4, %rdx
xorl %edi, %edi
movl $0x40, %ecx
callq 0xf3000
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
jne 0x8fad2
jmp 0x8fb1c
jmp 0x8fad4
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rdx
movl (%rdx), %edx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rdx
movl (%rdx), %edx
shlq $0x4, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
movb $0x0, -0x1(%rbp)
jmp 0x8fb22
jmp 0x8fb1e
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| maria_rtree_fill_reinsert_list:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
jmp short $+2
loc_8FA85:
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_10]
cmp eax, [rcx+4]
jnz short loc_8FAD4
mov rax, [rbp+var_10]
mov ecx, [rax+4]
add ecx, 0Ah
mov [rax+4], ecx
mov rax, [rbp+var_10]
mov rsi, [rax+8]
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov edx, eax
shl rdx, 4
xor edi, edi
mov ecx, 40h ; '@'
call my_realloc
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jnz short loc_8FAD2
jmp short loc_8FB1C
loc_8FAD2:
jmp short $+2
loc_8FAD4:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rdx, [rbp+var_10]
mov edx, [rdx]
shl rdx, 4
add rax, rdx
mov [rax+8], rcx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rdx, [rbp+var_10]
mov edx, [rdx]
shl rdx, 4
add rax, rdx
mov [rax], ecx
mov rax, [rbp+var_10]
mov ecx, [rax]
add ecx, 1
mov [rax], ecx
mov [rbp+var_1], 0
jmp short loc_8FB22
loc_8FB1C:
jmp short $+2
loc_8FB1E:
mov [rbp+var_1], 1
loc_8FB22:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char maria_rtree_fill_reinsert_list(unsigned int *a1, long long a2, int a3)
{
long long v3; // rax
if ( *a1 == a1[1] )
{
a1[1] += 10;
v3 = my_realloc(0LL, *((_QWORD *)a1 + 1), 16LL * a1[1], 64LL);
*((_QWORD *)a1 + 1) = v3;
if ( !v3 )
return 1;
}
*(_QWORD *)(16LL * *a1 + *((_QWORD *)a1 + 1) + 8) = a2;
*(_DWORD *)(16LL * (*a1)++ + *((_QWORD *)a1 + 1)) = a3;
return 0;
}
| maria_rtree_fill_reinsert_list:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
JMP 0x0018fa85
LAB_0018fa85:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x4]
JNZ 0x0018fad4
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x4]
ADD ECX,0xa
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV EDX,EAX
SHL RDX,0x4
XOR EDI,EDI
MOV ECX,0x40
CALL 0x001f3000
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JNZ 0x0018fad2
JMP 0x0018fb1c
LAB_0018fad2:
JMP 0x0018fad4
LAB_0018fad4:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RDX]
SHL RDX,0x4
ADD RAX,RDX
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RDX]
SHL RDX,0x4
ADD RAX,RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
MOV dword ptr [RAX],ECX
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0018fb22
LAB_0018fb1c:
JMP 0x0018fb1e
LAB_0018fb1e:
MOV byte ptr [RBP + -0x1],0x1
LAB_0018fb22:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 maria_rtree_fill_reinsert_list(uint *param_1,int8 param_2,int4 param_3)
{
long lVar1;
if (*param_1 == param_1[1]) {
param_1[1] = param_1[1] + 10;
lVar1 = my_realloc(0,*(int8 *)(param_1 + 2),(ulong)param_1[1] << 4,0x40);
*(long *)(param_1 + 2) = lVar1;
if (lVar1 == 0) {
return 1;
}
}
*(int8 *)(*(long *)(param_1 + 2) + (ulong)*param_1 * 0x10 + 8) = param_2;
*(int4 *)(*(long *)(param_1 + 2) + (ulong)*param_1 * 0x10) = param_3;
*param_1 = *param_1 + 1;
return 0;
}
| |
43,726 | Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>::ParserRefImpl<long, void>(long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.hpp | ParserRefImpl( T& ref, std::string const& hint ):
m_ref( std::make_shared<BoundValueRef<T>>( ref ) ),
m_hint( hint ) {} | O3 | cpp | Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>::ParserRefImpl<long, void>(long&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xab5ff(%rip), %rax # 0x1305e0
addq $0x10, %rax
movq %rax, (%rdi)
movl $0x0, 0x8(%rdi)
movl $0x20, %edi
callq 0x171f0
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0xaba52(%rip), %rcx # 0x130a60
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
leaq 0xaba90(%rip), %rdx # 0x130ab0
addq $0x10, %rdx
movq %rdx, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %rcx, 0x10(%rbx)
movq %rax, 0x18(%rbx)
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
callq 0x251d8
leaq 0x50(%rbx), %rax
movq %rax, 0x40(%rbx)
movq $0x0, 0x48(%rbx)
movb $0x0, 0x50(%rbx)
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x8507a
callq 0x33e7c
movq %r14, %rdi
callq 0x17740
| _ZN5Catch5Clara6Detail13ParserRefImplINS0_3OptEEC2IlvEERT_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
mov r14, rdx
mov r15, rsi
mov rbx, rdi
lea rax, _ZTVN5Catch5Clara6Detail13ParserRefImplINS0_3OptEEE; `vtable for'Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>
add rax, 10h
mov [rdi], rax
mov dword ptr [rdi+8], 0
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN5Catch5Clara6Detail13BoundValueRefIlEESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<Catch::Clara::Detail::BoundValueRef<long>,std::allocator<Catch::Clara::Detail::BoundValueRef<long>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
lea rdx, _ZTVN5Catch5Clara6Detail13BoundValueRefIlEE; `vtable for'Catch::Clara::Detail::BoundValueRef<long>
add rdx, 10h
mov [rax+10h], rdx
mov [rax+18h], r15
mov [rbx+10h], rcx
mov [rbx+18h], rax
lea rdi, [rbx+20h]
lea rax, [rbx+30h]
mov [rbx+20h], rax
mov rsi, [r14]
mov rdx, [r14+8]
add rdx, rsi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rax, [rbx+50h]
mov [rbx+40h], rax
mov qword ptr [rbx+48h], 0
mov byte ptr [rbx+50h], 0
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_8507A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_8507A:
mov rdi, r14
call __Unwind_Resume
| long long Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>::ParserRefImpl<long,void>(
long long a1,
long long a2,
long long a3)
{
_QWORD *v4; // rax
long long result; // rax
*(_QWORD *)a1 = &`vtable for'Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt> + 2;
*(_DWORD *)(a1 + 8) = 0;
v4 = (_QWORD *)operator new(0x20uLL);
v4[1] = 0x100000001LL;
*v4 = &`vtable for'std::_Sp_counted_ptr_inplace<Catch::Clara::Detail::BoundValueRef<long>,std::allocator<Catch::Clara::Detail::BoundValueRef<long>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
v4[2] = &`vtable for'Catch::Clara::Detail::BoundValueRef<long> + 2;
v4[3] = a2;
*(_QWORD *)(a1 + 16) = v4 + 2;
*(_QWORD *)(a1 + 24) = v4;
*(_QWORD *)(a1 + 32) = a1 + 48;
std::string::_M_construct<char *>((_QWORD *)(a1 + 32), *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8));
result = a1 + 80;
*(_QWORD *)(a1 + 64) = a1 + 80;
*(_QWORD *)(a1 + 72) = 0LL;
*(_BYTE *)(a1 + 80) = 0;
return result;
}
| ParserRefImpl<long,void>:
PUSH R15
PUSH R14
PUSH RBX
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
LEA RAX,[0x2305e0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV dword ptr [RDI + 0x8],0x0
MOV EDI,0x20
CALL 0x001171f0
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x230a60]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
LEA RDX,[0x230ab0]
ADD RDX,0x10
MOV qword ptr [RAX + 0x10],RDX
MOV qword ptr [RAX + 0x18],R15
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RBX + 0x18],RAX
LEA RDI,[RBX + 0x20]
LEA RAX,[RBX + 0x30]
MOV qword ptr [RBX + 0x20],RAX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
ADD RDX,RSI
LAB_0018504a:
CALL 0x001251d8
LAB_0018504f:
LEA RAX,[RBX + 0x50]
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x48],0x0
MOV byte ptr [RBX + 0x50],0x0
POP RBX
POP R14
POP R15
RET
|
/* Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>::ParserRefImpl<long, void>(long&,
std::__cxx11::string const&) */
void __thiscall
Catch::Clara::Detail::ParserRefImpl<Catch::Clara::Opt>::ParserRefImpl<long,void>
(ParserRefImpl<Catch::Clara::Opt> *this,long *param_1,string *param_2)
{
int8 *puVar1;
*(int ***)this = &PTR__ParserRefImpl_002305f0;
*(int4 *)(this + 8) = 0;
puVar1 = (int8 *)operator_new(0x20);
puVar1[1] = 0x100000001;
*puVar1 = &PTR___Sp_counted_ptr_inplace_00230a70;
puVar1[2] = &PTR__BoundRef_00230ac0;
puVar1[3] = param_1;
*(int8 **)(this + 0x10) = puVar1 + 2;
*(int8 **)(this + 0x18) = puVar1;
*(ParserRefImpl<Catch::Clara::Opt> **)(this + 0x20) = this + 0x30;
/* try { // try from 0018504a to 0018504e has its CatchHandler @ 00185069 */
std::__cxx11::string::_M_construct<char*>
(this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
*(ParserRefImpl<Catch::Clara::Opt> **)(this + 0x40) = this + 0x50;
*(int8 *)(this + 0x48) = 0;
this[0x50] = (ParserRefImpl<Catch::Clara::Opt>)0x0;
return;
}
| |
43,727 | get_charset_number_internal | eloqsql/mysys/charset.c | static uint
get_charset_number_internal(const char *charset_name, uint cs_flags)
{
CHARSET_INFO **cs;
for (cs= all_charsets;
cs < all_charsets + array_elements(all_charsets);
cs++)
{
if ( cs[0] && cs[0]->cs_name.str && (cs[0]->state & cs_flags) &&
!my_strcasecmp(&my_charset_latin1, cs[0]->cs_name.str, charset_name))
return cs[0]->number;
}
return 0;
} | O0 | c | get_charset_number_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
leaq 0x362a3a(%rip), %rax # 0x392120
movq %rax, -0x20(%rbp)
leaq 0x362a2f(%rip), %rax # 0x392120
addq $0x4000, %rax # imm = 0x4000
cmpq %rax, -0x20(%rbp)
jae 0x2f777
movq -0x20(%rbp), %rax
cmpq $0x0, (%rax)
je 0x2f764
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq $0x0, 0x10(%rax)
je 0x2f764
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl 0xc(%rax), %eax
andl -0x14(%rbp), %eax
cmpl $0x0, %eax
je 0x2f764
leaq 0x250922(%rip), %rax # 0x280050
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x10(%rcx), %rsi
movq -0x10(%rbp), %rdx
leaq 0x250901(%rip), %rdi # 0x280050
callq *%rax
cmpl $0x0, %eax
jne 0x2f764
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x4(%rbp)
jmp 0x2f77e
jmp 0x2f766
movq -0x20(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x20(%rbp)
jmp 0x2f6ea
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| get_charset_number_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
lea rax, all_charsets
mov [rbp+var_20], rax
loc_2F6EA:
lea rax, all_charsets
add rax, 4000h
cmp [rbp+var_20], rax
jnb short loc_2F777
mov rax, [rbp+var_20]
cmp qword ptr [rax], 0
jz short loc_2F764
mov rax, [rbp+var_20]
mov rax, [rax]
cmp qword ptr [rax+10h], 0
jz short loc_2F764
mov rax, [rbp+var_20]
mov rax, [rax]
mov eax, [rax+0Ch]
and eax, [rbp+var_14]
cmp eax, 0
jz short loc_2F764
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rsi, [rcx+10h]
mov rdx, [rbp+var_10]
lea rdi, my_charset_latin1
call rax
cmp eax, 0
jnz short loc_2F764
mov rax, [rbp+var_20]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_4], eax
jmp short loc_2F77E
loc_2F764:
jmp short $+2
loc_2F766:
mov rax, [rbp+var_20]
add rax, 8
mov [rbp+var_20], rax
jmp loc_2F6EA
loc_2F777:
mov [rbp+var_4], 0
loc_2F77E:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long get_charset_number_internal(long long a1, int a2)
{
unsigned int **i; // [rsp+0h] [rbp-20h]
for ( i = (unsigned int **)all_charsets; i < &all_charsets[2048]; ++i )
{
if ( *i
&& *((_QWORD *)*i + 2)
&& (a2 & (*i)[3]) != 0
&& !(*(unsigned int ( **)(void *, _QWORD, long long))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
*((_QWORD *)*i + 2),
a1) )
{
return **i;
}
}
return 0;
}
| get_charset_number_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
LEA RAX,[0x492120]
MOV qword ptr [RBP + -0x20],RAX
LAB_0012f6ea:
LEA RAX,[0x492120]
ADD RAX,0x4000
CMP qword ptr [RBP + -0x20],RAX
JNC 0x0012f777
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],0x0
JZ 0x0012f764
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x0012f764
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0xc]
AND EAX,dword ptr [RBP + -0x14]
CMP EAX,0x0
JZ 0x0012f764
LEA RAX,[0x380050]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RSI,qword ptr [RCX + 0x10]
MOV RDX,qword ptr [RBP + -0x10]
LEA RDI,[0x380050]
CALL RAX
CMP EAX,0x0
JNZ 0x0012f764
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0012f77e
LAB_0012f764:
JMP 0x0012f766
LAB_0012f766:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0012f6ea
LAB_0012f777:
MOV dword ptr [RBP + -0x4],0x0
LAB_0012f77e:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int4 get_charset_number_internal(int8 param_1,uint param_2)
{
int iVar1;
long *local_28;
local_28 = &all_charsets;
while( true ) {
if ((long *)0x49611f < local_28) {
return 0;
}
if ((((*local_28 != 0) && (*(long *)(*local_28 + 0x10) != 0)) &&
((*(uint *)(*local_28 + 0xc) & param_2) != 0)) &&
(iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00380110 + 0x40))
(&my_charset_latin1,*(int8 *)(*local_28 + 0x10),param_1), iVar1 == 0
)) break;
local_28 = local_28 + 1;
}
return *(int4 *)*local_28;
}
| |
43,728 | my_coll_parser_scan_shift_sequence | eloqsql/strings/ctype-uca.c | static int
my_coll_parser_scan_shift_sequence(MY_COLL_RULE_PARSER *p)
{
MY_COLL_RULE before_extend;
memset(&p->rule.curr, 0, sizeof(p->rule.curr));
/* Scan single shift character or contraction */
if (!my_coll_parser_scan_character_list(p, p->rule.curr,
MY_UCA_MAX_CONTRACTION,
"Contraction"))
return 0;
before_extend= p->rule; /* Remember the part before "/" */
/* Append the part after "/" as expansion */
if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_EXTEND)
{
my_coll_parser_scan(p);
if (!my_coll_parser_scan_character_list(p, p->rule.base,
MY_UCA_MAX_EXPANSION,
"Expansion"))
return 0;
}
else if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_CONTEXT)
{
/*
We support 2-character long context sequences only:
one character is the previous context, plus the current character.
It's OK as Unicode's CLDR does not have longer examples.
*/
my_coll_parser_scan(p);
p->rule.with_context= TRUE;
if (!my_coll_parser_scan_character_list(p, p->rule.curr + 1, 1, "context"))
return 0;
}
/* Add rule to the rule list */
if (my_coll_rules_add(p->rules, &p->rule))
return 0;
p->rule= before_extend; /* Restore to the state before "/" */
return 1;
} | O3 | c | my_coll_parser_scan_shift_sequence:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %r15
leaq 0xa0(%rdi), %rsi
xorps %xmm0, %xmm0
movups %xmm0, 0xc0(%rdi)
movups %xmm0, 0xb0(%rdi)
movups %xmm0, 0xa0(%rdi)
leaq 0x20003(%rip), %rcx # 0x64d58
movl $0x6, %edx
callq 0x44ead
xorl %r14d, %r14d
testl %eax, %eax
je 0x44e9c
leaq 0x50(%r15), %rbx
leaq -0xb8(%rbp), %rdi
movl $0xa0, %edx
movq %rbx, %rsi
callq 0x24230
movl (%r15), %eax
cmpl $0x9, %eax
je 0x44dcb
cmpl $0x8, %eax
jne 0x44e1a
leaq 0x28(%r15), %rdi
movq 0x48(%r15), %rax
movq %rax, 0x20(%r15)
movups 0x28(%r15), %xmm0
movups 0x38(%r15), %xmm1
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
callq 0x449b3
leaq 0x1fdce(%rip), %rcx # 0x64b8c
movl $0xa, %edx
movq %r15, %rdi
movq %rbx, %rsi
jmp 0x44e0d
leaq 0x28(%r15), %rdi
movq 0x48(%r15), %rax
movq %rax, 0x20(%r15)
movups 0x28(%r15), %xmm0
movups 0x38(%r15), %xmm1
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
callq 0x449b3
movb $0x1, 0xe8(%r15)
leaq 0xa8(%r15), %rsi
leaq 0x20a91(%rip), %rcx # 0x65896
movl $0x1, %edx
movq %r15, %rdi
callq 0x44ead
testl %eax, %eax
je 0x44e9c
movq 0xf0(%r15), %r15
movq 0x10(%r15), %rcx
cmpq 0x18(%r15), %rcx
jae 0x44e31
movq 0x20(%r15), %rax
jmp 0x44e62
movq 0x20(%r15), %rdi
movq 0x28(%r15), %rax
movq 0x90(%rax), %rax
addq $0x81, %rcx
movq %rcx, 0x18(%r15)
shlq $0x5, %rcx
leaq (%rcx,%rcx,4), %rsi
callq *%rax
movq %rax, 0x20(%r15)
testq %rax, %rax
je 0x44e9c
movq 0x10(%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%r15)
leaq (%rcx,%rcx,4), %rdi
shlq $0x5, %rdi
addq %rax, %rdi
movl $0xa0, %edx
movq %rbx, %rsi
callq 0x24230
leaq -0xb8(%rbp), %rsi
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x24230
movl $0x1, %r14d
movl %r14d, %eax
addq $0xa8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| my_coll_parser_scan_shift_sequence:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0A8h
mov r15, rdi
lea rsi, [rdi+0A0h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+0C0h], xmm0
movups xmmword ptr [rdi+0B0h], xmm0
movups xmmword ptr [rdi+0A0h], xmm0
lea rcx, aContraction; "Contraction"
mov edx, 6
call my_coll_parser_scan_character_list
xor r14d, r14d
test eax, eax
jz loc_44E9C
lea rbx, [r15+50h]
lea rdi, [rbp+var_B8]
mov edx, 0A0h
mov rsi, rbx
call _memcpy
mov eax, [r15]
cmp eax, 9
jz short loc_44DCB
cmp eax, 8
jnz loc_44E1A
lea rdi, [r15+28h]
mov rax, [r15+48h]
mov [r15+20h], rax
movups xmm0, xmmword ptr [r15+28h]
movups xmm1, xmmword ptr [r15+38h]
movups xmmword ptr [r15+10h], xmm1
movups xmmword ptr [r15], xmm0
call my_coll_lexem_next
lea rcx, aExpansion; "Expansion"
mov edx, 0Ah
mov rdi, r15
mov rsi, rbx
jmp short loc_44E0D
loc_44DCB:
lea rdi, [r15+28h]
mov rax, [r15+48h]
mov [r15+20h], rax
movups xmm0, xmmword ptr [r15+28h]
movups xmm1, xmmword ptr [r15+38h]
movups xmmword ptr [r15+10h], xmm1
movups xmmword ptr [r15], xmm0
call my_coll_lexem_next
mov byte ptr [r15+0E8h], 1
lea rsi, [r15+0A8h]
lea rcx, aCharsetsCharse_52+23h; "context"
mov edx, 1
mov rdi, r15
loc_44E0D:
call my_coll_parser_scan_character_list
test eax, eax
jz loc_44E9C
loc_44E1A:
mov r15, [r15+0F0h]
mov rcx, [r15+10h]
cmp rcx, [r15+18h]
jnb short loc_44E31
mov rax, [r15+20h]
jmp short loc_44E62
loc_44E31:
mov rdi, [r15+20h]
mov rax, [r15+28h]
mov rax, [rax+90h]
add rcx, 81h
mov [r15+18h], rcx
shl rcx, 5
lea rsi, [rcx+rcx*4]
call rax
mov [r15+20h], rax
test rax, rax
jz short loc_44E9C
mov rcx, [r15+10h]
loc_44E62:
lea rdx, [rcx+1]
mov [r15+10h], rdx
lea rdi, [rcx+rcx*4]
shl rdi, 5
add rdi, rax
mov edx, 0A0h
mov rsi, rbx
call _memcpy
lea rsi, [rbp+var_B8]
mov edx, 0A0h
mov rdi, rbx
call _memcpy
mov r14d, 1
loc_44E9C:
mov eax, r14d
add rsp, 0A8h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long my_coll_parser_scan_shift_sequence(long long a1)
{
unsigned int v1; // r14d
long long v2; // rbx
__int128 v3; // xmm0
char *v4; // rcx
long long v5; // rdx
long long v6; // rsi
__int128 v7; // xmm0
_QWORD *v8; // r15
unsigned long long v9; // rcx
long long v10; // rax
long long v11; // rdi
long long ( *v12)(long long, long long); // rax
unsigned long long v13; // rcx
_BYTE v15[184]; // [rsp+8h] [rbp-B8h] BYREF
*(_OWORD *)(a1 + 192) = 0LL;
*(_OWORD *)(a1 + 176) = 0LL;
*(_OWORD *)(a1 + 160) = 0LL;
v1 = 0;
if ( !(unsigned int)my_coll_parser_scan_character_list(a1, a1 + 160, 6LL, "Contraction") )
return v1;
v2 = a1 + 80;
memcpy(v15, a1 + 80, 160LL);
if ( *(_DWORD *)a1 == 9 )
{
*(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72);
v7 = *(_OWORD *)(a1 + 40);
*(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56);
*(_OWORD *)a1 = v7;
my_coll_lexem_next(a1 + 40);
*(_BYTE *)(a1 + 232) = 1;
v6 = a1 + 168;
v4 = "context";
v5 = 1LL;
LABEL_6:
if ( !(unsigned int)my_coll_parser_scan_character_list(a1, v6, v5, v4) )
return v1;
goto LABEL_7;
}
if ( *(_DWORD *)a1 == 8 )
{
*(_QWORD *)(a1 + 32) = *(_QWORD *)(a1 + 72);
v3 = *(_OWORD *)(a1 + 40);
*(_OWORD *)(a1 + 16) = *(_OWORD *)(a1 + 56);
*(_OWORD *)a1 = v3;
my_coll_lexem_next(a1 + 40);
v4 = "Expansion";
v5 = 10LL;
v6 = a1 + 80;
goto LABEL_6;
}
LABEL_7:
v8 = *(_QWORD **)(a1 + 240);
v9 = v8[2];
if ( v9 < v8[3] )
{
v10 = v8[4];
LABEL_11:
v8[2] = v9 + 1;
memcpy(v10 + 160 * v9, v2, 160LL);
memcpy(v2, v15, 160LL);
return 1;
}
v11 = v8[4];
v12 = *(long long ( **)(long long, long long))(v8[5] + 144LL);
v13 = v9 + 129;
v8[3] = v13;
v10 = v12(v11, 160 * v13);
v8[4] = v10;
if ( v10 )
{
v9 = v8[2];
goto LABEL_11;
}
return v1;
}
| my_coll_parser_scan_shift_sequence:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xa8
MOV R15,RDI
LEA RSI,[RDI + 0xa0]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0xc0],XMM0
MOVUPS xmmword ptr [RDI + 0xb0],XMM0
MOVUPS xmmword ptr [RDI + 0xa0],XMM0
LEA RCX,[0x164d58]
MOV EDX,0x6
CALL 0x00144ead
XOR R14D,R14D
TEST EAX,EAX
JZ 0x00144e9c
LEA RBX,[R15 + 0x50]
LEA RDI,[RBP + -0xb8]
MOV EDX,0xa0
MOV RSI,RBX
CALL 0x00124230
MOV EAX,dword ptr [R15]
CMP EAX,0x9
JZ 0x00144dcb
CMP EAX,0x8
JNZ 0x00144e1a
LEA RDI,[R15 + 0x28]
MOV RAX,qword ptr [R15 + 0x48]
MOV qword ptr [R15 + 0x20],RAX
MOVUPS XMM0,xmmword ptr [R15 + 0x28]
MOVUPS XMM1,xmmword ptr [R15 + 0x38]
MOVUPS xmmword ptr [R15 + 0x10],XMM1
MOVUPS xmmword ptr [R15],XMM0
CALL 0x001449b3
LEA RCX,[0x164b8c]
MOV EDX,0xa
MOV RDI,R15
MOV RSI,RBX
JMP 0x00144e0d
LAB_00144dcb:
LEA RDI,[R15 + 0x28]
MOV RAX,qword ptr [R15 + 0x48]
MOV qword ptr [R15 + 0x20],RAX
MOVUPS XMM0,xmmword ptr [R15 + 0x28]
MOVUPS XMM1,xmmword ptr [R15 + 0x38]
MOVUPS xmmword ptr [R15 + 0x10],XMM1
MOVUPS xmmword ptr [R15],XMM0
CALL 0x001449b3
MOV byte ptr [R15 + 0xe8],0x1
LEA RSI,[R15 + 0xa8]
LEA RCX,[0x165896]
MOV EDX,0x1
MOV RDI,R15
LAB_00144e0d:
CALL 0x00144ead
TEST EAX,EAX
JZ 0x00144e9c
LAB_00144e1a:
MOV R15,qword ptr [R15 + 0xf0]
MOV RCX,qword ptr [R15 + 0x10]
CMP RCX,qword ptr [R15 + 0x18]
JNC 0x00144e31
MOV RAX,qword ptr [R15 + 0x20]
JMP 0x00144e62
LAB_00144e31:
MOV RDI,qword ptr [R15 + 0x20]
MOV RAX,qword ptr [R15 + 0x28]
MOV RAX,qword ptr [RAX + 0x90]
ADD RCX,0x81
MOV qword ptr [R15 + 0x18],RCX
SHL RCX,0x5
LEA RSI,[RCX + RCX*0x4]
CALL RAX
MOV qword ptr [R15 + 0x20],RAX
TEST RAX,RAX
JZ 0x00144e9c
MOV RCX,qword ptr [R15 + 0x10]
LAB_00144e62:
LEA RDX,[RCX + 0x1]
MOV qword ptr [R15 + 0x10],RDX
LEA RDI,[RCX + RCX*0x4]
SHL RDI,0x5
ADD RDI,RAX
MOV EDX,0xa0
MOV RSI,RBX
CALL 0x00124230
LEA RSI,[RBP + -0xb8]
MOV EDX,0xa0
MOV RDI,RBX
CALL 0x00124230
MOV R14D,0x1
LAB_00144e9c:
MOV EAX,R14D
ADD RSP,0xa8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 my_coll_parser_scan_shift_sequence(int *param_1)
{
int *__src;
long lVar1;
code *pcVar2;
int iVar3;
long lVar4;
char *pcVar5;
ulong uVar6;
int8 uVar7;
int *piVar8;
int1 local_c0 [160];
param_1[0x30] = 0;
param_1[0x31] = 0;
param_1[0x32] = 0;
param_1[0x33] = 0;
param_1[0x2c] = 0;
param_1[0x2d] = 0;
param_1[0x2e] = 0;
param_1[0x2f] = 0;
param_1[0x28] = 0;
param_1[0x29] = 0;
param_1[0x2a] = 0;
param_1[0x2b] = 0;
iVar3 = my_coll_parser_scan_character_list(param_1,param_1 + 0x28,6,"Contraction");
if (iVar3 == 0) {
return 0;
}
__src = param_1 + 0x14;
memcpy(local_c0,__src,0xa0);
if (*param_1 == 9) {
*(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x12);
param_1[4] = param_1[0xe];
param_1[5] = param_1[0xf];
param_1[6] = param_1[0x10];
param_1[7] = param_1[0x11];
*param_1 = param_1[10];
param_1[1] = param_1[0xb];
param_1[2] = param_1[0xc];
param_1[3] = param_1[0xd];
my_coll_lexem_next(param_1 + 10);
*(int1 *)(param_1 + 0x3a) = 1;
piVar8 = param_1 + 0x2a;
pcVar5 = "context";
uVar7 = 1;
}
else {
if (*param_1 != 8) goto LAB_00144e1a;
*(int8 *)(param_1 + 8) = *(int8 *)(param_1 + 0x12);
param_1[4] = param_1[0xe];
param_1[5] = param_1[0xf];
param_1[6] = param_1[0x10];
param_1[7] = param_1[0x11];
*param_1 = param_1[10];
param_1[1] = param_1[0xb];
param_1[2] = param_1[0xc];
param_1[3] = param_1[0xd];
my_coll_lexem_next(param_1 + 10);
pcVar5 = "Expansion";
uVar7 = 10;
piVar8 = __src;
}
iVar3 = my_coll_parser_scan_character_list(param_1,piVar8,uVar7,pcVar5);
if (iVar3 == 0) {
return 0;
}
LAB_00144e1a:
lVar1 = *(long *)(param_1 + 0x3c);
uVar6 = *(ulong *)(lVar1 + 0x10);
if (uVar6 < *(ulong *)(lVar1 + 0x18)) {
lVar4 = *(long *)(lVar1 + 0x20);
}
else {
pcVar2 = *(code **)(*(long *)(lVar1 + 0x28) + 0x90);
*(ulong *)(lVar1 + 0x18) = uVar6 + 0x81;
lVar4 = (*pcVar2)(*(int8 *)(lVar1 + 0x20),(uVar6 + 0x81) * 0xa0);
*(long *)(lVar1 + 0x20) = lVar4;
if (lVar4 == 0) {
return 0;
}
uVar6 = *(ulong *)(lVar1 + 0x10);
}
*(ulong *)(lVar1 + 0x10) = uVar6 + 1;
memcpy((void *)(uVar6 * 0xa0 + lVar4),__src,0xa0);
memcpy(__src,local_c0,0xa0);
return 1;
}
| |
43,729 | cpu_get_num_physical_cores() | monkey531[P]llama/common/common.cpp | std::string string_from(bool value) {
return value ? "true" : "false";
} | O3 | cpp | cpu_get_num_physical_cores():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp # imm = 0x2A8
leaq 0x98(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0x38(%rsp), %rbp
leaq 0x18(%rsp), %r13
xorl %r14d, %r14d
leaq 0x48(%rsp), %r12
leaq 0xa0(%rsp), %rbx
movl $0xd1b71759, %esi # imm = 0xD1B71759
movl $0x1, %eax
cmpl $0xa, %r14d
jb 0x953a5
movl $0x4, %eax
movl %r14d, %ecx
cmpl $0x63, %ecx
jbe 0x9539e
cmpl $0x3e7, %ecx # imm = 0x3E7
jbe 0x953a3
cmpl $0x2710, %ecx # imm = 0x2710
jb 0x953a5
movl %ecx, %edx
imulq %rsi, %rdx
shrq $0x2d, %rdx
addl $0x4, %eax
cmpl $0x1869f, %ecx # imm = 0x1869F
movl %edx, %ecx
ja 0x9536d
addl $-0x3, %eax
jmp 0x953a5
addl $-0x2, %eax
jmp 0x953a5
decl %eax
movq %rbp, %r15
movl %eax, %esi
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %r12, %rbp
movq %r12, %rdi
xorl %edx, %edx
callq 0x1de40
movq 0x48(%rsp), %rdi
movl 0x50(%rsp), %esi
movl %r14d, %edx
callq 0x44de6
movl $0x1b, %r8d
movq %rbp, %r12
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x7ecd3(%rip), %rcx # 0x1140bc
callq 0x1ddf0
movq %r15, %rbp
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x95414
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x9541b
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x7ec99(%rip), %rsi # 0x1140d8
callq 0x1e870
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x95467
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9546f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x1e420
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x954b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x954c7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x954e3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x118(%rsp), %rdi
callq 0x1d230
testb %al, %al
je 0x9558e
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1db90
movsbl %al, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1e7a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x9555b
leaq 0x68(%rsp), %rdi
movq %rdi, 0x28(%rsp)
leaq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0xdccdc
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x95572
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq %rbx, %rdi
callq 0x1d270
incl %r14d
cmpl $-0x1, %r14d
movl $0xd1b71759, %esi # imm = 0xD1B71759
jne 0x9535a
jmp 0x9559b
leaq 0xa0(%rsp), %rdi
callq 0x1d270
movq 0x80(%rsp), %rbx
testq %rbx, %rbx
jne 0x955c1
callq 0x1e0f0
cmpl $0x5, %eax
setae %cl
movl %eax, %edx
shrl %cl, %edx
testl %eax, %eax
movl $0x4, %ebx
cmovnel %edx, %ebx
leaq 0x68(%rsp), %rdi
callq 0xa2bf0
movl %ebx, %eax
addq $0x2a8, %rsp # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x95603
movq %rax, %rbx
jmp 0x95664
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x95603
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x9561f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0x9561f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x95664
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0x95664
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x95657
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0xa0(%rsp), %rdi
callq 0x1d270
leaq 0x68(%rsp), %rdi
callq 0xa2bf0
movq %rbx, %rdi
callq 0x1e660
| _Z26cpu_get_num_physical_coresv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 2A8h
lea rax, [rsp+2D8h+var_240]
mov [rax-30h], rax
mov qword ptr [rax-28h], 1
xorps xmm0, xmm0
movups xmmword ptr [rax-20h], xmm0
mov dword ptr [rax-10h], 3F800000h
movups xmmword ptr [rax-8], xmm0
lea rbp, [rsp+2D8h+var_2A0]
lea r13, [rsp+2D8h+var_2C0]
xor r14d, r14d
lea r12, [rsp+2D8h+var_290]
lea rbx, [rsp+2D8h+var_238]
mov esi, 0D1B71759h
loc_9535A:
mov eax, 1
cmp r14d, 0Ah
jb short loc_953A5
mov eax, 4
mov ecx, r14d
loc_9536D:
cmp ecx, 63h ; 'c'
jbe short loc_9539E
cmp ecx, 3E7h
jbe short loc_953A3
cmp ecx, 2710h
jb short loc_953A5
mov edx, ecx
imul rdx, rsi
shr rdx, 2Dh
add eax, 4
cmp ecx, 1869Fh
mov ecx, edx
ja short loc_9536D
add eax, 0FFFFFFFDh
jmp short loc_953A5
loc_9539E:
add eax, 0FFFFFFFEh
jmp short loc_953A5
loc_953A3:
dec eax
loc_953A5:
mov r15, rbp
mov esi, eax
lea rax, [rsp+2D8h+var_280]
mov [rsp+2D8h+var_290], rax
mov rbp, r12
mov rdi, r12
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov rdi, [rsp+2D8h+var_290]
mov esi, [rsp+2D8h+var_288]
mov edx, r14d
call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint)
mov r8d, 1Bh
mov r12, rbp
mov rdi, rbp
xor esi, esi
xor edx, edx
lea rcx, aSysDevicesSyst; "/sys/devices/system/cpu/cpu"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
mov rbp, r15
mov [rsp+2D8h+var_2B0], r15
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_95414
mov [rsp+2D8h+var_2B0], rdx
mov rdx, [rcx]
mov [rsp+2D8h+var_2A0], rdx
jmp short loc_9541B
loc_95414:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rbp+0], xmm0
loc_9541B:
mov rdx, [rax+8]
mov [rsp+2D8h+var_2A8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rdi, [rsp+2D8h+var_2B0]
lea rsi, aTopologyThread; "/topology/thread_siblings"
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov [rsp+2D8h+var_2D0], r13
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_95467
mov [rsp+2D8h+var_2D0], rdx
mov rdx, [rcx]
mov [rsp+2D8h+var_2C0], rdx
jmp short loc_9546F
loc_95467:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r13+0], xmm0
loc_9546F:
mov rdx, [rax+8]
mov [rsp+2D8h+var_2C8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, rbx
lea rsi, [rsp+2D8h+var_2D0]
mov edx, 8
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1ERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode; std::ifstream::basic_ifstream(std::string const&,std::_Ios_Openmode)
mov rdi, [rsp+2D8h+var_2D0]; void *
cmp rdi, r13
jz short loc_954B0
mov rsi, [rsp+2D8h+var_2C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_954B0:
mov rdi, [rsp+2D8h+var_2B0]; void *
cmp rdi, rbp
jz short loc_954C7
mov rsi, [rsp+2D8h+var_2A0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_954C7:
mov rdi, [rsp+2D8h+var_290]; void *
lea rax, [rsp+2D8h+var_280]
cmp rdi, rax
jz short loc_954E3
mov rsi, [rsp+2D8h+var_280]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_954E3:
lea rdi, [rsp+2D8h+var_1C0]
call __ZNKSt12__basic_fileIcE7is_openEv; std::__basic_file<char>::is_open(void)
test al, al
jz loc_9558E
mov [rsp+2D8h+var_2D0], r13
mov [rsp+2D8h+var_2C8], 0
mov byte ptr [rsp+2D8h+var_2C0], 0
mov rax, [rsp+2D8h+var_238]
mov rdi, [rax-18h]
add rdi, rbx
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx edx, al
mov rdi, rbx
lea rsi, [rsp+2D8h+var_2D0]
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_9555B
lea rdi, [rsp+2D8h+var_270]
mov [rsp+2D8h+var_2B0], rdi
lea rsi, [rsp+2D8h+var_2D0]
lea rdx, [rsp+2D8h+var_2B0]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEE9_M_insertIRKS5_NS7_10_AllocNodeISaINS7_10_Hash_nodeIS5_Lb1EEEEEEEESt4pairINS7_14_Node_iteratorIS5_Lb1ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>(std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>> const&,std::integral_constant<bool,true>)
loc_9555B:
mov rdi, [rsp+2D8h+var_2D0]; void *
cmp rdi, r13
jz short loc_95572
mov rsi, [rsp+2D8h+var_2C0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95572:
mov rdi, rbx
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
inc r14d
cmp r14d, 0FFFFFFFFh
mov esi, 0D1B71759h
jnz loc_9535A
jmp short loc_9559B
loc_9558E:
lea rdi, [rsp+2D8h+var_238]; this
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
loc_9559B:
mov rbx, [rsp+2D8h+var_258]
test rbx, rbx
jnz short loc_955C1
call __ZNSt6thread20hardware_concurrencyEv; std::thread::hardware_concurrency(void)
cmp eax, 5
setnb cl
mov edx, eax
shr edx, cl
test eax, eax
mov ebx, 4
cmovnz ebx, edx
loc_955C1:
lea rdi, [rsp+2D8h+var_270]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov eax, ebx
add rsp, 2A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
jmp short loc_95603
mov rbx, rax
jmp short loc_95664
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_95603
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95603:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r15
jz short loc_9561F
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9561F
mov rbx, rax
loc_9561F:
mov rdi, [rsp+arg_40]; void *
lea rax, [rsp+arg_50]
cmp rdi, rax
jz short loc_95664
mov rsi, [rsp+arg_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_95664
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_95657
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_95657:
lea rdi, [rsp+arg_98]
call __ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev; std::ifstream::~ifstream()
loc_95664:
lea rdi, [rsp+arg_60]
call _ZNSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_SaIS5_ENSt8__detail9_IdentityESt8equal_toIS5_ESt4hashIS5_ENS7_18_Mod_range_hashingENS7_20_Default_ranged_hashENS7_20_Prime_rehash_policyENS7_17_Hashtable_traitsILb1ELb1ELb1EEEED2Ev; std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable()
mov rdi, rbx
call __Unwind_Resume
| long long cpu_get_num_physical_cores(void)
{
unsigned int v0; // r14d
unsigned int v1; // eax
unsigned int v2; // ecx
bool v3; // cc
long long v4; // rax
__int128 *v5; // rcx
long long v6; // rax
__int128 *v7; // rcx
long long v8; // rsi
char v9; // al
_QWORD *v10; // rax
int v11; // r8d
int v12; // r9d
long long v13; // rcx
unsigned int v14; // ebx
unsigned int v15; // eax
char v17; // [rsp+0h] [rbp-2D8h]
void *v18; // [rsp+8h] [rbp-2D0h] BYREF
long long v19; // [rsp+10h] [rbp-2C8h]
__int128 v20; // [rsp+18h] [rbp-2C0h] BYREF
void *v21[2]; // [rsp+28h] [rbp-2B0h] BYREF
__int128 v22; // [rsp+38h] [rbp-2A0h] BYREF
void *v23; // [rsp+48h] [rbp-290h] BYREF
int v24; // [rsp+50h] [rbp-288h]
_QWORD v25[2]; // [rsp+58h] [rbp-280h] BYREF
_QWORD v26[2]; // [rsp+68h] [rbp-270h] BYREF
__int128 v27; // [rsp+78h] [rbp-260h]
int v28; // [rsp+88h] [rbp-250h]
__int128 v29; // [rsp+90h] [rbp-248h] BYREF
_QWORD v30[15]; // [rsp+A0h] [rbp-238h] BYREF
_BYTE v31[448]; // [rsp+118h] [rbp-1C0h] BYREF
v26[0] = (char *)&v29 + 8;
v26[1] = 1LL;
v27 = 0LL;
v28 = 1065353216;
v29 = 0LL;
v0 = 0;
while ( 1 )
{
v1 = 1;
if ( v0 >= 0xA )
{
v1 = 4;
v2 = v0;
while ( 1 )
{
if ( v2 <= 0x63 )
{
v1 -= 2;
goto LABEL_11;
}
if ( v2 <= 0x3E7 )
break;
if ( v2 < 0x2710 )
goto LABEL_11;
v1 += 4;
v3 = v2 <= 0x1869F;
v2 /= 0x2710u;
if ( v3 )
{
v1 -= 3;
goto LABEL_11;
}
}
--v1;
}
LABEL_11:
v23 = v25;
std::string::_M_construct(&v23, v1, 0LL);
std::__detail::__to_chars_10_impl<unsigned int>((char *)v23, v24, v0);
v4 = std::string::replace(&v23, 0LL, 0LL, "/sys/devices/system/cpu/cpu", 27LL);
v21[0] = &v22;
v5 = (__int128 *)(v4 + 16);
if ( *(_QWORD *)v4 == v4 + 16 )
{
v22 = *v5;
}
else
{
v21[0] = *(void **)v4;
*(_QWORD *)&v22 = *(_QWORD *)v5;
}
v21[1] = *(void **)(v4 + 8);
*(_QWORD *)v4 = v5;
*(_QWORD *)(v4 + 8) = 0LL;
*(_BYTE *)(v4 + 16) = 0;
v6 = std::string::append(v21, "/topology/thread_siblings");
v18 = &v20;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v20 = *v7;
}
else
{
v18 = *(void **)v6;
*(_QWORD *)&v20 = *(_QWORD *)v7;
}
v19 = *(_QWORD *)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
v8 = (long long)&v18;
std::ifstream::basic_ifstream(v30, &v18, 8LL);
if ( v18 != &v20 )
{
v8 = v20 + 1;
operator delete(v18, v20 + 1);
}
if ( v21[0] != &v22 )
{
v8 = v22 + 1;
operator delete(v21[0], v22 + 1);
}
if ( v23 != v25 )
{
v8 = v25[0] + 1LL;
operator delete(v23, v25[0] + 1LL);
}
if ( !(unsigned __int8)std::__basic_file<char>::is_open(v31) )
break;
v18 = &v20;
v19 = 0LL;
LOBYTE(v20) = 0;
v9 = std::ios::widen((char *)v30 + *(_QWORD *)(v30[0] - 24LL), 10LL);
v10 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v30, &v18, (unsigned int)v9);
v13 = *(_QWORD *)(*v10 - 24LL);
if ( (*((_BYTE *)v10 + v13 + 32) & 5) == 0 )
{
v21[0] = v26;
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::_M_insert<std::string const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::string,true>>>>(
(unsigned int)v26,
(unsigned int)&v18,
(unsigned int)v21,
v13,
v11,
v12,
v17);
}
if ( v18 != &v20 )
operator delete(v18, v20 + 1);
std::ifstream::~ifstream(v30);
++v0;
v8 = 3518437209LL;
if ( v0 == -1 )
goto LABEL_31;
}
std::ifstream::~ifstream(v30);
LABEL_31:
v14 = DWORD2(v27);
if ( !*((_QWORD *)&v27 + 1) )
{
v15 = std::thread::hardware_concurrency((std::thread *)v30);
v14 = 4;
if ( v15 )
v14 = v15 >> (v15 >= 5);
}
std::_Hashtable<std::string,std::string,std::allocator<std::string>,std::__detail::_Identity,std::equal_to<std::string>,std::hash<std::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>::~_Hashtable(
v26,
v8);
return v14;
}
| cpu_get_num_physical_cores:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x2a8
LEA RAX,[RSP + 0x98]
MOV qword ptr [RAX + -0x30],RAX
MOV qword ptr [RAX + -0x28],0x1
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + -0x20],XMM0
MOV dword ptr [RAX + -0x10],0x3f800000
MOVUPS xmmword ptr [RAX + -0x8],XMM0
LEA RBP,[RSP + 0x38]
LEA R13,[RSP + 0x18]
XOR R14D,R14D
LEA R12,[RSP + 0x48]
LEA RBX,[RSP + 0xa0]
MOV ESI,0xd1b71759
LAB_0019535a:
MOV EAX,0x1
CMP R14D,0xa
JC 0x001953a5
MOV EAX,0x4
MOV ECX,R14D
LAB_0019536d:
CMP ECX,0x63
JBE 0x0019539e
CMP ECX,0x3e7
JBE 0x001953a3
CMP ECX,0x2710
JC 0x001953a5
MOV EDX,ECX
IMUL RDX,RSI
SHR RDX,0x2d
ADD EAX,0x4
CMP ECX,0x1869f
MOV ECX,EDX
JA 0x0019536d
ADD EAX,-0x3
JMP 0x001953a5
LAB_0019539e:
ADD EAX,-0x2
JMP 0x001953a5
LAB_001953a3:
DEC EAX
LAB_001953a5:
MOV R15,RBP
MOV ESI,EAX
LEA RAX,[RSP + 0x58]
MOV qword ptr [RSP + 0x48],RAX
LAB_001953b4:
MOV RBP,R12
MOV RDI,R12
XOR EDX,EDX
CALL 0x0011de40
MOV RDI,qword ptr [RSP + 0x48]
MOV ESI,dword ptr [RSP + 0x50]
MOV EDX,R14D
CALL 0x00144de6
LAB_001953d2:
MOV R8D,0x1b
MOV R12,RBP
MOV RDI,RBP
XOR ESI,ESI
XOR EDX,EDX
LEA RCX,[0x2140bc]
CALL 0x0011ddf0
MOV RBP,R15
MOV qword ptr [RSP + 0x28],R15
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00195414
MOV qword ptr [RSP + 0x28],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x38],RDX
JMP 0x0019541b
LAB_00195414:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RBP],XMM0
LAB_0019541b:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00195433:
LEA RDI,[RSP + 0x28]
LEA RSI,[0x2140d8]
CALL 0x0011e870
MOV qword ptr [RSP + 0x8],R13
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x00195467
MOV qword ptr [RSP + 0x8],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x18],RDX
JMP 0x0019546f
LAB_00195467:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R13],XMM0
LAB_0019546f:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LAB_00195487:
MOV RDI,RBX
LEA RSI,[RSP + 0x8]
MOV EDX,0x8
CALL 0x0011e420
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x001954b0
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011dc50
LAB_001954b0:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,RBP
JZ 0x001954c7
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011dc50
LAB_001954c7:
MOV RDI,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x58]
CMP RDI,RAX
JZ 0x001954e3
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011dc50
LAB_001954e3:
LEA RDI,[RSP + 0x118]
CALL 0x0011d230
TEST AL,AL
JZ 0x0019558e
MOV qword ptr [RSP + 0x8],R13
MOV qword ptr [RSP + 0x10],0x0
MOV byte ptr [RSP + 0x18],0x0
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
LAB_0019551a:
MOV ESI,0xa
CALL 0x0011db90
MOVSX EDX,AL
MOV RDI,RBX
LEA RSI,[RSP + 0x8]
CALL 0x0011e7a0
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
TEST byte ptr [RAX + RCX*0x1 + 0x20],0x5
JNZ 0x0019555b
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x28],RDI
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x001dccdc
LAB_0019555b:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x00195572
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011dc50
LAB_00195572:
MOV RDI,RBX
CALL 0x0011d270
INC R14D
CMP R14D,-0x1
MOV ESI,0xd1b71759
JNZ 0x0019535a
JMP 0x0019559b
LAB_0019558e:
LEA RDI,[RSP + 0xa0]
CALL 0x0011d270
LAB_0019559b:
MOV RBX,qword ptr [RSP + 0x80]
TEST RBX,RBX
JNZ 0x001955c1
CALL 0x0011e0f0
CMP EAX,0x5
SETNC CL
MOV EDX,EAX
SHR EDX,CL
TEST EAX,EAX
MOV EBX,0x4
CMOVNZ EBX,EDX
LAB_001955c1:
LEA RDI,[RSP + 0x68]
CALL 0x001a2bf0
MOV EAX,EBX
ADD RSP,0x2a8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* cpu_get_num_physical_cores() */
ulong cpu_get_num_physical_cores(void)
{
char cVar1;
char cVar2;
long *plVar3;
istream *piVar4;
uint uVar5;
int8 **ppuVar6;
ulong *puVar7;
ulong uVar8;
uint uVar9;
ulong *local_2d0;
long local_2c8;
ulong local_2c0;
int4 uStack_2b8;
int4 uStack_2b4;
int8 **local_2b0;
long local_2a8;
int8 *local_2a0;
long lStack_298;
long *local_290;
uint local_288;
long local_280 [2];
int8 *local_270;
int8 local_268;
int8 local_260;
ulong uStack_258;
int4 local_250;
int8 local_248;
int8 uStack_240;
long local_238 [65];
local_270 = &uStack_240;
local_268 = 1;
local_260 = 0;
uStack_258 = 0;
local_250 = 0x3f800000;
local_248 = 0;
uStack_240 = 0;
uVar9 = 0;
do {
cVar2 = '\x01';
if (9 < uVar9) {
uVar8 = (ulong)uVar9;
cVar1 = '\x04';
do {
cVar2 = cVar1;
uVar5 = (uint)uVar8;
if (uVar5 < 100) {
cVar2 = cVar2 + -2;
goto LAB_001953a5;
}
if (uVar5 < 1000) {
cVar2 = cVar2 + -1;
goto LAB_001953a5;
}
if (uVar5 < 10000) goto LAB_001953a5;
uVar8 = uVar8 / 10000;
cVar1 = cVar2 + '\x04';
} while (99999 < uVar5);
cVar2 = cVar2 + '\x01';
}
LAB_001953a5:
local_290 = local_280;
/* try { // try from 001953b4 to 001953c0 has its CatchHandler @ 001955e4 */
std::__cxx11::string::_M_construct((ulong)&local_290,cVar2);
std::__detail::__to_chars_10_impl<unsigned_int>((char *)local_290,local_288,uVar9);
/* try { // try from 001953d2 to 001953ed has its CatchHandler @ 0019561c */
plVar3 = (long *)std::__cxx11::string::replace((ulong)&local_290,0,(char *)0x0,0x2140bc);
ppuVar6 = (int8 **)(plVar3 + 2);
if ((int8 **)*plVar3 == ppuVar6) {
local_2a0 = *ppuVar6;
lStack_298 = plVar3[3];
local_2b0 = &local_2a0;
}
else {
local_2a0 = *ppuVar6;
local_2b0 = (int8 **)*plVar3;
}
local_2a8 = plVar3[1];
*plVar3 = (long)ppuVar6;
plVar3[1] = 0;
*(int1 *)(plVar3 + 2) = 0;
/* try { // try from 00195433 to 00195443 has its CatchHandler @ 001955df */
plVar3 = (long *)std::__cxx11::string::append((char *)&local_2b0);
puVar7 = (ulong *)(plVar3 + 2);
if ((ulong *)*plVar3 == puVar7) {
local_2c0 = *puVar7;
uStack_2b8 = (int4)plVar3[3];
uStack_2b4 = *(int4 *)((long)plVar3 + 0x1c);
local_2d0 = &local_2c0;
}
else {
local_2c0 = *puVar7;
local_2d0 = (ulong *)*plVar3;
}
local_2c8 = plVar3[1];
*plVar3 = (long)puVar7;
plVar3[1] = 0;
*(int1 *)(plVar3 + 2) = 0;
/* try { // try from 00195487 to 00195498 has its CatchHandler @ 001955e9 */
std::ifstream::ifstream((ifstream *)local_238,&local_2d0,8);
if (local_2d0 != &local_2c0) {
operator_delete(local_2d0,local_2c0 + 1);
}
if (local_2b0 != &local_2a0) {
operator_delete(local_2b0,(long)local_2a0 + 1);
}
if (local_290 != local_280) {
operator_delete(local_290,local_280[0] + 1);
}
cVar2 = std::__basic_file<char>::is_open();
if (cVar2 == '\0') {
std::ifstream::~ifstream((ifstream *)local_238);
goto LAB_0019559b;
}
local_2c8 = 0;
local_2c0 = local_2c0 & 0xffffffffffffff00;
local_2d0 = &local_2c0;
/* try { // try from 0019551a to 0019555a has its CatchHandler @ 0019563d */
cVar2 = std::ios::widen((char)*(int8 *)(local_238[0] + -0x18) + (char)(istream *)local_238
);
piVar4 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)local_238,(string *)&local_2d0,cVar2);
if (((byte)piVar4[*(long *)(*(long *)piVar4 + -0x18) + 0x20] & 5) == 0) {
local_2b0 = &local_270;
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::
_M_insert<std::__cxx11::string_const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::__cxx11::string,true>>>>
(local_2b0,&local_2d0,&local_2b0);
}
if (local_2d0 != &local_2c0) {
operator_delete(local_2d0,local_2c0 + 1);
}
std::ifstream::~ifstream((ifstream *)local_238);
uVar9 = uVar9 + 1;
if (uVar9 == 0xffffffff) {
LAB_0019559b:
uVar8 = uStack_258;
if (uStack_258 == 0) {
uVar9 = std::thread::hardware_concurrency();
uVar8 = 4;
if (uVar9 != 0) {
uVar8 = (ulong)(uVar9 >> (4 < uVar9));
}
}
std::
_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
::~_Hashtable((_Hashtable<std::__cxx11::string,std::__cxx11::string,std::allocator<std::__cxx11::string>,std::__detail::_Identity,std::equal_to<std::__cxx11::string>,std::hash<std::__cxx11::string>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,true,true>>
*)&local_270);
return uVar8 & 0xffffffff;
}
} while( true );
}
| |
43,730 | my_uni_ucs2 | eloqsql/strings/ctype-ucs2.c | static int my_uni_ucs2(CHARSET_INFO *cs __attribute__((unused)) ,
my_wc_t wc, uchar *r, uchar *e)
{
if ( r+2 > e )
return MY_CS_TOOSMALL2;
if (wc > 0xFFFF) /* UCS2 does not support characters outside BMP */
return MY_CS_ILUNI;
r[0]= (uchar) (wc >> 8);
r[1]= (uchar) (wc & 0xFF);
return 2;
} | O0 | c | my_uni_ucs2:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x6b1bb
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x6b1f8
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x6b1ce
movl $0x0, -0x4(%rbp)
jmp 0x6b1f8
movq -0x18(%rbp), %rax
shrq $0x8, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x18(%rbp), %rax
andq $0xff, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| my_uni_ucs2:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_6B1BB
mov [rbp+var_4], 0FFFFFF9Ah
jmp short loc_6B1F8
loc_6B1BB:
cmp [rbp+var_18], 0FFFFh
jbe short loc_6B1CE
mov [rbp+var_4], 0
jmp short loc_6B1F8
loc_6B1CE:
mov rax, [rbp+var_18]
shr rax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rax, [rbp+var_18]
and rax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
loc_6B1F8:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_uni_ucs2(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
if ( a2 <= 0xFFFF )
{
*a3 = BYTE1(a2);
a3[1] = a2;
return 2;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-102;
}
}
| my_uni_ucs2:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0016b1bb
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x0016b1f8
LAB_0016b1bb:
CMP qword ptr [RBP + -0x18],0xffff
JBE 0x0016b1ce
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016b1f8
LAB_0016b1ce:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
LAB_0016b1f8:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_uni_ucs2(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int4 local_c;
if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else if (param_2 < 0x10000) {
*param_3 = (char)(param_2 >> 8);
param_3[1] = (char)param_2;
local_c = 2;
}
else {
local_c = 0;
}
return local_c;
}
| |
43,731 | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O0 | cpp | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x80(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movq 0x78(%rsp), %rsi
callq 0xf9e80
movq 0x30(%rsp), %rdi
leaq 0x12f2a2(%rip), %rax # 0x2352f8
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x20, %rdi
movq %rdi, 0x18(%rsp)
movq 0x70(%rsp), %rsi
callq 0xd5920
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq %rdi, 0x20(%rsp)
movq 0x68(%rsp), %rsi
callq 0xd7d70
movq 0x30(%rsp), %rdi
addq $0x48, %rdi
movq %rdi, 0x28(%rsp)
movq 0x60(%rsp), %rsi
callq 0xf71d0
movq 0x30(%rsp), %rdi
addq $0x58, %rdi
movq %rdi, 0x38(%rsp)
callq 0x1061b0
movq $0x0, 0x58(%rsp)
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
addq $0x30, %rdi
callq 0xd4af0
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jae 0x106193
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
movq 0x58(%rsp), %rsi
callq 0x1061c0
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0x4f3f0
testb $0x1, %al
jne 0x10617e
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
addq $0x58, %rdi
movq 0x50(%rsp), %rsi
callq 0x1061e0
movq %rax, 0x8(%rsp)
jmp 0x10612e
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
movq %rcx, (%rax)
jmp 0x10617e
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
callq 0x106210
movq 0x28(%rsp), %rdi
callq 0x6f8c0
movq 0x20(%rsp), %rdi
callq 0x7aaf0
movq 0x18(%rsp), %rdi
callq 0x7ab50
movq 0x30(%rsp), %rdi
callq 0xfa140
jmp 0x10619b
jmp 0x106180
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x1060bc
addq $0x88, %rsp
retq
movq 0x48(%rsp), %rdi
callq 0x4f990
nopw %cs:(%rax,%rax)
nop
| _ZN5minja9MacroNodeC2ERKNS_8LocationEOSt10shared_ptrINS_12VariableExprEEOSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES4_INS_10ExpressionEEESaISI_EEOS4_INS_12TemplateNodeEE:
sub rsp, 88h
mov [rsp+88h+var_8], rdi
mov [rsp+88h+var_10], rsi
mov [rsp+88h+var_18], rdx
mov [rsp+88h+var_20], rcx
mov [rsp+88h+var_28], r8
mov rdi, [rsp+88h+var_8]; this
mov [rsp+88h+var_58], rdi
mov rsi, [rsp+88h+var_10]; minja::Location *
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
mov rdi, [rsp+88h+var_58]
lea rax, _ZTVN5minja9MacroNodeE; `vtable for'minja::MacroNode
add rax, 10h
mov [rdi], rax
add rdi, 20h ; ' '
mov [rsp+88h+var_70], rdi
mov rsi, [rsp+88h+var_18]
call _ZNSt10shared_ptrIN5minja12VariableExprEEC2EOS2_; std::shared_ptr<minja::VariableExpr>::shared_ptr(std::shared_ptr<minja::VariableExpr>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov [rsp+88h+var_68], rdi
mov rsi, [rsp+88h+var_20]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEC2EOSD_; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector(std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 48h ; 'H'
mov [rsp+88h+var_60], rdi
mov rsi, [rsp+88h+var_28]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEEC2EOS2_; std::shared_ptr<minja::TemplateNode>::shared_ptr(std::shared_ptr<minja::TemplateNode>&&)
mov rdi, [rsp+88h+var_58]
add rdi, 58h ; 'X'
mov [rsp+88h+var_50], rdi
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEC2Ev; std::unordered_map<std::string,ulong>::unordered_map(void)
mov [rsp+88h+var_30], 0
loc_1060BC:
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_78], rax
add rdi, 30h ; '0'
call _ZNKSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EE4sizeEv; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size(void)
mov rcx, rax
mov rax, [rsp+88h+var_78]
cmp rax, rcx
jnb loc_106193
mov rdi, [rsp+88h+var_58]
add rdi, 30h ; '0'
mov rsi, [rsp+88h+var_30]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EEixEm; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[](ulong)
mov [rsp+88h+var_38], rax
mov rdi, [rsp+88h+var_38]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz short loc_10617E
mov rdi, [rsp+88h+var_58]
mov rax, [rsp+88h+var_30]
mov [rsp+88h+var_88], rax
add rdi, 58h ; 'X'
mov rsi, [rsp+88h+var_38]
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEEixERSB_; std::unordered_map<std::string,ulong>::operator[](std::string const&)
mov [rsp+88h+var_80], rax
jmp short $+2
loc_10612E:
mov rax, [rsp+88h+var_80]
mov rcx, [rsp+88h+var_88]
mov [rax], rcx
jmp short loc_10617E
mov rdi, [rsp+arg_30]
mov rcx, rax
mov eax, edx
mov [rsp+arg_40], rcx
mov [rsp+arg_3C], eax
call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_mEEED2Ev; std::unordered_map<std::string,ulong>::~unordered_map()
mov rdi, [rsp+arg_20]
call _ZNSt10shared_ptrIN5minja12TemplateNodeEED2Ev; std::shared_ptr<minja::TemplateNode>::~shared_ptr()
mov rdi, [rsp+arg_18]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN5minja10ExpressionEEESaISB_EED2Ev; std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::~vector()
mov rdi, [rsp+arg_10]
call _ZNSt10shared_ptrIN5minja12VariableExprEED2Ev; std::shared_ptr<minja::VariableExpr>::~shared_ptr()
mov rdi, [rsp+arg_28]; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
jmp short loc_10619B
loc_10617E:
jmp short $+2
loc_106180:
mov rax, [rsp+88h+var_30]
add rax, 1
mov [rsp+88h+var_30], rax
jmp loc_1060BC
loc_106193:
add rsp, 88h
retn
loc_10619B:
mov rdi, [rsp+arg_40]
call __Unwind_Resume
| unsigned long long minja::MacroNode::MacroNode(
minja::TemplateNode *a1,
const minja::Location *a2,
long long a3,
long long a4,
long long a5)
{
unsigned long long v5; // rcx
unsigned long long result; // rax
long long v7; // [rsp+50h] [rbp-38h]
unsigned long long i; // [rsp+58h] [rbp-30h]
minja::TemplateNode::TemplateNode(a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::MacroNode + 2;
std::shared_ptr<minja::VariableExpr>::shared_ptr((long long)a1 + 32, a3);
std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::vector((long long)a1 + 48, a4);
std::shared_ptr<minja::TemplateNode>::shared_ptr((long long)a1 + 72, a5);
std::unordered_map<std::string,unsigned long>::unordered_map();
for ( i = 0LL; ; ++i )
{
v5 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::size((_QWORD *)a1 + 6);
result = i;
if ( i >= v5 )
break;
v7 = std::vector<std::pair<std::string,std::shared_ptr<minja::Expression>>>::operator[]((char *)a1 + 48, i);
if ( (std::string::empty(v7) & 1) == 0 )
*(_QWORD *)std::unordered_map<std::string,unsigned long>::operator[]((char *)a1 + 88, v7) = i;
}
return result;
}
| |||
43,732 | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O3 | cpp | minja::MacroNode::MacroNode(minja::Location const&, std::shared_ptr<minja::VariableExpr>&&, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::shared_ptr<minja::Expression>>>>&&, std::shared_ptr<minja::TemplateNode>&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
cmpq %r12, %r15
je 0x776a3
movq (%rsi), %rbx
movq 0x8(%rsi), %r14
cmpq %r14, 0x8(%r15)
jne 0x7769a
movb $0x1, %bpl
testq %r14, %r14
je 0x776a5
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x186e0
testl %eax, %eax
je 0x776a5
addq $0x70, %r15
cmpq %r12, %r15
jne 0x7767a
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ZN5minja14ArgumentsValue9has_namedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
mov r15, [rdi+18h]
mov r12, [rdi+20h]
cmp r15, r12
jz short loc_776A3
mov rbx, [rsi]
mov r14, [rsi+8]
loc_7767A:
cmp [r15+8], r14
jnz short loc_7769A
mov bpl, 1
test r14, r14
jz short loc_776A5
mov rdi, [r15]
mov rsi, rbx
mov rdx, r14
call _bcmp
test eax, eax
jz short loc_776A5
loc_7769A:
add r15, 70h ; 'p'
cmp r15, r12
jnz short loc_7767A
loc_776A3:
xor ebp, ebp
loc_776A5:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long minja::ArgumentsValue::has_named(long long a1, long long *a2)
{
unsigned int v2; // ebp
_QWORD *v3; // r15
_QWORD *v4; // r12
long long v5; // rbx
long long v6; // r14
v3 = *(_QWORD **)(a1 + 24);
v4 = *(_QWORD **)(a1 + 32);
if ( v3 == v4 )
{
return 0;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( 1 )
{
if ( v3[1] == v6 )
{
LOBYTE(v2) = 1;
if ( !v6 || !(unsigned int)bcmp(*v3, v5) )
break;
}
v3 += 14;
if ( v3 == v4 )
return 0;
}
}
return v2;
}
| has_named:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,qword ptr [RDI + 0x18]
MOV R12,qword ptr [RDI + 0x20]
CMP R15,R12
JZ 0x001776a3
MOV RBX,qword ptr [RSI]
MOV R14,qword ptr [RSI + 0x8]
LAB_0017767a:
CMP qword ptr [R15 + 0x8],R14
JNZ 0x0017769a
MOV BPL,0x1
TEST R14,R14
JZ 0x001776a5
MOV RDI,qword ptr [R15]
MOV RSI,RBX
MOV RDX,R14
CALL 0x001186e0
TEST EAX,EAX
JZ 0x001776a5
LAB_0017769a:
ADD R15,0x70
CMP R15,R12
JNZ 0x0017767a
LAB_001776a3:
XOR EBP,EBP
LAB_001776a5:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* minja::ArgumentsValue::has_named(std::__cxx11::string const&) */
ulong __thiscall minja::ArgumentsValue::has_named(ArgumentsValue *this,string *param_1)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
ulong unaff_RBP;
int8 *puVar3;
puVar3 = *(int8 **)(this + 0x18);
puVar1 = *(int8 **)(this + 0x20);
if (puVar3 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar3[1] == __n) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),1);
if (__n == 0) goto LAB_001776a5;
iVar2 = bcmp((void *)*puVar3,__s2,__n);
if (iVar2 == 0) goto LAB_001776a5;
}
puVar3 = puVar3 + 0xe;
} while (puVar3 != puVar1);
}
unaff_RBP = 0;
LAB_001776a5:
return unaff_RBP & 0xffffffff;
}
| |
43,733 | pocketflow::BaseNode<std::nullptr_t, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>::next(std::shared_ptr<pocketflow::IBaseNode>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | The-Pocket[P]PocketFlow-CPP/pocketflow.h | std::shared_ptr<IBaseNode> next(std::shared_ptr<IBaseNode> node, const std::string& action) override {
if (!node) {
throw std::invalid_argument("Successor node cannot be null");
}
if (successors.count(action)) {
logWarn("Overwriting successor for action '" + action + "' in node " + getClassName());
}
successors[action] = node;
return node; // Return the base interface pointer
} | O0 | c | pocketflow::BaseNode<std::nullptr_t, std::optional<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>::next(std::shared_ptr<pocketflow::IBaseNode>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdx, -0xb0(%rbp)
movq %rdi, %rax
movq -0xb0(%rbp), %rdi
movq %rax, -0xa8(%rbp)
movq %rax, %rdx
movq %rdx, -0xa0(%rbp)
movq %rax, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
callq 0x9140
testb $0x1, %al
jne 0x19f1d
movl $0x10, %edi
callq 0x5110
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0xb8(%rbp)
leaq 0x2438(%rip), %rsi # 0x1c317
callq 0x5430
jmp 0x19ee6
movq -0xb8(%rbp), %rdi
movq 0x100e4(%rip), %rsi # 0x29fd8
movq 0x100c5(%rip), %rdx # 0x29fc0
callq 0x53c0
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x51a0
jmp 0x1a05a
movq -0x98(%rbp), %rdi
addq $0x38, %rdi
movq -0x20(%rbp), %rsi
callq 0xab50
cmpq $0x0, %rax
je 0x1a014
movq -0x20(%rbp), %rdx
leaq 0x23ef(%rip), %rsi # 0x1c335
leaq -0x90(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0xa1f0
movq -0xc0(%rbp), %rsi
leaq 0x23f1(%rip), %rdx # 0x1c358
leaq -0x70(%rbp), %rdi
callq 0xa1a0
jmp 0x19f72
movq -0x98(%rbp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movq %rax, -0xc8(%rbp)
jmp 0x19f8b
movq -0xc8(%rbp), %rdx
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa400
jmp 0x19fa1
leaq -0x50(%rbp), %rdi
callq 0xa3c0
jmp 0x19fac
leaq -0x50(%rbp), %rdi
callq 0x5150
leaq -0x70(%rbp), %rdi
callq 0x5150
leaq -0x90(%rbp), %rdi
callq 0x5150
jmp 0x1a014
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x1a006
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x19ffd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x5150
leaq -0x70(%rbp), %rdi
callq 0x5150
leaq -0x90(%rbp), %rdi
callq 0x5150
jmp 0x1a05a
movq -0x98(%rbp), %rdi
addq $0x38, %rdi
movq -0x20(%rbp), %rsi
callq 0xabb0
movq -0xb0(%rbp), %rsi
movq %rax, %rdi
callq 0x9160
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x7ae0
movq -0xa0(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x53f0
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN10pocketflow8BaseNodeIiDnE4nextESt10shared_ptrINS_9IBaseNodeEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_B0], rdx
mov rax, rdi
mov rdi, [rbp+var_B0]
mov [rbp+var_A8], rax
mov rdx, rax
mov [rbp+var_A0], rdx
mov [rbp+var_8], rax
mov [rbp+var_10], rsi
mov [rbp+var_18], rdi
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
mov [rbp+var_98], rax
call _ZNKSt12__shared_ptrIN10pocketflow9IBaseNodeELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<pocketflow::IBaseNode,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_19F1D
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rbp+var_B8], rax
lea rsi, aSuccessorNodeC; "Successor node cannot be null"
call __ZNSt16invalid_argumentC1EPKc; std::invalid_argument::invalid_argument(char const*)
jmp short $+2
loc_19EE6:
mov rdi, [rbp+var_B8]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt16invalid_argumentD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rbp+var_B8]; void *
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
call ___cxa_free_exception
jmp loc_1A05A
loc_19F1D:
mov rdi, [rbp+var_98]
add rdi, 38h ; '8'
mov rsi, [rbp+var_20]
call _ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN10pocketflow9IBaseNodeEESt4lessIS5_ESaISt4pairIKS5_S9_EEE5countERSD_; std::map<std::string,std::shared_ptr<pocketflow::IBaseNode>>::count(std::string const&)
cmp rax, 0
jz loc_1A014
mov rdx, [rbp+var_20]
lea rsi, aOverwritingSuc; "Overwriting successor for action '"
lea rdi, [rbp+var_90]
mov [rbp+var_C0], rdi
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov rsi, [rbp+var_C0]
lea rdx, aInNode; "' in node "
lea rdi, [rbp+var_70]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_19F72:
mov rdi, [rbp+var_98]
mov rax, [rdi]
mov rax, [rax+30h]
call rax
mov [rbp+var_C8], rax
jmp short $+2
loc_19F8B:
mov rdx, [rbp+var_C8]
lea rdi, [rbp+var_50]
lea rsi, [rbp+var_70]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_19FA1:
lea rdi, [rbp+var_50]
call _ZN10pocketflow7logWarnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; pocketflow::logWarn(std::string const&)
jmp short $+2
loc_19FAC:
lea rdi, [rbp+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rbp+var_90]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1A014
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp short loc_1A006
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
jmp short loc_19FFD
mov rcx, rax
mov eax, edx
mov [rbp+var_28], rcx
mov [rbp+var_2C], eax
lea rdi, [rbp+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_19FFD:
lea rdi, [rbp+var_70]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1A006:
lea rdi, [rbp+var_90]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_1A05A
loc_1A014:
mov rdi, [rbp+var_98]
add rdi, 38h ; '8'
mov rsi, [rbp+var_20]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN10pocketflow9IBaseNodeEESt4lessIS5_ESaISt4pairIKS5_S9_EEEixERSD_; std::map<std::string,std::shared_ptr<pocketflow::IBaseNode>>::operator[](std::string const&)
mov rsi, [rbp+var_B0]
mov rdi, rax
call _ZNSt10shared_ptrIN10pocketflow9IBaseNodeEEaSERKS2_; std::shared_ptr<pocketflow::IBaseNode>::operator=(std::shared_ptr<pocketflow::IBaseNode> const&)
mov rdi, [rbp+var_A8]
mov rsi, [rbp+var_B0]
call _ZNSt10shared_ptrIN10pocketflow9IBaseNodeEEC2EOS2_; std::shared_ptr<pocketflow::IBaseNode>::shared_ptr(std::shared_ptr<pocketflow::IBaseNode>&&)
mov rax, [rbp+var_A0]
add rsp, 0D0h
pop rbp
retn
loc_1A05A:
mov rdi, [rbp+var_28]
call __Unwind_Resume
| long long pocketflow::BaseNode<int,decltype(nullptr)>::next(long long a1, long long a2, _QWORD *a3, long long a4)
{
long long v4; // rdx
long long v5; // rax
long long v7; // [rsp+8h] [rbp-C8h]
std::invalid_argument *exception; // [rsp+18h] [rbp-B8h]
_BYTE v10[32]; // [rsp+40h] [rbp-90h] BYREF
_BYTE v11[32]; // [rsp+60h] [rbp-70h] BYREF
_BYTE v12[36]; // [rsp+80h] [rbp-50h] BYREF
long long v13; // [rsp+B0h] [rbp-20h]
_QWORD *v14; // [rsp+B8h] [rbp-18h]
long long v15; // [rsp+C0h] [rbp-10h]
long long v16; // [rsp+C8h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
v13 = a4;
if ( !std::__shared_ptr<pocketflow::IBaseNode,(__gnu_cxx::_Lock_policy)2>::operator bool(a3) )
{
exception = (std::invalid_argument *)__cxa_allocate_exception(0x10uLL);
std::invalid_argument::invalid_argument(exception, "Successor node cannot be null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::invalid_argument,
(void (*)(void *))&std::invalid_argument::~invalid_argument);
}
if ( std::map<std::string,std::shared_ptr<pocketflow::IBaseNode>>::count(a2 + 56, v13) )
{
std::operator+<char>((long long)v10, (long long)"Overwriting successor for action '", v13);
std::operator+<char>((long long)v11, (long long)v10, (long long)"' in node ");
v7 = (*(long long ( **)(long long))(*(_QWORD *)a2 + 48LL))(a2);
std::operator+<char>((long long)v12, (long long)v11, v7);
pocketflow::logWarn((long long)v12, (long long)v11, v4);
std::string::~string(v12);
std::string::~string(v11);
std::string::~string(v10);
}
v5 = std::map<std::string,std::shared_ptr<pocketflow::IBaseNode>>::operator[](a2 + 56, v13);
std::shared_ptr<pocketflow::IBaseNode>::operator=(v5, (long long)a3);
std::shared_ptr<pocketflow::IBaseNode>::shared_ptr(a1, (long long)a3);
return a1;
}
| next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0xb0],RDX
MOV RAX,RDI
MOV RDI,qword ptr [RBP + -0xb0]
MOV qword ptr [RBP + -0xa8],RAX
MOV RDX,RAX
MOV qword ptr [RBP + -0xa0],RDX
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDI
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x98],RAX
CALL 0x00109140
TEST AL,0x1
JNZ 0x00119f1d
MOV EDI,0x10
CALL 0x00105110
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RBP + -0xb8],RAX
LAB_00119ed8:
LEA RSI,[0x11c317]
CALL 0x00105430
LAB_00119ee4:
JMP 0x00119ee6
LAB_00119ee6:
MOV RDI,qword ptr [RBP + -0xb8]
MOV RSI,qword ptr [0x00129fd8]
MOV RDX,qword ptr [0x00129fc0]
CALL 0x001053c0
LAB_00119f1d:
MOV RDI,qword ptr [RBP + -0x98]
ADD RDI,0x38
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0010ab50
CMP RAX,0x0
JZ 0x0011a014
MOV RDX,qword ptr [RBP + -0x20]
LEA RSI,[0x11c335]
LEA RDI,[RBP + -0x90]
MOV qword ptr [RBP + -0xc0],RDI
CALL 0x0010a1f0
MOV RSI,qword ptr [RBP + -0xc0]
LAB_00119f60:
LEA RDX,[0x11c358]
LEA RDI,[RBP + -0x70]
CALL 0x0010a1a0
JMP 0x00119f72
LAB_00119f72:
MOV RDI,qword ptr [RBP + -0x98]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x30]
LAB_00119f80:
CALL RAX
MOV qword ptr [RBP + -0xc8],RAX
JMP 0x00119f8b
LAB_00119f8b:
MOV RDX,qword ptr [RBP + -0xc8]
LEA RDI,[RBP + -0x50]
LEA RSI,[RBP + -0x70]
CALL 0x0010a400
JMP 0x00119fa1
LAB_00119fa1:
LEA RDI,[RBP + -0x50]
CALL 0x0010a3c0
LAB_00119faa:
JMP 0x00119fac
LAB_00119fac:
LEA RDI,[RBP + -0x50]
CALL 0x00105150
LEA RDI,[RBP + -0x70]
CALL 0x00105150
LEA RDI,[RBP + -0x90]
CALL 0x00105150
JMP 0x0011a014
LAB_0011a014:
MOV RDI,qword ptr [RBP + -0x98]
ADD RDI,0x38
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x0010abb0
MOV RSI,qword ptr [RBP + -0xb0]
MOV RDI,RAX
CALL 0x00109160
MOV RDI,qword ptr [RBP + -0xa8]
MOV RSI,qword ptr [RBP + -0xb0]
CALL 0x00107ae0
MOV RAX,qword ptr [RBP + -0xa0]
ADD RSP,0xd0
POP RBP
RET
|
/* pocketflow::BaseNode<int, decltype(nullptr)>::next(std::shared_ptr<pocketflow::IBaseNode>,
std::__cxx11::string const&) */
shared_ptr<pocketflow::IBaseNode> *
pocketflow::BaseNode<int,decltype(nullptr)>::next
(shared_ptr<pocketflow::IBaseNode> *param_1,long *param_2,__shared_ptr *param_3,
string *param_4)
{
bool bVar1;
invalid_argument *this;
long lVar2;
shared_ptr<pocketflow::IBaseNode> *this_00;
string local_98 [32];
string local_78 [32];
string local_58 [48];
string *local_28;
__shared_ptr *local_20;
long *local_18;
shared_ptr<pocketflow::IBaseNode> *local_10;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
bVar1 = std::__shared_ptr::operator_cast_to_bool(param_3);
if (!bVar1) {
this = (invalid_argument *)__cxa_allocate_exception(0x10);
/* try { // try from 00119ed8 to 00119ee3 has its CatchHandler @ 00119f00 */
std::invalid_argument::invalid_argument(this,"Successor node cannot be null");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00129fd8,PTR__invalid_argument_00129fc0);
}
lVar2 = std::
map<std::__cxx11::string,std::shared_ptr<pocketflow::IBaseNode>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<pocketflow::IBaseNode>>>>
::count((map<std::__cxx11::string,std::shared_ptr<pocketflow::IBaseNode>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<pocketflow::IBaseNode>>>>
*)(param_2 + 7),local_28);
if (lVar2 != 0) {
std::operator+((char *)local_98,(string *)"Overwriting successor for action \'");
/* try { // try from 00119f60 to 00119f6f has its CatchHandler @ 00119fcc */
std::operator+(local_78,(char *)local_98);
/* try { // try from 00119f80 to 00119f9e has its CatchHandler @ 00119fda */
(**(code **)(*param_2 + 0x30))();
std::operator+(local_58,local_78);
/* try { // try from 00119fa1 to 00119fa9 has its CatchHandler @ 00119fe8 */
logWarn(local_58);
std::__cxx11::string::~string(local_58);
std::__cxx11::string::~string(local_78);
std::__cxx11::string::~string(local_98);
}
this_00 = (shared_ptr<pocketflow::IBaseNode> *)
std::
map<std::__cxx11::string,std::shared_ptr<pocketflow::IBaseNode>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<pocketflow::IBaseNode>>>>
::operator[]((map<std::__cxx11::string,std::shared_ptr<pocketflow::IBaseNode>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<pocketflow::IBaseNode>>>>
*)(param_2 + 7),local_28);
std::shared_ptr<pocketflow::IBaseNode>::operator=(this_00,param_3);
std::shared_ptr<pocketflow::IBaseNode>::shared_ptr(param_1,param_3);
return param_1;
}
| |
43,734 | Cache::Cache(MemoryManager*, Cache::Policy, Cache*) | DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp | Cache::Cache(MemoryManager *manager, Policy policy, Cache *lowerCache) {
this->referenceCounter = 0;
this->memory = manager;
this->policy = policy;
this->lowerCache = lowerCache;
if (!this->isPolicyValid()) {
fprintf(stderr, "Policy invalid!\n");
exit(-1);
}
this->initCache();
this->statistics.numRead = 0;
this->statistics.numWrite = 0;
this->statistics.numHit = 0;
this->statistics.numMiss = 0;
this->statistics.totalCycles = 0;
} | O0 | cpp | Cache::Cache(MemoryManager*, Cache::Policy, Cache*):
subq $0x48, %rsp
leaq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x40(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5590
movq 0x18(%rsp), %rdi
leaq 0x7b90(%rip), %rax # 0xbd38
movq %rax, (%rdi)
addq $0x50, %rdi
movq %rdi, 0x8(%rsp)
callq 0x55b0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rdi
movl $0x0, 0x20(%rdi)
movq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rdi)
movq 0x10(%rax), %rcx
movq %rcx, 0x48(%rdi)
movups (%rax), %xmm0
movups %xmm0, 0x38(%rdi)
movq 0x30(%rsp), %rax
movq %rax, 0x30(%rdi)
callq 0x4290
movb %al, 0x23(%rsp)
jmp 0x41f6
movb 0x23(%rsp), %al
testb $0x1, %al
jne 0x4246
jmp 0x4200
movq 0x7dd1(%rip), %rax # 0xbfd8
movq (%rax), %rdi
leaq 0x405b(%rip), %rsi # 0x826c
movb $0x0, %al
callq 0x2240
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
callq 0x21b0
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x55c0
movq 0x18(%rsp), %rdi
callq 0x5a40
jmp 0x4280
movq 0x18(%rsp), %rdi
callq 0x43b0
jmp 0x4252
movq 0x18(%rsp), %rax
movl $0x0, 0x8(%rax)
movl $0x0, 0xc(%rax)
movl $0x0, 0x10(%rax)
movl $0x0, 0x14(%rax)
movq $0x0, 0x18(%rax)
addq $0x48, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x22c0
nopw (%rax,%rax)
| _ZN5CacheC2EP13MemoryManagerNS_6PolicyEPS_:
sub rsp, 48h; Alternative name is 'Cache::Cache(MemoryManager *, Cache::Policy, Cache*)'
lea rax, [rsp+48h+arg_0]
mov [rsp+48h+var_38], rax
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_18], rdx
mov rdi, [rsp+48h+var_8]; this
mov [rsp+48h+var_30], rdi
call _ZN12ICacheAccessC2Ev; ICacheAccess::ICacheAccess(void)
mov rdi, [rsp+48h+var_30]
lea rax, off_BD38
mov [rdi], rax
add rdi, 50h ; 'P'
mov [rsp+48h+var_40], rdi
call _ZNSt6vectorIN5Cache5BlockESaIS1_EEC2Ev; std::vector<Cache::Block>::vector(void)
mov rax, [rsp+48h+var_38]
mov rdi, [rsp+48h+var_30]; this
mov dword ptr [rdi+20h], 0
mov rcx, [rsp+48h+var_10]
mov [rdi+28h], rcx
mov rcx, [rax+10h]
mov [rdi+48h], rcx
movups xmm0, xmmword ptr [rax]
movups xmmword ptr [rdi+38h], xmm0
mov rax, [rsp+48h+var_18]
mov [rdi+30h], rax
call _ZN5Cache13isPolicyValidEv; Cache::isPolicyValid(void)
mov [rsp+48h+var_25], al
jmp short $+2
loc_41F6:
mov al, [rsp+48h+var_25]
test al, 1
jnz short loc_4246
jmp short $+2
loc_4200:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aPolicyInvalid; "Policy invalid!\n"
mov al, 0
call _fprintf
mov edi, 0FFFFFFFFh
call _exit
mov rdi, [rsp+48h+var_40]
mov rcx, rax
mov eax, edx
mov [rsp+48h+var_20], rcx
mov [rsp+48h+var_24], eax
call _ZNSt6vectorIN5Cache5BlockESaIS1_EED2Ev; std::vector<Cache::Block>::~vector()
mov rdi, [rsp+48h+var_30]; this
call _ZN12ICacheAccessD2Ev; ICacheAccess::~ICacheAccess()
jmp short loc_4280
loc_4246:
mov rdi, [rsp+48h+var_30]; this
call _ZN5Cache9initCacheEv; Cache::initCache(void)
jmp short $+2
loc_4252:
mov rax, [rsp+48h+var_30]
mov dword ptr [rax+8], 0
mov dword ptr [rax+0Ch], 0
mov dword ptr [rax+10h], 0
mov dword ptr [rax+14h], 0
mov qword ptr [rax+18h], 0
add rsp, 48h
retn
loc_4280:
mov rdi, [rsp+48h+var_20]
call __Unwind_Resume
| long long Cache::Cache(
long long a1,
long long a2,
long long a3,
_DWORD a4,
_DWORD a5,
_DWORD a6,
__int128 a7,
long long a8)
{
long long result; // rax
ICacheAccess::ICacheAccess((ICacheAccess *)a1);
*(_QWORD *)a1 = &off_BD38;
std::vector<Cache::Block>::vector();
*(_DWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = a2;
*(_QWORD *)(a1 + 72) = a8;
*(_OWORD *)(a1 + 56) = a7;
*(_QWORD *)(a1 + 48) = a3;
if ( (Cache::isPolicyValid((Cache *)a1) & 1) == 0 )
{
fprintf(stderr, "Policy invalid!\n");
exit(0xFFFFFFFFLL);
}
Cache::initCache((Cache *)a1);
result = a1;
*(_DWORD *)(a1 + 8) = 0;
*(_DWORD *)(a1 + 12) = 0;
*(_DWORD *)(a1 + 16) = 0;
*(_DWORD *)(a1 + 20) = 0;
*(_QWORD *)(a1 + 24) = 0LL;
return result;
}
| Cache:
SUB RSP,0x48
LEA RAX,[RSP + 0x50]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x00105590
MOV RDI,qword ptr [RSP + 0x18]
LEA RAX,[0x10bd38]
MOV qword ptr [RDI],RAX
ADD RDI,0x50
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001055b0
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x18]
MOV dword ptr [RDI + 0x20],0x0
MOV RCX,qword ptr [RSP + 0x38]
MOV qword ptr [RDI + 0x28],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RDI + 0x48],RCX
MOVUPS XMM0,xmmword ptr [RAX]
MOVUPS xmmword ptr [RDI + 0x38],XMM0
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RDI + 0x30],RAX
LAB_001041eb:
CALL 0x00104290
MOV byte ptr [RSP + 0x23],AL
JMP 0x001041f6
LAB_001041f6:
MOV AL,byte ptr [RSP + 0x23]
TEST AL,0x1
JNZ 0x00104246
JMP 0x00104200
LAB_00104200:
MOV RAX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x10826c]
MOV AL,0x0
CALL 0x00102240
MOV EDI,0xffffffff
CALL 0x001021b0
LAB_00104246:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001043b0
LAB_00104250:
JMP 0x00104252
LAB_00104252:
MOV RAX,qword ptr [RSP + 0x18]
MOV dword ptr [RAX + 0x8],0x0
MOV dword ptr [RAX + 0xc],0x0
MOV dword ptr [RAX + 0x10],0x0
MOV dword ptr [RAX + 0x14],0x0
MOV qword ptr [RAX + 0x18],0x0
ADD RSP,0x48
RET
|
/* Cache::Cache(MemoryManager*, Cache::Policy, Cache*) */
void __thiscall Cache::Cache(Cache *this,int8 param_1,int8 param_3)
{
byte bVar1;
int8 in_stack_00000008;
int8 in_stack_00000010;
int8 in_stack_00000018;
ICacheAccess::ICacheAccess((ICacheAccess *)this);
*(int ***)this = &PTR_read_0010bd38;
std::vector<Cache::Block,std::allocator<Cache::Block>>::vector
((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50));
*(int4 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = param_1;
*(int8 *)(this + 0x48) = in_stack_00000018;
*(int8 *)(this + 0x38) = in_stack_00000008;
*(int8 *)(this + 0x40) = in_stack_00000010;
*(int8 *)(this + 0x30) = param_3;
/* try { // try from 001041eb to 0010424f has its CatchHandler @ 00104222 */
bVar1 = isPolicyValid(this);
if ((bVar1 & 1) == 0) {
fprintf(*(FILE **)PTR_stderr_0010bfd8,"Policy invalid!\n");
/* WARNING: Subroutine does not return */
exit(-1);
}
initCache(this);
*(int4 *)(this + 8) = 0;
*(int4 *)(this + 0xc) = 0;
*(int4 *)(this + 0x10) = 0;
*(int4 *)(this + 0x14) = 0;
*(int8 *)(this + 0x18) = 0;
return;
}
| |
43,735 | ma_tls_close | eloqsql/libmariadb/libmariadb/secure/openssl.c | my_bool ma_tls_close(MARIADB_TLS *ctls)
{
int i, rc;
SSL *ssl;
SSL_CTX *ctx= NULL;
if (!ctls || !ctls->ssl)
return 1;
ssl= (SSL *)ctls->ssl;
ctx= SSL_get_SSL_CTX(ssl);
if (ctx)
SSL_CTX_free(ctx);
SSL_set_quiet_shutdown(ssl, 1);
/* 2 x pending + 2 * data = 4 */
for (i=0; i < 4; i++)
if ((rc= SSL_shutdown(ssl)))
break;
/* Since we transferred ownership of BIO to ssl, BIO will
automatically freed - no need for an explicit BIO_free_all */
SSL_free(ssl);
ctls->ssl= NULL;
return rc;
} | O0 | c | ma_tls_close:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x399a6
movq -0x10(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x399ac
movb $0x1, -0x1(%rbp)
jmp 0x39a2b
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x130e0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x399d5
movq -0x28(%rbp), %rdi
callq 0x13090
movq -0x20(%rbp), %rdi
movl $0x1, %esi
callq 0x13450
movl $0x0, -0x14(%rbp)
cmpl $0x4, -0x14(%rbp)
jge 0x39a10
movq -0x20(%rbp), %rdi
callq 0x134c0
movl %eax, -0x18(%rbp)
cmpl $0x0, %eax
je 0x39a03
jmp 0x39a10
jmp 0x39a05
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x399ea
movq -0x20(%rbp), %rdi
callq 0x13270
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movl -0x18(%rbp), %eax
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_tls_close:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_28], 0
cmp [rbp+var_10], 0
jz short loc_399A6
mov rax, [rbp+var_10]
cmp qword ptr [rax+10h], 0
jnz short loc_399AC
loc_399A6:
mov [rbp+var_1], 1
jmp short loc_39A2B
loc_399AC:
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
call _SSL_get_SSL_CTX
mov [rbp+var_28], rax
cmp [rbp+var_28], 0
jz short loc_399D5
mov rdi, [rbp+var_28]
call _SSL_CTX_free
loc_399D5:
mov rdi, [rbp+var_20]
mov esi, 1
call _SSL_set_quiet_shutdown
mov [rbp+var_14], 0
loc_399EA:
cmp [rbp+var_14], 4
jge short loc_39A10
mov rdi, [rbp+var_20]
call _SSL_shutdown
mov [rbp+var_18], eax
cmp eax, 0
jz short loc_39A03
jmp short loc_39A10
loc_39A03:
jmp short $+2
loc_39A05:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_399EA
loc_39A10:
mov rdi, [rbp+var_20]
call _SSL_free
mov rax, [rbp+var_10]
mov qword ptr [rax+10h], 0
mov eax, [rbp+var_18]
mov [rbp+var_1], al
loc_39A2B:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char ma_tls_close(long long a1)
{
long long SSL_CTX; // [rsp+8h] [rbp-28h]
long long v3; // [rsp+10h] [rbp-20h]
int v4; // [rsp+18h] [rbp-18h]
int i; // [rsp+1Ch] [rbp-14h]
if ( !a1 || !*(_QWORD *)(a1 + 16) )
return 1;
v3 = *(_QWORD *)(a1 + 16);
SSL_CTX = SSL_get_SSL_CTX(v3);
if ( SSL_CTX )
SSL_CTX_free(SSL_CTX);
SSL_set_quiet_shutdown(v3, 1LL);
for ( i = 0; i < 4; ++i )
{
v4 = SSL_shutdown(v3);
if ( v4 )
break;
}
SSL_free(v3);
*(_QWORD *)(a1 + 16) = 0LL;
return v4;
}
| ma_tls_close:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x28],0x0
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001399a6
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x10],0x0
JNZ 0x001399ac
LAB_001399a6:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00139a2b
LAB_001399ac:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001130e0
MOV qword ptr [RBP + -0x28],RAX
CMP qword ptr [RBP + -0x28],0x0
JZ 0x001399d5
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00113090
LAB_001399d5:
MOV RDI,qword ptr [RBP + -0x20]
MOV ESI,0x1
CALL 0x00113450
MOV dword ptr [RBP + -0x14],0x0
LAB_001399ea:
CMP dword ptr [RBP + -0x14],0x4
JGE 0x00139a10
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001134c0
MOV dword ptr [RBP + -0x18],EAX
CMP EAX,0x0
JZ 0x00139a03
JMP 0x00139a10
LAB_00139a03:
JMP 0x00139a05
LAB_00139a05:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x001399ea
LAB_00139a10:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113270
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [RBP + -0x18]
MOV byte ptr [RBP + -0x1],AL
LAB_00139a2b:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 ma_tls_close(long param_1)
{
SSL *ssl;
SSL_CTX *pSVar1;
int local_20;
int local_1c;
int1 local_9;
if ((param_1 == 0) || (*(long *)(param_1 + 0x10) == 0)) {
local_9 = 1;
}
else {
ssl = *(SSL **)(param_1 + 0x10);
pSVar1 = SSL_get_SSL_CTX(ssl);
if (pSVar1 != (SSL_CTX *)0x0) {
SSL_CTX_free(pSVar1);
}
SSL_set_quiet_shutdown(ssl,1);
local_1c = 0;
while ((local_1c < 4 && (local_20 = SSL_shutdown(ssl), local_20 == 0))) {
local_1c = local_1c + 1;
}
SSL_free(ssl);
*(int8 *)(param_1 + 0x10) = 0;
local_9 = (int1)local_20;
}
return local_9;
}
| |
43,736 | ma_pvio_has_data | eloqsql/libmariadb/libmariadb/ma_pvio.c | my_bool ma_pvio_has_data(MARIADB_PVIO *pvio, ssize_t *data_len)
{
/* check if we still have unread data in cache */
if (pvio && pvio->cache)
if (pvio->cache_pos > pvio->cache)
return test(pvio->cache_pos - pvio->cache);
if (pvio && pvio->methods->has_data)
return pvio->methods->has_data(pvio, data_len);
return 1;
} | O0 | c | ma_pvio_has_data:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x3e71c
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x3e71c
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x3e71a
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
subq %rax, %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movb %al, -0x1(%rbp)
jmp 0x3e751
jmp 0x3e71c
cmpq $0x0, -0x10(%rbp)
je 0x3e74d
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
cmpq $0x0, 0x78(%rax)
je 0x3e74d
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movq 0x78(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq *%rax
movb %al, -0x1(%rbp)
jmp 0x3e751
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| ma_pvio_has_data:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_10], 0
jz short loc_3E71C
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_3E71C
mov rax, [rbp+var_10]
mov rax, [rax+10h]
mov rcx, [rbp+var_10]
cmp rax, [rcx+8]
jbe short loc_3E71A
mov rax, [rbp+var_10]
mov rdx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
sub rdx, rax
xor eax, eax
mov ecx, 1
cmp rdx, 0
cmovnz eax, ecx
mov [rbp+var_1], al
jmp short loc_3E751
loc_3E71A:
jmp short $+2
loc_3E71C:
cmp [rbp+var_10], 0
jz short loc_3E74D
mov rax, [rbp+var_10]
mov rax, [rax+48h]
cmp qword ptr [rax+78h], 0
jz short loc_3E74D
mov rax, [rbp+var_10]
mov rax, [rax+48h]
mov rax, [rax+78h]
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call rax
mov [rbp+var_1], al
jmp short loc_3E751
loc_3E74D:
mov [rbp+var_1], 1
loc_3E751:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char ma_pvio_has_data(_QWORD *a1, long long a2)
{
if ( a1 && a1[1] && a1[2] > a1[1] )
return a1[2] != a1[1];
if ( a1 && *(_QWORD *)(a1[9] + 120LL) )
return (*(long long ( **)(_QWORD *, long long))(a1[9] + 120LL))(a1, a2);
return 1;
}
| ma_pvio_has_data:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013e71c
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0013e71c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x8]
JBE 0x0013e71a
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
SUB RDX,RAX
XOR EAX,EAX
MOV ECX,0x1
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV byte ptr [RBP + -0x1],AL
JMP 0x0013e751
LAB_0013e71a:
JMP 0x0013e71c
LAB_0013e71c:
CMP qword ptr [RBP + -0x10],0x0
JZ 0x0013e74d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
CMP qword ptr [RAX + 0x78],0x0
JZ 0x0013e74d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RAX + 0x78]
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL RAX
MOV byte ptr [RBP + -0x1],AL
JMP 0x0013e751
LAB_0013e74d:
MOV byte ptr [RBP + -0x1],0x1
LAB_0013e751:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 ma_pvio_has_data(long param_1,int8 param_2)
{
int1 local_9;
if (((param_1 == 0) || (*(long *)(param_1 + 8) == 0)) ||
(*(ulong *)(param_1 + 0x10) <= *(ulong *)(param_1 + 8))) {
if ((param_1 == 0) || (*(long *)(*(long *)(param_1 + 0x48) + 0x78) == 0)) {
local_9 = 1;
}
else {
local_9 = (**(code **)(*(long *)(param_1 + 0x48) + 0x78))(param_1,param_2);
}
}
else {
local_9 = *(long *)(param_1 + 0x10) != *(long *)(param_1 + 8);
}
return local_9;
}
| |
43,737 | testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*) | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc | AssertionResult CmpHelperSTRCASEEQ(const char* lhs_expression,
const char* rhs_expression, const char* lhs,
const char* rhs) {
if (String::CaseInsensitiveCStringEquals(lhs, rhs)) {
return AssertionSuccess();
}
return EqFailure(lhs_expression, rhs_expression, PrintToString(lhs),
PrintToString(rhs), true);
} | O0 | cpp | testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*):
subq $0x98, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0xc3160
testb $0x1, %al
jne 0xc308b
jmp 0xc309a
movq 0x10(%rsp), %rdi
callq 0xb09c0
jmp 0xc3142
movq 0x88(%rsp), %rax
movq %rax, (%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x30c90
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x30c90
jmp 0xc30d3
movq 0x8(%rsp), %rdx
movq (%rsp), %rsi
movq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rcx
leaq 0x30(%rsp), %r8
movl $0x1, %r9d
callq 0xc2160
jmp 0xc30f8
leaq 0x30(%rsp), %rdi
callq 0x1aac0
leaq 0x50(%rsp), %rdi
callq 0x1aac0
jmp 0xc3142
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
jmp 0xc3136
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x1aac0
leaq 0x50(%rsp), %rdi
callq 0x1aac0
jmp 0xc314f
movq 0x18(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x14c80
nopl (%rax)
| _ZN7testing8internal18CmpHelperSTRCASEEQEPKcS2_S2_S2_:
sub rsp, 98h
mov [rsp+98h+var_88], rdi
mov rax, rdi
mov [rsp+98h+var_80], rax
mov [rsp+98h+var_8], rdi
mov [rsp+98h+var_10], rsi
mov [rsp+98h+var_18], rdx
mov [rsp+98h+var_20], rcx
mov [rsp+98h+var_28], r8
mov rdi, [rsp+98h+var_20]; this
mov rsi, [rsp+98h+var_28]; char *
call _ZN7testing8internal6String28CaseInsensitiveCStringEqualsEPKcS3_; testing::internal::String::CaseInsensitiveCStringEquals(char const*,char const*)
test al, 1
jnz short loc_C308B
jmp short loc_C309A
loc_C308B:
mov rdi, [rsp+98h+var_88]; this
call _ZN7testing16AssertionSuccessEv; testing::AssertionSuccess(void)
jmp loc_C3142
loc_C309A:
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_98], rax
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_90], rax
lea rdi, [rsp+98h+var_48]
lea rsi, [rsp+98h+var_20]
call _ZN7testing13PrintToStringIPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<char const*>(char const* const&)
lea rdi, [rsp+98h+var_68]
lea rsi, [rsp+98h+var_28]
call _ZN7testing13PrintToStringIPKcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::PrintToString<char const*>(char const* const&)
jmp short $+2
loc_C30D3:
mov rdx, [rsp+98h+var_90]
mov rsi, [rsp+98h+var_98]
mov rdi, [rsp+98h+var_88]
lea rcx, [rsp+98h+var_48]
lea r8, [rsp+98h+var_68]
mov r9d, 1
call _ZN7testing8internal9EqFailureEPKcS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_b; testing::internal::EqFailure(char const*,char const*,std::string const&,std::string const&,bool)
jmp short $+2
loc_C30F8:
lea rdi, [rsp+98h+var_68]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+98h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_C3142
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
jmp short loc_C3136
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_C3136:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_C314F
loc_C3142:
mov rax, [rsp+98h+var_80]
add rsp, 98h
retn
loc_C314F:
mov rdi, [rsp+arg_20]
call __Unwind_Resume
| testing::internal * testing::internal::CmpHelperSTRCASEEQ(
testing::internal *this,
const char *a2,
const char *a3,
testing::internal::String *a4,
char *a5)
{
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
long long v9; // r9
long long v11; // [rsp+0h] [rbp-98h]
long long v12; // [rsp+8h] [rbp-90h]
_BYTE v13[32]; // [rsp+30h] [rbp-68h] BYREF
_BYTE v14[32]; // [rsp+50h] [rbp-48h] BYREF
char *v15; // [rsp+70h] [rbp-28h] BYREF
testing::internal::String *v16; // [rsp+78h] [rbp-20h] BYREF
const char *v17; // [rsp+80h] [rbp-18h]
const char *v18; // [rsp+88h] [rbp-10h]
testing::internal *v19; // [rsp+90h] [rbp-8h]
v19 = this;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
if ( (testing::internal::String::CaseInsensitiveCStringEquals(a4, a5, a3) & 1) != 0 )
{
testing::AssertionSuccess(this, (long long)a5, v6, v7, v8, v9);
}
else
{
v11 = (long long)v18;
v12 = (long long)v17;
testing::PrintToString<char const*>((long long)v14, (long long *)&v16);
testing::PrintToString<char const*>((long long)v13, (long long *)&v15);
testing::internal::EqFailure(this, v11, v12, (long long)v14, (long long)v13, 1);
std::string::~string(v13);
std::string::~string(v14);
}
return this;
}
| CmpHelperSTRCASEEQ:
SUB RSP,0x98
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
MOV qword ptr [RSP + 0x90],RDI
MOV qword ptr [RSP + 0x88],RSI
MOV qword ptr [RSP + 0x80],RDX
MOV qword ptr [RSP + 0x78],RCX
MOV qword ptr [RSP + 0x70],R8
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x001c3160
TEST AL,0x1
JNZ 0x001c308b
JMP 0x001c309a
LAB_001c308b:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001b09c0
JMP 0x001c3142
LAB_001c309a:
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x78]
CALL 0x00130c90
LAB_001c30c2:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x70]
CALL 0x00130c90
JMP 0x001c30d3
LAB_001c30d3:
MOV RDX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [RSP + 0x10]
LEA RCX,[RSP + 0x50]
LEA R8,[RSP + 0x30]
MOV R9D,0x1
CALL 0x001c2160
LAB_001c30f6:
JMP 0x001c30f8
LAB_001c30f8:
LEA RDI,[RSP + 0x30]
CALL 0x0011aac0
LEA RDI,[RSP + 0x50]
CALL 0x0011aac0
JMP 0x001c3142
LAB_001c3142:
MOV RAX,qword ptr [RSP + 0x18]
ADD RSP,0x98
RET
|
/* testing::internal::CmpHelperSTRCASEEQ(char const*, char const*, char const*, char const*) */
internal * __thiscall
testing::internal::CmpHelperSTRCASEEQ
(internal *this,char *param_1,char *param_2,char *param_3,char *param_4)
{
char *pcVar1;
char *pcVar2;
ulong uVar3;
testing local_68 [32];
testing local_48 [32];
char *local_28;
char *local_20;
char *local_18;
char *local_10;
internal *local_8;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
uVar3 = String::CaseInsensitiveCStringEquals(param_3,param_4);
pcVar2 = local_10;
pcVar1 = local_18;
if ((uVar3 & 1) == 0) {
PrintToString<char_const*>(local_48,&local_20);
/* try { // try from 001c30c2 to 001c30d0 has its CatchHandler @ 001c310e */
PrintToString<char_const*>(local_68,&local_28);
/* try { // try from 001c30d3 to 001c30f5 has its CatchHandler @ 001c311e */
EqFailure(this,pcVar2,pcVar1,(string *)local_48,(string *)local_68,true);
std::__cxx11::string::~string((string *)local_68);
std::__cxx11::string::~string((string *)local_48);
}
else {
AssertionSuccess((testing *)this);
}
return this;
}
| |
43,738 | add_compiled_extra_collation | eloqsql/mysys/charset.c | void add_compiled_extra_collation(struct charset_info_st *cs)
{
DBUG_ASSERT(cs->number < array_elements(all_charsets));
all_charsets[cs->number]= cs;
cs->state|= MY_CS_AVAILABLE;
if ((my_hash_insert(&charset_name_hash, (uchar*) cs)))
{
CHARSET_INFO *org= (CHARSET_INFO*) my_hash_search(&charset_name_hash,
(uchar*) cs->cs_name.str,
cs->cs_name.length);
cs->cs_name= org->cs_name;
}
} | O0 | c | add_compiled_extra_collation:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0xdb51e
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
leaq 0xb9ee4f(%rip), %rax # 0xc7a380
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
orl $0x200, %ecx # imm = 0x200
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rsi
leaq 0xba2e30(%rip), %rdi # 0xc7e380
callq 0xde1b0
cmpb $0x0, %al
je 0xdb591
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdx
leaq 0xba2e10(%rip), %rdi # 0xc7e380
callq 0xdddc0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x18(%rcx), %rcx
movq %rcx, 0x18(%rax)
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| add_compiled_extra_collation:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_DB51E:
mov rdx, [rbp+var_8]
mov rax, [rbp+var_8]
mov eax, [rax]
mov ecx, eax
lea rax, all_charsets
mov [rax+rcx*8], rdx
mov rax, [rbp+var_8]
mov ecx, [rax+0Ch]
or ecx, 200h
mov [rax+0Ch], ecx
mov rsi, [rbp+var_8]
lea rdi, charset_name_hash
call my_hash_insert
cmp al, 0
jz short loc_DB591
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
mov rax, [rbp+var_8]
mov rdx, [rax+18h]
lea rdi, charset_name_hash
call my_hash_search
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rcx, [rbp+var_10]
mov rdx, [rcx+10h]
mov [rax+10h], rdx
mov rcx, [rcx+18h]
mov [rax+18h], rcx
loc_DB591:
add rsp, 10h
pop rbp
retn
| long long add_compiled_extra_collation(unsigned int *a1)
{
long long result; // rax
long long v2; // [rsp+0h] [rbp-10h]
all_charsets[*a1] = a1;
a1[3] |= 0x200u;
result = my_hash_insert(&charset_name_hash, a1);
if ( (_BYTE)result )
{
v2 = my_hash_search(&charset_name_hash, *((_QWORD *)a1 + 2), *((_QWORD *)a1 + 3));
result = (long long)a1;
*((_QWORD *)a1 + 2) = *(_QWORD *)(v2 + 16);
*((_QWORD *)a1 + 3) = *(_QWORD *)(v2 + 24);
}
return result;
}
| add_compiled_extra_collation:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001db51e
LAB_001db51e:
MOV RDX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
LEA RAX,[0xd7a380]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX + 0xc]
OR ECX,0x200
MOV dword ptr [RAX + 0xc],ECX
MOV RSI,qword ptr [RBP + -0x8]
LEA RDI,[0xd7e380]
CALL 0x001de1b0
CMP AL,0x0
JZ 0x001db591
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x18]
LEA RDI,[0xd7e380]
CALL 0x001dddc0
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x10],RDX
MOV RCX,qword ptr [RCX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_001db591:
ADD RSP,0x10
POP RBP
RET
|
void add_compiled_extra_collation(uint *param_1)
{
char cVar1;
long lVar2;
(&all_charsets)[*param_1] = param_1;
param_1[3] = param_1[3] | 0x200;
cVar1 = my_hash_insert(charset_name_hash,param_1);
if (cVar1 != '\0') {
lVar2 = my_hash_search(charset_name_hash,*(int8 *)(param_1 + 4),
*(int8 *)(param_1 + 6));
*(int8 *)(param_1 + 4) = *(int8 *)(lVar2 + 0x10);
*(int8 *)(param_1 + 6) = *(int8 *)(lVar2 + 0x18);
}
return;
}
| |
43,739 | VoxelInfoBuilder::~VoxelInfoBuilder() | untodesu[P]voxelius/game/shared/voxel_registry.hh | virtual ~VoxelInfoBuilder(void) = default; | O1 | cpp | VoxelInfoBuilder::~VoxelInfoBuilder():
pushq %rbx
movq %rdi, %rbx
addq $0x58, %rdi
callq 0x4c81c
movq 0x30(%rbx), %rdi
leaq 0x40(%rbx), %rax
cmpq %rax, %rdi
je 0x4c651
movq (%rax), %rsi
incq %rsi
callq 0x176b0
addq $0x8, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x2c990
| _ZN16VoxelInfoBuilderD2Ev:
push rbx
mov rbx, rdi
add rdi, 58h ; 'X'
call _ZNSt6vectorI12VoxelTextureSaIS0_EED2Ev; std::vector<VoxelTexture>::~vector()
mov rdi, [rbx+30h]; void *
lea rax, [rbx+40h]
cmp rdi, rax
jz short loc_4C651
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4C651:
add rbx, 8
mov rdi, rbx; void *
pop rbx
jmp _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
| void VoxelInfoBuilder::~VoxelInfoBuilder(VoxelInfoBuilder *this)
{
char *v2; // rdi
std::vector<VoxelTexture>::~vector((char *)this + 88);
v2 = (char *)*((_QWORD *)this + 6);
if ( v2 != (char *)this + 64 )
operator delete(v2, *((_QWORD *)this + 8) + 1LL);
std::vector<std::string>::~vector((_QWORD *)this + 1);
}
| ~VoxelInfoBuilder:
PUSH RBX
MOV RBX,RDI
ADD RDI,0x58
CALL 0x0014c81c
MOV RDI,qword ptr [RBX + 0x30]
LEA RAX,[RBX + 0x40]
CMP RDI,RAX
JZ 0x0014c651
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x001176b0
LAB_0014c651:
ADD RBX,0x8
MOV RDI,RBX
POP RBX
JMP 0x0012c990
|
/* VoxelInfoBuilder::~VoxelInfoBuilder() */
void __thiscall VoxelInfoBuilder::~VoxelInfoBuilder(VoxelInfoBuilder *this)
{
std::vector<VoxelTexture,std::allocator<VoxelTexture>>::~vector
((vector<VoxelTexture,std::allocator<VoxelTexture>> *)(this + 0x58));
if (*(VoxelInfoBuilder **)(this + 0x30) != this + 0x40) {
operator_delete(*(VoxelInfoBuilder **)(this + 0x30),*(long *)(this + 0x40) + 1);
}
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 8));
return;
}
| |
43,740 | print_value | eloqsql/client/mysqldump.c | static void print_value(FILE *file, MYSQL_RES *result, MYSQL_ROW row,
const char *prefix, const char *name,
int string_value)
{
MYSQL_FIELD *field;
mysql_field_seek(result, 0);
for ( ; (field= mysql_fetch_field(result)) ; row++)
{
if (!strcmp(field->name,name))
{
if (row[0] && row[0][0] && strcmp(row[0],"0")) /* Skip default */
{
fputc(' ',file);
fputs(prefix, file);
if (string_value)
unescape(file,row[0], strlen(row[0]));
else
fputs(row[0], file);
check_io(file);
return;
}
}
}
return; /* This shouldn't happen */
} | O3 | c | print_value:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, -0x2c(%rbp)
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x4a569
movq %r14, %rdi
callq 0x4a3b5
testq %rax, %rax
je 0x42e6f
movq (%rax), %rdi
movq %r13, %rsi
callq 0x378b0
testl %eax, %eax
je 0x42e1c
addq $0x8, %r15
jmp 0x42dfa
movq (%r15), %rax
testq %rax, %rax
je 0x42e16
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x42e16
cmpl $0x30, %ecx
jne 0x42e36
cmpb $0x0, 0x1(%rax)
je 0x42e16
movl $0x20, %edi
movq %rbx, %rsi
callq 0x378e0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x37340
movq (%r15), %r14
cmpl $0x0, -0x2c(%rbp)
je 0x42e7e
movq %r14, %rdi
callq 0x37410
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x42500
jmp 0x42e89
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rbx, %rsi
callq 0x37340
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x38cfc
| print_value:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_2C], r9d
mov r13, r8
mov r12, rcx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
xor esi, esi
call mysql_field_seek
loc_42DFA:
mov rdi, r14
call mysql_fetch_field
test rax, rax
jz short loc_42E6F
mov rdi, [rax]
mov rsi, r13
call _strcmp
test eax, eax
jz short loc_42E1C
loc_42E16:
add r15, 8
jmp short loc_42DFA
loc_42E1C:
mov rax, [r15]
test rax, rax
jz short loc_42E16
movzx ecx, byte ptr [rax]
test ecx, ecx
jz short loc_42E16
cmp ecx, 30h ; '0'
jnz short loc_42E36
cmp byte ptr [rax+1], 0
jz short loc_42E16
loc_42E36:
mov edi, 20h ; ' '
mov rsi, rbx
call _fputc
mov rdi, r12
mov rsi, rbx
call _fputs
mov r14, [r15]
cmp [rbp+var_2C], 0
jz short loc_42E7E
mov rdi, r14
call _strlen
mov rdi, rbx
mov rsi, r14
mov rdx, rax
call unescape
jmp short loc_42E89
loc_42E6F:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_42E7E:
mov rdi, r14
mov rsi, rbx
call _fputs
loc_42E89:
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp check_io
| _QWORD * print_value(
long long a1,
long long a2,
long long *a3,
long long a4,
long long a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
char a15)
{
_QWORD *result; // rax
_BYTE *v19; // rax
const char *v20; // rdx
const char *v21; // rdx
long long v22; // r14
long long v23; // rax
long long v24; // rsi
double v25; // xmm4_8
double v26; // xmm5_8
long long v27; // rdx
long long v28; // rcx
long long v29; // r8
long long v30; // r9
mysql_field_seek(a2, 0LL);
while ( 1 )
{
result = (_QWORD *)mysql_fetch_field(a2);
if ( !result )
break;
if ( !(unsigned int)strcmp(*result, a5) )
{
v19 = (_BYTE *)*a3;
if ( *a3 )
{
if ( *v19 && (*v19 != 48 || v19[1]) )
{
fputc(32LL, a1);
fputs(a4, a1, v20);
v22 = *a3;
if ( a6 )
{
v23 = strlen(*a3);
v24 = v22;
unescape(a1, v22, v23, a7, a8, a9, a10, v25, v26, a13, a14);
}
else
{
v24 = a1;
fputs(v22, a1, v21);
}
return (_QWORD *)check_io(a1, v24, v27, v28, v29, v30, a15);
}
}
}
++a3;
}
return result;
}
| print_value:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV dword ptr [RBP + -0x2c],R9D
MOV R13,R8
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
XOR ESI,ESI
CALL 0x0014a569
LAB_00142dfa:
MOV RDI,R14
CALL 0x0014a3b5
TEST RAX,RAX
JZ 0x00142e6f
MOV RDI,qword ptr [RAX]
MOV RSI,R13
CALL 0x001378b0
TEST EAX,EAX
JZ 0x00142e1c
LAB_00142e16:
ADD R15,0x8
JMP 0x00142dfa
LAB_00142e1c:
MOV RAX,qword ptr [R15]
TEST RAX,RAX
JZ 0x00142e16
MOVZX ECX,byte ptr [RAX]
TEST ECX,ECX
JZ 0x00142e16
CMP ECX,0x30
JNZ 0x00142e36
CMP byte ptr [RAX + 0x1],0x0
JZ 0x00142e16
LAB_00142e36:
MOV EDI,0x20
MOV RSI,RBX
CALL 0x001378e0
MOV RDI,R12
MOV RSI,RBX
CALL 0x00137340
MOV R14,qword ptr [R15]
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x00142e7e
MOV RDI,R14
CALL 0x00137410
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
CALL 0x00142500
JMP 0x00142e89
LAB_00142e6f:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00142e7e:
MOV RDI,R14
MOV RSI,RBX
CALL 0x00137340
LAB_00142e89:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00138cfc
|
void print_value(FILE *param_1,int8 param_2,int8 *param_3,char *param_4,char *param_5,
int param_6)
{
char *pcVar1;
int iVar2;
int8 *puVar3;
size_t sVar4;
mysql_field_seek(param_2,0);
while( true ) {
puVar3 = (int8 *)mysql_fetch_field(param_2);
if (puVar3 == (int8 *)0x0) {
return;
}
iVar2 = strcmp((char *)*puVar3,param_5);
if ((((iVar2 == 0) && (pcVar1 = (char *)*param_3, pcVar1 != (char *)0x0)) && (*pcVar1 != '\0'))
&& ((*pcVar1 != '0' || (pcVar1[1] != '\0')))) break;
param_3 = param_3 + 1;
}
fputc(0x20,param_1);
fputs(param_4,param_1);
pcVar1 = (char *)*param_3;
if (param_6 == 0) {
fputs(pcVar1,param_1);
}
else {
sVar4 = strlen(pcVar1);
unescape(param_1,pcVar1,sVar4);
}
check_io(param_1);
return;
}
| |
43,741 | bf_mul_pow_radix | bluesky950520[P]quickjs/libbf.c | int bf_mul_pow_radix(bf_t *r, const bf_t *T, limb_t radix,
slimb_t expn, limb_t prec, bf_flags_t flags)
{
int ret, expn_sign, overflow;
slimb_t e, extra_bits, prec1, ziv_extra_bits;
bf_t B_s, *B = &B_s;
if (T->len == 0) {
return bf_set(r, T);
} else if (expn == 0) {
ret = bf_set(r, T);
ret |= bf_round(r, prec, flags);
return ret;
}
e = expn;
expn_sign = 0;
if (e < 0) {
e = -e;
expn_sign = 1;
}
bf_init(r->ctx, B);
if (prec == BF_PREC_INF) {
/* infinite precision: only used if the result is known to be exact */
ret = bf_pow_ui_ui(B, radix, e, BF_PREC_INF, BF_RNDN);
if (expn_sign) {
ret |= bf_div(r, T, B, T->len * LIMB_BITS, BF_RNDN);
} else {
ret |= bf_mul(r, T, B, BF_PREC_INF, BF_RNDN);
}
} else {
ziv_extra_bits = 16;
for(;;) {
prec1 = prec + ziv_extra_bits;
/* XXX: correct overflow/underflow handling */
/* XXX: rigorous error analysis needed */
extra_bits = ceil_log2(e) * 2 + 1;
ret = bf_pow_ui_ui(B, radix, e, prec1 + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP);
overflow = !bf_is_finite(B);
/* XXX: if bf_pow_ui_ui returns an exact result, can stop
after the next operation */
if (expn_sign)
ret |= bf_div(r, T, B, prec1 + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP);
else
ret |= bf_mul(r, T, B, prec1 + extra_bits, BF_RNDN | BF_FLAG_EXT_EXP);
if (ret & BF_ST_MEM_ERROR)
break;
if ((ret & BF_ST_INEXACT) &&
!bf_can_round(r, prec, flags & BF_RND_MASK, prec1) &&
!overflow) {
/* and more precision and retry */
ziv_extra_bits = ziv_extra_bits + (ziv_extra_bits / 2);
} else {
/* XXX: need to use __bf_round() to pass the inexact
flag for the subnormal case */
ret = bf_round(r, prec, flags) | (ret & BF_ST_INEXACT);
break;
}
}
}
bf_delete(B);
return ret;
} | O1 | c | bf_mul_pow_radix:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
cmpq $0x0, 0x18(%rsi)
je 0x87ed9
movl %r9d, %r12d
movq %r8, %rbp
movq %rcx, %r13
testq %rcx, %rcx
je 0x87ef2
movabsq $0x7ffffffffffffffd, %rcx # imm = 0x7FFFFFFFFFFFFFFD
movabsq $0x3fffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFFF
movq %r13, %rdx
negq %rdx
cmovsq %r13, %rdx
movq (%rbx), %rax
movq %rax, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
leaq 0x3(%rcx), %rax
movq %rax, 0x30(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rsp)
cmpq %r14, %rbp
jne 0x87f21
leaq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x880da
movl %eax, %ebp
testq %r13, %r13
js 0x87f48
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
jmp 0x87f6a
movq %rbx, %rdi
movq %r15, %rsi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x84079
movq %rbp, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x84079
movl %eax, %ebp
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x87f3d
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
xorl %r8d, %r8d
callq 0x84212
movl %eax, %r13d
jmp 0x87f40
movq %rdx, %rax
decq %rax
movq %r15, 0x10(%rsp)
movq %r13, 0x58(%rsp)
je 0x87f75
bsrq %rax, %rax
xorq $0x3f, %rax
jmp 0x87f7a
xorl %r13d, %r13d
orl %ebp, %r13d
jmp 0x880c8
movq 0x18(%r15), %rcx
shlq $0x6, %rcx
leaq -0xf78(%rip), %r9 # 0x86fdf
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %r8d, %r8d
callq 0x86f26
movl %eax, %r13d
orl %ebp, %r13d
jmp 0x880ac
movl $0x40, %eax
movq %rbx, (%rsp)
addq %rax, %rax
movl $0x81, %ecx
subq %rax, %rcx
movq %rdx, 0x50(%rsp)
cmpq $0x2, %rdx
movl $0x1, %eax
cmovaeq %rcx, %rax
movq %rax, 0x48(%rsp)
movl %r12d, 0x8(%rsp)
andl $0x7, %r12d
movl %r12d, 0xc(%rsp)
movl $0x10, %r12d
leaq 0x20(%rsp), %r15
movq %rbp, %rbx
leaq (%r12,%rbp), %r14
movq 0x48(%rsp), %rax
leaq (%r14,%rax), %r13
movq %r15, %rdi
movq 0x18(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r13, %rcx
movl $0x7e0, %r8d # imm = 0x7E0
callq 0x880da
movl %eax, %ebp
movq 0x30(%rsp), %rax
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x58(%rsp)
js 0x88014
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %r13, %rcx
movl $0x7e0, %r8d # imm = 0x7E0
callq 0x85afd
jmp 0x88035
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %r13, %rcx
movl $0x7e0, %r8d # imm = 0x7E0
leaq -0x1051(%rip), %r9 # 0x86fdf
callq 0x86f26
movl %eax, %r13d
orl %ebp, %r13d
testb $0x20, %r13b
jne 0x880ac
andl $0x10, %r13d
movq %rbx, %rbp
movq (%rsp), %rbx
je 0x8808a
movq %rbx, %rdi
movq %rbp, %rsi
movl 0xc(%rsp), %edx
movq %r14, %rcx
callq 0x845d3
testl %eax, %eax
jne 0x8808a
movabsq $0x7ffffffffffffffd, %rax # imm = 0x7FFFFFFFFFFFFFFD
cmpq %rax, 0x60(%rsp)
jg 0x8808a
movq %r12, %rax
shrq $0x3f, %rax
addq %r12, %rax
sarq %rax
addq %rax, %r12
jmp 0x87fb4
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x880a7
movq %rbx, %rdi
movq %rbp, %rsi
movl 0x8(%rsp), %edx
xorl %r8d, %r8d
callq 0x84212
jmp 0x880a9
xorl %eax, %eax
orl %eax, %r13d
movq 0x20(%rsp), %rax
testq %rax, %rax
je 0x880c8
movq 0x40(%rsp), %rsi
testq %rsi, %rsi
je 0x880c8
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movl %r13d, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| bf_mul_pow_radix:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 68h
mov [rsp+98h+var_80], rdx
mov r15, rsi
mov rbx, rdi
cmp qword ptr [rsi+18h], 0
jz loc_87ED9
mov r12d, r9d
mov rbp, r8
mov r13, rcx
test rcx, rcx
jz loc_87EF2
mov rcx, 7FFFFFFFFFFFFFFDh
mov r14, 3FFFFFFFFFFFFFFFh
mov rdx, r13
neg rdx
cmovs rdx, r13
mov rax, [rbx]
mov [rsp+98h+var_78], rax
mov [rsp+98h+var_70], 0
lea rax, [rcx+3]
mov [rsp+98h+var_68], rax
xorps xmm0, xmm0
movups [rsp+98h+var_60], xmm0
cmp rbp, r14
jnz loc_87F21
lea rdi, [rsp+98h+var_78]
mov rsi, [rsp+98h+var_80]
mov rcx, r14
xor r8d, r8d
call bf_pow_ui_ui
mov ebp, eax
test r13, r13
js loc_87F48
lea rdx, [rsp+98h+var_78]
mov rdi, rbx
mov rsi, r15
mov rcx, r14
xor r8d, r8d
call bf_mul
jmp loc_87F6A
loc_87ED9:
mov rdi, rbx
mov rsi, r15
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp bf_set
loc_87EF2:
mov r14, rbp
mov rdi, rbx
mov rsi, r15
call bf_set
mov ebp, eax
mov rcx, [rbx+18h]
test rcx, rcx
jz short loc_87F3D
mov rdi, rbx
mov rsi, r14
mov edx, r12d
xor r8d, r8d
call __bf_round
mov r13d, eax
jmp short loc_87F40
loc_87F21:
mov rax, rdx
dec rax
mov [rsp+98h+var_88], r15
mov [rsp+98h+var_40], r13
jz short loc_87F75
bsr rax, rax
xor rax, 3Fh
jmp short loc_87F7A
loc_87F3D:
xor r13d, r13d
loc_87F40:
or r13d, ebp
jmp loc_880C8
loc_87F48:
mov rcx, [r15+18h]
shl rcx, 6
lea r9, __bf_div
lea rdx, [rsp+98h+var_78]
mov rdi, rbx
mov rsi, r15
xor r8d, r8d
call bf_op2
loc_87F6A:
mov r13d, eax
or r13d, ebp
jmp loc_880AC
loc_87F75:
mov eax, 40h ; '@'
loc_87F7A:
mov [rsp+98h+var_98], rbx
add rax, rax
mov ecx, 81h
sub rcx, rax
mov [rsp+98h+var_48], rdx
cmp rdx, 2
mov eax, 1
cmovnb rax, rcx
mov [rsp+98h+var_50], rax
mov [rsp+98h+var_90], r12d
and r12d, 7
mov [rsp+98h+var_8C], r12d
mov r12d, 10h
loc_87FB4:
lea r15, [rsp+98h+var_78]
mov rbx, rbp
lea r14, [r12+rbp]
mov rax, [rsp+98h+var_50]
lea r13, [r14+rax]
mov rdi, r15
mov rsi, [rsp+98h+var_80]
mov rdx, [rsp+98h+var_48]
mov rcx, r13
mov r8d, 7E0h
call bf_pow_ui_ui
mov ebp, eax
mov rax, [rsp+98h+var_68]
mov [rsp+98h+var_38], rax
cmp [rsp+98h+var_40], 0
js short loc_88014
mov rdi, [rsp+98h+var_98]
mov rsi, [rsp+98h+var_88]
mov rdx, r15
mov rcx, r13
mov r8d, 7E0h
call bf_mul
jmp short loc_88035
loc_88014:
mov rdi, [rsp+98h+var_98]
mov rsi, [rsp+98h+var_88]
mov rdx, r15
mov rcx, r13
mov r8d, 7E0h
lea r9, __bf_div
call bf_op2
loc_88035:
mov r13d, eax
or r13d, ebp
test r13b, 20h
jnz short loc_880AC
and r13d, 10h
mov rbp, rbx
mov rbx, [rsp+98h+var_98]
jz short loc_8808A
mov rdi, rbx
mov rsi, rbp
mov edx, [rsp+98h+var_8C]
mov rcx, r14
call bf_can_round
test eax, eax
jnz short loc_8808A
mov rax, 7FFFFFFFFFFFFFFDh
cmp [rsp+98h+var_38], rax
jg short loc_8808A
mov rax, r12
shr rax, 3Fh
add rax, r12
sar rax, 1
add r12, rax
jmp loc_87FB4
loc_8808A:
mov rcx, [rbx+18h]
test rcx, rcx
jz short loc_880A7
mov rdi, rbx
mov rsi, rbp
mov edx, [rsp+98h+var_90]
xor r8d, r8d
call __bf_round
jmp short loc_880A9
loc_880A7:
xor eax, eax
loc_880A9:
or r13d, eax
loc_880AC:
mov rax, [rsp+98h+var_78]
test rax, rax
jz short loc_880C8
mov rsi, qword ptr [rsp+98h+var_60+8]
test rsi, rsi
jz short loc_880C8
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_880C8:
mov eax, r13d
add rsp, 68h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bf_mul_pow_radix(__int128 *a1, long long a2, long long a3, long long a4, long long a5, unsigned int a6)
{
long long v7; // rbp
unsigned long long v9; // rdx
int v10; // ebp
int v11; // eax
int v14; // ebp
unsigned long long v15; // rcx
unsigned int v16; // r13d
unsigned long long v17; // rax
unsigned long long v18; // rax
unsigned int v19; // r13d
long long v20; // rcx
long long v21; // rax
long long i; // r12
long long v23; // rbx
long long v24; // r14
long long v25; // r13
int v26; // ebp
int v27; // eax
int v28; // r13d
unsigned long long v29; // rcx
int v30; // eax
int v32; // [rsp+Ch] [rbp-8Ch]
__int128 v34; // [rsp+20h] [rbp-78h] BYREF
unsigned long long v35; // [rsp+30h] [rbp-68h]
__int128 v36; // [rsp+38h] [rbp-60h]
long long v37; // [rsp+48h] [rbp-50h]
unsigned long long v38; // [rsp+50h] [rbp-48h]
long long v39; // [rsp+58h] [rbp-40h]
long long v40; // [rsp+60h] [rbp-38h]
if ( !*(_QWORD *)(a2 + 24) )
return bf_set(a1, a2);
v7 = a5;
if ( a4 )
{
v9 = -a4;
if ( a4 > 0 )
v9 = a4;
*(_QWORD *)&v34 = *(_QWORD *)a1;
DWORD2(v34) = 0;
v35 = 0x8000000000000000LL;
v36 = 0LL;
if ( a5 == 0x3FFFFFFFFFFFFFFFLL )
{
v10 = bf_pow_ui_ui(&v34, a3, v9, 0x3FFFFFFFFFFFFFFFLL, 0LL);
if ( a4 < 0 )
v11 = bf_op2(
a1,
(__int128 *)a2,
&v34,
*(_QWORD *)(a2 + 24) << 6,
0LL,
(long long ( *)(__int128 *))_bf_div);
else
v11 = bf_mul(a1, a2, (long long)&v34, 0x3FFFFFFFFFFFFFFFLL, 0);
v19 = v10 | v11;
}
else
{
v39 = a4;
if ( v9 == 1 )
{
v18 = 64LL;
}
else
{
_BitScanReverse64(&v17, v9 - 1);
v18 = v17 ^ 0x3F;
}
v20 = 129 - 2 * v18;
v38 = v9;
v21 = 1LL;
if ( v9 >= 2 )
v21 = v20;
v37 = v21;
v32 = a6 & 7;
for ( i = 16LL; ; i += i / 2 )
{
v23 = v7;
v24 = i + v7;
v25 = i + v7 + v37;
v26 = bf_pow_ui_ui(&v34, a3, v38, v25, 2016LL);
v40 = v35;
v27 = v39 < 0
? bf_op2(a1, (__int128 *)a2, &v34, v25, 2016LL, (long long ( *)(__int128 *))_bf_div)
: bf_mul(a1, a2, (long long)&v34, v25, 0x7E0u);
v19 = v26 | v27;
if ( (((unsigned __int8)v26 | (unsigned __int8)v27) & 0x20) != 0 )
break;
v28 = v19 & 0x10;
v7 = v23;
if ( !v28 || bf_can_round(a1, v23, v32, v24) || v40 > 0x7FFFFFFFFFFFFFFDLL )
{
v29 = *((_QWORD *)a1 + 3);
if ( v29 )
v30 = _bf_round((long long)a1, v23, a6, v29, 0);
else
v30 = 0;
v19 = v30 | v28;
break;
}
}
}
if ( (_QWORD)v34 )
{
if ( *((_QWORD *)&v36 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v34 + 8))(*(_QWORD *)v34, *((_QWORD *)&v36 + 1), 0LL);
}
}
else
{
v14 = bf_set(a1, a2);
v15 = *((_QWORD *)a1 + 3);
if ( v15 )
v16 = _bf_round((long long)a1, a5, a6, v15, 0);
else
v16 = 0;
return v14 | v16;
}
return v19;
}
| bf_mul_pow_radix:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x68
MOV qword ptr [RSP + 0x18],RDX
MOV R15,RSI
MOV RBX,RDI
CMP qword ptr [RSI + 0x18],0x0
JZ 0x00187ed9
MOV R12D,R9D
MOV RBP,R8
MOV R13,RCX
TEST RCX,RCX
JZ 0x00187ef2
MOV RCX,0x7ffffffffffffffd
MOV R14,0x3fffffffffffffff
MOV RDX,R13
NEG RDX
CMOVS RDX,R13
MOV RAX,qword ptr [RBX]
MOV qword ptr [RSP + 0x20],RAX
MOV dword ptr [RSP + 0x28],0x0
LEA RAX,[RCX + 0x3]
MOV qword ptr [RSP + 0x30],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x38],XMM0
CMP RBP,R14
JNZ 0x00187f21
LEA RDI,[RSP + 0x20]
MOV RSI,qword ptr [RSP + 0x18]
MOV RCX,R14
XOR R8D,R8D
CALL 0x001880da
MOV EBP,EAX
TEST R13,R13
JS 0x00187f48
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV RSI,R15
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
JMP 0x00187f6a
LAB_00187ed9:
MOV RDI,RBX
MOV RSI,R15
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00184079
LAB_00187ef2:
MOV R14,RBP
MOV RDI,RBX
MOV RSI,R15
CALL 0x00184079
MOV EBP,EAX
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x00187f3d
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R12D
XOR R8D,R8D
CALL 0x00184212
MOV R13D,EAX
JMP 0x00187f40
LAB_00187f21:
MOV RAX,RDX
DEC RAX
MOV qword ptr [RSP + 0x10],R15
MOV qword ptr [RSP + 0x58],R13
JZ 0x00187f75
BSR RAX,RAX
XOR RAX,0x3f
JMP 0x00187f7a
LAB_00187f3d:
XOR R13D,R13D
LAB_00187f40:
OR R13D,EBP
JMP 0x001880c8
LAB_00187f48:
MOV RCX,qword ptr [R15 + 0x18]
SHL RCX,0x6
LEA R9,[0x186fdf]
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV RSI,R15
XOR R8D,R8D
CALL 0x00186f26
LAB_00187f6a:
MOV R13D,EAX
OR R13D,EBP
JMP 0x001880ac
LAB_00187f75:
MOV EAX,0x40
LAB_00187f7a:
MOV qword ptr [RSP],RBX
ADD RAX,RAX
MOV ECX,0x81
SUB RCX,RAX
MOV qword ptr [RSP + 0x50],RDX
CMP RDX,0x2
MOV EAX,0x1
CMOVNC RAX,RCX
MOV qword ptr [RSP + 0x48],RAX
MOV dword ptr [RSP + 0x8],R12D
AND R12D,0x7
MOV dword ptr [RSP + 0xc],R12D
MOV R12D,0x10
LAB_00187fb4:
LEA R15,[RSP + 0x20]
MOV RBX,RBP
LEA R14,[R12 + RBP*0x1]
MOV RAX,qword ptr [RSP + 0x48]
LEA R13,[R14 + RAX*0x1]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,qword ptr [RSP + 0x50]
MOV RCX,R13
MOV R8D,0x7e0
CALL 0x001880da
MOV EBP,EAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x60],RAX
CMP qword ptr [RSP + 0x58],0x0
JS 0x00188014
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,R15
MOV RCX,R13
MOV R8D,0x7e0
CALL 0x00185afd
JMP 0x00188035
LAB_00188014:
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,R15
MOV RCX,R13
MOV R8D,0x7e0
LEA R9,[0x186fdf]
CALL 0x00186f26
LAB_00188035:
MOV R13D,EAX
OR R13D,EBP
TEST R13B,0x20
JNZ 0x001880ac
AND R13D,0x10
MOV RBP,RBX
MOV RBX,qword ptr [RSP]
JZ 0x0018808a
MOV RDI,RBX
MOV RSI,RBP
MOV EDX,dword ptr [RSP + 0xc]
MOV RCX,R14
CALL 0x001845d3
TEST EAX,EAX
JNZ 0x0018808a
MOV RAX,0x7ffffffffffffffd
CMP qword ptr [RSP + 0x60],RAX
JG 0x0018808a
MOV RAX,R12
SHR RAX,0x3f
ADD RAX,R12
SAR RAX,0x1
ADD R12,RAX
JMP 0x00187fb4
LAB_0018808a:
MOV RCX,qword ptr [RBX + 0x18]
TEST RCX,RCX
JZ 0x001880a7
MOV RDI,RBX
MOV RSI,RBP
MOV EDX,dword ptr [RSP + 0x8]
XOR R8D,R8D
CALL 0x00184212
JMP 0x001880a9
LAB_001880a7:
XOR EAX,EAX
LAB_001880a9:
OR R13D,EAX
LAB_001880ac:
MOV RAX,qword ptr [RSP + 0x20]
TEST RAX,RAX
JZ 0x001880c8
MOV RSI,qword ptr [RSP + 0x40]
TEST RSI,RSI
JZ 0x001880c8
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_001880c8:
MOV EAX,R13D
ADD RSP,0x68
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong bf_mul_pow_radix(int8 *param_1,long param_2,int8 param_3,ulong param_4,
long param_5,uint param_6)
{
long lVar1;
uint uVar2;
uint uVar3;
int iVar4;
ulong uVar5;
ulong uVar6;
ulong uVar7;
long lVar8;
int8 *local_78;
int4 local_70;
long local_68;
int8 local_60;
long lStack_58;
long lStack_50;
ulong uStack_48;
ulong local_40;
long lStack_38;
if (*(long *)(param_2 + 0x18) == 0) {
uVar5 = bf_set(param_1,param_2);
return uVar5;
}
if (param_4 == 0) {
uVar2 = bf_set(param_1,param_2);
if (param_1[3] == 0) {
uVar3 = 0;
}
else {
uVar3 = __bf_round(param_1,param_5,param_6,param_1[3],0);
}
uVar3 = uVar3 | uVar2;
}
else {
uVar5 = -param_4;
if (0 < (long)param_4) {
uVar5 = param_4;
}
local_78 = (int8 *)*param_1;
local_70 = 0;
local_68 = -0x8000000000000000;
local_60 = 0;
lStack_58 = 0;
if (param_5 == 0x3fffffffffffffff) {
uVar2 = bf_pow_ui_ui(&local_78,param_3,uVar5,0x3fffffffffffffff,0);
if ((long)param_4 < 0) {
uVar3 = bf_op2(param_1,param_2,&local_78,*(long *)(param_2 + 0x18) << 6,0,__bf_div);
}
else {
uVar3 = bf_mul(param_1,param_2,&local_78,0x3fffffffffffffff,0);
}
uVar3 = uVar3 | uVar2;
}
else {
uVar6 = uVar5 - 1;
if (uVar6 == 0) {
uVar7 = 0x40;
}
else {
uVar7 = 0x3f;
if (uVar6 != 0) {
for (; uVar6 >> uVar7 == 0; uVar7 = uVar7 - 1) {
}
}
uVar7 = uVar7 ^ 0x3f;
}
lStack_50 = 1;
if (1 < uVar5) {
lStack_50 = uVar7 * -2 + 0x81;
}
lVar8 = 0x10;
uStack_48 = uVar5;
local_40 = param_4;
while( true ) {
lVar1 = lVar8 + param_5 + lStack_50;
uVar2 = bf_pow_ui_ui(&local_78,param_3,uStack_48,lVar1,0x7e0);
lStack_38 = local_68;
if ((long)local_40 < 0) {
uVar3 = bf_op2(param_1,param_2,&local_78,lVar1,0x7e0,__bf_div);
}
else {
uVar3 = bf_mul(param_1,param_2,&local_78,lVar1,0x7e0);
}
uVar3 = uVar3 | uVar2;
if ((uVar3 & 0x20) != 0) goto LAB_001880ac;
if ((uVar3 & 0x10) == 0) break;
iVar4 = bf_can_round(param_1,param_5,param_6 & 7,lVar8 + param_5);
if ((iVar4 != 0) || (0x7ffffffffffffffd < lStack_38)) break;
lVar8 = lVar8 + lVar8 / 2;
}
if (param_1[3] == 0) {
uVar2 = 0;
}
else {
uVar2 = __bf_round(param_1,param_5,param_6,param_1[3],0);
}
uVar3 = uVar3 & 0x10 | uVar2;
}
LAB_001880ac:
if ((local_78 != (int8 *)0x0) && (lStack_58 != 0)) {
(*(code *)local_78[1])(*local_78,lStack_58,0);
}
}
return (ulong)uVar3;
}
| |
43,742 | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&) | monkey531[P]llama/common/minja.hpp | static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) {
Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options);
auto tokens = parser.tokenize();
TemplateTokenIterator begin = tokens.begin();
auto it = begin;
TemplateTokenIterator end = tokens.end();
return parser.parseTemplate(begin, it, end, /* full= */ true);
} | O0 | cpp | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&):
subq $0xf8, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movq 0xe8(%rsp), %rsi
leaq 0x80(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x104fd0
movq 0x28(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x104f50
jmp 0x102fba
movq 0xe0(%rsp), %rdx
leaq 0xb0(%rsp), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x105000
jmp 0x102fd9
leaq 0xa0(%rsp), %rdi
callq 0x105170
leaq 0x80(%rsp), %rdi
callq 0x5b528
leaq 0x58(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x105180
jmp 0x103007
leaq 0x58(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x1080e0
movq %rax, 0x48(%rsp)
leaq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
leaq 0x48(%rsp), %rsi
callq 0x108110
movq (%rsp), %rdi
movq 0x50(%rsp), %rax
movq %rax, 0x40(%rsp)
callq 0x108150
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x30(%rsp), %rsi
callq 0x108110
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %r8
leaq 0xb0(%rsp), %rsi
leaq 0x40(%rsp), %rcx
movl $0x1, %r9d
callq 0x108180
jmp 0x103083
leaq 0x58(%rsp), %rdi
callq 0x10a610
leaq 0xb0(%rsp), %rdi
callq 0x10a670
movq 0x20(%rsp), %rax
addq $0xf8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x1030d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x105170
leaq 0x80(%rsp), %rdi
callq 0x5b528
jmp 0x103116
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x103109
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x10a610
leaq 0xb0(%rsp), %rdi
callq 0x10a670
movq 0x78(%rsp), %rdi
callq 0x5aba0
| _ZN5minja6Parser5parseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7OptionsE:
sub rsp, 0F8h
mov qword ptr [rsp+0F8h+var_E0], rdi; int
mov rax, rdi
mov qword ptr [rsp+0F8h+var_D8], rax; int
mov qword ptr [rsp+0F8h+var_8], rdi; int
mov [rsp+0F8h+var_10], rsi; void *
mov qword ptr [rsp+0F8h+var_18], rdx; int
mov rsi, [rsp+0F8h+var_10]
lea rdi, [rsp+0F8h+var_78]
mov [rsp+0F8h+var_D0], rdi; void *
call _ZN5minja18normalize_newlinesERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::normalize_newlines(std::string const&)
mov rsi, [rsp+0F8h+var_D0]
lea rdi, [rsp+0F8h+var_58]
call _ZSt11make_sharedINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS5_EESt10shared_ptrIT_EDpOT0_; std::make_shared<std::string,std::string>(std::string &&)
jmp short $+2
loc_102FBA:
mov rdx, qword ptr [rsp+0F8h+var_18]
lea rdi, [rsp+0F8h+var_48]
lea rsi, [rsp+0F8h+var_58]
call _ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE; minja::Parser::Parser(std::shared_ptr<std::string> const&,minja::Options const&)
jmp short $+2
loc_102FD9:
lea rdi, [rsp+0F8h+var_58]
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::shared_ptr<std::string>::~shared_ptr()
lea rdi, [rsp+0F8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0F8h+var_A0]; this
lea rsi, [rsp+0F8h+var_48]
call _ZN5minja6Parser8tokenizeEv; minja::Parser::tokenize(void)
jmp short $+2
loc_103007:
lea rdi, [rsp+0F8h+var_A0]
mov qword ptr [rsp+0F8h+var_F8], rdi; int
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EE5beginEv; std::vector<std::unique_ptr<minja::TemplateToken>>::begin(void)
mov qword ptr [rsp+0F8h+var_B0], rax; int
lea rdi, [rsp+0F8h+var_A8]
mov qword ptr [rsp+0F8h+var_F0], rdi; int
lea rsi, [rsp+0F8h+var_B0]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS3_EESt6vectorIS6_SaIS6_EEEC2IPS6_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISF_SE_EE7__valueESB_E6__typeEEE
mov rdi, qword ptr [rsp+0F8h+var_F8]
mov rax, qword ptr [rsp+0F8h+var_A8]
mov qword ptr [rsp+0F8h+var_B8], rax; int
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EE3endEv; std::vector<std::unique_ptr<minja::TemplateToken>>::end(void)
mov qword ptr [rsp+0F8h+var_C8], rax; int
lea rdi, [rsp+0F8h+var_C0]
mov qword ptr [rsp+0F8h+var_E8], rdi; int
lea rsi, [rsp+0F8h+var_C8]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS3_EESt6vectorIS6_SaIS6_EEEC2IPS6_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISF_SE_EE7__valueESB_E6__typeEEE
mov rdi, qword ptr [rsp+0F8h+var_E0]; int
mov rdx, qword ptr [rsp+0F8h+var_F0]; int
mov r8, qword ptr [rsp+0F8h+var_E8]; int
lea rsi, [rsp+0F8h+var_48]; int
lea rcx, [rsp+0F8h+var_B8]; int
mov r9d, 1; int
call _ZNK5minja6Parser13parseTemplateERKN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrINS_13TemplateTokenESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEERSD_SF_b; minja::Parser::parseTemplate(__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,bool)
jmp short $+2
loc_103083:
lea rdi, [rsp+0F8h+var_A0]
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
lea rdi, [rsp+0F8h+var_48]; this
call _ZN5minja6ParserD2Ev; minja::Parser::~Parser()
mov rax, qword ptr [rsp+0F8h+var_D8]
add rsp, 0F8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_1030D2
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_98]
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::shared_ptr<std::string>::~shared_ptr()
loc_1030D2:
lea rdi, [rsp+arg_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_103116
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_103109
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_50]
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
loc_103109:
lea rdi, [rsp+arg_A8]; this
call _ZN5minja6ParserD2Ev; minja::Parser::~Parser()
loc_103116:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
| long long minja::Parser::parse(long long a1, void *a2, long long a3)
{
int v3; // edx
int v4; // ecx
int v5; // r8d
int v6; // r9d
int v7; // ecx
int v8; // r8d
int v9; // r9d
int v11[2]; // [rsp+30h] [rbp-C8h] BYREF
int v12; // [rsp+38h] [rbp-C0h] BYREF
int v13[2]; // [rsp+40h] [rbp-B8h] BYREF
int v14[2]; // [rsp+48h] [rbp-B0h] BYREF
int v15[2]; // [rsp+50h] [rbp-A8h] BYREF
int v16[10]; // [rsp+58h] [rbp-A0h] BYREF
_BYTE v17[32]; // [rsp+80h] [rbp-78h] BYREF
_BYTE v18[16]; // [rsp+A0h] [rbp-58h] BYREF
int v19[12]; // [rsp+B0h] [rbp-48h] BYREF
int v20[2]; // [rsp+E0h] [rbp-18h]
void *v21; // [rsp+E8h] [rbp-10h]
int v22[2]; // [rsp+F0h] [rbp-8h]
*(_QWORD *)v22 = a1;
v21 = a2;
*(_QWORD *)v20 = a3;
minja::normalize_newlines(v17, a2);
std::make_shared<std::string,std::string>((unsigned int)v18, (unsigned int)v17, v3, v4, v5, v6);
minja::Parser::Parser((unsigned int)v19, (unsigned int)v18, v20[0], v7, v8, v9);
std::shared_ptr<std::string>::~shared_ptr(v18);
std::string::~string(v17);
minja::Parser::tokenize((minja::Parser *)v16);
*(_QWORD *)v14 = std::vector<std::unique_ptr<minja::TemplateToken>>::begin(v16, v19);
__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>::__normal_iterator<std::unique_ptr<minja::TemplateToken>*>(
v15,
v14);
*(_QWORD *)v13 = *(_QWORD *)v15;
*(_QWORD *)v11 = std::vector<std::unique_ptr<minja::TemplateToken>>::end(v16);
__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>::__normal_iterator<std::unique_ptr<minja::TemplateToken>*>(
&v12,
v11);
minja::Parser::parseTemplate(a1, v19, v15, v13, &v12, 1LL);
std::vector<std::unique_ptr<minja::TemplateToken>>::~vector(v16);
minja::Parser::~Parser((minja::Parser *)v19);
return a1;
}
| |||
43,743 | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&) | monkey531[P]llama/common/minja.hpp | static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) {
Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options);
auto tokens = parser.tokenize();
TemplateTokenIterator begin = tokens.begin();
auto it = begin;
TemplateTokenIterator end = tokens.end();
return parser.parseTemplate(begin, it, end, /* full= */ true);
} | O3 | cpp | minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x21a16
movq $0x0, 0x20(%rsp)
movl $0x30, %edi
callq 0x1a890
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0xaaac3(%rip), %rcx # 0x129260
addq $0x10, %rcx
movq %rcx, (%rax)
leaq 0x10(%rax), %rcx
movq %rax, %rdx
addq $0x20, %rdx
movq %rdx, 0x10(%rax)
movq (%rsp), %rsi
cmpq %r15, %rsi
je 0x7e7c9
movq %rsi, (%rcx)
movq 0x10(%rsp), %rsi
movq %rsi, (%rdx)
jmp 0x7e7d0
movups (%r15), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rsp), %rdx
movq %rdx, 0x18(%rax)
movq %r15, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x20(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %rcx, (%rsi)
leaq 0x40(%rsp), %rdi
movq %r14, %rdx
callq 0x7f672
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7e813
callq 0x6d1fe
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7e829
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8b0
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
callq 0x7f73c
movq (%rsp), %rax
movq 0x8(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x38(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x30(%rsp), %r8
movq %rsi, (%r8)
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x81dc2
movq %rsp, %rdi
callq 0x8307a
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x7e881
callq 0x6d1fe
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8307a
jmp 0x7e89e
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x7e8dc
callq 0x6d1fe
jmp 0x7e8dc
movq %rax, %rbx
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x7e8c6
callq 0x6d1fe
jmp 0x7e8c6
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x7e8dc
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1a8b0
movq %rbx, %rdi
callq 0x1af70
| _ZN5minja6Parser5parseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7OptionsE:
push r15
push r14
push rbx
sub rsp, 70h
mov r14, rdx
mov rbx, rdi
lea r15, [rsp+88h+var_78]
mov [r15-10h], r15
mov rax, [rsi]
mov rdx, [rsi+8]
add rdx, rax
mov rdi, rsp
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)
mov [rsp+88h+var_68], 0
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<std::string>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
lea rcx, [rax+10h]
mov rdx, rax
add rdx, 20h ; ' '
mov [rax+10h], rdx
mov rsi, [rsp+88h+var_88]
cmp rsi, r15
jz short loc_7E7C9
mov [rcx], rsi
mov rsi, [rsp+88h+var_78]
mov [rdx], rsi
jmp short loc_7E7D0
loc_7E7C9:
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rdx], xmm0
loc_7E7D0:
mov rdx, [rsp+88h+var_80]
mov [rax+18h], rdx
mov [rsp+88h+var_88], r15
mov [rsp+88h+var_80], 0
mov byte ptr [rsp+88h+var_78], 0
lea rsi, [rsp+88h+var_68]
mov [rsi+8], rax
mov [rsi], rcx
lea rdi, [rsp+88h+var_48]
mov rdx, r14
call _ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE; minja::Parser::Parser(std::shared_ptr<std::string> const&,minja::Options const&)
mov rdi, [rsp+88h+var_60]
test rdi, rdi
jz short loc_7E813
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7E813:
mov rdi, [rsp+88h+var_88]; void *
cmp rdi, r15
jz short loc_7E829
mov rsi, [rsp+88h+var_78]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7E829:
mov rdi, rsp; this
lea rsi, [rsp+88h+var_48]
call _ZN5minja6Parser8tokenizeEv; minja::Parser::tokenize(void)
mov rax, [rsp+88h+var_88]
mov rsi, [rsp+88h+var_80]
lea rdx, [rsp+88h+var_68]
mov [rdx], rax
lea rcx, [rsp+88h+var_50]
mov [rcx], rax
lea r8, [rsp+88h+var_58]
mov [r8], rsi
lea rsi, [rsp+88h+var_48]
mov rdi, rbx
mov r9d, 1
call _ZNK5minja6Parser13parseTemplateERKN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrINS_13TemplateTokenESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEERSD_SF_b; minja::Parser::parseTemplate(__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,bool)
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
mov rdi, [rsp+88h+var_40]
test rdi, rdi
jz short loc_7E881
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_7E881:
mov rax, rbx
add rsp, 70h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp
call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector()
jmp short loc_7E89E
mov rbx, rax
loc_7E89E:
mov rdi, [rsp+arg_40]
test rdi, rdi
jz short loc_7E8DC
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_7E8DC
mov rbx, rax
mov rdi, [rsp+arg_20]
test rdi, rdi
jz short loc_7E8C6
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_7E8C6
mov rbx, rax
loc_7E8C6:
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_7E8DC
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7E8DC:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Parser::parse(long long a1, long long a2, long long a3)
{
long long v4; // rax
_OWORD *v5; // rdx
void *v7; // [rsp+0h] [rbp-88h] BYREF
long long v8; // [rsp+8h] [rbp-80h]
__int128 v9; // [rsp+10h] [rbp-78h] BYREF
void *v10; // [rsp+20h] [rbp-68h] BYREF
volatile signed __int32 *v11; // [rsp+28h] [rbp-60h]
long long v12; // [rsp+30h] [rbp-58h] BYREF
void *v13; // [rsp+38h] [rbp-50h] BYREF
_BYTE v14[8]; // [rsp+40h] [rbp-48h] BYREF
volatile signed __int32 *v15; // [rsp+48h] [rbp-40h]
v7 = &v9;
std::string::_M_construct<char *>((long long)&v7, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8));
v10 = 0LL;
v4 = operator new(0x30uLL);
*(_QWORD *)(v4 + 8) = 0x100000001LL;
*(_QWORD *)v4 = &`vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<std::string>,(__gnu_cxx::_Lock_policy)2>
+ 2;
v5 = (_OWORD *)(v4 + 32);
*(_QWORD *)(v4 + 16) = v4 + 32;
if ( v7 == &v9 )
{
*v5 = v9;
}
else
{
*(_QWORD *)(v4 + 16) = v7;
*(_QWORD *)v5 = v9;
}
*(_QWORD *)(v4 + 24) = v8;
v7 = &v9;
v8 = 0LL;
LOBYTE(v9) = 0;
v11 = (volatile signed __int32 *)v4;
v10 = (void *)(v4 + 16);
minja::Parser::Parser(v14, &v10, a3);
if ( v11 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11);
if ( v7 != &v9 )
operator delete(v7, v9 + 1);
minja::Parser::tokenize((minja::Parser *)&v7);
v10 = v7;
v13 = v7;
v12 = v8;
minja::Parser::parseTemplate(a1, v14, &v10, &v13, &v12, 1LL);
std::vector<std::unique_ptr<minja::TemplateToken>>::~vector(&v7);
if ( v15 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15);
return a1;
}
| parse:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x70
MOV R14,RDX
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RAX,qword ptr [RSI]
MOV RDX,qword ptr [RSI + 0x8]
ADD RDX,RAX
MOV RDI,RSP
MOV RSI,RAX
CALL 0x00121a16
MOV qword ptr [RSP + 0x20],0x0
LAB_0017e77e:
MOV EDI,0x30
CALL 0x0011a890
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x229260]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
LEA RCX,[RAX + 0x10]
MOV RDX,RAX
ADD RDX,0x20
MOV qword ptr [RAX + 0x10],RDX
MOV RSI,qword ptr [RSP]
CMP RSI,R15
JZ 0x0017e7c9
MOV qword ptr [RCX],RSI
MOV RSI,qword ptr [RSP + 0x10]
MOV qword ptr [RDX],RSI
JMP 0x0017e7d0
LAB_0017e7c9:
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RDX],XMM0
LAB_0017e7d0:
MOV RDX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x18],RDX
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LEA RSI,[RSP + 0x20]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],RCX
LAB_0017e7f7:
LEA RDI,[RSP + 0x40]
MOV RDX,R14
CALL 0x0017f672
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x0017e813
CALL 0x0016d1fe
LAB_0017e813:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0017e829
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0011a8b0
LAB_0017e829:
MOV RDI,RSP
LEA RSI,[RSP + 0x40]
CALL 0x0017f73c
MOV RAX,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDX,[RSP + 0x20]
MOV qword ptr [RDX],RAX
LEA RCX,[RSP + 0x38]
MOV qword ptr [RCX],RAX
LEA R8,[RSP + 0x30]
MOV qword ptr [R8],RSI
LAB_0017e857:
LEA RSI,[RSP + 0x40]
MOV RDI,RBX
MOV R9D,0x1
CALL 0x00181dc2
LAB_0017e86a:
MOV RDI,RSP
CALL 0x0018307a
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
JZ 0x0017e881
CALL 0x0016d1fe
LAB_0017e881:
MOV RAX,RBX
ADD RSP,0x70
POP RBX
POP R14
POP R15
RET
|
/* minja::Parser::parse(std::__cxx11::string const&, minja::Options const&) */
Parser * __thiscall minja::Parser::parse(Parser *this,string *param_1,Options *param_2)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var1;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_88;
int8 local_80;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> local_78;
int7 uStack_77;
int8 uStack_70;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
int8 local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
Parser local_48 [8];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
local_88 = &local_78;
std::__cxx11::string::_M_construct<char*>
(&local_88,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
local_68 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
/* try { // try from 0017e77e to 0017e787 has its CatchHandler @ 0017e8c3 */
local_60 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x30);
*(int8 *)(local_60 + 8) = 0x100000001;
*(int ***)local_60 = &PTR___Sp_counted_ptr_inplace_00229270;
local_68 = local_60 + 0x10;
p_Var1 = local_60 + 0x20;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(local_60 + 0x10) = p_Var1;
if (local_88 == &local_78) {
*(ulong *)p_Var1 = CONCAT71(uStack_77,local_78);
*(int8 *)(local_60 + 0x28) = uStack_70;
}
else {
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)local_68 = local_88;
*(ulong *)p_Var1 = CONCAT71(uStack_77,local_78);
}
*(int8 *)(local_60 + 0x18) = local_80;
local_80 = 0;
local_78 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>)0x0;
/* try { // try from 0017e7f7 to 0017e803 has its CatchHandler @ 0017e8af */
local_88 = &local_78;
Parser(local_48,(shared_ptr *)&local_68,param_2);
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_88 != &local_78) {
operator_delete(local_88,CONCAT71(uStack_77,local_78) + 1);
}
/* try { // try from 0017e829 to 0017e835 has its CatchHandler @ 0017e89b */
tokenize();
local_68 = local_88;
local_50 = local_88;
local_58 = local_80;
/* try { // try from 0017e857 to 0017e869 has its CatchHandler @ 0017e88e */
parseTemplate(this,local_48,(__normal_iterator *)&local_68,SUB81(&local_50,0));
std::
vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>>
::~vector((vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>>
*)&local_88);
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
return this;
}
| |
43,744 | my_strnxfrm_uca_pad | eloqsql/strings/ctype-uca.c | static uchar *
my_strnxfrm_uca_pad(uchar *dst, uchar *de, int weight)
{
for ( ; dst < de; )
{
*dst++= weight >> 8;
if (dst < de)
*dst++= weight & 0xFF;
}
return dst;
} | O0 | c | my_strnxfrm_uca_pad:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x86cc9
movl -0x14(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x86cc7
movl -0x14(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
jmp 0x86c7f
movq -0x8(%rbp), %rax
popq %rbp
retq
nop
| my_strnxfrm_uca_pad:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
loc_86C7F:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_86CC9
mov eax, [rbp+var_14]
sar eax, 8
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_86CC7
mov eax, [rbp+var_14]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
loc_86CC7:
jmp short loc_86C7F
loc_86CC9:
mov rax, [rbp+var_8]
pop rbp
retn
| _BYTE * my_strnxfrm_uca_pad(_BYTE *a1, unsigned long long a2, __int16 a3)
{
_BYTE *v3; // rax
_BYTE *v4; // rax
while ( (unsigned long long)a1 < a2 )
{
v3 = a1++;
*v3 = HIBYTE(a3);
if ( (unsigned long long)a1 < a2 )
{
v4 = a1++;
*v4 = a3;
}
}
return a1;
}
| my_strnxfrm_uca_pad:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LAB_00186c7f:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00186cc9
MOV EAX,dword ptr [RBP + -0x14]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00186cc7
MOV EAX,dword ptr [RBP + -0x14]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
LAB_00186cc7:
JMP 0x00186c7f
LAB_00186cc9:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
int1 * my_strnxfrm_uca_pad(int1 *param_1,int1 *param_2,int4 param_3)
{
int1 *puVar1;
int1 *local_10;
puVar1 = param_1;
while (local_10 = puVar1, local_10 < param_2) {
puVar1 = local_10 + 1;
*local_10 = (char)((uint)param_3 >> 8);
if (puVar1 < param_2) {
*puVar1 = (char)param_3;
puVar1 = local_10 + 2;
}
}
return local_10;
}
| |
43,745 | psi_rwlock_tryrdlock | eloqsql/mysys/my_thr_init.c | ATTRIBUTE_COLD
int psi_rwlock_tryrdlock(mysql_rwlock_t *that, const char *file, uint line)
{
PSI_rwlock_locker_state state;
PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait)
(&state, that->m_psi, PSI_RWLOCK_TRYREADLOCK, file, line);
int result= rw_tryrdlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
} | O0 | c | psi_rwlock_tryrdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1c97ae(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1a0(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rsi
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
leaq -0x48(%rbp), %rdi
movl $0x2, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0xfa000
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xf6963
leaq 0x1c9768(%rip), %rax # 0x2c00b8
movq (%rax), %rax
movq 0x1a8(%rax), %rax
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %esi
callq *%rax
movl -0x54(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| psi_rwlock_tryrdlock:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A0h]
mov rcx, [rbp+var_8]
mov rsi, [rcx+90h]
mov rcx, [rbp+var_10]
mov r8d, [rbp+var_14]
lea rdi, [rbp+var_48]
mov edx, 2
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_tryrdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_F6963
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_F6963:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
| long long psi_rwlock_tryrdlock(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // [rsp+Ch] [rbp-54h]
long long v5; // [rsp+10h] [rbp-50h]
_BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF
unsigned int v7; // [rsp+4Ch] [rbp-14h]
long long v8; // [rsp+50h] [rbp-10h]
long long v9; // [rsp+58h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
v5 = ((long long ( *)(_BYTE *, _QWORD, long long, long long, _QWORD))PSI_server[52])(
v6,
*(_QWORD *)(a1 + 144),
2LL,
a2,
a3);
v4 = my_rw_tryrdlock(v9);
if ( v5 )
((void ( *)(long long, _QWORD))PSI_server[53])(v5, v4);
return v4;
}
| psi_rwlock_tryrdlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a0]
MOV RCX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RCX + 0x90]
MOV RCX,qword ptr [RBP + -0x10]
MOV R8D,dword ptr [RBP + -0x14]
LEA RDI,[RBP + -0x48]
MOV EDX,0x2
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa000
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x001f6963
LEA RAX,[0x3c00b8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x1a8]
MOV RDI,qword ptr [RBP + -0x50]
MOV ESI,dword ptr [RBP + -0x54]
CALL RAX
LAB_001f6963:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_tryrdlock(long param_1,int8 param_2,int4 param_3)
{
int4 uVar1;
long lVar2;
int1 local_50 [52];
int4 local_1c;
int8 local_18;
long local_10;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
lVar2 = (**(code **)(PSI_server + 0x1a0))
(local_50,*(int8 *)(param_1 + 0x90),2,param_2,param_3);
uVar1 = my_rw_tryrdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
| |
43,746 | check_longlong | eloqsql/strings/my_vsnprintf.c | static const char *check_longlong(const char *fmt, uint *have_longlong)
{
*have_longlong= 0;
if (*fmt == 'l')
{
fmt++;
if (*fmt != 'l')
*have_longlong= (sizeof(long) == sizeof(longlong));
else
{
fmt++;
*have_longlong= 1;
}
}
else if (*fmt == 'z')
{
fmt++;
*have_longlong= (sizeof(size_t) == sizeof(longlong));
}
else if (*fmt == 'p')
*have_longlong= (sizeof(void *) == sizeof(longlong));
return fmt;
} | O0 | c | check_longlong:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, (%rax)
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
jne 0x761ce
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x6c, %eax
je 0x761b6
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
jmp 0x761cc
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
jmp 0x7620c
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x7a, %eax
jne 0x761f2
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
jmp 0x7620a
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x70, %eax
jne 0x76208
movq -0x10(%rbp), %rax
movl $0x1, (%rax)
jmp 0x7620a
jmp 0x7620c
movq -0x8(%rbp), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| check_longlong:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
mov dword ptr [rax], 0
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 6Ch ; 'l'
jnz short loc_761CE
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 6Ch ; 'l'
jz short loc_761B6
mov rax, [rbp+var_10]
mov dword ptr [rax], 1
jmp short loc_761CC
loc_761B6:
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov dword ptr [rax], 1
loc_761CC:
jmp short loc_7620C
loc_761CE:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 7Ah ; 'z'
jnz short loc_761F2
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
mov rax, [rbp+var_10]
mov dword ptr [rax], 1
jmp short loc_7620A
loc_761F2:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 70h ; 'p'
jnz short loc_76208
mov rax, [rbp+var_10]
mov dword ptr [rax], 1
loc_76208:
jmp short $+2
loc_7620A:
jmp short $+2
loc_7620C:
mov rax, [rbp+var_8]
pop rbp
retn
| _BYTE * check_longlong(_BYTE *a1, _DWORD *a2)
{
_BYTE *v3; // [rsp+8h] [rbp-8h]
v3 = a1;
*a2 = 0;
switch ( *a1 )
{
case 'l':
v3 = a1 + 1;
if ( a1[1] == 108 )
v3 = a1 + 2;
*a2 = 1;
break;
case 'z':
v3 = a1 + 1;
*a2 = 1;
break;
case 'p':
*a2 = 1;
break;
}
return v3;
}
| check_longlong:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x6c
JNZ 0x001761ce
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x6c
JZ 0x001761b6
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x1
JMP 0x001761cc
LAB_001761b6:
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x1
LAB_001761cc:
JMP 0x0017620c
LAB_001761ce:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x7a
JNZ 0x001761f2
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x1
JMP 0x0017620a
LAB_001761f2:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x70
JNZ 0x00176208
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],0x1
LAB_00176208:
JMP 0x0017620a
LAB_0017620a:
JMP 0x0017620c
LAB_0017620c:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
char * check_longlong(char *param_1,int4 *param_2)
{
char *local_10;
*param_2 = 0;
if (*param_1 == 'l') {
local_10 = param_1 + 1;
if (*local_10 == 'l') {
local_10 = param_1 + 2;
*param_2 = 1;
}
else {
*param_2 = 1;
}
}
else if (*param_1 == 'z') {
local_10 = param_1 + 1;
*param_2 = 1;
}
else {
local_10 = param_1;
if (*param_1 == 'p') {
*param_2 = 1;
}
}
return local_10;
}
| |
43,747 | mariadb_compress_alloc | eloqsql/libmariadb/libmariadb/ma_compress.c | unsigned char *_mariadb_compress_alloc(NET *net, const unsigned char *packet, size_t *len, size_t *complen)
{
unsigned char *compbuf;
*complen = *len * 120 / 100 + 12;
if (!(compbuf = (unsigned char *) malloc(*complen)))
return 0; /* Not enough memory */
if (compression_plugin(net)->compress(compression_ctx(net), (void *)compbuf, complen, (void *)packet, *len))
{
free(compbuf);
return 0;
}
if (*complen >= *len)
{
*complen=0;
free(compbuf);
return 0;
}
swap(size_t,*len,*complen); /* *len is now packet length */
return compbuf;
} | O3 | c | mariadb_compress_alloc:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
imulq $0x78, (%rdx), %rax
shrq $0x2, %rax
movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3
mulq %rcx
shrq $0x2, %rdx
leaq 0xc(%rdx), %rdi
movq %rdi, (%rbx)
callq 0x13630
testq %rax, %rax
je 0x24f58
movq %rax, %r14
movq 0x2a0(%r13), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rax
movq (%r15), %r8
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq *0x68(%rax)
testb %al, %al
jne 0x24f50
movq (%rbx), %rax
movq (%r15), %rcx
cmpq %rcx, %rax
jae 0x24f49
movq %rax, (%r15)
movq %rcx, (%rbx)
jmp 0x24f5b
movq $0x0, (%rbx)
movq %r14, %rdi
callq 0x135a0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _mariadb_compress_alloc:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rdx
mov r12, rsi
mov r13, rdi
imul rax, [rdx], 78h ; 'x'
shr rax, 2
mov rcx, 28F5C28F5C28F5C3h
mul rcx
shr rdx, 2
lea rdi, [rdx+0Ch]
mov [rbx], rdi
call _malloc
test rax, rax
jz short loc_24F58
mov r14, rax
mov rax, [r13+2A0h]
mov rdi, [rax+8]
mov rax, [rax+10h]
mov r8, [r15]
mov rsi, r14
mov rdx, rbx
mov rcx, r12
call qword ptr [rax+68h]
test al, al
jnz short loc_24F50
mov rax, [rbx]
mov rcx, [r15]
cmp rax, rcx
jnb short loc_24F49
mov [r15], rax
mov [rbx], rcx
jmp short loc_24F5B
loc_24F49:
mov qword ptr [rbx], 0
loc_24F50:
mov rdi, r14
call _free
loc_24F58:
xor r14d, r14d
loc_24F5B:
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long mariadb_compress_alloc(long long a1, long long a2, unsigned long long *a3, unsigned long long *a4)
{
unsigned long long v7; // rdi
long long v8; // rax
long long v9; // r14
unsigned long long v10; // rcx
v7 = 120 * *a3 / 0x64 + 12;
*a4 = v7;
v8 = malloc(v7);
if ( !v8 )
return 0LL;
v9 = v8;
if ( (*(unsigned __int8 ( **)(_QWORD, long long, unsigned long long *, long long, unsigned long long))(*(_QWORD *)(*(_QWORD *)(a1 + 672) + 16LL) + 104LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 672) + 8LL),
v8,
a4,
a2,
*a3) )
{
LABEL_6:
free(v9);
return 0LL;
}
v10 = *a3;
if ( *a4 >= *a3 )
{
*a4 = 0LL;
goto LABEL_6;
}
*a3 = *a4;
*a4 = v10;
return v9;
}
| _mariadb_compress_alloc:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
IMUL RAX,qword ptr [RDX],0x78
SHR RAX,0x2
MOV RCX,0x28f5c28f5c28f5c3
MUL RCX
SHR RDX,0x2
LEA RDI,[RDX + 0xc]
MOV qword ptr [RBX],RDI
CALL 0x00113630
TEST RAX,RAX
JZ 0x00124f58
MOV R14,RAX
MOV RAX,qword ptr [R13 + 0x2a0]
MOV RDI,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV R8,qword ptr [R15]
MOV RSI,R14
MOV RDX,RBX
MOV RCX,R12
CALL qword ptr [RAX + 0x68]
TEST AL,AL
JNZ 0x00124f50
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [R15]
CMP RAX,RCX
JNC 0x00124f49
MOV qword ptr [R15],RAX
MOV qword ptr [RBX],RCX
JMP 0x00124f5b
LAB_00124f49:
MOV qword ptr [RBX],0x0
LAB_00124f50:
MOV RDI,R14
CALL 0x001135a0
LAB_00124f58:
XOR R14D,R14D
LAB_00124f5b:
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void * _mariadb_compress_alloc(long param_1,int8 param_2,ulong *param_3,size_t *param_4)
{
size_t __size;
ulong uVar1;
char cVar2;
void *__ptr;
__size = (*param_3 * 0x78) / 100 + 0xc;
*param_4 = __size;
__ptr = malloc(__size);
if (__ptr != (void *)0x0) {
cVar2 = (**(code **)(*(long *)(*(long *)(param_1 + 0x2a0) + 0x10) + 0x68))
(*(int8 *)(*(long *)(param_1 + 0x2a0) + 8),__ptr,param_4,param_2,
*param_3);
if (cVar2 == '\0') {
uVar1 = *param_3;
if (*param_4 < uVar1) {
*param_3 = *param_4;
*param_4 = uVar1;
return __ptr;
}
*param_4 = 0;
}
free(__ptr);
}
return (void *)0x0;
}
| |
43,748 | minja::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/./minja.hpp | Value(const std::string & v) : primitive_(v) {} | O3 | cpp | minja::Value::Value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x40, %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
callq 0x2b29c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x425e5
callq 0x2f80e
movq %rbx, %rdi
callq 0x18f18
movq %rbx, %rdi
callq 0x3faee
movq %r14, %rdi
callq 0x18b90
nop
| _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r14
push rbx
push rax
mov rbx, rdi
add rdi, 40h ; '@'
xorps xmm0, xmm0
movups xmmword ptr [rbx+30h], xmm0
movups xmmword ptr [rbx+20h], xmm0
movups xmmword ptr [rbx+10h], xmm0
movups xmmword ptr [rbx], xmm0
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
add rsp, 8
pop rbx
pop r14
retn
mov r14, rax
mov rdi, [rbx+38h]
test rdi, rdi
jz short loc_425E5
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_425E5:
mov rdi, rbx
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE_cold_1; minja::Value::Value(std::string const&) [clone]
mov rdi, rbx
call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this()
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::Value(_OWORD *a1)
{
a1[3] = 0LL;
a1[2] = 0LL;
a1[1] = 0LL;
*a1 = 0LL;
return ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_(a1 + 4);
}
| Value:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
ADD RDI,0x40
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x30],XMM0
MOVUPS xmmword ptr [RBX + 0x20],XMM0
MOVUPS xmmword ptr [RBX + 0x10],XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_001425c7:
CALL 0x0012b29c
LAB_001425cc:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::Value::Value(std::__cxx11::string const&) */
void __thiscall minja::Value::Value(Value *this,string *param_1)
{
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
/* try { // try from 001425c7 to 001425cb has its CatchHandler @ 001425d4 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
(this + 0x40);
return;
}
| |
43,749 | js_async_generator_next | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_next(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv,
int magic)
{
JSAsyncGeneratorData *s = JS_GetOpaque(this_val, JS_CLASS_ASYNC_GENERATOR);
JSValue promise, resolving_funcs[2];
JSAsyncGeneratorRequest *req;
promise = JS_NewPromiseCapability(ctx, resolving_funcs);
if (JS_IsException(promise))
return JS_EXCEPTION;
if (!s) {
JSValue err, res2;
JS_ThrowTypeError(ctx, "not an AsyncGenerator object");
err = JS_GetException(ctx);
res2 = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED,
1, &err);
JS_FreeValue(ctx, err);
JS_FreeValue(ctx, res2);
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
return promise;
}
req = js_mallocz(ctx, sizeof(*req));
if (!req)
goto fail;
req->completion_type = magic;
req->result = js_dup(argv[0]);
req->promise = js_dup(promise);
req->resolving_funcs[0] = resolving_funcs[0];
req->resolving_funcs[1] = resolving_funcs[1];
list_add_tail(&req->link, &s->queue);
if (s->state != JS_ASYNC_GENERATOR_STATE_EXECUTING) {
js_async_generator_resume_next(ctx, s);
}
return promise;
fail:
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
JS_FreeValue(ctx, promise);
return JS_EXCEPTION;
} | O1 | c | js_async_generator_next:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %r9d, %ebp
movq %r8, %r13
movq %rdi, %r15
movq %rsi, 0x40(%rsp)
cmpl $-0x1, %edx
jne 0x55481
movq 0x40(%rsp), %rax
cmpw $0x39, 0x6(%rax)
jne 0x55481
movq 0x30(%rax), %r12
jmp 0x55484
xorl %r12d, %r12d
xorl %ebx, %ebx
leaq 0x40(%rsp), %rsi
movl $0x3, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x362b6
cmpl $0x6, %edx
jne 0x554ac
xorl %r14d, %r14d
movl $0x6, %edx
jmp 0x555a4
movq %rax, %r14
movq %rdx, 0x28(%rsp)
testq %r12, %r12
jne 0x555bc
leaq 0x4af1e(%rip), %rsi # 0xa03e2
xorl %ebx, %ebx
movq %r15, %rdi
xorl %eax, %eax
callq 0x22567
movq 0x18(%r15), %rax
movups 0xf0(%rax), %xmm0
movl %ebx, 0xf0(%rax)
movq $0x4, 0xf8(%rax)
movq %r14, 0x68(%rsp)
leaq 0x70(%rsp), %r14
movaps %xmm0, (%r14)
movq 0x50(%rsp), %r12
movq 0x58(%rsp), %r13
movl %ebx, 0x30(%rsp)
movq $0x3, 0x38(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r14, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movl $0x3, %r8d
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x284ca
movq %rax, %rbp
movq %rdx, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x68(%rsp), %r14
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1d8c6
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rbx
andq %rax, %rbx
movq 0x28(%rsp), %rdx
movl %r14d, %eax
orq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x58, %esi
movq %r15, %rdi
callq 0xee06
testq %rax, %rax
je 0x5566d
movl %ebp, 0x10(%rax)
movq (%r13), %rcx
movq 0x8(%r13), %rdx
movq %rcx, 0x30(%rsp)
cmpl $-0x9, %edx
jb 0x555ee
movq 0x30(%rsp), %rsi
incl (%rsi)
movq %rcx, 0x18(%rax)
movq %rdx, 0x20(%rax)
movq %r14, 0x30(%rsp)
movq 0x28(%rsp), %rdx
cmpl $-0x9, %edx
jb 0x5560c
movq 0x30(%rsp), %rcx
incl (%rcx)
movq %r14, 0x28(%rax)
movq %rdx, 0x30(%rax)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x38(%rax)
movaps 0x50(%rsp), %xmm0
movups %xmm0, 0x48(%rax)
leaq 0x78(%r12), %rcx
movq 0x78(%r12), %rsi
movq %rax, 0x8(%rsi)
movq %rsi, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x78(%r12)
cmpl $0x3, 0x8(%r12)
je 0x55658
movq %r15, %rdi
movq %r12, %rsi
callq 0x556ae
movq 0x28(%rsp), %rdx
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rbx
andq %rax, %rbx
jmp 0x555a4
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x18(%r15), %rdi
callq 0x1d8c6
movq 0x18(%r15), %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
callq 0x1d8c6
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x554a2
| js_async_generator_next:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov ebp, r9d
mov r13, r8
mov r15, rdi
mov qword ptr [rsp+0B8h+var_78], rsi
cmp edx, 0FFFFFFFFh
jnz short loc_55481
mov rax, qword ptr [rsp+0B8h+var_78]
cmp word ptr [rax+6], 39h ; '9'
jnz short loc_55481
mov r12, [rax+30h]
jmp short loc_55484
loc_55481:
xor r12d, r12d
loc_55484:
xor ebx, ebx
lea rsi, [rsp+0B8h+var_78]
mov ecx, 3
mov rdi, r15
xor edx, edx
call js_new_promise_capability
cmp edx, 6
jnz short loc_554AC
xor r14d, r14d
loc_554A2:
mov edx, 6
jmp loc_555A4
loc_554AC:
mov r14, rax
mov [rsp+0B8h+var_90], rdx
test r12, r12
jnz loc_555BC
lea rsi, aNotAnAsyncgene; "not an AsyncGenerator object"
xor ebx, ebx
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov rax, [r15+18h]
movups xmm0, xmmword ptr [rax+0F0h]
mov [rax+0F0h], ebx
mov qword ptr [rax+0F8h], 4
mov [rsp+0B8h+var_50], r14
lea r14, [rsp+0B8h+var_48]
movaps xmmword ptr [r14], xmm0
mov r12, qword ptr [rsp+0B8h+var_68]
mov r13, qword ptr [rsp+0B8h+var_68+8]
mov dword ptr [rsp+0B8h+var_88], ebx
mov qword ptr [rsp+0B8h+var_88+8], 3
movups xmm0, [rsp+0B8h+var_88]
movups [rsp+0B8h+var_B8], xmm0
mov [rsp+0B8h+var_A8], r14
mov [rsp+0B8h+var_A0], 2
mov r8d, 3
mov rdi, r15
mov rsi, r12
mov rdx, r13
xor ecx, ecx
mov r9d, 1
call JS_CallInternal
mov rbp, rax
mov rbx, rdx
mov rsi, [r14]
mov rdx, [r14+8]
mov r14, [rsp+0B8h+var_50]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, rbp
mov rdx, rbx
call JS_FreeValueRT
mov rsi, qword ptr [rsp+0B8h+var_78]
mov rdx, qword ptr [rsp+0B8h+var_78+8]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, r12
mov rdx, r13
call JS_FreeValueRT
mov rax, 0FFFFFFFF00000000h
mov rbx, r14
and rbx, rax
mov rdx, [rsp+0B8h+var_90]
loc_555A4:
mov eax, r14d
or rax, rbx
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_555BC:
mov esi, 58h ; 'X'
mov rdi, r15
call js_mallocz
test rax, rax
jz loc_5566D
mov [rax+10h], ebp
mov rcx, [r13+0]
mov rdx, [r13+8]
mov qword ptr [rsp+0B8h+var_88], rcx
cmp edx, 0FFFFFFF7h
jb short loc_555EE
mov rsi, qword ptr [rsp+0B8h+var_88]
inc dword ptr [rsi]
loc_555EE:
mov [rax+18h], rcx
mov [rax+20h], rdx
mov qword ptr [rsp+0B8h+var_88], r14
mov rdx, [rsp+0B8h+var_90]
cmp edx, 0FFFFFFF7h
jb short loc_5560C
mov rcx, qword ptr [rsp+0B8h+var_88]
inc dword ptr [rcx]
loc_5560C:
mov [rax+28h], r14
mov [rax+30h], rdx
movaps xmm0, [rsp+0B8h+var_78]
movups xmmword ptr [rax+38h], xmm0
movaps xmm0, [rsp+0B8h+var_68]
movups xmmword ptr [rax+48h], xmm0
lea rcx, [r12+78h]
mov rsi, [r12+78h]
mov [rsi+8], rax
mov [rax], rsi
mov [rax+8], rcx
mov [r12+78h], rax
cmp dword ptr [r12+8], 3
jz short loc_55658
mov rdi, r15
mov rsi, r12
call js_async_generator_resume_next
mov rdx, [rsp+0B8h+var_90]
loc_55658:
mov rax, 0FFFFFFFF00000000h
mov rbx, r14
and rbx, rax
jmp loc_555A4
loc_5566D:
mov rsi, qword ptr [rsp+0B8h+var_78]
mov rdx, qword ptr [rsp+0B8h+var_78+8]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rsi, qword ptr [rsp+0B8h+var_68]
mov rdx, qword ptr [rsp+0B8h+var_68+8]
mov rdi, [r15+18h]
call JS_FreeValueRT
mov rdi, [r15+18h]
mov rsi, r14
mov rdx, [rsp+0B8h+var_90]
call JS_FreeValueRT
xor r14d, r14d
xor ebx, ebx
jmp loc_554A2
| unsigned long long js_async_generator_next(
long long *a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
_QWORD *a13,
int a14)
{
long long v16; // r12
unsigned long long v17; // rbx
unsigned long long v18; // rax
long long v19; // rdx
long long v20; // rcx
long long v21; // r8
long long v22; // r9
__m128 v23; // xmm4
__m128 v24; // xmm5
unsigned long long v25; // r14
long long v26; // rax
__int128 v27; // xmm0
__int128 v28; // kr00_16
__m128 v29; // xmm4
__m128 v30; // xmm5
_DWORD *v31; // rbp
long long v32; // rdx
long long v33; // rbx
long long v35; // rax
_DWORD *v36; // rcx
long long v37; // rdx
long long v38; // rsi
char v39; // [rsp+0h] [rbp-B8h]
long long v40; // [rsp+28h] [rbp-90h]
__m128 v41; // [rsp+30h] [rbp-88h]
__int128 v42; // [rsp+40h] [rbp-78h] BYREF
__int128 v43; // [rsp+50h] [rbp-68h]
_DWORD *v44; // [rsp+68h] [rbp-50h]
__int128 v45; // [rsp+70h] [rbp-48h] BYREF
*(_QWORD *)&v42 = a2;
if ( a3 == -1 && *(_WORD *)(v42 + 6) == 57 )
v16 = *(_QWORD *)(v42 + 48);
else
v16 = 0LL;
v17 = 0LL;
v18 = js_new_promise_capability(a1, (long long)&v42, 0LL, 3LL, a4, a5, a6, a7, a8, a9, a10, a11);
if ( (_DWORD)v19 == 6 )
{
LODWORD(v25) = 0;
}
else
{
v25 = v18;
v40 = v19;
if ( v16 )
{
v35 = js_mallocz((long long)a1, 0x58uLL);
if ( v35 )
{
*(_DWORD *)(v35 + 16) = a14;
v36 = (_DWORD *)*a13;
v37 = a13[1];
if ( (unsigned int)v37 >= 0xFFFFFFF7 )
++*(_DWORD *)*a13;
*(_QWORD *)(v35 + 24) = v36;
*(_QWORD *)(v35 + 32) = v37;
if ( (unsigned int)v40 >= 0xFFFFFFF7 )
++*(_DWORD *)v25;
*(_QWORD *)(v35 + 40) = v25;
*(_QWORD *)(v35 + 48) = v40;
*(_OWORD *)(v35 + 56) = v42;
*(_OWORD *)(v35 + 72) = v43;
v38 = *(_QWORD *)(v16 + 120);
*(_QWORD *)(v38 + 8) = v35;
*(_QWORD *)v35 = v38;
*(_QWORD *)(v35 + 8) = v16 + 120;
*(_QWORD *)(v16 + 120) = v35;
if ( *(_DWORD *)(v16 + 8) != 3 )
js_async_generator_resume_next(a1, v16);
v17 = v25 & 0xFFFFFFFF00000000LL;
}
else
{
JS_FreeValueRT(a1[3], (_DWORD *)v42, *((long long *)&v42 + 1));
JS_FreeValueRT(a1[3], (_DWORD *)v43, *((long long *)&v43 + 1));
JS_FreeValueRT(a1[3], (_DWORD *)v25, v40);
LODWORD(v25) = 0;
v17 = 0LL;
}
}
else
{
JS_ThrowTypeError(
(long long)a1,
(long long)"not an AsyncGenerator object",
v19,
v20,
v21,
v22,
a4,
a5,
a6,
a7,
v23,
v24,
a10,
a11,
v39);
v26 = a1[3];
v27 = *(_OWORD *)(v26 + 240);
*(_DWORD *)(v26 + 240) = 0;
*(_QWORD *)(v26 + 248) = 4LL;
v44 = (_DWORD *)v25;
v45 = v27;
v28 = v43;
v41.m128_i32[0] = 0;
v41.m128_u64[1] = 3LL;
v31 = (_DWORD *)JS_CallInternal(
(long long)a1,
v43,
*((long long *)&v43 + 1),
0LL,
3LL,
1LL,
v41,
a5,
a6,
a7,
v29,
v30,
a10,
a11,
v41.m128_i8[0],
3,
(long long)&v45,
2u);
v33 = v32;
v25 = (unsigned long long)v44;
JS_FreeValueRT(a1[3], (_DWORD *)v45, *((long long *)&v45 + 1));
JS_FreeValueRT(a1[3], v31, v33);
JS_FreeValueRT(a1[3], (_DWORD *)v42, *((long long *)&v42 + 1));
JS_FreeValueRT(a1[3], (_DWORD *)v28, *((long long *)&v28 + 1));
v17 = v25 & 0xFFFFFFFF00000000LL;
}
}
return v17 | (unsigned int)v25;
}
| js_async_generator_next:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV EBP,R9D
MOV R13,R8
MOV R15,RDI
MOV qword ptr [RSP + 0x40],RSI
CMP EDX,-0x1
JNZ 0x00155481
MOV RAX,qword ptr [RSP + 0x40]
CMP word ptr [RAX + 0x6],0x39
JNZ 0x00155481
MOV R12,qword ptr [RAX + 0x30]
JMP 0x00155484
LAB_00155481:
XOR R12D,R12D
LAB_00155484:
XOR EBX,EBX
LEA RSI,[RSP + 0x40]
MOV ECX,0x3
MOV RDI,R15
XOR EDX,EDX
CALL 0x001362b6
CMP EDX,0x6
JNZ 0x001554ac
XOR R14D,R14D
LAB_001554a2:
MOV EDX,0x6
JMP 0x001555a4
LAB_001554ac:
MOV R14,RAX
MOV qword ptr [RSP + 0x28],RDX
TEST R12,R12
JNZ 0x001555bc
LEA RSI,[0x1a03e2]
XOR EBX,EBX
MOV RDI,R15
XOR EAX,EAX
CALL 0x00122567
MOV RAX,qword ptr [R15 + 0x18]
MOVUPS XMM0,xmmword ptr [RAX + 0xf0]
MOV dword ptr [RAX + 0xf0],EBX
MOV qword ptr [RAX + 0xf8],0x4
MOV qword ptr [RSP + 0x68],R14
LEA R14,[RSP + 0x70]
MOVAPS xmmword ptr [R14],XMM0
MOV R12,qword ptr [RSP + 0x50]
MOV R13,qword ptr [RSP + 0x58]
MOV dword ptr [RSP + 0x30],EBX
MOV qword ptr [RSP + 0x38],0x3
MOVUPS XMM0,xmmword ptr [RSP + 0x30]
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],R14
MOV dword ptr [RSP + 0x18],0x2
MOV R8D,0x3
MOV RDI,R15
MOV RSI,R12
MOV RDX,R13
XOR ECX,ECX
MOV R9D,0x1
CALL 0x001284ca
MOV RBP,RAX
MOV RBX,RDX
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV R14,qword ptr [RSP + 0x68]
MOV RDI,qword ptr [R15 + 0x18]
CALL 0x0011d8c6
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,RBP
MOV RDX,RBX
CALL 0x0011d8c6
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [R15 + 0x18]
CALL 0x0011d8c6
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R12
MOV RDX,R13
CALL 0x0011d8c6
MOV RAX,-0x100000000
MOV RBX,R14
AND RBX,RAX
MOV RDX,qword ptr [RSP + 0x28]
LAB_001555a4:
MOV EAX,R14D
OR RAX,RBX
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001555bc:
MOV ESI,0x58
MOV RDI,R15
CALL 0x0010ee06
TEST RAX,RAX
JZ 0x0015566d
MOV dword ptr [RAX + 0x10],EBP
MOV RCX,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
MOV qword ptr [RSP + 0x30],RCX
CMP EDX,-0x9
JC 0x001555ee
MOV RSI,qword ptr [RSP + 0x30]
INC dword ptr [RSI]
LAB_001555ee:
MOV qword ptr [RAX + 0x18],RCX
MOV qword ptr [RAX + 0x20],RDX
MOV qword ptr [RSP + 0x30],R14
MOV RDX,qword ptr [RSP + 0x28]
CMP EDX,-0x9
JC 0x0015560c
MOV RCX,qword ptr [RSP + 0x30]
INC dword ptr [RCX]
LAB_0015560c:
MOV qword ptr [RAX + 0x28],R14
MOV qword ptr [RAX + 0x30],RDX
MOVAPS XMM0,xmmword ptr [RSP + 0x40]
MOVUPS xmmword ptr [RAX + 0x38],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x50]
MOVUPS xmmword ptr [RAX + 0x48],XMM0
LEA RCX,[R12 + 0x78]
MOV RSI,qword ptr [R12 + 0x78]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RAX],RSI
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [R12 + 0x78],RAX
CMP dword ptr [R12 + 0x8],0x3
JZ 0x00155658
MOV RDI,R15
MOV RSI,R12
CALL 0x001556ae
MOV RDX,qword ptr [RSP + 0x28]
LAB_00155658:
MOV RAX,-0x100000000
MOV RBX,R14
AND RBX,RAX
JMP 0x001555a4
LAB_0015566d:
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [R15 + 0x18]
CALL 0x0011d8c6
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV RDI,qword ptr [R15 + 0x18]
CALL 0x0011d8c6
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0011d8c6
XOR R14D,R14D
XOR EBX,EBX
JMP 0x001554a2
|
int1 [16]
js_async_generator_next
(long param_1,long param_2,int param_3,int8 param_4,int8 *param_5,
int4 param_6)
{
int *piVar1;
long lVar2;
long *plVar3;
int8 uVar4;
ulong uVar5;
long lVar6;
int *piVar7;
int1 auVar8 [16];
long local_78;
long lStack_70;
int4 local_68;
int4 uStack_64;
int4 uStack_60;
int4 uStack_5c;
int *local_50;
int8 local_48;
int8 uStack_40;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x39)) {
lVar6 = *(long *)(param_2 + 0x30);
}
else {
lVar6 = 0;
}
local_78 = param_2;
auVar8 = js_new_promise_capability(param_1,&local_78,0,3);
uVar4 = auVar8._8_8_;
piVar7 = auVar8._0_8_;
if (auVar8._8_4_ != 6) {
if (lVar6 == 0) {
JS_ThrowTypeError(param_1,"not an AsyncGenerator object");
lVar6 = *(long *)(param_1 + 0x18);
local_48 = *(int8 *)(lVar6 + 0xf0);
uStack_40 = *(int8 *)(lVar6 + 0xf8);
*(int4 *)(lVar6 + 0xf0) = 0;
*(int8 *)(lVar6 + 0xf8) = 4;
local_50 = piVar7;
auVar8 = JS_CallInternal(param_1,CONCAT44(uStack_64,local_68),CONCAT44(uStack_5c,uStack_60),0,
3,1,0,3,&local_48,2);
piVar7 = local_50;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_48,uStack_40);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar8._0_8_,auVar8._8_8_);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_78,lStack_70);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),CONCAT44(uStack_64,local_68),
CONCAT44(uStack_5c,uStack_60));
uVar5 = (ulong)piVar7 & 0xffffffff00000000;
goto LAB_001555a4;
}
plVar3 = (long *)js_mallocz(param_1,0x58);
if (plVar3 != (long *)0x0) {
*(int4 *)(plVar3 + 2) = param_6;
piVar1 = (int *)*param_5;
lVar2 = param_5[1];
if (0xfffffff6 < (uint)lVar2) {
*piVar1 = *piVar1 + 1;
}
plVar3[3] = (long)piVar1;
plVar3[4] = lVar2;
if (0xfffffff6 < auVar8._8_4_) {
*piVar7 = *piVar7 + 1;
}
*(int1 (*) [16])(plVar3 + 5) = auVar8;
plVar3[7] = local_78;
plVar3[8] = lStack_70;
*(int4 *)(plVar3 + 9) = local_68;
*(int4 *)((long)plVar3 + 0x4c) = uStack_64;
*(int4 *)(plVar3 + 10) = uStack_60;
*(int4 *)((long)plVar3 + 0x54) = uStack_5c;
lVar2 = *(long *)(lVar6 + 0x78);
*(long **)(lVar2 + 8) = plVar3;
*plVar3 = lVar2;
plVar3[1] = lVar6 + 0x78;
*(long **)(lVar6 + 0x78) = plVar3;
if (*(int *)(lVar6 + 8) != 3) {
js_async_generator_resume_next(param_1,lVar6);
}
uVar5 = (ulong)piVar7 & 0xffffffff00000000;
goto LAB_001555a4;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_78,lStack_70);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),CONCAT44(uStack_64,local_68),
CONCAT44(uStack_5c,uStack_60));
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),piVar7,uVar4);
}
piVar7 = (int *)0x0;
uVar5 = 0;
uVar4 = 6;
LAB_001555a4:
auVar8._0_8_ = (ulong)piVar7 & 0xffffffff | uVar5;
auVar8._8_8_ = uVar4;
return auVar8;
}
| |
43,750 | js_async_generator_next | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_generator_next(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv,
int magic)
{
JSAsyncGeneratorData *s = JS_GetOpaque(this_val, JS_CLASS_ASYNC_GENERATOR);
JSValue promise, resolving_funcs[2];
JSAsyncGeneratorRequest *req;
promise = JS_NewPromiseCapability(ctx, resolving_funcs);
if (JS_IsException(promise))
return JS_EXCEPTION;
if (!s) {
JSValue err, res2;
JS_ThrowTypeError(ctx, "not an AsyncGenerator object");
err = JS_GetException(ctx);
res2 = JS_Call(ctx, resolving_funcs[1], JS_UNDEFINED,
1, &err);
JS_FreeValue(ctx, err);
JS_FreeValue(ctx, res2);
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
return promise;
}
req = js_mallocz(ctx, sizeof(*req));
if (!req)
goto fail;
req->completion_type = magic;
req->result = js_dup(argv[0]);
req->promise = js_dup(promise);
req->resolving_funcs[0] = resolving_funcs[0];
req->resolving_funcs[1] = resolving_funcs[1];
list_add_tail(&req->link, &s->queue);
if (s->state != JS_ASYNC_GENERATOR_STATE_EXECUTING) {
js_async_generator_resume_next(ctx, s);
}
return promise;
fail:
JS_FreeValue(ctx, resolving_funcs[0]);
JS_FreeValue(ctx, resolving_funcs[1]);
JS_FreeValue(ctx, promise);
return JS_EXCEPTION;
} | O2 | c | js_async_generator_next:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, %ebp
movq %r8, %r13
movq %rdi, %r15
cmpl $-0x1, %edx
jne 0x4919e
cmpw $0x39, 0x6(%rsi)
jne 0x4919e
movq 0x30(%rsi), %r12
jmp 0x491a1
xorl %r12d, %r12d
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x2956d
movq %rax, %rbx
movq %rdx, %r14
pushq $0x6
popq %rax
cmpl $0x6, %r14d
jne 0x491c9
xorl %ebx, %ebx
xorl %ecx, %ecx
movq %rax, %r14
jmp 0x4934e
testq %r12, %r12
je 0x49258
pushq $0x58
popq %rsi
movq %r15, %rdi
callq 0x17241
testq %rax, %rax
je 0x49314
movl %ebp, 0x10(%rax)
movq (%r13), %rcx
movq 0x8(%r13), %rdx
cmpl $-0x9, %edx
jb 0x491f8
incl (%rcx)
movq %rcx, 0x18(%rax)
movq %rdx, 0x20(%rax)
cmpl $-0x9, %r14d
jb 0x49208
incl (%rbx)
movq %rbx, 0x28(%rax)
movq %r14, 0x30(%rax)
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x38(%rax)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x48(%rax)
leaq 0x78(%r12), %rcx
movq 0x78(%r12), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x78(%r12)
cmpl $0x3, 0x8(%r12)
je 0x49302
movq %r15, %rdi
movq %r12, %rsi
callq 0x49365
jmp 0x49302
leaq 0x3e0bd(%rip), %rsi # 0x8731c
movq %r15, %rdi
xorl %eax, %eax
callq 0x1c64d
movq 0x18(%r15), %rax
movups 0xf0(%rax), %xmm0
andl $0x0, 0xf0(%rax)
movq $0x4, 0xf8(%rax)
leaq 0x40(%rsp), %r13
movaps %xmm0, (%r13)
movq 0x20(%rsp), %rsi
movq %rsi, 0x38(%rsp)
movq 0x28(%rsp), %rdx
movq %rdx, 0x30(%rsp)
movq %r13, (%rsp)
pushq $0x3
popq %r8
pushq $0x1
popq %r9
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x21eb6
movq %rax, %rbp
movq %rdx, %r12
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r15, %rdi
callq 0x1801e
movq %r15, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x1801e
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x1801e
movq %r15, %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq 0x1801e
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %rbx, %rcx
andq %rax, %rcx
jmp 0x4934e
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rdi
callq 0x1801e
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r15, %rdi
callq 0x1801e
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1801e
xorl %ebx, %ebx
xorl %ecx, %ecx
pushq $0x6
popq %r14
movl %ebx, %eax
orq %rcx, %rax
movq %r14, %rdx
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_async_generator_next:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov ebp, r9d
mov r13, r8
mov r15, rdi
cmp edx, 0FFFFFFFFh
jnz short loc_4919E
cmp word ptr [rsi+6], 39h ; '9'
jnz short loc_4919E
mov r12, [rsi+30h]
jmp short loc_491A1
loc_4919E:
xor r12d, r12d
loc_491A1:
lea rsi, [rsp+88h+var_78]
mov rdi, r15
call JS_NewPromiseCapability
mov rbx, rax
mov r14, rdx
push 6
pop rax
cmp r14d, 6
jnz short loc_491C9
xor ebx, ebx
xor ecx, ecx
mov r14, rax
jmp loc_4934E
loc_491C9:
test r12, r12
jz loc_49258
push 58h ; 'X'
pop rsi
mov rdi, r15
call js_mallocz
test rax, rax
jz loc_49314
mov [rax+10h], ebp
mov rcx, [r13+0]
mov rdx, [r13+8]
cmp edx, 0FFFFFFF7h
jb short loc_491F8
inc dword ptr [rcx]
loc_491F8:
mov [rax+18h], rcx
mov [rax+20h], rdx
cmp r14d, 0FFFFFFF7h
jb short loc_49208
inc dword ptr [rbx]
loc_49208:
mov [rax+28h], rbx
mov [rax+30h], r14
movaps xmm0, [rsp+88h+var_78]
movups xmmword ptr [rax+38h], xmm0
movaps xmm0, [rsp+88h+var_68]
movups xmmword ptr [rax+48h], xmm0
lea rcx, [r12+78h]
mov rdx, [r12+78h]
mov [rdx+8], rax
mov [rax], rdx
mov [rax+8], rcx
mov [r12+78h], rax
cmp dword ptr [r12+8], 3
jz loc_49302
mov rdi, r15
mov rsi, r12
call js_async_generator_resume_next
jmp loc_49302
loc_49258:
lea rsi, aNotAnAsyncgene; "not an AsyncGenerator object"
mov rdi, r15
xor eax, eax
call JS_ThrowTypeError
mov rax, [r15+18h]
movups xmm0, xmmword ptr [rax+0F0h]
and dword ptr [rax+0F0h], 0
mov qword ptr [rax+0F8h], 4
lea r13, [rsp+88h+var_48]
movaps xmmword ptr [r13+0], xmm0
mov rsi, qword ptr [rsp+88h+var_68]
mov [rsp+88h+var_50], rsi
mov rdx, qword ptr [rsp+88h+var_68+8]
mov [rsp+88h+var_58], rdx
mov [rsp+88h+var_88], r13
push 3
pop r8
push 1
pop r9
mov rdi, r15
xor ecx, ecx
call JS_Call
mov rbp, rax
mov r12, rdx
mov rsi, [r13+0]
mov rdx, [r13+8]
mov rdi, r15
call JS_FreeValue
mov rdi, r15
mov rsi, rbp
mov rdx, r12
call JS_FreeValue
mov rsi, qword ptr [rsp+88h+var_78]
mov rdx, qword ptr [rsp+88h+var_78+8]
mov rdi, r15
call JS_FreeValue
mov rdi, r15
mov rsi, [rsp+88h+var_50]
mov rdx, [rsp+88h+var_58]
call JS_FreeValue
loc_49302:
mov rax, 0FFFFFFFF00000000h
mov rcx, rbx
and rcx, rax
jmp short loc_4934E
loc_49314:
mov rsi, qword ptr [rsp+88h+var_78]
mov rdx, qword ptr [rsp+88h+var_78+8]
mov rdi, r15
call JS_FreeValue
mov rsi, qword ptr [rsp+88h+var_68]
mov rdx, qword ptr [rsp+88h+var_68+8]
mov rdi, r15
call JS_FreeValue
mov rdi, r15
mov rsi, rbx
mov rdx, r14
call JS_FreeValue
xor ebx, ebx
xor ecx, ecx
push 6
pop r14
loc_4934E:
mov eax, ebx
or rax, rcx
mov rdx, r14
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long js_async_generator_next(
long long a1,
long long a2,
int a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11,
long long a12,
long long a13,
int a14)
{
long long v16; // r12
long long v17; // rdx
long long v18; // rcx
long long v19; // rbx
long long v20; // r8
long long v21; // r9
__m128 v22; // xmm4
__m128 v23; // xmm5
long long v24; // r14
unsigned long long v25; // rcx
long long v26; // rax
_DWORD *v27; // rcx
long long v28; // rdx
long long v29; // rdx
long long v30; // rax
__int128 v31; // xmm0
long long v32; // rbp
long long v33; // rdx
long long v34; // r12
char v36; // [rsp+0h] [rbp-88h]
__int128 v37; // [rsp+10h] [rbp-78h] BYREF
__int128 v38; // [rsp+20h] [rbp-68h]
long long v39; // [rsp+30h] [rbp-58h]
long long v40; // [rsp+38h] [rbp-50h]
__int128 v41; // [rsp+40h] [rbp-48h] BYREF
if ( a3 == -1 && *(_WORD *)(a2 + 6) == 57 )
v16 = *(_QWORD *)(a2 + 48);
else
v16 = 0LL;
v19 = JS_NewPromiseCapability(a1, (long long)&v37);
v24 = v17;
if ( (_DWORD)v17 == 6 )
{
LODWORD(v19) = 0;
v25 = 0LL;
}
else
{
if ( v16 )
{
v26 = js_mallocz(a1, 0x58uLL);
if ( !v26 )
{
JS_FreeValue(a1, v37, *((long long *)&v37 + 1));
JS_FreeValue(a1, v38, *((long long *)&v38 + 1));
JS_FreeValue(a1, v19, v24);
LODWORD(v19) = 0;
v25 = 0LL;
return v25 | (unsigned int)v19;
}
*(_DWORD *)(v26 + 16) = a14;
v27 = *(_DWORD **)a13;
v28 = *(_QWORD *)(a13 + 8);
if ( (unsigned int)v28 >= 0xFFFFFFF7 )
++*v27;
*(_QWORD *)(v26 + 24) = v27;
*(_QWORD *)(v26 + 32) = v28;
if ( (unsigned int)v24 >= 0xFFFFFFF7 )
++*(_DWORD *)v19;
*(_QWORD *)(v26 + 40) = v19;
*(_QWORD *)(v26 + 48) = v24;
*(_OWORD *)(v26 + 56) = v37;
*(_OWORD *)(v26 + 72) = v38;
v29 = *(_QWORD *)(v16 + 120);
*(_QWORD *)(v29 + 8) = v26;
*(_QWORD *)v26 = v29;
*(_QWORD *)(v26 + 8) = v16 + 120;
*(_QWORD *)(v16 + 120) = v26;
if ( *(_DWORD *)(v16 + 8) != 3 )
js_async_generator_resume_next(a1, v16);
}
else
{
JS_ThrowTypeError(
a1,
(long long)"not an AsyncGenerator object",
v17,
v18,
v20,
v21,
a4,
a5,
a6,
a7,
v22,
v23,
a10,
a11,
v36);
v30 = *(_QWORD *)(a1 + 24);
v31 = *(_OWORD *)(v30 + 240);
*(_DWORD *)(v30 + 240) = 0;
*(_QWORD *)(v30 + 248) = 4LL;
v41 = v31;
v39 = *((_QWORD *)&v38 + 1);
v40 = v38;
v32 = JS_Call(a1, v38, SDWORD2(v38), 0, 3, 1, (long long)&v41);
v34 = v33;
JS_FreeValue(a1, v41, *((long long *)&v41 + 1));
JS_FreeValue(a1, v32, v34);
JS_FreeValue(a1, v37, *((long long *)&v37 + 1));
JS_FreeValue(a1, v40, v39);
}
v25 = v19 & 0xFFFFFFFF00000000LL;
}
return v25 | (unsigned int)v19;
}
| js_async_generator_next:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV EBP,R9D
MOV R13,R8
MOV R15,RDI
CMP EDX,-0x1
JNZ 0x0014919e
CMP word ptr [RSI + 0x6],0x39
JNZ 0x0014919e
MOV R12,qword ptr [RSI + 0x30]
JMP 0x001491a1
LAB_0014919e:
XOR R12D,R12D
LAB_001491a1:
LEA RSI,[RSP + 0x10]
MOV RDI,R15
CALL 0x0012956d
MOV RBX,RAX
MOV R14,RDX
PUSH 0x6
POP RAX
CMP R14D,0x6
JNZ 0x001491c9
XOR EBX,EBX
XOR ECX,ECX
MOV R14,RAX
JMP 0x0014934e
LAB_001491c9:
TEST R12,R12
JZ 0x00149258
PUSH 0x58
POP RSI
MOV RDI,R15
CALL 0x00117241
TEST RAX,RAX
JZ 0x00149314
MOV dword ptr [RAX + 0x10],EBP
MOV RCX,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
CMP EDX,-0x9
JC 0x001491f8
INC dword ptr [RCX]
LAB_001491f8:
MOV qword ptr [RAX + 0x18],RCX
MOV qword ptr [RAX + 0x20],RDX
CMP R14D,-0x9
JC 0x00149208
INC dword ptr [RBX]
LAB_00149208:
MOV qword ptr [RAX + 0x28],RBX
MOV qword ptr [RAX + 0x30],R14
MOVAPS XMM0,xmmword ptr [RSP + 0x10]
MOVUPS xmmword ptr [RAX + 0x38],XMM0
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RAX + 0x48],XMM0
LEA RCX,[R12 + 0x78]
MOV RDX,qword ptr [R12 + 0x78]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RAX],RDX
MOV qword ptr [RAX + 0x8],RCX
MOV qword ptr [R12 + 0x78],RAX
CMP dword ptr [R12 + 0x8],0x3
JZ 0x00149302
MOV RDI,R15
MOV RSI,R12
CALL 0x00149365
JMP 0x00149302
LAB_00149258:
LEA RSI,[0x18731c]
MOV RDI,R15
XOR EAX,EAX
CALL 0x0011c64d
MOV RAX,qword ptr [R15 + 0x18]
MOVUPS XMM0,xmmword ptr [RAX + 0xf0]
AND dword ptr [RAX + 0xf0],0x0
MOV qword ptr [RAX + 0xf8],0x4
LEA R13,[RSP + 0x40]
MOVAPS xmmword ptr [R13],XMM0
MOV RSI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],RSI
MOV RDX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP],R13
PUSH 0x3
POP R8
PUSH 0x1
POP R9
MOV RDI,R15
XOR ECX,ECX
CALL 0x00121eb6
MOV RBP,RAX
MOV R12,RDX
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
MOV RDI,R15
CALL 0x0011801e
MOV RDI,R15
MOV RSI,RBP
MOV RDX,R12
CALL 0x0011801e
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,R15
CALL 0x0011801e
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x30]
CALL 0x0011801e
LAB_00149302:
MOV RAX,-0x100000000
MOV RCX,RBX
AND RCX,RAX
JMP 0x0014934e
LAB_00149314:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,R15
CALL 0x0011801e
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
MOV RDI,R15
CALL 0x0011801e
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R14
CALL 0x0011801e
XOR EBX,EBX
XOR ECX,ECX
PUSH 0x6
POP R14
LAB_0014934e:
MOV EAX,EBX
OR RAX,RCX
MOV RDX,R14
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16]
js_async_generator_next
(long param_1,long param_2,int param_3,int8 param_4,int8 *param_5,
int4 param_6)
{
int *piVar1;
long lVar2;
int *piVar3;
long *plVar4;
ulong uVar5;
long lVar6;
int1 auVar7 [16];
int1 auVar8 [16];
long local_78;
long lStack_70;
int4 local_68;
int4 uStack_64;
int4 uStack_60;
int4 uStack_5c;
int8 local_58;
int8 local_50;
int4 local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
if ((param_3 == -1) && (*(short *)(param_2 + 6) == 0x39)) {
lVar6 = *(long *)(param_2 + 0x30);
}
else {
lVar6 = 0;
}
auVar7 = JS_NewPromiseCapability(param_1,&local_78);
piVar3 = auVar7._0_8_;
if (auVar7._8_4_ == 6) {
auVar7 = ZEXT816(6) << 0x40;
uVar5 = 0;
}
else {
if (lVar6 == 0) {
JS_ThrowTypeError(param_1,"not an AsyncGenerator object");
lVar6 = *(long *)(param_1 + 0x18);
local_48 = *(int4 *)(lVar6 + 0xf0);
uStack_44 = *(int4 *)(lVar6 + 0xf4);
uStack_40 = *(int4 *)(lVar6 + 0xf8);
uStack_3c = *(int4 *)(lVar6 + 0xfc);
*(int4 *)(lVar6 + 0xf0) = 0;
*(int8 *)(lVar6 + 0xf8) = 4;
local_50 = CONCAT44(uStack_64,local_68);
local_58 = CONCAT44(uStack_5c,uStack_60);
auVar8 = JS_Call(param_1,local_50,local_58,0,3,1,&local_48);
JS_FreeValue(param_1,CONCAT44(uStack_44,local_48),CONCAT44(uStack_3c,uStack_40));
JS_FreeValue(param_1,auVar8._0_8_,auVar8._8_8_);
JS_FreeValue(param_1,local_78,lStack_70);
JS_FreeValue(param_1,local_50,local_58);
}
else {
plVar4 = (long *)js_mallocz(param_1,0x58);
if (plVar4 == (long *)0x0) {
JS_FreeValue(param_1,local_78,lStack_70);
JS_FreeValue(param_1,CONCAT44(uStack_64,local_68),CONCAT44(uStack_5c,uStack_60));
JS_FreeValue(param_1,piVar3,auVar7._8_8_);
uVar5 = 0;
auVar7 = ZEXT816(6) << 0x40;
goto LAB_0014934e;
}
*(int4 *)(plVar4 + 2) = param_6;
piVar1 = (int *)*param_5;
lVar2 = param_5[1];
if (0xfffffff6 < (uint)lVar2) {
*piVar1 = *piVar1 + 1;
}
plVar4[3] = (long)piVar1;
plVar4[4] = lVar2;
if (0xfffffff6 < auVar7._8_4_) {
*piVar3 = *piVar3 + 1;
}
*(int1 (*) [16])(plVar4 + 5) = auVar7;
plVar4[7] = local_78;
plVar4[8] = lStack_70;
*(int4 *)(plVar4 + 9) = local_68;
*(int4 *)((long)plVar4 + 0x4c) = uStack_64;
*(int4 *)(plVar4 + 10) = uStack_60;
*(int4 *)((long)plVar4 + 0x54) = uStack_5c;
lVar2 = *(long *)(lVar6 + 0x78);
*(long **)(lVar2 + 8) = plVar4;
*plVar4 = lVar2;
plVar4[1] = lVar6 + 0x78;
*(long **)(lVar6 + 0x78) = plVar4;
if (*(int *)(lVar6 + 8) != 3) {
js_async_generator_resume_next(param_1,lVar6);
}
}
uVar5 = (ulong)piVar3 & 0xffffffff00000000;
}
LAB_0014934e:
auVar8._0_8_ = auVar7._0_8_ & 0xffffffff | uVar5;
auVar8._8_8_ = auVar7._8_8_;
return auVar8;
}
| |
43,751 | minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!condition) throw std::runtime_error("IfExpr.condition is null");
if (!then_expr) throw std::runtime_error("IfExpr.then_expr is null");
if (condition->evaluate(context).to_bool()) {
return then_expr->evaluate(context);
}
if (else_expr) {
return else_expr->evaluate(context);
}
return nullptr;
} | O0 | cpp | minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
subq $0xb8, %rsp
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0xa8(%rsp), %rdi
movq %rdi, 0x30(%rsp)
addq $0x20, %rdi
callq 0x788b0
testb $0x1, %al
jne 0xe77d4
movl $0x10, %edi
callq 0x4f580
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
leaq 0xd216b(%rip), %rsi # 0x1b98fd
callq 0x4f380
jmp 0xe7799
movq 0x18(%rsp), %rdi
movq 0x14e803(%rip), %rsi # 0x235fa8
movq 0x14e7bc(%rip), %rdx # 0x235f68
callq 0x4f940
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
callq 0x4fc70
jmp 0xe7931
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
callq 0x788b0
testb $0x1, %al
jne 0xe7844
movl $0x10, %edi
callq 0x4f580
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
leaq 0xd2114(%rip), %rsi # 0x1b9916
callq 0x4f380
jmp 0xe7809
movq 0x10(%rsp), %rdi
movq 0x14e793(%rip), %rsi # 0x235fa8
movq 0x14e74c(%rip), %rdx # 0x235f68
callq 0x4f940
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
callq 0x4fc70
jmp 0xe7931
movq 0x30(%rsp), %rdi
addq $0x20, %rdi
callq 0x9f320
movq %rax, %rsi
movq 0xa0(%rsp), %rdx
leaq 0x40(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x9f330
movq (%rsp), %rdi
callq 0x9f680
movb %al, 0xf(%rsp)
jmp 0xe787a
leaq 0x40(%rsp), %rdi
callq 0x9f7d0
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0xe788e
jmp 0xe78d3
movq 0x30(%rsp), %rdi
addq $0x30, %rdi
callq 0x9f320
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0xa0(%rsp), %rdx
callq 0x9f330
jmp 0xe7924
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x98(%rsp)
movl %eax, 0x94(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x9f7d0
jmp 0xe7931
movq 0x30(%rsp), %rdi
addq $0x40, %rdi
callq 0x788b0
testb $0x1, %al
jne 0xe78e7
jmp 0xe790c
movq 0x30(%rsp), %rdi
addq $0x40, %rdi
callq 0x9f320
movq 0x20(%rsp), %rdi
movq %rax, %rsi
movq 0xa0(%rsp), %rdx
callq 0x9f330
jmp 0xe7924
movq 0x20(%rsp), %rdi
movq $0x0, 0x38(%rsp)
leaq 0x38(%rsp), %rsi
callq 0xadfa0
movq 0x28(%rsp), %rax
addq $0xb8, %rsp
retq
movq 0x98(%rsp), %rdi
callq 0x4f990
nop
| _ZNK5minja6IfExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
sub rsp, 0B8h
mov [rsp+0B8h+var_98], rdi
mov rax, rdi
mov [rsp+0B8h+var_90], rax
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov [rsp+0B8h+var_18], rdx
mov rdi, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_88], rdi
add rdi, 20h ; ' '
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E77D4
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+0B8h+var_A0], rax
lea rsi, aIfexprConditio; "IfExpr.condition is null"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_E7799:
mov rdi, [rsp+0B8h+var_A0]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+0B8h+var_A0]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_20], rcx
mov [rsp+0B8h+var_24], eax
call ___cxa_free_exception
jmp loc_E7931
loc_E77D4:
mov rdi, [rsp+0B8h+var_88]
add rdi, 30h ; '0'
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E7844
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+0B8h+var_A8], rax
lea rsi, aIfexprThenExpr; "IfExpr.then_expr is null"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_E7809:
mov rdi, [rsp+0B8h+var_A8]; void *
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+0B8h+var_A8]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_20], rcx
mov [rsp+0B8h+var_24], eax
call ___cxa_free_exception
jmp loc_E7931
loc_E7844:
mov rdi, [rsp+0B8h+var_88]
add rdi, 20h ; ' '
call _ZNKSt19__shared_ptr_accessIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, rax
mov rdx, [rsp+0B8h+var_18]
lea rdi, [rsp+0B8h+var_78]
mov [rsp+0B8h+var_B8], rdi
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, [rsp+0B8h+var_B8]; this
call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void)
mov [rsp+0B8h+var_A9], al
jmp short $+2
loc_E787A:
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov al, [rsp+0B8h+var_A9]
test al, 1
jnz short loc_E788E
jmp short loc_E78D3
loc_E788E:
mov rdi, [rsp+0B8h+var_88]
add rdi, 30h ; '0'
call _ZNKSt19__shared_ptr_accessIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, [rsp+0B8h+var_98]
mov rsi, rax
mov rdx, [rsp+0B8h+var_18]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
jmp short loc_E7924
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_20], rcx
mov [rsp+0B8h+var_24], eax
lea rdi, [rsp+0B8h+var_78]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_E7931
loc_E78D3:
mov rdi, [rsp+0B8h+var_88]
add rdi, 40h ; '@'
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E78E7
jmp short loc_E790C
loc_E78E7:
mov rdi, [rsp+0B8h+var_88]
add rdi, 40h ; '@'
call _ZNKSt19__shared_ptr_accessIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rdi, [rsp+0B8h+var_98]
mov rsi, rax
mov rdx, [rsp+0B8h+var_18]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
jmp short loc_E7924
loc_E790C:
mov rdi, [rsp+0B8h+var_98]
mov [rsp+0B8h+var_80], 0
lea rsi, [rsp+0B8h+var_80]
call _ZN5minja5ValueC2ERKDn; minja::Value::Value(decltype(nullptr) const&)
loc_E7924:
mov rax, [rsp+0B8h+var_90]
add rsp, 0B8h
retn
loc_E7931:
mov rdi, [rsp+0B8h+var_20]
call __Unwind_Resume
| long long minja::IfExpr::do_evaluate(long long a1, _QWORD *a2, long long a3)
{
void (***v3)(void); // rax
void (***v4)(void); // rax
void (***v5)(void); // rax
char v7; // [rsp+Fh] [rbp-A9h]
std::runtime_error *v8; // [rsp+10h] [rbp-A8h]
std::runtime_error *exception; // [rsp+18h] [rbp-A0h]
_BYTE v10[84]; // [rsp+40h] [rbp-78h] BYREF
long long v11; // [rsp+A0h] [rbp-18h]
_QWORD *v12; // [rsp+A8h] [rbp-10h]
long long v13; // [rsp+B0h] [rbp-8h]
v13 = a1;
v12 = a2;
v11 = a3;
if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(a2 + 4) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "IfExpr.condition is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(a2 + 6) )
{
v8 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v8, "IfExpr.then_expr is null");
__cxa_throw(
v8,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v3 = (void (***)(void))std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a2 + 4));
minja::Expression::evaluate((long long)v10, v3);
v7 = minja::Value::to_bool((minja::Value *)v10);
minja::Value::~Value((minja::Value *)v10);
if ( (v7 & 1) != 0 )
{
v4 = (void (***)(void))std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a2 + 6));
minja::Expression::evaluate(a1, v4);
}
else if ( std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(a2 + 8) )
{
v5 = (void (***)(void))std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->((long long)(a2 + 8));
minja::Expression::evaluate(a1, v5);
}
else
{
minja::Value::Value(a1);
}
return a1;
}
| do_evaluate:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x28],RAX
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV RDI,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x30],RDI
ADD RDI,0x20
CALL 0x001788b0
TEST AL,0x1
JNZ 0x001e77d4
MOV EDI,0x10
CALL 0x0014f580
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x18],RAX
LAB_001e778b:
LEA RSI,[0x2b98fd]
CALL 0x0014f380
LAB_001e7797:
JMP 0x001e7799
LAB_001e7799:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [0x00335fa8]
MOV RDX,qword ptr [0x00335f68]
CALL 0x0014f940
LAB_001e77d4:
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x30
CALL 0x001788b0
TEST AL,0x1
JNZ 0x001e7844
MOV EDI,0x10
CALL 0x0014f580
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x10],RAX
LAB_001e77fb:
LEA RSI,[0x2b9916]
CALL 0x0014f380
LAB_001e7807:
JMP 0x001e7809
LAB_001e7809:
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [0x00335fa8]
MOV RDX,qword ptr [0x00335f68]
CALL 0x0014f940
LAB_001e7844:
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x20
CALL 0x0019f320
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0xa0]
LEA RDI,[RSP + 0x40]
MOV qword ptr [RSP],RDI
CALL 0x0019f330
MOV RDI,qword ptr [RSP]
LAB_001e786f:
CALL 0x0019f680
LAB_001e7874:
MOV byte ptr [RSP + 0xf],AL
JMP 0x001e787a
LAB_001e787a:
LEA RDI,[RSP + 0x40]
CALL 0x0019f7d0
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x001e788e
JMP 0x001e78d3
LAB_001e788e:
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x30
CALL 0x0019f320
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x0019f330
JMP 0x001e7924
LAB_001e78d3:
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x40
CALL 0x001788b0
TEST AL,0x1
JNZ 0x001e78e7
JMP 0x001e790c
LAB_001e78e7:
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0x40
CALL 0x0019f320
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,RAX
MOV RDX,qword ptr [RSP + 0xa0]
CALL 0x0019f330
JMP 0x001e7924
LAB_001e790c:
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x38],0x0
LEA RSI,[RSP + 0x38]
CALL 0x001adfa0
LAB_001e7924:
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0xb8
RET
|
/* minja::IfExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::IfExpr::do_evaluate(shared_ptr *param_1)
{
bool bVar1;
byte bVar2;
runtime_error *prVar3;
long in_RSI;
_func_decltype_nullptr *local_80;
shared_ptr local_78 [112];
shared_ptr *local_8;
local_8 = param_1;
bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(in_RSI + 0x20));
if (!bVar1) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e778b to 001e7796 has its CatchHandler @ 001e77b1 */
std::runtime_error::runtime_error(prVar3,"IfExpr.condition is null");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_00335fa8,PTR__runtime_error_00335f68);
}
bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(in_RSI + 0x30));
if (!bVar1) {
prVar3 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e77fb to 001e7806 has its CatchHandler @ 001e7821 */
std::runtime_error::runtime_error(prVar3,"IfExpr.then_expr is null");
/* WARNING: Subroutine does not return */
__cxa_throw(prVar3,PTR_typeinfo_00335fa8,PTR__runtime_error_00335f68);
}
std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->
((__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false> *)
(in_RSI + 0x20));
Expression::evaluate(local_78);
/* try { // try from 001e786f to 001e7873 has its CatchHandler @ 001e78b3 */
bVar2 = Value::to_bool((Value *)local_78);
Value::~Value((Value *)local_78);
if ((bVar2 & 1) == 0) {
bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(in_RSI + 0x40));
if (bVar1) {
std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->
((__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false> *)
(in_RSI + 0x40));
Expression::evaluate(param_1);
}
else {
local_80 = (_func_decltype_nullptr *)0x0;
Value::Value((Value *)param_1,&local_80);
}
}
else {
std::__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false>::operator->
((__shared_ptr_access<minja::Expression,(__gnu_cxx::_Lock_policy)2,false,false> *)
(in_RSI + 0x30));
Expression::evaluate(param_1);
}
return param_1;
}
| |
43,752 | ggml_view_impl | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_view_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_dims,
const int64_t * ne,
size_t offset) {
bool is_node = false;
if (a->grad) {
is_node = true;
}
struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, n_dims, ne, a, offset);
ggml_format_name(result, "%s (view)", a->name);
ggml_set_op_params(result, &offset, sizeof(offset));
result->op = GGML_OP_VIEW;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O0 | c | ggml_view_impl:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movb $0x0, 0x1f(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, 0x98(%rax)
je 0x122f75
movb $0x1, 0x1f(%rsp)
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rax
movl (%rax), %esi
movl 0x34(%rsp), %edx
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x20(%rsp), %r9
callq 0x11c300
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x38(%rsp), %rdx
addq $0x120, %rdx # imm = 0x120
leaq 0x669e4(%rip), %rsi # 0x18999a
movb $0x0, %al
callq 0x11e700
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x8, %edx
callq 0x120a30
movq 0x10(%rsp), %rax
movl $0x1f, 0x50(%rax)
testb $0x1, 0x1f(%rsp)
je 0x122ffa
movq 0x40(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x11cfc0
movq %rax, 0x8(%rsp)
jmp 0x123003
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x123003
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x98(%rax)
movq 0x38(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x10(%rsp), %rax
addq $0x48, %rsp
retq
nop
| ggml_view_impl:
sub rsp, 48h
mov [rsp+48h+var_8], rdi
mov [rsp+48h+var_10], rsi
mov [rsp+48h+var_14], edx
mov [rsp+48h+var_20], rcx
mov [rsp+48h+var_28], r8
mov [rsp+48h+var_29], 0
mov rax, [rsp+48h+var_10]
cmp qword ptr [rax+98h], 0
jz short loc_122F75
mov [rsp+48h+var_29], 1
loc_122F75:
mov rdi, [rsp+48h+var_8]
mov rax, [rsp+48h+var_10]
mov esi, [rax]
mov edx, [rsp+48h+var_14]
mov rcx, [rsp+48h+var_20]
mov r8, [rsp+48h+var_10]
mov r9, [rsp+48h+var_28]
call ggml_new_tensor_impl
mov [rsp+48h+var_38], rax
mov rdi, [rsp+48h+var_38]
mov rdx, [rsp+48h+var_10]
add rdx, 120h
lea rsi, aSView; "%s (view)"
mov al, 0
call ggml_format_name
mov rdi, [rsp+48h+var_38]
lea rsi, [rsp+48h+var_28]
mov edx, 8
call ggml_set_op_params
mov rax, [rsp+48h+var_38]
mov dword ptr [rax+50h], 1Fh
test [rsp+48h+var_29], 1
jz short loc_122FFA
mov rdi, [rsp+48h+var_8]
mov rsi, [rsp+48h+var_38]
call ggml_dup_tensor
mov [rsp+48h+var_40], rax
jmp short loc_123003
loc_122FFA:
xor eax, eax
mov [rsp+48h+var_40], rax
jmp short $+2
loc_123003:
mov rcx, [rsp+48h+var_40]
mov rax, [rsp+48h+var_38]
mov [rax+98h], rcx
mov rcx, [rsp+48h+var_10]
mov rax, [rsp+48h+var_38]
mov [rax+0A0h], rcx
mov rax, [rsp+48h+var_38]
add rsp, 48h
retn
| _QWORD * ggml_view_impl(
long long a1,
long long a2,
int a3,
long long *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rcx
long long v14; // r8
long long v15; // r9
__m128 v16; // xmm4
__m128 v17; // xmm5
char v19; // [rsp+0h] [rbp-48h]
long long v20; // [rsp+8h] [rbp-40h]
_QWORD *v21; // [rsp+10h] [rbp-38h]
bool v22; // [rsp+1Fh] [rbp-29h]
_QWORD v23[2]; // [rsp+20h] [rbp-28h] BYREF
int v24; // [rsp+34h] [rbp-14h]
unsigned int *v25; // [rsp+38h] [rbp-10h]
long long v26; // [rsp+40h] [rbp-8h]
v26 = a1;
v25 = (unsigned int *)a2;
v24 = a3;
v23[1] = a4;
v23[0] = a5;
v22 = *(_QWORD *)(a2 + 152) != 0LL;
v21 = ggml_new_tensor_impl(a1, *v25, a3, a4, v25, a5);
ggml_format_name((long long)v21, (long long)"%s (view)", a2 + 288, v13, v14, v15, a6, a7, a8, a9, v16, v17, a12, a13, v19);
ggml_set_op_params((long long)v21, (long long)v23, 8LL);
*((_DWORD *)v21 + 20) = 31;
if ( v22 )
v20 = ggml_dup_tensor(v26, (unsigned int *)v21);
else
v20 = 0LL;
v21[19] = v20;
v21[20] = v25;
return v21;
}
| |||
43,753 | ggml_view_impl | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_view_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_dims,
const int64_t * ne,
size_t offset) {
bool is_node = false;
if (a->grad) {
is_node = true;
}
struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, n_dims, ne, a, offset);
ggml_format_name(result, "%s (view)", a->name);
ggml_set_op_params(result, &offset, sizeof(offset));
result->op = GGML_OP_VIEW;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O1 | c | ggml_view_impl:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r9
movq %rsi, %rbx
movq %rdi, %r15
movq %rsp, %r13
movq %r8, (%r13)
movq 0x98(%rsi), %rbp
movl (%rsi), %esi
movq %rbx, %r8
callq 0x8e8b7
movq %rax, %r14
leaq 0x120(%rbx), %rdx
leaq 0x32b8f(%rip), %rsi # 0xc5d6f
xorl %r12d, %r12d
movq %rax, %rdi
xorl %eax, %eax
callq 0x90a74
movl $0x8, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x91e91
movl $0x1f, 0x50(%r14)
testq %rbp, %rbp
je 0x9322a
movl (%r14), %esi
movq %r14, %rcx
addq $0x10, %rcx
movq %r15, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8e8b7
movq %rax, %r12
movq %r12, 0x98(%r14)
movq %rbx, 0xa0(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ggml_view_impl:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r9, r8
mov rbx, rsi
mov r15, rdi
mov r13, rsp
mov [r13+0], r8
mov rbp, [rsi+98h]
mov esi, [rsi]
mov r8, rbx
call ggml_new_tensor_impl
mov r14, rax
lea rdx, [rbx+120h]
lea rsi, aSView; "%s (view)"
xor r12d, r12d
mov rdi, rax
xor eax, eax
call ggml_format_name
mov edx, 8
mov rdi, r14
mov rsi, r13
call ggml_set_op_params
mov dword ptr [r14+50h], 1Fh
test rbp, rbp
jz short loc_9322A
mov esi, [r14]
mov rcx, r14
add rcx, 10h
mov rdi, r15
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r12, rax
loc_9322A:
mov [r14+98h], r12
mov [r14+0A0h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ggml_view_impl(
long long a1,
long long a2,
int a3,
_QWORD *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rbp
long long v14; // r14
long long v15; // r12
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v22; // [rsp-8h] [rbp-38h] BYREF
v22 = a5;
v13 = *(_QWORD *)(a2 + 152);
v14 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, a3, a4, a2, a5, a6, a7);
v15 = 0LL;
ggml_format_name(v14, (long long)"%s (view)", a2 + 288, v16, v17, v18, a6, a7, a8, a9, v19, v20, a12, a13, v22);
ggml_set_op_params(v14, (long long)&v22, 8LL);
*(_DWORD *)(v14 + 80) = 31;
if ( v13 )
v15 = ggml_new_tensor_impl(a1, *(_DWORD *)v14, 4, (_QWORD *)(v14 + 16), 0LL, 0LL, a6, a7);
*(_QWORD *)(v14 + 152) = v15;
*(_QWORD *)(v14 + 160) = a2;
return v14;
}
| |||
43,754 | ggml_view_impl | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_view_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_dims,
const int64_t * ne,
size_t offset) {
bool is_node = false;
if (a->grad) {
is_node = true;
}
struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, n_dims, ne, a, offset);
ggml_format_name(result, "%s (view)", a->name);
ggml_set_op_params(result, &offset, sizeof(offset));
result->op = GGML_OP_VIEW;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O2 | c | ggml_view_impl:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r9
movq %rsi, %rbx
movq %rdi, %r15
movq %rsp, %r13
movq %r8, (%r13)
movq 0x98(%rsi), %rbp
movl (%rsi), %esi
movq %rbx, %r8
callq 0x68363
movq %rax, %r14
leaq 0x120(%rbx), %rdx
leaq 0x35a1e(%rip), %rsi # 0xa1b47
xorl %r12d, %r12d
movq %rax, %rdi
xorl %eax, %eax
callq 0x6987c
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x6ab3d
movl $0x1f, 0x50(%r14)
testq %rbp, %rbp
je 0x6c15f
movq %r15, %rdi
movq %r14, %rsi
callq 0x68a65
movq %rax, %r12
movq %r12, 0x98(%r14)
movq %rbx, 0xa0(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ggml_view_impl:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r9, r8
mov rbx, rsi
mov r15, rdi
mov r13, rsp
mov [r13+0], r8
mov rbp, [rsi+98h]
mov esi, [rsi]
mov r8, rbx
call ggml_new_tensor_impl
mov r14, rax
lea rdx, [rbx+120h]
lea rsi, aSView; "%s (view)"
xor r12d, r12d
mov rdi, rax
xor eax, eax
call ggml_format_name
push 8
pop rdx
mov rdi, r14
mov rsi, r13
call ggml_set_op_params
mov dword ptr [r14+50h], 1Fh
test rbp, rbp
jz short loc_6C15F
mov rdi, r15
mov rsi, r14
call ggml_dup_tensor
mov r12, rax
loc_6C15F:
mov [r14+98h], r12
mov [r14+0A0h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ggml_view_impl(
long long a1,
long long a2,
unsigned int a3,
_QWORD *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rbp
long long v14; // r14
long long v15; // r12
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v22; // [rsp-8h] [rbp-38h] BYREF
v22 = a5;
v13 = *(_QWORD *)(a2 + 152);
v14 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, a3, a4, a2, a5, a6);
v15 = 0LL;
ggml_format_name(v14, (long long)"%s (view)", a2 + 288, v16, v17, v18, a6, a7, a8, a9, v19, v20, a12, a13, v22);
ggml_set_op_params(v14, (long long)&v22, 8LL);
*(_DWORD *)(v14 + 80) = 31;
if ( v13 )
v15 = ggml_dup_tensor(a1, (unsigned int *)v14);
*(_QWORD *)(v14 + 152) = v15;
*(_QWORD *)(v14 + 160) = a2;
return v14;
}
| ggml_view_impl:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R9,R8
MOV RBX,RSI
MOV R15,RDI
MOV R13,RSP
MOV qword ptr [R13],R8
MOV RBP,qword ptr [RSI + 0x98]
MOV ESI,dword ptr [RSI]
MOV R8,RBX
CALL 0x00168363
MOV R14,RAX
LEA RDX,[RBX + 0x120]
LEA RSI,[0x1a1b47]
XOR R12D,R12D
MOV RDI,RAX
XOR EAX,EAX
CALL 0x0016987c
PUSH 0x8
POP RDX
MOV RDI,R14
MOV RSI,R13
CALL 0x0016ab3d
MOV dword ptr [R14 + 0x50],0x1f
TEST RBP,RBP
JZ 0x0016c15f
MOV RDI,R15
MOV RSI,R14
CALL 0x00168a65
MOV R12,RAX
LAB_0016c15f:
MOV qword ptr [R14 + 0x98],R12
MOV qword ptr [R14 + 0xa0],RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long ggml_view_impl(int8 param_1,int4 *param_2,int8 param_3,int8 param_4,
int8 param_5)
{
long lVar1;
long lVar2;
int8 uVar3;
int8 local_38;
lVar1 = *(long *)(param_2 + 0x26);
local_38 = param_5;
lVar2 = ggml_new_tensor_impl(param_1,*param_2,param_3,param_4,param_2,param_5);
uVar3 = 0;
ggml_format_name(lVar2,"%s (view)",param_2 + 0x48);
ggml_set_op_params(lVar2,&local_38,8);
*(int4 *)(lVar2 + 0x50) = 0x1f;
if (lVar1 != 0) {
uVar3 = ggml_dup_tensor(param_1,lVar2);
}
*(int8 *)(lVar2 + 0x98) = uVar3;
*(int4 **)(lVar2 + 0xa0) = param_2;
return lVar2;
}
| |
43,755 | ggml_view_impl | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | static struct ggml_tensor * ggml_view_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_dims,
const int64_t * ne,
size_t offset) {
bool is_node = false;
if (a->grad) {
is_node = true;
}
struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, n_dims, ne, a, offset);
ggml_format_name(result, "%s (view)", a->name);
ggml_set_op_params(result, &offset, sizeof(offset));
result->op = GGML_OP_VIEW;
result->grad = is_node ? ggml_dup_tensor(ctx, result) : NULL;
result->src[0] = a;
return result;
} | O3 | c | ggml_view_impl:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r9
movq %rsi, %rbx
movq %rdi, %r15
movq %rsp, %r13
movq %r8, (%r13)
movq 0x98(%rsi), %rbp
movl (%rsi), %esi
movq %rbx, %r8
callq 0x8d64f
movq %rax, %r14
leaq 0x120(%rbx), %rdx
leaq 0x32d47(%rip), %rsi # 0xc4d93
xorl %r12d, %r12d
movq %rax, %rdi
xorl %eax, %eax
callq 0x8f7da
movl $0x8, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x90cc8
movl $0x1f, 0x50(%r14)
testq %rbp, %rbp
je 0x92096
movl (%r14), %esi
movq %r14, %rcx
addq $0x10, %rcx
movq %r15, %rdi
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8d64f
movq %rax, %r12
movq %r12, 0x98(%r14)
movq %rbx, 0xa0(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ggml_view_impl:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r9, r8
mov rbx, rsi
mov r15, rdi
mov r13, rsp
mov [r13+0], r8
mov rbp, [rsi+98h]
mov esi, [rsi]
mov r8, rbx
call ggml_new_tensor_impl
mov r14, rax
lea rdx, [rbx+120h]
lea rsi, aSView; "%s (view)"
xor r12d, r12d
mov rdi, rax
xor eax, eax
call ggml_format_name
mov edx, 8
mov rdi, r14
mov rsi, r13
call ggml_set_op_params
mov dword ptr [r14+50h], 1Fh
test rbp, rbp
jz short loc_92096
mov esi, [r14]
mov rcx, r14
add rcx, 10h
mov rdi, r15
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov r12, rax
loc_92096:
mov [r14+98h], r12
mov [r14+0A0h], rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ggml_view_impl(
long long a1,
long long a2,
int a3,
_QWORD *a4,
long long a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
double a10,
double a11,
__m128 a12,
__m128 a13)
{
long long v13; // rbp
long long v14; // r14
long long v15; // r12
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v22; // [rsp-8h] [rbp-38h] BYREF
v22 = a5;
v13 = *(_QWORD *)(a2 + 152);
v14 = ggml_new_tensor_impl(a1, *(_DWORD *)a2, a3, a4, a2, a5, a6, a7);
v15 = 0LL;
ggml_format_name(v14, (long long)"%s (view)", a2 + 288, v16, v17, v18, a6, a7, a8, a9, v19, v20, a12, a13, v22);
ggml_set_op_params(v14, (long long)&v22, 8LL);
*(_DWORD *)(v14 + 80) = 31;
if ( v13 )
v15 = ggml_new_tensor_impl(a1, *(_DWORD *)v14, 4, (_QWORD *)(v14 + 16), 0LL, 0LL, a6, a7);
*(_QWORD *)(v14 + 152) = v15;
*(_QWORD *)(v14 + 160) = a2;
return v14;
}
| |||
43,756 | my_utf8mb3_uni | eloqsql/strings/ctype-utf8.c | static int my_utf8mb3_uni(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t * pwc, const uchar *s, const uchar *e)
{
return my_mb_wc_utf8mb3_quick(pwc, s, e);
} | O3 | c | my_utf8mb3_uni:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xcb4fd
movzbl (%rdx), %edi
testb %dil, %dil
js 0xcb4f5
movl %edi, %edi
movl $0x1, %eax
movq %rdi, (%rsi)
jmp 0xcb4fd
cmpb $-0x3e, %dil
jae 0xcb4ff
xorl %eax, %eax
popq %rbp
retq
cmpb $-0x21, %dil
ja 0xcb536
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0xcb4fd
movzbl 0x1(%rdx), %ecx
xorl $0x80, %ecx
movl $0x0, %eax
cmpb $0x3f, %cl
ja 0xcb4fd
andl $0x1f, %edi
shll $0x6, %edi
orl %ecx, %edi
movl $0x2, %eax
jmp 0xcb4f0
cmpb $-0x11, %dil
ja 0xcb4fb
leaq 0x3(%rdx), %r8
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %r8
ja 0xcb4fd
movzbl 0x1(%rdx), %ecx
cmpb $-0x41, %cl
jg 0xcb4fb
movzbl 0x2(%rdx), %edx
cmpb $-0x41, %dl
jg 0xcb4fb
cmpl $0xe0, %edi
sete %r8b
cmpb $-0x60, %cl
setb %r9b
movl $0x0, %eax
testb %r9b, %r8b
jne 0xcb4fd
shll $0xc, %edi
movzwl %di, %eax
andl $0x3f, %ecx
shll $0x6, %ecx
orl %eax, %ecx
andl $0x3f, %edx
orq %rcx, %rdx
movl $0x3, %eax
movq %rdx, %rdi
jmp 0xcb4f0
| my_utf8mb3_uni:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_CB4FD
movzx edi, byte ptr [rdx]
test dil, dil
js short loc_CB4F5
mov edi, edi
mov eax, 1
loc_CB4F0:
mov [rsi], rdi
jmp short loc_CB4FD
loc_CB4F5:
cmp dil, 0C2h
jnb short loc_CB4FF
loc_CB4FB:
xor eax, eax
loc_CB4FD:
pop rbp
retn
loc_CB4FF:
cmp dil, 0DFh
ja short loc_CB536
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_CB4FD
movzx ecx, byte ptr [rdx+1]
xor ecx, 80h
mov eax, 0
cmp cl, 3Fh ; '?'
ja short loc_CB4FD
and edi, 1Fh
shl edi, 6
or edi, ecx
mov eax, 2
jmp short loc_CB4F0
loc_CB536:
cmp dil, 0EFh
ja short loc_CB4FB
lea r8, [rdx+3]
mov eax, 0FFFFFF99h
cmp r8, rcx
ja short loc_CB4FD
movzx ecx, byte ptr [rdx+1]
cmp cl, 0BFh
jg short loc_CB4FB
movzx edx, byte ptr [rdx+2]
cmp dl, 0BFh
jg short loc_CB4FB
cmp edi, 0E0h
setz r8b
cmp cl, 0A0h
setb r9b
mov eax, 0
test r8b, r9b
jnz short loc_CB4FD
shl edi, 0Ch
movzx eax, di
and ecx, 3Fh
shl ecx, 6
or ecx, eax
and edx, 3Fh
or rdx, rcx
mov eax, 3
mov rdi, rdx
jmp loc_CB4F0
| long long my_utf8mb3_uni(long long a1, unsigned long long *a2, unsigned __int8 *a3, unsigned long long a4)
{
long long result; // rax
int v5; // edi
unsigned long long v6; // rdi
char v7; // cl
char v8; // dl
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *a3;
if ( (v5 & 0x80u) == 0 )
{
v6 = *a3;
result = 1LL;
LABEL_4:
*a2 = v6;
return result;
}
if ( (unsigned __int8)v5 < 0xC2u )
return 0LL;
if ( (unsigned __int8)v5 > 0xDFu )
{
if ( (unsigned __int8)v5 > 0xEFu )
return 0LL;
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) > a4 )
return result;
v7 = a3[1];
if ( v7 > -65 )
return 0LL;
v8 = a3[2];
if ( v8 > -65 )
return 0LL;
result = 0LL;
if ( (unsigned __int8)v7 >= 0xA0u || v5 != 224 )
{
result = 3LL;
v6 = (unsigned __int16)((_WORD)v5 << 12) | ((unsigned __int8)(v7 & 0x3F) << 6) | (unsigned long long)(v8 & 0x3F);
goto LABEL_4;
}
}
else
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
result = 0LL;
if ( (a3[1] ^ 0x80u) <= 0x3F )
{
v6 = a3[1] ^ 0x80 | ((unsigned __int8)(v5 & 0x1F) << 6);
result = 2LL;
goto LABEL_4;
}
}
}
}
return result;
}
| my_utf8mb3_uni:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001cb4fd
MOVZX EDI,byte ptr [RDX]
TEST DIL,DIL
JS 0x001cb4f5
MOV EDI,EDI
MOV EAX,0x1
LAB_001cb4f0:
MOV qword ptr [RSI],RDI
JMP 0x001cb4fd
LAB_001cb4f5:
CMP DIL,0xc2
JNC 0x001cb4ff
LAB_001cb4fb:
XOR EAX,EAX
LAB_001cb4fd:
POP RBP
RET
LAB_001cb4ff:
CMP DIL,0xdf
JA 0x001cb536
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001cb4fd
MOVZX ECX,byte ptr [RDX + 0x1]
XOR ECX,0x80
MOV EAX,0x0
CMP CL,0x3f
JA 0x001cb4fd
AND EDI,0x1f
SHL EDI,0x6
OR EDI,ECX
MOV EAX,0x2
JMP 0x001cb4f0
LAB_001cb536:
CMP DIL,0xef
JA 0x001cb4fb
LEA R8,[RDX + 0x3]
MOV EAX,0xffffff99
CMP R8,RCX
JA 0x001cb4fd
MOVZX ECX,byte ptr [RDX + 0x1]
CMP CL,0xbf
JG 0x001cb4fb
MOVZX EDX,byte ptr [RDX + 0x2]
CMP DL,0xbf
JG 0x001cb4fb
CMP EDI,0xe0
SETZ R8B
CMP CL,0xa0
SETC R9B
MOV EAX,0x0
TEST R8B,R9B
JNZ 0x001cb4fd
SHL EDI,0xc
MOVZX EAX,DI
AND ECX,0x3f
SHL ECX,0x6
OR ECX,EAX
AND EDX,0x3f
OR RDX,RCX
MOV EAX,0x3
MOV RDI,RDX
JMP 0x001cb4f0
|
int8 my_utf8mb3_uni(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
byte bVar2;
int8 uVar3;
ulong uVar4;
uint uVar5;
if (param_4 <= param_3) {
return 0xffffff9b;
}
bVar1 = *param_3;
uVar5 = (uint)bVar1;
if ((char)bVar1 < '\0') {
if (0xc1 < bVar1) {
if (bVar1 < 0xe0) {
if (param_4 < param_3 + 2) {
return 0xffffff9a;
}
if (0x3f < (byte)(param_3[1] ^ 0x80)) {
return 0;
}
uVar4 = (ulong)((uVar5 & 0x1f) << 6 | param_3[1] ^ 0x80);
uVar3 = 2;
goto LAB_001cb4f0;
}
if (bVar1 < 0xf0) {
if (param_4 < param_3 + 3) {
return 0xffffff99;
}
bVar2 = param_3[1];
if (((char)bVar2 < -0x40) && ((char)param_3[2] < -0x40)) {
if (uVar5 == 0xe0 && bVar2 < 0xa0) {
return 0;
}
uVar4 = (ulong)(param_3[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc);
uVar3 = 3;
goto LAB_001cb4f0;
}
}
}
uVar3 = 0;
}
else {
uVar4 = (ulong)uVar5;
uVar3 = 1;
LAB_001cb4f0:
*param_2 = uVar4;
}
return uVar3;
}
| |
43,757 | ma_field_extension_deep_dup | eloqsql/libmariadb/libmariadb/mariadb_lib.c | MA_FIELD_EXTENSION *ma_field_extension_deep_dup(MA_MEM_ROOT *memroot,
const MA_FIELD_EXTENSION *from)
{
MA_FIELD_EXTENSION *ext= new_ma_field_extension(memroot);
uint i;
if (!ext)
return NULL;
for (i= 0; i < MARIADB_FIELD_ATTR_LAST; i++)
{
if (from->metadata[i].str)
ext->metadata[i]= ma_const_string_copy_root(memroot,
from->metadata[i].str,
from->metadata[i].length);
}
return ext;
} | O0 | c | ma_field_extension_deep_dup:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x34370
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x343e1
movq $0x0, -0x8(%rbp)
jmp 0x3447a
movl $0x0, -0x24(%rbp)
cmpl $0x1, -0x24(%rbp)
jae 0x34472
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x34462
movq -0x20(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdx
callq 0x34490
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x34464
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x343e8
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| ma_field_extension_deep_dup:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
call new_ma_field_extension
mov [rbp+var_20], rax
cmp [rbp+var_20], 0
jnz short loc_343E1
mov [rbp+var_8], 0
jmp loc_3447A
loc_343E1:
mov [rbp+var_24], 0
loc_343E8:
cmp [rbp+var_24], 1
jnb loc_34472
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
shl rcx, 4
add rax, rcx
cmp qword ptr [rax], 0
jz short loc_34462
mov rax, [rbp+var_20]
mov ecx, [rbp+var_24]
shl rcx, 4
add rax, rcx
mov [rbp+var_40], rax
mov rdi, [rbp+var_10]
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
shl rcx, 4
add rax, rcx
mov rsi, [rax]
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
shl rcx, 4
add rax, rcx
mov rdx, [rax+8]
call ma_const_string_copy_root
mov rcx, rax
mov rax, [rbp+var_40]
mov [rbp+var_38], rcx
mov [rbp+var_30], rdx
mov rcx, [rbp+var_38]
mov [rax], rcx
mov rcx, [rbp+var_30]
mov [rax+8], rcx
loc_34462:
jmp short $+2
loc_34464:
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp loc_343E8
loc_34472:
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_3447A:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| _QWORD * ma_field_extension_deep_dup(long long a1, _QWORD *a2)
{
long long v2; // rdx
int i; // [rsp+1Ch] [rbp-24h]
_QWORD *v5; // [rsp+20h] [rbp-20h]
v5 = (_QWORD *)new_ma_field_extension(a1);
if ( !v5 )
return 0LL;
for ( i = 0; !i; i = 1 )
{
if ( *a2 )
{
*v5 = ma_const_string_copy_root(a1, *a2, a2[1]);
v5[1] = v2;
}
}
return v5;
}
| net_field_length:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfb
JGE 0x001343ef
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001344e4
LAB_001343ef:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfb
JNZ 0x00134418
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x001344e4
LAB_00134418:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfc
JNZ 0x0013445b
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x3
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
MOVZX ECX,CX
SHL ECX,0x8
ADD EAX,ECX
MOVZX EAX,AX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001344e4
LAB_0013445b:
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfd
JNZ 0x001344a1
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x4
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x10
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001344e4
LAB_001344a1:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX]
ADD RCX,0x9
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX + 0x1]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x4]
SHL ECX,0x18
ADD EAX,ECX
MOV EAX,EAX
MOV qword ptr [RBP + -0x8],RAX
LAB_001344e4:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
ulong net_field_length(long *param_1)
{
byte *pbVar1;
ulong local_10;
pbVar1 = (byte *)*param_1;
if (*pbVar1 < 0xfb) {
*param_1 = *param_1 + 1;
local_10 = (ulong)*pbVar1;
}
else if (*pbVar1 == 0xfb) {
*param_1 = *param_1 + 1;
local_10 = 0xffffffffffffffff;
}
else if (*pbVar1 == 0xfc) {
*param_1 = *param_1 + 3;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 & 0xffff);
}
else if (*pbVar1 == 0xfd) {
*param_1 = *param_1 + 4;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000);
}
else {
*param_1 = *param_1 + 9;
local_10 = (ulong)((uint)pbVar1[1] + (uint)pbVar1[2] * 0x100 + (uint)pbVar1[3] * 0x10000 +
(uint)pbVar1[4] * 0x1000000);
}
return local_10;
}
| |
43,758 | my_uca_scanner_init_any | eloqsql/strings/ctype-uca.c | static void
my_uca_scanner_init_any(my_uca_scanner *scanner,
CHARSET_INFO *cs,
const MY_UCA_WEIGHT_LEVEL *level,
const uchar *str, size_t length)
{
/* Note, no needs to initialize scanner->wbeg */
scanner->sbeg= str;
scanner->send= str + length;
scanner->wbeg= nochar;
scanner->level= level;
scanner->cs= cs;
} | O0 | c | my_uca_scanner_init_any:
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 -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rcx
addq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
leaq 0x160501(%rip), %rcx # 0x1b7750
movq %rcx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x30(%rax)
popq %rbp
retq
nopl (%rax)
| my_uca_scanner_init_any:
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 rcx, [rbp+var_20]
mov rax, [rbp+var_8]
mov [rax+8], rcx
mov rcx, [rbp+var_20]
add rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
mov rax, [rbp+var_8]
lea rcx, nochar
mov [rax], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_8]
mov [rax+18h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_8]
mov [rax+30h], rcx
pop rbp
retn
| _QWORD * my_uca_scanner_init_any(_QWORD *a1, long long a2, long long a3, long long a4, long long a5)
{
_QWORD *result; // rax
a1[1] = a4;
a1[2] = a5 + a4;
*a1 = &nochar;
a1[3] = a3;
result = a1;
a1[6] = a2;
return result;
}
| my_uca_scanner_init_any:
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 RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x2b7750]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x30],RCX
POP RBP
RET
|
void my_uca_scanner_init_any
(int8 *param_1,int8 param_2,int8 param_3,long param_4,long param_5)
{
param_1[1] = param_4;
param_1[2] = param_4 + param_5;
*param_1 = &nochar;
param_1[3] = param_3;
param_1[6] = param_2;
return;
}
| |
43,759 | inherit_charset_data | eloqsql/mysys/charset.c | static void
inherit_charset_data(struct charset_info_st *cs, CHARSET_INFO *refcs)
{
if (!cs->to_upper)
cs->to_upper= refcs->to_upper;
if (!cs->to_lower)
cs->to_lower= refcs->to_lower;
if (!cs->m_ctype)
cs->m_ctype= refcs->m_ctype;
if (!cs->tab_to_uni)
cs->tab_to_uni= refcs->tab_to_uni;
} | O0 | c | inherit_charset_data:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x50(%rax)
jne 0xe5467
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x50(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x48(%rax)
jne 0xe5482
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0xe549d
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x68(%rax)
jne 0xe54b8
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x68(%rax)
popq %rbp
retq
nopw (%rax,%rax)
| inherit_charset_data:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
cmp qword ptr [rax+50h], 0
jnz short loc_E5467
mov rax, [rbp+var_10]
mov rcx, [rax+50h]
mov rax, [rbp+var_8]
mov [rax+50h], rcx
loc_E5467:
mov rax, [rbp+var_8]
cmp qword ptr [rax+48h], 0
jnz short loc_E5482
mov rax, [rbp+var_10]
mov rcx, [rax+48h]
mov rax, [rbp+var_8]
mov [rax+48h], rcx
loc_E5482:
mov rax, [rbp+var_8]
cmp qword ptr [rax+40h], 0
jnz short loc_E549D
mov rax, [rbp+var_10]
mov rcx, [rax+40h]
mov rax, [rbp+var_8]
mov [rax+40h], rcx
loc_E549D:
mov rax, [rbp+var_8]
cmp qword ptr [rax+68h], 0
jnz short loc_E54B8
mov rax, [rbp+var_10]
mov rcx, [rax+68h]
mov rax, [rbp+var_8]
mov [rax+68h], rcx
loc_E54B8:
pop rbp
retn
| _QWORD * inherit_charset_data(_QWORD *a1, _QWORD *a2)
{
_QWORD *result; // rax
if ( !a1[10] )
a1[10] = a2[10];
if ( !a1[9] )
a1[9] = a2[9];
if ( !a1[8] )
a1[8] = a2[8];
result = a1;
if ( !a1[13] )
{
result = a1;
a1[13] = a2[13];
}
return result;
}
| inherit_charset_data:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x50],0x0
JNZ 0x001e5467
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x50]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x50],RCX
LAB_001e5467:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x48],0x0
JNZ 0x001e5482
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x48]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x48],RCX
LAB_001e5482:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x001e549d
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x40],RCX
LAB_001e549d:
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x68],0x0
JNZ 0x001e54b8
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x68],RCX
LAB_001e54b8:
POP RBP
RET
|
void inherit_charset_data(long param_1,long param_2)
{
if (*(long *)(param_1 + 0x50) == 0) {
*(int8 *)(param_1 + 0x50) = *(int8 *)(param_2 + 0x50);
}
if (*(long *)(param_1 + 0x48) == 0) {
*(int8 *)(param_1 + 0x48) = *(int8 *)(param_2 + 0x48);
}
if (*(long *)(param_1 + 0x40) == 0) {
*(int8 *)(param_1 + 0x40) = *(int8 *)(param_2 + 0x40);
}
if (*(long *)(param_1 + 0x68) == 0) {
*(int8 *)(param_1 + 0x68) = *(int8 *)(param_2 + 0x68);
}
return;
}
| |
43,760 | ggml_view_impl | ngxson[P]ggml-easy/ggml/src/ggml.c | static struct ggml_tensor * ggml_view_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
int n_dims,
const int64_t * ne,
size_t offset) {
struct ggml_tensor * result = ggml_new_tensor_impl(ctx, a->type, n_dims, ne, a, offset);
ggml_format_name(result, "%s (view)", a->name);
ggml_set_op_params(result, &offset, sizeof(offset));
result->op = GGML_OP_VIEW;
result->src[0] = a;
return result;
} | O3 | c | ggml_view_impl:
pushq %r15
pushq %r14
pushq %rbx
movq %r8, %rbx
movq %rsi, %r14
movl (%rsi), %esi
movq %r14, %r8
movq %rbx, %r9
callq 0x19c13
movq %rax, %r15
leaq 0x100(%r14), %rdx
leaq 0x2e8a9(%rip), %rsi # 0x4a77b
movq %rax, %rdi
xorl %eax, %eax
callq 0x179f0
testq %r15, %r15
je 0x1befd
movq %rbx, 0x54(%r15)
movl $0x23, 0x50(%r15)
movq %r14, 0x98(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x308d8(%rip), %rdi # 0x4c7dc
leaq 0x2e753(%rip), %rdx # 0x4a65e
leaq 0x3091a(%rip), %rcx # 0x4c82c
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c60
| ggml_view_impl:
push r15
push r14
push rbx
mov rbx, r8
mov r14, rsi
mov esi, [rsi]
mov r8, r14
mov r9, rbx
call ggml_new_tensor_impl
mov r15, rax
lea rdx, [r14+100h]
lea rsi, aSView; "%s (view)"
mov rdi, rax
xor eax, eax
call _ggml_format_name
test r15, r15
jz short loc_1BEFD
mov [r15+54h], rbx
mov dword ptr [r15+50h], 23h ; '#'
mov [r15+98h], r14
mov rax, r15
pop rbx
pop r14
pop r15
retn
loc_1BEFD:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
xor eax, eax
call _ggml_abort
| long long ggml_view_impl(long long a1, unsigned int *a2, unsigned int a3, _QWORD *a4, long long a5)
{
long long v6; // r15
int v7; // r8d
int v8; // r9d
v6 = ggml_new_tensor_impl(a1, *a2, a3, a4, (long long)a2, a5);
ggml_format_name(v6, (long long)"%s (view)");
if ( !v6 )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",
112,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"tensor != NULL",
v7,
v8);
*(_QWORD *)(v6 + 84) = a5;
*(_DWORD *)(v6 + 80) = 35;
*(_QWORD *)(v6 + 152) = a2;
return v6;
}
| ggml_view_impl:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,R8
MOV R14,RSI
MOV ESI,dword ptr [RSI]
MOV R8,R14
MOV R9,RBX
CALL 0x00119c13
MOV R15,RAX
LEA RDX,[R14 + 0x100]
LEA RSI,[0x14a77b]
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001179f0
TEST R15,R15
JZ 0x0011befd
MOV qword ptr [R15 + 0x54],RBX
MOV dword ptr [R15 + 0x50],0x23
MOV qword ptr [R15 + 0x98],R14
MOV RAX,R15
POP RBX
POP R14
POP R15
RET
LAB_0011befd:
LEA RDI,[0x14c7dc]
LEA RDX,[0x14a65e]
LEA RCX,[0x14c82c]
MOV ESI,0x70
XOR EAX,EAX
CALL 0x00117c60
|
long ggml_view_impl(int8 param_1,int4 *param_2,int8 param_3,int8 param_4,
int8 param_5)
{
long lVar1;
lVar1 = ggml_new_tensor_impl(param_1,*param_2,param_3,param_4,param_2,param_5);
ggml_format_name(lVar1,"%s (view)",param_2 + 0x40);
if (lVar1 != 0) {
*(int8 *)(lVar1 + 0x54) = param_5;
*(int4 *)(lVar1 + 0x50) = 0x23;
*(int4 **)(lVar1 + 0x98) = param_2;
return lVar1;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h",0x70,
"GGML_ASSERT(%s) failed","tensor != NULL");
}
| |
43,761 | YAML::as_if<bool, void>::operator()() const | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h | T operator()() const {
if (!node.m_pNode)
throw TypedBadConversion<T>(node.Mark());
T t;
if (convert<T>::decode(node, t))
return t;
throw TypedBadConversion<T>(node.Mark());
} | O0 | c | YAML::as_if<bool, void>::operator()() const:
subq $0xb8, %rsp
movq %rdi, 0x40(%rsp)
movq %rdi, %rax
movq %rax, 0x48(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq (%rax), %rax
cmpq $0x0, 0x38(%rax)
jne 0x2ea318
movl $0x40, %edi
callq 0x192f50
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq (%rax), %rdi
callq 0x1e2960
movl %edx, 0x34(%rsp)
movq %rax, 0x38(%rsp)
jmp 0x2ea299
movq 0x28(%rsp), %rdi
movl 0x34(%rsp), %eax
movq 0x38(%rsp), %rcx
movq %rcx, 0x78(%rsp)
movl %eax, 0x80(%rsp)
movl 0x80(%rsp), %eax
movl %eax, 0xa0(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x98(%rsp), %rsi
callq 0x2ea440
jmp 0x2ea2dd
movq 0x28(%rsp), %rdi
leaq 0x459b77(%rip), %rsi # 0x743e60
leaq 0x190(%rip), %rdx # 0x2ea480
callq 0x198050
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
callq 0x19ea50
jmp 0x2ea431
movq 0x40(%rsp), %rdi
movb $0x0, 0x77(%rsp)
callq 0x246dc0
movq 0x50(%rsp), %rax
movq 0x40(%rsp), %rsi
movq (%rax), %rdi
callq 0x2ea490
movb %al, 0x27(%rsp)
jmp 0x2ea33f
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x2ea349
jmp 0x2ea377
movb $0x1, 0x77(%rsp)
testb $0x1, 0x77(%rsp)
jne 0x2ea41a
jmp 0x2ea410
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x2ea427
movl $0x40, %edi
callq 0x192f50
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x8(%rsp)
movq (%rax), %rdi
callq 0x1e2960
movl %edx, 0x14(%rsp)
movq %rax, 0x18(%rsp)
jmp 0x2ea3a1
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %eax
movq 0x18(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movl %eax, 0x60(%rsp)
movl 0x60(%rsp), %eax
movl %eax, 0x70(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x68(%rsp), %rsi
callq 0x2ea440
jmp 0x2ea3d6
movq 0x8(%rsp), %rdi
leaq 0x459a7e(%rip), %rsi # 0x743e60
leaq 0x97(%rip), %rdx # 0x2ea480
callq 0x198050
jmp 0x2ea43e
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
callq 0x19ea50
jmp 0x2ea427
movq 0x40(%rsp), %rdi
callq 0x246f10
movq 0x48(%rsp), %rax
addq $0xb8, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x246f10
movq 0x90(%rsp), %rdi
callq 0x198ce0
nop
| _ZNK4YAML5as_ifIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEvEclEv:
sub rsp, 0B8h
mov [rsp+0B8h+var_78], rdi
mov rax, rdi
mov [rsp+0B8h+var_70], rax
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov rax, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_68], rax
mov rax, [rax]
cmp qword ptr [rax+38h], 0
jnz loc_2EA318
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rcx, rax
mov rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_90], rcx
mov rdi, [rax]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov [rsp+0B8h+var_84], edx
mov [rsp+0B8h+var_80], rax
jmp short $+2
loc_2EA299:
mov rdi, [rsp+0B8h+var_90]
mov eax, [rsp+0B8h+var_84]
mov rcx, [rsp+0B8h+var_80]
mov [rsp+0B8h+var_40], rcx
mov [rsp+0B8h+var_38], eax
mov eax, [rsp+0B8h+var_38]
mov [rsp+0B8h+var_18], eax
mov rax, [rsp+0B8h+var_40]
mov [rsp+0B8h+var_20], rax
lea rsi, [rsp+0B8h+var_20]
call _ZN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEEC2ERKNS_4MarkE; YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::TypedBadConversion(YAML::Mark const&)
jmp short $+2
loc_2EA2DD:
mov rdi, [rsp+0B8h+var_90]; void *
lea rsi, _ZTIN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEEE; lptinfo
lea rdx, _ZN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEED2Ev; void (*)(void *)
call ___cxa_throw
mov rdi, [rsp+0B8h+var_90]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_28], rcx
mov [rsp+0B8h+var_2C], eax
call ___cxa_free_exception
jmp loc_2EA431
loc_2EA318:
mov rdi, [rsp+0B8h+var_78]; this
mov [rsp+0B8h+var_41], 0
call _ZN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsC2Ev; aimrt::runtime::core::logger::ConsoleLoggerBackend::Options::Options(void)
mov rax, [rsp+0B8h+var_68]
mov rsi, [rsp+0B8h+var_78]
mov rdi, [rax]
call _ZN4YAML7convertIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEE6decodeERKNS_4NodeERS6_; YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::decode(YAML::Node const&,aimrt::runtime::core::logger::ConsoleLoggerBackend::Options&)
mov [rsp+0B8h+var_91], al
jmp short $+2
loc_2EA33F:
mov al, [rsp+0B8h+var_91]
test al, 1
jnz short loc_2EA349
jmp short loc_2EA377
loc_2EA349:
mov [rsp+0B8h+var_41], 1
test [rsp+0B8h+var_41], 1
jnz loc_2EA41A
jmp loc_2EA410
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_28], rcx
mov [rsp+0B8h+var_2C], eax
jmp loc_2EA427
loc_2EA377:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rcx, rax
mov rax, [rsp+0B8h+var_68]
mov [rsp+0B8h+var_B0], rcx
mov rdi, [rax]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov [rsp+0B8h+var_A4], edx
mov [rsp+0B8h+var_A0], rax
jmp short $+2
loc_2EA3A1:
mov rdi, [rsp+0B8h+var_B0]
mov eax, [rsp+0B8h+var_A4]
mov rcx, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_60], rcx
mov [rsp+0B8h+var_58], eax
mov eax, [rsp+0B8h+var_58]
mov [rsp+0B8h+var_48], eax
mov rax, [rsp+0B8h+var_60]
mov [rsp+0B8h+var_50], rax
lea rsi, [rsp+0B8h+var_50]
call _ZN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEEC2ERKNS_4MarkE; YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::TypedBadConversion(YAML::Mark const&)
jmp short $+2
loc_2EA3D6:
mov rdi, [rsp+0B8h+var_B0]; void *
lea rsi, _ZTIN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEEE; lptinfo
lea rdx, _ZN4YAML18TypedBadConversionIN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsEED2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_2EA43E
mov rdi, [rsp+0B8h+var_B0]; void *
mov rcx, rax
mov eax, edx
mov [rsp+0B8h+var_28], rcx
mov [rsp+0B8h+var_2C], eax
call ___cxa_free_exception
jmp short loc_2EA427
loc_2EA410:
mov rdi, [rsp+0B8h+var_78]; this
call _ZN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsD2Ev; aimrt::runtime::core::logger::ConsoleLoggerBackend::Options::~Options()
loc_2EA41A:
mov rax, [rsp+0B8h+var_70]
add rsp, 0B8h
retn
loc_2EA427:
mov rdi, [rsp+0B8h+var_78]; this
call _ZN5aimrt7runtime4core6logger20ConsoleLoggerBackend7OptionsD2Ev; aimrt::runtime::core::logger::ConsoleLoggerBackend::Options::~Options()
loc_2EA431:
mov rdi, [rsp+0B8h+var_28]
call __Unwind_Resume
loc_2EA43E:
xchg ax, ax
| aimrt::runtime::core::logger::ConsoleLoggerBackend::Options * YAML::as_if<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options,void>::operator()(
aimrt::runtime::core::logger::ConsoleLoggerBackend::Options *a1,
YAML::detail::node ***a2)
{
long long v2; // rax
int v3; // edx
long long v4; // rax
int v5; // edx
void *v7; // [rsp+8h] [rbp-B0h]
void *exception; // [rsp+28h] [rbp-90h]
long long v9; // [rsp+68h] [rbp-50h] BYREF
int v10; // [rsp+70h] [rbp-48h]
char v11; // [rsp+77h] [rbp-41h]
long long v12; // [rsp+98h] [rbp-20h] BYREF
int v13; // [rsp+A0h] [rbp-18h]
YAML::detail::node ***v14; // [rsp+A8h] [rbp-10h]
aimrt::runtime::core::logger::ConsoleLoggerBackend::Options *v15; // [rsp+B0h] [rbp-8h]
v15 = a1;
v14 = a2;
if ( !(*a2)[7] )
{
exception = __cxa_allocate_exception(0x40uLL);
v2 = YAML::Node::Mark(*a2);
v13 = v3;
v12 = v2;
YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::TypedBadConversion(
exception,
&v12);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>,
YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::~TypedBadConversion);
}
v11 = 0;
aimrt::runtime::core::logger::ConsoleLoggerBackend::Options::Options(a1);
if ( (YAML::convert<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::decode(*a2, a1) & 1) == 0 )
{
v7 = __cxa_allocate_exception(0x40uLL);
v4 = YAML::Node::Mark(*a2);
v10 = v5;
v9 = v4;
YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::TypedBadConversion(v7, &v9);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>,
YAML::TypedBadConversion<aimrt::runtime::core::logger::ConsoleLoggerBackend::Options>::~TypedBadConversion);
}
v11 = 1;
return a1;
}
| |||
43,762 | YAML::as_if<bool, void>::operator()() const | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/impl.h | T operator()() const {
if (!node.m_pNode)
throw TypedBadConversion<T>(node.Mark());
T t;
if (convert<T>::decode(node, t))
return t;
throw TypedBadConversion<T>(node.Mark());
} | O3 | c | YAML::as_if<bool, void>::operator()() const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rdi
cmpq $0x0, 0x38(%rdi)
je 0xf7741
movl $0x1, (%rbx)
leaq 0x18(%rbx), %rax
movq %rax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movb %al, 0x18(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movq %rax, 0x38(%rbx)
movq $0x3b9aca00, 0x40(%rbx) # imm = 0x3B9ACA00
movb %al, 0x48(%rbx)
movq %rbx, %rsi
callq 0xf77fc
testb %al, %al
je 0xf7787
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x40, %edi
callq 0x80f20
movq %rax, %rbx
movq (%r14), %rdi
callq 0x9bbe2
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x9c406
leaq 0x1a17d2(%rip), %rax # 0x298f40
movq %rax, (%rbx)
leaq 0x1a17a0(%rip), %rsi # 0x298f18
leaq 0x1e095(%rip), %rdx # 0x115814
movq %rbx, %rdi
callq 0x83970
movl $0x40, %edi
callq 0x80f20
movq %rax, %r15
movq (%r14), %rdi
callq 0x9bbe2
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %r15, %rdi
callq 0x9c406
leaq 0x1a178c(%rip), %rax # 0x298f40
movq %rax, (%r15)
leaq 0x1a175a(%rip), %rsi # 0x298f18
leaq 0x1e04f(%rip), %rdx # 0x115814
movq %r15, %rdi
callq 0x83970
jmp 0xf77e9
movq %rax, %r14
movq %r15, %rdi
callq 0x816f0
jmp 0xf77ec
movq %rax, %r14
movq %rbx, %rdi
callq 0x816f0
jmp 0xf77f4
movq %rax, %r14
movq %rbx, %rdi
callq 0xb006c
movq %r14, %rdi
callq 0x83b70
| _ZNK4YAML5as_ifIN5aimrt7runtime4core8executor18AsioThreadExecutor7OptionsEvEclEv:
push r15
push r14
push rbx; __int64
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov rdi, [rsi]
cmp qword ptr [rdi+38h], 0
jz short loc_F7741
mov dword ptr [rbx], 1
lea rax, [rbx+18h]
mov [rbx+8], rax
xor eax, eax
mov [rbx+10h], rax
mov [rbx+18h], al
xorps xmm0, xmm0
movups xmmword ptr [rbx+28h], xmm0
mov [rbx+38h], rax
mov qword ptr [rbx+40h], 3B9ACA00h
mov [rbx+48h], al
mov rsi, rbx
call _ZN4YAML7convertIN5aimrt7runtime4core8executor18AsioThreadExecutor7OptionsEE6decodeERKNS_4NodeERS6_; YAML::convert<aimrt::runtime::core::executor::AsioThreadExecutor::Options>::decode(YAML::Node const&,aimrt::runtime::core::executor::AsioThreadExecutor::Options&)
test al, al
jz short loc_F7787
mov rax, rbx
add rsp, 10h
pop rbx
pop r14
pop r15
retn
loc_F7741:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, [r14]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov rsi, rsp; int
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx; int
call _ZN4YAML13BadConversionC2ERKNS_4MarkE; YAML::BadConversion::BadConversion(YAML::Mark const&)
lea rax, off_298F40
mov [rbx], rax
lea rsi, _ZTIN4YAML18TypedBadConversionIN5aimrt7runtime4core8executor18AsioThreadExecutor7OptionsEEE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_F7787:
mov edi, 40h ; '@'; thrown_size
call ___cxa_allocate_exception
mov r15, rax
mov rdi, [r14]; this
call _ZNK4YAML4Node4MarkEv; YAML::Node::Mark(void)
mov rsi, rsp; int
mov [rsi], rax
mov [rsi+8], edx
mov rdi, r15; int
call _ZN4YAML13BadConversionC2ERKNS_4MarkE; YAML::BadConversion::BadConversion(YAML::Mark const&)
lea rax, off_298F40
mov [r15], rax
lea rsi, _ZTIN4YAML18TypedBadConversionIN5aimrt7runtime4core8executor18AsioThreadExecutor7OptionsEEE; lptinfo
lea rdx, _ZN4YAML9ExceptionD2Ev; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_F77E9
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_F77EC
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_F77F4
loc_F77E9:
mov r14, rax
loc_F77EC:
mov rdi, rbx; this
call _ZN5aimrt7runtime4core8executor18AsioThreadExecutor7OptionsD2Ev; aimrt::runtime::core::executor::AsioThreadExecutor::Options::~Options()
loc_F77F4:
mov rdi, r14
call __Unwind_Resume
| long long YAML::as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void>::operator()(
long long a1,
YAML::Node **a2)
{
YAML::Node *v3; // rdi
_QWORD *exception; // rbx
int v6; // edx
_QWORD *v7; // r15
int v8; // edx
long long v9; // [rsp+0h] [rbp-28h] BYREF
int v10; // [rsp+8h] [rbp-20h]
v3 = *a2;
if ( !*((_QWORD *)*a2 + 7) )
{
exception = __cxa_allocate_exception(0x40uLL);
v9 = YAML::Node::Mark(*a2);
v10 = v6;
YAML::BadConversion::BadConversion(exception, (int)&v9);
*exception = &off_298F40;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt::runtime::core::executor::AsioThreadExecutor::Options>,
YAML::Exception::~Exception);
}
*(_DWORD *)a1 = 1;
*(_QWORD *)(a1 + 8) = a1 + 24;
*(_QWORD *)(a1 + 16) = 0LL;
*(_BYTE *)(a1 + 24) = 0;
*(_OWORD *)(a1 + 40) = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
*(_QWORD *)(a1 + 64) = 1000000000LL;
*(_BYTE *)(a1 + 72) = 0;
if ( !(unsigned __int8)YAML::convert<aimrt::runtime::core::executor::AsioThreadExecutor::Options>::decode(v3, a1) )
{
v7 = __cxa_allocate_exception(0x40uLL);
v9 = YAML::Node::Mark(*a2);
v10 = v8;
YAML::BadConversion::BadConversion(v7, (int)&v9);
*v7 = &off_298F40;
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'YAML::TypedBadConversion<aimrt::runtime::core::executor::AsioThreadExecutor::Options>,
YAML::Exception::~Exception);
}
return a1;
}
| operator():
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RSI]
CMP qword ptr [RDI + 0x38],0x0
JZ 0x001f7741
MOV dword ptr [RBX],0x1
LEA RAX,[RBX + 0x18]
MOV qword ptr [RBX + 0x8],RAX
XOR EAX,EAX
MOV qword ptr [RBX + 0x10],RAX
MOV byte ptr [RBX + 0x18],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX + 0x28],XMM0
MOV qword ptr [RBX + 0x38],RAX
MOV qword ptr [RBX + 0x40],0x3b9aca00
MOV byte ptr [RBX + 0x48],AL
LAB_001f7728:
MOV RSI,RBX
CALL 0x001f77fc
LAB_001f7730:
TEST AL,AL
JZ 0x001f7787
MOV RAX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
LAB_001f7741:
MOV EDI,0x40
CALL 0x00180f20
MOV RBX,RAX
MOV RDI,qword ptr [R14]
LAB_001f7751:
CALL 0x0019bbe2
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x0019c406
LAB_001f7767:
LEA RAX,[0x398f40]
MOV qword ptr [RBX],RAX
LEA RSI,[0x398f18]
LEA RDX,[0x215814]
MOV RDI,RBX
CALL 0x00183970
LAB_001f7787:
MOV EDI,0x40
CALL 0x00180f20
MOV R15,RAX
MOV RDI,qword ptr [R14]
LAB_001f7797:
CALL 0x0019bbe2
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,R15
CALL 0x0019c406
LEA RAX,[0x398f40]
MOV qword ptr [R15],RAX
LAB_001f77b7:
LEA RSI,[0x398f18]
LEA RDX,[0x215814]
MOV RDI,R15
CALL 0x00183970
|
/* YAML::as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,
void>::TEMPNAMEPLACEHOLDERVALUE() const */
as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void> * __thiscall
YAML::as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void>::operator()
(as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void> *this)
{
Node *pNVar1;
char cVar2;
BadConversion *pBVar3;
int8 *in_RSI;
Mark local_28 [16];
pNVar1 = (Node *)*in_RSI;
if (*(long *)(pNVar1 + 0x38) == 0) {
pBVar3 = (BadConversion *)__cxa_allocate_exception(0x40);
/* try { // try from 001f7751 to 001f7766 has its CatchHandler @ 001f77dc */
local_28._0_12_ = Node::Mark((Node *)*in_RSI);
BadConversion::BadConversion(pBVar3,local_28);
*(int ***)pBVar3 = &PTR__BadInsert_00398f40;
/* WARNING: Subroutine does not return */
__cxa_throw(pBVar3,&TypedBadConversion<aimrt::runtime::core::executor::AsioThreadExecutor::Options>
::typeinfo,BadInsert::~BadInsert);
}
*(int4 *)this = 1;
*(as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void> **)(this + 8) =
this + 0x18;
*(int8 *)(this + 0x10) = 0;
this[0x18] = (as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void>)0x0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x40) = 1000000000;
this[0x48] = (as_if<aimrt::runtime::core::executor::AsioThreadExecutor::Options,void>)0x0;
/* try { // try from 001f7728 to 001f772f has its CatchHandler @ 001f77e9 */
cVar2 = convert<aimrt::runtime::core::executor::AsioThreadExecutor::Options>::decode
(pNVar1,(Options *)this);
if (cVar2 != '\0') {
return this;
}
pBVar3 = (BadConversion *)__cxa_allocate_exception(0x40);
/* try { // try from 001f7797 to 001f77ac has its CatchHandler @ 001f77cf */
local_28._0_12_ = Node::Mark((Node *)*in_RSI);
BadConversion::BadConversion(pBVar3,local_28);
*(int ***)pBVar3 = &PTR__BadInsert_00398f40;
/* try { // try from 001f77b7 to 001f77cc has its CatchHandler @ 001f77cd */
/* WARNING: Subroutine does not return */
__cxa_throw(pBVar3,&TypedBadConversion<aimrt::runtime::core::executor::AsioThreadExecutor::Options>
::typeinfo,BadInsert::~BadInsert);
}
| |
43,763 | void Log::outMessage<char const*, char const (&) [89], int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, LogLevel, fmt::v10::basic_format_string<char, fmt::v10::type_identity<char const*>::type, fmt::v10::type_identity<char const (&) [89]>::type, fmt::v10::type_identity<int>::type>, char const*&&, char const (&) [89], int&&) | SylCore-WoTLK/src/common/Logging/Log.h | inline void outMessage(std::string const& filter, LogLevel const level, Acore::FormatString<Args...> fmt, Args&&... args)
{
_outMessage(filter, level, Acore::StringFormat(fmt, std::forward<Args>(args)...));
} | O3 | c | void Log::outMessage<char const*, char const (&) [89], int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, LogLevel, fmt::v10::basic_format_string<char, fmt::v10::type_identity<char const*>::type, fmt::v10::type_identity<char const (&) [89]>::type, fmt::v10::type_identity<int>::type>, char const*&&, char const (&) [89], int&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r8, %r15
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq (%r9), %rdx
movl (%rcx), %ecx
leaq 0x40(%rsp), %r8
movq %rdx, (%r8)
movq %rax, 0x10(%r8)
movq %rcx, 0x20(%r8)
movq %rsp, %rdi
movl $0x1cc, %ecx # imm = 0x1CC
movq %r12, %rsi
movq %r15, %rdx
callq 0xea7c3
movq (%rsp), %r8
movq 0x8(%rsp), %rcx
movzbl %bpl, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb3e76
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2237
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd32e8
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2264
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xd32e8
movq %r13, %rdi
callq 0x1bba0
movq %rax, %r13
cmpl $0x1, %edx
jne 0xb2264
movq %r13, %rdi
callq 0x1b0d0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0x20(%rsp), %r8
movq %rax, (%r8)
movq %r12, 0x10(%r8)
movq %r15, 0x18(%r8)
leaq 0x479ad(%rip), %rsi # 0xf9c49
movq %rsp, %rdi
movl $0x2c, %edx
movl $0xdc, %ecx
callq 0xea7c3
callq 0x1be70
jmp 0xb2204
movq %rax, %r13
callq 0x1be70
jmp 0xb2264
movq %rax, %rdi
callq 0x2841d
| _ZN3Log10outMessageIJPKcRA84_S1_iEEEvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE8LogLevelN3fmt3v1019basic_format_stringIcJDpNSF_13type_identityIT_E4typeEEEEDpOSI_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 78h
mov r15, r8
mov r12, rcx
mov ebp, edx
mov rbx, rsi
mov r14, rdi
mov rax, [rsp+0A8h+arg_0]
mov rcx, [rsp+0A8h+arg_8]
mov rdx, [r9]
mov ecx, [rcx]
lea r8, [rsp+0A8h+var_68]; int
mov [r8], rdx
mov [r8+10h], rax
mov [r8+20h], rcx
mov rdi, rsp; int
mov ecx, 1CCh; int
mov rsi, r12; int
mov rdx, r15; int
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
loc_B2204:
mov r8, [rsp+0A8h+var_A8]
mov rcx, [rsp+0A8h+var_A0]
movzx edx, bpl
mov rdi, r14
mov rsi, rbx
call _ZN3Log11_outMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE8LogLevelSt17basic_string_viewIcS3_E; Log::_outMessage(std::string const&,LogLevel,std::string_view)
lea rax, [rsp+0A8h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B2237
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_B2237:
add rsp, 78h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r13, rax
lea rax, [rsp+0A8h+var_98]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B2264
mov rsi, [rsp+0A8h+var_98]
inc rsi; unsigned __int64
call _ZdlPvm; operator delete(void *,ulong)
loc_B2264:
mov rdi, r13
call __Unwind_Resume
mov r13, rax
cmp edx, 1
jnz short loc_B2264
mov rdi, r13; void *
call ___cxa_begin_catch
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+10h]
lea r8, [rsp+0A8h+var_88]; int
mov [r8], rax
mov [r8+10h], r12
mov [r8+18h], r15
lea rsi, aWrongFormatOcc_0; "Wrong format occurred ({}). Fmt string:"...
mov rdi, rsp; int
mov edx, 2Ch ; ','; int
mov ecx, 0DCh; int
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
call ___cxa_end_catch
jmp loc_B2204
mov r13, rax
call ___cxa_end_catch
jmp short loc_B2264
mov rdi, rax
call __clang_call_terminate
| void Log::outMessage<char const*,char const(&)[84],int>(
long long a1,
long long a2,
unsigned __int8 a3,
int a4,
int a5,
_QWORD *a6,
long long a7,
unsigned int *a8)
{
long long v10; // rcx
void **v11; // [rsp+0h] [rbp-A8h] BYREF
long long v12; // [rsp+8h] [rbp-A0h]
void *v13; // [rsp+10h] [rbp-98h] BYREF
int v14; // [rsp+18h] [rbp-90h]
unsigned long long v15; // [rsp+20h] [rbp-88h]
_QWORD v16[13]; // [rsp+40h] [rbp-68h] BYREF
v10 = *a8;
v16[0] = *a6;
v16[2] = a7;
v16[4] = v10;
fmt::v10::vformat[abi:cxx11]((int)&v11, a4, a5, 460, (int)v16, (int)a6, (int)v11, v12, v13, v14, v15);
Log::_outMessage(a1, a2, a3, v12, v11);
if ( v11 != &v13 )
operator delete(v11, (unsigned long long)v13 + 1);
}
| outMessage<char_const*,char_const(&)[84],int>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x78
MOV R15,R8
MOV R12,RCX
MOV EBP,EDX
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [R9]
MOV ECX,dword ptr [RCX]
LEA R8,[RSP + 0x40]
MOV qword ptr [R8],RDX
MOV qword ptr [R8 + 0x10],RAX
MOV qword ptr [R8 + 0x20],RCX
LAB_001b21f1:
MOV RDI,RSP
MOV ECX,0x1cc
MOV RSI,R12
MOV RDX,R15
CALL 0x001ea7c3
LAB_001b2204:
MOV R8,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
LAB_001b220d:
MOVZX EDX,BPL
MOV RDI,R14
MOV RSI,RBX
CALL 0x001b3e76
LAB_001b221c:
LEA RAX,[RSP + 0x10]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b2237
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001d32e8
LAB_001b2237:
ADD RSP,0x78
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* void Log::outMessage<char const*, char const (&) [84], int>(std::__cxx11::string const&,
LogLevel, fmt::v10::basic_format_string<char, fmt::v10::type_identity<char const*>::type,
fmt::v10::type_identity<char const (&) [84]>::type, fmt::v10::type_identity<int>::type>, char
const*&&, char const (&) [84], int&&) */
void Log::outMessage<char_const*,char_const(&)[84],int>
(int8 param_1,int8 param_2,int1 param_3,int8 param_4,
int8 param_5,int8 *param_6,int8 param_7,uint *param_8)
{
long *local_a8;
int8 local_a0;
long local_98 [6];
int8 local_68;
int8 local_58;
ulong local_48;
local_68 = *param_6;
local_48 = (ulong)*param_8;
local_58 = param_7;
/* try { // try from 001b21f1 to 001b2203 has its CatchHandler @ 001b226c */
fmt::v10::vformat_abi_cxx11_(&local_a8,param_4,param_5,0x1cc);
/* try { // try from 001b220d to 001b221b has its CatchHandler @ 001b2246 */
_outMessage(param_1,param_2,param_3,local_a0,local_a8);
if (local_a8 != local_98) {
operator_delete(local_a8,local_98[0] + 1);
}
return;
}
| |
43,764 | ftxui::(anonymous namespace)::InstallSignalHandler(int) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp | void InstallSignalHandler(int sig) {
auto old_signal_handler = std::signal(sig, RecordSignal);
on_exit_functions.push(
[=] { std::ignore = std::signal(sig, old_signal_handler); });
} | O2 | cpp | ftxui::(anonymous namespace)::InstallSignalHandler(int):
pushq %rbx
subq $0x20, %rsp
movl %edi, %ebx
leaq 0xd74(%rip), %rsi # 0x28630
callq 0xc530
movq %rsp, %rsi
andq $0x0, (%rsi)
movl %ebx, (%rsi)
movq %rax, 0x8(%rsi)
leaq 0xd91(%rip), %rax # 0x28666
movq %rax, 0x18(%rsi)
leaq 0xd94(%rip), %rax # 0x28674
movq %rax, 0x10(%rsi)
leaq 0x2b9bd(%rip), %rdi # 0x532a8
callq 0x2981c
movq %rsp, %rdi
callq 0x13b10
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x13b10
movq %rbx, %rdi
callq 0xc7f0
nop
| _ZN5ftxui12_GLOBAL__N_120InstallSignalHandlerEi:
push rbx
sub rsp, 20h
mov ebx, edi
lea rsi, _ZN5ftxui12_GLOBAL__N_112RecordSignalEi; ftxui::`anonymous namespace'::RecordSignal(int)
call _signal
mov rsi, rsp
and qword ptr [rsi], 0
mov [rsi], ebx
mov [rsi+8], rax
lea rax, _ZNSt17_Function_handlerIFvvEZN5ftxui12_GLOBAL__N_120InstallSignalHandlerEiE3$_0E9_M_invokeERKSt9_Any_data; std::_Function_handler<void ()(void),ftxui::`anonymous namespace'::InstallSignalHandler(int)::$_0>::_M_invoke(std::_Any_data const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvvEZN5ftxui12_GLOBAL__N_120InstallSignalHandlerEiE3$_0E10_M_managerERSt9_Any_dataRKS5_St18_Manager_operation; std::_Function_handler<void ()(void),ftxui::`anonymous namespace'::InstallSignalHandler(int)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdi, _ZN5ftxui12_GLOBAL__N_117on_exit_functionsE; ftxui::`anonymous namespace'::on_exit_functions
call _ZNSt5dequeISt8functionIFvvEESaIS2_EE12emplace_backIJS2_EEERS2_DpOT_; std::deque<std::function<void ()(void)>>::emplace_back<std::function<void ()(void)>>(std::function<void ()(void)> &&)
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
add rsp, 20h
pop rbx
retn
mov rbx, rax
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rdi, rbx
call __Unwind_Resume
| void ftxui::`anonymous namespace'::InstallSignalHandler(ftxui::_anonymous_namespace_ *this)
{
_DWORD v1[2]; // [rsp+0h] [rbp-28h] BYREF
long long v2; // [rsp+8h] [rbp-20h]
long long ( *v3)(); // [rsp+10h] [rbp-18h]
long long ( *v4)(); // [rsp+18h] [rbp-10h]
v1[1] = 0;
v1[0] = (_DWORD)this;
v2 = signal(this, ftxui::`anonymous namespace'::RecordSignal);
v4 = std::_Function_handler<void ()(void),ftxui::`anonymous namespace'::InstallSignalHandler(int)::$_0>::_M_invoke;
v3 = std::_Function_handler<void ()(void),ftxui::`anonymous namespace'::InstallSignalHandler(int)::$_0>::_M_manager;
std::deque<std::function<void ()(void)>>::emplace_back<std::function<void ()(void)>>(
&ftxui::`anonymous namespace'::on_exit_functions,
v1);
std::_Function_base::~_Function_base((std::_Function_base *)v1);
}
| InstallSignalHandler:
PUSH RBX
SUB RSP,0x20
MOV EBX,EDI
LEA RSI,[0x128630]
CALL 0x0010c530
MOV RSI,RSP
AND qword ptr [RSI],0x0
MOV dword ptr [RSI],EBX
MOV qword ptr [RSI + 0x8],RAX
LEA RAX,[0x128666]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x128674]
MOV qword ptr [RSI + 0x10],RAX
LAB_001278e4:
LEA RDI,[0x1532a8]
CALL 0x0012981c
LAB_001278f0:
MOV RDI,RSP
CALL 0x00113b10
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::(anonymous namespace)::InstallSignalHandler(int) */
void ftxui::(anonymous_namespace)::InstallSignalHandler(int param_1)
{
ulong local_28;
__sighandler_t local_20;
code *local_18;
code *local_10;
local_20 = signal(param_1,RecordSignal);
local_28 = (ulong)(uint)param_1;
local_10 = std::
_Function_handler<void(),ftxui::(anonymous_namespace)::InstallSignalHandler(int)::$_0>
::_M_invoke;
local_18 = std::
_Function_handler<void(),ftxui::(anonymous_namespace)::InstallSignalHandler(int)::$_0>
::_M_manager;
/* try { // try from 001278e4 to 001278ef has its CatchHandler @ 001278fe */
std::deque<std::function<void()>,std::allocator<std::function<void()>>>::
emplace_back<std::function<void()>>
((deque<std::function<void()>,std::allocator<std::function<void()>>> *)on_exit_functions
,(function *)&local_28);
std::_Function_base::~_Function_base((_Function_base *)&local_28);
return;
}
| |
43,765 | mi_ft_add | eloqsql/storage/myisam/ft_update.c | int _mi_ft_add(MI_INFO *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_mi_ft_add");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist=_mi_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error=_mi_ft_store(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
} | O0 | c | mi_ft_add:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
jmp 0xa3514
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x90, %rcx
callq 0xa2e40
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0xa3554
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0xa3460
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x90, %rdi
movl $0x2, %esi
callq 0xed9e0
jmp 0xa356b
jmp 0xa356d
movl -0x2c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _mi_ft_add:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], 0FFFFFFFFh
jmp short $+2
loc_A3514:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 90h
call _mi_ft_parserecord
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_A3554
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_38]
mov r8, [rbp+var_28]
call _mi_ft_store
mov [rbp+var_2C], eax
loc_A3554:
mov rdi, [rbp+var_8]
add rdi, 90h
mov esi, 2
call free_root
jmp short $+2
loc_A356B:
jmp short $+2
loc_A356D:
mov eax, [rbp+var_2C]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long mi_ft_add(_QWORD *a1, unsigned int a2, long long a3, long long a4, long long a5)
{
_QWORD *v6; // [rsp+8h] [rbp-38h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = -1;
v6 = (_QWORD *)mi_ft_parserecord(a1, a2, a4, (long long)(a1 + 18));
if ( v6 )
v7 = mi_ft_store((long long)a1, a2, a3, v6, a5);
free_root(a1 + 18, 2LL);
return v7;
}
| _mi_ft_add:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],0xffffffff
JMP 0x001a3514
LAB_001a3514:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x90
CALL 0x001a2e40
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x001a3554
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x001a3460
MOV dword ptr [RBP + -0x2c],EAX
LAB_001a3554:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x90
MOV ESI,0x2
CALL 0x001ed9e0
JMP 0x001a356b
LAB_001a356b:
JMP 0x001a356d
LAB_001a356d:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int4
_mi_ft_add(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5)
{
long lVar1;
int4 local_34;
local_34 = 0xffffffff;
lVar1 = _mi_ft_parserecord(param_1,param_2,param_4,param_1 + 0x90);
if (lVar1 != 0) {
local_34 = _mi_ft_store(param_1,param_2,param_3,lVar1,param_5);
}
free_root(param_1 + 0x90,2);
return local_34;
}
| |
43,766 | mi_write_blob_record | eloqsql/storage/myisam/mi_dynrec.c | int _mi_write_blob_record(MI_INFO *info, const uchar *record)
{
uchar *rec_buff;
int error;
ulong reclength,reclength2,extra;
extra= (ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER)+MI_SPLIT_LENGTH+
MI_DYN_DELETE_BLOCK_HEADER+1);
reclength= (info->s->base.pack_reclength +
_mi_calc_total_blob_length(info,record)+ extra);
if (!(rec_buff=(uchar*) my_alloca(reclength)))
{
my_errno= HA_ERR_OUT_OF_MEM; /* purecov: inspected */
return(-1);
}
reclength2= _mi_rec_pack(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER),
record);
DBUG_PRINT("info",("reclength: %lu reclength2: %lu",
reclength, reclength2));
DBUG_ASSERT(reclength2 <= reclength);
error=write_dynamic_record(info,rec_buff+ALIGN_SIZE(MI_MAX_DYN_BLOCK_HEADER),
reclength2);
my_afree(rec_buff);
return(error);
} | O3 | c | mi_write_blob_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x148(%rax), %r15
callq 0x779f8
leaq (%r15,%rax), %rsi
addq $0x5d, %rsi
xorl %edi, %edi
xorl %edx, %edx
callq 0x9ff21
testq %rax, %rax
je 0x779df
movq %rax, %r15
movq %rax, %r12
addq $0x18, %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x770be
movl %eax, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x77430
movl %eax, %ebx
movq %r15, %rdi
callq 0xa014e
movl %ebx, %eax
jmp 0x779ef
callq 0xa1c92
movl $0x80, (%rax)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_write_blob_record:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rsi
mov rbx, rdi
mov rax, [rdi]
mov r15, [rax+148h]
call _mi_calc_total_blob_length
lea rsi, [r15+rax]
add rsi, 5Dh ; ']'
xor edi, edi
xor edx, edx
call my_malloc
test rax, rax
jz short loc_779DF
mov r15, rax
mov r12, rax
add r12, 18h
mov rdi, rbx
mov rsi, r12
mov rdx, r14
call _mi_rec_pack
mov edx, eax
mov rdi, rbx
mov rsi, r12
call write_dynamic_record_0
mov ebx, eax
mov rdi, r15
call my_free
mov eax, ebx
jmp short loc_779EF
loc_779DF:
call _my_thread_var
mov dword ptr [rax], 80h
mov eax, 0FFFFFFFFh
loc_779EF:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_write_blob_record(_BYTE *a1, char *a2)
{
long long v2; // r15
long long v3; // rax
long long v4; // rax
long long v5; // r15
long long v6; // r12
unsigned int v7; // eax
unsigned int v8; // ebx
v2 = *(_QWORD *)(*(_QWORD *)a1 + 328LL);
v3 = mi_calc_total_blob_length();
v4 = my_malloc(0LL, v2 + v3 + 93, 0LL);
if ( v4 )
{
v5 = v4;
v6 = v4 + 24;
v7 = mi_rec_pack((long long)a1, (_BYTE *)(v4 + 24), a2);
v8 = write_dynamic_record_0(a1, v6, v7);
my_free(v5);
return v8;
}
else
{
*(_DWORD *)my_thread_var(0LL) = 128;
return 0xFFFFFFFFLL;
}
}
| _mi_write_blob_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV R15,qword ptr [RAX + 0x148]
CALL 0x001779f8
LEA RSI,[R15 + RAX*0x1]
ADD RSI,0x5d
XOR EDI,EDI
XOR EDX,EDX
CALL 0x0019ff21
TEST RAX,RAX
JZ 0x001779df
MOV R15,RAX
MOV R12,RAX
ADD R12,0x18
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R14
CALL 0x001770be
MOV EDX,EAX
MOV RDI,RBX
MOV RSI,R12
CALL 0x00177430
MOV EBX,EAX
MOV RDI,R15
CALL 0x001a014e
MOV EAX,EBX
JMP 0x001779ef
LAB_001779df:
CALL 0x001a1c92
MOV dword ptr [RAX],0x80
MOV EAX,0xffffffff
LAB_001779ef:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 _mi_write_blob_record(long *param_1,int8 param_2)
{
int4 uVar1;
long lVar2;
long lVar3;
int4 *puVar4;
lVar3 = *(long *)(*param_1 + 0x148);
lVar2 = _mi_calc_total_blob_length();
lVar3 = my_malloc(0,lVar3 + lVar2 + 0x5d,0);
if (lVar3 == 0) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0x80;
uVar1 = 0xffffffff;
}
else {
uVar1 = _mi_rec_pack(param_1,lVar3 + 0x18,param_2);
uVar1 = write_dynamic_record(param_1,lVar3 + 0x18,uVar1);
my_free(lVar3);
}
return uVar1;
}
| |
43,767 | my_wc_mb_utf8mb4_no_range | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r)
{
int count;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else
return MY_CS_ILUNI;
switch (count)
{
case 4: r[3]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0]= (uchar) wc;
}
return count;
} | O3 | c | my_wc_mb_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpq $0x80, %rdi
jb 0xd04a9
movl $0x2, %eax
cmpq $0x800, %rdi # imm = 0x800
jb 0xd0493
movl $0x3, %eax
cmpq $0x10000, %rdi # imm = 0x10000
jb 0xd047d
xorl %eax, %eax
cmpq $0x1fffff, %rdi # imm = 0x1FFFFF
ja 0xd04ac
movl %edi, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x3(%rsi)
shrq $0x6, %rdi
orq $0x10000, %rdi # imm = 0x10000
movl $0x4, %eax
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x2(%rsi)
shrq $0x6, %rdi
orq $0x800, %rdi # imm = 0x800
movl %edi, %ecx
andb $0x3f, %cl
orb $-0x80, %cl
movb %cl, 0x1(%rsi)
shrq $0x6, %rdi
orq $0xc0, %rdi
movb %dil, (%rsi)
popq %rbp
retq
| my_wc_mb_utf8mb4_no_range:
push rbp
mov rbp, rsp
mov eax, 1
cmp rdi, 80h
jb short loc_D04A9
mov eax, 2
cmp rdi, 800h
jb short loc_D0493
mov eax, 3
cmp rdi, offset stru_10000
jb short loc_D047D
xor eax, eax
cmp rdi, offset unk_1FFFFF
ja short loc_D04AC
mov eax, edi
and al, 3Fh
or al, 80h
mov [rsi+3], al
shr rdi, 6
or rdi, 10000h
mov eax, 4
loc_D047D:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+2], cl
shr rdi, 6
or rdi, 800h
loc_D0493:
mov ecx, edi
and cl, 3Fh
or cl, 80h
mov [rsi+1], cl
shr rdi, 6
or rdi, 0C0h
loc_D04A9:
mov [rsi], dil
loc_D04AC:
pop rbp
retn
| long long my_wc_mb_utf8mb4_no_range(unsigned long long a1, _BYTE *a2)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 2LL;
if ( a1 >= 0x800 )
{
result = 3LL;
if ( a1 >= (unsigned long long)&stru_10000 )
{
result = 0LL;
if ( a1 > (unsigned long long)&unk_1FFFFF )
return result;
a2[3] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x10000;
result = 4LL;
}
a2[2] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0x800;
}
a2[1] = a1 & 0x3F | 0x80;
a1 = (a1 >> 6) | 0xC0;
}
*a2 = a1;
return result;
}
| my_wc_mb_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP RDI,0x80
JC 0x001d04a9
MOV EAX,0x2
CMP RDI,0x800
JC 0x001d0493
MOV EAX,0x3
CMP RDI,0x10000
JC 0x001d047d
XOR EAX,EAX
CMP RDI,0x1fffff
JA 0x001d04ac
MOV EAX,EDI
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RSI + 0x3],AL
SHR RDI,0x6
OR RDI,0x10000
MOV EAX,0x4
LAB_001d047d:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x2],CL
SHR RDI,0x6
OR RDI,0x800
LAB_001d0493:
MOV ECX,EDI
AND CL,0x3f
OR CL,0x80
MOV byte ptr [RSI + 0x1],CL
SHR RDI,0x6
OR RDI,0xc0
LAB_001d04a9:
MOV byte ptr [RSI],DIL
LAB_001d04ac:
POP RBP
RET
|
int8 my_wc_mb_utf8mb4_no_range(ulong param_1,int1 *param_2)
{
int8 uVar1;
uVar1 = 1;
if (0x7f < param_1) {
uVar1 = 2;
if (0x7ff < param_1) {
uVar1 = 3;
if (0xffff < param_1) {
if (0x1fffff < param_1) {
return 0;
}
param_2[3] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x10000;
uVar1 = 4;
}
param_2[2] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0x800;
}
param_2[1] = (byte)param_1 & 0x3f | 0x80;
param_1 = param_1 >> 6 | 0xc0;
}
*param_2 = (char)param_1;
return uVar1;
}
| |
43,768 | minja::Parser::peekSymbols(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const | monkey531[P]llama/common/minja.hpp | MacroNode(const Location & location, std::shared_ptr<VariableExpr> && n, Expression::Parameters && p, std::shared_ptr<TemplateNode> && b)
: TemplateNode(location), name(std::move(n)), params(std::move(p)), body(std::move(b)) {
for (size_t i = 0; i < params.size(); ++i) {
const auto & name = params[i].first;
if (!name.empty()) {
named_param_positions[name] = i;
}
}
} | O3 | cpp | minja::Parser::peekSymbols(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x18(%rdi), %r15
movq 0x20(%rdi), %r12
cmpq %r12, %r15
je 0xb3bd5
movq (%rsi), %rbx
movq 0x8(%rsi), %r14
cmpq %r14, 0x8(%r15)
jne 0xb3bcc
movb $0x1, %bpl
testq %r14, %r14
je 0xb3bd7
movq (%r15), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x1a910
testl %eax, %eax
je 0xb3bd7
addq $0x70, %r15
cmpq %r12, %r15
jne 0xb3bac
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ZN5minja14ArgumentsValue9has_namedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r12
push rbx
mov r15, [rdi+18h]
mov r12, [rdi+20h]
cmp r15, r12
jz short loc_B3BD5
mov rbx, [rsi]
mov r14, [rsi+8]
loc_B3BAC:
cmp [r15+8], r14
jnz short loc_B3BCC
mov bpl, 1
test r14, r14
jz short loc_B3BD7
mov rdi, [r15]
mov rsi, rbx
mov rdx, r14
call _bcmp
test eax, eax
jz short loc_B3BD7
loc_B3BCC:
add r15, 70h ; 'p'
cmp r15, r12
jnz short loc_B3BAC
loc_B3BD5:
xor ebp, ebp
loc_B3BD7:
mov eax, ebp
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long minja::ArgumentsValue::has_named(long long a1, long long *a2)
{
unsigned int v2; // ebp
_QWORD *v3; // r15
_QWORD *v4; // r12
long long v5; // rbx
long long v6; // r14
v3 = *(_QWORD **)(a1 + 24);
v4 = *(_QWORD **)(a1 + 32);
if ( v3 == v4 )
{
return 0;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( 1 )
{
if ( v3[1] == v6 )
{
LOBYTE(v2) = 1;
if ( !v6 || !(unsigned int)bcmp(*v3, v5) )
break;
}
v3 += 14;
if ( v3 == v4 )
return 0;
}
}
return v2;
}
| has_named:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R15,qword ptr [RDI + 0x18]
MOV R12,qword ptr [RDI + 0x20]
CMP R15,R12
JZ 0x001b3bd5
MOV RBX,qword ptr [RSI]
MOV R14,qword ptr [RSI + 0x8]
LAB_001b3bac:
CMP qword ptr [R15 + 0x8],R14
JNZ 0x001b3bcc
MOV BPL,0x1
TEST R14,R14
JZ 0x001b3bd7
MOV RDI,qword ptr [R15]
MOV RSI,RBX
MOV RDX,R14
CALL 0x0011a910
TEST EAX,EAX
JZ 0x001b3bd7
LAB_001b3bcc:
ADD R15,0x70
CMP R15,R12
JNZ 0x001b3bac
LAB_001b3bd5:
XOR EBP,EBP
LAB_001b3bd7:
MOV EAX,EBP
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* minja::ArgumentsValue::has_named(std::__cxx11::string const&) */
ulong __thiscall minja::ArgumentsValue::has_named(ArgumentsValue *this,string *param_1)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
ulong unaff_RBP;
int8 *puVar3;
puVar3 = *(int8 **)(this + 0x18);
puVar1 = *(int8 **)(this + 0x20);
if (puVar3 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar3[1] == __n) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),1);
if (__n == 0) goto LAB_001b3bd7;
iVar2 = bcmp((void *)*puVar3,__s2,__n);
if (iVar2 == 0) goto LAB_001b3bd7;
}
puVar3 = puVar3 + 0xe;
} while (puVar3 != puVar1);
}
unaff_RBP = 0;
LAB_001b3bd7:
return unaff_RBP & 0xffffffff;
}
| |
43,769 | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
{
JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
}
s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
} | O0 | cpp | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
callq 0xde830
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xe8927
jmp 0xe89d9
movb $0x1, 0x13(%rsp)
movl $0x20, %edi
callq 0xb320
movq %rax, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0xc7c70
movq %rax, 0x20(%rsp)
leaq 0x9ca29(%rip), %rsi # 0x18537a
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0xc7bc0
jmp 0xe8962
movq 0x8(%rsp), %rdi
movq 0x50(%rsp), %rcx
movl $0x12e, %esi # imm = 0x12E
leaq 0x28(%rsp), %rdx
callq 0xc7a10
jmp 0xe897d
movq 0x8(%rsp), %rdi
movb $0x0, 0x13(%rsp)
leaq 0xeea1a(%rip), %rsi # 0x1d73a8
leaq -0x20c75(%rip), %rdx # 0xc7d20
callq 0xbcb0
jmp 0xe89ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0xe89c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0xbf00
testb $0x1, 0x13(%rsp)
jne 0xe89cd
jmp 0xe89d7
movq 0x8(%rsp), %rdi
callq 0xb540
jmp 0xe89f5
movq 0x50(%rsp), %rdi
callq 0xe8a00
movq %rax, %rsi
movq 0x48(%rsp), %rdi
callq 0xb080
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0xbd30
nop
| _ZN8nlohmann16json_abi_v3_11_26detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEEvRKT_RNSG_8string_tE:
sub rsp, 58h
mov qword ptr [rsp+58h+var_8], rdi; char
mov qword ptr [rsp+58h+var_10], rsi; int
mov rdi, qword ptr [rsp+58h+var_8]
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9is_stringEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::is_string(void)
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_E8927
jmp loc_E89D9
loc_E8927:
mov [rsp+58h+var_45], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+58h+var_50], rax; int
mov rdi, qword ptr [rsp+58h+var_8]
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9type_nameEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::type_name(void)
mov qword ptr [rsp+58h+var_38], rax; int
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rsp+58h+var_30]
lea rdx, [rsp+58h+var_38]
call _ZN8nlohmann16json_abi_v3_11_26detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
jmp short $+2
loc_E8962:
mov rdi, [rsp+58h+var_50]; int
mov rcx, qword ptr [rsp+58h+var_8]
mov esi, 12Eh
lea rdx, [rsp+58h+var_30]
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_E897D:
mov rdi, [rsp+58h+var_50]; void *
mov [rsp+58h+var_45], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_26detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_26detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_E89FF
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
jmp short loc_E89C4
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_E89C4:
test [rsp+arg_B], 1
jnz short loc_E89CD
jmp short loc_E89D7
loc_E89CD:
mov rdi, [rsp+arg_0]; void *
call ___cxa_free_exception
loc_E89D7:
jmp short loc_E89F5
loc_E89D9:
mov rdi, qword ptr [rsp+58h+var_8]
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
mov rsi, rax
mov rdi, qword ptr [rsp+58h+var_10]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
add rsp, 58h
retn
loc_E89F5:
mov rdi, [rsp+arg_10]
call __Unwind_Resume
loc_E89FF:
nop
| long long nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
_BYTE *a1,
long long a2)
{
long long v2; // rax
void *exception; // [rsp+8h] [rbp-50h]
int v5[2]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v6[32]; // [rsp+28h] [rbp-30h] BYREF
int v7[2]; // [rsp+48h] [rbp-10h]
char v8[8]; // [rsp+50h] [rbp-8h]
*(_QWORD *)v8 = a1;
*(_QWORD *)v7 = a2;
if ( !nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::is_string(a1) )
{
exception = __cxa_allocate_exception(0x20uLL);
*(_QWORD *)v5 = nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::type_name(*(_BYTE **)v8);
nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v6,
(long long)"type must be string, but is ",
(long long)v5);
ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
(long long)exception,
302,
(long long)v6,
*(long long *)v8);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_2::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_2::detail::type_error::~type_error);
}
v2 = ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv(*(_QWORD *)v8);
return std::string::operator=(*(_QWORD *)v7, v2);
}
| from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001de830
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001e8927
JMP 0x001e89d9
LAB_001e8927:
MOV byte ptr [RSP + 0x13],0x1
MOV EDI,0x20
CALL 0x0010b320
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001c7c70
MOV qword ptr [RSP + 0x20],RAX
LAB_001e894a:
LEA RSI,[0x28537a]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x20]
CALL 0x001c7bc0
JMP 0x001e8962
LAB_001e8962:
MOV RDI,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x50]
LAB_001e896c:
MOV ESI,0x12e
LEA RDX,[RSP + 0x28]
CALL 0x001c7a10
JMP 0x001e897d
LAB_001e897d:
MOV RDI,qword ptr [RSP + 0x8]
MOV byte ptr [RSP + 0x13],0x0
LEA RSI,[0x2d73a8]
LEA RDX,[0x1c7d20]
CALL 0x0010bcb0
LAB_001e89d9:
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x001e8a00
MOV RSI,RAX
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0010b080
ADD RSP,0x58
RET
|
/* void
nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> > > >(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string,
bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> > > const&,
nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> > >::string_t&) */
void nlohmann::json_abi_v3_11_2::detail::
from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
(basic_json *param_1,string_t *param_2)
{
string *psVar1;
int8 uVar2;
byte bVar3;
char *local_38;
detail local_30 [32];
string_t *local_10;
basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
*local_8;
local_10 = param_2;
local_8 = (basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
*)param_1;
bVar3 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::is_string((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
*)param_1);
if (((bVar3 ^ 0xff) & 1) == 0) {
psVar1 = (string *)
_ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
(local_8);
std::__cxx11::string::operator=((string *)local_10,psVar1);
return;
}
uVar2 = __cxa_allocate_exception(0x20);
local_38 = (char *)basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::type_name(local_8);
/* try { // try from 001e894a to 001e895f has its CatchHandler @ 001e899c */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_30,"type must be string, but is ",&local_38);
/* try { // try from 001e896c to 001e8999 has its CatchHandler @ 001e89ac */
_ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_30,local_8);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&type_error::typeinfo,type_error::~type_error);
}
| |
43,770 | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
{
JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
}
s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
} | O1 | cpp | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x79020
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xa2f0
movl $0x20, %edi
callq 0xa280
movq %rax, %rbx
movq %r14, %rdi
callq 0x6ed0c
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4a266(%rip), %rsi # 0xc32aa
leaq 0x10(%rsp), %rdi
callq 0x6ec83
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x6eab8
xorl %ebp, %ebp
leaq 0x7ce69(%rip), %rsi # 0xf5ed8
leaq -0x6036(%rip), %rdx # 0x73040
movq %rbx, %rdi
callq 0xaa80
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x790a4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xa5e0
jmp 0x790a4
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x790b1
movq %rbx, %rdi
callq 0xa420
movq %r14, %rdi
callq 0xaae0
nop
| _ZN8nlohmann16json_abi_v3_11_26detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEEvRKT_RNSG_8string_tE:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_79020
mov rax, [r14+8]
mov rdi, rsi
mov rsi, rax
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_79020:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9type_nameEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_26detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_26detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_26detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_790A4
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_790A4
mov r14, rax
mov bpl, 1
loc_790A4:
test bpl, bpl
jz short loc_790B1
mov rdi, rbx; void *
call ___cxa_free_exception
loc_790B1:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_2::detail::exception *exception; // rbx
const char *v4; // [rsp+8h] [rbp-40h] BYREF
_QWORD v5[2]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 3 )
{
exception = (nlohmann::json_abi_v3_11_2::detail::exception *)__cxa_allocate_exception(0x20uLL);
v4 = nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v5,
(long long)"type must be string, but is ",
&v4);
ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_2::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_2::detail::exception::~exception);
}
return std::string::_M_assign(a2, *(_QWORD *)(a1 + 8));
}
| |||
43,771 | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
{
JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
}
s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
} | O2 | cpp | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x54f8d
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xa2e0
pushq $0x20
popq %rdi
callq 0xa270
movq %rax, %rbx
movq %r14, %rdi
callq 0x4bba0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4a20b(%rip), %rsi # 0x9f1ba
leaq 0x10(%rsp), %rdi
callq 0x4bb41
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x4ba54
xorl %ebp, %ebp
leaq 0x7feee(%rip), %rsi # 0xd4ec8
leaq -0x5439(%rip), %rdx # 0x4fba8
movq %rbx, %rdi
callq 0xaa50
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0xac60
testb %bpl, %bpl
jne 0x55000
jmp 0x55008
movq %rax, %r14
movq %rbx, %rdi
callq 0xa410
movq %r14, %rdi
callq 0xaab0
| _ZN8nlohmann16json_abi_v3_11_26detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEEvRKT_RNSG_8string_tE:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_54F8D
mov rax, [r14+8]
mov rdi, rsi
mov rsi, rax
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_54F8D:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9type_nameEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_26detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_26detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_26detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_55000
jmp short loc_55008
mov r14, rax
loc_55000:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_55008:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_2::detail::type_error *exception; // rbx
const char *v4; // [rsp+8h] [rbp-40h] BYREF
_BYTE v5[56]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 3 )
{
exception = (nlohmann::json_abi_v3_11_2::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v4 = nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v5,
(long long)"type must be string, but is ",
(long long)&v4);
ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
0x12Eu,
(long long)v5,
a1);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_2::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_2::detail::exception::~exception);
}
return std::string::_M_assign(a2, *(_QWORD *)(a1 + 8));
}
| from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x00154f8d
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,RSI
MOV RSI,RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x0010a2e0
LAB_00154f8d:
PUSH 0x20
POP RDI
CALL 0x0010a270
MOV RBX,RAX
MOV RDI,R14
CALL 0x0014bba0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00154fa8:
LEA RSI,[0x19f1ba]
LEA RDI,[RSP + 0x10]
CALL 0x0014bb41
MOV BPL,0x1
LAB_00154fbc:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0014ba54
XOR EBP,EBP
LEA RSI,[0x1d4ec8]
LEA RDX,[0x14fba8]
MOV RDI,RBX
CALL 0x0010aa50
|
/* void
nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> > > >(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string,
bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> > > const&,
nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> > >::string_t&) */
void nlohmann::json_abi_v3_11_2::detail::
from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>
(basic_json *param_1,string_t *param_2)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 == '\x03') {
std::__cxx11::string::_M_assign((string *)param_2);
return;
}
uVar1 = __cxa_allocate_exception(0x20);
local_40 = (char *)basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
::type_name((basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>
*)param_1);
/* try { // try from 00154fa8 to 00154fb8 has its CatchHandler @ 00154ffd */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be string, but is ",&local_40);
/* try { // try from 00154fbc to 00154fe8 has its CatchHandler @ 00154fe9 */
_ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&type_error::typeinfo,exception::~exception);
}
| |
43,772 | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&) | 7CodeWizard[P]stablediffusion/thirdparty/json.hpp | inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
{
if (JSON_HEDLEY_UNLIKELY(!j.is_string()))
{
JSON_THROW(type_error::create(302, concat("type must be string, but is ", j.type_name()), &j));
}
s = *j.template get_ptr<const typename BasicJsonType::string_t*>();
} | O3 | cpp | void nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>>(nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>> const&, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x7802c
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xa2e0
movl $0x20, %edi
callq 0xa270
movq %rax, %rbx
movq %r14, %rdi
callq 0x6e0ae
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4a26a(%rip), %rsi # 0xc22ba
leaq 0x10(%rsp), %rdi
callq 0x6e025
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x6de5a
xorl %ebp, %ebp
leaq 0x7be5d(%rip), %rsi # 0xf3ed8
leaq -0x5dd6(%rip), %rdx # 0x722ac
movq %rbx, %rdi
callq 0xaa70
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x780a8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0xa5d0
testb %bpl, %bpl
jne 0x780b2
jmp 0x780ba
movq %rax, %r14
movq %rbx, %rdi
callq 0xa410
movq %r14, %rdi
callq 0xaad0
| _ZN8nlohmann16json_abi_v3_11_26detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEEEEEvRKT_RNSG_8string_tE:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
cmp byte ptr [rdi], 3
jnz short loc_7802C
mov rax, [r14+8]
mov rdi, rsi
mov rsi, rax
add rsp, 30h
pop rbx
pop r14
pop rbp
jmp __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
loc_7802C:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE9type_nameEv; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_26detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 12Eh; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_26detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_26detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rax, [rsp+48h+var_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_780A8
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_780A8:
test bpl, bpl
jnz short loc_780B2
jmp short loc_780BA
mov r14, rax
loc_780B2:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_780BA:
mov rdi, r14
call __Unwind_Resume
| long long nlohmann::json_abi_v3_11_2::detail::from_json<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>>(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_2::detail::exception *exception; // rbx
const char *v4; // [rsp+8h] [rbp-40h] BYREF
_QWORD v5[2]; // [rsp+10h] [rbp-38h] BYREF
if ( *(_BYTE *)a1 != 3 )
{
exception = (nlohmann::json_abi_v3_11_2::detail::exception *)__cxa_allocate_exception(0x20uLL);
v4 = nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_2::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v5,
(long long)"type must be string, but is ",
&v4);
ZN8nlohmann16json_abi_v3_11_26detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302,
v5);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_2::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_2::detail::exception::~exception);
}
return std::string::_M_assign(a2, *(_QWORD *)(a1 + 8));
}
| |||
43,773 | make_ftype | eloqsql/mysys/my_fopen.c | static void make_ftype(register char * to, register int flag)
{
/* check some possible invalid combinations */
DBUG_ASSERT((flag & (O_TRUNC | O_APPEND)) != (O_TRUNC | O_APPEND));
DBUG_ASSERT((flag & (O_WRONLY | O_RDWR)) != (O_WRONLY | O_RDWR));
if ((flag & (O_RDONLY|O_WRONLY)) == O_WRONLY)
*to++= (flag & O_APPEND) ? 'a' : 'w';
else if (flag & O_RDWR)
{
/* Add '+' after theese */
if (flag & (O_TRUNC | O_CREAT))
*to++= 'w';
else if (flag & O_APPEND)
*to++= 'a';
else
*to++= 'r';
*to++= '+';
}
else
*to++= 'r';
if (flag & FILE_BINARY)
*to++='b';
if (O_CLOEXEC)
*to++= 'e';
*to='\0';
} | O0 | c | make_ftype:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
jmp 0x131cb4d
jmp 0x131cb4f
jmp 0x131cb51
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x1, %eax
jne 0x131cb8d
movl -0xc(%rbp), %edx
andl $0x400, %edx # imm = 0x400
movl $0x77, %eax
movl $0x61, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
jmp 0x131cc16
movl -0xc(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x131cc02
movl -0xc(%rbp), %eax
andl $0x240, %eax # imm = 0x240
cmpl $0x0, %eax
je 0x131cbb9
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x77, (%rax)
jmp 0x131cbee
movl -0xc(%rbp), %eax
andl $0x400, %eax # imm = 0x400
cmpl $0x0, %eax
je 0x131cbda
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x61, (%rax)
jmp 0x131cbec
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x72, (%rax)
jmp 0x131cbee
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x2b, (%rax)
jmp 0x131cc14
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x72, (%rax)
jmp 0x131cc16
movl -0xc(%rbp), %eax
andl $0x0, %eax
cmpl $0x0, %eax
je 0x131cc33
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x62, (%rax)
movq -0x8(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x8(%rbp)
movb $0x65, (%rax)
movq -0x8(%rbp), %rax
movb $0x0, (%rax)
popq %rbp
retq
nop
| make_ftype:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
jmp short $+2
loc_131CB4D:
jmp short $+2
loc_131CB4F:
jmp short $+2
loc_131CB51:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 1
jnz short loc_131CB8D
mov edx, [rbp+var_C]
and edx, 400h
mov eax, 77h ; 'w'
mov ecx, 61h ; 'a'
cmp edx, 0
cmovnz eax, ecx
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
jmp loc_131CC16
loc_131CB8D:
mov eax, [rbp+var_C]
and eax, 2
cmp eax, 0
jz short loc_131CC02
mov eax, [rbp+var_C]
and eax, 240h
cmp eax, 0
jz short loc_131CBB9
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 77h ; 'w'
jmp short loc_131CBEE
loc_131CBB9:
mov eax, [rbp+var_C]
and eax, 400h
cmp eax, 0
jz short loc_131CBDA
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 61h ; 'a'
jmp short loc_131CBEC
loc_131CBDA:
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 72h ; 'r'
loc_131CBEC:
jmp short $+2
loc_131CBEE:
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 2Bh ; '+'
jmp short loc_131CC14
loc_131CC02:
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 72h ; 'r'
loc_131CC14:
jmp short $+2
loc_131CC16:
mov eax, [rbp+var_C]
and eax, 0
cmp eax, 0
jz short loc_131CC33
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 62h ; 'b'
loc_131CC33:
mov rax, [rbp+var_8]
mov rcx, rax
add rcx, 1
mov [rbp+var_8], rcx
mov byte ptr [rax], 65h ; 'e'
mov rax, [rbp+var_8]
mov byte ptr [rax], 0
pop rbp
retn
| _BYTE * make_ftype(char *a1, __int16 a2)
{
char v2; // al
_BYTE *v3; // rax
_BYTE *result; // rax
_BYTE *v5; // [rsp+4h] [rbp-8h]
_BYTE *v6; // [rsp+4h] [rbp-8h]
if ( (a2 & 1) == 1 )
{
v2 = 119;
if ( (a2 & 0x400) != 0 )
v2 = 97;
v5 = a1 + 1;
*a1 = v2;
}
else if ( (a2 & 2) != 0 )
{
if ( (a2 & 0x240) != 0 )
{
v6 = a1 + 1;
*a1 = 119;
}
else
{
v6 = a1 + 1;
if ( (a2 & 0x400) != 0 )
*a1 = 97;
else
*a1 = 114;
}
v3 = v6;
v5 = v6 + 1;
*v3 = 43;
}
else
{
v5 = a1 + 1;
*a1 = 114;
}
*v5 = 101;
result = v5 + 1;
v5[1] = 0;
return result;
}
| trx_assign_rseg_low:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
LEA RAX,[0x26dce02]
CMP byte ptr [RAX],0x0
JZ 0x0131cb65
JMP 0x0131cb56
LAB_0131cb56:
JMP 0x0131cb58
LAB_0131cb58:
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0131ccc1
LAB_0131cb65:
JMP 0x0131cb67
LAB_0131cb67:
JMP 0x0131cb69
LAB_0131cb69:
JMP 0x0131cb6b
LAB_0131cb6b:
JMP 0x0131cb6d
LAB_0131cb6d:
CMP byte ptr [0x02710e10],0x0
JNZ 0x0131cba1
LEA RDI,[0x2710e10]
CALL 0x008767d0
CMP EAX,0x0
JZ 0x0131cba1
LAB_0131cb87:
LEA RDI,[0x2710e08]
CALL 0x0099e920
LAB_0131cb93:
JMP 0x0131cb95
LAB_0131cb95:
LEA RDI,[0x2710e10]
CALL 0x00876bf0
LAB_0131cba1:
LEA RDI,[0x2710e08]
XOR ESI,ESI
CALL 0x00955c60
AND EAX,0x7f
MOV dword ptr [RBP + -0x18],EAX
MOV byte ptr [RBP + -0x21],0x0
LAB_0131cbb9:
JMP 0x0131cbbb
LAB_0131cbbb:
MOV EAX,dword ptr [RBP + -0x18]
MOV ECX,EAX
LEA RAX,[0x1c7ddc0]
ADD RAX,0x4140
SHL RCX,0x7
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,0x1
AND EAX,0x7f
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX],0x0
JNZ 0x0131cc0d
JMP 0x0131cbbb
LAB_0131cc0d:
JMP 0x0131cc0f
LAB_0131cc0f:
JMP 0x0131cc11
LAB_0131cc11:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x26d0610]
CMP RAX,qword ptr [RCX + 0x68]
JZ 0x0131cc46
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0131f970
TEST AL,0x1
JNZ 0x0131cc3f
LEA RAX,[0x26dcdd0]
CMP qword ptr [RAX],0x0
JNZ 0x0131cc44
LAB_0131cc3f:
JMP 0x0131cbbb
LAB_0131cc44:
JMP 0x0131cc94
LAB_0131cc46:
MOV EAX,dword ptr [RBP + -0x18]
MOV ECX,EAX
LEA RAX,[0x1c7ddc0]
ADD RAX,0x4140
SHL RCX,0x7
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x0131cc92
MOV RAX,qword ptr [RBP + -0x30]
LEA RCX,[0x26d0610]
CMP RAX,qword ptr [RCX + 0x68]
JZ 0x0131cc90
LEA RAX,[0x26dcdd0]
CMP qword ptr [RAX],0x0
JBE 0x0131cc90
JMP 0x0131cbbb
LAB_0131cc90:
JMP 0x0131cc92
LAB_0131cc92:
JMP 0x0131cc94
LAB_0131cc94:
JMP 0x0131cc96
LAB_0131cc96:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0131f9a0
AND AL,0x1
MOV byte ptr [RBP + -0x21],AL
MOV AL,byte ptr [RBP + -0x21]
XOR AL,0xff
TEST AL,0x1
JNZ 0x0131cbb9
JMP 0x0131ccb3
LAB_0131ccb3:
JMP 0x0131ccb5
LAB_0131ccb5:
JMP 0x0131ccb7
LAB_0131ccb7:
JMP 0x0131ccb9
LAB_0131ccb9:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_0131ccc1:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* trx_assign_rseg_low() */
trx_rseg_t * trx_assign_rseg_low(void)
{
byte bVar1;
int iVar2;
ulong uVar3;
uint local_20;
trx_rseg_t *local_10;
if (high_level_read_only == '\0') {
if ((trx_assign_rseg_low()::rseg_slot == '\0') &&
(iVar2 = __cxa_guard_acquire(&trx_assign_rseg_low()::rseg_slot), iVar2 != 0)) {
/* try { // try from 0131cb87 to 0131cb92 has its CatchHandler @ 0131cbf0 */
Atomic_counter<unsigned_int>::Atomic_counter();
__cxa_guard_release(&trx_assign_rseg_low()::rseg_slot);
}
local_20 = Atomic_counter<unsigned_int>::operator++
((Atomic_counter<unsigned_int> *)&trx_assign_rseg_low()::rseg_slot,0);
local_20 = local_20 & 0x7f;
LAB_0131cbbb:
do {
do {
local_10 = (trx_rseg_t *)(trx_sys + (ulong)local_20 * 0x80 + 0x4140);
local_20 = local_20 + 1 & 0x7f;
} while (*(long *)local_10 == 0);
if (*(long *)local_10 == fil_system._104_8_) {
if (((*(long *)(trx_sys + (ulong)local_20 * 0x80 + 0x4140) != 0) &&
(*(long *)(trx_sys + (ulong)local_20 * 0x80 + 0x4140) != fil_system._104_8_)) &&
(srv_undo_tablespaces != 0)) goto LAB_0131cbbb;
}
else {
uVar3 = trx_rseg_t::skip_allocation(local_10);
if (((uVar3 & 1) != 0) || (srv_undo_tablespaces == 0)) goto LAB_0131cbbb;
}
bVar1 = trx_rseg_t::acquire_if_available(local_10);
} while (((bVar1 & 1 ^ 0xff) & 1) != 0);
}
else {
local_10 = (trx_rseg_t *)0x0;
}
return local_10;
}
| |
43,774 | minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) | monkey531[P]llama/common/minja.hpp | Value(const json & v) {
if (v.is_object()) {
auto object = std::make_shared<ObjectType>();
for (auto it = v.begin(); it != v.end(); ++it) {
(*object)[it.key()] = it.value();
}
object_ = std::move(object);
} else if (v.is_array()) {
auto array = std::make_shared<ArrayType>();
for (const auto& item : v) {
array->push_back(Value(item));
}
array_ = array;
} else {
primitive_ = v;
}
} | O1 | cpp | minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r15
leaq 0x40(%rdi), %r14
movq $0x0, 0x48(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movq %rdi, (%rsp)
movb $0x0, 0x40(%rdi)
movq %r14, %rdi
movl $0x1, %esi
callq 0x5cc84
movq %r14, %rdi
movl $0x1, %esi
callq 0x5cc84
movzbl (%r15), %eax
cmpl $0x2, %eax
je 0x91452
cmpl $0x1, %eax
jne 0x91590
movq %r14, 0x8(%rsp)
movl $0x30, %edi
callq 0x1b900
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0xa00f6(%rip), %rcx # 0x131438
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, %r13
addq $0x10, %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, 0x20(%rsp)
movq $0x0, 0x20(%rax)
leaq 0x88(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x91cb6
leaq 0x68(%rsp), %r14
leaq 0x28(%rsp), %r12
movq 0xa1bf0(%rip), %rbx # 0x132f78
movq %r12, %rdi
movq %r15, %rsi
callq 0x92056
movq %rbp, %rdi
movq %r12, %rsi
callq 0x91d7a
testb %al, %al
jne 0x915e3
movq %rbp, %rdi
callq 0x919ba
movq %r12, %rdi
movq %rax, %rsi
callq 0x912b4
movq %rbp, %rdi
callq 0x917be
movq %r13, %rdi
movq %rax, %rsi
callq 0x916c2
movq %rax, %rdi
movq %r12, %rsi
callq 0x9189e
movq %r14, %rdi
xorl %esi, %esi
callq 0x5cc84
movq %r14, %rdi
callq 0x62470
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x913f8
callq 0x26758
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x91407
callq 0x26758
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x91416
callq 0x26758
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x91445
cmpb $0x0, (%rbx)
je 0x91430
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9143a
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x91445
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbp, %rdi
callq 0x9196c
jmp 0x91388
movq %r14, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x28, %edi
callq 0x1b900
leaq 0x18(%rsp), %rdx
movabsq $0x100000001, %rcx # imm = 0x100000001
movq %rcx, 0x8(%rax)
leaq 0xa0004(%rip), %rcx # 0x131488
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq $0x0, 0x20(%rax)
movq %rax, (%rdx)
movq %rcx, -0x8(%rdx)
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x91cb6
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x92056
leaq 0x68(%rsp), %r15
leaq 0x28(%rsp), %rbp
movq 0xa1a99(%rip), %rbx # 0x132f78
movq %r14, %rdi
movq %r13, %rsi
callq 0x91d7a
testb %al, %al
jne 0x915c1
movq %r14, %rdi
callq 0x919ba
movq 0x10(%rsp), %r12
movq %rbp, %rdi
movq %rax, %rsi
callq 0x912b4
movq %r12, %rdi
movq %rbp, %rsi
callq 0x92aee
movq %r15, %rdi
xorl %esi, %esi
callq 0x5cc84
movq %r15, %rdi
callq 0x62470
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x91536
callq 0x26758
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x91545
callq 0x26758
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x91554
callq 0x26758
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x91583
cmpb $0x0, (%rbx)
je 0x9156e
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x91578
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x91583
movq (%rdi), %rax
callq *0x18(%rax)
movq %r14, %rdi
callq 0x9196c
jmp 0x914df
leaq 0x78(%rsp), %rdi
movq %r15, %rsi
callq 0x61f10
leaq 0x78(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5f620
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5cc84
movq %rbx, %rdi
callq 0x62470
jmp 0x91602
movq 0x10(%rsp), %rax
movq (%rsp), %rdi
movq %rax, 0x10(%rdi)
addq $0x18, %rdi
leaq 0x18(%rsp), %rsi
callq 0x92d50
movq 0x18(%rsp), %rdi
jmp 0x915f8
movq (%rsp), %rax
movq %r13, 0x20(%rax)
movq 0x28(%rax), %rdi
movq 0x20(%rsp), %rcx
movq %rcx, 0x28(%rax)
testq %rdi, %rdi
je 0x91602
callq 0x26758
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, 0x8(%rsp)
jmp 0x9161d
jmp 0x9161d
movq %rax, %r14
jmp 0x91664
jmp 0x91639
jmp 0x91652
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x8b0ca
jmp 0x91655
jmp 0x91652
jmp 0x91639
movq %rax, %r14
jmp 0x9164b
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x8b0ca
movq 0x20(%rsp), %rdi
jmp 0x9165f
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x91664
callq 0x26758
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5cc84
movq %rbx, %rdi
callq 0x62470
movq (%rsp), %rax
movq 0x38(%rax), %rdi
testq %rdi, %rdi
je 0x9168d
callq 0x26758
movq (%rsp), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x9169f
callq 0x26758
movq (%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x916b1
callq 0x26758
movq (%rsp), %rdi
callq 0x8c59c
movq %r14, %rdi
callq 0x1c0d0
| _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov r15, rsi
lea r14, [rdi+40h]
mov qword ptr [rdi+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+30h], xmm0
mov [rsp+0F8h+var_F8], rdi
mov byte ptr [rdi+40h], 0
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
movzx eax, byte ptr [r15]
cmp eax, 2
jz loc_91452
cmp eax, 1
jnz loc_91590
mov [rsp+0F8h+var_F0], r14
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
mov r13, rax
add r13, 10h
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov [rsp+0F8h+var_D8], rax
mov qword ptr [rax+20h], 0
lea rbp, [rsp+0F8h+var_70]
mov rdi, rbp
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea r14, [rsp+0F8h+var_90]
lea r12, [rsp+0F8h+var_D0]
mov rbx, cs:__libc_single_threaded_ptr
loc_91388:
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
mov rdi, rbp
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jnz loc_915E3
mov rdi, rbp
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rdi, r12
mov rsi, rax
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, rbp
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::key(void)
mov rdi, r13
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
mov rdi, rax
mov rsi, r12
call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&)
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, [rsp+0F8h+var_98]
test rdi, rdi
jz short loc_913F8
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_913F8:
mov rdi, [rsp+0F8h+var_A8]
test rdi, rdi
jz short loc_91407
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91407:
mov rdi, [rsp+0F8h+var_B8]
test rdi, rdi
jz short loc_91416
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91416:
mov rdi, [rsp+0F8h+var_C8]
test rdi, rdi
jz short loc_91445
cmp byte ptr [rbx], 0
jz short loc_91430
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9143A
loc_91430:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9143A:
cmp eax, 1
jnz short loc_91445
mov rax, [rdi]
call qword ptr [rax+18h]
loc_91445:
mov rdi, rbp
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void)
jmp loc_91388
loc_91452:
mov [rsp+0F8h+var_F0], r14
mov [rsp+0F8h+var_E8], 0
mov edi, 28h ; '('; unsigned __int64
call __Znwm; operator new(ulong)
lea rdx, [rsp+0F8h+var_E0]
mov rcx, 100000001h
mov [rax+8], rcx
lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceISt6vectorIN5minja5ValueESaIS2_EESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
add rcx, 10h
mov [rax], rcx
mov rcx, rax
add rcx, 10h
xorps xmm0, xmm0
movups xmmword ptr [rax+10h], xmm0
mov qword ptr [rax+20h], 0
mov [rdx], rax
mov [rdx-8], rcx
lea r14, [rsp+0F8h+var_70]
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea r13, [rsp+0F8h+var_50]
mov rdi, r13
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
lea r15, [rsp+0F8h+var_90]
lea rbp, [rsp+0F8h+var_D0]
mov rbx, cs:__libc_single_threaded_ptr
loc_914DF:
mov rdi, r14
mov rsi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jnz loc_915C1
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov r12, [rsp+0F8h+var_E8]
mov rdi, rbp
mov rsi, rax
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, r12
mov rsi, rbp
call _ZNSt6vectorIN5minja5ValueESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<minja::Value>::emplace_back<minja::Value>(minja::Value &&)
mov rdi, r15
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0F8h+var_98]
test rdi, rdi
jz short loc_91536
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91536:
mov rdi, [rsp+0F8h+var_A8]
test rdi, rdi
jz short loc_91545
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91545:
mov rdi, [rsp+0F8h+var_B8]
test rdi, rdi
jz short loc_91554
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91554:
mov rdi, [rsp+0F8h+var_C8]
test rdi, rdi
jz short loc_91583
cmp byte ptr [rbx], 0
jz short loc_9156E
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_91578
loc_9156E:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_91578:
cmp eax, 1
jnz short loc_91583
mov rax, [rdi]
call qword ptr [rax+18h]
loc_91583:
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void)
jmp loc_914DF
loc_91590:
lea rdi, [rsp+0F8h+var_80]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
lea rbx, [rsp+0F8h+var_80]
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_91602
loc_915C1:
mov rax, [rsp+0F8h+var_E8]
mov rdi, [rsp+0F8h+var_F8]
mov [rdi+10h], rax
add rdi, 18h
lea rsi, [rsp+0F8h+var_E0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
mov rdi, [rsp+0F8h+var_E0]
jmp short loc_915F8
loc_915E3:
mov rax, [rsp+0F8h+var_F8]
mov [rax+20h], r13
mov rdi, [rax+28h]
mov rcx, [rsp+0F8h+var_D8]
mov [rax+28h], rcx
loc_915F8:
test rdi, rdi
jz short loc_91602
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91602:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov [rsp+arg_0], r14
jmp short loc_9161D
jmp short $+2
loc_9161D:
mov r14, rax
jmp short loc_91664
jmp short loc_91639
jmp short loc_91652
mov r14, rax
lea rdi, [rsp+arg_20]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_91655
jmp short loc_91652
jmp short $+2
loc_91639:
mov r14, rax
jmp short loc_9164B
mov r14, rax
lea rdi, [rsp+arg_20]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_9164B:
mov rdi, [rsp+arg_18]
jmp short loc_9165F
loc_91652:
mov r14, rax
loc_91655:
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_91664
loc_9165F:
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_91664:
mov rbx, [rsp+arg_0]
mov rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rax, [rsp+0]
mov rdi, [rax+38h]
test rdi, rdi
jz short loc_9168D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9168D:
mov rax, [rsp+0]
mov rdi, [rax+28h]
test rdi, rdi
jz short loc_9169F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9169F:
mov rax, [rsp+0]
mov rdi, [rax+18h]
test rdi, rdi
jz short loc_916B1
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_916B1:
mov rdi, [rsp+0]
call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this()
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::Value(long long a1, unsigned __int8 *a2)
{
int v2; // eax
long long v3; // rax
long long v4; // r13
int v5; // eax
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // rax
long long v11; // rax
long long v12; // rdi
signed __int32 v13; // eax
long long v14; // rax
int v15; // eax
int v16; // edx
int v17; // ecx
int v18; // r8d
int v19; // r9d
long long v20; // rdi
signed __int32 v21; // eax
long long result; // rax
volatile signed __int32 *v23; // rdi
long long v25; // [rsp+10h] [rbp-E8h]
volatile signed __int32 *v26; // [rsp+18h] [rbp-E0h] BYREF
long long v27; // [rsp+20h] [rbp-D8h]
_BYTE v28[8]; // [rsp+28h] [rbp-D0h] BYREF
long long v29; // [rsp+30h] [rbp-C8h]
volatile signed __int32 *v30; // [rsp+40h] [rbp-B8h]
volatile signed __int32 *v31; // [rsp+50h] [rbp-A8h]
volatile signed __int32 *v32; // [rsp+60h] [rbp-98h]
char v33[16]; // [rsp+68h] [rbp-90h] BYREF
unsigned __int8 v34[16]; // [rsp+78h] [rbp-80h] BYREF
_BYTE v35[32]; // [rsp+88h] [rbp-70h] BYREF
_BYTE v36[80]; // [rsp+A8h] [rbp-50h] BYREF
*(_QWORD *)(a1 + 72) = 0LL;
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_BYTE *)(a1 + 64) = 0;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64));
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 + 64));
v2 = *a2;
if ( v2 == 2 )
{
v14 = operator new(0x28uLL);
*(_QWORD *)(v14 + 8) = 0x100000001LL;
*(_QWORD *)v14 = &`vtable for'std::_Sp_counted_ptr_inplace<std::vector<minja::Value>,std::allocator<std::vector<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
*(_OWORD *)(v14 + 16) = 0LL;
*(_QWORD *)(v14 + 32) = 0LL;
v26 = (volatile signed __int32 *)v14;
v25 = v14 + 16;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cbegin(
v35,
a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cend(
v36,
a2);
while ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
v35,
v36) )
{
v15 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v35);
minja::Value::Value((unsigned int)v28, v15, v16, v17, v18, v19);
std::vector<minja::Value>::emplace_back<minja::Value>(v25, v28);
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(v33);
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(v33);
if ( v32 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32);
if ( v31 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31);
if ( v30 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30);
v20 = v29;
if ( v29 )
{
if ( _libc_single_threaded )
{
v21 = *(_DWORD *)(v29 + 12);
*(_DWORD *)(v29 + 12) = v21 - 1;
}
else
{
v21 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF);
}
if ( v21 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v20 + 24LL))(v20, 0LL);
}
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(
v35,
0LL);
}
*(_QWORD *)(a1 + 16) = v25;
result = std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(a1 + 24, &v26);
v23 = v26;
}
else
{
if ( v2 != 1 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v34,
a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
a1 + 64,
(long long)v34);
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 *)v34);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v34);
}
v3 = operator new(0x30uLL);
*(_QWORD *)(v3 + 8) = 0x100000001LL;
*(_QWORD *)v3 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2>
+ 2;
v4 = v3 + 16;
*(_OWORD *)(v3 + 16) = 0LL;
v27 = v3;
*(_QWORD *)(v3 + 32) = 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>::cbegin(
v35,
a2);
while ( 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>::cend(
v28,
a2);
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
v35,
v28) )
break;
v5 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v35);
minja::Value::Value((unsigned int)v28, v5, v6, v7, v8, v9);
v10 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::key(v35);
v11 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_(
v4,
v10);
minja::Value::operator=(v11, v28);
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(v33);
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(v33);
if ( v32 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32);
if ( v31 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31);
if ( v30 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30);
v12 = v29;
if ( v29 )
{
if ( _libc_single_threaded )
{
v13 = *(_DWORD *)(v29 + 12);
*(_DWORD *)(v29 + 12) = v13 - 1;
}
else
{
v13 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF);
}
if ( v13 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v12 + 24LL))(v12, 0LL);
}
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(
v35,
0LL);
}
result = a1;
*(_QWORD *)(a1 + 32) = v4;
v23 = *(volatile signed __int32 **)(a1 + 40);
*(_QWORD *)(a1 + 40) = v27;
}
if ( v23 )
return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23);
return result;
}
| Value:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV R15,RSI
LEA R14,[RDI + 0x40]
MOV qword ptr [RDI + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RSP],RDI
MOV byte ptr [RDI + 0x40],0x0
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015cc84
MOV RDI,R14
MOV ESI,0x1
CALL 0x0015cc84
MOVZX EAX,byte ptr [R15]
CMP EAX,0x2
JZ 0x00191452
CMP EAX,0x1
JNZ 0x00191590
LAB_0019131e:
MOV qword ptr [RSP + 0x8],R14
MOV EDI,0x30
CALL 0x0011b900
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x231438]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV R13,RAX
ADD R13,0x10
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RAX + 0x20],0x0
LEA RBP,[RSP + 0x88]
MOV RDI,RBP
MOV RSI,R15
CALL 0x00191cb6
LEA R14,[RSP + 0x68]
LEA R12,[RSP + 0x28]
MOV RBX,qword ptr [0x00232f78]
LAB_00191388:
MOV RDI,R12
MOV RSI,R15
CALL 0x00192056
LAB_00191393:
MOV RDI,RBP
MOV RSI,R12
CALL 0x00191d7a
TEST AL,AL
JNZ 0x001915e3
LAB_001913a6:
MOV RDI,RBP
CALL 0x001919ba
MOV RDI,R12
MOV RSI,RAX
CALL 0x001912b4
LAB_001913b9:
MOV RDI,RBP
CALL 0x001917be
MOV RDI,R13
MOV RSI,RAX
CALL 0x001916c2
LAB_001913cc:
MOV RDI,RAX
MOV RSI,R12
CALL 0x0019189e
MOV RDI,R14
XOR ESI,ESI
CALL 0x0015cc84
MOV RDI,R14
CALL 0x00162470
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x001913f8
CALL 0x00126758
LAB_001913f8:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00191407
CALL 0x00126758
LAB_00191407:
MOV RDI,qword ptr [RSP + 0x40]
TEST RDI,RDI
JZ 0x00191416
CALL 0x00126758
LAB_00191416:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00191445
CMP byte ptr [RBX],0x0
JZ 0x00191430
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019143a
LAB_00191430:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019143a:
CMP EAX,0x1
JNZ 0x00191445
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00191445:
MOV RDI,RBP
CALL 0x0019196c
JMP 0x00191388
LAB_00191452:
MOV qword ptr [RSP + 0x8],R14
MOV qword ptr [RSP + 0x10],0x0
LAB_00191460:
MOV EDI,0x28
CALL 0x0011b900
LEA RDX,[RSP + 0x18]
MOV RCX,0x100000001
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[0x231488]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
MOV RCX,RAX
ADD RCX,0x10
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + 0x10],XMM0
MOV qword ptr [RAX + 0x20],0x0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDX + -0x8],RCX
LEA R14,[RSP + 0x88]
MOV RDI,R14
MOV RSI,R15
CALL 0x00191cb6
LEA R13,[RSP + 0xa8]
MOV RDI,R13
MOV RSI,R15
CALL 0x00192056
LEA R15,[RSP + 0x68]
LEA RBP,[RSP + 0x28]
MOV RBX,qword ptr [0x00232f78]
LAB_001914df:
MOV RDI,R14
MOV RSI,R13
CALL 0x00191d7a
TEST AL,AL
JNZ 0x001915c1
LAB_001914f2:
MOV RDI,R14
CALL 0x001919ba
MOV R12,qword ptr [RSP + 0x10]
LAB_001914ff:
MOV RDI,RBP
MOV RSI,RAX
CALL 0x001912b4
LAB_0019150a:
MOV RDI,R12
MOV RSI,RBP
CALL 0x00192aee
LAB_00191515:
MOV RDI,R15
XOR ESI,ESI
CALL 0x0015cc84
MOV RDI,R15
CALL 0x00162470
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x00191536
CALL 0x00126758
LAB_00191536:
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x00191545
CALL 0x00126758
LAB_00191545:
MOV RDI,qword ptr [RSP + 0x40]
TEST RDI,RDI
JZ 0x00191554
CALL 0x00126758
LAB_00191554:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00191583
CMP byte ptr [RBX],0x0
JZ 0x0019156e
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00191578
LAB_0019156e:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00191578:
CMP EAX,0x1
JNZ 0x00191583
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00191583:
MOV RDI,R14
CALL 0x0019196c
JMP 0x001914df
LAB_00191590:
LEA RDI,[RSP + 0x78]
MOV RSI,R15
CALL 0x00161f10
LAB_0019159d:
LEA RBX,[RSP + 0x78]
MOV RDI,R14
MOV RSI,RBX
CALL 0x0015f620
MOV RDI,RBX
XOR ESI,ESI
CALL 0x0015cc84
MOV RDI,RBX
CALL 0x00162470
JMP 0x00191602
LAB_001915c1:
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP]
MOV qword ptr [RDI + 0x10],RAX
ADD RDI,0x18
LEA RSI,[RSP + 0x18]
CALL 0x00192d50
MOV RDI,qword ptr [RSP + 0x18]
JMP 0x001915f8
LAB_001915e3:
MOV RAX,qword ptr [RSP]
MOV qword ptr [RAX + 0x20],R13
MOV RDI,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x28],RCX
LAB_001915f8:
TEST RDI,RDI
JZ 0x00191602
CALL 0x00126758
LAB_00191602:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
void __thiscall minja::Value::Value(Value *this,basic_json *param_1)
{
int *piVar1;
int *puVar2;
char cVar3;
int iVar4;
basic_json *pbVar5;
int8 uVar6;
Value *this_00;
vector<minja::Value,std::allocator<minja::Value>> *this_01;
bool bVar7;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_02;
int8 *puVar8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_e0;
int8 *local_d8;
Value local_d0 [8];
long *local_c8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98;
data local_90 [16];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_80 [16];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
local_70 [32];
int1 local_50 [32];
*(int8 *)(this + 0x48) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
this[0x40] = (Value)0x0;
bVar7 = SUB81((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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 + 0x40),0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(bVar7);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar7);
if (*param_1 == (basic_json)0x2) {
/* try { // try from 00191460 to 00191469 has its CatchHandler @ 0019161b */
local_e0 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)operator_new(0x28);
*(int8 *)(local_e0 + 8) = 0x100000001;
*(int ***)local_e0 = &PTR___Sp_counted_ptr_inplace_00231498;
this_01 = (vector<minja::Value,std::allocator<minja::Value>> *)(local_e0 + 0x10);
*(int8 *)(local_e0 + 0x10) = 0;
*(int8 *)(local_e0 + 0x18) = 0;
*(int8 *)(local_e0 + 0x20) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cbegin();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
puVar2 = PTR___libc_single_threaded_00232f78;
/* try { // try from 001914df to 001914e9 has its CatchHandler @ 00191652 */
while (cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(local_70,local_50), cVar3 == '\0') {
/* try { // try from 001914f2 to 001914f9 has its CatchHandler @ 00191635 */
pbVar5 = (basic_json *)
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*(local_70);
/* try { // try from 001914ff to 00191509 has its CatchHandler @ 00191624 */
Value(local_d0,pbVar5);
/* try { // try from 0019150a to 00191514 has its CatchHandler @ 00191626 */
std::vector<minja::Value,std::allocator<minja::Value>>::emplace_back<minja::Value>
(this_01,local_d0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_90,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_90);
if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98);
}
if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8);
}
if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8);
}
if (local_c8 != (long *)0x0) {
if (*puVar2 == '\0') {
LOCK();
piVar1 = (int *)((long)local_c8 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_c8 + 0xc);
*(int *)((long)local_c8 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_c8 + 0x18))();
}
}
/* try { // try from 00191583 to 0019158a has its CatchHandler @ 00191652 */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(local_70);
}
*(vector<minja::Value,std::allocator<minja::Value>> **)(this + 0x10) = this_01;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(this + 0x18),
(__shared_count *)&local_e0);
this_02 = local_e0;
}
else {
if (*param_1 != (basic_json)0x1) {
/* try { // try from 00191590 to 0019159c has its CatchHandler @ 00191614 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_80,param_1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::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 + 0x40),(data *)local_80);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81((data *)local_80,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_80);
return;
}
/* try { // try from 0019131e to 0019132c has its CatchHandler @ 0019161d */
local_d8 = (int8 *)operator_new(0x30);
local_d8[1] = 0x100000001;
*local_d8 = &PTR___Sp_counted_ptr_inplace_00231448;
puVar8 = local_d8 + 2;
local_d8[2] = 0;
local_d8[3] = 0;
local_d8[4] = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cbegin();
puVar2 = PTR___libc_single_threaded_00232f78;
while( true ) {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
/* try { // try from 00191393 to 0019139d has its CatchHandler @ 00191637 */
cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(local_70,local_d0);
if (cVar3 != '\0') break;
/* try { // try from 001913a6 to 001913b8 has its CatchHandler @ 00191639 */
pbVar5 = (basic_json *)
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*(local_70);
Value(local_d0,pbVar5);
/* try { // try from 001913b9 to 001913cb has its CatchHandler @ 0019163e */
uVar6 = nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::key(local_70);
this_00 = (Value *)_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
(puVar8,uVar6);
operator=(this_00,local_d0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_90,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_90);
if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98);
}
if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8);
}
if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8);
}
if (local_c8 != (long *)0x0) {
if (*puVar2 == '\0') {
LOCK();
piVar1 = (int *)((long)local_c8 + 0xc);
iVar4 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar4 = *(int *)((long)local_c8 + 0xc);
*(int *)((long)local_c8 + 0xc) = iVar4 + -1;
}
if (iVar4 == 1) {
(**(code **)(*local_c8 + 0x18))();
}
}
/* try { // try from 00191445 to 0019144c has its CatchHandler @ 00191622 */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(local_70);
}
*(int8 **)(this + 0x20) = puVar8;
this_02 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28);
*(int8 **)(this + 0x28) = local_d8;
}
if (this_02 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_02);
}
return;
}
| |
43,775 | minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&) | monkey531[P]llama/common/minja.hpp | Value(const json & v) {
if (v.is_object()) {
auto object = std::make_shared<ObjectType>();
for (auto it = v.begin(); it != v.end(); ++it) {
(*object)[it.key()] = it.value();
}
object_ = std::move(object);
} else if (v.is_array()) {
auto array = std::make_shared<ArrayType>();
for (const auto& item : v) {
array->push_back(Value(item));
}
array_ = array;
} else {
primitive_ = v;
}
} | O2 | cpp | minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq %r14, %rdi
xorl %esi, %esi
callq 0x40a20
movzbl (%r15), %eax
cmpl $0x2, %eax
je 0x6aa70
cmpl $0x1, %eax
jne 0x6aaeb
leaq 0x18(%rsp), %rdi
callq 0x6abce
leaq 0x20(%rbx), %rax
movq %rax, (%rsp)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x6b146
leaq 0x68(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6b3b2
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6abea
testb %al, %al
je 0x6ab27
movq %r13, %rdi
callq 0x6ade4
movq %rbp, %rdi
movq %rax, %rsi
callq 0x6a996
movq 0x18(%rsp), %r12
movq %r13, %rdi
callq 0x6ac4c
movq %r12, %rdi
movq %rax, %rsi
callq 0x6abf4
movq %rax, %rdi
movq %rbp, %rsi
callq 0x6ad0a
movq %rbp, %rdi
callq 0x66190
movq %r13, %rdi
callq 0x6ad7c
jmp 0x6aa0a
leaq 0x8(%rsp), %rdi
callq 0x6adc9
leaq 0x10(%rbx), %rax
movq %rax, (%rsp)
leaq 0x48(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x6b146
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6b3b2
leaq 0x68(%rsp), %r15
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6abea
testb %al, %al
je 0x6ab12
movq %r13, %rdi
callq 0x6ade4
movq 0x8(%rsp), %r12
movq %r15, %rdi
movq %rax, %rsi
callq 0x6a996
movq %r12, %rdi
movq %r15, %rsi
callq 0x6be68
movq %r15, %rdi
callq 0x66190
movq %r13, %rdi
callq 0x6ad7c
jmp 0x6aaa7
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
callq 0x45764
leaq 0x38(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43592
movq %rbx, %rdi
callq 0x40a0c
jmp 0x6ab3f
leaq 0x8(%rsp), %rsi
movq (%rsp), %rdi
callq 0x6c04e
leaq 0x10(%rsp), %rdi
jmp 0x6ab3a
leaq 0x18(%rsp), %rsi
movq (%rsp), %rdi
callq 0x6bc80
leaq 0x20(%rsp), %rdi
callq 0x2adb8
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ab55
jmp 0x6ab55
movq %rax, %r15
jmp 0x6ab97
jmp 0x6ab71
jmp 0x6ab8a
movq %rax, %r15
leaq 0x68(%rsp), %rdi
callq 0x66190
jmp 0x6ab8d
jmp 0x6ab8a
jmp 0x6ab71
movq %rax, %r15
jmp 0x6ab83
movq %rax, %r15
leaq 0x68(%rsp), %rdi
callq 0x66190
leaq 0x20(%rsp), %rdi
jmp 0x6ab92
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x2adb8
movq %r14, %rdi
callq 0x40a0c
leaq 0x38(%rbx), %rdi
callq 0x2adb8
leaq 0x28(%rbx), %rdi
callq 0x2adb8
leaq 0x18(%rbx), %rdi
callq 0x2adb8
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x6717c
movq %r15, %rdi
callq 0x240e0
| _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r15, rsi
mov rbx, rdi
lea r14, [rdi+40h]
xorps xmm0, xmm0
movups xmmword ptr [rdi+30h], xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi], xmm0
mov rdi, r14
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(decltype(nullptr))
movzx eax, byte ptr [r15]
cmp eax, 2
jz loc_6AA70
cmp eax, 1
jnz loc_6AAEB
lea rdi, [rsp+0E8h+var_D0]
call _ZSt11make_sharedIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>()
lea rax, [rbx+20h]
mov [rsp+0E8h+var_E8], rax
lea r13, [rsp+0E8h+var_A0]
mov rdi, r13
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea rbp, [rsp+0E8h+var_80]
loc_6AA0A:
mov rdi, rbp
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
mov rdi, r13
mov rsi, rbp
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_6AB27
mov rdi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rdi, rbp
mov rsi, rax
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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 r12, [rsp+0E8h+var_D0]
mov rdi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::key(void)
mov rdi, r12
mov rsi, rax
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
mov rdi, rax
mov rsi, rbp
call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&)
mov rdi, rbp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void)
jmp short loc_6AA0A
loc_6AA70:
lea rdi, [rsp+0E8h+var_E0]
call _ZSt11make_sharedISt6vectorIN5minja5ValueESaIS2_EEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<std::vector<minja::Value>>()
lea rax, [rbx+10h]
mov [rsp+0E8h+var_E8], rax
lea r13, [rsp+0E8h+var_A0]
mov rdi, r13
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cbegin(void)
lea rbp, [rsp+0E8h+var_D0]
mov rdi, rbp
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::cend(void)
lea r15, [rsp+0E8h+var_80]
loc_6AAA7:
mov rdi, r13
mov rsi, rbp
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz short loc_6AB12
mov rdi, r13
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov r12, [rsp+0E8h+var_E0]
mov rdi, r15
mov rsi, rax
call _ZN5minja5ValueC2ERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEE; minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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, r12
mov rsi, r15
call _ZNSt6vectorIN5minja5ValueESaIS1_EE12emplace_backIJS1_EEERS1_DpOT_; std::vector<minja::Value>::emplace_back<minja::Value>(minja::Value &&)
mov rdi, r15; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void)
jmp short loc_6AAA7
loc_6AAEB:
lea rdi, [rsp+0E8h+var_B0]
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
lea rbx, [rsp+0E8h+var_B0]
mov rdi, r14
mov rsi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
jmp short loc_6AB3F
loc_6AB12:
lea rsi, [rsp+0E8h+var_E0]
mov rdi, [rsp+0E8h+var_E8]
call _ZNSt12__shared_ptrISt6vectorIN5minja5ValueESaIS2_EELN9__gnu_cxx12_Lock_policyE2EEaSERKS7_; std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2> const&)
lea rdi, [rsp+0E8h+var_D8]
jmp short loc_6AB3A
loc_6AB27:
lea rsi, [rsp+0E8h+var_D0]
mov rdi, [rsp+0E8h+var_E8]
call _ZNSt12__shared_ptrIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEELN9__gnu_cxx12_Lock_policyE2EEaSEOSQ_; std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>&&)
lea rdi, [rsp+0E8h+var_C8]
loc_6AB3A:
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_6AB3F:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6AB55
jmp short $+2
loc_6AB55:
mov r15, rax
jmp short loc_6AB97
jmp short loc_6AB71
jmp short loc_6AB8A
mov r15, rax
lea rdi, [rsp+arg_60]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_6AB8D
jmp short loc_6AB8A
jmp short $+2
loc_6AB71:
mov r15, rax
jmp short loc_6AB83
mov r15, rax
lea rdi, [rsp+arg_60]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_6AB83:
lea rdi, [rsp+arg_18]
jmp short loc_6AB92
loc_6AB8A:
mov r15, rax
loc_6AB8D:
lea rdi, [rsp+arg_8]
loc_6AB92:
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_6AB97:
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rdi, [rbx+38h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rbx+28h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rbx+18h]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
add rbx, 8
mov rdi, rbx
call _ZNSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__weak_count<(__gnu_cxx::_Lock_policy)2>::~__weak_count()
mov rdi, r15
call __Unwind_Resume
| long long minja::Value::Value(_OWORD *a1, unsigned __int8 *a2)
{
int v3; // eax
int v4; // esi
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
long long v9; // r12
long long v10; // rax
long long v11; // rax
int v12; // eax
long long v13; // r12
int v14; // edx
int v15; // ecx
int v16; // r8d
int v17; // r9d
int *v19; // rdi
_OWORD *v20; // [rsp+0h] [rbp-E8h]
_OWORD *v21; // [rsp+0h] [rbp-E8h]
long long v22; // [rsp+8h] [rbp-E0h] BYREF
int v23; // [rsp+10h] [rbp-D8h] BYREF
long long v24; // [rsp+18h] [rbp-D0h] BYREF
int v25; // [rsp+20h] [rbp-C8h] BYREF
int v26; // [rsp+28h] [rbp-C0h]
int v27; // [rsp+30h] [rbp-B8h]
unsigned __int8 v28[8]; // [rsp+38h] [rbp-B0h] BYREF
int v29; // [rsp+40h] [rbp-A8h]
int v30; // [rsp+48h] [rbp-A0h] BYREF
int v31; // [rsp+50h] [rbp-98h]
int v32; // [rsp+58h] [rbp-90h]
char v33; // [rsp+60h] [rbp-88h]
_BYTE v34[128]; // [rsp+68h] [rbp-80h] BYREF
a1[3] = 0LL;
a1[2] = 0LL;
a1[1] = 0LL;
*a1 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json((long long)(a1 + 4));
v3 = *a2;
if ( v3 == 2 )
{
std::make_shared<std::vector<minja::Value>>(&v22, 0LL);
v21 = a1 + 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>::cbegin(
&v30,
a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cend(
&v24,
a2);
while ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v30,
&v24) )
{
v12 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v30);
v13 = v22;
minja::Value::Value(
(unsigned int)v34,
v12,
v14,
v15,
v16,
v17,
(_DWORD)v21,
v22,
v23,
v24,
v25,
v26,
v27,
*(_DWORD *)v28,
v29,
v30,
v31,
v32,
v33);
std::vector<minja::Value>::emplace_back<minja::Value>(v13, v34);
minja::Value::~Value((minja::Value *)v34);
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v30);
}
std::__shared_ptr<std::vector<minja::Value>,(__gnu_cxx::_Lock_policy)2>::operator=(v21, &v22);
v19 = &v23;
}
else
{
if ( v3 != 1 )
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v28,
a2);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
(long long)(a1 + 4),
(long long)v28);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v28);
}
std::make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>(&v24);
v20 = a1 + 2;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::cbegin(
&v30,
a2);
while ( 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>::cend(
v34,
a2);
if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_(
&v30,
v34) )
break;
v4 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(&v30);
minja::Value::Value(
(unsigned int)v34,
v4,
v5,
v6,
v7,
v8,
(_DWORD)v20,
v22,
v23,
v24,
v25,
v26,
v27,
*(_DWORD *)v28,
v29,
v30,
v31,
v32,
v33);
v9 = v24;
v10 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::key(&v30);
v11 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_(
v9,
v10);
minja::Value::operator=(v11, v34);
minja::Value::~Value((minja::Value *)v34);
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(&v30);
}
std::__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>::operator=(
v20,
&v24);
v19 = &v25;
}
return std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v19);
}
| Value:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R15,RSI
MOV RBX,RDI
LEA R14,[RDI + 0x40]
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV RDI,R14
XOR ESI,ESI
CALL 0x00140a20
MOVZX EAX,byte ptr [R15]
CMP EAX,0x2
JZ 0x0016aa70
CMP EAX,0x1
JNZ 0x0016aaeb
LAB_0016a9e3:
LEA RDI,[RSP + 0x18]
CALL 0x0016abce
LEA RAX,[RBX + 0x20]
MOV qword ptr [RSP],RAX
LEA R13,[RSP + 0x48]
MOV RDI,R13
MOV RSI,R15
CALL 0x0016b146
LEA RBP,[RSP + 0x68]
LAB_0016aa0a:
MOV RDI,RBP
MOV RSI,R15
CALL 0x0016b3b2
LAB_0016aa15:
MOV RDI,R13
MOV RSI,RBP
CALL 0x0016abea
TEST AL,AL
JZ 0x0016ab27
LAB_0016aa28:
MOV RDI,R13
CALL 0x0016ade4
MOV RDI,RBP
MOV RSI,RAX
CALL 0x0016a996
MOV R12,qword ptr [RSP + 0x18]
LAB_0016aa40:
MOV RDI,R13
CALL 0x0016ac4c
MOV RDI,R12
MOV RSI,RAX
CALL 0x0016abf4
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0016ad0a
MOV RDI,RBP
CALL 0x00166190
LAB_0016aa66:
MOV RDI,R13
CALL 0x0016ad7c
JMP 0x0016aa0a
LAB_0016aa70:
LEA RDI,[RSP + 0x8]
CALL 0x0016adc9
LEA RAX,[RBX + 0x10]
MOV qword ptr [RSP],RAX
LEA R13,[RSP + 0x48]
MOV RDI,R13
MOV RSI,R15
CALL 0x0016b146
LEA RBP,[RSP + 0x18]
MOV RDI,RBP
MOV RSI,R15
CALL 0x0016b3b2
LEA R15,[RSP + 0x68]
LAB_0016aaa7:
MOV RDI,R13
MOV RSI,RBP
CALL 0x0016abea
TEST AL,AL
JZ 0x0016ab12
LAB_0016aab6:
MOV RDI,R13
CALL 0x0016ade4
MOV R12,qword ptr [RSP + 0x8]
LAB_0016aac3:
MOV RDI,R15
MOV RSI,RAX
CALL 0x0016a996
LAB_0016aace:
MOV RDI,R12
MOV RSI,R15
CALL 0x0016be68
MOV RDI,R15
CALL 0x00166190
LAB_0016aae1:
MOV RDI,R13
CALL 0x0016ad7c
JMP 0x0016aaa7
LAB_0016aaeb:
LEA RDI,[RSP + 0x38]
MOV RSI,R15
CALL 0x00145764
LAB_0016aaf8:
LEA RBX,[RSP + 0x38]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00143592
MOV RDI,RBX
CALL 0x00140a0c
JMP 0x0016ab3f
LAB_0016ab12:
LEA RSI,[RSP + 0x8]
MOV RDI,qword ptr [RSP]
CALL 0x0016c04e
LEA RDI,[RSP + 0x10]
JMP 0x0016ab3a
LAB_0016ab27:
LEA RSI,[RSP + 0x18]
MOV RDI,qword ptr [RSP]
CALL 0x0016bc80
LEA RDI,[RSP + 0x20]
LAB_0016ab3a:
CALL 0x0012adb8
LAB_0016ab3f:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* minja::Value::Value(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> const&) */
void __thiscall minja::Value::Value(Value *this,basic_json *param_1)
{
vector<minja::Value,std::allocator<minja::Value>> *this_00;
int8 uVar1;
char cVar2;
basic_json *pbVar3;
int8 uVar4;
Value *this_01;
__shared_count<(__gnu_cxx::_Lock_policy)2> *this_02;
vector<minja::Value,std::allocator<minja::Value>> *local_e0;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_d8 [8];
int8 local_d0;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_c8 [24];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_b0 [16];
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
local_a0 [32];
Value local_80 [80];
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((_func_decltype_nullptr *)(this + 0x40));
if (*param_1 == '\x02') {
/* try { // try from 0016aa70 to 0016aa79 has its CatchHandler @ 0016ab53 */
std::make_shared<std::vector<minja::Value,std::allocator<minja::Value>>>();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cbegin();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
/* try { // try from 0016aaa7 to 0016aab1 has its CatchHandler @ 0016ab8a */
while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(local_a0,&local_d0), cVar2 != '\0') {
/* try { // try from 0016aab6 to 0016aabd has its CatchHandler @ 0016ab5c */
pbVar3 = (basic_json *)
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*(local_a0);
this_00 = local_e0;
/* try { // try from 0016aac3 to 0016aacd has its CatchHandler @ 0016ab6d */
Value(local_80,pbVar3);
/* try { // try from 0016aace to 0016aad8 has its CatchHandler @ 0016ab5e */
std::vector<minja::Value,std::allocator<minja::Value>>::emplace_back<minja::Value>
(this_00,local_80);
~Value(local_80);
/* try { // try from 0016aae1 to 0016aae8 has its CatchHandler @ 0016ab8a */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(local_a0);
}
std::
__shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
::operator=((__shared_ptr<std::vector<minja::Value,std::allocator<minja::Value>>,(__gnu_cxx::_Lock_policy)2>
*)(this + 0x10),(__shared_ptr *)&local_e0);
this_02 = local_d8;
}
else {
if (*param_1 != '\x01') {
/* try { // try from 0016aaeb to 0016aaf7 has its CatchHandler @ 0016ab51 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_b0,param_1);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::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 + 0x40),local_b0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_b0);
return;
}
/* try { // try from 0016a9e3 to 0016a9ec has its CatchHandler @ 0016ab55 */
std::
make_shared<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>>
();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cbegin();
while( true ) {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::cend();
/* try { // try from 0016aa15 to 0016aa1f has its CatchHandler @ 0016ab6f */
cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
(local_a0,local_80);
if (cVar2 == '\0') break;
/* try { // try from 0016aa28 to 0016aa3a has its CatchHandler @ 0016ab71 */
pbVar3 = (basic_json *)
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*(local_a0);
Value(local_80,pbVar3);
uVar1 = local_d0;
/* try { // try from 0016aa40 to 0016aa52 has its CatchHandler @ 0016ab76 */
uVar4 = nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::key(local_a0);
this_01 = (Value *)_ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEEixIRKS9_TnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvESD_T_EE5valueEiE4typeELi0EEERSF_OST_
(uVar1,uVar4);
operator=(this_01,local_80);
~Value(local_80);
/* try { // try from 0016aa66 to 0016aa6d has its CatchHandler @ 0016ab5a */
nlohmann::json_abi_v3_11_3::detail::
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++(local_a0);
}
std::
__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>
::operator=((__shared_ptr<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const,minja::Value>>>,(__gnu_cxx::_Lock_policy)2>
*)(this + 0x20),(__shared_ptr *)&local_d0);
this_02 = local_c8;
}
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(this_02);
return;
}
| |
43,776 | freestackinternal | aimrt_mujoco_sim/_deps/mujoco-src/src/engine/engine_io.c | __attribute__((always_inline))
#endif
static inline void freestackinternal(mjStackInfo* stack_info) {
if (mjUNLIKELY(!stack_info->stack_base)) {
return;
}
mjStackFrame* s = (mjStackFrame*) stack_info->stack_base;
#ifdef ADDRESS_SANITIZER
// raise an error if caller function name doesn't match the most recent caller of mj_markStack
if (!mj__comparePcFuncName(s->pc, __sanitizer_return_address())) {
mjERROR("mj_markStack %s has no corresponding mj_freeStack (detected %s)",
mj__getPcDebugInfo(s->pc),
mj__getPcDebugInfo(__sanitizer_return_address()));
}
#endif
// restore pbase and pstack
stack_info->stack_base = s->pbase;
stack_info->top = s->pstack;
// if running under asan, poison the newly freed memory region
#ifdef ADDRESS_SANITIZER
ASAN_POISON_MEMORY_REGION((char*)stack_info->limit, stack_info->top - stack_info->limit);
#endif
} | O0 | c | freestackinternal:
movq %rdi, -0x8(%rsp)
movq -0x8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xe10e7
jmp 0xe1118
movq -0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x10(%rsp)
movq -0x10(%rsp), %rax
movq (%rax), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rsp), %rax
movq 0x8(%rax), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
retq
nopl (%rax)
| freestackinternal:
mov [rsp+var_8], rdi
mov rax, [rsp+var_8]
cmp qword ptr [rax+18h], 0
setnz al
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_E10E7
jmp short locret_E1118
loc_E10E7:
mov rax, [rsp+var_8]
mov rax, [rax+18h]
mov [rsp+var_10], rax
mov rax, [rsp+var_10]
mov rcx, [rax]
mov rax, [rsp+var_8]
mov [rax+18h], rcx
mov rax, [rsp+var_10]
mov rcx, [rax+8]
mov rax, [rsp+var_8]
mov [rax+8], rcx
locret_E1118:
retn
| _BOOL8 freestackinternal(long long a1)
{
_BOOL8 result; // rax
_QWORD *v2; // [rsp+0h] [rbp-10h]
result = *(_QWORD *)(a1 + 24) == 0LL;
if ( *(_QWORD *)(a1 + 24) )
{
v2 = *(_QWORD **)(a1 + 24);
*(_QWORD *)(a1 + 24) = *v2;
result = a1;
*(_QWORD *)(a1 + 8) = v2[1];
}
return result;
}
| freestackinternal:
MOV qword ptr [RSP + -0x8],RDI
MOV RAX,qword ptr [RSP + -0x8]
CMP qword ptr [RAX + 0x18],0x0
SETNZ AL
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001e10e7
JMP 0x001e1118
LAB_001e10e7:
MOV RAX,qword ptr [RSP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + -0x10],RAX
MOV RAX,qword ptr [RSP + -0x10]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RSP + -0x8]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RSP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RSP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
LAB_001e1118:
RET
|
void freestackinternal(long param_1)
{
int8 *puVar1;
if (*(long *)(param_1 + 0x18) != 0) {
puVar1 = *(int8 **)(param_1 + 0x18);
*(int8 *)(param_1 + 0x18) = *puVar1;
*(int8 *)(param_1 + 8) = puVar1[1];
}
return;
}
| |
43,777 | testing::internal::TestEventRepeater::OnTestIterationEnd(testing::UnitTest const&, int) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest.cc | void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test,
int iteration) {
if (forwarding_enabled_) {
for (size_t i = listeners_.size(); i > 0; i--) {
listeners_[i - 1]->OnTestIterationEnd(unit_test, iteration);
}
}
} | O1 | cpp | testing::internal::TestEventRepeater::OnTestIterationEnd(testing::UnitTest const&, int):
cmpb $0x1, 0x8(%rdi)
jne 0x2437d
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x18(%rdi), %r12
subq 0x10(%rdi), %r12
je 0x24372
movl %edx, %ebx
movq %rsi, %r14
sarq $0x3, %r12
movq 0x10(%r15), %rax
movq -0x8(%rax,%r12,8), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %ebx, %edx
callq *0x80(%rax)
decq %r12
jne 0x24356
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN7testing8internal17TestEventRepeater18OnTestIterationEndERKNS_8UnitTestEi:
cmp byte ptr [rdi+8], 1
jnz short locret_2437D
push r15
push r14
push r12
push rbx
push rax
mov r15, rdi
mov r12, [rdi+18h]
sub r12, [rdi+10h]
jz short loc_24372
mov ebx, edx
mov r14, rsi
sar r12, 3
loc_24356:
mov rax, [r15+10h]
mov rdi, [rax+r12*8-8]
mov rax, [rdi]
mov rsi, r14
mov edx, ebx
call qword ptr [rax+80h]
dec r12
jnz short loc_24356
loc_24372:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
locret_2437D:
retn
| long long testing::internal::TestEventRepeater::OnTestIterationEnd(
testing::internal::TestEventRepeater *this,
const testing::UnitTest *a2,
unsigned int a3)
{
long long v4; // r12
long long v6; // r12
long long v7; // rdi
long long result; // rax
if ( *((_BYTE *)this + 8) == 1 )
{
v4 = *((_QWORD *)this + 3) - *((_QWORD *)this + 2);
if ( v4 )
{
v6 = v4 >> 3;
do
{
v7 = *(_QWORD *)(*((_QWORD *)this + 2) + 8 * v6 - 8);
result = (*(long long ( **)(long long, const testing::UnitTest *, _QWORD))(*(_QWORD *)v7 + 128LL))(
v7,
a2,
a3);
--v6;
}
while ( v6 );
}
}
return result;
}
| OnTestIterationEnd:
CMP byte ptr [RDI + 0x8],0x1
JNZ 0x0012437d
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV R12,qword ptr [RDI + 0x18]
SUB R12,qword ptr [RDI + 0x10]
JZ 0x00124372
MOV EBX,EDX
MOV R14,RSI
SAR R12,0x3
LAB_00124356:
MOV RAX,qword ptr [R15 + 0x10]
MOV RDI,qword ptr [RAX + R12*0x8 + -0x8]
MOV RAX,qword ptr [RDI]
MOV RSI,R14
MOV EDX,EBX
CALL qword ptr [RAX + 0x80]
DEC R12
JNZ 0x00124356
LAB_00124372:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
LAB_0012437d:
RET
|
/* testing::internal::TestEventRepeater::OnTestIterationEnd(testing::UnitTest const&, int) */
void __thiscall
testing::internal::TestEventRepeater::OnTestIterationEnd
(TestEventRepeater *this,UnitTest *param_1,int param_2)
{
long *plVar1;
long lVar2;
if ((this[8] == (TestEventRepeater)0x1) && (*(long *)(this + 0x18) - *(long *)(this + 0x10) != 0))
{
lVar2 = *(long *)(this + 0x18) - *(long *)(this + 0x10) >> 3;
do {
plVar1 = *(long **)(*(long *)(this + 0x10) + -8 + lVar2 * 8);
(**(code **)(*plVar1 + 0x80))(plVar1,param_1,param_2);
lVar2 = lVar2 + -1;
} while (lVar2 != 0);
}
return;
}
| |
43,778 | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | llama.cpp/common/common.cpp | bool fs_create_directory_with_parents(const std::string & path) {
#ifdef _WIN32
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::wstring wpath = converter.from_bytes(path);
// if the path already exists, check whether it's a directory
const DWORD attributes = GetFileAttributesW(wpath.c_str());
if ((attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return true;
}
size_t pos_slash = 0;
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('\\', pos_slash)) != std::string::npos) {
const std::wstring subpath = wpath.substr(0, pos_slash);
const wchar_t * test = subpath.c_str();
const bool success = CreateDirectoryW(test, NULL);
if (!success) {
const DWORD error = GetLastError();
// if the path already exists, ensure that it's a directory
if (error == ERROR_ALREADY_EXISTS) {
const DWORD attributes = GetFileAttributesW(subpath.c_str());
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return false;
}
} else {
return false;
}
}
pos_slash += 1;
}
return true;
#else
// if the path already exists, check whether it's a directory
struct stat info;
if (stat(path.c_str(), &info) == 0) {
return S_ISDIR(info.st_mode);
}
size_t pos_slash = 1; // skip leading slashes for directory creation
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('/', pos_slash)) != std::string::npos) {
const std::string subpath = path.substr(0, pos_slash);
struct stat info;
// if the path already exists, ensure that it's a directory
if (stat(subpath.c_str(), &info) == 0) {
if (!S_ISDIR(info.st_mode)) {
return false;
}
} else {
// create parent directories
const int ret = mkdir(subpath.c_str(), 0755);
if (ret != 0) {
return false;
}
}
pos_slash += 1;
}
return true;
#endif // _WIN32
} | O3 | cpp | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1c0f0
testl %eax, %eax
je 0xae50f
movl $0x1, %r14d
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movl $0x2f, %esi
movq %r14, %rdx
callq 0x1ccb0
cmpq $-0x1, %rax
sete %bpl
je 0xae524
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1cbb0
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1c0f0
testl %eax, %eax
je 0xae4d0
movq 0x8(%rsp), %rdi
movl $0x1ed, %esi # imm = 0x1ED
callq 0x1c2b0
testl %eax, %eax
je 0xae4e2
xorl %r13d, %r13d
jmp 0xae4e8
movl 0x40(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax # imm = 0x4000
jne 0xae4cb
incq %r14
movb $0x1, %r13b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xae504
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1c110
testb %r13b, %r13b
jne 0xae476
jmp 0xae524
movl $0xf000, %eax # imm = 0xF000
andl 0xd0(%rsp), %eax
cmpl $0x4000, %eax # imm = 0x4000
sete %bpl
movl %ebp, %eax
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov rbx, rdi
mov rdi, [rdi]
lea rsi, [rsp+178h+var_C0]
call _stat
test eax, eax
jz loc_AE50F
mov r14d, 1
lea r15, [rsp+178h+var_170]
lea r12, [rsp+178h+var_150]
loc_AE476:
mov rdi, rbx
mov esi, 2Fh ; '/'
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
setz bpl
jz loc_AE524
mov r14, rax
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, [rsp+178h+var_170]
mov rsi, r12
call _stat
test eax, eax
jz short loc_AE4D0
mov rdi, [rsp+178h+var_170]
mov esi, 1EDh
call _mkdir
test eax, eax
jz short loc_AE4E2
loc_AE4CB:
xor r13d, r13d
jmp short loc_AE4E8
loc_AE4D0:
mov eax, [rsp+178h+var_138]
mov ecx, 0F000h
and eax, ecx
cmp eax, 4000h
jnz short loc_AE4CB
loc_AE4E2:
inc r14
mov r13b, 1
loc_AE4E8:
mov rdi, [rsp+178h+var_170]; void *
lea rax, [rsp+178h+var_160]
cmp rdi, rax
jz short loc_AE504
mov rsi, [rsp+178h+var_160]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AE504:
test r13b, r13b
jnz loc_AE476
jmp short loc_AE524
loc_AE50F:
mov eax, 0F000h
and eax, [rsp+178h+var_A8]
cmp eax, 4000h
setz bpl
loc_AE524:
mov eax, ebp
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long fs_create_directory_with_parents(_QWORD *a1)
{
unsigned int v1; // ebp
long long v2; // r14
long long v3; // rax
char v4; // r13
void *v6; // [rsp+8h] [rbp-170h] BYREF
long long v7; // [rsp+18h] [rbp-160h] BYREF
_BYTE v8[24]; // [rsp+28h] [rbp-150h] BYREF
int v9; // [rsp+40h] [rbp-138h]
_BYTE v10[24]; // [rsp+B8h] [rbp-C0h] BYREF
int v11; // [rsp+D0h] [rbp-A8h]
if ( (unsigned int)stat(*a1, v10) )
{
v2 = 1LL;
while ( 1 )
{
v3 = std::string::find(a1, 47LL, v2);
LOBYTE(v1) = v3 == -1;
if ( v3 == -1 )
return v1;
v2 = v3;
std::string::substr(&v6, a1, 0LL, v3);
if ( (unsigned int)stat(v6, v8) )
{
if ( !(unsigned int)mkdir(v6, 493LL) )
goto LABEL_8;
}
else if ( (v9 & 0xF000) == 0x4000 )
{
LABEL_8:
++v2;
v4 = 1;
goto LABEL_9;
}
v4 = 0;
LABEL_9:
if ( v6 != &v7 )
operator delete(v6, v7 + 1);
if ( !v4 )
return v1;
}
}
LOBYTE(v1) = (v11 & 0xF000) == 0x4000;
return v1;
}
| fs_create_directory_with_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[RSP + 0xb8]
CALL 0x0011c0f0
TEST EAX,EAX
JZ 0x001ae50f
MOV R14D,0x1
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x28]
LAB_001ae476:
MOV RDI,RBX
MOV ESI,0x2f
MOV RDX,R14
CALL 0x0011ccb0
CMP RAX,-0x1
SETZ BPL
JZ 0x001ae524
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
CALL 0x0011cbb0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0011c0f0
TEST EAX,EAX
JZ 0x001ae4d0
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1ed
CALL 0x0011c2b0
TEST EAX,EAX
JZ 0x001ae4e2
LAB_001ae4cb:
XOR R13D,R13D
JMP 0x001ae4e8
LAB_001ae4d0:
MOV EAX,dword ptr [RSP + 0x40]
MOV ECX,0xf000
AND EAX,ECX
CMP EAX,0x4000
JNZ 0x001ae4cb
LAB_001ae4e2:
INC R14
MOV R13B,0x1
LAB_001ae4e8:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x001ae504
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011c110
LAB_001ae504:
TEST R13B,R13B
JNZ 0x001ae476
JMP 0x001ae524
LAB_001ae50f:
MOV EAX,0xf000
AND EAX,dword ptr [RSP + 0xd0]
CMP EAX,0x4000
SETZ BPL
LAB_001ae524:
MOV EAX,EBP
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fs_create_directory_with_parents(std::__cxx11::string const&) */
ulong fs_create_directory_with_parents(string *param_1)
{
bool bVar1;
int iVar2;
long lVar3;
ulong unaff_RBP;
long *local_170 [2];
long local_160 [2];
stat local_150;
stat local_c0;
iVar2 = stat(*(char **)param_1,&local_c0);
if (iVar2 == 0) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),(local_c0.st_mode & 0xf000) == 0x4000);
}
else {
do {
lVar3 = std::__cxx11::string::find((char)param_1,0x2f);
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),lVar3 == -1);
if (lVar3 == -1) break;
std::__cxx11::string::substr((ulong)local_170,(ulong)param_1);
iVar2 = stat((char *)local_170[0],&local_150);
if (iVar2 == 0) {
if ((local_150.st_mode & 0xf000) != 0x4000) goto LAB_001ae4cb;
LAB_001ae4e2:
bVar1 = true;
}
else {
iVar2 = mkdir((char *)local_170[0],0x1ed);
if (iVar2 == 0) goto LAB_001ae4e2;
LAB_001ae4cb:
bVar1 = false;
}
if (local_170[0] != local_160) {
operator_delete(local_170[0],local_160[0] + 1);
}
} while (bVar1);
}
return unaff_RBP & 0xffffffff;
}
| |
43,779 | multi_alloc_root | eloqsql/mysys/my_alloc.c | void *multi_alloc_root(MEM_ROOT *root, ...)
{
va_list args;
char **ptr, *start, *res;
size_t tot_length, length;
DBUG_ENTER("multi_alloc_root");
/*
We don't need to do DBUG_PRINT here as it will be done when alloc_root
is called
*/
va_start(args, root);
tot_length= 0;
while ((ptr= va_arg(args, char **)))
{
length= va_arg(args, uint);
tot_length+= ALIGN_SIZE(length);
}
va_end(args);
if (!(start= (char*) alloc_root(root, tot_length)))
DBUG_RETURN(0); /* purecov: inspected */
va_start(args, root);
res= start;
while ((ptr= va_arg(args, char **)))
{
*ptr= res;
length= va_arg(args, uint);
res+= ALIGN_SIZE(length);
}
va_end(args);
DBUG_RETURN((void*) start);
} | O3 | c | multi_alloc_root:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
leaq -0xe0(%rbp), %r14
movq %rsi, 0x8(%r14)
movq %rdx, 0x10(%r14)
movq %rcx, 0x18(%r14)
movq %r8, 0x20(%r14)
movq %r9, 0x28(%r14)
testb %al, %al
je 0xa08d2
movaps %xmm0, -0xb0(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm3, -0x80(%rbp)
movaps %xmm4, -0x70(%rbp)
movaps %xmm5, -0x60(%rbp)
movaps %xmm6, -0x50(%rbp)
movaps %xmm7, -0x40(%rbp)
movabsq $0x1fffffff8, %rbx # imm = 0x1FFFFFFF8
movq %r14, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movabsq $0x3000000008, %r15 # imm = 0x3000000008
movq %r15, -0x30(%rbp)
movl $0x8, %eax
xorl %esi, %esi
cmpl $0x28, %eax
ja 0xa0912
movq %rcx, %rdx
movl %eax, %ecx
addq %r14, %rcx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0xa091a
leaq 0x8(%rcx), %rdx
movq %rdx, -0x28(%rbp)
cmpq $0x0, (%rcx)
je 0xa094b
cmpl $0x28, %eax
ja 0xa0935
movq %rdx, %rcx
movl %eax, %edx
addq %r14, %rdx
addl $0x8, %eax
movl %eax, -0x30(%rbp)
jmp 0xa093d
leaq 0x8(%rdx), %rcx
movq %rcx, -0x28(%rbp)
movl (%rdx), %edx
addq $0x7, %rdx
andq %rbx, %rdx
addq %rdx, %rsi
jmp 0xa08fd
callq 0xa075f
testq %rax, %rax
je 0xa09c9
movq %r14, -0x20(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq %r15, -0x30(%rbp)
movl $0x8, %edx
movq %rax, %rcx
cmpl $0x28, %edx
ja 0xa0980
movl %edx, %esi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0xa098c
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdx
movq %rdx, -0x28(%rbp)
movq (%rsi), %rdx
testq %rdx, %rdx
je 0xa09c9
movq %rcx, (%rdx)
movl -0x30(%rbp), %edx
cmpq $0x28, %rdx
ja 0xa09af
movq %rdx, %rsi
addq -0x20(%rbp), %rsi
addl $0x8, %edx
movl %edx, -0x30(%rbp)
jmp 0xa09bb
movq -0x28(%rbp), %rsi
leaq 0x8(%rsi), %rdi
movq %rdi, -0x28(%rbp)
movl (%rsi), %esi
addq $0x7, %rsi
andq %rbx, %rsi
addq %rsi, %rcx
jmp 0xa096d
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| multi_alloc_root:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
lea r14, [rbp+var_E0]
mov [r14+8], rsi
mov [r14+10h], rdx
mov [r14+18h], rcx
mov [r14+20h], r8
mov [r14+28h], r9
test al, al
jz short loc_A08D2
movaps [rbp+var_B0], xmm0
movaps [rbp+var_A0], xmm1
movaps [rbp+var_90], xmm2
movaps [rbp+var_80], xmm3
movaps [rbp+var_70], xmm4
movaps [rbp+var_60], xmm5
movaps [rbp+var_50], xmm6
movaps [rbp+var_40], xmm7
loc_A08D2:
mov rbx, 1FFFFFFF8h
mov [rbp+var_20], r14
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov r15, 3000000008h
mov [rbp+var_30], r15
mov eax, 8
xor esi, esi
loc_A08FD:
cmp eax, 28h ; '('
ja short loc_A0912
mov rdx, rcx
mov ecx, eax
add rcx, r14
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_A091A
loc_A0912:
lea rdx, [rcx+8]
mov [rbp+var_28], rdx
loc_A091A:
cmp qword ptr [rcx], 0
jz short loc_A094B
cmp eax, 28h ; '('
ja short loc_A0935
mov rcx, rdx
mov edx, eax
add rdx, r14
add eax, 8
mov dword ptr [rbp+var_30], eax
jmp short loc_A093D
loc_A0935:
lea rcx, [rdx+8]
mov [rbp+var_28], rcx
loc_A093D:
mov edx, [rdx]
add rdx, 7
and rdx, rbx
add rsi, rdx
jmp short loc_A08FD
loc_A094B:
call alloc_root
test rax, rax
jz short loc_A09C9
mov [rbp+var_20], r14
lea rcx, [rbp+arg_0]
mov [rbp+var_28], rcx
mov [rbp+var_30], r15
mov edx, 8
mov rcx, rax
loc_A096D:
cmp edx, 28h ; '('
ja short loc_A0980
mov esi, edx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_A098C
loc_A0980:
mov rsi, [rbp+var_28]
lea rdx, [rsi+8]
mov [rbp+var_28], rdx
loc_A098C:
mov rdx, [rsi]
test rdx, rdx
jz short loc_A09C9
mov [rdx], rcx
mov edx, dword ptr [rbp+var_30]
cmp rdx, 28h ; '('
ja short loc_A09AF
mov rsi, rdx
add rsi, [rbp+var_20]
add edx, 8
mov dword ptr [rbp+var_30], edx
jmp short loc_A09BB
loc_A09AF:
mov rsi, [rbp+var_28]
lea rdi, [rsi+8]
mov [rbp+var_28], rdi
loc_A09BB:
mov esi, [rsi]
add rsi, 7
and rsi, rbx
add rcx, rsi
jmp short loc_A096D
loc_A09C9:
add rsp, 0C8h
pop rbx
pop r14
pop r15
pop rbp
retn
| char * multi_alloc_root(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char *v15; // rcx
unsigned int v16; // eax
long long i; // rsi
char *v18; // rdx
char *result; // rax
unsigned int v20; // edx
char *j; // rcx
char *v22; // rsi
char *v23; // rsi
_BYTE v24[8]; // [rsp+0h] [rbp-E0h] BYREF
long long v25; // [rsp+8h] [rbp-D8h]
long long v26; // [rsp+10h] [rbp-D0h]
long long v27; // [rsp+18h] [rbp-C8h]
long long v28; // [rsp+20h] [rbp-C0h]
long long v29; // [rsp+28h] [rbp-B8h]
__m128 v30; // [rsp+30h] [rbp-B0h]
__m128 v31; // [rsp+40h] [rbp-A0h]
__m128 v32; // [rsp+50h] [rbp-90h]
__m128 v33; // [rsp+60h] [rbp-80h]
__m128 v34; // [rsp+70h] [rbp-70h]
__m128 v35; // [rsp+80h] [rbp-60h]
__m128 v36; // [rsp+90h] [rbp-50h]
__m128 v37; // [rsp+A0h] [rbp-40h]
long long v38; // [rsp+B0h] [rbp-30h]
char *v39; // [rsp+B8h] [rbp-28h]
_BYTE *v40; // [rsp+C0h] [rbp-20h]
v30 = a7;
v31 = a8;
v32 = a9;
v33 = a10;
v34 = a11;
v35 = a12;
v36 = a13;
v37 = a14;
v25 = a2;
v26 = a3;
v27 = a4;
v28 = a5;
v29 = a6;
v40 = v24;
v15 = &a15;
v39 = &a15;
v38 = 0x3000000008LL;
v16 = 8;
for ( i = 0LL; ; i += (*(unsigned int *)v18 + 7LL) & 0x1FFFFFFF8LL )
{
if ( v16 > 0x28 )
{
v18 = v15 + 8;
v39 = v15 + 8;
}
else
{
v18 = v15;
v15 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
if ( !*(_QWORD *)v15 )
break;
if ( v16 > 0x28 )
{
v15 = v18 + 8;
v39 = v18 + 8;
}
else
{
v15 = v18;
v18 = &v24[v16];
v16 += 8;
LODWORD(v38) = v16;
}
}
result = alloc_root(a1, i);
if ( result )
{
v40 = v24;
v39 = &a15;
v38 = 0x3000000008LL;
v20 = 8;
for ( j = result; ; j += (*(unsigned int *)v23 + 7LL) & 0x1FFFFFFF8LL )
{
if ( v20 > 0x28 )
{
v22 = v39;
v39 += 8;
}
else
{
v22 = &v40[v20];
LODWORD(v38) = v20 + 8;
}
if ( !*(_QWORD *)v22 )
break;
**(_QWORD **)v22 = j;
v20 = v38;
if ( (unsigned int)v38 > 0x28uLL )
{
v23 = v39;
v39 += 8;
}
else
{
v23 = &v40[(unsigned int)v38];
v20 = v38 + 8;
LODWORD(v38) = v38 + 8;
}
}
}
return result;
}
| multi_alloc_root:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
LEA R14,[RBP + -0xe0]
MOV qword ptr [R14 + 0x8],RSI
MOV qword ptr [R14 + 0x10],RDX
MOV qword ptr [R14 + 0x18],RCX
MOV qword ptr [R14 + 0x20],R8
MOV qword ptr [R14 + 0x28],R9
TEST AL,AL
JZ 0x001a08d2
MOVAPS xmmword ptr [RBP + -0xb0],XMM0
MOVAPS xmmword ptr [RBP + -0xa0],XMM1
MOVAPS xmmword ptr [RBP + -0x90],XMM2
MOVAPS xmmword ptr [RBP + -0x80],XMM3
MOVAPS xmmword ptr [RBP + -0x70],XMM4
MOVAPS xmmword ptr [RBP + -0x60],XMM5
MOVAPS xmmword ptr [RBP + -0x50],XMM6
MOVAPS xmmword ptr [RBP + -0x40],XMM7
LAB_001a08d2:
MOV RBX,0x1fffffff8
MOV qword ptr [RBP + -0x20],R14
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV R15,0x3000000008
MOV qword ptr [RBP + -0x30],R15
MOV EAX,0x8
XOR ESI,ESI
LAB_001a08fd:
CMP EAX,0x28
JA 0x001a0912
MOV RDX,RCX
MOV ECX,EAX
ADD RCX,R14
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001a091a
LAB_001a0912:
LEA RDX,[RCX + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_001a091a:
CMP qword ptr [RCX],0x0
JZ 0x001a094b
CMP EAX,0x28
JA 0x001a0935
MOV RCX,RDX
MOV EDX,EAX
ADD RDX,R14
ADD EAX,0x8
MOV dword ptr [RBP + -0x30],EAX
JMP 0x001a093d
LAB_001a0935:
LEA RCX,[RDX + 0x8]
MOV qword ptr [RBP + -0x28],RCX
LAB_001a093d:
MOV EDX,dword ptr [RDX]
ADD RDX,0x7
AND RDX,RBX
ADD RSI,RDX
JMP 0x001a08fd
LAB_001a094b:
CALL 0x001a075f
TEST RAX,RAX
JZ 0x001a09c9
MOV qword ptr [RBP + -0x20],R14
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R15
MOV EDX,0x8
MOV RCX,RAX
LAB_001a096d:
CMP EDX,0x28
JA 0x001a0980
MOV ESI,EDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x001a098c
LAB_001a0980:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDX,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDX
LAB_001a098c:
MOV RDX,qword ptr [RSI]
TEST RDX,RDX
JZ 0x001a09c9
MOV qword ptr [RDX],RCX
MOV EDX,dword ptr [RBP + -0x30]
CMP RDX,0x28
JA 0x001a09af
MOV RSI,RDX
ADD RSI,qword ptr [RBP + -0x20]
ADD EDX,0x8
MOV dword ptr [RBP + -0x30],EDX
JMP 0x001a09bb
LAB_001a09af:
MOV RSI,qword ptr [RBP + -0x28]
LEA RDI,[RSI + 0x8]
MOV qword ptr [RBP + -0x28],RDI
LAB_001a09bb:
MOV ESI,dword ptr [RSI]
ADD RSI,0x7
AND RSI,RBX
ADD RCX,RSI
JMP 0x001a096d
LAB_001a09c9:
ADD RSP,0xc8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void multi_alloc_root(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;
uint uVar1;
uint *puVar2;
uint *puVar3;
ulong uVar4;
long lVar5;
uint *puVar6;
uint local_e8 [2];
int8 local_e0;
int8 local_d8;
int8 local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int8 local_58;
int8 local_48;
uint local_38;
int4 uStack_34;
uint *local_30;
uint *local_28;
local_e0 = param_10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
if (in_AL != '\0') {
local_b8 = param_1;
local_a8 = param_2;
local_98 = param_3;
local_88 = param_4;
local_78 = param_5;
local_68 = param_6;
local_58 = param_7;
local_48 = param_8;
}
local_28 = local_e8;
puVar6 = (uint *)&stack0x00000008;
local_30 = puVar6;
local_38 = 8;
uStack_34 = 0x30;
uVar1 = 8;
lVar5 = 0;
while( true ) {
if (uVar1 < 0x29) {
uVar4 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
puVar2 = (uint *)((long)local_e8 + uVar4);
puVar3 = puVar6;
}
else {
puVar3 = puVar6 + 2;
local_30 = puVar3;
puVar2 = puVar6;
}
if (*(long *)puVar2 == 0) break;
if (uVar1 < 0x29) {
uVar4 = (ulong)uVar1;
uVar1 = uVar1 + 8;
local_38 = uVar1;
puVar6 = puVar3;
puVar3 = (uint *)((long)local_e8 + uVar4);
}
else {
puVar6 = puVar3 + 2;
local_30 = puVar6;
}
lVar5 = lVar5 + ((ulong)*puVar3 + 7 & 0x1fffffff8);
}
lVar5 = alloc_root(param_9,lVar5);
if (lVar5 != 0) {
local_30 = (uint *)&stack0x00000008;
uVar1 = 8;
uVar4 = 8;
while( true ) {
if ((uint)uVar4 < 0x29) {
uVar1 = (uint)uVar4 + 8;
puVar6 = (uint *)((long)local_e8 + uVar4);
}
else {
puVar6 = local_30;
local_30 = local_30 + 2;
}
if (*(long **)puVar6 == (long *)0x0) break;
**(long **)puVar6 = lVar5;
uVar4 = (ulong)uVar1;
if (uVar4 < 0x29) {
puVar6 = (uint *)((long)local_e8 + uVar4);
uVar1 = uVar1 + 8;
uVar4 = (ulong)uVar1;
}
else {
puVar6 = local_30;
local_30 = local_30 + 2;
}
lVar5 = lVar5 + ((ulong)*puVar6 + 7 & 0x1fffffff8);
}
}
return;
}
| |
43,780 | mi_find_last_pos | eloqsql/storage/myisam/mi_write.c | static uchar *_mi_find_last_pos(MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uint *return_key_length,
uchar **after_key)
{
uint keys, length, UNINIT_VAR(last_length), key_ref_length;
uchar *end,*lastpos,*prevpos;
uchar key_buff[HA_MAX_KEY_BUFF];
DBUG_ENTER("_mi_find_last_pos");
key_ref_length=2;
length=mi_getint(page)-key_ref_length;
page+=key_ref_length;
if (!(keyinfo->flag &
(HA_PACK_KEY | HA_SPACE_PACK_USED | HA_VAR_LENGTH_KEY |
HA_BINARY_PACK_KEY)))
{
keys=length/keyinfo->keylength-2;
*return_key_length=length=keyinfo->keylength;
end=page+keys*length;
*after_key=end+length;
memcpy(key,end,length);
DBUG_RETURN(end);
}
end=page+length-key_ref_length;
DBUG_ASSERT(page < end);
*key='\0';
length=0;
lastpos=page;
do
{
prevpos=lastpos; lastpos=page;
last_length=length;
memcpy(key, key_buff, length); /* previous key */
if (!(length=(*keyinfo->get_key)(keyinfo,0,&page,key_buff)))
{
mi_print_error(keyinfo->share, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_RETURN(0);
}
} while (page < end);
*return_key_length=last_length;
*after_key=lastpos;
DBUG_PRINT("exit",("returns: %p page: %p end: %p",
prevpos, page, end));
DBUG_RETURN(prevpos);
} | O0 | c | mi_find_last_pos:
pushq %rbp
movq %rsp, %rbp
subq $0x520, %rsp # imm = 0x520
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x4d0(%rbp)
movq %rsi, -0x4d8(%rbp)
movq %rdx, -0x4e0(%rbp)
movq %rcx, -0x4e8(%rbp)
movq %r8, -0x4f0(%rbp)
movl -0x4fc(%rbp), %eax
movl %eax, -0x4fc(%rbp)
movl $0x2, -0x500(%rbp)
movq -0x4d8(%rbp), %rax
movzbl 0x1(%rax), %eax
movzwl %ax, %eax
movq -0x4d8(%rbp), %rcx
movzbl (%rcx), %ecx
movzwl %cx, %ecx
shll $0x8, %ecx
orl %ecx, %eax
movzwl %ax, %eax
andl $0x7fff, %eax # imm = 0x7FFF
subl -0x500(%rbp), %eax
movl %eax, -0x4f8(%rbp)
movl -0x500(%rbp), %ecx
movq -0x4d8(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x4d8(%rbp)
movq -0x4d0(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x2e, %eax
cmpl $0x0, %eax
jne 0xc7df5
movl -0x4f8(%rbp), %eax
movq -0x4d0(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
xorl %edx, %edx
divl %ecx
subl $0x2, %eax
movl %eax, -0x4f4(%rbp)
movq -0x4d0(%rbp), %rax
movzwl 0x12(%rax), %ecx
movl %ecx, -0x4f8(%rbp)
movq -0x4e8(%rbp), %rax
movl %ecx, (%rax)
movq -0x4d8(%rbp), %rax
movl -0x4f4(%rbp), %ecx
imull -0x4f8(%rbp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x508(%rbp)
movq -0x508(%rbp), %rcx
movl -0x4f8(%rbp), %eax
addq %rax, %rcx
movq -0x4f0(%rbp), %rax
movq %rcx, (%rax)
movq -0x4e0(%rbp), %rdi
movq -0x508(%rbp), %rsi
movl -0x4f8(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movq -0x508(%rbp), %rax
movq %rax, -0x4c8(%rbp)
jmp 0xc7f2d
movq -0x4d8(%rbp), %rax
movl -0x4f8(%rbp), %ecx
addq %rcx, %rax
movl -0x500(%rbp), %ecx
movl %ecx, %edx
xorl %ecx, %ecx
subq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x508(%rbp)
jmp 0xc7e1e
movq -0x4e0(%rbp), %rax
movb $0x0, (%rax)
movl $0x0, -0x4f8(%rbp)
movq -0x4d8(%rbp), %rax
movq %rax, -0x510(%rbp)
movq -0x510(%rbp), %rax
movq %rax, -0x518(%rbp)
movq -0x4d8(%rbp), %rax
movq %rax, -0x510(%rbp)
movl -0x4f8(%rbp), %eax
movl %eax, -0x4fc(%rbp)
movq -0x4e0(%rbp), %rdi
leaq -0x4c0(%rbp), %rsi
movl -0x4f8(%rbp), %eax
movl %eax, %edx
callq 0x2a090
movq -0x4d0(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x4d0(%rbp), %rdi
leaq -0x4c0(%rbp), %rcx
xorl %esi, %esi
leaq -0x4d8(%rbp), %rdx
callq *%rax
movl %eax, -0x4f8(%rbp)
cmpl $0x0, %eax
jne 0xc7ee5
movq -0x4d0(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xae540
callq 0xf6090
movl $0x7e, (%rax)
movq $0x0, -0x4c8(%rbp)
jmp 0xc7f2d
jmp 0xc7ee7
movq -0x4d8(%rbp), %rax
cmpq -0x508(%rbp), %rax
jb 0xc7e40
movl -0x4fc(%rbp), %ecx
movq -0x4e8(%rbp), %rax
movl %ecx, (%rax)
movq -0x510(%rbp), %rcx
movq -0x4f0(%rbp), %rax
movq %rcx, (%rax)
jmp 0xc7f1d
jmp 0xc7f1f
movq -0x518(%rbp), %rax
movq %rax, -0x4c8(%rbp)
movq -0x4c8(%rbp), %rax
movq %rax, -0x520(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xc7f5d
movq -0x520(%rbp), %rax
addq $0x520, %rsp # imm = 0x520
popq %rbp
retq
callq 0x2a270
nopw %cs:(%rax,%rax)
| _mi_find_last_pos:
push rbp
mov rbp, rsp
sub rsp, 520h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_4D0], rdi
mov [rbp+var_4D8], rsi
mov [rbp+var_4E0], rdx
mov [rbp+var_4E8], rcx
mov [rbp+var_4F0], r8
mov eax, [rbp+var_4FC]
mov [rbp+var_4FC], eax
mov [rbp+var_500], 2
mov rax, [rbp+var_4D8]
movzx eax, byte ptr [rax+1]
movzx eax, ax
mov rcx, [rbp+var_4D8]
movzx ecx, byte ptr [rcx]
movzx ecx, cx
shl ecx, 8
or eax, ecx
movzx eax, ax
and eax, 7FFFh
sub eax, [rbp+var_500]
mov [rbp+var_4F8], eax
mov ecx, [rbp+var_500]
mov rax, [rbp+var_4D8]
mov ecx, ecx
add rax, rcx
mov [rbp+var_4D8], rax
mov rax, [rbp+var_4D0]
movzx eax, word ptr [rax+0Ah]
and eax, 2Eh
cmp eax, 0
jnz loc_C7DF5
mov eax, [rbp+var_4F8]
mov rcx, [rbp+var_4D0]
movzx ecx, word ptr [rcx+12h]
xor edx, edx
div ecx
sub eax, 2
mov [rbp+var_4F4], eax
mov rax, [rbp+var_4D0]
movzx ecx, word ptr [rax+12h]
mov [rbp+var_4F8], ecx
mov rax, [rbp+var_4E8]
mov [rax], ecx
mov rax, [rbp+var_4D8]
mov ecx, [rbp+var_4F4]
imul ecx, [rbp+var_4F8]
mov ecx, ecx
add rax, rcx
mov [rbp+var_508], rax
mov rcx, [rbp+var_508]
mov eax, [rbp+var_4F8]
add rcx, rax
mov rax, [rbp+var_4F0]
mov [rax], rcx
mov rdi, [rbp+var_4E0]
mov rsi, [rbp+var_508]
mov eax, [rbp+var_4F8]
mov edx, eax
call _memcpy
mov rax, [rbp+var_508]
mov [rbp+var_4C8], rax
jmp loc_C7F2D
loc_C7DF5:
mov rax, [rbp+var_4D8]
mov ecx, [rbp+var_4F8]
add rax, rcx
mov ecx, [rbp+var_500]
mov edx, ecx
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov [rbp+var_508], rax
jmp short $+2
loc_C7E1E:
mov rax, [rbp+var_4E0]
mov byte ptr [rax], 0
mov [rbp+var_4F8], 0
mov rax, [rbp+var_4D8]
mov [rbp+var_510], rax
loc_C7E40:
mov rax, [rbp+var_510]
mov [rbp+var_518], rax
mov rax, [rbp+var_4D8]
mov [rbp+var_510], rax
mov eax, [rbp+var_4F8]
mov [rbp+var_4FC], eax
mov rdi, [rbp+var_4E0]
lea rsi, [rbp+var_4C0]
mov eax, [rbp+var_4F8]
mov edx, eax
call _memcpy
mov rax, [rbp+var_4D0]
mov rax, [rax+48h]
mov rdi, [rbp+var_4D0]
lea rcx, [rbp+var_4C0]
xor esi, esi
lea rdx, [rbp+var_4D8]
call rax
mov [rbp+var_4F8], eax
cmp eax, 0
jnz short loc_C7EE5
mov rax, [rbp+var_4D0]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_4C8], 0
jmp short loc_C7F2D
loc_C7EE5:
jmp short $+2
loc_C7EE7:
mov rax, [rbp+var_4D8]
cmp rax, [rbp+var_508]
jb loc_C7E40
mov ecx, [rbp+var_4FC]
mov rax, [rbp+var_4E8]
mov [rax], ecx
mov rcx, [rbp+var_510]
mov rax, [rbp+var_4F0]
mov [rax], rcx
jmp short $+2
loc_C7F1D:
jmp short $+2
loc_C7F1F:
mov rax, [rbp+var_518]
mov [rbp+var_4C8], rax
loc_C7F2D:
mov rax, [rbp+var_4C8]
mov [rbp+var_520], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_C7F5D
mov rax, [rbp+var_520]
add rsp, 520h
pop rbp
retn
loc_C7F5D:
call ___stack_chk_fail
| unsigned __int16 * mi_find_last_pos(
long long a1,
unsigned __int16 *a2,
_BYTE *a3,
unsigned int *a4,
unsigned __int16 **a5)
{
const char *v5; // rsi
unsigned __int16 *v7; // [rsp+8h] [rbp-518h]
unsigned __int16 *v8; // [rsp+10h] [rbp-510h]
char *v9; // [rsp+18h] [rbp-508h]
unsigned long long v10; // [rsp+18h] [rbp-508h]
unsigned int v11; // [rsp+24h] [rbp-4FCh]
unsigned int v12; // [rsp+28h] [rbp-4F8h]
unsigned int v13; // [rsp+28h] [rbp-4F8h]
unsigned int v14; // [rsp+28h] [rbp-4F8h]
unsigned int v15; // [rsp+2Ch] [rbp-4F4h]
unsigned __int16 *v19; // [rsp+48h] [rbp-4D8h] BYREF
long long v20; // [rsp+50h] [rbp-4D0h]
_BYTE v22[1208]; // [rsp+60h] [rbp-4C0h] BYREF
unsigned long long v23; // [rsp+518h] [rbp-8h]
v23 = __readfsqword(0x28u);
v20 = a1;
v19 = a2;
v12 = (_byteswap_ushort(*a2) & 0x7FFF) - 2;
v19 = a2 + 1;
if ( (*(_WORD *)(a1 + 10) & 0x2E) != 0 )
{
v10 = (unsigned long long)v19 + v12 - 2;
*a3 = 0;
v14 = 0;
v8 = v19;
do
{
v7 = v8;
v8 = v19;
v11 = v14;
memcpy(a3, v22, v14);
v14 = (*(long long ( **)(long long, _QWORD, unsigned __int16 **, _BYTE *))(v20 + 72))(v20, 0LL, &v19, v22);
if ( !v14 )
{
v5 = *(const char **)(*(_QWORD *)v20 + 616LL);
mi_report_error(126, (long long)v5);
*(_DWORD *)my_thread_var(126LL, v5) = 126;
return 0LL;
}
}
while ( (unsigned long long)v19 < v10 );
*a4 = v11;
*a5 = v8;
return v7;
}
else
{
v15 = v12 / *(unsigned __int16 *)(v20 + 18) - 2;
v13 = *(unsigned __int16 *)(v20 + 18);
*a4 = v13;
v9 = (char *)v19 + v13 * v15;
*a5 = (unsigned __int16 *)&v9[v13];
memcpy(a3, v9, v13);
return (unsigned __int16 *)v9;
}
}
| _mi_find_last_pos:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x520
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x4d0],RDI
MOV qword ptr [RBP + -0x4d8],RSI
MOV qword ptr [RBP + -0x4e0],RDX
MOV qword ptr [RBP + -0x4e8],RCX
MOV qword ptr [RBP + -0x4f0],R8
MOV EAX,dword ptr [RBP + -0x4fc]
MOV dword ptr [RBP + -0x4fc],EAX
MOV dword ptr [RBP + -0x500],0x2
MOV RAX,qword ptr [RBP + -0x4d8]
MOVZX EAX,byte ptr [RAX + 0x1]
MOVZX EAX,AX
MOV RCX,qword ptr [RBP + -0x4d8]
MOVZX ECX,byte ptr [RCX]
MOVZX ECX,CX
SHL ECX,0x8
OR EAX,ECX
MOVZX EAX,AX
AND EAX,0x7fff
SUB EAX,dword ptr [RBP + -0x500]
MOV dword ptr [RBP + -0x4f8],EAX
MOV ECX,dword ptr [RBP + -0x500]
MOV RAX,qword ptr [RBP + -0x4d8]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x4d8],RAX
MOV RAX,qword ptr [RBP + -0x4d0]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x2e
CMP EAX,0x0
JNZ 0x001c7df5
MOV EAX,dword ptr [RBP + -0x4f8]
MOV RCX,qword ptr [RBP + -0x4d0]
MOVZX ECX,word ptr [RCX + 0x12]
XOR EDX,EDX
DIV ECX
SUB EAX,0x2
MOV dword ptr [RBP + -0x4f4],EAX
MOV RAX,qword ptr [RBP + -0x4d0]
MOVZX ECX,word ptr [RAX + 0x12]
MOV dword ptr [RBP + -0x4f8],ECX
MOV RAX,qword ptr [RBP + -0x4e8]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x4d8]
MOV ECX,dword ptr [RBP + -0x4f4]
IMUL ECX,dword ptr [RBP + -0x4f8]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x508],RAX
MOV RCX,qword ptr [RBP + -0x508]
MOV EAX,dword ptr [RBP + -0x4f8]
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x4f0]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x4e0]
MOV RSI,qword ptr [RBP + -0x508]
MOV EAX,dword ptr [RBP + -0x4f8]
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x508]
MOV qword ptr [RBP + -0x4c8],RAX
JMP 0x001c7f2d
LAB_001c7df5:
MOV RAX,qword ptr [RBP + -0x4d8]
MOV ECX,dword ptr [RBP + -0x4f8]
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x500]
MOV EDX,ECX
XOR ECX,ECX
SUB RCX,RDX
ADD RAX,RCX
MOV qword ptr [RBP + -0x508],RAX
JMP 0x001c7e1e
LAB_001c7e1e:
MOV RAX,qword ptr [RBP + -0x4e0]
MOV byte ptr [RAX],0x0
MOV dword ptr [RBP + -0x4f8],0x0
MOV RAX,qword ptr [RBP + -0x4d8]
MOV qword ptr [RBP + -0x510],RAX
LAB_001c7e40:
MOV RAX,qword ptr [RBP + -0x510]
MOV qword ptr [RBP + -0x518],RAX
MOV RAX,qword ptr [RBP + -0x4d8]
MOV qword ptr [RBP + -0x510],RAX
MOV EAX,dword ptr [RBP + -0x4f8]
MOV dword ptr [RBP + -0x4fc],EAX
MOV RDI,qword ptr [RBP + -0x4e0]
LEA RSI,[RBP + -0x4c0]
MOV EAX,dword ptr [RBP + -0x4f8]
MOV EDX,EAX
CALL 0x0012a090
MOV RAX,qword ptr [RBP + -0x4d0]
MOV RAX,qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RBP + -0x4d0]
LEA RCX,[RBP + -0x4c0]
XOR ESI,ESI
LEA RDX,[RBP + -0x4d8]
CALL RAX
MOV dword ptr [RBP + -0x4f8],EAX
CMP EAX,0x0
JNZ 0x001c7ee5
MOV RAX,qword ptr [RBP + -0x4d0]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001ae540
CALL 0x001f6090
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x4c8],0x0
JMP 0x001c7f2d
LAB_001c7ee5:
JMP 0x001c7ee7
LAB_001c7ee7:
MOV RAX,qword ptr [RBP + -0x4d8]
CMP RAX,qword ptr [RBP + -0x508]
JC 0x001c7e40
MOV ECX,dword ptr [RBP + -0x4fc]
MOV RAX,qword ptr [RBP + -0x4e8]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x510]
MOV RAX,qword ptr [RBP + -0x4f0]
MOV qword ptr [RAX],RCX
JMP 0x001c7f1d
LAB_001c7f1d:
JMP 0x001c7f1f
LAB_001c7f1f:
MOV RAX,qword ptr [RBP + -0x518]
MOV qword ptr [RBP + -0x4c8],RAX
LAB_001c7f2d:
MOV RAX,qword ptr [RBP + -0x4c8]
MOV qword ptr [RBP + -0x520],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001c7f5d
MOV RAX,qword ptr [RBP + -0x520]
ADD RSP,0x520
POP RBP
RET
LAB_001c7f5d:
CALL 0x0012a270
|
byte * _mi_find_last_pos(long *param_1,byte *param_2,int1 *param_3,uint *param_4,
int8 *param_5)
{
ushort uVar1;
byte *pbVar2;
byte *pbVar3;
uint uVar4;
byte *pbVar5;
int4 *puVar6;
uint uVar7;
long in_FS_OFFSET;
byte *local_518;
uint local_500;
byte *local_4e0;
long *local_4d8;
byte *local_4d0;
int1 local_4c8 [1208];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
uVar4 = ((uint)param_2[1] | (*param_2 & 0x7f) << 8) - 2;
local_518 = param_2 + 2;
local_4e0 = local_518;
local_4d8 = param_1;
if ((*(ushort *)((long)param_1 + 10) & 0x2e) == 0) {
uVar1 = *(ushort *)((long)param_1 + 0x12);
uVar7 = (uint)*(ushort *)((long)param_1 + 0x12);
*param_4 = uVar7;
local_518 = local_518 + (uVar4 / uVar1 - 2) * uVar7;
*param_5 = local_518 + uVar7;
memcpy(param_3,local_518,(ulong)uVar7);
local_4d0 = local_518;
}
else {
pbVar5 = local_518 + ((ulong)uVar4 - 2);
*param_3 = 0;
local_500 = 0;
uVar4 = local_500;
do {
local_500 = uVar4;
pbVar3 = local_4e0;
pbVar2 = local_518;
local_518 = local_4e0;
memcpy(param_3,local_4c8,(ulong)local_500);
uVar4 = (*(code *)local_4d8[9])(local_4d8,0,&local_4e0,local_4c8);
if (uVar4 == 0) {
mi_report_error(0x7e,*(int8 *)(*local_4d8 + 0x268));
puVar6 = (int4 *)_my_thread_var();
*puVar6 = 0x7e;
local_4d0 = (byte *)0x0;
goto LAB_001c7f2d;
}
} while (local_4e0 < pbVar5);
*param_4 = local_500;
*param_5 = pbVar3;
local_4d0 = pbVar2;
}
LAB_001c7f2d:
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_4d0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
43,781 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const | monkey531[P]llama/common/minja.hpp | T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
} | O2 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x89d9e
testb %al, %al
je 0x9d090
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x826b0
movq %r14, %rdi
movq %r12, %rsi
callq 0x89a50
movq %rbx, %rdi
movq %rax, %rsi
callq 0x802f4
leaq 0x8(%rsp), %rdi
callq 0x7f6d2
jmp 0x9d09b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x26fd0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7f6d2
movq %rbx, %rdi
callq 0x27660
| _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_RKS7_S8_:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov r12, rcx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
mov rsi, rdx
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz short loc_9D090
lea r12, [rsp+78h+var_70]
mov rdi, r12
mov rsi, r15
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r14; this
mov rsi, r12; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rbx
mov rsi, rax
call _ZNK5minja5Value3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEET_v; minja::Value::get<std::string>(void)
lea rdi, [rsp+78h+var_70]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_9D09B
loc_9D090:
mov rdi, rbx
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&)
loc_9D09B:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| long long minja::Value::get<std::string>(long long a1, minja::Value *a2, long long a3, long long a4)
{
minja::Value *v6; // rax
_BYTE v8[112]; // [rsp+8h] [rbp-70h] BYREF
if ( minja::Value::contains((long long)a2) )
{
minja::Value::Value((long long)v8, a3);
v6 = (minja::Value *)minja::Value::at(a2, (const minja::Value *)v8);
minja::Value::get<std::string>(a1, v6);
minja::Value::~Value((minja::Value *)v8);
}
else
{
std::string::basic_string(a1, a4);
}
return a1;
}
| get<std::__cxx11::string>:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R12,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x00189d9e
TEST AL,AL
JZ 0x0019d090
LEA R12,[RSP + 0x8]
MOV RDI,R12
MOV RSI,R15
CALL 0x001826b0
LAB_0019d06e:
MOV RDI,R14
MOV RSI,R12
CALL 0x00189a50
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001802f4
LAB_0019d084:
LEA RDI,[RSP + 0x8]
CALL 0x0017f6d2
JMP 0x0019d09b
LAB_0019d090:
MOV RDI,RBX
MOV RSI,R12
CALL 0x00126fd0
LAB_0019d09b:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
/* std::__cxx11::string minja::Value::get<std::__cxx11::string >(std::__cxx11::string const&,
std::__cxx11::string) const */
string * minja::Value::get<std::__cxx11::string>
(string *param_1,string *param_2,string *param_3,string *param_4)
{
char cVar1;
Value local_70 [80];
cVar1 = contains(param_2);
if (cVar1 == '\0') {
std::__cxx11::string::string(param_1,param_4);
}
else {
Value(local_70,param_3);
/* try { // try from 0019d06e to 0019d083 has its CatchHandler @ 0019d0aa */
at((Value *)param_2,local_70);
get<std::__cxx11::string>();
~Value(local_70);
}
return param_1;
}
| |
43,782 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const | monkey531[P]llama/common/minja.hpp | T get(const std::string & key, T default_value) const {
if (!contains(key)) return default_value;
return at(key).get<T>();
} | O3 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> minja::Value::get<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0xb7818
testb %al, %al
je 0xd0c50
movq %rsp, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xae3b8
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb73ba
movq %rax, %rdi
callq 0xaa3e6
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x89876
movq %r14, %rdi
callq 0x8eb30
movq -0x8(%r14), %rdi
testq %rdi, %rdi
je 0xd0bfc
callq 0x516f8
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0xd0c0b
callq 0x516f8
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xd0c1a
callq 0x516f8
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xd0c50
movq 0x85355(%rip), %rax # 0x155f80
cmpb $0x0, (%rax)
je 0xd0c3b
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xd0c45
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xd0c50
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xaa35a
movq %rbx, %rdi
callq 0x1e660
| _ZNK5minja5Value3getIlEET_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES2_:
push r15
push r14
push rbx
sub rsp, 50h
mov rbx, rdx
mov r15, rsi
mov r14, rdi
call _ZNK5minja5Value8containsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::contains(std::string const&)
test al, al
jz loc_D0C50
mov rbx, rsp
mov rdi, rbx
mov rsi, r15
call _ZN5minja5ValueC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; minja::Value::Value(std::string const&)
mov rdi, r14; this
mov rsi, rbx; minja::Value *
call _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
mov rdi, rax
call _ZNK5minja5Value3getIlEET_v; minja::Value::get<long>(void)
mov rbx, rax
lea r14, [rsp+68h+var_28]
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, [r14-8]
test rdi, rdi
jz short loc_D0BFC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D0BFC:
mov rdi, [rsp+68h+var_40]
test rdi, rdi
jz short loc_D0C0B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D0C0B:
mov rdi, [rsp+68h+var_50]
test rdi, rdi
jz short loc_D0C1A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_D0C1A:
mov rdi, [rsp+68h+var_60]
test rdi, rdi
jz short loc_D0C50
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_D0C3B
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_D0C45
loc_D0C3B:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_D0C45:
cmp eax, 1
jnz short loc_D0C50
mov rax, [rdi]
call qword ptr [rax+18h]
loc_D0C50:
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, rbx
call __Unwind_Resume
| long long minja::Value::get<long>(minja::Value *this, long long a2, long long a3)
{
unsigned long long v4; // rax
long long v5; // rdi
signed __int32 v6; // eax
long long v8; // [rsp+0h] [rbp-68h] BYREF
long long v9; // [rsp+8h] [rbp-60h]
volatile signed __int32 *v10; // [rsp+18h] [rbp-50h]
volatile signed __int32 *v11; // [rsp+28h] [rbp-40h]
volatile signed __int32 *v12; // [rsp+38h] [rbp-30h]
char v13[40]; // [rsp+40h] [rbp-28h] BYREF
if ( minja::Value::contains((long long)this, a2) )
{
minja::Value::Value((long long)&v8, a2);
v4 = minja::Value::at(this, (const minja::Value *)&v8);
a3 = minja::Value::get<long>(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(v13);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v13);
if ( v12 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v12);
if ( v11 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v11);
if ( v10 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v10);
v5 = v9;
if ( v9 )
{
if ( _libc_single_threaded )
{
v6 = *(_DWORD *)(v9 + 12);
*(_DWORD *)(v9 + 12) = v6 - 1;
}
else
{
v6 = _InterlockedExchangeAdd((volatile signed __int32 *)(v9 + 12), 0xFFFFFFFF);
}
if ( v6 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v5 + 24LL))(v5, 0LL);
}
}
return a3;
}
| get<long>:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV RBX,RDX
MOV R15,RSI
MOV R14,RDI
CALL 0x001b7818
TEST AL,AL
JZ 0x001d0c50
MOV RBX,RSP
MOV RDI,RBX
MOV RSI,R15
CALL 0x001ae3b8
LAB_001d0bc1:
MOV RDI,R14
MOV RSI,RBX
CALL 0x001b73ba
MOV RDI,RAX
CALL 0x001aa3e6
LAB_001d0bd4:
MOV RBX,RAX
LEA R14,[RSP + 0x40]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00189876
MOV RDI,R14
CALL 0x0018eb30
MOV RDI,qword ptr [R14 + -0x8]
TEST RDI,RDI
JZ 0x001d0bfc
CALL 0x001516f8
LAB_001d0bfc:
MOV RDI,qword ptr [RSP + 0x28]
TEST RDI,RDI
JZ 0x001d0c0b
CALL 0x001516f8
LAB_001d0c0b:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x001d0c1a
CALL 0x001516f8
LAB_001d0c1a:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x001d0c50
MOV RAX,qword ptr [0x00255f80]
CMP byte ptr [RAX],0x0
JZ 0x001d0c3b
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001d0c45
LAB_001d0c3b:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001d0c45:
CMP EAX,0x1
JNZ 0x001d0c50
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001d0c50:
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
|
/* long minja::Value::get<long>(std::__cxx11::string const&, long) const */
long __thiscall minja::Value::get<long>(Value *this,string *param_1,long param_2)
{
int *piVar1;
char cVar2;
int iVar3;
Value *this_00;
Value aVStack_68 [8];
long *local_60;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30;
data local_28 [16];
cVar2 = contains(this,param_1);
if (cVar2 != '\0') {
Value(aVStack_68,param_1);
/* try { // try from 001d0bc1 to 001d0bd3 has its CatchHandler @ 001d0c5d */
this_00 = (Value *)at(this,aVStack_68);
param_2 = get<long>(this_00);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::assert_invariant(SUB81(local_28,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_28);
if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30);
}
if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40);
}
if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50);
}
if (local_60 != (long *)0x0) {
if (*PTR___libc_single_threaded_00255f80 == '\0') {
LOCK();
piVar1 = (int *)((long)local_60 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_60 + 0xc);
*(int *)((long)local_60 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_60 + 0x18))();
}
}
}
return param_2;
}
| |
43,783 | GL_MeshingTask::GL_MeshingTask(entt::entity, glm::vec<3, int, (glm::qualifier)0> const&) | untodesu[P]voxelius/game/client/chunk_mesher.cc | GL_MeshingTask::GL_MeshingTask(entt::entity entity, const chunk_pos &cpos)
{
m_entity = entity;
m_cpos = cpos;
cache_chunk(m_cpos);
cache_chunk(m_cpos + DIR_NORTH<chunk_pos::value_type>);
cache_chunk(m_cpos + DIR_SOUTH<chunk_pos::value_type>);
cache_chunk(m_cpos + DIR_EAST<chunk_pos::value_type>);
cache_chunk(m_cpos + DIR_WEST<chunk_pos::value_type>);
cache_chunk(m_cpos + DIR_DOWN<chunk_pos::value_type>);
cache_chunk(m_cpos + DIR_UP<chunk_pos::value_type>);
} | O2 | cpp | GL_MeshingTask::GL_MeshingTask(entt::entity, glm::vec<3, int, (glm::qualifier)0> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
leaq 0x21485a(%rip), %rax # 0x2493c8
movq %rax, (%rdi)
movups %xmm0, 0xe020(%rdi)
movups %xmm0, 0xe030(%rdi)
movups %xmm0, 0xe040(%rdi)
movl %esi, 0xe050(%rdi)
leaq 0xe054(%rdi), %r14
movq (%rdx), %rax
movq %rax, 0xe054(%rdi)
movl 0x8(%rdx), %eax
movl %eax, 0xe05c(%rdi)
movq %r14, %rsi
callq 0x34cb2
leaq 0x13938b(%rip), %rsi # 0x16df40
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
leaq 0x139377(%rip), %rsi # 0x16df4c
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
leaq 0x139363(%rip), %rsi # 0x16df58
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
leaq 0x13934f(%rip), %rsi # 0x16df64
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
leaq 0x13933b(%rip), %rsi # 0x16df70
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
leaq 0x139327(%rip), %rsi # 0x16df7c
movq %r14, %rdi
callq 0x35d6a
movq %rsp, %rsi
movq %rax, (%rsi)
movl %edx, 0x8(%rsi)
movq %rbx, %rdi
callq 0x34cb2
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x34c84
jmp 0x34c84
jmp 0x34c84
jmp 0x34c84
jmp 0x34c84
jmp 0x34c84
movq %rax, %r14
leaq 0xe020(%rbx), %r15
leaq 0xe038(%rbx), %rdi
callq 0x35d82
movq %r15, %rdi
callq 0x35d82
movq %rbx, %rdi
callq 0x361c4
movq %r14, %rdi
callq 0x27040
| _ZN14GL_MeshingTaskC2EN4entt6entityERKN3glm3vecILi3EiLNS2_9qualifierE0EEE:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi+10h], xmm0
lea rax, off_2493C8
mov [rdi], rax
movups xmmword ptr [rdi+0E020h], xmm0
movups xmmword ptr [rdi+0E030h], xmm0
movups xmmword ptr [rdi+0E040h], xmm0
mov [rdi+0E050h], esi
lea r14, [rdi+0E054h]
mov rax, [rdx]
mov [rdi+0E054h], rax
mov eax, [rdx+8]
mov [rdi+0E05Ch], eax
mov rsi, r14
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL9DIR_NORTHIiE; DIR_NORTH<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL9DIR_SOUTHIiE; DIR_SOUTH<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL8DIR_EASTIiE; DIR_EAST<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL8DIR_WESTIiE; DIR_WEST<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL8DIR_DOWNIiE; DIR_DOWN<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
lea rsi, _ZL6DIR_UPIiE; DIR_UP<int>
mov rdi, r14
call _ZN3glmplIiLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_; glm::operator+<int,(glm::qualifier)0>(glm::vec<3,int,(glm::qualifier)0> const&,glm::vec<3,int,(glm::qualifier)0> const&)
mov rsi, rsp
mov [rsi], rax
mov [rsi+8], edx
mov rdi, rbx
call _ZN14GL_MeshingTask11cache_chunkERKN3glm3vecILi3EiLNS0_9qualifierE0EEE; GL_MeshingTask::cache_chunk(glm::vec<3,int,(glm::qualifier)0> const&)
add rsp, 10h
pop rbx
pop r14
pop r15
retn
jmp short loc_34C84
jmp short loc_34C84
jmp short loc_34C84
jmp short loc_34C84
jmp short loc_34C84
jmp short $+2
loc_34C84:
mov r14, rax
lea r15, [rbx+0E020h]
lea rdi, [rbx+0E038h]
call _ZNSt6vectorIS_ISt5arrayIjLm2EESaIS1_EESaIS3_EED2Ev; std::vector<std::vector<std::array<uint,2ul>>>::~vector()
mov rdi, r15
call _ZNSt6vectorIS_ISt5arrayIjLm2EESaIS1_EESaIS3_EED2Ev; std::vector<std::vector<std::array<uint,2ul>>>::~vector()
mov rdi, rbx; this
call _ZN4TaskD2Ev; Task::~Task()
mov rdi, r14
call __Unwind_Resume
| long long GL_MeshingTask::GL_MeshingTask(long long a1, int a2, long long a3)
{
int v3; // edx
int v4; // edx
int v5; // edx
int v6; // edx
int v7; // edx
int v8; // edx
long long v10; // [rsp+0h] [rbp-28h] BYREF
int v11; // [rsp+8h] [rbp-20h]
*(_OWORD *)(a1 + 16) = 0LL;
*(_QWORD *)a1 = off_2493C8;
*(_OWORD *)(a1 + 57376) = 0LL;
*(_OWORD *)(a1 + 57392) = 0LL;
*(_OWORD *)(a1 + 57408) = 0LL;
*(_DWORD *)(a1 + 57424) = a2;
*(_QWORD *)(a1 + 57428) = *(_QWORD *)a3;
*(_DWORD *)(a1 + 57436) = *(_DWORD *)(a3 + 8);
GL_MeshingTask::cache_chunk(a1, a1 + 57428);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_NORTH<int>);
v11 = v3;
GL_MeshingTask::cache_chunk(a1, &v10);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_SOUTH<int>);
v11 = v4;
GL_MeshingTask::cache_chunk(a1, &v10);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_EAST<int>);
v11 = v5;
GL_MeshingTask::cache_chunk(a1, &v10);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_WEST<int>);
v11 = v6;
GL_MeshingTask::cache_chunk(a1, &v10);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_DOWN<int>);
v11 = v7;
GL_MeshingTask::cache_chunk(a1, &v10);
v10 = glm::operator+<int,(glm::qualifier)0>(a1 + 57428, &DIR_UP<int>);
v11 = v8;
return GL_MeshingTask::cache_chunk(a1, &v10);
}
| GL_MeshingTask:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
LEA RAX,[0x3493c8]
MOV qword ptr [RDI],RAX
MOVUPS xmmword ptr [RDI + 0xe020],XMM0
MOVUPS xmmword ptr [RDI + 0xe030],XMM0
MOVUPS xmmword ptr [RDI + 0xe040],XMM0
MOV dword ptr [RDI + 0xe050],ESI
LEA R14,[RDI + 0xe054]
MOV RAX,qword ptr [RDX]
MOV qword ptr [RDI + 0xe054],RAX
MOV EAX,dword ptr [RDX + 0x8]
MOV dword ptr [RDI + 0xe05c],EAX
LAB_00134ba6:
MOV RSI,R14
CALL 0x00134cb2
LAB_00134bae:
LEA RSI,[0x26df40]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134bce:
LEA RSI,[0x26df4c]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134bee:
LEA RSI,[0x26df58]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134c0e:
LEA RSI,[0x26df64]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134c2e:
LEA RSI,[0x26df70]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134c4e:
LEA RSI,[0x26df7c]
MOV RDI,R14
CALL 0x00135d6a
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV dword ptr [RSI + 0x8],EDX
MOV RDI,RBX
CALL 0x00134cb2
LAB_00134c6e:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* GL_MeshingTask::GL_MeshingTask(entt::entity, glm::vec<3, int, (glm::qualifier)0> const&) */
void __thiscall
GL_MeshingTask::GL_MeshingTask(GL_MeshingTask *this,int4 param_2,int8 *param_3)
{
vec_conflict *pvVar1;
int1 auVar2 [12];
vec_conflict local_28 [16];
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int ***)this = &PTR__GL_MeshingTask_003493c8;
*(int8 *)(this + 0xe020) = 0;
*(int8 *)(this + 0xe028) = 0;
*(int8 *)(this + 0xe030) = 0;
*(int8 *)(this + 0xe038) = 0;
*(int8 *)(this + 0xe040) = 0;
*(int8 *)(this + 0xe048) = 0;
*(int4 *)(this + 0xe050) = param_2;
pvVar1 = (vec_conflict *)(this + 0xe054);
*(int8 *)(this + 0xe054) = *param_3;
*(int4 *)(this + 0xe05c) = *(int4 *)(param_3 + 1);
/* try { // try from 00134ba6 to 00134bad has its CatchHandler @ 00134c78 */
cache_chunk(this,pvVar1);
/* try { // try from 00134bae to 00134bcd has its CatchHandler @ 00134c84 */
local_28._0_12_ = glm::operator+(pvVar1,(vec_conflict *)DIR_NORTH<int>);
cache_chunk(this,local_28);
/* try { // try from 00134bce to 00134bed has its CatchHandler @ 00134c82 */
auVar2 = glm::operator+(pvVar1,(vec_conflict *)DIR_SOUTH<int>);
local_28._0_12_ = auVar2;
cache_chunk(this,local_28);
/* try { // try from 00134bee to 00134c0d has its CatchHandler @ 00134c80 */
auVar2 = glm::operator+(pvVar1,(vec_conflict *)DIR_EAST<int>);
local_28._0_12_ = auVar2;
cache_chunk(this,local_28);
/* try { // try from 00134c0e to 00134c2d has its CatchHandler @ 00134c7e */
auVar2 = glm::operator+(pvVar1,(vec_conflict *)DIR_WEST<int>);
local_28._0_12_ = auVar2;
cache_chunk(this,local_28);
/* try { // try from 00134c2e to 00134c4d has its CatchHandler @ 00134c7c */
auVar2 = glm::operator+(pvVar1,(vec_conflict *)DIR_DOWN<int>);
local_28._0_12_ = auVar2;
cache_chunk(this,local_28);
/* try { // try from 00134c4e to 00134c6d has its CatchHandler @ 00134c7a */
auVar2 = glm::operator+(pvVar1,(vec_conflict *)DIR_UP<int>);
local_28._0_12_ = auVar2;
cache_chunk(this,local_28);
return;
}
| |
43,784 | thr_reschedule_write_lock | eloqsql/mysys/thr_lock.c | my_bool thr_reschedule_write_lock(THR_LOCK_DATA *data,
ulong lock_wait_timeout)
{
THR_LOCK *lock=data->lock;
enum thr_lock_type write_lock_type;
DBUG_ENTER("thr_reschedule_write_lock");
mysql_mutex_lock(&lock->mutex);
if (!lock->read_wait.data) /* No waiting read locks */
{
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(0);
}
write_lock_type= data->type;
data->type=TL_WRITE_DELAYED;
if (lock->update_status)
(*lock->update_status)(data->status_param);
if (((*data->prev)=data->next)) /* remove from lock-list */
data->next->prev= data->prev;
else
lock->write.last=data->prev;
if ((data->next=lock->write_wait.data)) /* Put first in lock_list */
data->next->prev= &data->next;
else
lock->write_wait.last= &data->next;
data->prev= &lock->write_wait.data;
data->cond=get_cond(); /* This was zero */
lock->write_wait.data=data;
free_all_read_locks(lock,0);
mysql_mutex_unlock(&lock->mutex);
DBUG_RETURN(thr_upgrade_write_delay_lock(data, write_lock_type,
lock_wait_timeout));
} | O0 | c | thr_reschedule_write_lock:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
leaq 0x5a9fe(%rip), %rsi # 0x153519
movl $0x5de, %edx # imm = 0x5DE
callq 0xf6e30
movq -0x20(%rbp), %rax
cmpq $0x0, 0x60(%rax)
jne 0xf8b46
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
callq 0xf6ea0
movb $0x0, -0x1(%rbp)
jmp 0xf8c5f
movq -0x10(%rbp), %rax
movl 0x40(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movl $0x9, 0x40(%rax)
movq -0x20(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0xf8b7e
movq -0x20(%rbp), %rax
movq 0xc0(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0xf8bad
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xf8bc0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x20(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x10(%rbp), %rcx
movq %rax, 0x8(%rcx)
cmpq $0x0, %rax
je 0xf8bef
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rcx, 0x10(%rax)
jmp 0xf8c02
movq -0x10(%rbp), %rcx
addq $0x8, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x20(%rbp), %rcx
addq $0x80, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
callq 0xf8c70
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x80(%rax)
movq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xf8c80
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
callq 0xf6ea0
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xf8570
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| thr_reschedule_write_lock:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
add rdi, 18h
lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 5DEh
call inline_mysql_mutex_lock_27
mov rax, [rbp+var_20]
cmp qword ptr [rax+60h], 0
jnz short loc_F8B46
mov rdi, [rbp+var_20]
add rdi, 18h
call inline_mysql_mutex_unlock_28
mov [rbp+var_1], 0
jmp loc_F8C5F
loc_F8B46:
mov rax, [rbp+var_10]
mov eax, [rax+40h]
mov [rbp+var_24], eax
mov rax, [rbp+var_10]
mov dword ptr [rax+40h], 9
mov rax, [rbp+var_20]
cmp qword ptr [rax+0C0h], 0
jz short loc_F8B7E
mov rax, [rbp+var_20]
mov rax, [rax+0C0h]
mov rcx, [rbp+var_10]
mov rdi, [rcx+28h]
call rax
loc_F8B7E:
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov rcx, [rbp+var_10]
mov rcx, [rcx+10h]
mov [rcx], rax
cmp rax, 0
jz short loc_F8BAD
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_F8BC0
loc_F8BAD:
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_20]
mov [rax+98h], rcx
loc_F8BC0:
mov rax, [rbp+var_20]
mov rax, [rax+80h]
mov rcx, [rbp+var_10]
mov [rcx+8], rax
cmp rax, 0
jz short loc_F8BEF
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rax+10h], rcx
jmp short loc_F8C02
loc_F8BEF:
mov rcx, [rbp+var_10]
add rcx, 8
mov rax, [rbp+var_20]
mov [rax+88h], rcx
loc_F8C02:
mov rcx, [rbp+var_20]
add rcx, 80h
mov rax, [rbp+var_10]
mov [rax+10h], rcx
call get_cond
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax+80h], rcx
mov rdi, [rbp+var_20]
xor esi, esi
call free_all_read_locks
mov rdi, [rbp+var_20]
add rdi, 18h
call inline_mysql_mutex_unlock_28
mov rdi, [rbp+var_10]
mov esi, [rbp+var_24]
mov rdx, [rbp+var_18]
call thr_upgrade_write_delay_lock
mov [rbp+var_1], al
loc_F8C5F:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char thr_reschedule_write_lock(long long a1, long long a2)
{
long long v2; // rax
long long v3; // rax
int v5; // [rsp+Ch] [rbp-24h]
long long v6; // [rsp+10h] [rbp-20h]
v6 = *(_QWORD *)(a1 + 24);
inline_mysql_mutex_lock_27(v6 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x5DEu);
if ( *(_QWORD *)(v6 + 96) )
{
v5 = *(_DWORD *)(a1 + 64);
*(_DWORD *)(a1 + 64) = 9;
if ( *(_QWORD *)(v6 + 192) )
(*(void ( **)(_QWORD))(v6 + 192))(*(_QWORD *)(a1 + 40));
v2 = *(_QWORD *)(a1 + 8);
**(_QWORD **)(a1 + 16) = v2;
if ( v2 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16);
else
*(_QWORD *)(v6 + 152) = *(_QWORD *)(a1 + 16);
v3 = *(_QWORD *)(v6 + 128);
*(_QWORD *)(a1 + 8) = v3;
if ( v3 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = a1 + 8;
else
*(_QWORD *)(v6 + 136) = a1 + 8;
*(_QWORD *)(a1 + 16) = v6 + 128;
*(_QWORD *)(a1 + 32) = get_cond();
*(_QWORD *)(v6 + 128) = a1;
free_all_read_locks(v6, 0LL);
inline_mysql_mutex_unlock_28(v6 + 24);
return thr_upgrade_write_delay_lock(a1, v5, a2);
}
else
{
inline_mysql_mutex_unlock_28(v6 + 24);
return 0;
}
}
| thr_reschedule_write_lock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
LEA RSI,[0x253519]
MOV EDX,0x5de
CALL 0x001f6e30
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0x60],0x0
JNZ 0x001f8b46
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
CALL 0x001f6ea0
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001f8c5f
LAB_001f8b46:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x40]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x40],0x9
MOV RAX,qword ptr [RBP + -0x20]
CMP qword ptr [RAX + 0xc0],0x0
JZ 0x001f8b7e
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RCX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RCX + 0x28]
CALL RAX
LAB_001f8b7e:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x001f8bad
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001f8bc0
LAB_001f8bad:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x98],RCX
LAB_001f8bc0:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x80]
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x8],RAX
CMP RAX,0x0
JZ 0x001f8bef
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x001f8c02
LAB_001f8bef:
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,0x8
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x88],RCX
LAB_001f8c02:
MOV RCX,qword ptr [RBP + -0x20]
ADD RCX,0x80
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
CALL 0x001f8c70
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x80],RCX
MOV RDI,qword ptr [RBP + -0x20]
XOR ESI,ESI
CALL 0x001f8c80
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x18
CALL 0x001f6ea0
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x24]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001f8570
MOV byte ptr [RBP + -0x1],AL
LAB_001f8c5f:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1 thr_reschedule_write_lock(long param_1,int8 param_2)
{
int4 uVar1;
long lVar2;
long lVar3;
int8 uVar4;
int1 local_9;
lVar2 = *(long *)(param_1 + 0x18);
inline_mysql_mutex_lock
(lVar2 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x5de);
if (*(long *)(lVar2 + 0x60) == 0) {
inline_mysql_mutex_unlock(lVar2 + 0x18);
local_9 = 0;
}
else {
uVar1 = *(int4 *)(param_1 + 0x40);
*(int4 *)(param_1 + 0x40) = 9;
if (*(long *)(lVar2 + 0xc0) != 0) {
(**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28));
}
lVar3 = *(long *)(param_1 + 8);
**(long **)(param_1 + 0x10) = lVar3;
if (lVar3 == 0) {
*(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10);
}
else {
*(int8 *)(*(long *)(param_1 + 8) + 0x10) = *(int8 *)(param_1 + 0x10);
}
lVar3 = *(long *)(lVar2 + 0x80);
*(long *)(param_1 + 8) = lVar3;
if (lVar3 == 0) {
*(long *)(lVar2 + 0x88) = param_1 + 8;
}
else {
*(long *)(*(long *)(param_1 + 8) + 0x10) = param_1 + 8;
}
*(long *)(param_1 + 0x10) = lVar2 + 0x80;
uVar4 = get_cond();
*(int8 *)(param_1 + 0x20) = uVar4;
*(long *)(lVar2 + 0x80) = param_1;
free_all_read_locks(lVar2,0);
inline_mysql_mutex_unlock(lVar2 + 0x18);
local_9 = thr_upgrade_write_delay_lock(param_1,uVar1,param_2);
}
return local_9;
}
| |
43,785 | my_strntoull_8bit | eloqsql/strings/ctype-simple.c | ulonglong my_strntoull_8bit(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative;
register ulonglong cutoff;
register uint cutlim;
register ulonglong i;
register const char *s, *e;
const char *save;
int overflow;
*err= 0; /* Initialize error indicator */
s = nptr;
e = nptr+l;
for(; s<e && my_isspace(cs,*s); s++);
if (s == e)
{
goto noconv;
}
if (*s == '-')
{
negative = 1;
++s;
}
else if (*s == '+')
{
negative = 0;
++s;
}
else
negative = 0;
save = s;
cutoff = (~(ulonglong) 0) / (unsigned long int) base;
cutlim = (uint) ((~(ulonglong) 0) % (unsigned long int) base);
overflow = 0;
i = 0;
for ( ; s != e; s++)
{
register uchar c= *s;
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
if (c >= base)
break;
if (i > cutoff || (i == cutoff && c > cutlim))
overflow = 1;
else
{
i *= (ulonglong) base;
i += c;
}
}
if (s == save)
goto noconv;
if (endptr != NULL)
*endptr = (char *) s;
if (overflow)
{
err[0]= ERANGE;
return (~(ulonglong) 0);
}
return (negative ? -((longlong) i) : (longlong) i);
noconv:
err[0]= EDOM;
if (endptr != NULL)
*endptr = (char *) nptr;
return 0L;
} | O3 | c | my_strntoull_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x0, (%r9)
leaq (%rsi,%rdx), %r11
movq %rsi, %r10
testq %rdx, %rdx
jle 0x4b505
movq 0x40(%rdi), %rax
movq %rsi, %r10
movzbl (%r10), %edx
testb $0x8, 0x1(%rax,%rdx)
je 0x4b505
incq %r10
cmpq %r11, %r10
jb 0x4b4f2
cmpq %r11, %r10
je 0x4b5ed
movb (%r10), %dil
leal -0x2b(%rdi), %eax
andb $-0x3, %al
cmpb $0x1, %al
adcq $0x0, %r10
movslq %ecx, %rbx
movq $-0x1, %rax
xorl %edx, %edx
movq %rbx, -0x38(%rbp)
divq %rbx
xorl %r12d, %r12d
cmpq %r11, %r10
je 0x4b5ca
movq %rdi, -0x30(%rbp)
movq %r10, %r14
xorl %r15d, %r15d
movq %r15, %rdi
movl %r12d, %r13d
movb (%r14), %r12b
leal -0x30(%r12), %ebx
cmpb $0xa, %bl
jb 0x4b579
leal -0x41(%r12), %ebx
cmpb $0x19, %bl
ja 0x4b568
addb $-0x37, %r12b
jmp 0x4b576
leal -0x61(%r12), %ebx
cmpb $0x19, %bl
ja 0x4b5b8
addb $-0x57, %r12b
movl %r12d, %ebx
movzbl %bl, %ebx
cmpl %ecx, %ebx
jge 0x4b5b8
movl $0x1, %r12d
cmpq %rax, %rdi
jbe 0x4b590
movq %rdi, %r15
jmp 0x4b5a7
jne 0x4b599
movq %rax, %r15
cmpl %edx, %ebx
ja 0x4b5a7
imulq -0x38(%rbp), %rdi
movl %ebx, %r15d
addq %rdi, %r15
movl %r13d, %r12d
incq %r14
cmpq %r11, %r14
jne 0x4b545
movq %r15, %rdi
movq %r11, %r14
movl %r12d, %r13d
testl %r13d, %r13d
sete %al
movq %rdi, %r12
movq %r14, %r11
movq -0x30(%rbp), %rdi
jmp 0x4b5cc
movb $0x1, %al
cmpq %r10, %r11
je 0x4b5ed
testq %r8, %r8
je 0x4b5d9
movq %r11, (%r8)
testb %al, %al
je 0x4b600
movq %r12, %rax
negq %rax
cmpb $0x2d, %dil
cmovneq %r12, %rax
jmp 0x4b60e
movl $0x21, (%r9)
testq %r8, %r8
je 0x4b5fc
movq %rsi, (%r8)
xorl %eax, %eax
jmp 0x4b60e
movl $0x22, (%r9)
movq $-0x1, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strntoull_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov dword ptr [r9], 0
lea r11, [rsi+rdx]
mov r10, rsi
test rdx, rdx
jle short loc_4B505
mov rax, [rdi+40h]
mov r10, rsi
loc_4B4F2:
movzx edx, byte ptr [r10]
test byte ptr [rax+rdx+1], 8
jz short loc_4B505
inc r10
cmp r10, r11
jb short loc_4B4F2
loc_4B505:
cmp r10, r11
jz loc_4B5ED
mov dil, [r10]
lea eax, [rdi-2Bh]
and al, 0FDh
cmp al, 1
adc r10, 0
movsxd rbx, ecx
mov rax, 0FFFFFFFFFFFFFFFFh
xor edx, edx
mov [rbp+var_38], rbx
div rbx
xor r12d, r12d
cmp r10, r11
jz loc_4B5CA
mov [rbp+var_30], rdi
mov r14, r10
xor r15d, r15d
loc_4B545:
mov rdi, r15
mov r13d, r12d
mov r12b, [r14]
lea ebx, [r12-30h]
cmp bl, 0Ah
jb short loc_4B579
lea ebx, [r12-41h]
cmp bl, 19h
ja short loc_4B568
add r12b, 0C9h
jmp short loc_4B576
loc_4B568:
lea ebx, [r12-61h]
cmp bl, 19h
ja short loc_4B5B8
add r12b, 0A9h
loc_4B576:
mov ebx, r12d
loc_4B579:
movzx ebx, bl
cmp ebx, ecx
jge short loc_4B5B8
mov r12d, 1
cmp rdi, rax
jbe short loc_4B590
mov r15, rdi
jmp short loc_4B5A7
loc_4B590:
jnz short loc_4B599
mov r15, rax
cmp ebx, edx
ja short loc_4B5A7
loc_4B599:
imul rdi, [rbp+var_38]
mov r15d, ebx
add r15, rdi
mov r12d, r13d
loc_4B5A7:
inc r14
cmp r14, r11
jnz short loc_4B545
mov rdi, r15
mov r14, r11
mov r13d, r12d
loc_4B5B8:
test r13d, r13d
setz al
mov r12, rdi
mov r11, r14
mov rdi, [rbp+var_30]
jmp short loc_4B5CC
loc_4B5CA:
mov al, 1
loc_4B5CC:
cmp r11, r10
jz short loc_4B5ED
test r8, r8
jz short loc_4B5D9
mov [r8], r11
loc_4B5D9:
test al, al
jz short loc_4B600
mov rax, r12
neg rax
cmp dil, 2Dh ; '-'
cmovnz rax, r12
jmp short loc_4B60E
loc_4B5ED:
mov dword ptr [r9], 21h ; '!'
test r8, r8
jz short loc_4B5FC
mov [r8], rsi
loc_4B5FC:
xor eax, eax
jmp short loc_4B60E
loc_4B600:
mov dword ptr [r9], 22h ; '"'
mov rax, 0FFFFFFFFFFFFFFFFh
loc_4B60E:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strntoull_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
int a4,
unsigned __int8 **a5,
_DWORD *a6)
{
unsigned __int8 *v6; // r11
unsigned __int8 *v7; // r10
unsigned __int8 v8; // di
unsigned __int8 *v9; // r10
unsigned long long v10; // rax
unsigned long long v11; // r12
unsigned __int8 *v12; // r14
unsigned long long v13; // r15
unsigned long long v14; // rdi
int v15; // r13d
unsigned __int8 v16; // r12
unsigned __int8 v17; // bl
unsigned __int8 v18; // r12
bool v19; // al
long long result; // rax
unsigned __int8 v21; // [rsp+8h] [rbp-30h]
*a6 = 0;
v6 = &a2[a3];
v7 = a2;
if ( a3 > 0 )
{
v7 = a2;
do
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 )
break;
++v7;
}
while ( v7 < v6 );
}
if ( v7 == v6 )
goto LABEL_30;
v8 = *v7;
v9 = &v7[((*v7 - 43) & 0xFD) == 0];
v10 = 0xFFFFFFFFFFFFFFFFLL / a4;
v11 = 0LL;
if ( v9 == v6 )
{
v19 = 1;
}
else
{
v21 = v8;
v12 = v9;
v13 = 0LL;
while ( 1 )
{
v14 = v13;
v15 = v11;
v16 = *v12;
v17 = *v12 - 48;
if ( v17 >= 0xAu )
{
if ( (unsigned __int8)(v16 - 65) > 0x19u )
{
if ( (unsigned __int8)(v16 - 97) > 0x19u )
break;
v18 = v16 - 87;
}
else
{
v18 = v16 - 55;
}
v17 = v18;
}
if ( v17 >= a4 )
break;
LODWORD(v11) = 1;
if ( v13 <= v10 )
{
if ( v13 != v10 || (v13 = 0xFFFFFFFFFFFFFFFFLL / a4, v17 <= (unsigned int)(0xFFFFFFFFFFFFFFFFLL % a4)) )
{
v13 = a4 * v14 + v17;
LODWORD(v11) = v15;
}
}
if ( ++v12 == v6 )
{
v14 = v13;
v12 = &a2[a3];
v15 = v11;
break;
}
}
v19 = v15 == 0;
v11 = v14;
v6 = v12;
v8 = v21;
}
if ( v6 == v9 )
{
LABEL_30:
*a6 = 33;
if ( a5 )
*a5 = a2;
return 0LL;
}
else
{
if ( a5 )
*a5 = v6;
if ( v19 )
{
result = -(long long)v11;
if ( v8 != 45 )
return v11;
}
else
{
*a6 = 34;
return -1LL;
}
}
return result;
}
| my_strntoull_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV dword ptr [R9],0x0
LEA R11,[RSI + RDX*0x1]
MOV R10,RSI
TEST RDX,RDX
JLE 0x0014b505
MOV RAX,qword ptr [RDI + 0x40]
MOV R10,RSI
LAB_0014b4f2:
MOVZX EDX,byte ptr [R10]
TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8
JZ 0x0014b505
INC R10
CMP R10,R11
JC 0x0014b4f2
LAB_0014b505:
CMP R10,R11
JZ 0x0014b5ed
MOV DIL,byte ptr [R10]
LEA EAX,[RDI + -0x2b]
AND AL,0xfd
CMP AL,0x1
ADC R10,0x0
MOVSXD RBX,ECX
MOV RAX,-0x1
XOR EDX,EDX
MOV qword ptr [RBP + -0x38],RBX
DIV RBX
XOR R12D,R12D
CMP R10,R11
JZ 0x0014b5ca
MOV qword ptr [RBP + -0x30],RDI
MOV R14,R10
XOR R15D,R15D
LAB_0014b545:
MOV RDI,R15
MOV R13D,R12D
MOV R12B,byte ptr [R14]
LEA EBX,[R12 + -0x30]
CMP BL,0xa
JC 0x0014b579
LEA EBX,[R12 + -0x41]
CMP BL,0x19
JA 0x0014b568
ADD R12B,0xc9
JMP 0x0014b576
LAB_0014b568:
LEA EBX,[R12 + -0x61]
CMP BL,0x19
JA 0x0014b5b8
ADD R12B,0xa9
LAB_0014b576:
MOV EBX,R12D
LAB_0014b579:
MOVZX EBX,BL
CMP EBX,ECX
JGE 0x0014b5b8
MOV R12D,0x1
CMP RDI,RAX
JBE 0x0014b590
MOV R15,RDI
JMP 0x0014b5a7
LAB_0014b590:
JNZ 0x0014b599
MOV R15,RAX
CMP EBX,EDX
JA 0x0014b5a7
LAB_0014b599:
IMUL RDI,qword ptr [RBP + -0x38]
MOV R15D,EBX
ADD R15,RDI
MOV R12D,R13D
LAB_0014b5a7:
INC R14
CMP R14,R11
JNZ 0x0014b545
MOV RDI,R15
MOV R14,R11
MOV R13D,R12D
LAB_0014b5b8:
TEST R13D,R13D
SETZ AL
MOV R12,RDI
MOV R11,R14
MOV RDI,qword ptr [RBP + -0x30]
JMP 0x0014b5cc
LAB_0014b5ca:
MOV AL,0x1
LAB_0014b5cc:
CMP R11,R10
JZ 0x0014b5ed
TEST R8,R8
JZ 0x0014b5d9
MOV qword ptr [R8],R11
LAB_0014b5d9:
TEST AL,AL
JZ 0x0014b600
MOV RAX,R12
NEG RAX
CMP DIL,0x2d
CMOVNZ RAX,R12
JMP 0x0014b60e
LAB_0014b5ed:
MOV dword ptr [R9],0x21
TEST R8,R8
JZ 0x0014b5fc
MOV qword ptr [R8],RSI
LAB_0014b5fc:
XOR EAX,EAX
JMP 0x0014b60e
LAB_0014b600:
MOV dword ptr [R9],0x22
MOV RAX,-0x1
LAB_0014b60e:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strntoull_8bit(long param_1,byte *param_2,long param_3,int param_4,ulong *param_5,
int4 *param_6)
{
byte bVar1;
byte bVar2;
int1 auVar3 [16];
int1 auVar4 [16];
ulong uVar5;
ulong uVar6;
ulong uVar7;
byte *pbVar8;
byte *pbVar9;
byte bVar10;
ulong uVar11;
ulong uVar12;
int iVar13;
byte *pbVar14;
bool bVar15;
*param_6 = 0;
pbVar9 = param_2 + param_3;
pbVar8 = param_2;
if (0 < param_3) {
do {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar8) & 8) == 0) break;
pbVar8 = pbVar8 + 1;
} while (pbVar8 < pbVar9);
}
if (pbVar8 != pbVar9) {
bVar1 = *pbVar8;
pbVar8 = pbVar8 + ((bVar1 - 0x2b & 0xfd) == 0);
auVar3._8_8_ = 0;
auVar3._0_8_ = (long)param_4;
auVar4 = ZEXT816(0) << 0x40 | ZEXT816(0xffffffffffffffff);
uVar6 = SUB168(auVar4 / auVar3,0);
uVar7 = 0;
if (pbVar8 == pbVar9) {
bVar15 = true;
}
else {
uVar11 = uVar7;
pbVar14 = pbVar8;
uVar7 = 0;
do {
iVar13 = (int)uVar11;
bVar2 = *pbVar14;
bVar10 = bVar2 - 0x30;
if (9 < bVar10) {
if ((byte)(bVar2 + 0xbf) < 0x1a) {
bVar10 = bVar2 - 0x37;
}
else {
if (0x19 < (byte)(bVar2 + 0x9f)) goto LAB_0014b5b8;
bVar10 = bVar2 + 0xa9;
}
}
if (param_4 <= (int)(uint)bVar10) goto LAB_0014b5b8;
uVar12 = 1;
uVar5 = uVar7;
if ((uVar7 <= uVar6) &&
((uVar7 != uVar6 || (uVar5 = uVar6, (uint)bVar10 <= SUB164(auVar4 % auVar3,0))))) {
uVar12 = uVar11;
uVar5 = (ulong)bVar10 + uVar7 * (long)param_4;
}
uVar7 = uVar5;
pbVar14 = pbVar14 + 1;
uVar11 = uVar12;
} while (pbVar14 != pbVar9);
iVar13 = (int)uVar12;
pbVar14 = pbVar9;
LAB_0014b5b8:
pbVar9 = pbVar14;
bVar15 = iVar13 == 0;
}
if (pbVar9 != pbVar8) {
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)pbVar9;
}
if (bVar15) {
if (bVar1 == 0x2d) {
return -uVar7;
}
return uVar7;
}
*param_6 = 0x22;
return 0xffffffffffffffff;
}
}
*param_6 = 0x21;
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)param_2;
}
return 0;
}
| |
43,786 | reinit_io_cache | eloqsql/mysys/mf_iocache.c | my_bool reinit_io_cache(IO_CACHE *info, enum cache_type type,
my_off_t seek_offset,
my_bool use_async_io __attribute__((unused)),
my_bool clear_cache)
{
DBUG_ENTER("reinit_io_cache");
DBUG_PRINT("enter",("cache:%p type: %d seek_offset: %llu clear_cache: %d",
info, type, (ulonglong) seek_offset,
(int) clear_cache));
DBUG_ASSERT(type == READ_CACHE || type == WRITE_CACHE);
DBUG_ASSERT(info->type == READ_CACHE || info->type == WRITE_CACHE);
/* If the whole file is in memory, avoid flushing to disk */
if (! clear_cache &&
seek_offset >= info->pos_in_file &&
seek_offset <= my_b_tell(info))
{
/* Reuse current buffer without flushing it to disk */
uchar *pos;
if (info->type == WRITE_CACHE && type == READ_CACHE)
{
info->read_end=info->write_pos;
info->end_of_file=my_b_tell(info);
/*
Trigger a new seek only if we have a valid
file handle.
*/
info->seek_not_done= (info->file != -1);
}
else if (type == WRITE_CACHE)
{
if (info->type == READ_CACHE)
{
info->write_end=info->write_buffer+info->buffer_length;
info->seek_not_done=1;
}
info->end_of_file = ~(my_off_t) 0;
}
pos=info->request_pos+(seek_offset-info->pos_in_file);
if (type == WRITE_CACHE)
info->write_pos=pos;
else
info->read_pos= pos;
}
else
{
/*
If we change from WRITE_CACHE to READ_CACHE, assume that everything
after the current positions should be ignored. In other cases we
update end_of_file as it may have changed since last init.
*/
if (type == READ_CACHE)
{
if (info->type == WRITE_CACHE)
info->end_of_file= my_b_tell(info);
else
{
if (!(info->myflags & MY_ENCRYPT))
info->end_of_file= mysql_file_seek(info->file, 0L,
MY_SEEK_END, MYF(0));
}
}
/* flush cache if we want to reuse it */
if (!clear_cache && my_b_flush_io_cache(info,1))
DBUG_RETURN(1);
info->pos_in_file=seek_offset;
/* Better to do always do a seek */
info->seek_not_done=1;
info->request_pos=info->read_pos=info->write_pos=info->buffer;
if (type == READ_CACHE)
{
info->read_end=info->buffer; /* Nothing in cache */
}
else
{
if (info->myflags & MY_ENCRYPT)
{
info->write_end = info->write_buffer + info->buffer_length;
if (seek_offset && info->file != -1)
{
info->read_end= info->buffer;
_my_b_encr_read(info, 0, 0); /* prefill the buffer */
info->write_pos= info->read_pos;
info->seek_not_done=1;
}
}
else
{
info->write_end=(info->buffer + info->buffer_length -
(seek_offset & (IO_SIZE-1)));
}
info->end_of_file= ~(my_off_t) 0;
}
}
info->type=type;
info->error=0;
init_functions(info);
DBUG_RETURN(0);
} | O0 | c | reinit_io_cache:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %r8b, %al
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movb %cl, -0x21(%rbp)
movb %al, -0x22(%rbp)
jmp 0x6ee6e
jmp 0x6ee70
jmp 0x6ee72
jmp 0x6ee74
jmp 0x6ee76
cmpb $0x0, -0x22(%rbp)
jne 0x6ef91
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jb 0x6ef91
movq -0x20(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6f180
movq %rax, %rcx
movq -0x38(%rbp), %rax
cmpq %rcx, %rax
ja 0x6ef91
movq -0x10(%rbp), %rax
cmpl $0x2, 0xb0(%rax)
jne 0x6ef08
cmpl $0x1, -0x14(%rbp)
jne 0x6ef08
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rdi
callq 0x6f180
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
cmpl $-0x1, 0xd4(%rax)
setne %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xe0(%rax)
jmp 0x6ef52
cmpl $0x2, -0x14(%rbp)
jne 0x6ef50
movq -0x10(%rbp), %rax
cmpl $0x1, 0xb0(%rax)
jne 0x6ef44
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0xe8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x8(%rax)
jmp 0x6ef52
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rdx
subq (%rdx), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
cmpl $0x2, -0x14(%rbp)
jne 0x6ef80
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
jmp 0x6ef8c
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x6f146
cmpl $0x1, -0x14(%rbp)
jne 0x6f007
movq -0x10(%rbp), %rax
cmpl $0x2, 0xb0(%rax)
jne 0x6efba
movq -0x10(%rbp), %rdi
callq 0x6f180
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x6f005
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
jne 0x6f003
movq -0x10(%rbp), %rax
movl 0xd4(%rax), %edx
leaq 0x6aaa0(%rip), %rdi # 0xd9a80
movl $0x1dd, %esi # imm = 0x1DD
xorl %eax, %eax
movl %eax, %r9d
movl $0x2, %r8d
movq %r9, %rcx
callq 0x6e860
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
jmp 0x6f005
jmp 0x6f007
cmpb $0x0, -0x22(%rbp)
jne 0x6f02b
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x6f1e0
cmpl $0x0, %eax
je 0x6f02b
jmp 0x6f022
movb $0x1, -0x1(%rbp)
jmp 0x6f16e
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x28(%rax)
cmpl $0x1, -0x14(%rbp)
jne 0x6f07f
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x6f144
movq -0x10(%rbp), %rax
movq 0xf8(%rax), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x6f10a
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0xe8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
cmpq $0x0, -0x20(%rbp)
je 0x6f108
movq -0x10(%rbp), %rax
cmpl $-0x1, 0xd4(%rax)
je 0x6f108
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
leaq 0x3892ce(%rip), %rax # 0x3f83a8
movq (%rax), %rax
movq -0x10(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %edx
movq %rdx, %rsi
callq *%rax
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xe0(%rax)
jmp 0x6f138
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
movq -0x10(%rbp), %rax
addq 0xe8(%rax), %rcx
movq -0x20(%rbp), %rdx
andq $0xfff, %rdx # imm = 0xFFF
xorl %eax, %eax
subq %rdx, %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x48(%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x8(%rax)
jmp 0x6f146
movl -0x14(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0xb0(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0xe4(%rax)
movq -0x10(%rbp), %rdi
callq 0x6e9c0
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| reinit_io_cache:
push rbp
mov rbp, rsp
sub rsp, 40h
mov al, r8b
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov [rbp+var_21], cl
mov [rbp+var_22], al
jmp short $+2
loc_6EE6E:
jmp short $+2
loc_6EE70:
jmp short $+2
loc_6EE72:
jmp short $+2
loc_6EE74:
jmp short $+2
loc_6EE76:
cmp [rbp+var_22], 0
jnz loc_6EF91
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx]
jb loc_6EF91
mov rax, [rbp+var_20]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
call my_b_tell_0
mov rcx, rax
mov rax, [rbp+var_38]
cmp rax, rcx
ja loc_6EF91
mov rax, [rbp+var_10]
cmp dword ptr [rax+0B0h], 2
jnz short loc_6EF08
cmp [rbp+var_14], 1
jnz short loc_6EF08
mov rax, [rbp+var_10]
mov rcx, [rax+40h]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rdi, [rbp+var_10]
call my_b_tell_0
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+0D4h], 0FFFFFFFFh
setnz al
and al, 1
movzx ecx, al
mov rax, [rbp+var_10]
mov [rax+0E0h], ecx
jmp short loc_6EF52
loc_6EF08:
cmp [rbp+var_14], 2
jnz short loc_6EF50
mov rax, [rbp+var_10]
cmp dword ptr [rax+0B0h], 1
jnz short loc_6EF44
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov rax, [rbp+var_10]
add rcx, [rax+0E8h]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
loc_6EF44:
mov rax, [rbp+var_10]
mov qword ptr [rax+8], 0FFFFFFFFFFFFFFFFh
loc_6EF50:
jmp short $+2
loc_6EF52:
mov rax, [rbp+var_10]
mov rax, [rax+28h]
mov rcx, [rbp+var_20]
mov rdx, [rbp+var_10]
sub rcx, [rdx]
add rax, rcx
mov [rbp+var_30], rax
cmp [rbp+var_14], 2
jnz short loc_6EF80
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
jmp short loc_6EF8C
loc_6EF80:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
loc_6EF8C:
jmp loc_6F146
loc_6EF91:
cmp [rbp+var_14], 1
jnz short loc_6F007
mov rax, [rbp+var_10]
cmp dword ptr [rax+0B0h], 2
jnz short loc_6EFBA
mov rdi, [rbp+var_10]
call my_b_tell_0
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
jmp short loc_6F005
loc_6EFBA:
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
and rax, 40h
cmp rax, 0
jnz short loc_6F003
mov rax, [rbp+var_10]
mov edx, [rax+0D4h]
lea rdi, aWorkspaceLlm4b_19; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 1DDh
xor eax, eax
mov r9d, eax
mov r8d, 2
mov rcx, r9
call inline_mysql_file_seek_2
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+8], rcx
loc_6F003:
jmp short $+2
loc_6F005:
jmp short $+2
loc_6F007:
cmp [rbp+var_22], 0
jnz short loc_6F02B
mov rdi, [rbp+var_10]
mov esi, 1
call my_b_flush_io_cache
cmp eax, 0
jz short loc_6F02B
jmp short $+2
loc_6F022:
mov [rbp+var_1], 1
jmp loc_6F16E
loc_6F02B:
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov [rax+28h], rcx
cmp [rbp+var_14], 1
jnz short loc_6F07F
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
jmp loc_6F144
loc_6F07F:
mov rax, [rbp+var_10]
mov rax, [rax+0F8h]
and rax, 40h
cmp rax, 0
jz short loc_6F10A
mov rax, [rbp+var_10]
mov rcx, [rax+30h]
mov rax, [rbp+var_10]
add rcx, [rax+0E8h]
mov rax, [rbp+var_10]
mov [rax+48h], rcx
cmp [rbp+var_20], 0
jz short loc_6F108
mov rax, [rbp+var_10]
cmp dword ptr [rax+0D4h], 0FFFFFFFFh
jz short loc_6F108
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
lea rax, _my_b_encr_read
mov rax, [rax]
mov rdi, [rbp+var_10]
xor ecx, ecx
mov edx, ecx
mov rsi, rdx
call rax
mov rax, [rbp+var_10]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov [rax+40h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+0E0h], 1
loc_6F108:
jmp short loc_6F138
loc_6F10A:
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
mov rax, [rbp+var_10]
add rcx, [rax+0E8h]
mov rdx, [rbp+var_20]
and rdx, 0FFFh
xor eax, eax
sub rax, rdx
add rcx, rax
mov rax, [rbp+var_10]
mov [rax+48h], rcx
loc_6F138:
mov rax, [rbp+var_10]
mov qword ptr [rax+8], 0FFFFFFFFFFFFFFFFh
loc_6F144:
jmp short $+2
loc_6F146:
mov ecx, [rbp+var_14]
mov rax, [rbp+var_10]
mov [rax+0B0h], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+0E4h], 0
mov rdi, [rbp+var_10]
call init_functions
mov [rbp+var_1], 0
loc_6F16E:
mov al, [rbp+var_1]
add rsp, 40h
pop rbp
retn
| char reinit_io_cache(long long a1, int a2, unsigned long long a3, long long a4, char a5)
{
long long v5; // rcx
unsigned long long v7; // [rsp+10h] [rbp-30h]
if ( !a5 && a3 >= *(_QWORD *)a1 && a3 <= my_b_tell_0(a1) )
{
if ( *(_DWORD *)(a1 + 176) == 2 && a2 == 1 )
{
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 64);
*(_QWORD *)(a1 + 8) = my_b_tell_0(a1);
*(_DWORD *)(a1 + 224) = *(_DWORD *)(a1 + 212) != -1;
}
else if ( a2 == 2 )
{
if ( *(_DWORD *)(a1 + 176) == 1 )
{
*(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48);
*(_DWORD *)(a1 + 224) = 1;
}
*(_QWORD *)(a1 + 8) = -1LL;
}
v7 = a3 - *(_QWORD *)a1 + *(_QWORD *)(a1 + 40);
if ( a2 == 2 )
*(_QWORD *)(a1 + 64) = v7;
else
*(_QWORD *)(a1 + 16) = v7;
LABEL_31:
*(_DWORD *)(a1 + 176) = a2;
*(_DWORD *)(a1 + 228) = 0;
init_functions(a1);
return 0;
}
if ( a2 == 1 )
{
if ( *(_DWORD *)(a1 + 176) == 2 )
{
*(_QWORD *)(a1 + 8) = my_b_tell_0(a1);
}
else if ( (*(_QWORD *)(a1 + 248) & 0x40LL) == 0 )
{
*(_QWORD *)(a1 + 8) = inline_mysql_file_seek_2(
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",
0x1DDu,
*(_DWORD *)(a1 + 212),
0LL,
2u,
0LL);
}
}
if ( a5 || !(unsigned int)my_b_flush_io_cache(a1, 1LL) )
{
*(_QWORD *)a1 = a3;
*(_DWORD *)(a1 + 224) = 1;
v5 = *(_QWORD *)(a1 + 32);
*(_QWORD *)(a1 + 64) = v5;
*(_QWORD *)(a1 + 16) = v5;
*(_QWORD *)(a1 + 40) = v5;
if ( a2 == 1 )
{
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 32);
}
else
{
if ( (*(_QWORD *)(a1 + 248) & 0x40LL) != 0 )
{
*(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 48);
if ( a3 && *(_DWORD *)(a1 + 212) != -1 )
{
*(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 32);
my_b_encr_read(a1, 0LL);
*(_QWORD *)(a1 + 64) = *(_QWORD *)(a1 + 16);
*(_DWORD *)(a1 + 224) = 1;
}
}
else
{
*(_QWORD *)(a1 + 72) = *(_QWORD *)(a1 + 232) + *(_QWORD *)(a1 + 32) - (a3 & 0xFFF);
}
*(_QWORD *)(a1 + 8) = -1LL;
}
goto LABEL_31;
}
return 1;
}
| reinit_io_cache:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV AL,R8B
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RBP + -0x21],CL
MOV byte ptr [RBP + -0x22],AL
JMP 0x0016ee6e
LAB_0016ee6e:
JMP 0x0016ee70
LAB_0016ee70:
JMP 0x0016ee72
LAB_0016ee72:
JMP 0x0016ee74
LAB_0016ee74:
JMP 0x0016ee76
LAB_0016ee76:
CMP byte ptr [RBP + -0x22],0x0
JNZ 0x0016ef91
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX]
JC 0x0016ef91
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0016f180
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,RCX
JA 0x0016ef91
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xb0],0x2
JNZ 0x0016ef08
CMP dword ptr [RBP + -0x14],0x1
JNZ 0x0016ef08
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x40]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0016f180
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xd4],-0x1
SETNZ AL
AND AL,0x1
MOVZX ECX,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],ECX
JMP 0x0016ef52
LAB_0016ef08:
CMP dword ptr [RBP + -0x14],0x2
JNZ 0x0016ef50
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xb0],0x1
JNZ 0x0016ef44
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0xe8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
LAB_0016ef44:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],-0x1
LAB_0016ef50:
JMP 0x0016ef52
LAB_0016ef52:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
SUB RCX,qword ptr [RDX]
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
CMP dword ptr [RBP + -0x14],0x2
JNZ 0x0016ef80
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
JMP 0x0016ef8c
LAB_0016ef80:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
LAB_0016ef8c:
JMP 0x0016f146
LAB_0016ef91:
CMP dword ptr [RBP + -0x14],0x1
JNZ 0x0016f007
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xb0],0x2
JNZ 0x0016efba
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0016f180
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
JMP 0x0016f005
LAB_0016efba:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
AND RAX,0x40
CMP RAX,0x0
JNZ 0x0016f003
MOV RAX,qword ptr [RBP + -0x10]
MOV EDX,dword ptr [RAX + 0xd4]
LEA RDI,[0x1d9a80]
MOV ESI,0x1dd
XOR EAX,EAX
MOV R9D,EAX
MOV R8D,0x2
MOV RCX,R9
CALL 0x0016e860
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
LAB_0016f003:
JMP 0x0016f005
LAB_0016f005:
JMP 0x0016f007
LAB_0016f007:
CMP byte ptr [RBP + -0x22],0x0
JNZ 0x0016f02b
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x1
CALL 0x0016f1e0
CMP EAX,0x0
JZ 0x0016f02b
JMP 0x0016f022
LAB_0016f022:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0016f16e
LAB_0016f02b:
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x28],RCX
CMP dword ptr [RBP + -0x14],0x1
JNZ 0x0016f07f
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
JMP 0x0016f144
LAB_0016f07f:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf8]
AND RAX,0x40
CMP RAX,0x0
JZ 0x0016f10a
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0xe8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0016f108
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0xd4],-0x1
JZ 0x0016f108
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
LEA RAX,[0x4f83a8]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x10]
XOR ECX,ECX
MOV EDX,ECX
MOV RSI,RDX
CALL RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x40],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe0],0x1
LAB_0016f108:
JMP 0x0016f138
LAB_0016f10a:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RAX + 0xe8]
MOV RDX,qword ptr [RBP + -0x20]
AND RDX,0xfff
XOR EAX,EAX
SUB RAX,RDX
ADD RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x48],RCX
LAB_0016f138:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],-0x1
LAB_0016f144:
JMP 0x0016f146
LAB_0016f146:
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xb0],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xe4],0x0
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0016e9c0
MOV byte ptr [RBP + -0x1],0x0
LAB_0016f16e:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x40
POP RBP
RET
|
int1 reinit_io_cache(ulong *param_1,int param_2,ulong param_3,int8 param_4,char param_5)
{
int iVar1;
ulong uVar2;
if (((param_5 == '\0') && (*param_1 <= param_3)) && (uVar2 = my_b_tell(param_1), param_3 <= uVar2)
) {
if (((int)param_1[0x16] == 2) && (param_2 == 1)) {
param_1[3] = param_1[8];
uVar2 = my_b_tell(param_1);
param_1[1] = uVar2;
*(uint *)(param_1 + 0x1c) = (uint)(*(int *)((long)param_1 + 0xd4) != -1);
}
else if (param_2 == 2) {
if ((int)param_1[0x16] == 1) {
param_1[9] = param_1[6] + param_1[0x1d];
*(int4 *)(param_1 + 0x1c) = 1;
}
param_1[1] = 0xffffffffffffffff;
}
uVar2 = param_1[5] + (param_3 - *param_1);
if (param_2 == 2) {
param_1[8] = uVar2;
}
else {
param_1[2] = uVar2;
}
}
else {
if (param_2 == 1) {
if ((int)param_1[0x16] == 2) {
uVar2 = my_b_tell(param_1);
param_1[1] = uVar2;
}
else if ((param_1[0x1f] & 0x40) == 0) {
uVar2 = inline_mysql_file_seek
("/workspace/llm4binary/github2025/eloqsql/mysys/mf_iocache.c",0x1dd,
*(int4 *)((long)param_1 + 0xd4),0,2);
param_1[1] = uVar2;
}
}
if ((param_5 == '\0') && (iVar1 = my_b_flush_io_cache(param_1,1), iVar1 != 0)) {
return 1;
}
*param_1 = param_3;
*(int4 *)(param_1 + 0x1c) = 1;
uVar2 = param_1[4];
param_1[8] = uVar2;
param_1[2] = uVar2;
param_1[5] = uVar2;
if (param_2 == 1) {
param_1[3] = param_1[4];
}
else {
if ((param_1[0x1f] & 0x40) == 0) {
param_1[9] = (param_1[4] + param_1[0x1d]) - (param_3 & 0xfff);
}
else {
param_1[9] = param_1[6] + param_1[0x1d];
if ((param_3 != 0) && (*(int *)((long)param_1 + 0xd4) != -1)) {
param_1[3] = param_1[4];
(*_my_b_encr_read)(param_1,0);
param_1[8] = param_1[2];
*(int4 *)(param_1 + 0x1c) = 1;
}
}
param_1[1] = 0xffffffffffffffff;
}
}
*(int *)(param_1 + 0x16) = param_2;
*(int4 *)((long)param_1 + 0xe4) = 0;
init_functions(param_1);
return 0;
}
| |
43,787 | LefDefParser::lefiLayer::setName(char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp | void
lefiLayer::setName(const char *name)
{
int len = strlen(name) + 1;
clear();
if (len > nameSize_) {
lefFree(name_);
name_ = (char*) lefMalloc(len);
nameSize_ = len;
}
strcpy(name_, CASE(name));
} | O3 | cpp | LefDefParser::lefiLayer::setName(char const*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x20d0
movq %rax, %r15
incl %r15d
movq %r14, %rdi
callq 0x177b4
movq (%r14), %r12
cmpl 0x8(%r14), %r15d
jle 0x182d3
movq %r12, %rdi
callq 0x26040
movslq %r15d, %rdi
callq 0x24985
movq %rax, %r12
movq %rax, (%r14)
movl %r15d, 0x8(%r14)
movq %rbx, %rdi
callq 0x27c0a
movq %r12, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21b0
nop
| _ZN12LefDefParser9lefiLayer7setNameEPKc:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rdi, rsi
call _strlen
mov r15, rax
inc r15d
mov rdi, r14; this
call _ZN12LefDefParser9lefiLayer5clearEv; LefDefParser::lefiLayer::clear(void)
mov r12, [r14]
cmp r15d, [r14+8]
jle short loc_182D3
mov rdi, r12; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
movsxd rdi, r15d; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r12, rax
mov [r14], rax
mov [r14+8], r15d
loc_182D3:
mov rdi, rbx; this
call _ZN12LefDefParser4CASEEPKc; LefDefParser::CASE(char const*)
mov rdi, r12
mov rsi, rax
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp _strcpy
| long long LefDefParser::lefiLayer::setName(LefDefParser::lefiLayer *this, LefDefParser *a2)
{
int v2; // r15d
long long v3; // r12
long long v4; // rax
v2 = strlen(a2) + 1;
LefDefParser::lefiLayer::clear(this, a2);
v3 = *(_QWORD *)this;
if ( v2 > *((_DWORD *)this + 2) )
{
LefDefParser::lefFree(*(LefDefParser **)this, a2);
v3 = LefDefParser::lefMalloc((LefDefParser *)v2, (unsigned long long)a2);
*(_QWORD *)this = v3;
*((_DWORD *)this + 2) = v2;
}
v4 = LefDefParser::CASE(a2, (const char *)a2);
return strcpy(v3, v4);
}
| setName:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x001020d0
MOV R15,RAX
INC R15D
MOV RDI,R14
CALL 0x001177b4
MOV R12,qword ptr [R14]
CMP R15D,dword ptr [R14 + 0x8]
JLE 0x001182d3
MOV RDI,R12
CALL 0x00126040
MOVSXD RDI,R15D
CALL 0x00124985
MOV R12,RAX
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R15D
LAB_001182d3:
MOV RDI,RBX
CALL 0x00127c0a
MOV RDI,R12
MOV RSI,RAX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x001021b0
|
/* LefDefParser::lefiLayer::setName(char const*) */
void __thiscall LefDefParser::lefiLayer::setName(lefiLayer *this,char *param_1)
{
size_t sVar1;
char *__dest;
char *pcVar2;
int iVar3;
pcVar2 = param_1;
sVar1 = strlen(param_1);
iVar3 = (int)sVar1 + 1;
clear(this);
__dest = *(char **)this;
if (*(int *)(this + 8) < iVar3) {
lefFree(__dest);
__dest = (char *)lefMalloc((LefDefParser *)(long)iVar3,(ulong)pcVar2);
*(char **)this = __dest;
*(int *)(this + 8) = iVar3;
}
pcVar2 = (char *)CASE(param_1);
strcpy(__dest,pcVar2);
return;
}
| |
43,788 | check_rules | eloqsql/strings/ctype-uca.c | static int
check_rules(MY_CHARSET_LOADER *loader,
const MY_COLL_RULES *rules,
const MY_UCA_WEIGHT_LEVEL *dst, const MY_UCA_WEIGHT_LEVEL *src)
{
const MY_COLL_RULE *r, *rlast;
for (r= rules->rule, rlast= rules->rule + rules->nrules; r < rlast; r++)
{
if (r->curr[0] > dst->maxchar)
{
my_snprintf(loader->error, sizeof(loader->error),
"Shift character out of range: u%04X", (uint) r->curr[0]);
return TRUE;
}
else if (r->base[0] > src->maxchar)
{
my_snprintf(loader->error, sizeof(loader->error),
"Reset character out of range: u%04X", (uint) r->base[0]);
return TRUE;
}
}
return FALSE;
} | O0 | c | check_rules:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x18(%rbp), %rcx
imulq $0xa0, 0x10(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x52a28
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x20(%rbp), %rcx
cmpq (%rcx), %rax
jbe 0x529d8
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movq 0x50(%rax), %rax
movl %eax, %ecx
movl $0x80, %esi
leaq 0x2c54f(%rip), %rdx # 0x7ef17
movb $0x0, %al
callq 0x79190
movl $0x1, -0x4(%rbp)
jmp 0x52a2f
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
cmpq (%rcx), %rax
jbe 0x52a11
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movl $0x80, %esi
leaq 0x2c53a(%rip), %rdx # 0x7ef3b
movb $0x0, %al
callq 0x79190
movl $0x1, -0x4(%rbp)
jmp 0x52a2f
jmp 0x52a13
jmp 0x52a15
movq -0x30(%rbp), %rax
addq $0xa0, %rax
movq %rax, -0x30(%rbp)
jmp 0x5298f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| check_rules:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov [rbp+var_30], rax
mov rax, [rbp+var_18]
mov rax, [rax+20h]
mov rcx, [rbp+var_18]
imul rcx, [rcx+10h], 0A0h
add rax, rcx
mov [rbp+var_38], rax
loc_5298F:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb loc_52A28
mov rax, [rbp+var_30]
mov rax, [rax+50h]
mov rcx, [rbp+var_20]
cmp rax, [rcx]
jbe short loc_529D8
mov rdi, [rbp+var_10]
mov rax, [rbp+var_30]
mov rax, [rax+50h]
mov ecx, eax
mov esi, 80h
lea rdx, aShiftCharacter; "Shift character out of range: u%04X"
mov al, 0
call my_snprintf
mov [rbp+var_4], 1
jmp short loc_52A2F
loc_529D8:
mov rax, [rbp+var_30]
mov rax, [rax]
mov rcx, [rbp+var_28]
cmp rax, [rcx]
jbe short loc_52A11
mov rdi, [rbp+var_10]
mov rax, [rbp+var_30]
mov rax, [rax]
mov ecx, eax
mov esi, 80h
lea rdx, aResetCharacter; "Reset character out of range: u%04X"
mov al, 0
call my_snprintf
mov [rbp+var_4], 1
jmp short loc_52A2F
loc_52A11:
jmp short $+2
loc_52A13:
jmp short $+2
loc_52A15:
mov rax, [rbp+var_30]
add rax, 0A0h
mov [rbp+var_30], rax
jmp loc_5298F
loc_52A28:
mov [rbp+var_4], 0
loc_52A2F:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long check_rules(int a1, long long a2, _QWORD *a3, _QWORD *a4, int a5, int a6)
{
_QWORD *i; // [rsp+10h] [rbp-30h]
for ( i = *(_QWORD **)(a2 + 32); (unsigned long long)i < 160LL * *(_QWORD *)(a2 + 16) + *(_QWORD *)(a2 + 32); i += 20 )
{
if ( i[10] > *a3 )
{
my_snprintf(a1, 128, (unsigned int)"Shift character out of range: u%04X", i[10], a5, a6);
return 1;
}
if ( *i > *a4 )
{
my_snprintf(a1, 128, (unsigned int)"Reset character out of range: u%04X", *i, a5, a6);
return 1;
}
}
return 0;
}
| check_rules:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x18]
IMUL RCX,qword ptr [RCX + 0x10],0xa0
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_0015298f:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x00152a28
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x50]
MOV RCX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RCX]
JBE 0x001529d8
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x50]
MOV ECX,EAX
MOV ESI,0x80
LEA RDX,[0x17ef17]
MOV AL,0x0
CALL 0x00179190
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00152a2f
LAB_001529d8:
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX]
JBE 0x00152a11
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV ECX,EAX
MOV ESI,0x80
LEA RDX,[0x17ef3b]
MOV AL,0x0
CALL 0x00179190
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00152a2f
LAB_00152a11:
JMP 0x00152a13
LAB_00152a13:
JMP 0x00152a15
LAB_00152a15:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0xa0
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0015298f
LAB_00152a28:
MOV dword ptr [RBP + -0x4],0x0
LAB_00152a2f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int4 check_rules(int8 param_1,long param_2,ulong *param_3,ulong *param_4)
{
ulong *local_38;
local_38 = *(ulong **)(param_2 + 0x20);
while( true ) {
if ((ulong *)(*(long *)(param_2 + 0x20) + *(long *)(param_2 + 0x10) * 0xa0) <= local_38) {
return 0;
}
if (*param_3 < local_38[10]) break;
if (*param_4 < *local_38) {
my_snprintf(param_1,0x80,"Reset character out of range: u%04X",*local_38 & 0xffffffff);
return 1;
}
local_38 = local_38 + 0x14;
}
my_snprintf(param_1,0x80,"Shift character out of range: u%04X",local_38[10] & 0xffffffff);
return 1;
}
| |
43,789 | StartTree::BoundingMatrix<double, StartTree::BIONJMatrix<double>>::getRowMinimum(unsigned long, double, double) const | iqtree3/utils/bionj2.cpp | Position<T> getRowMinimum(size_t row, T maxTot, T qBest) const {
T nless2 = ( n - 2 );
T tMultiplier = ( n <= 2 ) ? 0 : ( 1.0 / nless2 );
auto tot = scaledClusterTotals.data();
T rowTotal = rowTotals[row] * tMultiplier; //scaled by (1/(n-2)).
T rowBound = qBest + maxTot + rowTotal;
//Upper bound for distance, in this row, that
//could (after row totals subtracted) provide a
//better min(Q).
Position<T> pos(row, 0, infiniteDistance, 0);
const T* rowData = entriesSorted.rows[row];
const int* toCluster = entryToCluster.rows[row];
T Drc;
for (size_t i=0; (Drc=rowData[i])<rowBound; ++i) {
size_t cluster = toCluster[i];
//The cluster associated with this distance
//The c in Qrc and Drc.
T Qrc = Drc - tot[cluster] - rowTotal;
if (Qrc < pos.value) {
int otherRow = clusterToRow[cluster];
if (otherRow != notMappedToRow) {
pos.column = (otherRow < row ) ? otherRow : row;
pos.row = (otherRow < row ) ? row : otherRow;
pos.value = Qrc;
if (Qrc < qBest ) {
qBest = Qrc;
rowBound = qBest + maxTot + rowTotal;
}
}
}
}
return pos;
} | O0 | cpp | StartTree::BoundingMatrix<double, StartTree::BIONJMatrix<double>>::getRowMinimum(unsigned long, double, double) const:
subq $0xb8, %rsp
movq %rdi, 0x20(%rsp)
movq %rdi, 0x28(%rsp)
movq %rsi, 0xb0(%rsp)
movq %rdx, 0xa8(%rsp)
movsd %xmm0, 0xa0(%rsp)
movsd %xmm1, 0x98(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x8(%rax), %rcx
addq $-0x2, %rcx
movq %rcx, %xmm0
movaps 0x7a7c(%rip), %xmm1 # 0x69690
punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x7a80(%rip), %xmm1 # 0x696a0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x90(%rsp)
cmpq $0x2, 0x8(%rax)
ja 0x61c4a
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
jmp 0x61c61
movsd 0x7896(%rip), %xmm0 # 0x694e8
divsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x88(%rsp)
addq $0xf8, %rdi
callq 0x5ff00
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x80(%rsp)
movq 0x28(%rax), %rax
movq 0xa8(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
mulsd 0x88(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
movsd 0x98(%rsp), %xmm0
addsd 0xa0(%rsp), %xmm0
addsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movq 0xa8(%rsp), %rsi
xorl %eax, %eax
movl %eax, %ecx
movsd 0x79d8(%rip), %xmm0 # 0x696c0
movq %rcx, %rdx
callq 0x5d180
movq 0x30(%rsp), %rax
movq 0x188(%rax), %rcx
movq 0xa8(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movq %rcx, 0x68(%rsp)
movq 0x1b8(%rax), %rax
movq 0xa8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x60(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x68(%rsp), %rax
movq 0x50(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
movsd %xmm1, 0x58(%rsp)
movsd 0x70(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x61e9c
movq 0x20(%rsp), %rax
movq 0x60(%rsp), %rcx
movq 0x50(%rsp), %rdx
movslq (%rcx,%rdx,4), %rcx
movq %rcx, 0x48(%rsp)
movsd 0x58(%rsp), %xmm0
movq 0x80(%rsp), %rcx
movq 0x48(%rsp), %rdx
subsd (%rcx,%rdx,8), %xmm0
subsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm1
movsd 0x10(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x61e87
movq 0x30(%rsp), %rdi
addq $0xc8, %rdi
movq 0x48(%rsp), %rsi
callq 0x50f50
movl (%rax), %eax
movl %eax, 0x3c(%rsp)
cmpl $-0x1, 0x3c(%rsp)
je 0x61e85
movslq 0x3c(%rsp), %rax
cmpq 0xa8(%rsp), %rax
jae 0x61de6
movslq 0x3c(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x61df3
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movslq 0x3c(%rsp), %rax
cmpq 0xa8(%rsp), %rax
jae 0x61e1f
movq 0xa8(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x61e29
movslq 0x3c(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x10(%rax)
movsd 0x40(%rsp), %xmm1
movsd 0x98(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x61e83
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x98(%rsp), %xmm0
addsd 0xa0(%rsp), %xmm0
addsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
jmp 0x61e85
jmp 0x61e87
jmp 0x61e89
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x61d2e
movq 0x28(%rsp), %rax
addq $0xb8, %rsp
retq
nopl (%rax)
| _ZNK9StartTree14BoundingMatrixIdNS_11BIONJMatrixIdEEE13getRowMinimumEmdd:
sub rsp, 0B8h
mov [rsp+0B8h+var_98], rdi
mov [rsp+0B8h+var_90], rdi
mov [rsp+0B8h+var_8], rsi
mov [rsp+0B8h+var_10], rdx
movsd [rsp+0B8h+var_18], xmm0
movsd [rsp+0B8h+var_20], xmm1
mov rax, [rsp+0B8h+var_8]
mov [rsp+0B8h+var_88], rax
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFFEh
movq xmm0, rcx
movaps xmm1, cs:xmmword_69690
punpckldq xmm0, xmm1
movapd xmm1, cs:xmmword_696A0
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
movsd [rsp+0B8h+var_28], xmm0
cmp qword ptr [rax+8], 2
ja short loc_61C4A
xorps xmm0, xmm0
movsd [rsp+0B8h+var_A0], xmm0
jmp short loc_61C61
loc_61C4A:
movsd xmm0, cs:qword_694E8
divsd xmm0, [rsp+0B8h+var_28]
movsd [rsp+0B8h+var_A0], xmm0
loc_61C61:
mov rdi, [rsp+0B8h+var_88]
movsd xmm0, [rsp+0B8h+var_A0]
movsd [rsp+0B8h+var_30], xmm0
add rdi, 0F8h
call _ZNSt6vectorIdSaIdEE4dataEv; std::vector<double>::data(void)
mov rdi, [rsp+0B8h+var_98]
mov rcx, rax
mov rax, [rsp+0B8h+var_88]
mov [rsp+0B8h+var_38], rcx
mov rax, [rax+28h]
mov rcx, [rsp+0B8h+var_10]
movsd xmm0, qword ptr [rax+rcx*8]
mulsd xmm0, [rsp+0B8h+var_30]
movsd [rsp+0B8h+var_40], xmm0
movsd xmm0, [rsp+0B8h+var_20]
addsd xmm0, [rsp+0B8h+var_18]
addsd xmm0, [rsp+0B8h+var_40]
movsd [rsp+0B8h+var_48], xmm0
mov rsi, [rsp+0B8h+var_10]
xor eax, eax
mov ecx, eax
movsd xmm0, cs:qword_696C0
mov rdx, rcx
call _ZN9StartTree8PositionIdEC2Emmdm; StartTree::Position<double>::Position(ulong,ulong,double,ulong)
mov rax, [rsp+0B8h+var_88]
mov rcx, [rax+188h]
mov rdx, [rsp+0B8h+var_10]
mov rcx, [rcx+rdx*8]
mov [rsp+0B8h+var_50], rcx
mov rax, [rax+1B8h]
mov rcx, [rsp+0B8h+var_10]
mov rax, [rax+rcx*8]
mov [rsp+0B8h+var_58], rax
mov [rsp+0B8h+var_68], 0
loc_61D2E:
mov rax, [rsp+0B8h+var_50]
mov rcx, [rsp+0B8h+var_68]
movsd xmm1, qword ptr [rax+rcx*8]
movsd [rsp+0B8h+var_60], xmm1
movsd xmm0, [rsp+0B8h+var_48]
ucomisd xmm0, xmm1
jbe loc_61E9C
mov rax, [rsp+0B8h+var_98]
mov rcx, [rsp+0B8h+var_58]
mov rdx, [rsp+0B8h+var_68]
movsxd rcx, dword ptr [rcx+rdx*4]
mov [rsp+0B8h+var_70], rcx
movsd xmm0, [rsp+0B8h+var_60]
mov rcx, [rsp+0B8h+var_38]
mov rdx, [rsp+0B8h+var_70]
subsd xmm0, qword ptr [rcx+rdx*8]
subsd xmm0, [rsp+0B8h+var_40]
movsd [rsp+0B8h+var_78], xmm0
movsd xmm1, [rsp+0B8h+var_78]
movsd xmm0, qword ptr [rax+10h]
ucomisd xmm0, xmm1
jbe loc_61E87
mov rdi, [rsp+0B8h+var_88]
add rdi, 0C8h
mov rsi, [rsp+0B8h+var_70]
call _ZNKSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov eax, [rax]
mov [rsp+0B8h+var_7C], eax
cmp [rsp+0B8h+var_7C], 0FFFFFFFFh
jz loc_61E85
movsxd rax, [rsp+0B8h+var_7C]
cmp rax, [rsp+0B8h+var_10]
jnb short loc_61DE6
movsxd rax, [rsp+0B8h+var_7C]
mov [rsp+0B8h+var_A8], rax
jmp short loc_61DF3
loc_61DE6:
mov rax, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_A8], rax
loc_61DF3:
mov rax, [rsp+0B8h+var_98]
mov rcx, [rsp+0B8h+var_A8]
mov [rax+8], rcx
movsxd rax, [rsp+0B8h+var_7C]
cmp rax, [rsp+0B8h+var_10]
jnb short loc_61E1F
mov rax, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_B0], rax
jmp short loc_61E29
loc_61E1F:
movsxd rax, [rsp+0B8h+var_7C]
mov [rsp+0B8h+var_B0], rax
loc_61E29:
mov rax, [rsp+0B8h+var_98]
mov rcx, [rsp+0B8h+var_B0]
mov [rax], rcx
movsd xmm0, [rsp+0B8h+var_78]
movsd qword ptr [rax+10h], xmm0
movsd xmm1, [rsp+0B8h+var_78]
movsd xmm0, [rsp+0B8h+var_20]
ucomisd xmm0, xmm1
jbe short loc_61E83
movsd xmm0, [rsp+0B8h+var_78]
movsd [rsp+0B8h+var_20], xmm0
movsd xmm0, [rsp+0B8h+var_20]
addsd xmm0, [rsp+0B8h+var_18]
addsd xmm0, [rsp+0B8h+var_40]
movsd [rsp+0B8h+var_48], xmm0
loc_61E83:
jmp short $+2
loc_61E85:
jmp short $+2
loc_61E87:
jmp short $+2
loc_61E89:
mov rax, [rsp+0B8h+var_68]
add rax, 1
mov [rsp+0B8h+var_68], rax
jmp loc_61D2E
loc_61E9C:
mov rax, [rsp+0B8h+var_90]
add rsp, 0B8h
retn
| long long StartTree::BoundingMatrix<double,StartTree::BIONJMatrix<double>>::getRowMinimum(
long long a1,
_QWORD *a2,
unsigned long long a3,
double a4,
double a5)
{
__m128d v5; // xmm1
unsigned long long v7; // [rsp+8h] [rbp-B0h]
unsigned long long v8; // [rsp+10h] [rbp-A8h]
double v9; // [rsp+18h] [rbp-A0h]
int v10; // [rsp+3Ch] [rbp-7Ch]
double v11; // [rsp+40h] [rbp-78h]
long long v12; // [rsp+48h] [rbp-70h]
long long i; // [rsp+50h] [rbp-68h]
double v14; // [rsp+58h] [rbp-60h]
long long v15; // [rsp+60h] [rbp-58h]
long long v16; // [rsp+68h] [rbp-50h]
double v17; // [rsp+70h] [rbp-48h]
double v18; // [rsp+78h] [rbp-40h]
long long v19; // [rsp+80h] [rbp-38h]
double v20; // [rsp+90h] [rbp-28h]
v5 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32((__m128i)(unsigned long long)(a2[1] - 2LL), (__m128i)xmmword_69690),
(__m128d)xmmword_696A0);
v20 = _mm_unpackhi_pd(v5, v5).m128d_f64[0] + v5.m128d_f64[0];
if ( a2[1] > 2uLL )
v9 = 1.0 / v20;
else
v9 = 0.0;
v19 = std::vector<double>::data(a2 + 31);
v18 = *(double *)(a2[5] + 8 * a3) * v9;
v17 = a5 + a4 + v18;
StartTree::Position<double>::Position(a1, a3, 0LL, 9.999999616903162e35);
v16 = *(_QWORD *)(a2[49] + 8 * a3);
v15 = *(_QWORD *)(a2[55] + 8 * a3);
for ( i = 0LL; ; ++i )
{
v14 = *(double *)(v16 + 8 * i);
if ( v17 <= v14 )
break;
v12 = *(int *)(v15 + 4 * i);
v11 = v14 - *(double *)(v19 + 8 * v12) - v18;
if ( *(double *)(a1 + 16) > v11 )
{
v10 = *(_DWORD *)std::vector<int>::operator[](a2 + 25, v12);
if ( v10 != -1 )
{
if ( v10 >= a3 )
v8 = a3;
else
v8 = v10;
*(_QWORD *)(a1 + 8) = v8;
if ( v10 >= a3 )
v7 = v10;
else
v7 = a3;
*(_QWORD *)a1 = v7;
*(double *)(a1 + 16) = v11;
if ( a5 > v11 )
{
a5 = v11;
v17 = v11 + a4 + v18;
}
}
}
}
return a1;
}
| getRowMinimum:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0xb0],RSI
MOV qword ptr [RSP + 0xa8],RDX
MOVSD qword ptr [RSP + 0xa0],XMM0
MOVSD qword ptr [RSP + 0x98],XMM1
MOV RAX,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x30],RAX
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x2
MOVQ XMM0,RCX
MOVAPS XMM1,xmmword ptr [0x00169690]
PUNPCKLDQ XMM0,XMM1
MOVAPD XMM1,xmmword ptr [0x001696a0]
SUBPD XMM0,XMM1
MOVAPS XMM1,XMM0
UNPCKHPD XMM0,XMM0
ADDSD XMM0,XMM1
MOVSD qword ptr [RSP + 0x90],XMM0
CMP qword ptr [RAX + 0x8],0x2
JA 0x00161c4a
XORPS XMM0,XMM0
MOVSD qword ptr [RSP + 0x18],XMM0
JMP 0x00161c61
LAB_00161c4a:
MOVSD XMM0,qword ptr [0x001694e8]
DIVSD XMM0,qword ptr [RSP + 0x90]
MOVSD qword ptr [RSP + 0x18],XMM0
LAB_00161c61:
MOV RDI,qword ptr [RSP + 0x30]
MOVSD XMM0,qword ptr [RSP + 0x18]
MOVSD qword ptr [RSP + 0x88],XMM0
ADD RDI,0xf8
CALL 0x0015ff00
MOV RDI,qword ptr [RSP + 0x20]
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x80],RCX
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RSP + 0xa8]
MOVSD XMM0,qword ptr [RAX + RCX*0x8]
MULSD XMM0,qword ptr [RSP + 0x88]
MOVSD qword ptr [RSP + 0x78],XMM0
MOVSD XMM0,qword ptr [RSP + 0x98]
ADDSD XMM0,qword ptr [RSP + 0xa0]
ADDSD XMM0,qword ptr [RSP + 0x78]
MOVSD qword ptr [RSP + 0x70],XMM0
MOV RSI,qword ptr [RSP + 0xa8]
XOR EAX,EAX
MOV ECX,EAX
MOVSD XMM0,qword ptr [0x001696c0]
MOV RDX,RCX
CALL 0x0015d180
MOV RAX,qword ptr [RSP + 0x30]
MOV RCX,qword ptr [RAX + 0x188]
MOV RDX,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RSP + 0x68],RCX
MOV RAX,qword ptr [RAX + 0x1b8]
MOV RCX,qword ptr [RSP + 0xa8]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x50],0x0
LAB_00161d2e:
MOV RAX,qword ptr [RSP + 0x68]
MOV RCX,qword ptr [RSP + 0x50]
MOVSD XMM1,qword ptr [RAX + RCX*0x8]
MOVSD qword ptr [RSP + 0x58],XMM1
MOVSD XMM0,qword ptr [RSP + 0x70]
UCOMISD XMM0,XMM1
JBE 0x00161e9c
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x50]
MOVSXD RCX,dword ptr [RCX + RDX*0x4]
MOV qword ptr [RSP + 0x48],RCX
MOVSD XMM0,qword ptr [RSP + 0x58]
MOV RCX,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x48]
SUBSD XMM0,qword ptr [RCX + RDX*0x8]
SUBSD XMM0,qword ptr [RSP + 0x78]
MOVSD qword ptr [RSP + 0x40],XMM0
MOVSD XMM1,qword ptr [RSP + 0x40]
MOVSD XMM0,qword ptr [RAX + 0x10]
UCOMISD XMM0,XMM1
JBE 0x00161e87
MOV RDI,qword ptr [RSP + 0x30]
ADD RDI,0xc8
MOV RSI,qword ptr [RSP + 0x48]
CALL 0x00150f50
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0x3c],EAX
CMP dword ptr [RSP + 0x3c],-0x1
JZ 0x00161e85
MOVSXD RAX,dword ptr [RSP + 0x3c]
CMP RAX,qword ptr [RSP + 0xa8]
JNC 0x00161de6
MOVSXD RAX,dword ptr [RSP + 0x3c]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00161df3
LAB_00161de6:
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x10],RAX
LAB_00161df3:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOVSXD RAX,dword ptr [RSP + 0x3c]
CMP RAX,qword ptr [RSP + 0xa8]
JNC 0x00161e1f
MOV RAX,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00161e29
LAB_00161e1f:
MOVSXD RAX,dword ptr [RSP + 0x3c]
MOV qword ptr [RSP + 0x8],RAX
LAB_00161e29:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX],RCX
MOVSD XMM0,qword ptr [RSP + 0x40]
MOVSD qword ptr [RAX + 0x10],XMM0
MOVSD XMM1,qword ptr [RSP + 0x40]
MOVSD XMM0,qword ptr [RSP + 0x98]
UCOMISD XMM0,XMM1
JBE 0x00161e83
MOVSD XMM0,qword ptr [RSP + 0x40]
MOVSD qword ptr [RSP + 0x98],XMM0
MOVSD XMM0,qword ptr [RSP + 0x98]
ADDSD XMM0,qword ptr [RSP + 0xa0]
ADDSD XMM0,qword ptr [RSP + 0x78]
MOVSD qword ptr [RSP + 0x70],XMM0
LAB_00161e83:
JMP 0x00161e85
LAB_00161e85:
JMP 0x00161e87
LAB_00161e87:
JMP 0x00161e89
LAB_00161e89:
MOV RAX,qword ptr [RSP + 0x50]
ADD RAX,0x1
MOV qword ptr [RSP + 0x50],RAX
JMP 0x00161d2e
LAB_00161e9c:
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0xb8
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* StartTree::BoundingMatrix<double, StartTree::BIONJMatrix<double> >::getRowMinimum(unsigned long,
double, double) const */
ulong StartTree::BoundingMatrix<double,StartTree::BIONJMatrix<double>>::getRowMinimum
(ulong param_1,double param_2,double param_3)
{
int iVar1;
long lVar2;
long lVar3;
int *piVar4;
long lVar5;
ulong uVar6;
ulong in_RDX;
long in_RSI;
double dVar7;
int1 auVar8 [16];
ulong local_b0;
ulong local_a8;
double local_a0;
long local_68;
double local_48;
double local_20;
lVar5 = *(long *)(in_RSI + 8) + -2;
auVar8._8_4_ = (int)((ulong)lVar5 >> 0x20);
auVar8._0_8_ = lVar5;
auVar8._12_4_ = _UNK_00169694;
if (*(ulong *)(in_RSI + 8) < 3) {
local_a0 = 0.0;
}
else {
local_a0 = DAT_001694e8 /
((auVar8._8_8_ - _UNK_001696a8) +
((double)CONCAT44(_DAT_00169690,(int)lVar5) - _DAT_001696a0));
}
lVar3 = std::vector<double,std::allocator<double>>::data
((vector<double,std::allocator<double>> *)(in_RSI + 0xf8));
local_a0 = *(double *)(*(long *)(in_RSI + 0x28) + in_RDX * 8) * local_a0;
local_48 = param_3 + param_2 + local_a0;
Position<double>::Position(param_1,in_RDX,DAT_001696c0,0);
lVar5 = *(long *)(*(long *)(in_RSI + 0x188) + in_RDX * 8);
lVar2 = *(long *)(*(long *)(in_RSI + 0x1b8) + in_RDX * 8);
local_20 = param_3;
for (local_68 = 0; dVar7 = *(double *)(lVar5 + local_68 * 8), dVar7 < local_48;
local_68 = local_68 + 1) {
uVar6 = (ulong)*(int *)(lVar2 + local_68 * 4);
dVar7 = (dVar7 - *(double *)(lVar3 + uVar6 * 8)) - local_a0;
if (dVar7 < *(double *)(param_1 + 0x10)) {
piVar4 = (int *)std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)(in_RSI + 200),uVar6);
iVar1 = *piVar4;
if (iVar1 != -1) {
local_a8 = in_RDX;
if ((ulong)(long)iVar1 < in_RDX) {
local_a8 = (ulong)iVar1;
}
*(ulong *)(param_1 + 8) = local_a8;
local_b0 = in_RDX;
if (in_RDX <= (ulong)(long)iVar1) {
local_b0 = (ulong)iVar1;
}
*(ulong *)param_1 = local_b0;
*(double *)(param_1 + 0x10) = dVar7;
if (dVar7 < local_20) {
local_48 = dVar7 + param_2 + local_a0;
local_20 = dVar7;
}
}
}
}
return param_1;
}
| |
43,790 | inline_mysql_file_pwrite | eloqsql/include/mysql/psi/mysql_file.h | static inline size_t
inline_mysql_file_pwrite(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File file, const uchar *buffer, size_t count, my_off_t offset, myf flags)
{
size_t result;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
size_t bytes_written;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_WRITE);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line);
result= my_pwrite(file, buffer, count, offset, flags);
if (flags & (MY_NABP | MY_FNABP))
bytes_written= (result == 0) ? count : 0;
else
bytes_written= (result != MY_FILE_ERROR) ? result : 0;
PSI_FILE_CALL(end_file_wait)(locker, bytes_written);
return result;
}
#endif
result= my_pwrite(file, buffer, count, offset, flags);
return result;
} | O0 | c | inline_mysql_file_pwrite:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq 0x20f62c(%rip), %rax # 0x2c2238
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x88(%rbp), %rdi
movl $0x7, %edx
callq *%rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xb2d1f
leaq 0x20f5e2(%rip), %rax # 0x2c2238
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf6240
movq %rax, -0x38(%rbp)
movq 0x10(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0xb2cca
cmpq $0x0, -0x38(%rbp)
jne 0xb2caf
movq -0x28(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0xb2cba
xorl %eax, %eax
movq %rax, -0x98(%rbp)
jmp 0xb2cba
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
jmp 0xb2cf7
cmpq $-0x1, -0x38(%rbp)
je 0xb2cde
movq -0x38(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0xb2ce9
xorl %eax, %eax
movq %rax, -0xa0(%rbp)
jmp 0xb2ce9
movq -0xa0(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x20f53a(%rip), %rax # 0x2c2238
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x40(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq *%rax
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xb2d43
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0xf6240
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xa0, %rsp
popq %rbp
retq
| inline_mysql_file_pwrite_1:
push rbp
mov rbp, rsp
sub rsp, 0A0h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_88]
mov edx, 7
call rax
mov [rbp+var_40], rax
cmp [rbp+var_40], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz loc_B2D1F
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pwrite
mov [rbp+var_38], rax
mov rax, [rbp+arg_0]
and rax, 6
cmp rax, 0
jz short loc_B2CCA
cmp [rbp+var_38], 0
jnz short loc_B2CAF
mov rax, [rbp+var_28]
mov [rbp+var_98], rax
jmp short loc_B2CBA
loc_B2CAF:
xor eax, eax
mov [rbp+var_98], rax
jmp short $+2
loc_B2CBA:
mov rax, [rbp+var_98]
mov [rbp+var_90], rax
jmp short loc_B2CF7
loc_B2CCA:
cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh
jz short loc_B2CDE
mov rax, [rbp+var_38]
mov [rbp+var_A0], rax
jmp short loc_B2CE9
loc_B2CDE:
xor eax, eax
mov [rbp+var_A0], rax
jmp short $+2
loc_B2CE9:
mov rax, [rbp+var_A0]
mov [rbp+var_90], rax
loc_B2CF7:
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_40]
mov rsi, [rbp+var_90]
call rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
jmp short loc_B2D43
loc_B2D1F:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
mov rcx, [rbp+var_30]
mov r8, [rbp+arg_0]
call my_pwrite
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_8], rax
loc_B2D43:
mov rax, [rbp+var_8]
add rsp, 0A0h
pop rbp
retn
| long long inline_mysql_file_pwrite_1(
long long a1,
unsigned int a2,
unsigned int a3,
long long a4,
long long a5,
long long a6,
long long a7)
{
long long v8; // [rsp+0h] [rbp-A0h]
long long v9; // [rsp+8h] [rbp-98h]
_BYTE v10[72]; // [rsp+18h] [rbp-88h] BYREF
long long v11; // [rsp+60h] [rbp-40h]
long long v12; // [rsp+68h] [rbp-38h]
long long v13; // [rsp+70h] [rbp-30h]
long long v14; // [rsp+78h] [rbp-28h]
long long v15; // [rsp+80h] [rbp-20h]
unsigned int v16; // [rsp+88h] [rbp-18h]
unsigned int v17; // [rsp+8Ch] [rbp-14h]
long long v18; // [rsp+90h] [rbp-10h]
v18 = a1;
v17 = a2;
v16 = a3;
v15 = a4;
v14 = a5;
v13 = a6;
v11 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v10, a3, 7LL);
if ( v11 )
{
((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v11, v14, v18, v17);
v12 = my_pwrite(v16, v15, v14, v13, a7);
if ( (a7 & 6) != 0 )
{
if ( v12 )
v9 = 0LL;
else
v9 = v14;
((void ( *)(long long, long long))PSI_server[67])(v11, v9);
}
else
{
if ( v12 == -1 )
v8 = 0LL;
else
v8 = v12;
((void ( *)(long long, long long))PSI_server[67])(v11, v8);
}
return v12;
}
else
{
return my_pwrite(v16, v15, v14, v13, a7);
}
}
| inline_mysql_file_pwrite:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xa0
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
LEA RAX,[0x3c2238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x88]
MOV EDX,0x7
CALL RAX
MOV qword ptr [RBP + -0x40],RAX
CMP qword ptr [RBP + -0x40],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001b2d1f
LEA RAX,[0x3c2238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f6240
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + 0x10]
AND RAX,0x6
CMP RAX,0x0
JZ 0x001b2cca
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x001b2caf
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001b2cba
LAB_001b2caf:
XOR EAX,EAX
MOV qword ptr [RBP + -0x98],RAX
JMP 0x001b2cba
LAB_001b2cba:
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0x90],RAX
JMP 0x001b2cf7
LAB_001b2cca:
CMP qword ptr [RBP + -0x38],-0x1
JZ 0x001b2cde
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001b2ce9
LAB_001b2cde:
XOR EAX,EAX
MOV qword ptr [RBP + -0xa0],RAX
JMP 0x001b2ce9
LAB_001b2ce9:
MOV RAX,qword ptr [RBP + -0xa0]
MOV qword ptr [RBP + -0x90],RAX
LAB_001b2cf7:
LEA RAX,[0x3c2238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x40]
MOV RSI,qword ptr [RBP + -0x90]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001b2d43
LAB_001b2d1f:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x001f6240
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x8],RAX
LAB_001b2d43:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0xa0
POP RBP
RET
|
long inline_mysql_file_pwrite
(int8 param_1,int4 param_2,int4 param_3,int8 param_4,
long param_5,int8 param_6,ulong param_7)
{
long local_a8;
long local_a0;
long local_98;
int1 local_90 [72];
long local_48;
long local_40;
int8 local_38;
long local_30;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
long local_10;
local_38 = param_6;
local_30 = param_5;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,7);
if (local_48 == 0) {
local_10 = my_pwrite(local_20,local_28,local_30,local_38,param_7);
}
else {
(**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c);
local_40 = my_pwrite(local_20,local_28,local_30,local_38,param_7);
if ((param_7 & 6) == 0) {
local_a8 = local_40;
if (local_40 == -1) {
local_a8 = 0;
}
local_98 = local_a8;
}
else {
if (local_40 == 0) {
local_a0 = local_30;
}
else {
local_a0 = 0;
}
local_98 = local_a0;
}
(**(code **)(PSI_server + 0x218))(local_48,local_98);
local_10 = local_40;
}
return local_10;
}
| |
43,791 | pick_next | eloqsql/storage/myisam/rt_split.c | static void pick_next(SplitStruct *node, int n_entries, double *g1, double *g2,
SplitStruct **choice, int *n_group, int n_dim)
{
SplitStruct *cur = node;
SplitStruct *end = node + n_entries;
double max_diff = -DBL_MAX;
for (; cur<end; ++cur)
{
double diff;
double abs_diff;
if (cur->n_node)
{
continue;
}
diff = mbr_join_square(g1, cur->coords, n_dim) -
mbr_join_square(g2, cur->coords, n_dim);
abs_diff = fabs(diff);
if (abs_diff > max_diff)
{
max_diff = abs_diff;
*n_group = 1 + (diff > 0);
*choice = cur;
}
}
} | O0 | c | pick_next:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movsd 0x90c5b(%rip), %xmm0 # 0x189f50
movsd %xmm0, -0x48(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0xf93bb
movq -0x38(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0xf9317
jmp 0xf93aa
movq -0x18(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
movl 0x10(%rbp), %edx
callq 0xf9470
movsd %xmm0, -0x60(%rbp)
movq -0x20(%rbp), %rdi
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
movl 0x10(%rbp), %edx
callq 0xf9470
movaps %xmm0, %xmm1
movsd -0x60(%rbp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
movaps 0x90cff(%rip), %xmm1 # 0x18a060
pand %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
ucomisd -0x48(%rbp), %xmm0
jbe 0xf93a8
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x50(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %ecx
addl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
jmp 0xf93aa
movq -0x38(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x38(%rbp)
jmp 0xf92fa
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| pick_next_0:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_8]
mov [rbp+var_38], rax
mov rax, [rbp+var_8]
movsxd rcx, [rbp+var_C]
shl rcx, 5
add rax, rcx
mov [rbp+var_40], rax
movsd xmm0, cs:qword_189F50
movsd [rbp+var_48], xmm0
loc_F92FA:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_40]
jnb loc_F93BB
mov rax, [rbp+var_38]
cmp dword ptr [rax+8], 0
jz short loc_F9317
jmp loc_F93AA
loc_F9317:
mov rdi, [rbp+var_18]
mov rax, [rbp+var_38]
mov rsi, [rax+18h]
mov edx, [rbp+arg_0]
call mbr_join_square_0
movsd [rbp+var_60], xmm0
mov rdi, [rbp+var_20]
mov rax, [rbp+var_38]
mov rsi, [rax+18h]
mov edx, [rbp+arg_0]
call mbr_join_square_0
movaps xmm1, xmm0
movsd xmm0, [rbp+var_60]
subsd xmm0, xmm1
movsd [rbp+var_50], xmm0
movsd xmm0, [rbp+var_50]
movaps xmm1, cs:xmmword_18A060
pand xmm0, xmm1
movsd [rbp+var_58], xmm0
movsd xmm0, [rbp+var_58]
ucomisd xmm0, [rbp+var_48]
jbe short loc_F93A8
movsd xmm0, [rbp+var_58]
movsd [rbp+var_48], xmm0
movsd xmm0, [rbp+var_50]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
setnbe al
and al, 1
movzx ecx, al
add ecx, 1
mov rax, [rbp+var_30]
mov [rax], ecx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_28]
mov [rax], rcx
loc_F93A8:
jmp short $+2
loc_F93AA:
mov rax, [rbp+var_38]
add rax, 20h ; ' '
mov [rbp+var_38], rax
jmp loc_F92FA
loc_F93BB:
add rsp, 60h
pop rbp
retn
| unsigned long long pick_next_0(
unsigned long long a1,
int a2,
long long a3,
long long a4,
unsigned long long *a5,
_DWORD *a6,
unsigned int a7)
{
unsigned long long result; // rax
double v8; // [rsp+0h] [rbp-60h]
double v9; // [rsp+8h] [rbp-58h]
double v10; // [rsp+10h] [rbp-50h]
double v11; // [rsp+18h] [rbp-48h]
unsigned long long v12; // [rsp+28h] [rbp-38h]
v12 = a1;
v11 = -1.797693134862316e308;
while ( 1 )
{
result = v12;
if ( v12 >= 32LL * a2 + a1 )
break;
if ( !*(_DWORD *)(v12 + 8) )
{
v8 = mbr_join_square_0(a3, *(_QWORD *)(v12 + 24), a7);
v10 = v8 - mbr_join_square_0(a4, *(_QWORD *)(v12 + 24), a7);
v9 = *(double *)_mm_and_si128((__m128i)*(unsigned long long *)&v10, (__m128i)xmmword_18A060).m128i_i64;
if ( v9 > v11 )
{
v11 = v9;
*a6 = (v10 > 0.0) + 1;
*a5 = v12;
}
}
v12 += 32LL;
}
return result;
}
| pick_next:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
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 + -0x8]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RBP + -0xc]
SHL RCX,0x5
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
MOVSD XMM0,qword ptr [0x00289f50]
MOVSD qword ptr [RBP + -0x48],XMM0
LAB_001f92fa:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x001f93bb
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX + 0x8],0x0
JZ 0x001f9317
JMP 0x001f93aa
LAB_001f9317:
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RAX + 0x18]
MOV EDX,dword ptr [RBP + 0x10]
CALL 0x001f9470
MOVSD qword ptr [RBP + -0x60],XMM0
MOV RDI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RAX + 0x18]
MOV EDX,dword ptr [RBP + 0x10]
CALL 0x001f9470
MOVAPS XMM1,XMM0
MOVSD XMM0,qword ptr [RBP + -0x60]
SUBSD XMM0,XMM1
MOVSD qword ptr [RBP + -0x50],XMM0
MOVSD XMM0,qword ptr [RBP + -0x50]
MOVAPS XMM1,xmmword ptr [0x0028a060]
PAND XMM0,XMM1
MOVSD qword ptr [RBP + -0x58],XMM0
MOVSD XMM0,qword ptr [RBP + -0x58]
UCOMISD XMM0,qword ptr [RBP + -0x48]
JBE 0x001f93a8
MOVSD XMM0,qword ptr [RBP + -0x58]
MOVSD qword ptr [RBP + -0x48],XMM0
MOVSD XMM0,qword ptr [RBP + -0x50]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
SETA AL
AND AL,0x1
MOVZX ECX,AL
ADD ECX,0x1
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
LAB_001f93a8:
JMP 0x001f93aa
LAB_001f93aa:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x20
MOV qword ptr [RBP + -0x38],RAX
JMP 0x001f92fa
LAB_001f93bb:
ADD RSP,0x60
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void pick_next(ulong param_1,int param_2,int8 param_3,int8 param_4,ulong *param_5,
int *param_6,int4 param_7)
{
double dVar1;
double dVar2;
int4 local_58;
int4 uStack_54;
int8 local_50;
int8 local_40;
local_50 = DAT_00289f50;
for (local_40 = param_1; local_40 < param_1 + (long)param_2 * 0x20; local_40 = local_40 + 0x20) {
if (*(int *)(local_40 + 8) == 0) {
dVar1 = (double)mbr_join_square(param_3,*(int8 *)(local_40 + 0x18),param_7);
dVar2 = (double)mbr_join_square(param_4,*(int8 *)(local_40 + 0x18),param_7);
dVar1 = dVar1 - dVar2;
local_58 = SUB84(dVar1,0);
uStack_54 = (uint)((ulong)dVar1 >> 0x20);
if (local_50 < (double)CONCAT44(uStack_54 & _UNK_0028a064,local_58 & _DAT_0028a060)) {
local_50 = (double)CONCAT44(uStack_54 & _UNK_0028a064,local_58 & _DAT_0028a060);
*param_6 = (0.0 < dVar1) + 1;
*param_5 = local_40;
}
}
}
return;
}
| |
43,792 | update_backward_delete_link | eloqsql/storage/myisam/mi_dynrec.c | static int update_backward_delete_link(MI_INFO *info, my_off_t delete_block,
my_off_t filepos)
{
MI_BLOCK_INFO block_info;
DBUG_ENTER("update_backward_delete_link");
if (delete_block != HA_OFFSET_ERROR)
{
block_info.second_read=0;
if (_mi_get_block_info(&block_info,info->dfile,delete_block)
& BLOCK_DELETED)
{
uchar buff[8];
mi_sizestore(buff,filepos);
if (info->s->file_write(info,buff, 8, delete_block+12, MYF(MY_NABP)))
DBUG_RETURN(1); /* Error on write */
}
else
{
my_errno=HA_ERR_WRONG_IN_RECORD;
DBUG_RETURN(1); /* Wrong delete link */
}
}
DBUG_RETURN(0);
} | O0 | c | update_backward_delete_link:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x78(%rbp)
movq %rsi, -0x80(%rbp)
movq %rdx, -0x88(%rbp)
cmpq $-0x1, -0x80(%rbp)
je 0xaac04
movl $0x0, -0x10(%rbp)
movq -0x78(%rbp), %rax
movl 0x1c0(%rax), %esi
movq -0x80(%rbp), %rdx
leaq -0x60(%rbp), %rdi
callq 0xa9ce0
andl $0x4, %eax
cmpl $0x0, %eax
je 0xaabee
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movb %al, -0x65(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x66(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x67(%rbp)
movq -0xa0(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x68(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movb %al, -0x61(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x8, %rax
movb %al, -0x62(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x10, %rax
movb %al, -0x63(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x18, %rax
movb %al, -0x64(%rbp)
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq 0x2e8(%rax), %rax
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rsi
movq -0x80(%rbp), %rcx
addq $0xc, %rcx
movl $0x8, %edx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xaabec
jmp 0xaabe3
movl $0x1, -0x6c(%rbp)
jmp 0xaac0d
jmp 0xaac02
callq 0xf6090
movl $0x7f, (%rax)
movl $0x1, -0x6c(%rbp)
jmp 0xaac0d
jmp 0xaac04
jmp 0xaac06
movl $0x0, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0xac(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xaac37
movl -0xac(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
callq 0x2a270
nopl (%rax)
| update_backward_delete_link_0:
push rbp
mov rbp, rsp
sub rsp, 0B0h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_78], rdi
mov [rbp+var_80], rsi
mov [rbp+var_88], rdx
cmp [rbp+var_80], 0FFFFFFFFFFFFFFFFh
jz loc_AAC04
mov [rbp+var_10], 0
mov rax, [rbp+var_78]
mov esi, [rax+1C0h]
mov rdx, [rbp+var_80]
lea rdi, [rbp+var_60]
call _mi_get_block_info
and eax, 4
cmp eax, 0
jz loc_AABEE
mov rax, [rbp+var_88]
mov [rbp+var_90], rax
mov rax, [rbp+var_88]
shr rax, 20h
mov [rbp+var_98], rax
mov rax, [rbp+var_98]
mov [rbp+var_A0], rax
mov rax, [rbp+var_A0]
mov [rbp+var_65], al
mov rax, [rbp+var_A0]
shr rax, 8
mov [rbp+var_66], al
mov rax, [rbp+var_A0]
shr rax, 10h
mov [rbp+var_67], al
mov rax, [rbp+var_A0]
shr rax, 18h
mov [rbp+var_68], al
mov rax, [rbp+var_90]
mov [rbp+var_A8], rax
mov rax, [rbp+var_A8]
mov [rbp+var_61], al
mov rax, [rbp+var_A8]
shr rax, 8
mov [rbp+var_62], al
mov rax, [rbp+var_A8]
shr rax, 10h
mov [rbp+var_63], al
mov rax, [rbp+var_A8]
shr rax, 18h
mov [rbp+var_64], al
mov rax, [rbp+var_78]
mov rax, [rax]
mov rax, [rax+2E8h]
mov rdi, [rbp+var_78]
lea rsi, [rbp+var_68]
mov rcx, [rbp+var_80]
add rcx, 0Ch
mov edx, 8
mov r8d, 4
call rax
cmp rax, 0
jz short loc_AABEC
jmp short $+2
loc_AABE3:
mov [rbp+var_6C], 1
jmp short loc_AAC0D
loc_AABEC:
jmp short loc_AAC02
loc_AABEE:
call _my_thread_var
mov dword ptr [rax], 7Fh
mov [rbp+var_6C], 1
jmp short loc_AAC0D
loc_AAC02:
jmp short $+2
loc_AAC04:
jmp short $+2
loc_AAC06:
mov [rbp+var_6C], 0
loc_AAC0D:
mov eax, [rbp+var_6C]
mov [rbp+var_AC], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_AAC37
mov eax, [rbp+var_AC]
add rsp, 0B0h
pop rbp
retn
loc_AAC37:
call ___stack_chk_fail
| _BOOL8 update_backward_delete_link_0(unsigned int *a1, long long a2, long long a3)
{
const char *v3; // rsi
_BYTE v8[8]; // [rsp+48h] [rbp-68h] BYREF
char v9[80]; // [rsp+50h] [rbp-60h] BYREF
int v10; // [rsp+A0h] [rbp-10h]
unsigned long long v11; // [rsp+A8h] [rbp-8h]
v11 = __readfsqword(0x28u);
if ( a2 == -1 )
return 0;
v10 = 0;
v3 = (const char *)a1[112];
if ( (mi_get_block_info(v9, v3, a2) & 4) == 0 )
{
*(_DWORD *)my_thread_var(v9, v3) = 127;
return 1;
}
v8[2] = BYTE5(a3);
v8[3] = BYTE4(a3);
v8[0] = HIBYTE(a3);
v8[1] = BYTE6(a3);
v8[6] = BYTE1(a3);
v8[7] = a3;
v8[4] = BYTE3(a3);
v8[5] = BYTE2(a3);
return (*(long long ( **)(unsigned int *, _BYTE *, long long, long long, long long))(*(_QWORD *)a1 + 744LL))(
a1,
v8,
8LL,
a2 + 12,
4LL) != 0;
}
| update_backward_delete_link:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xb0
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x78],RDI
MOV qword ptr [RBP + -0x80],RSI
MOV qword ptr [RBP + -0x88],RDX
CMP qword ptr [RBP + -0x80],-0x1
JZ 0x001aac04
MOV dword ptr [RBP + -0x10],0x0
MOV RAX,qword ptr [RBP + -0x78]
MOV ESI,dword ptr [RAX + 0x1c0]
MOV RDX,qword ptr [RBP + -0x80]
LEA RDI,[RBP + -0x60]
CALL 0x001a9ce0
AND EAX,0x4
CMP EAX,0x0
JZ 0x001aabee
MOV RAX,qword ptr [RBP + -0x88]
MOV qword ptr [RBP + -0x90],RAX
MOV RAX,qword ptr [RBP + -0x88]
SHR RAX,0x20
MOV qword ptr [RBP + -0x98],RAX
MOV RAX,qword ptr [RBP + -0x98]
MOV qword ptr [RBP + -0xa0],RAX
MOV RAX,qword ptr [RBP + -0xa0]
MOV byte ptr [RBP + -0x65],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x8
MOV byte ptr [RBP + -0x66],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x10
MOV byte ptr [RBP + -0x67],AL
MOV RAX,qword ptr [RBP + -0xa0]
SHR RAX,0x18
MOV byte ptr [RBP + -0x68],AL
MOV RAX,qword ptr [RBP + -0x90]
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0xa8]
MOV byte ptr [RBP + -0x61],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x8
MOV byte ptr [RBP + -0x62],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x10
MOV byte ptr [RBP + -0x63],AL
MOV RAX,qword ptr [RBP + -0xa8]
SHR RAX,0x18
MOV byte ptr [RBP + -0x64],AL
MOV RAX,qword ptr [RBP + -0x78]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e8]
MOV RDI,qword ptr [RBP + -0x78]
LEA RSI,[RBP + -0x68]
MOV RCX,qword ptr [RBP + -0x80]
ADD RCX,0xc
MOV EDX,0x8
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001aabec
JMP 0x001aabe3
LAB_001aabe3:
MOV dword ptr [RBP + -0x6c],0x1
JMP 0x001aac0d
LAB_001aabec:
JMP 0x001aac02
LAB_001aabee:
CALL 0x001f6090
MOV dword ptr [RAX],0x7f
MOV dword ptr [RBP + -0x6c],0x1
JMP 0x001aac0d
LAB_001aac02:
JMP 0x001aac04
LAB_001aac04:
JMP 0x001aac06
LAB_001aac06:
MOV dword ptr [RBP + -0x6c],0x0
LAB_001aac0d:
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0xac],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001aac37
MOV EAX,dword ptr [RBP + -0xac]
ADD RSP,0xb0
POP RBP
RET
LAB_001aac37:
CALL 0x0012a270
|
int4 update_backward_delete_link(long *param_1,long param_2,int8 param_3)
{
uint uVar1;
long lVar2;
int4 *puVar3;
long in_FS_OFFSET;
int4 local_74;
int1 local_70;
int1 local_6f;
int1 local_6e;
int1 local_6d;
int1 local_6c;
int1 local_6b;
int1 local_6a;
int1 local_69;
int1 local_68 [80];
int4 local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if (param_2 != -1) {
local_18 = 0;
uVar1 = _mi_get_block_info(local_68,(int)param_1[0x38],param_2);
if ((uVar1 & 4) == 0) {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7f;
local_74 = 1;
goto LAB_001aac0d;
}
local_6d = (int1)((ulong)param_3 >> 0x20);
local_6e = (int1)((ulong)param_3 >> 0x28);
local_6f = (int1)((ulong)param_3 >> 0x30);
local_70 = (int1)((ulong)param_3 >> 0x38);
local_69 = (int1)param_3;
local_6a = (int1)((ulong)param_3 >> 8);
local_6b = (int1)((ulong)param_3 >> 0x10);
local_6c = (int1)((ulong)param_3 >> 0x18);
lVar2 = (**(code **)(*param_1 + 0x2e8))(param_1,&local_70,8,param_2 + 0xc,4);
if (lVar2 != 0) {
local_74 = 1;
goto LAB_001aac0d;
}
}
local_74 = 0;
LAB_001aac0d:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return local_74;
}
| |
43,793 | mi_ft_segiterator_dummy_init | eloqsql/storage/myisam/ft_update.c | void _mi_ft_segiterator_dummy_init(const uchar *record, uint len,
FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_mi_ft_segiterator_dummy_init");
ftsi->num=1;
ftsi->seg=0;
ftsi->pos=record;
ftsi->len=len;
DBUG_VOID_RETURN;
} | O3 | c | mi_ft_segiterator_dummy_init:
pushq %rbp
movq %rsp, %rbp
movl $0x1, (%rdx)
movq $0x0, 0x8(%rdx)
movq %rdi, 0x18(%rdx)
movl %esi, 0x4(%rdx)
popq %rbp
retq
| _mi_ft_segiterator_dummy_init:
push rbp
mov rbp, rsp
mov dword ptr [rdx], 1
mov qword ptr [rdx+8], 0
mov [rdx+18h], rdi
mov [rdx+4], esi
pop rbp
retn
| void mi_ft_segiterator_dummy_init(long long a1, int a2, long long a3)
{
*(_DWORD *)a3 = 1;
*(_QWORD *)(a3 + 8) = 0LL;
*(_QWORD *)(a3 + 24) = a1;
*(_DWORD *)(a3 + 4) = a2;
}
| _mi_ft_segiterator_dummy_init:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDX],0x1
MOV qword ptr [RDX + 0x8],0x0
MOV qword ptr [RDX + 0x18],RDI
MOV dword ptr [RDX + 0x4],ESI
POP RBP
RET
|
void _mi_ft_segiterator_dummy_init(int8 param_1,int4 param_2,int4 *param_3)
{
*param_3 = 1;
*(int8 *)(param_3 + 2) = 0;
*(int8 *)(param_3 + 6) = param_1;
param_3[1] = param_2;
return;
}
| |
43,794 | testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&> const&) | seiftnesse[P]memoryallocator/build_O2/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h | static const MatcherDescriberInterface* GetDescriberImpl(
const MatcherBase& m) {
// If the impl is a MatcherDescriberInterface, then return it.
// Otherwise use MatcherBase itself.
// This allows us to implement the GetDescriber() function without support
// from the impl, but some users really want to get their impl back when
// they call GetDescriber().
// We use std::get on a tuple as a workaround of not having `if constexpr`.
return std::get<(
std::is_convertible<decltype(&P::Get(m)),
const MatcherDescriberInterface*>::value
? 1
: 0)>(std::make_tuple(&m, &P::Get(m)));
} | O2 | c | testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, false>>(testing::internal::MatcherBase<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&> const&):
movq %rdi, %rax
retq
| _ZN7testing8internal11MatcherBaseIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE16GetDescriberImplINSA_11ValuePolicyINS0_9EqMatcherIS7_EELb0EEEEEPKNS_25MatcherDescriberInterfaceERKSA_:
mov rax, rdi
retn
| long long testing::internal::MatcherBase<std::string const&>::GetDescriberImpl<testing::internal::MatcherBase<std::string const&>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(
long long a1)
{
return a1;
}
| GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::string_const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>:
MOV RAX,RDI
RET
|
/* testing::MatcherDescriberInterface const* testing::internal::MatcherBase<std::__cxx11::string
const&>::GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::string
const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string >, false>
>(testing::internal::MatcherBase<std::__cxx11::string const&> const&) */
MatcherDescriberInterface *
testing::internal::MatcherBase<std::__cxx11::string_const&>::
GetDescriberImpl<testing::internal::MatcherBase<std::__cxx11::string_const&>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>
(MatcherBase *param_1)
{
return (MatcherDescriberInterface *)param_1;
}
| |
43,795 | bf_const_log2_internal | bluesky950520[P]quickjs/libbf.c | static void bf_const_log2_internal(bf_t *T, limb_t prec)
{
limb_t w, N;
bf_t P_s, *P = &P_s;
bf_t Q_s, *Q = &Q_s;
w = prec + 15;
N = w / 3 + 1;
bf_init(T->ctx, P);
bf_init(T->ctx, Q);
bf_const_log2_rec(T, P, Q, 0, N, FALSE);
bf_div(T, T, Q, prec, BF_RNDN);
bf_delete(P);
bf_delete(Q);
} | O2 | c | bf_const_log2_internal:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xf(%rsi), %rax
pushq $0x3
popq %rcx
xorl %edx, %edx
divq %rcx
movq (%rdi), %rcx
leaq 0x30(%rsp), %r15
movq %rcx, (%r15)
andl $0x0, 0x8(%r15)
leaq 0x1(%rax), %r8
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%r15)
leaq 0x8(%rsp), %r12
movq %rcx, (%r12)
andl $0x0, 0x8(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r15)
movq %rax, 0x10(%r12)
movups %xmm0, 0x18(%r12)
movq %r15, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0x7d3cf
movq %r14, %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x758a2
movq %r15, %rdi
callq 0x7500e
movq %r12, %rdi
callq 0x7500e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| bf_const_log2_internal:
push r15
push r14
push r12
push rbx
sub rsp, 58h
mov rbx, rsi
mov r14, rdi
lea rax, [rsi+0Fh]
push 3
pop rcx
xor edx, edx
div rcx
mov rcx, [rdi]
lea r15, [rsp+78h+var_48]
mov [r15], rcx
and dword ptr [r15+8], 0
lea r8, [rax+1]
mov rax, 8000000000000000h
mov [r15+10h], rax
lea r12, [rsp+78h+var_70]
mov [r12], rcx
and dword ptr [r12+8], 0
xorps xmm0, xmm0
movups xmmword ptr [r15+18h], xmm0
mov [r12+10h], rax
movups xmmword ptr [r12+18h], xmm0
mov rsi, r15
mov rdx, r12
xor ecx, ecx
xor r9d, r9d
call bf_const_log2_rec
mov rdi, r14
mov rsi, r14
mov rdx, r12
mov rcx, rbx
xor r8d, r8d
call bf_div
mov rdi, r15
call bf_delete_0
mov rdi, r12
call bf_delete_0
add rsp, 58h
pop rbx
pop r12
pop r14
pop r15
retn
| long long bf_const_log2_internal(__int128 *a1, long long a2)
{
__int128 v3; // [rsp+8h] [rbp-70h] BYREF
unsigned long long v4; // [rsp+18h] [rbp-60h]
__int128 v5; // [rsp+20h] [rbp-58h]
long long v6; // [rsp+30h] [rbp-48h] BYREF
int v7; // [rsp+38h] [rbp-40h]
unsigned long long v8; // [rsp+40h] [rbp-38h]
__int128 v9; // [rsp+48h] [rbp-30h]
v6 = *(_QWORD *)a1;
v7 = 0;
v8 = 0x8000000000000000LL;
*(_QWORD *)&v3 = v6;
DWORD2(v3) = 0;
v9 = 0LL;
v4 = 0x8000000000000000LL;
v5 = 0LL;
bf_const_log2_rec(a1, &v6, &v3, 0LL, (a2 + 15) / 3uLL + 1, 0LL);
bf_div(a1, a1, &v3, a2, 0LL);
bf_delete_0(&v6);
return bf_delete_0((long long *)&v3);
}
| bf_const_log2_internal:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV RBX,RSI
MOV R14,RDI
LEA RAX,[RSI + 0xf]
PUSH 0x3
POP RCX
XOR EDX,EDX
DIV RCX
MOV RCX,qword ptr [RDI]
LEA R15,[RSP + 0x30]
MOV qword ptr [R15],RCX
AND dword ptr [R15 + 0x8],0x0
LEA R8,[RAX + 0x1]
MOV RAX,-0x8000000000000000
MOV qword ptr [R15 + 0x10],RAX
LEA R12,[RSP + 0x8]
MOV qword ptr [R12],RCX
AND dword ptr [R12 + 0x8],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R15 + 0x18],XMM0
MOV qword ptr [R12 + 0x10],RAX
MOVUPS xmmword ptr [R12 + 0x18],XMM0
MOV RSI,R15
MOV RDX,R12
XOR ECX,ECX
XOR R9D,R9D
CALL 0x0017d3cf
MOV RDI,R14
MOV RSI,R14
MOV RDX,R12
MOV RCX,RBX
XOR R8D,R8D
CALL 0x001758a2
MOV RDI,R15
CALL 0x0017500e
MOV RDI,R12
CALL 0x0017500e
ADD RSP,0x58
POP RBX
POP R12
POP R14
POP R15
RET
|
void bf_const_log2_internal(int8 *param_1,long param_2)
{
int8 local_70;
int4 local_68;
int8 local_60;
int8 local_58;
int8 uStack_50;
int8 local_48;
int4 local_40;
int8 local_38;
int8 local_30;
int8 uStack_28;
local_70 = *param_1;
local_40 = 0;
local_38 = 0x8000000000000000;
local_68 = 0;
local_30 = 0;
uStack_28 = 0;
local_60 = 0x8000000000000000;
local_58 = 0;
uStack_50 = 0;
local_48 = local_70;
bf_const_log2_rec(param_1,&local_48,&local_70,0,(param_2 + 0xfU) / 3 + 1,0);
bf_div(param_1,param_1,&local_70,param_2,0);
bf_delete(&local_48);
bf_delete(&local_70);
return;
}
| |
43,796 | inline_mysql_rwlock_unlock | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_rwlock_unlock(
mysql_rwlock_t *that)
{
int result;
#ifdef HAVE_PSI_RWLOCK_INTERFACE
if (psi_likely(that->m_psi != NULL))
PSI_RWLOCK_CALL(unlock_rwlock)(that->m_psi);
#endif
result= rw_unlock(&that->m_rwlock);
return result;
} | O0 | c | inline_mysql_rwlock_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x90(%rax)
setne %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0xc5ac1
leaq 0x1fa78e(%rip), %rax # 0x2c0238
movq (%rax), %rax
movq 0x168(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0xfa2a0
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| inline_mysql_rwlock_unlock_7:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+90h], 0
setnz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_C5AC1
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+168h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
loc_C5AC1:
mov rdi, [rbp+var_8]
call my_rw_unlock
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
add rsp, 10h
pop rbp
retn
| long long inline_mysql_rwlock_unlock_7(long long a1)
{
if ( *(_QWORD *)(a1 + 144) )
((void ( *)(_QWORD))PSI_server[45])(*(_QWORD *)(a1 + 144));
return (unsigned int)my_rw_unlock(a1);
}
| inline_mysql_rwlock_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x90],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001c5ac1
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x168]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x90]
CALL RAX
LAB_001c5ac1:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fa2a0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
ADD RSP,0x10
POP RBP
RET
|
int4 inline_mysql_rwlock_unlock(long param_1)
{
int4 uVar1;
if (*(long *)(param_1 + 0x90) != 0) {
(**(code **)(PSI_server + 0x168))(*(int8 *)(param_1 + 0x90));
}
uVar1 = my_rw_unlock(param_1);
return uVar1;
}
| |
43,797 | bitmap_is_subset | eloqsql/mysys/my_bitmap.c | my_bool bitmap_is_subset(const MY_BITMAP *map1, const MY_BITMAP *map2)
{
my_bitmap_map *m1= map1->bitmap, *m2= map2->bitmap, *end;
DBUG_ASSERT(map1->bitmap && map2->bitmap);
DBUG_ASSERT(map1->n_bits==map2->n_bits);
end= map1->last_word_ptr;
while (m1 < end)
{
if ((*m1++) & ~(*m2++))
return 0;
}
/* here both maps have the same number of bits - see assert above */
return ((*m1 & ~*m2 & ~map1->last_word_mask) ? 0 : 1);
} | O3 | c | bitmap_is_subset:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
movq (%rsi), %rcx
cmpq %rdx, %rax
jae 0x9d67e
leaq 0x4(%rax), %rsi
movl (%rcx), %r8d
addq $0x4, %rcx
notl %r8d
testl %r8d, (%rax)
movq %rsi, %rax
je 0x9d65f
xorl %eax, %eax
jmp 0x9d68a
movl 0x18(%rdi), %edx
orl (%rcx), %edx
notl %edx
testl %edx, (%rax)
sete %al
popq %rbp
retq
| bitmap_is_subset:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rdx, [rdi+8]
mov rcx, [rsi]
loc_9D65F:
cmp rax, rdx
jnb short loc_9D67E
lea rsi, [rax+4]
mov r8d, [rcx]
add rcx, 4
not r8d
test [rax], r8d
mov rax, rsi
jz short loc_9D65F
xor eax, eax
jmp short loc_9D68A
loc_9D67E:
mov edx, [rdi+18h]
or edx, [rcx]
not edx
test [rax], edx
setz al
loc_9D68A:
pop rbp
retn
| bool bitmap_is_subset(long long a1, int **a2)
{
_DWORD *v2; // rax
int *v3; // rcx
int v4; // r8d
v2 = *(_DWORD **)a1;
v3 = *a2;
while ( (unsigned long long)v2 < *(_QWORD *)(a1 + 8) )
{
v4 = *v3++;
if ( (~v4 & *v2++) != 0 )
return 0;
}
return (~(*v3 | *(_DWORD *)(a1 + 24)) & *v2) == 0;
}
| bitmap_is_subset:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI]
LAB_0019d65f:
CMP RAX,RDX
JNC 0x0019d67e
LEA RSI,[RAX + 0x4]
MOV R8D,dword ptr [RCX]
ADD RCX,0x4
NOT R8D
TEST dword ptr [RAX],R8D
MOV RAX,RSI
JZ 0x0019d65f
XOR EAX,EAX
JMP 0x0019d68a
LAB_0019d67e:
MOV EDX,dword ptr [RDI + 0x18]
OR EDX,dword ptr [RCX]
NOT EDX
TEST dword ptr [RAX],EDX
SETZ AL
LAB_0019d68a:
POP RBP
RET
|
int8 bitmap_is_subset(int8 *param_1,int8 *param_2)
{
uint uVar1;
uint uVar2;
uint *puVar3;
uint *puVar4;
puVar4 = (uint *)*param_2;
puVar3 = (uint *)*param_1;
do {
if ((uint *)param_1[1] <= puVar3) {
return CONCAT71((int7)((ulong)puVar3 >> 8),
(*puVar3 & ~(*(uint *)(param_1 + 3) | *puVar4)) == 0);
}
uVar1 = *puVar4;
puVar4 = puVar4 + 1;
uVar2 = *puVar3;
puVar3 = puVar3 + 1;
} while ((uVar2 & ~uVar1) == 0);
return 0;
}
| |
43,798 | ma_check_index_cond | eloqsql/storage/maria/ma_key.c | check_result_t ma_check_index_cond(register MARIA_HA *info, uint keynr,
uchar *record)
{
check_result_t res= CHECK_POS;
if (info->index_cond_func)
{
if (_ma_put_key_in_record(info, keynr, FALSE, record))
{
/* Impossible case; Can only happen if bug in code */
_ma_print_error(info, HA_ERR_CRASHED, 0);
info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */
my_errno= HA_ERR_CRASHED;
res= CHECK_ERROR;
}
else if ((res= info->index_cond_func(info->index_cond_func_arg)) ==
CHECK_OUT_OF_RANGE)
{
/* We got beyond the end of scanned range */
info->cur_row.lastpos= HA_OFFSET_ERROR; /* No active record */
my_errno= HA_ERR_END_OF_FILE;
}
}
return res;
} | O0 | c | ma_check_index_cond:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x1, -0x1c(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x6f8(%rax)
je 0x3a3e4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rcx
xorl %edx, %edx
callq 0x39cf0
cmpl $0x0, %eax
je 0x3a3a6
movq -0x8(%rbp), %rdi
movl $0x7e, %esi
xorl %edx, %edx
callq 0x38990
movq -0x8(%rbp), %rax
movq $-0x1, 0x98(%rax)
callq 0xc0d80
movl $0x7e, (%rax)
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
jmp 0x3a3e2
movq -0x8(%rbp), %rax
movq 0x6f8(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x700(%rcx), %rdi
callq *%rax
movl %eax, -0x1c(%rbp)
cmpl $0x2, %eax
jne 0x3a3e0
movq -0x8(%rbp), %rax
movq $-0x1, 0x98(%rax)
callq 0xc0d80
movl $0x89, (%rax)
jmp 0x3a3e2
jmp 0x3a3e4
movl -0x1c(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| ma_check_index_cond:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_1C], 1
mov rax, [rbp+var_8]
cmp qword ptr [rax+6F8h], 0
jz loc_3A3E4
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rcx, [rbp+var_18]
xor edx, edx
call _ma_put_key_in_record
cmp eax, 0
jz short loc_3A3A6
mov rdi, [rbp+var_8]
mov esi, 7Eh ; '~'
xor edx, edx
call _ma_print_error
mov rax, [rbp+var_8]
mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_1C], 0FFFFFFFFh
jmp short loc_3A3E2
loc_3A3A6:
mov rax, [rbp+var_8]
mov rax, [rax+6F8h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+700h]
call rax
mov [rbp+var_1C], eax
cmp eax, 2
jnz short loc_3A3E0
mov rax, [rbp+var_8]
mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov dword ptr [rax], 89h
loc_3A3E0:
jmp short $+2
loc_3A3E2:
jmp short $+2
loc_3A3E4:
mov eax, [rbp+var_1C]
add rsp, 20h
pop rbp
retn
| long long ma_check_index_cond(long long a1, unsigned int a2, long long a3)
{
long long v3; // rcx
long long v4; // r8
int v5; // r9d
unsigned int v7; // [rsp+4h] [rbp-1Ch]
v7 = 1;
if ( *(_QWORD *)(a1 + 1784) )
{
if ( (unsigned int)ma_put_key_in_record(a1, a2, 0, a3) )
{
ma_print_error((_DWORD *)a1, 126, 0, v3, v4, v5);
*(_QWORD *)(a1 + 152) = -1LL;
*(_DWORD *)my_thread_var() = 126;
return (unsigned int)-1;
}
else
{
v7 = (*(long long ( **)(_QWORD))(a1 + 1784))(*(_QWORD *)(a1 + 1792));
if ( v7 == 2 )
{
*(_QWORD *)(a1 + 152) = -1LL;
*(_DWORD *)my_thread_var() = 137;
}
}
}
return v7;
}
| ma_check_index_cond:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],0x1
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x6f8],0x0
JZ 0x0013a3e4
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x18]
XOR EDX,EDX
CALL 0x00139cf0
CMP EAX,0x0
JZ 0x0013a3a6
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,0x7e
XOR EDX,EDX
CALL 0x00138990
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x98],-0x1
CALL 0x001c0d80
MOV dword ptr [RAX],0x7e
MOV dword ptr [RBP + -0x1c],0xffffffff
JMP 0x0013a3e2
LAB_0013a3a6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x6f8]
MOV RCX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RCX + 0x700]
CALL RAX
MOV dword ptr [RBP + -0x1c],EAX
CMP EAX,0x2
JNZ 0x0013a3e0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x98],-0x1
CALL 0x001c0d80
MOV dword ptr [RAX],0x89
LAB_0013a3e0:
JMP 0x0013a3e2
LAB_0013a3e2:
JMP 0x0013a3e4
LAB_0013a3e4:
MOV EAX,dword ptr [RBP + -0x1c]
ADD RSP,0x20
POP RBP
RET
|
int ma_check_index_cond(long param_1,int4 param_2,int8 param_3)
{
int iVar1;
int4 *puVar2;
int4 local_24;
local_24 = 1;
if (*(long *)(param_1 + 0x6f8) != 0) {
iVar1 = _ma_put_key_in_record(param_1,param_2,0,param_3);
if (iVar1 == 0) {
local_24 = (**(code **)(param_1 + 0x6f8))(*(int8 *)(param_1 + 0x700));
if (local_24 == 2) {
*(int8 *)(param_1 + 0x98) = 0xffffffffffffffff;
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x89;
}
}
else {
_ma_print_error(param_1,0x7e,0);
*(int8 *)(param_1 + 0x98) = 0xffffffffffffffff;
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
local_24 = -1;
}
}
return local_24;
}
| |
43,799 | 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 0x394dd
movq %rdx, %rcx
movq %rdi, %rbx
xorl %edx, %edx
callq 0x3909d
testl %eax, %eax
je 0x394e5
movl $0x7e, %r15d
movq %rbx, %rdi
movl $0x7e, %esi
xorl %edx, %edx
callq 0x3863a
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x39506
movl $0x1, %r14d
jmp 0x39519
movq 0x700(%rbx), %rdi
callq *0x6f8(%rbx)
movl %eax, %r14d
cmpl $0x2, %eax
jne 0x39519
movl $0x2, %r14d
movl $0x89, %r15d
movq $-0x1, 0x98(%rbx)
callq 0x85b0e
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_394DD
mov rcx, rdx
mov rbx, rdi
xor edx, edx
call _ma_put_key_in_record
test eax, eax
jz short loc_394E5
mov r15d, 7Eh ; '~'
mov rdi, rbx
mov esi, 7Eh ; '~'
xor edx, edx
call _ma_print_error
mov r14d, 0FFFFFFFFh
jmp short loc_39506
loc_394DD:
mov r14d, 1
jmp short loc_39519
loc_394E5:
mov rdi, [rbx+700h]
call qword ptr [rbx+6F8h]
mov r14d, eax
cmp eax, 2
jnz short loc_39519
mov r14d, 2
mov r15d, 89h
loc_39506:
mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov [rax], r15d
loc_39519:
mov eax, r14d
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| long long ma_check_index_cond(long long a1, unsigned int 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, a2, 0, a3) )
{
v7 = 126;
ma_print_error((_DWORD *)a1, 126, 0, v4, v5, v6);
v8 = -1;
LABEL_7:
*(_QWORD *)(v3 + 152) = -1LL;
*(_DWORD *)my_thread_var(a1) = 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 0x001394dd
MOV RCX,RDX
MOV RBX,RDI
XOR EDX,EDX
CALL 0x0013909d
TEST EAX,EAX
JZ 0x001394e5
MOV R15D,0x7e
MOV RDI,RBX
MOV ESI,0x7e
XOR EDX,EDX
CALL 0x0013863a
MOV R14D,0xffffffff
JMP 0x00139506
LAB_001394dd:
MOV R14D,0x1
JMP 0x00139519
LAB_001394e5:
MOV RDI,qword ptr [RBX + 0x700]
CALL qword ptr [RBX + 0x6f8]
MOV R14D,EAX
CMP EAX,0x2
JNZ 0x00139519
MOV R14D,0x2
MOV R15D,0x89
LAB_00139506:
MOV qword ptr [RBX + 0x98],-0x1
CALL 0x00185b0e
MOV dword ptr [RAX],R15D
LAB_00139519:
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;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.