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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
13,300
|
js_parse_destructuring_var
|
bluesky950520[P]quickjs/quickjs.c
|
static JSAtom js_parse_destructuring_var(JSParseState *s, int tok, int is_arg)
{
JSAtom name;
if (!(s->token.val == TOK_IDENT && !s->token.u.ident.is_reserved)
|| (s->cur_func->is_strict_mode &&
(s->token.u.ident.atom == JS_ATOM_eval || s->token.u.ident.atom == JS_ATOM_arguments))) {
js_parse_error(s, "invalid destructuring target");
return JS_ATOM_NULL;
}
name = JS_DupAtom(s->ctx, s->token.u.ident.atom);
if (is_arg && js_parse_check_duplicate_parameter(s, name))
goto fail;
if (next_token(s))
goto fail;
return name;
fail:
JS_FreeAtom(s->ctx, name);
return JS_ATOM_NULL;
}
|
O0
|
c
|
js_parse_destructuring_var:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
movl %edx, 0x10(%rsp)
movq 0x18(%rsp), %rax
cmpl $-0x7d, 0x20(%rax)
jne 0xae22c
movq 0x18(%rsp), %rax
cmpl $0x0, 0x40(%rax)
jne 0xae22c
movq 0x18(%rsp), %rax
movq 0x90(%rax), %rax
movw 0x84(%rax), %ax
shrw $0xf, %ax
movzbl %al, %eax
cmpl $0x0, %eax
je 0xae249
movq 0x18(%rsp), %rax
cmpl $0x3b, 0x38(%rax)
je 0xae22c
movq 0x18(%rsp), %rax
cmpl $0x4e, 0x38(%rax)
jne 0xae249
movq 0x18(%rsp), %rdi
leaq 0x67bd2(%rip), %rsi # 0x115e0a
movb $0x0, %al
callq 0x4e980
movl $0x0, 0x24(%rsp)
jmp 0xae2b2
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movl 0x38(%rax), %esi
callq 0x2e290
movl %eax, 0xc(%rsp)
cmpl $0x0, 0x10(%rsp)
je 0xae27e
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0xacfc0
cmpl $0x0, %eax
je 0xae27e
jmp 0xae299
movq 0x18(%rsp), %rdi
callq 0xa32b0
cmpl $0x0, %eax
je 0xae28f
jmp 0xae299
movl 0xc(%rsp), %eax
movl %eax, 0x24(%rsp)
jmp 0xae2b2
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl 0xc(%rsp), %esi
callq 0x2f330
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
|
js_parse_destructuring_var:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_14], esi
mov [rsp+28h+var_18], edx
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+20h], 0FFFFFF83h
jnz short loc_AE22C
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+40h], 0
jnz short loc_AE22C
mov rax, [rsp+28h+var_10]
mov rax, [rax+90h]
mov ax, [rax+84h]
shr ax, 0Fh
movzx eax, al
cmp eax, 0
jz short loc_AE249
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+38h], 3Bh ; ';'
jz short loc_AE22C
mov rax, [rsp+28h+var_10]
cmp dword ptr [rax+38h], 4Eh ; 'N'
jnz short loc_AE249
loc_AE22C:
mov rdi, [rsp+28h+var_10]
lea rsi, aInvalidDestruc; "invalid destructuring target"
mov al, 0
call js_parse_error
mov [rsp+28h+var_4], 0
jmp short loc_AE2B2
loc_AE249:
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
mov rax, [rsp+28h+var_10]
mov esi, [rax+38h]
call JS_DupAtom
mov [rsp+28h+var_1C], eax
cmp [rsp+28h+var_18], 0
jz short loc_AE27E
mov rdi, [rsp+28h+var_10]
mov esi, [rsp+28h+var_1C]
call js_parse_check_duplicate_parameter
cmp eax, 0
jz short loc_AE27E
jmp short loc_AE299
loc_AE27E:
mov rdi, [rsp+28h+var_10]
call next_token
cmp eax, 0
jz short loc_AE28F
jmp short loc_AE299
loc_AE28F:
mov eax, [rsp+28h+var_1C]
mov [rsp+28h+var_4], eax
jmp short loc_AE2B2
loc_AE299:
mov rax, [rsp+28h+var_10]
mov rdi, [rax]
mov esi, [rsp+28h+var_1C]
call JS_FreeAtom
mov [rsp+28h+var_4], 0
loc_AE2B2:
mov eax, [rsp+28h+var_4]
add rsp, 28h
retn
|
long long js_parse_destructuring_var(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14)
{
long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
__m128 v18; // xmm4
__m128 v19; // xmm5
char v21; // [rsp+0h] [rbp-28h]
unsigned int v22; // [rsp+Ch] [rbp-1Ch]
int v23; // [rsp+10h] [rbp-18h]
v23 = a11;
if ( *(_DWORD *)(a1 + 32) != -125
|| *(_DWORD *)(a1 + 64)
|| *(__int16 *)(*(_QWORD *)(a1 + 144) + 132LL) < 0 && (*(_DWORD *)(a1 + 56) == 59 || *(_DWORD *)(a1 + 56) == 78) )
{
js_parse_error(
(_QWORD *)a1,
(long long)"invalid destructuring target",
a11,
a12,
a13,
a14,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
v21);
return 0;
}
else
{
v22 = JS_DupAtom(*(_QWORD *)a1, *(_DWORD *)(a1 + 56));
if ( v23
&& (unsigned int)js_parse_check_duplicate_parameter(
(_QWORD *)a1,
v22,
v14,
a2,
a3,
a4,
a5,
v18,
v19,
a8,
a9,
v15,
v16,
v17)
|| (unsigned int)next_token(
(long long *)a1,
a2,
a3,
a4,
a5,
*(double *)v18.m128_u64,
*(double *)v19.m128_u64,
a8,
a9) )
{
JS_FreeAtom(*(_QWORD *)a1, v22);
return 0;
}
else
{
return v22;
}
}
}
|
js_parse_destructuring_var:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV dword ptr [RSP + 0x14],ESI
MOV dword ptr [RSP + 0x10],EDX
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x20],-0x7d
JNZ 0x001ae22c
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x40],0x0
JNZ 0x001ae22c
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x90]
MOV AX,word ptr [RAX + 0x84]
SHR AX,0xf
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x001ae249
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x38],0x3b
JZ 0x001ae22c
MOV RAX,qword ptr [RSP + 0x18]
CMP dword ptr [RAX + 0x38],0x4e
JNZ 0x001ae249
LAB_001ae22c:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[0x215e0a]
MOV AL,0x0
CALL 0x0014e980
MOV dword ptr [RSP + 0x24],0x0
JMP 0x001ae2b2
LAB_001ae249:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RAX + 0x38]
CALL 0x0012e290
MOV dword ptr [RSP + 0xc],EAX
CMP dword ptr [RSP + 0x10],0x0
JZ 0x001ae27e
MOV RDI,qword ptr [RSP + 0x18]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x001acfc0
CMP EAX,0x0
JZ 0x001ae27e
JMP 0x001ae299
LAB_001ae27e:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001a32b0
CMP EAX,0x0
JZ 0x001ae28f
JMP 0x001ae299
LAB_001ae28f:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [RSP + 0x24],EAX
JMP 0x001ae2b2
LAB_001ae299:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x0012f330
MOV dword ptr [RSP + 0x24],0x0
LAB_001ae2b2:
MOV EAX,dword ptr [RSP + 0x24]
ADD RSP,0x28
RET
|
int4 js_parse_destructuring_var(int8 *param_1,int8 param_2,int param_3)
{
int iVar1;
int4 local_4;
if (((*(int *)(param_1 + 4) == -0x7d) && (*(int *)(param_1 + 8) == 0)) &&
((-1 < *(short *)(param_1[0x12] + 0x84) ||
((*(int *)(param_1 + 7) != 0x3b && (*(int *)(param_1 + 7) != 0x4e)))))) {
local_4 = JS_DupAtom(*param_1,*(int4 *)(param_1 + 7));
if (((param_3 != 0) && (iVar1 = js_parse_check_duplicate_parameter(param_1,local_4), iVar1 != 0)
) || (iVar1 = next_token(param_1), iVar1 != 0)) {
JS_FreeAtom(*param_1,local_4);
local_4 = 0;
}
}
else {
js_parse_error(param_1,"invalid destructuring target");
local_4 = 0;
}
return local_4;
}
|
|
13,301
|
js_parse_destructuring_var
|
bluesky950520[P]quickjs/quickjs.c
|
static JSAtom js_parse_destructuring_var(JSParseState *s, int tok, int is_arg)
{
JSAtom name;
if (!(s->token.val == TOK_IDENT && !s->token.u.ident.is_reserved)
|| (s->cur_func->is_strict_mode &&
(s->token.u.ident.atom == JS_ATOM_eval || s->token.u.ident.atom == JS_ATOM_arguments))) {
js_parse_error(s, "invalid destructuring target");
return JS_ATOM_NULL;
}
name = JS_DupAtom(s->ctx, s->token.u.ident.atom);
if (is_arg && js_parse_check_duplicate_parameter(s, name))
goto fail;
if (next_token(s))
goto fail;
return name;
fail:
JS_FreeAtom(s->ctx, name);
return JS_ATOM_NULL;
}
|
O2
|
c
|
js_parse_destructuring_var:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
cmpl $-0x7d, 0x20(%rdi)
jne 0x5a310
cmpl $0x0, 0x40(%r14)
je 0x5a32d
leaq 0x30a41(%rip), %rsi # 0x8ad58
xorl %ebx, %ebx
movq %r14, %rdi
xorl %eax, %eax
callq 0x2c007
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x90(%r14), %rax
cmpw $0x0, 0x84(%rax)
movl 0x38(%r14), %ebx
js 0x5a387
cmpl $0xe0, %ebx
jl 0x5a35b
movq (%r14), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %rax
movq (%rax,%rbx,8), %rax
incl (%rax)
testl %esi, %esi
je 0x5a36d
movq %r14, %rdi
movl %ebx, %esi
callq 0x59b7f
testl %eax, %eax
jne 0x5a379
movq %r14, %rdi
callq 0x535fe
testl %eax, %eax
je 0x5a323
movq (%r14), %rdi
movl %ebx, %esi
callq 0x1e545
xorl %ebx, %ebx
jmp 0x5a323
cmpl $0x4e, %ebx
je 0x5a310
cmpl $0x3b, %ebx
je 0x5a310
jmp 0x5a342
|
js_parse_destructuring_var:
push r14
push rbx
push rax
mov r14, rdi
cmp dword ptr [rdi+20h], 0FFFFFF83h
jnz short loc_5A310
cmp dword ptr [r14+40h], 0
jz short loc_5A32D
loc_5A310:
lea rsi, aInvalidDestruc; "invalid destructuring target"
xor ebx, ebx
mov rdi, r14
xor eax, eax
call js_parse_error
loc_5A323:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
retn
loc_5A32D:
mov rax, [r14+90h]
cmp word ptr [rax+84h], 0
mov ebx, [r14+38h]
js short loc_5A387
loc_5A342:
cmp ebx, 0E0h
jl short loc_5A35B
mov rax, [r14]
mov rax, [rax+18h]
mov rax, [rax+68h]
mov rax, [rax+rbx*8]
inc dword ptr [rax]
loc_5A35B:
test esi, esi
jz short loc_5A36D
mov rdi, r14
mov esi, ebx
call js_parse_check_duplicate_parameter
test eax, eax
jnz short loc_5A379
loc_5A36D:
mov rdi, r14
call next_token
test eax, eax
jz short loc_5A323
loc_5A379:
mov rdi, [r14]
mov esi, ebx
call JS_FreeAtom
xor ebx, ebx
jmp short loc_5A323
loc_5A387:
cmp ebx, 4Eh ; 'N'
jz short loc_5A310
cmp ebx, 3Bh ; ';'
jz loc_5A310
jmp short loc_5A342
|
long long js_parse_destructuring_var(
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 v14; // al
long long v15; // rbx
_DWORD *v17; // rax
if ( *(_DWORD *)(a1 + 32) != -125
|| *(_DWORD *)(a1 + 64)
|| (v15 = *(unsigned int *)(a1 + 56), *(__int16 *)(*(_QWORD *)(a1 + 144) + 132LL) < 0)
&& ((_DWORD)v15 == 78 || (_DWORD)v15 == 59) )
{
LODWORD(v15) = 0;
js_parse_error(
(long long *)a1,
(long long)"invalid destructuring target",
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v14);
}
else
{
if ( (int)v15 >= 224 )
{
v17 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 24LL) + 104LL) + 8 * v15);
++*v17;
}
if ( (_DWORD)a2
&& (a2 = (unsigned int)v15,
(unsigned int)js_parse_check_duplicate_parameter((long long *)a1, v15, a7, a8, a9, a10, a11, a12, a13, a14))
|| (unsigned int)next_token(a1, a2, a3, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6) )
{
JS_FreeAtom(*(_QWORD *)a1, v15);
LODWORD(v15) = 0;
}
}
return (unsigned int)v15;
}
|
js_parse_destructuring_var:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDI
CMP dword ptr [RDI + 0x20],-0x7d
JNZ 0x0015a310
CMP dword ptr [R14 + 0x40],0x0
JZ 0x0015a32d
LAB_0015a310:
LEA RSI,[0x18ad58]
XOR EBX,EBX
MOV RDI,R14
XOR EAX,EAX
CALL 0x0012c007
LAB_0015a323:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0015a32d:
MOV RAX,qword ptr [R14 + 0x90]
CMP word ptr [RAX + 0x84],0x0
MOV EBX,dword ptr [R14 + 0x38]
JS 0x0015a387
LAB_0015a342:
CMP EBX,0xe0
JL 0x0015a35b
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RAX + RBX*0x8]
INC dword ptr [RAX]
LAB_0015a35b:
TEST ESI,ESI
JZ 0x0015a36d
MOV RDI,R14
MOV ESI,EBX
CALL 0x00159b7f
TEST EAX,EAX
JNZ 0x0015a379
LAB_0015a36d:
MOV RDI,R14
CALL 0x001535fe
TEST EAX,EAX
JZ 0x0015a323
LAB_0015a379:
MOV RDI,qword ptr [R14]
MOV ESI,EBX
CALL 0x0011e545
XOR EBX,EBX
JMP 0x0015a323
LAB_0015a387:
CMP EBX,0x4e
JZ 0x0015a310
CMP EBX,0x3b
JZ 0x0015a310
JMP 0x0015a342
|
ulong js_parse_destructuring_var(long *param_1,int param_2)
{
uint uVar1;
int *piVar2;
int iVar3;
ulong uVar4;
if (((int)param_1[4] == -0x7d) && ((int)param_1[8] == 0)) {
uVar1 = *(uint *)(param_1 + 7);
uVar4 = (ulong)uVar1;
if ((-1 < *(short *)(param_1[0x12] + 0x84)) || ((uVar1 != 0x4e && (uVar1 != 0x3b)))) {
if (0xdf < (int)uVar1) {
piVar2 = *(int **)(*(long *)(*(long *)(*param_1 + 0x18) + 0x68) + uVar4 * 8);
*piVar2 = *piVar2 + 1;
}
if (((param_2 == 0) || (iVar3 = js_parse_check_duplicate_parameter(param_1,uVar1), iVar3 == 0)
) && (iVar3 = next_token(param_1), iVar3 == 0)) {
return uVar4;
}
JS_FreeAtom(*param_1,uVar4);
return 0;
}
}
js_parse_error(param_1,"invalid destructuring target");
return 0;
}
|
|
13,302
|
CLIPTokenizer::CLIPTokenizer(SDVersion)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
CLIPTokenizer(SDVersion version = VERSION_1_x)
: version(version) {}
|
O2
|
cpp
|
CLIPTokenizer::CLIPTokenizer(SDVersion):
movl %esi, (%rdi)
leaq 0x10(%rdi), %rax
andl $0x0, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
andq $0x0, 0x30(%rdi)
leaq 0x40(%rdi), %rax
andl $0x0, 0x40(%rdi)
andq $0x0, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
andq $0x0, 0x60(%rdi)
leaq 0x70(%rdi), %rax
andl $0x0, 0x70(%rdi)
andq $0x0, 0x78(%rdi)
movq %rax, 0x80(%rdi)
movq %rax, 0x88(%rdi)
andq $0x0, 0x90(%rdi)
addq $0x98, %rdi
jmp 0x21d00
nop
|
_ZN13CLIPTokenizerC2E9SDVersion:
mov [rdi], esi
lea rax, [rdi+10h]
and dword ptr [rdi+10h], 0
and qword ptr [rdi+18h], 0
mov [rdi+20h], rax
mov [rdi+28h], rax
and qword ptr [rdi+30h], 0
lea rax, [rdi+40h]
and dword ptr [rdi+40h], 0
and qword ptr [rdi+48h], 0
mov [rdi+50h], rax
mov [rdi+58h], rax
and qword ptr [rdi+60h], 0
lea rax, [rdi+70h]
and dword ptr [rdi+70h], 0
and qword ptr [rdi+78h], 0
mov [rdi+80h], rax
mov [rdi+88h], rax
and qword ptr [rdi+90h], 0
add rdi, 98h
jmp _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2Ev; std::basic_regex<char,std::regex_traits<char>>::basic_regex(void)
|
long long CLIPTokenizer::CLIPTokenizer(long long a1, int a2)
{
*(_DWORD *)a1 = a2;
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 32) = a1 + 16;
*(_QWORD *)(a1 + 40) = a1 + 16;
*(_QWORD *)(a1 + 48) = 0LL;
*(_DWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0LL;
*(_QWORD *)(a1 + 80) = a1 + 64;
*(_QWORD *)(a1 + 88) = a1 + 64;
*(_QWORD *)(a1 + 96) = 0LL;
*(_DWORD *)(a1 + 112) = 0;
*(_QWORD *)(a1 + 120) = 0LL;
*(_QWORD *)(a1 + 128) = a1 + 112;
*(_QWORD *)(a1 + 136) = a1 + 112;
*(_QWORD *)(a1 + 144) = 0LL;
return std::basic_regex<char,std::regex_traits<char>>::basic_regex(a1 + 152);
}
|
CLIPTokenizer:
MOV dword ptr [RDI],ESI
LEA RAX,[RDI + 0x10]
AND dword ptr [RDI + 0x10],0x0
AND qword ptr [RDI + 0x18],0x0
MOV qword ptr [RDI + 0x20],RAX
MOV qword ptr [RDI + 0x28],RAX
AND qword ptr [RDI + 0x30],0x0
LEA RAX,[RDI + 0x40]
AND dword ptr [RDI + 0x40],0x0
AND qword ptr [RDI + 0x48],0x0
MOV qword ptr [RDI + 0x50],RAX
MOV qword ptr [RDI + 0x58],RAX
AND qword ptr [RDI + 0x60],0x0
LEA RAX,[RDI + 0x70]
AND dword ptr [RDI + 0x70],0x0
AND qword ptr [RDI + 0x78],0x0
MOV qword ptr [RDI + 0x80],RAX
MOV qword ptr [RDI + 0x88],RAX
AND qword ptr [RDI + 0x90],0x0
ADD RDI,0x98
JMP 0x00121d00
|
/* CLIPTokenizer::CLIPTokenizer(SDVersion) */
void __thiscall CLIPTokenizer::CLIPTokenizer(CLIPTokenizer *this,int4 param_2)
{
*(int4 *)this = param_2;
*(int4 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(CLIPTokenizer **)(this + 0x20) = this + 0x10;
*(CLIPTokenizer **)(this + 0x28) = this + 0x10;
*(int8 *)(this + 0x30) = 0;
*(int4 *)(this + 0x40) = 0;
*(int8 *)(this + 0x48) = 0;
*(CLIPTokenizer **)(this + 0x50) = this + 0x40;
*(CLIPTokenizer **)(this + 0x58) = this + 0x40;
*(int8 *)(this + 0x60) = 0;
*(int4 *)(this + 0x70) = 0;
*(int8 *)(this + 0x78) = 0;
*(CLIPTokenizer **)(this + 0x80) = this + 0x70;
*(CLIPTokenizer **)(this + 0x88) = this + 0x70;
*(int8 *)(this + 0x90) = 0;
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)(this + 0x98));
return;
}
|
|
13,303
|
CLIPTokenizer::CLIPTokenizer(SDVersion)
|
7CodeWizard[P]stablediffusion/clip.hpp
|
CLIPTokenizer(SDVersion version = VERSION_1_x)
: version(version) {}
|
O3
|
cpp
|
CLIPTokenizer::CLIPTokenizer(SDVersion):
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
leaq 0x10(%rdi), %rax
xorl %ecx, %ecx
movl %ecx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
movq %rcx, 0x30(%rdi)
leaq 0x40(%rdi), %rax
movl %ecx, 0x40(%rdi)
movq %rcx, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
movq %rcx, 0x60(%rdi)
leaq 0x70(%rdi), %rax
movl %ecx, 0x70(%rdi)
movq %rcx, 0x78(%rdi)
movq %rax, 0x80(%rdi)
movq %rax, 0x88(%rdi)
movq %rcx, 0x90(%rdi)
movl $0x10, 0x98(%rdi)
addq $0xa0, %rdi
callq 0xac30
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%rbx)
popq %rbx
retq
|
_ZN13CLIPTokenizerC2E9SDVersion:
push rbx
mov rbx, rdi
mov [rdi], esi
lea rax, [rdi+10h]
xor ecx, ecx
mov [rdi+10h], ecx
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], rax
mov [rdi+30h], rcx
lea rax, [rdi+40h]
mov [rdi+40h], ecx
mov [rdi+48h], rcx
mov [rdi+50h], rax
mov [rdi+58h], rax
mov [rdi+60h], rcx
lea rax, [rdi+70h]
mov [rdi+70h], ecx
mov [rdi+78h], rcx
mov [rdi+80h], rax
mov [rdi+88h], rax
mov [rdi+90h], rcx
mov dword ptr [rdi+98h], 10h
add rdi, 0A0h; this
call __ZNSt6localeC1Ev; std::locale::locale(void)
xorps xmm0, xmm0
movups xmmword ptr [rbx+0A8h], xmm0
pop rbx
retn
|
long long CLIPTokenizer::CLIPTokenizer(long long a1, int a2)
{
long long result; // rax
*(_DWORD *)a1 = a2;
*(_DWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0LL;
*(_QWORD *)(a1 + 32) = a1 + 16;
*(_QWORD *)(a1 + 40) = a1 + 16;
*(_QWORD *)(a1 + 48) = 0LL;
*(_DWORD *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 72) = 0LL;
*(_QWORD *)(a1 + 80) = a1 + 64;
*(_QWORD *)(a1 + 88) = a1 + 64;
*(_QWORD *)(a1 + 96) = 0LL;
*(_DWORD *)(a1 + 112) = 0;
*(_QWORD *)(a1 + 120) = 0LL;
*(_QWORD *)(a1 + 128) = a1 + 112;
*(_QWORD *)(a1 + 136) = a1 + 112;
*(_QWORD *)(a1 + 144) = 0LL;
*(_DWORD *)(a1 + 152) = 16;
result = std::locale::locale((std::locale *)(a1 + 160));
*(_OWORD *)(a1 + 168) = 0LL;
return result;
}
| |||
13,304
|
ma_bitmap_flush_all
|
eloqsql/storage/maria/ma_bitmap.c
|
my_bool _ma_bitmap_flush_all(MARIA_SHARE *share)
{
my_bool res= 0;
uint send_signal= 0;
MARIA_FILE_BITMAP *bitmap= &share->bitmap;
DBUG_ENTER("_ma_bitmap_flush_all");
#ifdef EXTRA_DEBUG_BITMAP
{
char buff[160];
uint len= my_sprintf(buff,
(buff, "bitmap_flush: fd: %d id: %u "
"changed: %d changed_not_flushed: %d "
"flush_all_requested: %d",
share->bitmap.file.file,
share->id,
bitmap->changed,
bitmap->changed_not_flushed,
bitmap->flush_all_requested));
(void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY,
(uchar*) buff, len);
}
#endif
mysql_mutex_lock(&bitmap->bitmap_lock);
if (!bitmap->changed && !bitmap->changed_not_flushed)
{
mysql_mutex_unlock(&bitmap->bitmap_lock);
DBUG_RETURN(0);
}
_ma_bitmap_mark_file_changed(share, 0);
/*
The following should be true as it was tested above. We have to test
this again as _ma_bitmap_mark_file_changed() did temporarly release
the bitmap mutex.
*/
if (bitmap->changed || bitmap->changed_not_flushed)
{
bitmap->flush_all_requested++;
bitmap->waiting_for_non_flushable++;
#if !WRONG_BITMAP_FLUSH
while (bitmap->non_flushable > 0)
{
DBUG_PRINT("info", ("waiting for bitmap to be flushable"));
mysql_cond_wait(&bitmap->bitmap_cond, &bitmap->bitmap_lock);
}
#endif
bitmap->waiting_for_non_flushable--;
#ifdef EXTRA_DEBUG_BITMAP
{
char tmp[MAX_BITMAP_INFO_LENGTH];
size_t len;
len= _ma_get_bitmap_description(bitmap, bitmap->map, bitmap->page, tmp);
(void) translog_log_debug_info(0, LOGREC_DEBUG_INFO_QUERY,
(uchar*) tmp, len);
}
#endif
DBUG_ASSERT(bitmap->flush_all_requested == 1);
/*
Bitmap is in a flushable state: its contents in memory are reflected by
log records (complete REDO-UNDO groups) and all bitmap pages are
unpinned. We keep the mutex to preserve this situation, and flush to the
file.
*/
if (bitmap->changed)
{
bitmap->changed= FALSE;
res= write_changed_bitmap(share, bitmap);
}
/*
We do NOT use FLUSH_KEEP_LAZY because we must be sure that bitmap
pages have been flushed. That's a condition of correctness of
Recovery: data pages may have been all flushed, if we write the
checkpoint record Recovery will start from after their REDOs. If
bitmap page was not flushed, as the REDOs about it will be skipped, it
will wrongly not be recovered. If bitmap pages had a rec_lsn it would
be different.
There should be no pinned pages as bitmap->non_flushable==0.
*/
if (flush_pagecache_blocks_with_filter(share->pagecache,
&bitmap->file, FLUSH_KEEP,
filter_flush_bitmap_pages,
&bitmap->pages_covered) &
PCFLUSH_PINNED_AND_ERROR)
res= TRUE;
bitmap->changed_not_flushed= FALSE;
bitmap->flush_all_requested--;
/*
Some well-behaved threads may be waiting for flush_all_requested to
become false, wake them up.
*/
DBUG_PRINT("info", ("bitmap flusher waking up others"));
send_signal= (bitmap->waiting_for_flush_all_requested |
bitmap->waiting_for_non_flushable);
}
mysql_mutex_unlock(&bitmap->bitmap_lock);
if (send_signal)
mysql_cond_broadcast(&bitmap->bitmap_cond);
DBUG_RETURN(res);
}
|
O0
|
c
|
ma_bitmap_flush_all:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movb $0x0, -0x11(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
addq $0xa10, %rax # imm = 0xA10
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
addq $0x88, %rdi
leaq 0x10f6f5(%rip), %rsi # 0x15168c
movl $0x1ee, %edx # imm = 0x1EE
callq 0x41c50
movq -0x20(%rbp), %rax
cmpb $0x0, 0x20(%rax)
jne 0x41fce
movq -0x20(%rbp), %rax
cmpb $0x0, 0x21(%rax)
jne 0x41fce
movq -0x20(%rbp), %rdi
addq $0x88, %rdi
callq 0x41f00
movb $0x0, -0x1(%rbp)
jmp 0x42107
movq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0x41cc0
movq -0x20(%rbp), %rax
movsbl 0x20(%rax), %eax
cmpl $0x0, %eax
jne 0x41ff7
movq -0x20(%rbp), %rax
movsbl 0x21(%rax), %eax
cmpl $0x0, %eax
je 0x420d9
movq -0x20(%rbp), %rax
movl 0x30(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x30(%rax)
movq -0x20(%rbp), %rax
movl 0x3c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x3c(%rax)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x38(%rax)
jbe 0x42048
jmp 0x4201d
jmp 0x4201f
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
movq -0x20(%rbp), %rsi
addq $0x88, %rsi
leaq 0x10f650(%rip), %rdx # 0x15168c
movl $0x204, %ecx # imm = 0x204
callq 0x42110
jmp 0x42011
movq -0x20(%rbp), %rax
movl 0x3c(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x3c(%rax)
jmp 0x42057
movq -0x20(%rbp), %rax
cmpb $0x0, 0x20(%rax)
je 0x42079
movq -0x20(%rbp), %rax
movb $0x0, 0x20(%rax)
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x41d90
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x20(%rbp), %rsi
addq $0x40, %rsi
movq -0x20(%rbp), %r8
addq $0x138, %r8 # imm = 0x138
xorl %edx, %edx
leaq 0xe0(%rip), %rcx # 0x42180
callq 0x2f7b0
andl $0x3, %eax
cmpl $0x0, %eax
je 0x420b1
movb $0x1, -0x11(%rbp)
movq -0x20(%rbp), %rax
movb $0x0, 0x21(%rax)
movq -0x20(%rbp), %rax
movl 0x30(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x30(%rax)
jmp 0x420c8
movq -0x20(%rbp), %rax
movl 0x34(%rax), %eax
movq -0x20(%rbp), %rcx
orl 0x3c(%rcx), %eax
movl %eax, -0x18(%rbp)
movq -0x20(%rbp), %rdi
addq $0x88, %rdi
callq 0x41f00
cmpl $0x0, -0x18(%rbp)
je 0x420ff
movq -0x20(%rbp), %rdi
addq $0xd0, %rdi
callq 0x421b0
jmp 0x42101
movb -0x11(%rbp), %al
movb %al, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
|
_ma_bitmap_flush_all:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_11], 0
mov [rbp+var_18], 0
mov rax, [rbp+var_10]
add rax, 0A10h
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
add rdi, 88h
lea rsi, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1EEh
call inline_mysql_mutex_lock_4
mov rax, [rbp+var_20]
cmp byte ptr [rax+20h], 0
jnz short loc_41FCE
mov rax, [rbp+var_20]
cmp byte ptr [rax+21h], 0
jnz short loc_41FCE
mov rdi, [rbp+var_20]
add rdi, 88h
call inline_mysql_mutex_unlock_4
mov [rbp+var_1], 0
jmp loc_42107
loc_41FCE:
mov rdi, [rbp+var_10]
xor esi, esi
call _ma_bitmap_mark_file_changed
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+20h]
cmp eax, 0
jnz short loc_41FF7
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax+21h]
cmp eax, 0
jz loc_420D9
loc_41FF7:
mov rax, [rbp+var_20]
mov ecx, [rax+30h]
add ecx, 1
mov [rax+30h], ecx
mov rax, [rbp+var_20]
mov ecx, [rax+3Ch]
add ecx, 1
mov [rax+3Ch], ecx
loc_42011:
mov rax, [rbp+var_20]
cmp dword ptr [rax+38h], 0
jbe short loc_42048
jmp short $+2
loc_4201D:
jmp short $+2
loc_4201F:
mov rdi, [rbp+var_20]
add rdi, 0D0h
mov rsi, [rbp+var_20]
add rsi, 88h
lea rdx, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 204h
call inline_mysql_cond_wait_0
jmp short loc_42011
loc_42048:
mov rax, [rbp+var_20]
mov ecx, [rax+3Ch]
add ecx, 0FFFFFFFFh
mov [rax+3Ch], ecx
jmp short $+2
loc_42057:
mov rax, [rbp+var_20]
cmp byte ptr [rax+20h], 0
jz short loc_42079
mov rax, [rbp+var_20]
mov byte ptr [rax+20h], 0
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_20]
call write_changed_bitmap
mov [rbp+var_11], al
loc_42079:
mov rax, [rbp+var_10]
mov rdi, [rax+600h]
mov rsi, [rbp+var_20]
add rsi, 40h ; '@'
mov r8, [rbp+var_20]
add r8, 138h
xor edx, edx
lea rcx, filter_flush_bitmap_pages
call flush_pagecache_blocks_with_filter
and eax, 3
cmp eax, 0
jz short loc_420B1
mov [rbp+var_11], 1
loc_420B1:
mov rax, [rbp+var_20]
mov byte ptr [rax+21h], 0
mov rax, [rbp+var_20]
mov ecx, [rax+30h]
add ecx, 0FFFFFFFFh
mov [rax+30h], ecx
jmp short $+2
loc_420C8:
mov rax, [rbp+var_20]
mov eax, [rax+34h]
mov rcx, [rbp+var_20]
or eax, [rcx+3Ch]
mov [rbp+var_18], eax
loc_420D9:
mov rdi, [rbp+var_20]
add rdi, 88h
call inline_mysql_mutex_unlock_4
cmp [rbp+var_18], 0
jz short loc_420FF
mov rdi, [rbp+var_20]
add rdi, 0D0h
call inline_mysql_cond_broadcast
loc_420FF:
jmp short $+2
loc_42101:
mov al, [rbp+var_11]
mov [rbp+var_1], al
loc_42107:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
|
char ma_bitmap_flush_all(long long a1)
{
int v2; // [rsp+8h] [rbp-18h]
char v3; // [rsp+Fh] [rbp-11h]
v3 = 0;
v2 = 0;
inline_mysql_mutex_lock_4(
a1 + 2712,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x1EEu);
if ( *(_BYTE *)(a1 + 2608) || *(_BYTE *)(a1 + 2609) )
{
ma_bitmap_mark_file_changed(a1, 0);
if ( *(_BYTE *)(a1 + 2608) || *(_BYTE *)(a1 + 2609) )
{
++*(_DWORD *)(a1 + 2624);
++*(_DWORD *)(a1 + 2636);
while ( *(_DWORD *)(a1 + 2632) )
inline_mysql_cond_wait_0(
a1 + 2784,
a1 + 2712,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
516LL);
--*(_DWORD *)(a1 + 2636);
if ( *(_BYTE *)(a1 + 2608) )
{
*(_BYTE *)(a1 + 2608) = 0;
v3 = write_changed_bitmap(a1, a1 + 2576);
}
if ( (flush_pagecache_blocks_with_filter(
*(_QWORD *)(a1 + 1536),
a1 + 2640,
0,
(long long)filter_flush_bitmap_pages,
a1 + 2888) & 3) != 0 )
v3 = 1;
*(_BYTE *)(a1 + 2609) = 0;
--*(_DWORD *)(a1 + 2624);
v2 = *(_DWORD *)(a1 + 2636) | *(_DWORD *)(a1 + 2628);
}
inline_mysql_mutex_unlock_4(a1 + 2712);
if ( v2 )
inline_mysql_cond_broadcast(a1 + 2784);
return v3;
}
else
{
inline_mysql_mutex_unlock_4(a1 + 2712);
return 0;
}
}
|
_ma_bitmap_flush_all:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV byte ptr [RBP + -0x11],0x0
MOV dword ptr [RBP + -0x18],0x0
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0xa10
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x88
LEA RSI,[0x25168c]
MOV EDX,0x1ee
CALL 0x00141c50
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x20],0x0
JNZ 0x00141fce
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x21],0x0
JNZ 0x00141fce
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x88
CALL 0x00141f00
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00142107
LAB_00141fce:
MOV RDI,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x00141cc0
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x20]
CMP EAX,0x0
JNZ 0x00141ff7
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX + 0x21]
CMP EAX,0x0
JZ 0x001420d9
LAB_00141ff7:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x30]
ADD ECX,0x1
MOV dword ptr [RAX + 0x30],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x3c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x3c],ECX
LAB_00142011:
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x38],0x0
JBE 0x00142048
JMP 0x0014201d
LAB_0014201d:
JMP 0x0014201f
LAB_0014201f:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0xd0
MOV RSI,qword ptr [RBP + -0x20]
ADD RSI,0x88
LEA RDX,[0x25168c]
MOV ECX,0x204
CALL 0x00142110
JMP 0x00142011
LAB_00142048:
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x3c]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x3c],ECX
JMP 0x00142057
LAB_00142057:
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x20],0x0
JZ 0x00142079
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x20],0x0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x00141d90
MOV byte ptr [RBP + -0x11],AL
LAB_00142079:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x20]
ADD RSI,0x40
MOV R8,qword ptr [RBP + -0x20]
ADD R8,0x138
XOR EDX,EDX
LEA RCX,[0x142180]
CALL 0x0012f7b0
AND EAX,0x3
CMP EAX,0x0
JZ 0x001420b1
MOV byte ptr [RBP + -0x11],0x1
LAB_001420b1:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x21],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,dword ptr [RAX + 0x30]
ADD ECX,-0x1
MOV dword ptr [RAX + 0x30],ECX
JMP 0x001420c8
LAB_001420c8:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x34]
MOV RCX,qword ptr [RBP + -0x20]
OR EAX,dword ptr [RCX + 0x3c]
MOV dword ptr [RBP + -0x18],EAX
LAB_001420d9:
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x88
CALL 0x00141f00
CMP dword ptr [RBP + -0x18],0x0
JZ 0x001420ff
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0xd0
CALL 0x001421b0
LAB_001420ff:
JMP 0x00142101
LAB_00142101:
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x1],AL
LAB_00142107:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int8 _ma_bitmap_flush_all(long param_1)
{
uint uVar1;
int7 extraout_var;
int8 uVar2;
int7 uVar3;
uint local_20;
int1 local_19;
int1 local_9;
local_19 = 0;
local_20 = 0;
inline_mysql_mutex_lock
(param_1 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",
0x1ee);
if ((*(char *)(param_1 + 0xa30) == '\0') && (*(char *)(param_1 + 0xa31) == '\0')) {
inline_mysql_mutex_unlock(param_1 + 0xa98);
local_9 = 0;
uVar3 = extraout_var;
}
else {
_ma_bitmap_mark_file_changed(param_1,0);
if ((*(char *)(param_1 + 0xa30) != '\0') || (*(char *)(param_1 + 0xa31) != '\0')) {
*(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + 1;
*(int *)(param_1 + 0xa4c) = *(int *)(param_1 + 0xa4c) + 1;
while (*(int *)(param_1 + 0xa48) != 0) {
inline_mysql_cond_wait
(param_1 + 0xae0,param_1 + 0xa98,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c",0x204);
}
*(int *)(param_1 + 0xa4c) = *(int *)(param_1 + 0xa4c) + -1;
if (*(char *)(param_1 + 0xa30) != '\0') {
*(int1 *)(param_1 + 0xa30) = 0;
local_19 = write_changed_bitmap(param_1,param_1 + 0xa10);
}
uVar1 = flush_pagecache_blocks_with_filter
(*(int8 *)(param_1 + 0x600),param_1 + 0xa50,0,
filter_flush_bitmap_pages,param_1 + 0xb48);
if ((uVar1 & 3) != 0) {
local_19 = 1;
}
*(int1 *)(param_1 + 0xa31) = 0;
*(int *)(param_1 + 0xa40) = *(int *)(param_1 + 0xa40) + -1;
local_20 = *(uint *)(param_1 + 0xa44) | *(uint *)(param_1 + 0xa4c);
}
uVar2 = inline_mysql_mutex_unlock(param_1 + 0xa98);
if (local_20 != 0) {
uVar2 = inline_mysql_cond_broadcast(param_1 + 0xae0);
}
uVar3 = (int7)((ulong)uVar2 >> 8);
local_9 = local_19;
}
return CONCAT71(uVar3,local_9);
}
|
|
13,305
|
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 0x45179
movq %rdx, %rcx
movq %rdi, %rbx
xorl %edx, %edx
callq 0x44d39
testl %eax, %eax
je 0x45181
movl $0x7e, %r15d
movq %rbx, %rdi
movl $0x7e, %esi
xorl %edx, %edx
callq 0x42b56
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x451a2
movl $0x1, %r14d
jmp 0x451b5
movq 0x700(%rbx), %rdi
callq *0x6f8(%rbx)
movl %eax, %r14d
cmpl $0x2, %eax
jne 0x451b5
movl $0x2, %r14d
movl $0x89, %r15d
movq $-0x1, 0x98(%rbx)
callq 0xa8156
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_45179
mov rcx, rdx
mov rbx, rdi
xor edx, edx
call _ma_put_key_in_record
test eax, eax
jz short loc_45181
mov r15d, 7Eh ; '~'
mov rdi, rbx
mov esi, 7Eh ; '~'
xor edx, edx
call _ma_print_error
mov r14d, 0FFFFFFFFh
jmp short loc_451A2
loc_45179:
mov r14d, 1
jmp short loc_451B5
loc_45181:
mov rdi, [rbx+700h]
call qword ptr [rbx+6F8h]
mov r14d, eax
cmp eax, 2
jnz short loc_451B5
mov r14d, 2
mov r15d, 89h
loc_451A2:
mov qword ptr [rbx+98h], 0FFFFFFFFFFFFFFFFh
call _my_thread_var
mov [rax], r15d
loc_451B5:
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 0x00145179
MOV RCX,RDX
MOV RBX,RDI
XOR EDX,EDX
CALL 0x00144d39
TEST EAX,EAX
JZ 0x00145181
MOV R15D,0x7e
MOV RDI,RBX
MOV ESI,0x7e
XOR EDX,EDX
CALL 0x00142b56
MOV R14D,0xffffffff
JMP 0x001451a2
LAB_00145179:
MOV R14D,0x1
JMP 0x001451b5
LAB_00145181:
MOV RDI,qword ptr [RBX + 0x700]
CALL qword ptr [RBX + 0x6f8]
MOV R14D,EAX
CMP EAX,0x2
JNZ 0x001451b5
MOV R14D,0x2
MOV R15D,0x89
LAB_001451a2:
MOV qword ptr [RBX + 0x98],-0x1
CALL 0x001a8156
MOV dword ptr [RAX],R15D
LAB_001451b5:
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;
}
|
|
13,306
|
process_tool_call(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&)
|
llama.cpp/common/chat.cpp
|
static common_chat_tool_call process_tool_call(const json & tool_call) {
const auto & arguments = tool_call.at("arguments");
return {
/* .name = */ tool_call.at("name"),
/* .arguments = */ arguments.is_string() ? arguments.get<std::string>() : arguments.dump(),
/* .id = */ tool_call.contains("id") ? tool_call.at("id") : "",
};
}
|
O3
|
cpp
|
process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x74993(%rip), %rsi # 0x12dc84
movq %r14, %rdi
callq 0xbe0ac
movq %rax, %r15
leaq 0x76d45(%rip), %rsi # 0x130048
movq %r14, %rdi
callq 0xbd704
movq %rbx, %rdi
movq %rax, %rsi
callq 0xccda2
leaq 0x20(%rbx), %rdi
cmpb $0x3, (%r15)
jne 0xb932a
movq %r15, %rsi
callq 0xccda2
jmp 0xb9342
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xbd2ea
leaq 0x73a78(%rip), %rsi # 0x12cdc1
movq %r14, %rdi
callq 0xbe270
testb %al, %al
je 0xb9371
leaq 0x73a65(%rip), %rsi # 0x12cdc1
movq %r14, %rdi
callq 0xbe2d2
movq %rsp, %rdi
movq %rax, %rsi
callq 0x96caa
jmp 0xb9380
leaq 0x744c1(%rip), %rsi # 0x12d839
movq %rsp, %rdi
callq 0xdca52
leaq 0x40(%rbx), %rdi
movq %rsp, %rsi
callq 0xccda2
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x92a5c
movq %rbx, %rdi
callq 0x97176
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x92a5c
movq %r15, %rdi
callq 0x97176
jmp 0xb93cd
movq %rax, %r14
jmp 0xb93e5
movq %rax, %r14
movq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
cmpq %rax, %rdi
je 0xb93e5
movq (%rax), %rsi
incq %rsi
callq 0x21180
movq (%rbx), %rdi
addq $0x10, %rbx
cmpq %rbx, %rdi
je 0xb93fc
movq (%rbx), %rsi
incq %rsi
callq 0x21180
movq %r14, %rdi
callq 0x21b70
|
_ZL17process_tool_callRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEE:
push r15
push r14
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
lea rsi, aKeywordArgumen+9; "arguments"
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
mov r15, rax
lea rsi, aNamespacedSetO+2Fh; "name"
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
mov rdi, rbx
mov rsi, rax
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
lea rdi, [rbx+20h]
cmp byte ptr [r15], 3
jnz short loc_B932A
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
jmp short loc_B9342
loc_B932A:
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
loc_B9342:
lea rsi, aToolCallId+0Ah; "id"
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
test al, al
jz short loc_B9371
lea rsi, aToolCallId+0Ah; "id"
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
mov rdi, rsp
mov rsi, rax
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&)
jmp short loc_B9380
loc_B9371:
lea rsi, aExampleToolCal+1Dh; ""
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
loc_B9380:
lea rdi, [rbx+40h]
mov rsi, rsp
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rbx, rsp
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()
add rsp, 10h
pop rbx
pop r14
pop r15
retn
mov r14, rax
mov r15, rsp
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()
jmp short loc_B93CD
mov r14, rax
jmp short loc_B93E5
mov r14, rax
loc_B93CD:
mov rdi, [rbx+20h]; void *
lea rax, [rbx+30h]
cmp rdi, rax
jz short loc_B93E5
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B93E5:
mov rdi, [rbx]; void *
add rbx, 10h
cmp rdi, rbx
jz short loc_B93FC
mov rsi, [rbx]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B93FC:
mov rdi, r14
call __Unwind_Resume
|
long long process_tool_call(long long a1, long long a2)
{
_BYTE *v3; // r15
long long v4; // rax
long long v5; // rdi
unsigned __int8 *v6; // rax
unsigned __int8 v8[40]; // [rsp+0h] [rbp-28h] BYREF
v3 = (_BYTE *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
a2,
"arguments");
v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
a2,
"name");
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
a1,
v4);
v5 = a1 + 32;
if ( *v3 == 3 )
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
v5,
v3);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
v5,
(_DWORD)v3,
-1,
32,
0,
0);
if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
a2,
"id") )
{
v6 = (unsigned __int8 *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
a2,
"id");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(
v8,
v6);
}
else
{
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
v8,
"");
}
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
a1 + 64,
v8);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v8);
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(v8);
}
|
process_tool_call:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
LEA RSI,[0x22dc84]
MOV RDI,R14
CALL 0x001be0ac
MOV R15,RAX
LEA RSI,[0x230048]
MOV RDI,R14
CALL 0x001bd704
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001ccda2
LEA RDI,[RBX + 0x20]
CMP byte ptr [R15],0x3
JNZ 0x001b932a
LAB_001b9320:
MOV RSI,R15
CALL 0x001ccda2
JMP 0x001b9342
LAB_001b932a:
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001bd2ea
LAB_001b9342:
LEA RSI,[0x22cdc1]
MOV RDI,R14
CALL 0x001be270
TEST AL,AL
JZ 0x001b9371
LEA RSI,[0x22cdc1]
MOV RDI,R14
CALL 0x001be2d2
MOV RDI,RSP
MOV RSI,RAX
CALL 0x00196caa
JMP 0x001b9380
LAB_001b9371:
LEA RSI,[0x22d839]
MOV RDI,RSP
CALL 0x001dca52
LAB_001b9380:
LEA RDI,[RBX + 0x40]
LAB_001b9384:
MOV RSI,RSP
CALL 0x001ccda2
LAB_001b938c:
MOV RBX,RSP
MOV RDI,RBX
XOR ESI,ESI
CALL 0x00192a5c
MOV RDI,RBX
CALL 0x00197176
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* process_tool_call(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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 process_tool_call(basic_json *param_1)
{
char *pcVar1;
int8 uVar2;
basic_json *pbVar3;
char cVar4;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
abStack_28 [16];
pcVar1 = (char *)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
();
uVar2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA5_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
();
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1,uVar2);
if (*pcVar1 == '\x03') {
/* try { // try from 001b9320 to 001b9341 has its CatchHandler @ 001b93c5 */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1 + 0x20,pcVar1);
}
else {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(param_1 + 0x20,pcVar1,0xffffffff,0x20,0,0);
}
/* try { // try from 001b9342 to 001b937f has its CatchHandler @ 001b93ca */
cVar4 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
();
if (cVar4 == '\0') {
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA1_KcA1_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(abStack_28,"");
}
else {
pbVar3 = (basic_json *)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA3_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(abStack_28,pbVar3);
}
/* try { // try from 001b9384 to 001b938b has its CatchHandler @ 001b93ab */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1 + 0x40,abStack_28);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(abStack_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((data *)abStack_28);
return;
}
|
|
13,307
|
GravityComponent::fixed_update(Dimension*)
|
untodesu[P]voxelius/game/shared/gravity.cc
|
void GravityComponent::fixed_update(Dimension *dimension)
{
auto fixed_acceleration = globals::fixed_frametime * dimension->get_gravity();
auto group = dimension->entities.group<GravityComponent>(entt::get<VelocityComponent>, entt::exclude<StasisComponent>);
for(auto [entity, velocity] : group.each()) {
velocity.value.y += fixed_acceleration;
}
}
|
O0
|
cpp
|
GravityComponent::fixed_update(Dimension*):
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x2222ca(%rip), %rax # 0x2d1880
movss (%rax), %xmm0
movss %xmm0, -0xcc(%rbp)
movq -0x8(%rbp), %rdi
callq 0xa1f40
movaps %xmm0, %xmm1
movss -0xcc(%rbp), %xmm0
mulss %xmm1, %xmm0
movss %xmm0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
addq $0x158, %rdi # imm = 0x158
callq 0xaf6b0
movq %rax, -0x18(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xaf9a0
leaq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0xafa90
movq -0x28(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
callq 0xafad0
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xafb10
testb $0x1, %al
jne 0xaf641
jmp 0xaf69e
leaq -0xb8(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xafb40
leaq -0xb8(%rbp), %rdi
callq 0xafbf0
movq %rax, -0xc0(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xafc10
movq %rax, -0xc8(%rbp)
movss -0xc(%rbp), %xmm0
movq -0xc8(%rbp), %rax
addss 0x4(%rax), %xmm0
movss %xmm0, 0x4(%rax)
leaq -0x88(%rbp), %rdi
callq 0xafc30
jmp 0xaf628
addq $0xd0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
_ZN16GravityComponent12fixed_updateEP9Dimension:
push rbp
mov rbp, rsp
sub rsp, 0D0h
mov [rbp+var_8], rdi
lea rax, _ZN7globals15fixed_frametimeE; globals::fixed_frametime
movss xmm0, dword ptr [rax]
movss [rbp+var_CC], xmm0
mov rdi, [rbp+var_8]; this
call _ZNK9Dimension11get_gravityEv; Dimension::get_gravity(void)
movaps xmm1, xmm0
movss xmm0, [rbp+var_CC]
mulss xmm0, xmm1
movss [rbp+var_C], xmm0
mov rdi, [rbp+var_8]
add rdi, 158h
call _ZN4entt14basic_registryINS_6entityESaIS1_EE5groupIJ16GravityComponentEJ17VelocityComponentEJ15StasisComponentEEENS_11basic_groupINS_7owned_tIJDpNS_11storage_forIT_S1_SaINSt12remove_constISB_E4typeEEE4typeEEEENS_5get_tIJDpNSA_IT0_S1_SaINSC_ISL_E4typeEEE4typeEEEENS_9exclude_tIJDpNSA_IT1_S1_SaINSC_ISU_E4typeEEE4typeEEEEEENSK_IJDpSL_EEENST_IJDpSU_EEE
mov [rbp+var_18], rax
lea rdi, [rbp+var_68]
lea rsi, [rbp+var_18]
call _ZNK4entt11basic_groupINS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentNS_6entityESaIS4_EvEENS_14basic_registryIS5_SaIS5_EEEEEEEENS_5get_tIJNS2_INS3_I17VelocityComponentS5_SaISE_EvEESA_EEEEENS_9exclude_tIJNS2_INS3_I15StasisComponentS5_SaISK_EvEESA_EEEEEE4eachEv; entt::basic_group<entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::exclude_t<entt::basic_sigh_mixin<entt::basic_storage<StasisComponent,entt::entity,std::allocator<StasisComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::each(void)
lea rax, [rbp+var_68]
mov [rbp+var_28], rax
mov rsi, [rbp+var_28]
lea rdi, [rbp+var_88]
call _ZNK4entt16iterable_adaptorINS_8internal23extended_group_iteratorINS1_19sparse_set_iteratorISt6vectorINS_6entityESaIS5_EEEENS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentS5_SaISC_EvEENS_14basic_registryIS5_S6_EEEEEEENS_5get_tIJNSA_INSB_I17VelocityComponentS5_SaISK_EvEESG_EEEEEEESP_E5beginEv; entt::iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>::begin(void)
mov rsi, [rbp+var_28]
lea rdi, [rbp+var_A8]
call _ZNK4entt16iterable_adaptorINS_8internal23extended_group_iteratorINS1_19sparse_set_iteratorISt6vectorINS_6entityESaIS5_EEEENS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentS5_SaISC_EvEENS_14basic_registryIS5_S6_EEEEEEENS_5get_tIJNSA_INSB_I17VelocityComponentS5_SaISK_EvEESG_EEEEEEESP_E3endEv; entt::iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>::end(void)
loc_AF628:
lea rdi, [rbp+var_88]
lea rsi, [rbp+var_A8]
call _ZN4entt8internalneIJNS0_19sparse_set_iteratorISt6vectorINS_6entityESaIS4_EEEENS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentS4_SaISB_EvEENS_14basic_registryIS4_S5_EEEEEEENS_5get_tIJNS9_INSA_I17VelocityComponentS4_SaISJ_EvEESF_EEEEEEJS7_SH_SN_EEEbRKNS0_23extended_group_iteratorIDpT_EERKNSO_IDpT0_EE; entt::internal::operator!=<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>(entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>> const&,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>> const&)
test al, 1
jnz short loc_AF641
jmp short loc_AF69E
loc_AF641:
lea rdi, [rbp+var_B8]
lea rsi, [rbp+var_88]
call _ZNK4entt8internal23extended_group_iteratorINS0_19sparse_set_iteratorISt6vectorINS_6entityESaIS4_EEEENS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentS4_SaISB_EvEENS_14basic_registryIS4_S5_EEEEEEENS_5get_tIJNS9_INSA_I17VelocityComponentS4_SaISJ_EvEESF_EEEEEEdeEv; entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::operator*(void)
lea rdi, [rbp+var_B8]
call _ZSt3getILm0EJN4entt6entityER17VelocityComponentEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_; std::get<0ul,entt::entity,VelocityComponent &>(std::tuple<entt::entity,VelocityComponent &>&&)
mov [rbp+var_C0], rax
lea rdi, [rbp+var_B8]
call _ZSt3getILm1EJN4entt6entityER17VelocityComponentEEONSt13tuple_elementIXT_ESt5tupleIJDpT0_EEE4typeEOS8_; std::get<1ul,entt::entity,VelocityComponent &>(std::tuple<entt::entity,VelocityComponent &>&&)
mov [rbp+var_C8], rax
movss xmm0, [rbp+var_C]
mov rax, [rbp+var_C8]
addss xmm0, dword ptr [rax+4]
movss dword ptr [rax+4], xmm0
lea rdi, [rbp+var_88]
call _ZN4entt8internal23extended_group_iteratorINS0_19sparse_set_iteratorISt6vectorINS_6entityESaIS4_EEEENS_7owned_tIJNS_16basic_sigh_mixinINS_13basic_storageI16GravityComponentS4_SaISB_EvEENS_14basic_registryIS4_S5_EEEEEEENS_5get_tIJNS9_INSA_I17VelocityComponentS4_SaISJ_EvEESF_EEEEEEppEv; entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::operator++(void)
jmp short loc_AF628
loc_AF69E:
add rsp, 0D0h
pop rbp
retn
|
long long GravityComponent::fixed_update(GravityComponent *this, Dimension *a2)
{
long long result; // rax
float v3; // [rsp+4h] [rbp-CCh]
long long v4; // [rsp+8h] [rbp-C8h]
_BYTE v5[16]; // [rsp+18h] [rbp-B8h] BYREF
_BYTE v6[32]; // [rsp+28h] [rbp-A8h] BYREF
_BYTE v7[32]; // [rsp+48h] [rbp-88h] BYREF
_BYTE v8[64]; // [rsp+68h] [rbp-68h] BYREF
_BYTE *v9; // [rsp+A8h] [rbp-28h]
long long v10; // [rsp+B8h] [rbp-18h] BYREF
float v11; // [rsp+C4h] [rbp-Ch]
Dimension *v12; // [rsp+C8h] [rbp-8h]
v12 = this;
v3 = globals::fixed_frametime;
v11 = v3 * Dimension::get_gravity(this);
v10 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::group<GravityComponent,VelocityComponent,StasisComponent>(
(char *)this + 344,
a2);
entt::basic_group<entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::exclude_t<entt::basic_sigh_mixin<entt::basic_storage<StasisComponent,entt::entity,std::allocator<StasisComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::each(
v8,
&v10);
v9 = v8;
entt::iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>::begin(
v7,
v8);
entt::iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>::end(
v6,
v9);
while ( 1 )
{
result = entt::internal::operator!=<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>(
v7,
v6);
if ( (result & 1) == 0 )
break;
entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::operator*(
v5,
v7);
std::get<0ul,entt::entity,VelocityComponent &>(v5);
v4 = std::get<1ul,entt::entity,VelocityComponent &>(v5);
*(float *)(v4 + 4) = v11 + *(float *)(v4 + 4);
entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>::operator++(v7);
}
return result;
}
|
fixed_update:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xd0
MOV qword ptr [RBP + -0x8],RDI
LEA RAX,[0x3d1880]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RBP + -0xcc],XMM0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001a1f40
MOVAPS XMM1,XMM0
MOVSS XMM0,dword ptr [RBP + -0xcc]
MULSS XMM0,XMM1
MOVSS dword ptr [RBP + -0xc],XMM0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x158
CALL 0x001af6b0
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[RBP + -0x68]
LEA RSI,[RBP + -0x18]
CALL 0x001af9a0
LEA RAX,[RBP + -0x68]
MOV qword ptr [RBP + -0x28],RAX
MOV RSI,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0x88]
CALL 0x001afa90
MOV RSI,qword ptr [RBP + -0x28]
LEA RDI,[RBP + -0xa8]
CALL 0x001afad0
LAB_001af628:
LEA RDI,[RBP + -0x88]
LEA RSI,[RBP + -0xa8]
CALL 0x001afb10
TEST AL,0x1
JNZ 0x001af641
JMP 0x001af69e
LAB_001af641:
LEA RDI,[RBP + -0xb8]
LEA RSI,[RBP + -0x88]
CALL 0x001afb40
LEA RDI,[RBP + -0xb8]
CALL 0x001afbf0
MOV qword ptr [RBP + -0xc0],RAX
LEA RDI,[RBP + -0xb8]
CALL 0x001afc10
MOV qword ptr [RBP + -0xc8],RAX
MOVSS XMM0,dword ptr [RBP + -0xc]
MOV RAX,qword ptr [RBP + -0xc8]
ADDSS XMM0,dword ptr [RAX + 0x4]
MOVSS dword ptr [RAX + 0x4],XMM0
LEA RDI,[RBP + -0x88]
CALL 0x001afc30
JMP 0x001af628
LAB_001af69e:
ADD RSP,0xd0
POP RBP
RET
|
/* GravityComponent::fixed_update(Dimension*) */
void GravityComponent::fixed_update(Dimension *param_1)
{
float fVar1;
bool bVar2;
type *ptVar3;
extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>
local_c0 [16];
extended_group_iterator local_b0 [32];
extended_group_iterator local_90 [32];
int1 local_70 [64];
int1 *local_30;
int8 local_20;
float local_14;
Dimension *local_10;
fVar1 = globals::fixed_frametime;
local_10 = param_1;
local_14 = (float)Dimension::get_gravity(param_1);
local_14 = fVar1 * local_14;
local_20 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::
group<GravityComponent,VelocityComponent,StasisComponent>(local_10 + 0x158);
entt::
basic_group<entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::exclude_t<entt::basic_sigh_mixin<entt::basic_storage<StasisComponent,entt::entity,std::allocator<StasisComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>
::each();
local_30 = local_70;
entt::
iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>
::begin();
entt::
iterable_adaptor<entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>,entt::internal::extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>>
::end();
while( true ) {
bVar2 = entt::internal::operator!=(local_90,local_b0);
if (!bVar2) break;
entt::internal::
extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>
::operator*(local_c0);
std::get<0ul,entt::entity,VelocityComponent&>((tuple *)local_c0);
ptVar3 = std::get<1ul,entt::entity,VelocityComponent&>((tuple *)local_c0);
*(float *)(ptVar3 + 4) = local_14 + *(float *)(ptVar3 + 4);
entt::internal::
extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>
::operator++((extended_group_iterator<entt::internal::sparse_set_iterator<std::vector<entt::entity,std::allocator<entt::entity>>>,entt::owned_t<entt::basic_sigh_mixin<entt::basic_storage<GravityComponent,entt::entity,std::allocator<GravityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>,entt::get_t<entt::basic_sigh_mixin<entt::basic_storage<VelocityComponent,entt::entity,std::allocator<VelocityComponent>,void>,entt::basic_registry<entt::entity,std::allocator<entt::entity>>>>>
*)local_90);
}
return;
}
|
|
13,308
|
GravityComponent::fixed_update(Dimension*)
|
untodesu[P]voxelius/game/shared/gravity.cc
|
void GravityComponent::fixed_update(Dimension *dimension)
{
auto fixed_acceleration = globals::fixed_frametime * dimension->get_gravity();
auto group = dimension->entities.group<GravityComponent>(entt::get<VelocityComponent>, entt::exclude<StasisComponent>);
for(auto [entity, velocity] : group.each()) {
velocity.value.y += fixed_acceleration;
}
}
|
O3
|
cpp
|
GravityComponent::fixed_update(Dimension*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc9d91(%rip), %rax # 0x108fc0
movss (%rax), %xmm0
movss %xmm0, 0x8(%rsp)
callq 0x3adba
movss %xmm0, 0xc(%rsp)
addq $0x158, %rbx # imm = 0x158
movq %rbx, %rdi
callq 0x3f2c6
testq %rax, %rax
je 0x3f2bb
movq 0x20(%rax), %r14
testq %r14, %r14
je 0x3f2bb
movss 0x8(%rsp), %xmm0
mulss 0xc(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
movq 0x8(%rax), %r15
movq 0x10(%rax), %rbx
movq 0x20(%r15), %rax
movl -0x4(%rax,%r14,4), %esi
movq %rbx, %rdi
callq 0x232e6
movq 0x50(%rbx), %rcx
movq %rax, %rdx
shrq $0xa, %rdx
movq (%rcx,%rdx,8), %rcx
andl $0x3ff, %eax # imm = 0x3FF
leaq (%rax,%rax,2), %rax
movss 0x4(%rcx,%rax,4), %xmm0
addss 0x8(%rsp), %xmm0
movss %xmm0, 0x4(%rcx,%rax,4)
decq %r14
jne 0x3f27b
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
|
_ZN16GravityComponent12fixed_updateEP9Dimension:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rdi
lea rax, _ZN7globals15fixed_frametimeE; globals::fixed_frametime
movss xmm0, dword ptr [rax]
movss [rsp+28h+var_20], xmm0
call _ZNK9Dimension11get_gravityEv; Dimension::get_gravity(void)
movss [rsp+28h+var_1C], xmm0
add rbx, 158h
mov rdi, rbx
call _ZN4entt14basic_registryINS_6entityESaIS1_EE5groupIJ16GravityComponentEJ17VelocityComponentEJ15StasisComponentEEENS_11basic_groupINS_7owned_tIJDpNS_11storage_forIT_S1_SaINSt12remove_constISB_E4typeEEE4typeEEEENS_5get_tIJDpNSA_IT0_S1_SaINSC_ISL_E4typeEEE4typeEEEENS_9exclude_tIJDpNSA_IT1_S1_SaINSC_ISU_E4typeEEE4typeEEEEEENSK_IJDpSL_EEENST_IJDpSU_EEE
test rax, rax
jz short loc_3F2BB
mov r14, [rax+20h]
test r14, r14
jz short loc_3F2BB
movss xmm0, [rsp+28h+var_20]
mulss xmm0, [rsp+28h+var_1C]
movss [rsp+28h+var_20], xmm0
mov r15, [rax+8]
mov rbx, [rax+10h]
loc_3F27B:
mov rax, [r15+20h]
mov esi, [rax+r14*4-4]
mov rdi, rbx
call _ZNK4entt16basic_sparse_setINS_6entityESaIS1_EE5indexES1_; entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index(entt::entity)
mov rcx, [rbx+50h]
mov rdx, rax
shr rdx, 0Ah
mov rcx, [rcx+rdx*8]
and eax, 3FFh
lea rax, [rax+rax*2]
movss xmm0, dword ptr [rcx+rax*4+4]
addss xmm0, [rsp+28h+var_20]
movss dword ptr [rcx+rax*4+4], xmm0
dec r14
jnz short loc_3F27B
loc_3F2BB:
add rsp, 10h
pop rbx
pop r14
pop r15
retn
|
unsigned long long GravityComponent::fixed_update(GravityComponent *this, Dimension *a2)
{
unsigned long long result; // rax
long long v3; // r14
long long v4; // r15
long long v5; // rbx
unsigned long long v6; // rax
long long v7; // rcx
float v8; // [rsp+8h] [rbp-20h]
float v9; // [rsp+8h] [rbp-20h]
float gravity; // [rsp+Ch] [rbp-1Ch]
v8 = globals::fixed_frametime;
gravity = Dimension::get_gravity(this);
result = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::group<GravityComponent,VelocityComponent,StasisComponent>(
(char *)this + 344,
a2);
if ( result )
{
v3 = *(_QWORD *)(result + 32);
if ( v3 )
{
v9 = v8 * gravity;
v4 = *(_QWORD *)(result + 8);
v5 = *(_QWORD *)(result + 16);
do
{
v6 = entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index(
v5,
*(_DWORD *)(*(_QWORD *)(v4 + 32) + 4 * v3 - 4));
v7 = *(_QWORD *)(*(_QWORD *)(v5 + 80) + 8 * (v6 >> 10));
result = 3 * (v6 & 0x3FF);
*(float *)(v7 + 4 * result + 4) = *(float *)(v7 + 4 * result + 4) + v9;
--v3;
}
while ( v3 );
}
}
return result;
}
|
fixed_update:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
LEA RAX,[0x208fc0]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RSP + 0x8],XMM0
CALL 0x0013adba
MOVSS dword ptr [RSP + 0xc],XMM0
ADD RBX,0x158
MOV RDI,RBX
CALL 0x0013f2c6
TEST RAX,RAX
JZ 0x0013f2bb
MOV R14,qword ptr [RAX + 0x20]
TEST R14,R14
JZ 0x0013f2bb
MOVSS XMM0,dword ptr [RSP + 0x8]
MULSS XMM0,dword ptr [RSP + 0xc]
MOVSS dword ptr [RSP + 0x8],XMM0
MOV R15,qword ptr [RAX + 0x8]
MOV RBX,qword ptr [RAX + 0x10]
LAB_0013f27b:
MOV RAX,qword ptr [R15 + 0x20]
MOV ESI,dword ptr [RAX + R14*0x4 + -0x4]
MOV RDI,RBX
CALL 0x001232e6
MOV RCX,qword ptr [RBX + 0x50]
MOV RDX,RAX
SHR RDX,0xa
MOV RCX,qword ptr [RCX + RDX*0x8]
AND EAX,0x3ff
LEA RAX,[RAX + RAX*0x2]
MOVSS XMM0,dword ptr [RCX + RAX*0x4 + 0x4]
ADDSS XMM0,dword ptr [RSP + 0x8]
MOVSS dword ptr [RCX + RAX*0x4 + 0x4],XMM0
DEC R14
JNZ 0x0013f27b
LAB_0013f2bb:
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* GravityComponent::fixed_update(Dimension*) */
void GravityComponent::fixed_update(Dimension *param_1)
{
long lVar1;
basic_sparse_set<entt::entity,std::allocator<entt::entity>> *pbVar2;
float fVar3;
long lVar4;
ulong uVar5;
long lVar6;
float fVar7;
fVar3 = globals::fixed_frametime;
fVar7 = (float)Dimension::get_gravity(param_1);
lVar4 = entt::basic_registry<entt::entity,std::allocator<entt::entity>>::
group<GravityComponent,VelocityComponent,StasisComponent>(param_1 + 0x158);
if ((lVar4 != 0) && (lVar6 = *(long *)(lVar4 + 0x20), lVar6 != 0)) {
lVar1 = *(long *)(lVar4 + 8);
pbVar2 = *(basic_sparse_set<entt::entity,std::allocator<entt::entity>> **)(lVar4 + 0x10);
do {
uVar5 = entt::basic_sparse_set<entt::entity,std::allocator<entt::entity>>::index
(pbVar2,*(int4 *)(*(long *)(lVar1 + 0x20) + -4 + lVar6 * 4));
lVar4 = *(long *)(*(long *)(pbVar2 + 0x50) + (uVar5 >> 10) * 8);
uVar5 = (ulong)((uint)uVar5 & 0x3ff);
*(float *)(lVar4 + 4 + uVar5 * 0xc) = *(float *)(lVar4 + 4 + uVar5 * 0xc) + fVar3 * fVar7;
lVar6 = lVar6 + -1;
} while (lVar6 != 0);
}
return;
}
|
|
13,309
|
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<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
|
inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
}
|
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> minja::Value::get<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, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0xd5610
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8e664
jmp 0xd5866
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0xd565f
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x89876
movq %rbx, %rdi
movl $0x1, %esi
callq 0x89876
jmp 0xd5866
testq %rax, %rax
je 0xd56d1
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0xd56b9
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xd55ce
movq %r12, %rdi
movq %r15, %rsi
callq 0x8e284
movq %r15, %rdi
xorl %esi, %esi
callq 0x89876
movq %r15, %rdi
callq 0x8eb30
addq $0x50, %r14
cmpq %r13, %r14
jne 0xd5688
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xd622a
movq %rsp, %rdi
callq 0x8f342
jmp 0xd5866
testq %rcx, %rcx
je 0xd58e1
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xa2eb6
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0xd5808
leaq 0xa8(%rsp), %rbp
leaq 0x50(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0xd5786
cmpl $0x4, %eax
je 0xd5786
cmpl $0x3, %eax
jne 0xd577c
leaq 0x40(%rsp), %rdi
callq 0xd55ce
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0xab7ac
movq %rbx, %rdi
movq %r12, %rsi
callq 0xcf50e
movq %rax, %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x8be80
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
jne 0xd57d4
leaq 0x40(%rsp), %r12
jmp 0xd57e4
addb $-0x5, %al
cmpb $0x3, %al
ja 0xd587b
movq %rbp, %rdi
callq 0xd55ce
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xa3aa2
movq %rbx, %rdi
movq %r12, %rsi
callq 0xcf50e
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8be80
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rcx
movq %rcx, %rax
movq %rbp, %r12
cmpq %rcx, %rdi
je 0xd57e1
movq (%rax), %rsi
incq %rsi
callq 0x1dc50
jmp 0xd57e4
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x89876
movq %r12, %rdi
callq 0x8eb30
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x50(%rsp), %r12
jne 0xd570f
cmpq $0x0, 0x30(%r14)
je 0xd5866
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x90c72
movq %r14, %rdi
movl $0x1, %esi
callq 0x89876
leaq 0x40fbe(%rip), %rsi # 0x1167fa
movq %rbx, %rdi
callq 0xc8a6c
leaq 0x70(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x8be80
movq %r14, %rdi
xorl %esi, %esi
callq 0x89876
movq %r14, %rdi
callq 0x8eb30
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1d5b0
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xa3aa2
leaq 0x40f24(%rip), %rsi # 0x1167d0
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x9cdd5
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1e430
xorl %ebp, %ebp
movq 0x80718(%rip), %rsi # 0x155fe8
movq 0x80681(%rip), %rdx # 0x155f58
movq %r12, %rdi
callq 0x1e5b0
jmp 0xd593c
movl $0x10, %edi
callq 0x1d5b0
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0xaa67c
leaq 0x40efe(%rip), %rsi # 0x116807
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x9cdd5
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1e430
xorl %ebp, %ebp
movq 0x806bb(%rip), %rsi # 0x155fe8
movq 0x80624(%rip), %rdx # 0x155f58
movq %rbx, %rdi
callq 0x1e5b0
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd595a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd5975
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
testb %bpl, %bpl
jne 0xd59a2
jmp 0xd5ae3
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd59a2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0xd59a2
movq %rax, %r14
movq %rbx, %rdi
callq 0x1d8c0
jmp 0xd5ae3
movq %rax, %r14
leaq 0x70(%rsp), %r15
jmp 0xd5a91
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd59da
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd59f5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
testb %bpl, %bpl
jne 0xd5a27
jmp 0xd5aa8
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd5a27
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0xd5a27
jmp 0xd5abc
movq %rax, %r14
movq %r12, %rdi
callq 0x1d8c0
jmp 0xd5aa8
movq %rax, %r14
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xd5a5e
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0xd5a5e
movq %rax, %r14
leaq 0x40(%rsp), %r15
jmp 0xd5a91
movq %rax, %r14
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xd5a89
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x1dc50
jmp 0xd5a89
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x89876
movq %r15, %rdi
callq 0x8eb30
jmp 0xd5aa8
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x89876
movq %rbx, %rdi
callq 0x8eb30
jmp 0xd5ae3
movq %rax, %r14
jmp 0xd5adb
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x89876
movq %rbx, %rdi
callq 0x8eb30
movq %rsp, %rdi
callq 0x8f342
movq %r14, %rdi
callq 0x1e660
|
_ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_D5610
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
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&)
jmp loc_D5866
loc_D5610:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_D565F
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
jmp loc_D5866
loc_D565F:
test rax, rax
jz short loc_D56D1
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_D56B9
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_D5688:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &&)
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()
add r14, 50h ; 'P'
cmp r14, r13
jnz short loc_D5688
loc_D56B9:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
jmp loc_D5866
loc_D56D1:
test rcx, rcx
jz loc_D58E1
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_D5808
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_98]
loc_D570F:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_D5786
cmp eax, 4
jz short loc_D5786
cmp eax, 3
jnz short loc_D577C
lea rdi, [rsp+0E8h+var_A8]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](std::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_A8]
mov rsi, r12
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, [rsp+0E8h+var_60]
lea rcx, [rsp+0E8h+var_50]
mov rax, rcx
cmp rdi, rcx
jnz short loc_D57D4
lea r12, [rsp+0E8h+var_A8]
jmp short loc_D57E4
loc_D577C:
add al, 0FBh
cmp al, 3
ja loc_D587B
loc_D5786:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(void)
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[](std::string)
mov rdi, rax
mov rsi, rbp
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, [rsp+0E8h+var_98]; void *
lea rcx, [rsp+0E8h+var_88]
mov rax, rcx
mov r12, rbp
cmp rdi, rcx
jz short loc_D57E1
loc_D57D4:
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D57E4
loc_D57E1:
mov r12, rbp
loc_D57E4:
mov rdi, r12
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, r12
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()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_98]
jnz loc_D570F
loc_D5808:
cmp qword ptr [r14+30h], 0
jz short loc_D5866
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_78]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::boolean_t)
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)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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[]<char const>(char const *)
lea r14, [rsp+0E8h+var_78]
mov rdi, rax
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>)
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_D5866:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_D587B:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
xor r8d, r8d
xor r9d, r9d
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_D593C
loc_D58E1:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_D593C:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D595A
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D595A:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D5975
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D5975:
test bpl, bpl
jnz short loc_D59A2
jmp loc_D5AE3
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D59A2
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D59A2
mov r14, rax
loc_D59A2:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_D5AE3
mov r14, rax
lea r15, [rsp+0E8h+var_78]
jmp loc_D5A91
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D59DA
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D59DA:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D59F5
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D59F5:
test bpl, bpl
jnz short loc_D5A27
jmp loc_D5AA8
mov r14, rax
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_D5A27
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D5A27
jmp loc_D5ABC
mov r14, rax
loc_D5A27:
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_D5AA8
mov r14, rax
mov rdi, [rsp+0E8h+var_60]; void *
lea rax, [rsp+0E8h+var_50]
cmp rdi, rax
jz short loc_D5A5E
mov rsi, [rsp+0E8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D5A5E
mov r14, rax
loc_D5A5E:
lea r15, [rsp+0E8h+var_A8]
jmp short loc_D5A91
mov r14, rax
mov rdi, [rsp+0E8h+var_98]; void *
lea rax, [rsp+0E8h+var_88]
cmp rdi, rax
jz short loc_D5A89
mov rsi, [rsp+0E8h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D5A89
mov r14, rax
loc_D5A89:
lea r15, [rsp+0E8h+var_40]
loc_D5A91:
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()
jmp short loc_D5AA8
mov r14, rax
loc_D5AA8:
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_D5AE3
loc_D5ABC:
mov r14, rax
jmp short loc_D5ADB
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
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()
loc_D5ADB:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector()
loc_D5AE3:
mov rdi, r14
call __Unwind_Resume
|
long long minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1,
long long a2)
{
unsigned long long v4; // rax
long long v5; // rcx
long long v6; // rdx
long long v7; // r14
long long v8; // r13
long long v9; // rax
_BYTE *v10; // r15
_BYTE *v11; // r13
_BYTE *v12; // rsi
int v13; // eax
long long v14; // rax
char *v15; // r12
void *v16; // rdi
_QWORD *v17; // rax
long long v18; // rax
long long v19; // rax
void *v21; // r12
void *exception; // rbx
__int128 v23; // [rsp+0h] [rbp-E8h] BYREF
long long v24; // [rsp+10h] [rbp-D8h]
char v25[16]; // [rsp+20h] [rbp-C8h] BYREF
_BYTE v26[16]; // [rsp+40h] [rbp-A8h] BYREF
void *v27[2]; // [rsp+50h] [rbp-98h] BYREF
_QWORD v28[2]; // [rsp+60h] [rbp-88h] BYREF
char v29[24]; // [rsp+70h] [rbp-78h] BYREF
void *v30[2]; // [rsp+88h] [rbp-60h] BYREF
_QWORD v31[2]; // [rsp+98h] [rbp-50h] BYREF
_BYTE v32[64]; // [rsp+A8h] [rbp-40h] BYREF
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
if ( !(v6 | v5 | 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>::basic_json(
(unsigned __int8 *)a1,
(unsigned __int8 *)(a2 + 64));
return a1;
}
if ( v6 == 0 && (v5 | v4) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
if ( v4 )
{
v23 = 0LL;
v24 = 0LL;
v7 = *(_QWORD *)v4;
v8 = *(_QWORD *)(v4 + 8);
if ( *(_QWORD *)v4 != v8 )
{
do
{
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v25,
v7);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(long long)&v23,
(long long)v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v25);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v25);
v7 += 80LL;
}
while ( v7 != v8 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v23);
std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector((long long)&v23);
return a1;
}
if ( !v5 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v23, (long long)"get<json> not defined for this value type: ", (long long)v25);
std::runtime_error::runtime_error(exception, &v23);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL,
0LL,
0LL,
1LL);
v9 = *(_QWORD *)(a2 + 32);
v10 = *(_BYTE **)v9;
v11 = *(_BYTE **)(v9 + 8);
if ( *(_BYTE **)v9 != v11 )
{
while ( 1 )
{
v12 = v10 + 16;
v13 = (unsigned __int8)*v10;
if ( !*v10 || v13 == 4 )
goto LABEL_17;
if ( v13 != 3 )
break;
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v26,
v12);
ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(
(long long)v30,
(long long)v10);
v14 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(long long *)v30);
v15 = v26;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
v14,
(long long)v26);
v16 = v30[0];
v17 = v31;
if ( v30[0] != v31 )
goto LABEL_18;
v15 = v26;
LABEL_20:
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v15);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v15);
v10 += 96;
if ( v10 == v11 )
goto LABEL_21;
}
if ( (unsigned __int8)(v13 - 5) > 3u )
{
v21 = __cxa_allocate_exception(0x10uLL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v25,
(long long)v10,
-1,
32,
0,
0);
std::operator+<char>((long long)&v23, (long long)"Invalid key type for conversion to JSON: ", (long long)v25);
std::runtime_error::runtime_error(v21, &v23);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
v32,
v12);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::dump(
(long long)v27,
(long long)v10,
-1,
32,
0,
0);
v18 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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,
(long long *)v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator=(
v18,
(long long)v32);
v16 = v27[0];
v17 = v28;
v15 = v32;
if ( v27[0] == v28 )
{
v15 = v32;
goto LABEL_20;
}
LABEL_18:
operator delete(v16, *v17 + 1LL);
goto LABEL_20;
}
LABEL_21:
if ( *(_QWORD *)(a2 + 48) )
{
*(_OWORD *)v29 = 0LL;
nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)v29,
1u);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v29);
v19 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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[]<char const>(
a1,
(long long)"__callable__");
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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=(
v19,
(long long)v29);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v29);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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(v29);
}
return a1;
}
|
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x001d5610
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0018e664
JMP 0x001d5866
LAB_001d5610:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x001d565f
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00189876
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00189876
JMP 0x001d5866
LAB_001d565f:
TEST RAX,RAX
JZ 0x001d56d1
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x001d56b9
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_001d5688:
MOV RDI,R15
MOV RSI,R14
CALL 0x001d55ce
LAB_001d5693:
MOV RDI,R12
MOV RSI,R15
CALL 0x0018e284
MOV RDI,R15
XOR ESI,ESI
CALL 0x00189876
MOV RDI,R15
CALL 0x0018eb30
ADD R14,0x50
CMP R14,R13
JNZ 0x001d5688
LAB_001d56b9:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x001d622a
LAB_001d56c4:
MOV RDI,RSP
CALL 0x0018f342
JMP 0x001d5866
LAB_001d56d1:
TEST RCX,RCX
JZ 0x001d58e1
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x001a2eb6
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x001d5808
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x50]
LAB_001d570f:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x001d5786
CMP EAX,0x4
JZ 0x001d5786
CMP EAX,0x3
JNZ 0x001d577c
LAB_001d5725:
LEA RDI,[RSP + 0x40]
CALL 0x001d55ce
LAB_001d572f:
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R15
CALL 0x001ab7ac
LAB_001d5742:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001cf50e
MOV RDI,RAX
LEA R12,[RSP + 0x40]
MOV RSI,R12
CALL 0x0018be80
MOV RDI,qword ptr [RSP + 0x88]
LEA RCX,[RSP + 0x98]
MOV RAX,RCX
CMP RDI,RCX
JNZ 0x001d57d4
LEA R12,[RSP + 0x40]
JMP 0x001d57e4
LAB_001d577c:
ADD AL,0xfb
CMP AL,0x3
JA 0x001d587b
LAB_001d5786:
MOV RDI,RBP
CALL 0x001d55ce
LAB_001d578e:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001a3aa2
LAB_001d57a9:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001cf50e
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0018be80
MOV RDI,qword ptr [RSP + 0x50]
LEA RCX,[RSP + 0x60]
MOV RAX,RCX
MOV R12,RBP
CMP RDI,RCX
JZ 0x001d57e1
LAB_001d57d4:
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011dc50
JMP 0x001d57e4
LAB_001d57e1:
MOV R12,RBP
LAB_001d57e4:
MOV RDI,R12
XOR ESI,ESI
CALL 0x00189876
MOV RDI,R12
CALL 0x0018eb30
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x50]
JNZ 0x001d570f
LAB_001d5808:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x001d5866
XORPS XMM0,XMM0
LEA R14,[RSP + 0x70]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00190c72
MOV RDI,R14
MOV ESI,0x1
CALL 0x00189876
LAB_001d5835:
LEA RSI,[0x2167fa]
MOV RDI,RBX
CALL 0x001c8a6c
LAB_001d5844:
LEA R14,[RSP + 0x70]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0018be80
MOV RDI,R14
XOR ESI,ESI
CALL 0x00189876
MOV RDI,R14
CALL 0x0018eb30
LAB_001d5866:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001d587b:
MOV EDI,0x10
CALL 0x0011d5b0
MOV R12,RAX
LAB_001d5888:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x001a3aa2
LAB_001d58a5:
LEA RSI,[0x2167d0]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0019cdd5
MOV BPL,0x1
LAB_001d58bc:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011e430
XOR EBP,EBP
MOV RSI,qword ptr [0x00255fe8]
MOV RDX,qword ptr [0x00255f58]
MOV RDI,R12
CALL 0x0011e5b0
LAB_001d58e1:
MOV EDI,0x10
CALL 0x0011d5b0
MOV RBX,RAX
LAB_001d58ee:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x001aa67c
LAB_001d5902:
LEA RSI,[0x216807]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0019cdd5
MOV BPL,0x1
LAB_001d5919:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011e430
XOR EBP,EBP
MOV RSI,qword ptr [0x00255fe8]
MOV RDX,qword ptr [0x00255f58]
MOV RDI,RBX
CALL 0x0011e5b0
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, 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::get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, 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 minja::Value::
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(void)
{
char cVar1;
long lVar2;
char *pcVar3;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar4;
long *plVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*in_RDI;
long *plVar8;
data *this;
long lVar9;
char *pcVar10;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
data local_a8 [16];
long *local_98 [2];
long local_88 [2];
int8 local_78;
int8 uStack_70;
long *local_60 [2];
long local_50 [2];
data local_40 [16];
plVar5 = *(long **)(in_RSI + 0x10);
lVar9 = *(long *)(in_RSI + 0x20);
if ((plVar5 == (long *)0x0 && lVar9 == 0) && *(long *)(in_RSI + 0x30) == 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(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar5 == (long *)0x0 && lVar9 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(in_RDI + 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>
::assert_invariant(SUB81(in_RDI,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(SUB81(in_RDI,0));
}
else if (plVar5 == (long *)0x0) {
if (lVar9 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001d58ee to 001d5901 has its CatchHandler @ 001d599f */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 001d5902 to 001d5915 has its CatchHandler @ 001d597f */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 001d5919 to 001d593b has its CatchHandler @ 001d593c */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_00255fe8,PTR__runtime_error_00255f58);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
pcVar10 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar3 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar10 != pcVar3) {
do {
cVar1 = *pcVar10;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_001d5786:
/* try { // try from 001d5786 to 001d578d has its CatchHandler @ 001d5aa5 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 001d578e to 001d57a8 has its CatchHandler @ 001d5a86 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_98,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001d57a9 to 001d57b3 has its CatchHandler @ 001d5a65 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_40);
plVar5 = local_88;
plVar8 = local_98[0];
this = local_40;
if (local_98[0] != plVar5) {
LAB_001d57d4:
operator_delete(plVar8,*plVar5 + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar10 + 0x10);
/* try { // try from 001d5888 to 001d58a4 has its CatchHandler @ 001d5a24 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::dump(local_c8,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001d58a5 to 001d58b8 has its CatchHandler @ 001d59ff */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 001d58bc to 001d58de has its CatchHandler @ 001d59bc */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_00255fe8,PTR__runtime_error_00255f58);
}
goto LAB_001d5786;
}
/* try { // try from 001d5725 to 001d572e has its CatchHandler @ 001d5aa5 */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 001d572f to 001d5741 has its CatchHandler @ 001d5a5b */
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(local_60,pcVar10);
/* try { // try from 001d5742 to 001d574c has its CatchHandler @ 001d5a31 */
pbVar4 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]();
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=(pbVar4,local_a8);
plVar5 = local_50;
plVar8 = local_60[0];
this = local_a8;
if (local_60[0] != plVar5) goto LAB_001d57d4;
this = local_a8;
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(this,0));
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(this);
pcVar10 = pcVar10 + 0x60;
} while (pcVar10 != pcVar3);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_78 = 0;
uStack_70 = 0;
nlohmann::json_abi_v3_11_3::detail::
external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::
construct<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
(&local_78,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>
::assert_invariant(SUB81(&local_78,0));
/* try { // try from 001d5835 to 001d5843 has its CatchHandler @ 001d59af */
pbVar6 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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[]<char_const>(in_RDI,"__callable__");
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>
*)pbVar6,(data *)&local_78);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_78,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_78);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar9 = *plVar5;
lVar2 = plVar5[1];
if (lVar9 != lVar2) {
do {
/* try { // try from 001d5688 to 001d5692 has its CatchHandler @ 001d5abc */
get<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
();
/* try { // try from 001d5693 to 001d569d has its CatchHandler @ 001d5ac1 */
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::
emplace_back<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8,(basic_json *)local_c8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_c8,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_c8);
lVar9 = lVar9 + 0x50;
} while (lVar9 != lVar2);
}
/* try { // try from 001d56b9 to 001d56c3 has its CatchHandler @ 001d5a1f */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::~vector((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
*)&local_e8);
}
return;
}
|
|
13,310
|
LefDefParser::defwConstraintOperandSum()
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/def/def/defwWriter.cpp
|
int
defwConstraintOperandSum()
{
defwFunc = DEFW_FPC_OPER; // Current function of writer
if (!defwFile)
return DEFW_UNINITIALIZED;
if (defwState != DEFW_FPC_OPER && defwState != DEFW_FPC_OPER_SUM)
return DEFW_BAD_ORDER; // sum can be within SUM
fprintf(defwFile, " SUM (");
defwState = DEFW_FPC_OPER_SUM;
defwFPC = 0;
return DEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::defwConstraintOperandSum():
pushq %rax
leaq 0xd8b0(%rip), %rax # 0x2b168
movl $0x4a, (%rax)
leaq 0xd893(%rip), %rax # 0x2b158
cmpq $0x0, (%rax)
jne 0x1d8d5
movl $0x1, 0x4(%rsp)
jmp 0x1d931
leaq 0xd888(%rip), %rax # 0x2b164
cmpl $0x4a, (%rax)
je 0x1d8f7
leaq 0xd87c(%rip), %rax # 0x2b164
cmpl $0x4b, (%rax)
je 0x1d8f7
movl $0x2, 0x4(%rsp)
jmp 0x1d931
leaq 0xd85a(%rip), %rax # 0x2b158
movq (%rax), %rdi
leaq 0x7627(%rip), %rsi # 0x24f2f
movb $0x0, %al
callq 0x10f0
leaq 0xd84e(%rip), %rax # 0x2b164
movl $0x4b, (%rax)
leaq 0xd85d(%rip), %rax # 0x2b180
movl $0x0, (%rax)
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
popq %rcx
retq
nopw (%rax,%rax)
|
_ZN12LefDefParser24defwConstraintOperandSumEv:
push rax
lea rax, _ZN12LefDefParser8defwFuncE; LefDefParser::defwFunc
mov dword ptr [rax], 4Ah ; 'J'
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
cmp qword ptr [rax], 0
jnz short loc_1D8D5
mov [rsp+8+var_4], 1
jmp short loc_1D931
loc_1D8D5:
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 4Ah ; 'J'
jz short loc_1D8F7
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
cmp dword ptr [rax], 4Bh ; 'K'
jz short loc_1D8F7
mov [rsp+8+var_4], 2
jmp short loc_1D931
loc_1D8F7:
lea rax, _ZN12LefDefParser8defwFileE; LefDefParser::defwFile
mov rdi, [rax]
lea rsi, aSum; " SUM ("
mov al, 0
call _fprintf
lea rax, _ZN12LefDefParser9defwStateE; LefDefParser::defwState
mov dword ptr [rax], 4Bh ; 'K'
lea rax, _ZN12LefDefParser7defwFPCE; LefDefParser::defwFPC
mov dword ptr [rax], 0
mov [rsp+8+var_4], 0
loc_1D931:
mov eax, [rsp+8+var_4]
pop rcx
retn
|
long long LefDefParser::defwConstraintOperandSum(LefDefParser *this)
{
LefDefParser::defwFunc = 74;
if ( LefDefParser::defwFile )
{
if ( LefDefParser::defwState == 74 || LefDefParser::defwState == 75 )
{
fprintf(LefDefParser::defwFile, " SUM (");
LefDefParser::defwState = 75;
LefDefParser::defwFPC = 0;
return 0;
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
defwConstraintOperandSum:
PUSH RAX
LEA RAX,[0x12b168]
MOV dword ptr [RAX],0x4a
LEA RAX,[0x12b158]
CMP qword ptr [RAX],0x0
JNZ 0x0011d8d5
MOV dword ptr [RSP + 0x4],0x1
JMP 0x0011d931
LAB_0011d8d5:
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x4a
JZ 0x0011d8f7
LEA RAX,[0x12b164]
CMP dword ptr [RAX],0x4b
JZ 0x0011d8f7
MOV dword ptr [RSP + 0x4],0x2
JMP 0x0011d931
LAB_0011d8f7:
LEA RAX,[0x12b158]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x124f2f]
MOV AL,0x0
CALL 0x001010f0
LEA RAX,[0x12b164]
MOV dword ptr [RAX],0x4b
LEA RAX,[0x12b180]
MOV dword ptr [RAX],0x0
MOV dword ptr [RSP + 0x4],0x0
LAB_0011d931:
MOV EAX,dword ptr [RSP + 0x4]
POP RCX
RET
|
/* LefDefParser::defwConstraintOperandSum() */
int4 LefDefParser::defwConstraintOperandSum(void)
{
int4 local_4;
defwFunc = 0x4a;
if (defwFile == (FILE *)0x0) {
local_4 = 1;
}
else if ((defwState == 0x4a) || (defwState == 0x4b)) {
fprintf(defwFile," SUM (");
defwState = 0x4b;
defwFPC = 0;
local_4 = 0;
}
else {
local_4 = 2;
}
return local_4;
}
|
|
13,311
|
JS_ReadDate
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue JS_ReadDate(BCReaderState *s)
{
JSContext *ctx = s->ctx;
JSValue val, obj = JS_UNDEFINED;
val = JS_ReadObjectRec(s);
if (JS_IsException(val))
goto fail;
if (!JS_IsNumber(val)) {
JS_ThrowTypeError(ctx, "Number tag expected for date");
goto fail;
}
obj = JS_NewObjectProtoClass(ctx, ctx->class_proto[JS_CLASS_DATE],
JS_CLASS_DATE);
if (JS_IsException(obj))
goto fail;
if (BC_add_object_ref(s, obj))
goto fail;
JS_SetObjectData(ctx, obj, val);
return obj;
fail:
JS_FreeValue(ctx, val);
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
}
|
O1
|
c
|
JS_ReadDate:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbp
movq (%rdi), %r14
callq 0x36965
movq %rax, %r12
movq %rdx, %r15
movl $0x3, %ebx
cmpl $0x6, %r15d
jne 0x4adc9
xorl %r13d, %r13d
jmp 0x4ae37
testl %r15d, %r15d
je 0x4add4
cmpl $0x7, %r15d
jne 0x4ae23
movq 0x40(%r14), %rax
movq 0xa0(%rax), %rsi
movq 0xa8(%rax), %rdx
movq %r14, %rdi
movl $0xa, %ecx
callq 0x24f61
movq %rax, %r13
movq %rdx, %rbx
cmpl $0x6, %ebx
je 0x4ae37
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4b0ed
testl %eax, %eax
jne 0x4ae37
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x3aebe
jmp 0x4ae5d
leaq 0x58e6c(%rip), %rsi # 0xa3c96
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x265c3
movq 0x18(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x21922
movq 0x18(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x21922
movl $0x6, %ebx
xorl %r13d, %r13d
movq %r13, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
JS_ReadDate:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbp, rdi
mov r14, [rdi]
call JS_ReadObjectRec
mov r12, rax
mov r15, rdx
mov ebx, 3
cmp r15d, 6
jnz short loc_4ADC9
xor r13d, r13d
jmp short loc_4AE37
loc_4ADC9:
test r15d, r15d
jz short loc_4ADD4
cmp r15d, 7
jnz short loc_4AE23
loc_4ADD4:
mov rax, [r14+40h]
mov rsi, [rax+0A0h]
mov rdx, [rax+0A8h]
mov rdi, r14
mov ecx, 0Ah
call JS_NewObjectProtoClass
mov r13, rax
mov rbx, rdx
cmp ebx, 6
jz short loc_4AE37
mov rdi, rbp
mov rsi, r13
call BC_add_object_ref1
test eax, eax
jnz short loc_4AE37
mov rdi, r14
mov rsi, r13
mov rdx, rbx
mov rcx, r12
mov r8, r15
call JS_SetObjectData
jmp short loc_4AE5D
loc_4AE23:
lea rsi, aNumberTagExpec; "Number tag expected for date"
xor r13d, r13d
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
loc_4AE37:
mov rdi, [r14+18h]
mov rsi, r12
mov rdx, r15
call JS_FreeValueRT
mov rdi, [r14+18h]
mov rsi, r13
mov rdx, rbx
call JS_FreeValueRT
mov ebx, 6
xor r13d, r13d
loc_4AE5D:
mov rax, r13
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
_DWORD * JS_ReadDate(
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 v14; // al
long long v15; // r14
long long v16; // rdx
long long v17; // rcx
long long v18; // r8
long long v19; // r9
_DWORD *ObjectRec; // r12
__m128 v21; // xmm4
__m128 v22; // xmm5
long long v23; // r15
long long v24; // rbx
_DWORD *v25; // r13
long long v26; // rax
long long v27; // rdx
long long v28; // r9
double v29; // xmm4_8
double v30; // xmm5_8
char v32; // [rsp-8h] [rbp-38h]
v32 = v14;
v15 = *a1;
ObjectRec = (_DWORD *)JS_ReadObjectRec((long long)a1, a7, a8, a9, a10, a11, a12, a13, a14, a2, a3, a4, a5, a6);
v23 = v16;
v24 = 3LL;
if ( (_DWORD)v16 == 6 )
{
v25 = 0LL;
LABEL_9:
JS_FreeValueRT(*(_QWORD *)(v15 + 24), ObjectRec, v23);
JS_FreeValueRT(*(_QWORD *)(v15 + 24), v25, v24);
return 0LL;
}
if ( (_DWORD)v16 && (_DWORD)v16 != 7 )
{
v25 = 0LL;
JS_ThrowTypeError(
v15,
(long long)"Number tag expected for date",
v16,
v17,
v18,
v19,
a7,
a8,
a9,
a10,
v21,
v22,
a13,
a14,
v32);
goto LABEL_9;
}
v26 = JS_NewObjectProtoClass(
v15,
*(_QWORD *)(*(_QWORD *)(v15 + 64) + 160LL),
*(_QWORD *)(*(_QWORD *)(v15 + 64) + 168LL),
0xAu);
v25 = (_DWORD *)v26;
v24 = v27;
if ( (_DWORD)v27 == 6 || (unsigned int)BC_add_object_ref1(a1, v26) )
goto LABEL_9;
JS_SetObjectData(v15, (long long)v25, v24, ObjectRec, v23, a7, a8, a9, a10, v29, v30, a13, a14, v28, v32);
return v25;
}
|
JS_ReadDate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBP,RDI
MOV R14,qword ptr [RDI]
CALL 0x00136965
MOV R12,RAX
MOV R15,RDX
MOV EBX,0x3
CMP R15D,0x6
JNZ 0x0014adc9
XOR R13D,R13D
JMP 0x0014ae37
LAB_0014adc9:
TEST R15D,R15D
JZ 0x0014add4
CMP R15D,0x7
JNZ 0x0014ae23
LAB_0014add4:
MOV RAX,qword ptr [R14 + 0x40]
MOV RSI,qword ptr [RAX + 0xa0]
MOV RDX,qword ptr [RAX + 0xa8]
MOV RDI,R14
MOV ECX,0xa
CALL 0x00124f61
MOV R13,RAX
MOV RBX,RDX
CMP EBX,0x6
JZ 0x0014ae37
MOV RDI,RBP
MOV RSI,R13
CALL 0x0014b0ed
TEST EAX,EAX
JNZ 0x0014ae37
MOV RDI,R14
MOV RSI,R13
MOV RDX,RBX
MOV RCX,R12
MOV R8,R15
CALL 0x0013aebe
JMP 0x0014ae5d
LAB_0014ae23:
LEA RSI,[0x1a3c96]
XOR R13D,R13D
MOV RDI,R14
XOR EAX,EAX
CALL 0x001265c3
LAB_0014ae37:
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R12
MOV RDX,R15
CALL 0x00121922
MOV RDI,qword ptr [R14 + 0x18]
MOV RSI,R13
MOV RDX,RBX
CALL 0x00121922
MOV EBX,0x6
XOR R13D,R13D
LAB_0014ae5d:
MOV RAX,R13
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] JS_ReadDate(long *param_1)
{
long lVar1;
int iVar2;
int1 auVar3 [16];
int1 auVar4 [16];
lVar1 = *param_1;
auVar3 = JS_ReadObjectRec();
iVar2 = auVar3._8_4_;
if (iVar2 == 6) {
auVar4 = ZEXT816(3) << 0x40;
}
else if ((iVar2 == 0) || (iVar2 == 7)) {
auVar4 = JS_NewObjectProtoClass
(lVar1,*(int8 *)(*(long *)(lVar1 + 0x40) + 0xa0),
*(int8 *)(*(long *)(lVar1 + 0x40) + 0xa8),10);
if ((auVar4._8_4_ != 6) && (iVar2 = BC_add_object_ref1(param_1,auVar4._0_8_), iVar2 == 0)) {
JS_SetObjectData(lVar1,auVar4._0_8_,auVar4._8_8_,auVar3._0_8_,auVar3._8_8_);
return auVar4;
}
}
else {
auVar4 = ZEXT816(3) << 0x40;
JS_ThrowTypeError(lVar1,"Number tag expected for date");
}
JS_FreeValueRT(*(int8 *)(lVar1 + 0x18),auVar3._0_8_,auVar3._8_8_);
JS_FreeValueRT(*(int8 *)(lVar1 + 0x18),auVar4._0_8_,auVar4._8_8_);
return ZEXT816(6) << 0x40;
}
|
|
13,312
|
alaya::SQ8SpaceTest_SaveAndLoad_Test::~SQ8SpaceTest_SaveAndLoad_Test()
|
AlayaLite/tests/space/sq8_space_test.cpp
|
TEST_F(SQ8SpaceTest, SaveAndLoad) {
float data[8] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
space_->fit(reinterpret_cast<float *>(data), 2);
std::string_view file_name_view = file_name_;
space_->save(file_name_view);
SQ8Space<> new_space;
new_space.load(file_name_view);
EXPECT_EQ(new_space.get_data_num(), 2);
}
|
O0
|
cpp
|
alaya::SQ8SpaceTest_SaveAndLoad_Test::~SQ8SpaceTest_SaveAndLoad_Test():
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rdi
callq 0x38080
popq %rax
retq
|
_ZN5alaya29SQ8SpaceTest_SaveAndLoad_TestD2Ev:
push rax
mov [rsp+8+var_8], rdi
mov rdi, [rsp+8+var_8]; this
call _ZN5alaya12SQ8SpaceTestD2Ev; alaya::SQ8SpaceTest::~SQ8SpaceTest()
pop rax
retn
|
void alaya::SQ8SpaceTest_SaveAndLoad_Test::~SQ8SpaceTest_SaveAndLoad_Test(
alaya::SQ8SpaceTest_SaveAndLoad_Test *this)
{
alaya::SQ8SpaceTest::~SQ8SpaceTest(this);
}
|
~SQ8SpaceTest_SaveAndLoad_Test:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x00138080
POP RAX
RET
|
/* alaya::SQ8SpaceTest_SaveAndLoad_Test::~SQ8SpaceTest_SaveAndLoad_Test() */
SQ8SpaceTest_SaveAndLoad_Test * __thiscall
alaya::SQ8SpaceTest_SaveAndLoad_Test::~SQ8SpaceTest_SaveAndLoad_Test
(SQ8SpaceTest_SaveAndLoad_Test *this)
{
SQ8SpaceTest::~SQ8SpaceTest((SQ8SpaceTest *)this);
return this;
}
|
|
13,313
|
enough_free_entries
|
eloqsql/storage/maria/ma_blockrec.c
|
static my_bool enough_free_entries(uchar *buff, uint block_size,
uint wanted_entries)
{
uint entries= (uint) buff[DIR_COUNT_OFFSET];
uint needed_free_entries, free_entry;
if (entries + wanted_entries <= MAX_ROWS_PER_PAGE)
return 1;
/* Check if enough free entries in free list */
needed_free_entries= entries + wanted_entries - MAX_ROWS_PER_PAGE;
free_entry= (uint) buff[DIR_FREE_OFFSET];
while (free_entry != END_OF_DIR_FREE_LIST)
{
uchar *dir;
if (!--needed_free_entries)
return 1;
dir= dir_entry_pos(buff, block_size, free_entry);
free_entry= dir[3];
}
return 0; /* Not enough entries */
}
|
O0
|
c
|
enough_free_entries:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
addl -0x18(%rbp), %eax
cmpl $0xff, %eax
ja 0x74730
movb $0x1, -0x1(%rbp)
jmp 0x7478a
movl -0x1c(%rbp), %eax
addl -0x18(%rbp), %eax
subl $0xff, %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movzbl 0x9(%rax), %eax
movl %eax, -0x24(%rbp)
cmpl $0xff, -0x24(%rbp)
je 0x74786
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, %eax
jne 0x74766
movb $0x1, -0x1(%rbp)
jmp 0x7478a
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x24(%rbp), %edx
callq 0x75000
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movzbl 0x3(%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x74749
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
enough_free_entries:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+8]
mov [rbp+var_1C], eax
mov eax, [rbp+var_1C]
add eax, [rbp+var_18]
cmp eax, 0FFh
ja short loc_74730
mov [rbp+var_1], 1
jmp short loc_7478A
loc_74730:
mov eax, [rbp+var_1C]
add eax, [rbp+var_18]
sub eax, 0FFh
mov [rbp+var_20], eax
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax+9]
mov [rbp+var_24], eax
loc_74749:
cmp [rbp+var_24], 0FFh
jz short loc_74786
mov eax, [rbp+var_20]
add eax, 0FFFFFFFFh
mov [rbp+var_20], eax
cmp eax, 0
jnz short loc_74766
mov [rbp+var_1], 1
jmp short loc_7478A
loc_74766:
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
mov edx, [rbp+var_24]
call dir_entry_pos
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax+3]
mov [rbp+var_24], eax
jmp short loc_74749
loc_74786:
mov [rbp+var_1], 0
loc_7478A:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
char enough_free_entries(long long a1, unsigned int a2, int a3)
{
unsigned int i; // [rsp+Ch] [rbp-24h]
int v5; // [rsp+10h] [rbp-20h]
int v6; // [rsp+14h] [rbp-1Ch]
v6 = *(unsigned __int8 *)(a1 + 8);
if ( (unsigned int)(a3 + v6) <= 0xFF )
return 1;
v5 = a3 + v6 - 255;
for ( i = *(unsigned __int8 *)(a1 + 9); i != 255; i = *(unsigned __int8 *)(dir_entry_pos(a1, a2, i) + 3) )
{
if ( !--v5 )
return 1;
}
return 0;
}
|
enough_free_entries:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x1c],EAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,dword ptr [RBP + -0x18]
CMP EAX,0xff
JA 0x00174730
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0017478a
LAB_00174730:
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,dword ptr [RBP + -0x18]
SUB EAX,0xff
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + 0x9]
MOV dword ptr [RBP + -0x24],EAX
LAB_00174749:
CMP dword ptr [RBP + -0x24],0xff
JZ 0x00174786
MOV EAX,dword ptr [RBP + -0x20]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x20],EAX
CMP EAX,0x0
JNZ 0x00174766
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0017478a
LAB_00174766:
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
MOV EDX,dword ptr [RBP + -0x24]
CALL 0x00175000
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX + 0x3]
MOV dword ptr [RBP + -0x24],EAX
JMP 0x00174749
LAB_00174786:
MOV byte ptr [RBP + -0x1],0x0
LAB_0017478a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int8 enough_free_entries(long param_1,int4 param_2,int param_3)
{
char cVar1;
uint uVar2;
long lVar4;
int4 local_28;
int1 local_9;
ulong uVar3;
uVar2 = (uint)*(byte *)(param_1 + 8) + param_3;
uVar3 = (ulong)uVar2;
if (uVar2 < 0x100) {
local_9 = 1;
}
else {
local_28 = ((uint)*(byte *)(param_1 + 8) + param_3) - 0xff;
cVar1 = *(char *)(param_1 + 9);
while (uVar3 = 0, cVar1 != -1) {
local_28 = local_28 - 1;
uVar3 = (ulong)local_28;
if (local_28 == 0) {
local_9 = 1;
goto LAB_0017478a;
}
lVar4 = dir_entry_pos(param_1,param_2,cVar1);
cVar1 = *(char *)(lVar4 + 3);
}
local_9 = 0;
}
LAB_0017478a:
return CONCAT71((int7)(uVar3 >> 8),local_9);
}
|
|
13,314
|
psi_rwlock_rdlock
|
eloqsql/mysys/my_thr_init.c
|
ATTRIBUTE_COLD
int psi_rwlock_rdlock(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_READLOCK, file, line);
int result= rw_rdlock(&that->m_rwlock);
if (locker)
PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result);
return result;
}
|
O0
|
c
|
psi_rwlock_rdlock:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
leaq 0x1bd3fe(%rip), %rax # 0x24a5f8
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
xorl %edx, %edx
callq *%rax
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x8e060
movl %eax, -0x54(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x8d250
leaq 0x1bd3bb(%rip), %rax # 0x24a5f8
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_rdlock:
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]
xor edx, edx
call rax
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call my_rw_rdlock
mov [rbp+var_54], eax
cmp [rbp+var_50], 0
jz short loc_8D250
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+1A8h]
mov rdi, [rbp+var_50]
mov esi, [rbp+var_54]
call rax
loc_8D250:
mov eax, [rbp+var_54]
add rsp, 60h
pop rbp
retn
|
long long psi_rwlock_rdlock(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, _QWORD, long long, _QWORD))PSI_server + 52))(
v6,
*(_QWORD *)(a1 + 144),
0LL,
a2,
a3);
v4 = my_rw_rdlock(v9);
if ( v5 )
(*((void ( **)(long long, _QWORD))PSI_server + 53))(v5, v4);
return v4;
}
|
psi_rwlock_rdlock:
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,[0x34a5f8]
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]
XOR EDX,EDX
CALL RAX
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0018e060
MOV dword ptr [RBP + -0x54],EAX
CMP qword ptr [RBP + -0x50],0x0
JZ 0x0018d250
LEA RAX,[0x34a5f8]
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_0018d250:
MOV EAX,dword ptr [RBP + -0x54]
ADD RSP,0x60
POP RBP
RET
|
int4 psi_rwlock_rdlock(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),0,param_2,param_3);
uVar1 = my_rw_rdlock(local_10);
if (lVar2 != 0) {
(**(code **)(PSI_server + 0x1a8))(lVar2,uVar1);
}
return uVar1;
}
|
|
13,315
|
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::scan_number()
|
monkey531[P]llama/common/./json.hpp
|
token_type scan_number() // lgtm [cpp/use-of-goto]
{
// reset token_buffer to store the number's bytes
reset();
// the type of the parsed number; initially set to unsigned; will be
// changed if minus sign, decimal point or exponent is read
token_type number_type = token_type::value_unsigned;
// state (init): we just found out we need to scan a number
switch (current)
{
case '-':
{
add(current);
goto scan_number_minus;
}
case '0':
{
add(current);
goto scan_number_zero;
}
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
// all other characters are rejected outside scan_number()
default: // LCOV_EXCL_LINE
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
}
scan_number_minus:
// state: we just parsed a leading minus sign
number_type = token_type::value_integer;
switch (get())
{
case '0':
{
add(current);
goto scan_number_zero;
}
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
default:
{
error_message = "invalid number; expected digit after '-'";
return token_type::parse_error;
}
}
scan_number_zero:
// state: we just parse a zero (maybe with a leading minus sign)
switch (get())
{
case '.':
{
add(decimal_point_char);
goto scan_number_decimal1;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_any1:
// state: we just parsed a number 0-9 (maybe with a leading minus sign)
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any1;
}
case '.':
{
add(decimal_point_char);
goto scan_number_decimal1;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_decimal1:
// state: we just parsed a decimal point
number_type = token_type::value_float;
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_decimal2;
}
default:
{
error_message = "invalid number; expected digit after '.'";
return token_type::parse_error;
}
}
scan_number_decimal2:
// we just parsed at least one number after a decimal point
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_decimal2;
}
case 'e':
case 'E':
{
add(current);
goto scan_number_exponent;
}
default:
goto scan_number_done;
}
scan_number_exponent:
// we just parsed an exponent
number_type = token_type::value_float;
switch (get())
{
case '+':
case '-':
{
add(current);
goto scan_number_sign;
}
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
{
error_message =
"invalid number; expected '+', '-', or digit after exponent";
return token_type::parse_error;
}
}
scan_number_sign:
// we just parsed an exponent sign
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
{
error_message = "invalid number; expected digit after exponent sign";
return token_type::parse_error;
}
}
scan_number_any2:
// we just parsed a number after the exponent or exponent sign
switch (get())
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
{
add(current);
goto scan_number_any2;
}
default:
goto scan_number_done;
}
scan_number_done:
// unget the character after the number (we only read it to know that
// we are done scanning a number)
unget();
char* endptr = nullptr; // NOLINT(cppcoreguidelines-pro-type-vararg,hicpp-vararg)
errno = 0;
// try to parse integers first and fall back to floats
if (number_type == token_type::value_unsigned)
{
const auto x = std::strtoull(token_buffer.data(), &endptr, 10);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
if (errno == 0)
{
value_unsigned = static_cast<number_unsigned_t>(x);
if (value_unsigned == x)
{
return token_type::value_unsigned;
}
}
}
else if (number_type == token_type::value_integer)
{
const auto x = std::strtoll(token_buffer.data(), &endptr, 10);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
if (errno == 0)
{
value_integer = static_cast<number_integer_t>(x);
if (value_integer == x)
{
return token_type::value_integer;
}
}
}
// this code is reached if we parse a floating-point number or if an
// integer conversion above failed
strtof(value_float, token_buffer.data(), &endptr);
// we checked the number format before
JSON_ASSERT(endptr == token_buffer.data() + token_buffer.size());
return token_type::value_float;
}
|
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>>>>>::scan_number():
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x6ed86
movl 0x14(%rbx), %eax
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jae 0x6ea40
leaq 0x50(%rbx), %r14
pushq $0x5
popq %rbp
movsbl %al, %esi
movq %r14, %rdi
callq 0x28950
leaq 0x50(%rbx), %r14
jmp 0x6e9c4
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x6e9b8
cmpl $0x2e, %eax
je 0x6eaeb
cmpl $0x45, %eax
je 0x6e9eb
cmpl $0x65, %eax
jne 0x6eb43
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jae 0x6ea7b
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x28950
leaq 0x50(%rbx), %r14
pushq $0x7
popq %rbp
movq %rbx, %rdi
callq 0x6ecac
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x6eb43
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x28950
jmp 0x6ea1e
cmpl $0x30, %eax
je 0x6eab9
cmpl $0x2d, %eax
jne 0x6ec8b
leaq 0x50(%rbx), %r14
pushq $0x2d
popq %rsi
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jae 0x6ec1a
movl 0x14(%rbx), %eax
pushq $0x6
jmp 0x6e9a6
cmpl $0x2d, %eax
je 0x6ea89
cmpl $0x2b, %eax
jne 0x6ebff
movsbl 0x14(%rbx), %esi
leaq 0x50(%rbx), %r14
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x6ea0b
leaq 0x86772(%rip), %rax # 0xf5226
jmp 0x6ec06
pushq $0x5
popq %rbp
leaq 0x50(%rbx), %rdi
pushq $0x30
popq %rsi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
cmpl $0x65, %eax
je 0x6ebf6
cmpl $0x45, %eax
je 0x6ebf6
cmpl $0x2e, %eax
jne 0x6eb43
leaq 0x50(%rbx), %r14
movsbl 0x90(%rbx), %esi
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x6ebe4
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x28950
movq %rbx, %rdi
callq 0x6ecac
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x6eb12
cmpl $0x65, %eax
je 0x6e9eb
cmpl $0x45, %eax
je 0x6e9eb
pushq $0x7
popq %rbp
movq %rbx, %rdi
callq 0x6ed22
andq $0x0, (%rsp)
callq 0x28050
movq %rax, %r14
andl $0x0, (%rax)
movq 0x50(%rbx), %rdi
cmpl $0x6, %ebp
je 0x6eb98
cmpl $0x5, %ebp
jne 0x6ebc0
movq %rsp, %r15
pushq $0xa
popq %rdx
movq %r15, %rsi
callq 0x29698
movq 0x50(%rbx), %rdi
movq 0x58(%rbx), %rcx
addq %rdi, %rcx
cmpq %rcx, (%r15)
jne 0x6ec53
cmpl $0x0, (%r14)
jne 0x6ebc0
movl $0x80, %ecx
jmp 0x6ebf0
movq %rsp, %r15
pushq $0xa
popq %rdx
movq %r15, %rsi
callq 0x29660
movq 0x50(%rbx), %rdi
movq 0x58(%rbx), %rcx
addq %rdi, %rcx
cmpq %rcx, (%r15)
jne 0x6ec6f
cmpl $0x0, (%r14)
je 0x6ebed
movq %rsp, %r14
movq %r14, %rsi
callq 0x288c0
movsd %xmm0, 0x88(%rbx)
movq 0x50(%rbx), %rax
addq 0x58(%rbx), %rax
cmpq %rax, (%r14)
jne 0x6ec37
pushq $0x7
jmp 0x6ec0c
leaq 0x865d7(%rip), %rax # 0xf51c2
jmp 0x6ec06
pushq $0x78
popq %rcx
movq %rax, (%rbx,%rcx)
jmp 0x6ec0d
leaq 0x50(%rbx), %r14
jmp 0x6e9eb
leaq 0x865e5(%rip), %rax # 0xf51eb
movq %rax, 0x70(%rbx)
pushq $0xe
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x30, %eax
jne 0x6ec2e
pushq $0x6
popq %rbp
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
jmp 0x6eac3
leaq 0x86564(%rip), %rax # 0xf5199
jmp 0x6ec06
leaq 0x830d8(%rip), %rdi # 0xf1d16
leaq 0x8311d(%rip), %rdx # 0xf1d62
leaq 0x8660d(%rip), %rcx # 0xf5259
movl $0x21d6, %esi # imm = 0x21D6
jmp 0x6eca5
leaq 0x830bc(%rip), %rdi # 0xf1d16
leaq 0x83101(%rip), %rdx # 0xf1d62
leaq 0x865f1(%rip), %rcx # 0xf5259
movl $0x21b5, %esi # imm = 0x21B5
jmp 0x6eca5
leaq 0x830a0(%rip), %rdi # 0xf1d16
leaq 0x830e5(%rip), %rdx # 0xf1d62
leaq 0x865d5(%rip), %rcx # 0xf5259
movl $0x21c5, %esi # imm = 0x21C5
jmp 0x6eca5
leaq 0x83084(%rip), %rdi # 0xf1d16
leaq 0x830c9(%rip), %rdx # 0xf1d62
leaq 0x8ed50(%rip), %rcx # 0xfd9f0
movl $0x20be, %esi # imm = 0x20BE
xorl %eax, %eax
callq 0x292a0
|
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE11scan_numberEv:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset(void)
mov eax, [rbx+14h]
lea ecx, [rax-31h]
cmp ecx, 9
jnb loc_6EA40
lea r14, [rbx+50h]
push 5
loc_6E9A6:
pop rbp
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
lea r14, [rbx+50h]
jmp short loc_6E9C4
loc_6E9B8:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
loc_6E9C4:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jb short loc_6E9B8
cmp eax, 2Eh ; '.'
jz loc_6EAEB
cmp eax, 45h ; 'E'
jz short loc_6E9EB
cmp eax, 65h ; 'e'
jnz loc_6EB43
loc_6E9EB:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jnb short loc_6EA7B
lea r14, [rbx+50h]
loc_6EA0B:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
lea r14, [rbx+50h]
push 7
pop rbp
loc_6EA1E:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 9
ja loc_6EB43
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_6EA1E
loc_6EA40:
cmp eax, 30h ; '0'
jz short loc_6EAB9
cmp eax, 2Dh ; '-'
jnz loc_6EC8B
lea r14, [rbx+50h]
push 2Dh ; '-'
pop rsi
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea ecx, [rax-31h]
cmp ecx, 9
jnb loc_6EC1A
mov eax, [rbx+14h]
push 6
jmp loc_6E9A6
loc_6EA7B:
cmp eax, 2Dh ; '-'
jz short loc_6EA89
cmp eax, 2Bh ; '+'
jnz loc_6EBFF
loc_6EA89:
movsx esi, byte ptr [rbx+14h]
lea r14, [rbx+50h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 0Ah
jb loc_6EA0B
lea rax, aInvalidNumberE; "invalid number; expected digit after ex"...
jmp loc_6EC06
loc_6EAB9:
push 5
pop rbp
lea rdi, [rbx+50h]
push 30h ; '0'
pop rsi
loc_6EAC3:
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
cmp eax, 65h ; 'e'
jz loc_6EBF6
cmp eax, 45h ; 'E'
jz loc_6EBF6
cmp eax, 2Eh ; '.'
jnz short loc_6EB43
lea r14, [rbx+50h]
loc_6EAEB:
movsx esi, byte ptr [rbx+90h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
add eax, 0FFFFFFD0h
cmp eax, 9
ja loc_6EBE4
lea r14, [rbx+50h]
loc_6EB12:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(void)
lea ecx, [rax-30h]
cmp ecx, 0Ah
jb short loc_6EB12
cmp eax, 65h ; 'e'
jz loc_6E9EB
cmp eax, 45h ; 'E'
jz loc_6E9EB
push 7
pop rbp
loc_6EB43:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5ungetEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::unget(void)
and [rsp+28h+var_28], 0
call ___errno_location
mov r14, rax
and dword ptr [rax], 0
mov rdi, [rbx+50h]
cmp ebp, 6
jz short loc_6EB98
cmp ebp, 5
jnz short loc_6EBC0
mov r15, rsp
push 0Ah
pop rdx
mov rsi, r15
call strtoull
mov rdi, [rbx+50h]
mov rcx, [rbx+58h]
add rcx, rdi
cmp [r15], rcx
jnz loc_6EC53
cmp dword ptr [r14], 0
jnz short loc_6EBC0
mov ecx, 80h
jmp short loc_6EBF0
loc_6EB98:
mov r15, rsp
push 0Ah
pop rdx
mov rsi, r15
call strtoll
mov rdi, [rbx+50h]
mov rcx, [rbx+58h]
add rcx, rdi
cmp [r15], rcx
jnz loc_6EC6F
cmp dword ptr [r14], 0
jz short loc_6EBED
loc_6EBC0:
mov r14, rsp
mov rsi, r14
call _strtod
movsd qword ptr [rbx+88h], xmm0
mov rax, [rbx+50h]
add rax, [rbx+58h]
cmp [r14], rax
jnz short loc_6EC37
push 7
jmp short loc_6EC0C
loc_6EBE4:
lea rax, aInvalidNumberE_0; "invalid number; expected digit after '."...
jmp short loc_6EC06
loc_6EBED:
push 78h ; 'x'
pop rcx
loc_6EBF0:
mov [rbx+rcx], rax
jmp short loc_6EC0D
loc_6EBF6:
lea r14, [rbx+50h]
jmp loc_6E9EB
loc_6EBFF:
lea rax, aInvalidNumberE_1; "invalid number; expected '+', '-', or d"...
loc_6EC06:
mov [rbx+70h], rax
push 0Eh
loc_6EC0C:
pop rbp
loc_6EC0D:
mov eax, ebp
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_6EC1A:
cmp eax, 30h ; '0'
jnz short loc_6EC2E
push 6
pop rbp
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
jmp loc_6EAC3
loc_6EC2E:
lea rax, aInvalidNumberE_2; "invalid number; expected digit after '-"...
jmp short loc_6EC06
loc_6EC37:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"...
mov esi, 21D6h
jmp short loc_6ECA5
loc_6EC53:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"...
mov esi, 21B5h
jmp short loc_6ECA5
loc_6EC6F:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aEndptrTokenBuf; "endptr == token_buffer.data() + token_b"...
mov esi, 21C5h
jmp short loc_6ECA5
loc_6EC8B:
lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAdvancedOption+0ABh; "false"
mov esi, 20BEh
loc_6ECA5:
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>>>::scan_number(
long long a1)
{
long long v1; // rax
int v3; // eax
long long v4; // r14
unsigned int v5; // ebp
long long v6; // rsi
long long v7; // r14
int v8; // eax
int v9; // eax
long long v10; // r14
int v11; // eax
const char *v12; // rax
long long v13; // rdi
int v14; // eax
int v15; // eax
_DWORD *v16; // r14
long long v17; // rdi
long long v18; // rax
long long v19; // rcx
int v21; // [rsp-8h] [rbp-30h]
_QWORD v23[5]; // [rsp+0h] [rbp-28h] BYREF
v23[0] = v1;
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(a1);
v3 = *(_DWORD *)(a1 + 20);
if ( (unsigned int)(v3 - 49) >= 9 )
{
if ( v3 == 48 )
{
v5 = 5;
v13 = a1 + 80;
v6 = 48LL;
}
else
{
if ( v3 != 45 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
8382LL,
"GGML_ASSERT(%s) failed",
"false");
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>>>::get("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp");
}
v4 = a1 + 80;
std::string::push_back(a1 + 80, 45LL);
v11 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( (unsigned int)(v11 - 49) < 9 )
{
v3 = *(_DWORD *)(a1 + 20);
v21 = 6;
goto LABEL_3;
}
if ( v11 != 48 )
{
v12 = "invalid number; expected digit after '-'";
goto LABEL_47;
}
v5 = 6;
v6 = (unsigned int)*(char *)(a1 + 20);
v13 = a1 + 80;
}
std::string::push_back(v13, v6);
v14 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( v14 == 101 || v14 == 69 )
{
v7 = a1 + 80;
goto LABEL_9;
}
if ( v14 != 46 )
goto LABEL_33;
v7 = a1 + 80;
LABEL_27:
std::string::push_back(v7, (unsigned int)*(char *)(a1 + 144));
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1)
- 48 > 9 )
{
v12 = "invalid number; expected digit after '.'";
goto LABEL_47;
}
v7 = a1 + 80;
do
{
v6 = (unsigned int)*(char *)(a1 + 20);
std::string::push_back(a1 + 80, v6);
v15 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
}
while ( (unsigned int)(v15 - 48) < 0xA );
if ( v15 != 101 && v15 != 69 )
{
v5 = 7;
goto LABEL_33;
}
LABEL_9:
std::string::push_back(v7, (unsigned int)*(char *)(a1 + 20));
v9 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( (unsigned int)(v9 - 48) < 0xA )
{
v10 = a1 + 80;
goto LABEL_11;
}
if ( v9 == 45 || v9 == 43 )
{
v10 = a1 + 80;
std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20));
if ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1)
- 48 < 0xA )
{
LABEL_11:
v6 = (unsigned int)*(char *)(a1 + 20);
std::string::push_back(v10, v6);
v5 = 7;
while ( (unsigned int)nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1)
- 48 <= 9 )
{
v6 = (unsigned int)*(char *)(a1 + 20);
std::string::push_back(a1 + 80, v6);
}
goto LABEL_33;
}
v12 = "invalid number; expected digit after exponent sign";
}
else
{
v12 = "invalid number; expected '+', '-', or digit after exponent";
}
LABEL_47:
*(_QWORD *)(a1 + 112) = v12;
return 14;
}
v4 = a1 + 80;
v21 = 5;
LABEL_3:
v5 = v21;
v6 = (unsigned int)(char)v3;
std::string::push_back(v4, v6);
v7 = a1 + 80;
while ( 1 )
{
v8 = nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(a1);
if ( (unsigned int)(v8 - 48) >= 0xA )
break;
v6 = (unsigned int)*(char *)(a1 + 20);
std::string::push_back(a1 + 80, v6);
}
if ( v8 == 46 )
goto LABEL_27;
if ( v8 == 69 || v8 == 101 )
goto LABEL_9;
LABEL_33:
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(a1);
v23[0] = 0LL;
v16 = (_DWORD *)__errno_location(a1, v6);
*v16 = 0;
v17 = *(_QWORD *)(a1 + 80);
if ( v5 == 6 )
{
v18 = strtoll(v17, v23, 10LL);
v17 = *(_QWORD *)(a1 + 80);
if ( v23[0] != v17 + *(_QWORD *)(a1 + 88) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
8645LL,
"GGML_ASSERT(%s) failed",
"endptr == token_buffer.data() + token_buffer.size()");
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>>>::get("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp");
}
if ( !*v16 )
{
v19 = 120LL;
goto LABEL_44;
}
}
else if ( v5 == 5 )
{
v18 = strtoull(v17, v23, 10LL);
v17 = *(_QWORD *)(a1 + 80);
if ( v23[0] != v17 + *(_QWORD *)(a1 + 88) )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
8629LL,
"GGML_ASSERT(%s) failed",
"endptr == token_buffer.data() + token_buffer.size()");
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>>>::get("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp");
}
if ( !*v16 )
{
v19 = 128LL;
LABEL_44:
*(_QWORD *)(a1 + v19) = v18;
return v5;
}
}
*(double *)(a1 + 136) = strtod(v17, v23);
if ( v23[0] == *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) )
return 7;
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",
8662LL,
"GGML_ASSERT(%s) failed",
"endptr == token_buffer.data() + token_buffer.size()");
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>>>::get("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp");
}
|
scan_number:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
CALL 0x0016ed86
MOV EAX,dword ptr [RBX + 0x14]
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JNC 0x0016ea40
LEA R14,[RBX + 0x50]
PUSH 0x5
LAB_0016e9a6:
POP RBP
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00128950
LEA R14,[RBX + 0x50]
JMP 0x0016e9c4
LAB_0016e9b8:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00128950
LAB_0016e9c4:
MOV RDI,RBX
CALL 0x0016ecac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x0016e9b8
CMP EAX,0x2e
JZ 0x0016eaeb
CMP EAX,0x45
JZ 0x0016e9eb
CMP EAX,0x65
JNZ 0x0016eb43
LAB_0016e9eb:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JNC 0x0016ea7b
LEA R14,[RBX + 0x50]
LAB_0016ea0b:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00128950
LEA R14,[RBX + 0x50]
PUSH 0x7
POP RBP
LAB_0016ea1e:
MOV RDI,RBX
CALL 0x0016ecac
ADD EAX,-0x30
CMP EAX,0x9
JA 0x0016eb43
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00128950
JMP 0x0016ea1e
LAB_0016ea40:
CMP EAX,0x30
JZ 0x0016eab9
CMP EAX,0x2d
JNZ 0x0016ec8b
LEA R14,[RBX + 0x50]
PUSH 0x2d
POP RSI
MOV RDI,R14
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JNC 0x0016ec1a
MOV EAX,dword ptr [RBX + 0x14]
PUSH 0x6
JMP 0x0016e9a6
LAB_0016ea7b:
CMP EAX,0x2d
JZ 0x0016ea89
CMP EAX,0x2b
JNZ 0x0016ebff
LAB_0016ea89:
MOVSX ESI,byte ptr [RBX + 0x14]
LEA R14,[RBX + 0x50]
MOV RDI,R14
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
ADD EAX,-0x30
CMP EAX,0xa
JC 0x0016ea0b
LEA RAX,[0x1f5226]
JMP 0x0016ec06
LAB_0016eab9:
PUSH 0x5
POP RBP
LEA RDI,[RBX + 0x50]
PUSH 0x30
POP RSI
LAB_0016eac3:
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
CMP EAX,0x65
JZ 0x0016ebf6
CMP EAX,0x45
JZ 0x0016ebf6
CMP EAX,0x2e
JNZ 0x0016eb43
LEA R14,[RBX + 0x50]
LAB_0016eaeb:
MOVSX ESI,byte ptr [RBX + 0x90]
MOV RDI,R14
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
ADD EAX,-0x30
CMP EAX,0x9
JA 0x0016ebe4
LEA R14,[RBX + 0x50]
LAB_0016eb12:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x00128950
MOV RDI,RBX
CALL 0x0016ecac
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x0016eb12
CMP EAX,0x65
JZ 0x0016e9eb
CMP EAX,0x45
JZ 0x0016e9eb
PUSH 0x7
POP RBP
LAB_0016eb43:
MOV RDI,RBX
CALL 0x0016ed22
AND qword ptr [RSP],0x0
CALL 0x00128050
MOV R14,RAX
AND dword ptr [RAX],0x0
MOV RDI,qword ptr [RBX + 0x50]
CMP EBP,0x6
JZ 0x0016eb98
CMP EBP,0x5
JNZ 0x0016ebc0
MOV R15,RSP
PUSH 0xa
POP RDX
MOV RSI,R15
CALL 0x00129698
MOV RDI,qword ptr [RBX + 0x50]
MOV RCX,qword ptr [RBX + 0x58]
ADD RCX,RDI
CMP qword ptr [R15],RCX
JNZ 0x0016ec53
CMP dword ptr [R14],0x0
JNZ 0x0016ebc0
MOV ECX,0x80
JMP 0x0016ebf0
LAB_0016eb98:
MOV R15,RSP
PUSH 0xa
POP RDX
MOV RSI,R15
CALL 0x00129660
MOV RDI,qword ptr [RBX + 0x50]
MOV RCX,qword ptr [RBX + 0x58]
ADD RCX,RDI
CMP qword ptr [R15],RCX
JNZ 0x0016ec6f
CMP dword ptr [R14],0x0
JZ 0x0016ebed
LAB_0016ebc0:
MOV R14,RSP
MOV RSI,R14
CALL 0x001288c0
MOVSD qword ptr [RBX + 0x88],XMM0
MOV RAX,qword ptr [RBX + 0x50]
ADD RAX,qword ptr [RBX + 0x58]
CMP qword ptr [R14],RAX
JNZ 0x0016ec37
PUSH 0x7
JMP 0x0016ec0c
LAB_0016ebe4:
LEA RAX,[0x1f51c2]
JMP 0x0016ec06
LAB_0016ebed:
PUSH 0x78
POP RCX
LAB_0016ebf0:
MOV qword ptr [RBX + RCX*0x1],RAX
JMP 0x0016ec0d
LAB_0016ebf6:
LEA R14,[RBX + 0x50]
JMP 0x0016e9eb
LAB_0016ebff:
LEA RAX,[0x1f51eb]
LAB_0016ec06:
MOV qword ptr [RBX + 0x70],RAX
PUSH 0xe
LAB_0016ec0c:
POP RBP
LAB_0016ec0d:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0016ec1a:
CMP EAX,0x30
JNZ 0x0016ec2e
PUSH 0x6
POP RBP
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
JMP 0x0016eac3
LAB_0016ec2e:
LEA RAX,[0x1f5199]
JMP 0x0016ec06
LAB_0016ec37:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f5259]
MOV ESI,0x21d6
JMP 0x0016eca5
LAB_0016ec53:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f5259]
MOV ESI,0x21b5
JMP 0x0016eca5
LAB_0016ec6f:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1f5259]
MOV ESI,0x21c5
JMP 0x0016eca5
LAB_0016ec8b:
LEA RDI,[0x1f1d16]
LEA RDX,[0x1f1d62]
LEA RCX,[0x1fd9f0]
MOV ESI,0x20be
LAB_0016eca5:
XOR EAX,EAX
CALL 0x001292a0
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::scan_number() */
int __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::scan_number(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
char cVar1;
int iVar2;
int iVar3;
char *in_RAX;
int *piVar4;
ulonglong uVar5;
long lVar6;
char *pcVar7;
int8 uVar8;
double dVar9;
char *local_28;
local_28 = in_RAX;
reset(this);
iVar3 = *(int *)(this + 0x14);
cVar1 = (char)this;
if (iVar3 - 0x31U < 9) {
iVar3 = 5;
LAB_0016e9a6:
std::__cxx11::string::push_back(cVar1 + 'P');
while (iVar2 = get(this), iVar2 - 0x30U < 10) {
std::__cxx11::string::push_back(cVar1 + 'P');
}
if (iVar2 == 0x2e) {
LAB_0016eaeb:
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (9 < iVar3 - 0x30U) {
pcVar7 = "invalid number; expected digit after \'.\'";
goto LAB_0016ec06;
}
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
} while (iVar3 - 0x30U < 10);
if ((iVar3 == 0x65) || (iVar3 == 0x45)) goto LAB_0016e9eb;
iVar3 = 7;
}
else if ((iVar2 == 0x45) || (iVar2 == 0x65)) goto LAB_0016e9eb;
}
else {
if (iVar3 == 0x30) {
iVar3 = 5;
}
else {
if (iVar3 != 0x2d) {
pcVar7 = "false";
uVar8 = 0x20be;
goto LAB_0016eca5;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (iVar3 - 0x31U < 9) {
iVar3 = 6;
goto LAB_0016e9a6;
}
if (iVar3 != 0x30) {
pcVar7 = "invalid number; expected digit after \'-\'";
goto LAB_0016ec06;
}
iVar3 = 6;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar2 = get(this);
if ((iVar2 != 0x65) && (iVar2 != 0x45)) {
if (iVar2 != 0x2e) goto LAB_0016eb43;
goto LAB_0016eaeb;
}
LAB_0016e9eb:
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (9 < iVar3 - 0x30U) {
if ((iVar3 != 0x2d) && (iVar3 != 0x2b)) {
pcVar7 = "invalid number; expected \'+\', \'-\', or digit after exponent";
LAB_0016ec06:
*(char **)(this + 0x70) = pcVar7;
return 0xe;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (9 < iVar3 - 0x30U) {
pcVar7 = "invalid number; expected digit after exponent sign";
goto LAB_0016ec06;
}
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = 7;
while (iVar2 = get(this), iVar2 - 0x30U < 10) {
std::__cxx11::string::push_back(cVar1 + 'P');
}
}
LAB_0016eb43:
unget(this);
local_28 = (char *)0x0;
piVar4 = __errno_location();
*piVar4 = 0;
pcVar7 = *(char **)(this + 0x50);
if (iVar3 == 6) {
uVar5 = strtoll(pcVar7,&local_28,10);
pcVar7 = *(char **)(this + 0x50);
if (local_28 != pcVar7 + *(long *)(this + 0x58)) {
pcVar7 = "endptr == token_buffer.data() + token_buffer.size()";
uVar8 = 0x21c5;
goto LAB_0016eca5;
}
if (*piVar4 == 0) {
lVar6 = 0x78;
LAB_0016ebf0:
*(ulonglong *)(this + lVar6) = uVar5;
return iVar3;
}
}
else if (iVar3 == 5) {
uVar5 = strtoull(pcVar7,&local_28,10);
pcVar7 = *(char **)(this + 0x50);
if (local_28 != pcVar7 + *(long *)(this + 0x58)) {
pcVar7 = "endptr == token_buffer.data() + token_buffer.size()";
uVar8 = 0x21b5;
goto LAB_0016eca5;
}
if (*piVar4 == 0) {
lVar6 = 0x80;
goto LAB_0016ebf0;
}
}
dVar9 = strtod(pcVar7,&local_28);
*(double *)(this + 0x88) = dVar9;
if (local_28 == (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) {
return 7;
}
pcVar7 = "endptr == token_buffer.data() + token_buffer.size()";
uVar8 = 0x21d6;
LAB_0016eca5:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/./json.hpp",uVar8,
"GGML_ASSERT(%s) failed",pcVar7);
}
|
|
13,316
|
mysql_stmt_free_result_start
|
eloqsql/libmariadb/libmariadb/mariadb_async.c
|
int STDCALL
mysql_stmt_free_result_start(my_bool *ret, MYSQL_STMT *stmt)
{
MK_ASYNC_START_BODY(
mysql_stmt_free_result,
stmt->mysql,
{
WIN_SET_NONBLOCKING(stmt->mysql)
parms.stmt= stmt;
},
TRUE,
r_my_bool,
/* If stmt->mysql==NULL then we will not block so can call directly. */
if (!stmt->mysql)
{
*ret= mysql_stmt_free_result(stmt);
return 0;
})
}
|
O3
|
c
|
mysql_stmt_free_result_start:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rsi), %rax
testq %rax, %rax
je 0x2e479
movq 0x480(%rax), %rax
movq 0x28(%rax), %r15
leaq -0x20(%rbp), %rdx
movq %r14, (%rdx)
movb $0x1, 0x14(%r15)
leaq 0x38(%r15), %rdi
leaq 0x9f(%rip), %rsi # 0x2e4fe
callq 0x2f2d4
movw $0x0, 0x14(%r15)
testl %eax, %eax
jle 0x2e483
movb $0x1, 0x15(%r15)
movl (%r15), %eax
jmp 0x2e4f3
movq %r14, %rdi
callq 0x21264
jmp 0x2e4ef
js 0x2e48b
movb 0x8(%r15), %al
jmp 0x2e4ef
movq 0x38(%r14), %rax
movl $0x7d8, 0x90(%rax) # imm = 0x7D8
movl $0x297, %edi # imm = 0x297
addq 0x38(%r14), %rdi
leaq 0x1d617(%rip), %rax # 0x4bac0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
movq 0x38(%r14), %rax
xorl %r15d, %r15d
movb %r15b, 0x29c(%rax)
movl $0x97, %edi
addq 0x38(%r14), %rdi
leaq 0x1d5fc(%rip), %rax # 0x4bad0
movq 0x40(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movq 0x38(%r14), %rax
movb %r15b, 0x296(%rax)
movb $0x1, %al
movb %al, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
|
mysql_stmt_free_result_start:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+38h]
test rax, rax
jz short loc_2E479
mov rax, [rax+480h]
mov r15, [rax+28h]
lea rdx, [rbp+var_20]
mov [rdx], r14
mov byte ptr [r15+14h], 1
lea rdi, [r15+38h]
lea rsi, mysql_stmt_free_result_start_internal
call my_context_spawn
mov word ptr [r15+14h], 0
test eax, eax
jle short loc_2E483
mov byte ptr [r15+15h], 1
mov eax, [r15]
jmp short loc_2E4F3
loc_2E479:
mov rdi, r14
call mysql_stmt_free_result
jmp short loc_2E4EF
loc_2E483:
js short loc_2E48B
mov al, [r15+8]
jmp short loc_2E4EF
loc_2E48B:
mov rax, [r14+38h]
mov dword ptr [rax+90h], 7D8h
mov edi, 297h
add rdi, [r14+38h]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [r14+38h]
xor r15d, r15d
mov [rax+29Ch], r15b
mov edi, 97h
add rdi, [r14+38h]
lea rax, client_errors
mov rsi, [rax+40h]
mov edx, 1FFh
call _strncpy
mov rax, [r14+38h]
mov [rax+296h], r15b
mov al, 1
loc_2E4EF:
mov [rbx], al
xor eax, eax
loc_2E4F3:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
|
long long mysql_stmt_free_result_start(char *a1, long long a2)
{
long long v2; // rax
long long v3; // rax
_BYTE *v4; // r15
int v5; // eax
char v7; // al
long long v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v2;
v3 = *(_QWORD *)(a2 + 56);
if ( v3 )
{
v4 = *(_BYTE **)(*(_QWORD *)(v3 + 1152) + 40LL);
v8[0] = a2;
v4[20] = 1;
v5 = my_context_spawn(v4 + 56, mysql_stmt_free_result_start_internal, v8);
*((_WORD *)v4 + 10) = 0;
if ( v5 > 0 )
{
v4[21] = 1;
return *(unsigned int *)v4;
}
if ( v5 < 0 )
{
*(_DWORD *)(*(_QWORD *)(a2 + 56) + 144LL) = 2008;
strncpy(*(_QWORD *)(a2 + 56) + 663LL, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 668LL) = 0;
strncpy(*(_QWORD *)(a2 + 56) + 151LL, client_errors[8], 511LL);
*(_BYTE *)(*(_QWORD *)(a2 + 56) + 662LL) = 0;
v7 = 1;
}
else
{
v7 = v4[8];
}
}
else
{
v7 = mysql_stmt_free_result(a2);
}
*a1 = v7;
return 0LL;
}
|
mysql_stmt_free_result_start:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x38]
TEST RAX,RAX
JZ 0x0012e479
MOV RAX,qword ptr [RAX + 0x480]
MOV R15,qword ptr [RAX + 0x28]
LEA RDX,[RBP + -0x20]
MOV qword ptr [RDX],R14
MOV byte ptr [R15 + 0x14],0x1
LEA RDI,[R15 + 0x38]
LEA RSI,[0x12e4fe]
CALL 0x0012f2d4
MOV word ptr [R15 + 0x14],0x0
TEST EAX,EAX
JLE 0x0012e483
MOV byte ptr [R15 + 0x15],0x1
MOV EAX,dword ptr [R15]
JMP 0x0012e4f3
LAB_0012e479:
MOV RDI,R14
CALL 0x00121264
JMP 0x0012e4ef
LAB_0012e483:
JS 0x0012e48b
MOV AL,byte ptr [R15 + 0x8]
JMP 0x0012e4ef
LAB_0012e48b:
MOV RAX,qword ptr [R14 + 0x38]
MOV dword ptr [RAX + 0x90],0x7d8
MOV EDI,0x297
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x14bac0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
XOR R15D,R15D
MOV byte ptr [RAX + 0x29c],R15B
MOV EDI,0x97
ADD RDI,qword ptr [R14 + 0x38]
LEA RAX,[0x14bad0]
MOV RSI,qword ptr [RAX + 0x40]
MOV EDX,0x1ff
CALL 0x00113220
MOV RAX,qword ptr [R14 + 0x38]
MOV byte ptr [RAX + 0x296],R15B
MOV AL,0x1
LAB_0012e4ef:
MOV byte ptr [RBX],AL
XOR EAX,EAX
LAB_0012e4f3:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int4 mysql_stmt_free_result_start(int1 *param_1,long param_2)
{
int4 *puVar1;
int1 uVar2;
int iVar3;
if (*(long *)(param_2 + 0x38) == 0) {
uVar2 = mysql_stmt_free_result(param_2);
}
else {
puVar1 = *(int4 **)(*(long *)(*(long *)(param_2 + 0x38) + 0x480) + 0x28);
*(int1 *)(puVar1 + 5) = 1;
iVar3 = my_context_spawn(puVar1 + 0xe,mysql_stmt_free_result_start_internal);
*(int2 *)(puVar1 + 5) = 0;
if (0 < iVar3) {
*(int1 *)((long)puVar1 + 0x15) = 1;
return *puVar1;
}
if (iVar3 < 0) {
*(int4 *)(*(long *)(param_2 + 0x38) + 0x90) = 0x7d8;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x29c) = 0;
strncpy((char *)(*(long *)(param_2 + 0x38) + 0x97),PTR_s_Client_run_out_of_memory_0014bb10,
0x1ff);
*(int1 *)(*(long *)(param_2 + 0x38) + 0x296) = 0;
uVar2 = 1;
}
else {
uVar2 = *(int1 *)(puVar1 + 2);
}
}
*param_1 = uVar2;
return 0;
}
|
|
13,317
|
google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLastInternal<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler>(std::integral_constant<bool, false>)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/repeated_ptr_field.h
|
typename TypeHandler::Type* ReleaseLastInternal(std::false_type) {
// ReleaseLast() for types that *do not* implement merge/copy behavior --
// this is the same as UnsafeArenaReleaseLast(). Note that we GOOGLE_DCHECK-fail if
// we're on an arena, since the user really should implement the copy
// operation in this case.
GOOGLE_DCHECK(GetOwningArena() == nullptr)
<< "ReleaseLast() called on a RepeatedPtrField that is on an arena, "
<< "with a type that does not implement MergeFrom. This is unsafe; "
<< "please implement MergeFrom for your type.";
return UnsafeArenaReleaseLast<TypeHandler>();
}
|
O0
|
c
|
google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLastInternal<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler>(std::integral_constant<bool, false>):
subq $0x98, %rsp
movq %rdi, 0x88(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
testb $0x1, %al
jne 0x1a83a7
jmp 0x1a8494
movq 0x30(%rsp), %rdi
callq 0xa7f20
movb $0x0, 0x4f(%rsp)
cmpq $0x0, %rax
jne 0x1a83c1
jmp 0x1a8459
leaq 0x47a6c(%rip), %rdx # 0x1efe34
leaq 0x50(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movl $0x3, %esi
movl $0x24c, %ecx # imm = 0x24C
callq 0x237e0
movq 0x20(%rsp), %rdi
movb $0x1, 0x4f(%rsp)
leaq 0x4f8f2(%rip), %rsi # 0x1f7ce4
callq 0x230a0
movq %rax, 0x28(%rsp)
jmp 0x1a83fe
movq 0x28(%rsp), %rdi
leaq 0x4f906(%rip), %rsi # 0x1f7d10
callq 0x230a0
movq %rax, 0x18(%rsp)
jmp 0x1a8416
movq 0x18(%rsp), %rdi
leaq 0x4f92f(%rip), %rsi # 0x1f7d51
callq 0x230a0
movq %rax, 0x10(%rsp)
jmp 0x1a842e
movq 0x10(%rsp), %rdi
leaq 0x4f957(%rip), %rsi # 0x1f7d91
callq 0x230a0
movq %rax, 0x8(%rsp)
jmp 0x1a8446
movq 0x8(%rsp), %rsi
leaq 0x3b(%rsp), %rdi
callq 0x23250
jmp 0x1a8457
jmp 0x1a8459
testb $0x1, 0x4f(%rsp)
jne 0x1a8462
jmp 0x1a846c
leaq 0x50(%rsp), %rdi
callq 0x23820
jmp 0x1a839c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
testb $0x1, 0x4f(%rsp)
jne 0x1a8488
jmp 0x1a8492
leaq 0x50(%rsp), %rdi
callq 0x23820
jmp 0x1a84a6
movq 0x30(%rsp), %rdi
callq 0x1a84b0
addq $0x98, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x13750
|
_ZN6google8protobuf8internal20RepeatedPtrFieldBase19ReleaseLastInternalINS0_16RepeatedPtrFieldINS0_11MessageLiteEE11TypeHandlerEEEPNT_4TypeESt17integral_constantIbLb0EE:
sub rsp, 98h
mov [rsp+98h+var_10], rdi
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_68], rax
loc_1A839C:
xor eax, eax
test al, 1
jnz short loc_1A83A7
jmp loc_1A8494
loc_1A83A7:
mov rdi, [rsp+98h+var_68]; this
call _ZNK6google8protobuf8internal20RepeatedPtrFieldBase14GetOwningArenaEv; google::protobuf::internal::RepeatedPtrFieldBase::GetOwningArena(void)
mov [rsp+98h+var_49], 0
cmp rax, 0
jnz short loc_1A83C1
jmp loc_1A8459
loc_1A83C1:
lea rdx, aWorkspaceLlm4b_6; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+98h+var_48]
mov [rsp+98h+var_78], rdi
mov esi, 3
mov ecx, 24Ch
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+98h+var_78]
mov [rsp+98h+var_49], 1
lea rsi, aCheckFailedGet_1; "CHECK failed: GetOwningArena() == nullp"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+98h+var_70], rax
jmp short $+2
loc_1A83FE:
mov rdi, [rsp+98h+var_70]
lea rsi, aReleaselastCal; "ReleaseLast() called on a RepeatedPtrFi"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+98h+var_80], rax
jmp short $+2
loc_1A8416:
mov rdi, [rsp+98h+var_80]
lea rsi, aWithATypeThatD; "with a type that does not implement Mer"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+98h+var_88], rax
jmp short $+2
loc_1A842E:
mov rdi, [rsp+98h+var_88]
lea rsi, aPleaseImplemen; "please implement MergeFrom for your typ"...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+98h+var_90], rax
jmp short $+2
loc_1A8446:
mov rsi, [rsp+98h+var_90]
lea rdi, [rsp+98h+var_5D]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_1A8457:
jmp short $+2
loc_1A8459:
test [rsp+98h+var_49], 1
jnz short loc_1A8462
jmp short loc_1A846C
loc_1A8462:
lea rdi, [rsp+98h+var_48]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_1A846C:
jmp loc_1A839C
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
test [rsp+arg_47], 1
jnz short loc_1A8488
jmp short loc_1A8492
loc_1A8488:
lea rdi, [rsp+arg_48]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_1A8492:
jmp short loc_1A84A6
loc_1A8494:
mov rdi, [rsp+98h+var_68]
call _ZN6google8protobuf8internal20RepeatedPtrFieldBase22UnsafeArenaReleaseLastINS0_16RepeatedPtrFieldINS0_11MessageLiteEE11TypeHandlerEEEPNT_4TypeEv; google::protobuf::internal::RepeatedPtrFieldBase::UnsafeArenaReleaseLast<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler>(void)
add rsp, 98h
retn
loc_1A84A6:
mov rdi, [rsp+arg_38]
call __Unwind_Resume
|
long long google::protobuf::internal::RepeatedPtrFieldBase::ReleaseLastInternal<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler>(
long long a1,
int a2,
int a3,
int a4,
int a5,
int a6)
{
long long v7; // [rsp+88h] [rbp-10h]
v7 = a1;
return google::protobuf::internal::RepeatedPtrFieldBase::UnsafeArenaReleaseLast<google::protobuf::RepeatedPtrField<google::protobuf::MessageLite>::TypeHandler>(
a1,
a2,
a3,
a4,
a5,
a6);
}
|
FieldDescriptorProto_Label_descriptor:
PUSH RAX
LEA RDI,[0x37ce38]
XOR ESI,ESI
CALL 0x00214640
MOV RAX,qword ptr [0x0037d338]
POP RCX
RET
|
/* google::protobuf::FieldDescriptorProto_Label_descriptor() */
int8 google::protobuf::FieldDescriptorProto_Label_descriptor(void)
{
internal::AssignDescriptors
((DescriptorTable *)descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,false);
return DAT_0037d338;
}
|
|
13,318
|
unlink_from_queue
|
eloqsql/mysys/mf_keycache.c
|
static void unlink_from_queue(KEYCACHE_WQUEUE *wqueue,
struct st_my_thread_var *thread)
{
KEYCACHE_DBUG_PRINT("unlink_from_queue", ("thread %ld", (ulong) thread->id));
DBUG_ASSERT(thread->next && thread->prev);
if (thread->next == thread)
{
/* The queue contains only one member */
wqueue->last_thread= NULL;
}
else
{
/* Remove current element from list */
thread->next->prev= thread->prev;
*thread->prev= thread->next;
/* If first element, change list pointer to point to previous element */
if (wqueue->last_thread == thread)
wqueue->last_thread= STRUCT_PTR(struct st_my_thread_var, next,
thread->prev);
}
thread->next= NULL;
#ifdef DBUG_ASSERT_EXISTS
/*
This makes it easier to see it's not in a chain during debugging.
And some DBUG_ASSERT() rely on it.
*/
thread->prev= NULL;
#endif
}
|
O0
|
c
|
unlink_from_queue:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0xe629e
jmp 0xe62a0
jmp 0xe62a2
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0xe62c0
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
jmp 0xe631e
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rcx, 0x90(%rax)
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rcx
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
cmpq -0x10(%rbp), %rax
jne 0xe631c
movq -0x10(%rbp), %rax
movq 0x90(%rax), %rcx
addq $-0x88, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
jmp 0xe631e
movq -0x10(%rbp), %rax
movq $0x0, 0x88(%rax)
popq %rbp
retq
nop
|
unlink_from_queue:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_E629E:
jmp short $+2
loc_E62A0:
jmp short $+2
loc_E62A2:
mov rax, [rbp+var_10]
mov rax, [rax+88h]
cmp rax, [rbp+var_10]
jnz short loc_E62C0
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
jmp short loc_E631E
loc_E62C0:
mov rax, [rbp+var_10]
mov rcx, [rax+90h]
mov rax, [rbp+var_10]
mov rax, [rax+88h]
mov [rax+90h], rcx
mov rax, [rbp+var_10]
mov rcx, [rax+88h]
mov rax, [rbp+var_10]
mov rax, [rax+90h]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rax, [rax]
cmp rax, [rbp+var_10]
jnz short loc_E631C
mov rax, [rbp+var_10]
mov rcx, [rax+90h]
add rcx, 0FFFFFFFFFFFFFF78h
mov rax, [rbp+var_8]
mov [rax], rcx
loc_E631C:
jmp short $+2
loc_E631E:
mov rax, [rbp+var_10]
mov qword ptr [rax+88h], 0
pop rbp
retn
|
long long unlink_from_queue(_QWORD *a1, long long a2)
{
long long result; // rax
if ( *(_QWORD *)(a2 + 136) == a2 )
{
*a1 = 0LL;
}
else
{
*(_QWORD *)(*(_QWORD *)(a2 + 136) + 144LL) = *(_QWORD *)(a2 + 144);
**(_QWORD **)(a2 + 144) = *(_QWORD *)(a2 + 136);
if ( *a1 == a2 )
*a1 = *(_QWORD *)(a2 + 144) - 136LL;
}
result = a2;
*(_QWORD *)(a2 + 136) = 0LL;
return result;
}
|
unlink_from_queue:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x001e629e
LAB_001e629e:
JMP 0x001e62a0
LAB_001e62a0:
JMP 0x001e62a2
LAB_001e62a2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x88]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x001e62c0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
JMP 0x001e631e
LAB_001e62c0:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x90]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x88]
MOV qword ptr [RAX + 0x90],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x88]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x90]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
CMP RAX,qword ptr [RBP + -0x10]
JNZ 0x001e631c
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x90]
ADD RCX,-0x88
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
LAB_001e631c:
JMP 0x001e631e
LAB_001e631e:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x88],0x0
POP RBP
RET
|
void unlink_from_queue(long *param_1,long param_2)
{
if (*(long *)(param_2 + 0x88) == param_2) {
*param_1 = 0;
}
else {
*(int8 *)(*(long *)(param_2 + 0x88) + 0x90) = *(int8 *)(param_2 + 0x90);
**(int8 **)(param_2 + 0x90) = *(int8 *)(param_2 + 0x88);
if (*param_1 == param_2) {
*param_1 = *(long *)(param_2 + 0x90) + -0x88;
}
}
*(int8 *)(param_2 + 0x88) = 0;
return;
}
|
|
13,319
|
options_add_initcommand
|
eloqsql/libmariadb/libmariadb/mariadb_lib.c
|
static void options_add_initcommand(struct st_mysql_options *options,
const char *init_cmd)
{
char *insert= strdup(init_cmd);
if (!options->init_command)
{
options->init_command= (DYNAMIC_ARRAY*)malloc(sizeof(DYNAMIC_ARRAY));
ma_init_dynamic_array(options->init_command, sizeof(char*), 5, 5);
}
if (ma_insert_dynamic(options->init_command, (gptr)&insert))
free(insert);
}
|
O3
|
c
|
options_add_initcommand:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x14800
movq %rax, -0x10(%rbp)
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
jne 0x2d529
movl $0x18, %edi
callq 0x14620
movq %rax, 0x48(%rbx)
movq %rax, %rdi
movl $0x8, %esi
movl $0x5, %edx
movl $0x5, %ecx
callq 0x40f18
movq 0x48(%rbx), %rdi
leaq -0x10(%rbp), %rsi
callq 0x40f90
testb %al, %al
je 0x2d53f
movq -0x10(%rbp), %rdi
callq 0x14590
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
|
options_add_initcommand:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, rsi
call _strdup
mov [rbp+var_10], rax
mov rdi, [rbx+48h]
test rdi, rdi
jnz short loc_2D529
mov edi, 18h
call _malloc
mov [rbx+48h], rax
mov rdi, rax
mov esi, 8
mov edx, 5
mov ecx, 5
call ma_init_dynamic_array
mov rdi, [rbx+48h]
loc_2D529:
lea rsi, [rbp+var_10]
call ma_insert_dynamic
test al, al
jz short loc_2D53F
mov rdi, [rbp+var_10]
call _free
loc_2D53F:
add rsp, 8
pop rbx
pop rbp
retn
|
long long options_add_initcommand(long long a1, long long a2)
{
long long v3; // rdi
long long v4; // rax
long long result; // rax
long long v6; // [rsp+0h] [rbp-10h] BYREF
v6 = strdup(a2);
v3 = *(_QWORD *)(a1 + 72);
if ( !v3 )
{
v4 = malloc(24LL);
*(_QWORD *)(a1 + 72) = v4;
ma_init_dynamic_array(v4, 8LL, 5LL, 5LL);
v3 = *(_QWORD *)(a1 + 72);
}
result = ma_insert_dynamic(v3, &v6);
if ( (_BYTE)result )
return free(v6);
return result;
}
|
options_add_initcommand:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00114800
MOV qword ptr [RBP + -0x10],RAX
MOV RDI,qword ptr [RBX + 0x48]
TEST RDI,RDI
JNZ 0x0012d529
MOV EDI,0x18
CALL 0x00114620
MOV qword ptr [RBX + 0x48],RAX
MOV RDI,RAX
MOV ESI,0x8
MOV EDX,0x5
MOV ECX,0x5
CALL 0x00140f18
MOV RDI,qword ptr [RBX + 0x48]
LAB_0012d529:
LEA RSI,[RBP + -0x10]
CALL 0x00140f90
TEST AL,AL
JZ 0x0012d53f
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00114590
LAB_0012d53f:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void options_add_initcommand(long param_1,char *param_2)
{
char cVar1;
void *pvVar2;
long lVar3;
char *local_18;
local_18 = strdup(param_2);
lVar3 = *(long *)(param_1 + 0x48);
if (lVar3 == 0) {
pvVar2 = malloc(0x18);
*(void **)(param_1 + 0x48) = pvVar2;
ma_init_dynamic_array(pvVar2,8,5,5);
lVar3 = *(long *)(param_1 + 0x48);
}
cVar1 = ma_insert_dynamic(lVar3,&local_18);
if (cVar1 != '\0') {
free(local_18);
}
return;
}
|
|
13,320
|
getopt_ll_limit_value
|
eloqsql/mysys/my_getopt.c
|
longlong getopt_ll_limit_value(longlong num, const struct my_option *optp,
my_bool *fix)
{
longlong old= num;
my_bool adjusted= FALSE;
char buf1[255], buf2[255];
ulonglong block_size= (optp->block_size ? (ulonglong) optp->block_size : 1L);
DBUG_ENTER("getopt_ll_limit_value");
if (num > 0 && ((ulonglong) num > (ulonglong) optp->max_value) &&
optp->max_value) /* if max value is not set -> no upper limit */
{
num= (ulonglong) optp->max_value;
adjusted= TRUE;
}
switch ((optp->var_type & GET_TYPE_MASK)) {
case GET_INT:
if (num > (longlong) INT_MAX)
{
num= ((longlong) INT_MAX);
adjusted= TRUE;
}
break;
case GET_LONG:
#if SIZEOF_LONG < SIZEOF_LONG_LONG
if (num > (longlong) LONG_MAX)
{
num= ((longlong) LONG_MAX);
adjusted= TRUE;
}
#endif
break;
default:
DBUG_ASSERT((optp->var_type & GET_TYPE_MASK) == GET_LL);
break;
}
num= (num / block_size);
num= (longlong) (num * block_size);
if (num < optp->min_value)
{
num= optp->min_value;
if (old < optp->min_value)
adjusted= TRUE;
}
if (fix)
*fix= old != num;
else if (adjusted)
my_getopt_error_reporter(WARNING_LEVEL,
"option '%s': signed value %s adjusted to %s",
optp->name, llstr(old, buf1), llstr(num, buf2));
DBUG_RETURN(num);
}
|
O0
|
c
|
getopt_ll_limit_value:
pushq %rbp
movq %rsp, %rbp
subq $0x270, %rsp # imm = 0x270
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x230(%rbp)
movb $0x0, -0x231(%rbp)
movq -0x220(%rbp), %rax
cmpq $0x0, 0x60(%rax)
je 0x29464
movq -0x220(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x248(%rbp)
jmp 0x29472
movl $0x1, %eax
movq %rax, -0x248(%rbp)
jmp 0x29472
movq -0x248(%rbp), %rax
movq %rax, -0x240(%rbp)
cmpq $0x0, -0x218(%rbp)
jle 0x294c5
movq -0x218(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x50(%rcx), %rax
jbe 0x294c5
movq -0x220(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x294c5
movq -0x220(%rbp), %rax
movq 0x50(%rax), %rax
movq %rax, -0x218(%rbp)
movb $0x1, -0x231(%rbp)
movq -0x220(%rbp), %rax
movq 0x30(%rax), %rax
andl $0x3f, %eax
movq %rax, -0x250(%rbp)
subq $0x3, %rax
je 0x294f1
jmp 0x294e2
movq -0x250(%rbp), %rax
subq $0x5, %rax
je 0x29512
jmp 0x29514
cmpq $0x7fffffff, -0x218(%rbp) # imm = 0x7FFFFFFF
jle 0x29510
movq $0x7fffffff, -0x218(%rbp) # imm = 0x7FFFFFFF
movb $0x1, -0x231(%rbp)
jmp 0x2951a
jmp 0x2951a
jmp 0x29516
jmp 0x29518
jmp 0x2951a
movq -0x218(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, %edx
divq -0x240(%rbp)
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
imulq -0x240(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jge 0x2958c
movq -0x220(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x218(%rbp)
movq -0x230(%rbp), %rax
movq -0x220(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jge 0x2958a
movb $0x1, -0x231(%rbp)
jmp 0x2958c
cmpq $0x0, -0x228(%rbp)
je 0x295bc
movq -0x230(%rbp), %rax
cmpq -0x218(%rbp), %rax
setne %al
andb $0x1, %al
movzbl %al, %eax
movb %al, %cl
movq -0x228(%rbp), %rax
movb %cl, (%rax)
jmp 0x2963f
cmpb $0x0, -0x231(%rbp)
je 0x2963d
leaq 0x1b0264(%rip), %rax # 0x1d9830
movq (%rax), %rax
movq %rax, -0x258(%rbp)
movq -0x220(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x268(%rbp)
movq -0x230(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x7c590
movq %rax, -0x260(%rbp)
movq -0x218(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x7c590
movq -0x268(%rbp), %rdx
movq -0x260(%rbp), %rcx
movq -0x258(%rbp), %r9
movq %rax, %r8
movl $0x1, %edi
leaq 0x592f6(%rip), %rsi # 0x8292e
movb $0x0, %al
callq *%r9
jmp 0x2963f
jmp 0x29641
movq -0x218(%rbp), %rax
movq %rax, -0x270(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x29671
movq -0x270(%rbp), %rax
addq $0x270, %rsp # imm = 0x270
popq %rbp
retq
callq 0x25330
nopw %cs:(%rax,%rax)
|
getopt_ll_limit_value:
push rbp
mov rbp, rsp
sub rsp, 270h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov [rbp+var_228], rdx
mov rax, [rbp+var_218]
mov [rbp+var_230], rax
mov [rbp+var_231], 0
mov rax, [rbp+var_220]
cmp qword ptr [rax+60h], 0
jz short loc_29464
mov rax, [rbp+var_220]
mov rax, [rax+60h]
mov [rbp+var_248], rax
jmp short loc_29472
loc_29464:
mov eax, 1
mov [rbp+var_248], rax
jmp short $+2
loc_29472:
mov rax, [rbp+var_248]
mov [rbp+var_240], rax
cmp [rbp+var_218], 0
jle short loc_294C5
mov rax, [rbp+var_218]
mov rcx, [rbp+var_220]
cmp rax, [rcx+50h]
jbe short loc_294C5
mov rax, [rbp+var_220]
cmp qword ptr [rax+50h], 0
jz short loc_294C5
mov rax, [rbp+var_220]
mov rax, [rax+50h]
mov [rbp+var_218], rax
mov [rbp+var_231], 1
loc_294C5:
mov rax, [rbp+var_220]
mov rax, [rax+30h]
and eax, 3Fh
mov [rbp+var_250], rax
sub rax, 3
jz short loc_294F1
jmp short $+2
loc_294E2:
mov rax, [rbp+var_250]
sub rax, 5
jz short loc_29512
jmp short loc_29514
loc_294F1:
cmp [rbp+var_218], 7FFFFFFFh
jle short loc_29510
mov [rbp+var_218], 7FFFFFFFh
mov [rbp+var_231], 1
loc_29510:
jmp short loc_2951A
loc_29512:
jmp short loc_2951A
loc_29514:
jmp short $+2
loc_29516:
jmp short $+2
loc_29518:
jmp short $+2
loc_2951A:
mov rax, [rbp+var_218]
xor ecx, ecx
mov edx, ecx
div [rbp+var_240]
mov [rbp+var_218], rax
mov rax, [rbp+var_218]
imul rax, [rbp+var_240]
mov [rbp+var_218], rax
mov rax, [rbp+var_218]
mov rcx, [rbp+var_220]
cmp rax, [rcx+48h]
jge short loc_2958C
mov rax, [rbp+var_220]
mov rax, [rax+48h]
mov [rbp+var_218], rax
mov rax, [rbp+var_230]
mov rcx, [rbp+var_220]
cmp rax, [rcx+48h]
jge short loc_2958A
mov [rbp+var_231], 1
loc_2958A:
jmp short $+2
loc_2958C:
cmp [rbp+var_228], 0
jz short loc_295BC
mov rax, [rbp+var_230]
cmp rax, [rbp+var_218]
setnz al
and al, 1
movzx eax, al
mov cl, al
mov rax, [rbp+var_228]
mov [rax], cl
jmp loc_2963F
loc_295BC:
cmp [rbp+var_231], 0
jz short loc_2963D
lea rax, my_getopt_error_reporter
mov rax, [rax]
mov [rbp+var_258], rax
mov rax, [rbp+var_220]
mov rax, [rax]
mov [rbp+var_268], rax
mov rdi, [rbp+var_230]
lea rsi, [rbp+var_110]
call llstr
mov [rbp+var_260], rax
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_210]
call llstr
mov rdx, [rbp+var_268]
mov rcx, [rbp+var_260]
mov r9, [rbp+var_258]
mov r8, rax
mov edi, 1
lea rsi, aOptionSSignedV; "option '%s': signed value %s adjusted t"...
mov al, 0
call r9
loc_2963D:
jmp short $+2
loc_2963F:
jmp short $+2
loc_29641:
mov rax, [rbp+var_218]
mov [rbp+var_270], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_29671
mov rax, [rbp+var_270]
add rsp, 270h
pop rbp
retn
loc_29671:
call ___stack_chk_fail
|
long long getopt_ll_limit_value(long long a1, long long a2, bool *a3)
{
unsigned long long v3; // rdx
long long v4; // rdx
const char *v5; // rax
const char *v7; // [rsp+8h] [rbp-268h]
const char *v8; // [rsp+10h] [rbp-260h]
long long (*v9)(int, long long, ...); // [rsp+18h] [rbp-258h]
unsigned long long v10; // [rsp+28h] [rbp-248h]
char v11; // [rsp+3Fh] [rbp-231h]
long long v13; // [rsp+58h] [rbp-218h]
long long v14; // [rsp+58h] [rbp-218h]
char v15[256]; // [rsp+60h] [rbp-210h] BYREF
char v16[264]; // [rsp+160h] [rbp-110h] BYREF
unsigned long long v17; // [rsp+268h] [rbp-8h]
v17 = __readfsqword(0x28u);
v13 = a1;
v11 = 0;
if ( *(_QWORD *)(a2 + 96) )
v10 = *(_QWORD *)(a2 + 96);
else
v10 = 1LL;
if ( a1 > 0 && (unsigned long long)a1 > *(_QWORD *)(a2 + 80) && *(_QWORD *)(a2 + 80) )
{
v13 = *(_QWORD *)(a2 + 80);
v11 = 1;
}
if ( (*(_QWORD *)(a2 + 48) & 0x3FLL) == 3 && v13 > 0x7FFFFFFF )
{
v13 = 0x7FFFFFFFLL;
v11 = 1;
}
v3 = v13 % v10;
v14 = v10 * (v13 / v10);
if ( v14 < *(_QWORD *)(a2 + 72) )
{
v14 = *(_QWORD *)(a2 + 72);
if ( a1 < v14 )
v11 = 1;
}
if ( a3 )
{
*a3 = a1 != v14;
}
else if ( v11 )
{
v9 = my_getopt_error_reporter;
v7 = *(const char **)a2;
v8 = (const char *)llstr(a1, v16, v3);
v5 = (const char *)llstr(v14, v15, v4);
v9(1, (long long)"option '%s': signed value %s adjusted to %s", v7, v8, v5);
}
return v14;
}
|
getopt_ll_limit_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x270
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV qword ptr [RBP + -0x228],RDX
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x230],RAX
MOV byte ptr [RBP + -0x231],0x0
MOV RAX,qword ptr [RBP + -0x220]
CMP qword ptr [RAX + 0x60],0x0
JZ 0x00129464
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x60]
MOV qword ptr [RBP + -0x248],RAX
JMP 0x00129472
LAB_00129464:
MOV EAX,0x1
MOV qword ptr [RBP + -0x248],RAX
JMP 0x00129472
LAB_00129472:
MOV RAX,qword ptr [RBP + -0x248]
MOV qword ptr [RBP + -0x240],RAX
CMP qword ptr [RBP + -0x218],0x0
JLE 0x001294c5
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x50]
JBE 0x001294c5
MOV RAX,qword ptr [RBP + -0x220]
CMP qword ptr [RAX + 0x50],0x0
JZ 0x001294c5
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x50]
MOV qword ptr [RBP + -0x218],RAX
MOV byte ptr [RBP + -0x231],0x1
LAB_001294c5:
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x30]
AND EAX,0x3f
MOV qword ptr [RBP + -0x250],RAX
SUB RAX,0x3
JZ 0x001294f1
JMP 0x001294e2
LAB_001294e2:
MOV RAX,qword ptr [RBP + -0x250]
SUB RAX,0x5
JZ 0x00129512
JMP 0x00129514
LAB_001294f1:
CMP qword ptr [RBP + -0x218],0x7fffffff
JLE 0x00129510
MOV qword ptr [RBP + -0x218],0x7fffffff
MOV byte ptr [RBP + -0x231],0x1
LAB_00129510:
JMP 0x0012951a
LAB_00129512:
JMP 0x0012951a
LAB_00129514:
JMP 0x00129516
LAB_00129516:
JMP 0x00129518
LAB_00129518:
JMP 0x0012951a
LAB_0012951a:
MOV RAX,qword ptr [RBP + -0x218]
XOR ECX,ECX
MOV EDX,ECX
DIV qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x218]
IMUL RAX,qword ptr [RBP + -0x240]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x218]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x48]
JGE 0x0012958c
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX + 0x48]
MOV qword ptr [RBP + -0x218],RAX
MOV RAX,qword ptr [RBP + -0x230]
MOV RCX,qword ptr [RBP + -0x220]
CMP RAX,qword ptr [RCX + 0x48]
JGE 0x0012958a
MOV byte ptr [RBP + -0x231],0x1
LAB_0012958a:
JMP 0x0012958c
LAB_0012958c:
CMP qword ptr [RBP + -0x228],0x0
JZ 0x001295bc
MOV RAX,qword ptr [RBP + -0x230]
CMP RAX,qword ptr [RBP + -0x218]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x228]
MOV byte ptr [RAX],CL
JMP 0x0012963f
LAB_001295bc:
CMP byte ptr [RBP + -0x231],0x0
JZ 0x0012963d
LEA RAX,[0x2d9830]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x258],RAX
MOV RAX,qword ptr [RBP + -0x220]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x268],RAX
MOV RDI,qword ptr [RBP + -0x230]
LEA RSI,[RBP + -0x110]
CALL 0x0017c590
MOV qword ptr [RBP + -0x260],RAX
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x210]
CALL 0x0017c590
MOV RDX,qword ptr [RBP + -0x268]
MOV RCX,qword ptr [RBP + -0x260]
MOV R9,qword ptr [RBP + -0x258]
MOV R8,RAX
MOV EDI,0x1
LEA RSI,[0x18292e]
MOV AL,0x0
CALL R9
LAB_0012963d:
JMP 0x0012963f
LAB_0012963f:
JMP 0x00129641
LAB_00129641:
MOV RAX,qword ptr [RBP + -0x218]
MOV qword ptr [RBP + -0x270],RAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x00129671
MOV RAX,qword ptr [RBP + -0x270]
ADD RSP,0x270
POP RBP
RET
LAB_00129671:
CALL 0x00125330
|
ulong getopt_ll_limit_value(ulong param_1,int8 *param_2,long param_3)
{
int8 uVar1;
bool bVar2;
int *puVar3;
int8 uVar4;
int8 uVar5;
ulong uVar6;
long in_FS_OFFSET;
ulong local_250;
ulong local_220;
int1 local_218 [256];
int1 local_118 [264];
long local_10;
puVar3 = my_getopt_error_reporter;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
bVar2 = false;
if (param_2[0xc] == 0) {
local_250 = 1;
}
else {
local_250 = param_2[0xc];
}
local_220 = param_1;
if (((0 < (long)param_1) && ((ulong)param_2[10] < param_1)) && (param_2[10] != 0)) {
local_220 = param_2[10];
bVar2 = true;
}
if ((((uint)param_2[6] & 0x3f) == 3) && (0x7fffffff < (long)local_220)) {
local_220 = 0x7fffffff;
bVar2 = true;
}
uVar6 = local_220 % local_250;
local_220 = (local_220 / local_250) * local_250;
if (((long)local_220 < (long)param_2[9]) &&
(local_220 = param_2[9], (long)param_1 < (long)param_2[9])) {
bVar2 = true;
}
if (param_3 == 0) {
if (bVar2) {
uVar1 = *param_2;
uVar4 = llstr(param_1,local_118,uVar6);
uVar5 = llstr(local_220,local_218);
(*(code *)puVar3)(1,"option \'%s\': signed value %s adjusted to %s",uVar1,uVar4,uVar5);
}
}
else {
*(bool *)param_3 = param_1 != local_220;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return local_220;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
13,321
|
mariadb_stmt_execute_direct
|
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
|
int STDCALL mariadb_stmt_execute_direct(MYSQL_STMT *stmt,
const char *stmt_str,
size_t length)
{
MYSQL *mysql;
my_bool emulate_cmd;
my_bool clear_result= 0;
if (!stmt)
return 1;
mysql= stmt->mysql;
if (!mysql)
{
SET_CLIENT_STMT_ERROR(stmt, CR_SERVER_LOST, SQLSTATE_UNKNOWN, 0);
return 1;
}
emulate_cmd= !(!(stmt->mysql->server_capabilities & CLIENT_MYSQL) &&
(stmt->mysql->extension->mariadb_server_capabilities &
(MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32))) || mysql->net.compress;
/* Server versions < 10.2 don't support execute_direct, so we need to
emulate it */
if (emulate_cmd)
{
int rc;
/* avoid sending close + prepare in 2 packets */
if ((rc= mysql_stmt_prepare(stmt, stmt_str, (unsigned long)length)))
return rc;
return mysql_stmt_execute(stmt);
}
if (ma_multi_command(mysql, COM_MULTI_ENABLED))
{
SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
return 1;
}
if (length == (size_t) -1)
length= strlen(stmt_str);
/* clear flags */
CLEAR_CLIENT_STMT_ERROR(stmt);
CLEAR_CLIENT_ERROR(stmt->mysql);
stmt->upsert_status.affected_rows= mysql->affected_rows= (unsigned long long) ~0;
/* check if we have to clear results */
if (stmt->state > MYSQL_STMT_INITTED)
{
/* We need to semi-close the prepared statement:
reset stmt and free all buffers and close the statement
on server side. Statement handle will get a new stmt_id */
char stmt_id[STMT_ID_LENGTH];
if (mysql_stmt_internal_reset(stmt, 1))
goto fail;
ma_free_root(&stmt->mem_root, MYF(MY_KEEP_PREALLOC));
ma_free_root(&((MADB_STMT_EXTENSION *)stmt->extension)->fields_ma_alloc_root, MYF(0));
stmt->field_count= 0;
stmt->param_count= 0;
stmt->params= 0;
int4store(stmt_id, stmt->stmt_id);
if (mysql->methods->db_command(mysql, COM_STMT_CLOSE, stmt_id,
sizeof(stmt_id), 1, stmt))
goto fail;
}
stmt->stmt_id= -1;
if (mysql->methods->db_command(mysql, COM_STMT_PREPARE, stmt_str, length, 1, stmt))
goto fail;
/* in case prepare fails, we need to clear the result package from execute, which
is always an error packet (invalid statement id) */
clear_result= 1;
stmt->state= MYSQL_STMT_PREPARED;
/* Since we can't determine stmt_id here, we need to set it to -1, so server will know that the
* execute command belongs to previous prepare */
stmt->stmt_id= -1;
if (mysql_stmt_execute(stmt))
goto fail;
/* flush multi buffer */
if (ma_multi_command(mysql, COM_MULTI_END))
goto fail;
if (!mysql->options.extension->skip_read_response)
{
/* read prepare response */
if (mysql->methods->db_read_prepare_response &&
mysql->methods->db_read_prepare_response(stmt))
goto fail;
clear_result= 0;
/* read execute response packet */
return mthd_stmt_read_execute_response(stmt);
}
fail:
/* check if we need to set error message */
if (!mysql_stmt_errno(stmt))
UPDATE_STMT_ERROR(stmt);
if (clear_result) {
do {
stmt->mysql->methods->db_stmt_flush_unbuffered(stmt);
} while(mysql_stmt_more_results(stmt));
}
stmt->state= MYSQL_STMT_INITTED;
return 1;
}
|
O3
|
c
|
mariadb_stmt_execute_direct:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movl $0x1, %ebx
testq %rdi, %rdi
je 0x27781
movq %rdi, %r14
movq 0x38(%rdi), %r15
testq %r15, %r15
je 0x2772e
movq %rdx, %r13
movq %rsi, %r12
testb $0x1, 0x370(%r15)
jne 0x276f3
movq 0x4f0(%r15), %rax
testb $0x4, 0x70(%rax)
je 0x276f3
cmpb $0x0, 0x84(%r15)
je 0x277a5
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x260d4
testl %eax, %eax
jne 0x27781
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x27a33
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x26ca5
movl $0x7dd, 0x108(%r14) # imm = 0x7DD
leaq 0x30d(%r14), %rdi
leaq 0x29799(%rip), %rax # 0x50ee0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%r14)
leaq 0x10c(%r14), %rdi
leaq 0x29784(%rip), %rax # 0x50ef0
movq 0x68(%rax), %rsi
movl $0x200, %edx # imm = 0x200
callq 0x13220
movb %r15b, 0x30b(%r14)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x27a33
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movl $0x2, %esi
callq 0x1b181
testl %eax, %eax
je 0x277fd
movl $0x7de, 0x108(%r14) # imm = 0x7DE
leaq 0x30d(%r14), %rdi
leaq 0x29711(%rip), %rax # 0x50ee0
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13220
xorl %r15d, %r15d
movb %r15b, 0x312(%r14)
leaq 0x10c(%r14), %rdi
leaq 0x296fc(%rip), %rax # 0x50ef0
movq 0x70(%rax), %rsi
jmp 0x27770
cmpq $-0x1, %r13
jne 0x2780e
movq %r12, %rdi
callq 0x131c0
movq %rax, %r13
xorl %eax, %eax
movl %eax, 0x108(%r14)
movl $0x30303030, %ecx # imm = 0x30303030
movl %ecx, 0x30d(%r14)
movw $0x30, %dx
movw %dx, 0x311(%r14)
movb %al, 0x10c(%r14)
movq 0x38(%r14), %rsi
movl %eax, 0x90(%rsi)
movq 0x38(%r14), %rsi
movw %dx, 0x29b(%rsi)
movl %ecx, 0x297(%rsi)
movq 0x38(%r14), %rcx
movb %al, 0x97(%rcx)
movq 0x38(%r14), %rax
movq 0x2a0(%rax), %rax
testq %rax, %rax
je 0x27872
movl $0x0, 0x4(%rax)
movq $-0x1, %rax
movq %rax, 0x338(%r15)
movq %rax, 0xf8(%r14)
cmpl $0x0, 0x50(%r14)
je 0x278f7
movq %r14, %rdi
movl $0x1, %esi
callq 0x24e28
testb %al, %al
jne 0x278f2
movq %r14, %rdi
movl $0x1, %esi
callq 0x22f93
movq 0x340(%r14), %rdi
xorl %esi, %esi
callq 0x22f93
xorl %eax, %eax
movq %rax, 0x60(%r14)
movq %rax, 0x70(%r14)
movl 0x40(%r14), %eax
leaq -0x34(%rbp), %rdx
movl %eax, (%rdx)
movq 0x4d0(%r15), %rax
movl $0x4, %ecx
movq %r15, %rdi
movl $0x19, %esi
movl $0x1, %r8d
movq %r14, %r9
callq *0x10(%rax)
testl %eax, %eax
je 0x278f7
movb $0x1, %r12b
jmp 0x2796b
movq $-0x1, 0x40(%r14)
movq 0x4d0(%r15), %rax
movq %r15, %rdi
movl $0x16, %esi
movq %r12, %rdx
movq %r13, %rcx
movl $0x1, %r8d
movq %r14, %r9
callq *0x10(%rax)
movb $0x1, %r12b
testl %eax, %eax
jne 0x2796b
movl $0x1, 0x50(%r14)
movq $-0x1, 0x40(%r14)
movq %r14, %rdi
callq 0x26ca5
testl %eax, %eax
jne 0x27968
movq %r15, %rdi
movl $0x4, %esi
callq 0x1b181
testl %eax, %eax
jne 0x27968
movq 0x480(%r15), %rax
cmpb $0x0, 0x148(%rax)
je 0x27a07
xorl %r12d, %r12d
cmpl $0x0, 0x108(%r14)
jne 0x279cc
leaq 0x30d(%r14), %rdi
leaq 0x10c(%r14), %r15
movq 0x38(%r14), %rsi
movl 0x90(%rsi), %eax
movl %eax, 0x108(%r14)
addq $0x297, %rsi # imm = 0x297
movl $0x5, %edx
callq 0x13220
xorl %r13d, %r13d
movb %r13b, 0x312(%r14)
movl $0x97, %esi
addq 0x38(%r14), %rsi
movl $0x200, %edx # imm = 0x200
movq %r15, %rdi
callq 0x13220
movb %r13b, 0x30b(%r14)
testb %r12b, %r12b
jne 0x279fa
movq 0x38(%r14), %rax
movq 0x4d0(%rax), %rax
movq %r14, %rdi
callq *0x78(%rax)
movq 0x38(%r14), %rax
testq %rax, %rax
je 0x279fa
movzwl 0x380(%rax), %ecx
testl $0x1008, %ecx # imm = 0x1008
jne 0x279d5
movl $0x0, 0x50(%r14)
jmp 0x27781
movq 0x4d0(%r15), %rax
movq 0x40(%rax), %rax
testq %rax, %rax
je 0x27a24
movq %r14, %rdi
callq *%rax
testb %al, %al
jne 0x27968
movq %r14, %rdi
callq 0x266a7
movl %eax, %ebx
jmp 0x27781
callq 0x13500
|
mariadb_stmt_execute_direct:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rax, fs:28h
mov [rbp+var_30], rax
mov ebx, 1
test rdi, rdi
jz loc_27781
mov r14, rdi
mov r15, [rdi+38h]
test r15, r15
jz short loc_2772E
mov r13, rdx
mov r12, rsi
test byte ptr [r15+370h], 1
jnz short loc_276F3
mov rax, [r15+4F0h]
test byte ptr [rax+70h], 4
jz short loc_276F3
cmp byte ptr [r15+84h], 0
jz loc_277A5
loc_276F3:
mov rdi, r14
mov rsi, r12
mov rdx, r13
call mysql_stmt_prepare
test eax, eax
jnz short loc_27781
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_27A33
mov rdi, r14
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp mysql_stmt_execute
loc_2772E:
mov dword ptr [r14+108h], 7DDh
lea rdi, [r14+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+312h], r15b
lea rdi, [r14+10Ch]
lea rax, client_errors
mov rsi, [rax+68h]
loc_27770:
mov edx, 200h
call _strncpy
mov [r14+30Bh], r15b
loc_27781:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_27A33
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_277A5:
mov rdi, r15
mov esi, 2
call ma_multi_command
test eax, eax
jz short loc_277FD
mov dword ptr [r14+108h], 7DEh
lea rdi, [r14+30Dh]
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
xor r15d, r15d
mov [r14+312h], r15b
lea rdi, [r14+10Ch]
lea rax, client_errors
mov rsi, [rax+70h]
jmp loc_27770
loc_277FD:
cmp r13, 0FFFFFFFFFFFFFFFFh
jnz short loc_2780E
mov rdi, r12
call _strlen
mov r13, rax
loc_2780E:
xor eax, eax
mov [r14+108h], eax
mov ecx, 30303030h
mov [r14+30Dh], ecx
mov dx, 30h ; '0'
mov [r14+311h], dx
mov [r14+10Ch], al
mov rsi, [r14+38h]
mov [rsi+90h], eax
mov rsi, [r14+38h]
mov [rsi+29Bh], dx
mov [rsi+297h], ecx
mov rcx, [r14+38h]
mov [rcx+97h], al
mov rax, [r14+38h]
mov rax, [rax+2A0h]
test rax, rax
jz short loc_27872
mov dword ptr [rax+4], 0
loc_27872:
mov rax, 0FFFFFFFFFFFFFFFFh
mov [r15+338h], rax
mov [r14+0F8h], rax
cmp dword ptr [r14+50h], 0
jz short loc_278F7
mov rdi, r14
mov esi, 1
call mysql_stmt_internal_reset
test al, al
jnz short loc_278F2
mov rdi, r14
mov esi, 1
call ma_free_root
mov rdi, [r14+340h]
xor esi, esi
call ma_free_root
xor eax, eax
mov [r14+60h], rax
mov [r14+70h], rax
mov eax, [r14+40h]
lea rdx, [rbp+var_34]
mov [rdx], eax
mov rax, [r15+4D0h]
mov ecx, 4
mov rdi, r15
mov esi, 19h
mov r8d, 1
mov r9, r14
call qword ptr [rax+10h]
test eax, eax
jz short loc_278F7
loc_278F2:
mov r12b, 1
jmp short loc_2796B
loc_278F7:
mov qword ptr [r14+40h], 0FFFFFFFFFFFFFFFFh
mov rax, [r15+4D0h]
mov rdi, r15
mov esi, 16h
mov rdx, r12
mov rcx, r13
mov r8d, 1
mov r9, r14
call qword ptr [rax+10h]
mov r12b, 1
test eax, eax
jnz short loc_2796B
mov dword ptr [r14+50h], 1
mov qword ptr [r14+40h], 0FFFFFFFFFFFFFFFFh
mov rdi, r14
call mysql_stmt_execute
test eax, eax
jnz short loc_27968
mov rdi, r15
mov esi, 4
call ma_multi_command
test eax, eax
jnz short loc_27968
mov rax, [r15+480h]
cmp byte ptr [rax+148h], 0
jz loc_27A07
loc_27968:
xor r12d, r12d
loc_2796B:
cmp dword ptr [r14+108h], 0
jnz short loc_279CC
lea rdi, [r14+30Dh]
lea r15, [r14+10Ch]
mov rsi, [r14+38h]
mov eax, [rsi+90h]
mov [r14+108h], eax
add rsi, 297h
mov edx, 5
call _strncpy
xor r13d, r13d
mov [r14+312h], r13b
mov esi, 97h
add rsi, [r14+38h]
mov edx, 200h
mov rdi, r15
call _strncpy
mov [r14+30Bh], r13b
loc_279CC:
test r12b, r12b
jnz short loc_279FA
mov rax, [r14+38h]
loc_279D5:
mov rax, [rax+4D0h]
mov rdi, r14
call qword ptr [rax+78h]
mov rax, [r14+38h]
test rax, rax
jz short loc_279FA
movzx ecx, word ptr [rax+380h]
test ecx, 1008h
jnz short loc_279D5
loc_279FA:
mov dword ptr [r14+50h], 0
jmp loc_27781
loc_27A07:
mov rax, [r15+4D0h]
mov rax, [rax+40h]
test rax, rax
jz short loc_27A24
mov rdi, r14
call rax
test al, al
jnz loc_27968
loc_27A24:
mov rdi, r14
call mthd_stmt_read_execute_response
mov ebx, eax
jmp loc_27781
loc_27A33:
call ___stack_chk_fail
|
long long mariadb_stmt_execute_direct(long long a1, long long a2, long long a3)
{
unsigned int v3; // ebx
long long v5; // r15
long long v6; // r13
long long v8; // rdi
char *v9; // rsi
long long v10; // rax
char v11; // r12
long long v12; // rsi
long long v13; // rax
unsigned __int8 ( *v14)(long long); // rax
int v15; // [rsp+Ch] [rbp-34h] BYREF
unsigned long long v16; // [rsp+10h] [rbp-30h]
v16 = __readfsqword(0x28u);
v3 = 1;
if ( !a1 )
return v3;
v5 = *(_QWORD *)(a1 + 56);
if ( !v5 )
{
*(_DWORD *)(a1 + 264) = 2013;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v8 = a1 + 268;
v9 = client_errors[13];
LABEL_9:
strncpy(v8, v9, 512LL);
*(_BYTE *)(a1 + 779) = 0;
return v3;
}
v6 = a3;
if ( (*(_BYTE *)(v5 + 880) & 1) == 0 && (*(_BYTE *)(*(_QWORD *)(v5 + 1264) + 112LL) & 4) != 0 && !*(_BYTE *)(v5 + 132) )
{
if ( !(unsigned int)ma_multi_command(*(_QWORD *)(a1 + 56), 2) )
{
if ( v6 == -1 )
v6 = strlen(a2);
*(_DWORD *)(a1 + 264) = 0;
strcpy((char *)(a1 + 781), "00000");
*(_BYTE *)(a1 + 268) = 0;
*(_DWORD *)(*(_QWORD *)(a1 + 56) + 144LL) = 0;
strcpy((char *)(*(_QWORD *)(a1 + 56) + 663LL), "00000");
*(_BYTE *)(*(_QWORD *)(a1 + 56) + 151LL) = 0;
v10 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 672LL);
if ( v10 )
*(_DWORD *)(v10 + 4) = 0;
*(_QWORD *)(v5 + 824) = -1LL;
*(_QWORD *)(a1 + 248) = -1LL;
if ( *(_DWORD *)(a1 + 80)
&& ((unsigned __int8)mysql_stmt_internal_reset(a1, 1)
|| (ma_free_root(a1, 1),
ma_free_root(*(_QWORD *)(a1 + 832), 0),
*(_QWORD *)(a1 + 96) = 0LL,
*(_QWORD *)(a1 + 112) = 0LL,
v15 = *(_DWORD *)(a1 + 64),
(*(unsigned int ( **)(long long, long long, int *, long long, long long, long long))(*(_QWORD *)(v5 + 1232)
+ 16LL))(
v5,
25LL,
&v15,
4LL,
1LL,
a1))) )
{
v11 = 1;
}
else
{
*(_QWORD *)(a1 + 64) = -1LL;
v11 = 1;
if ( !(*(unsigned int ( **)(long long, long long, long long, long long, long long, long long))(*(_QWORD *)(v5 + 1232) + 16LL))(
v5,
22LL,
a2,
v6,
1LL,
a1) )
{
*(_DWORD *)(a1 + 80) = 1;
*(_QWORD *)(a1 + 64) = -1LL;
if ( !(unsigned int)mysql_stmt_execute(a1)
&& !(unsigned int)ma_multi_command(v5, 4)
&& !*(_BYTE *)(*(_QWORD *)(v5 + 1152) + 328LL) )
{
v14 = *(unsigned __int8 ( **)(long long))(*(_QWORD *)(v5 + 1232) + 64LL);
if ( !v14 || !v14(a1) )
return (unsigned int)mthd_stmt_read_execute_response(a1);
}
v11 = 0;
}
}
if ( !*(_DWORD *)(a1 + 264) )
{
v12 = *(_QWORD *)(a1 + 56);
*(_DWORD *)(a1 + 264) = *(_DWORD *)(v12 + 144);
strncpy(a1 + 781, v12 + 663, 5LL);
*(_BYTE *)(a1 + 786) = 0;
strncpy(a1 + 268, *(_QWORD *)(a1 + 56) + 151LL, 512LL);
*(_BYTE *)(a1 + 779) = 0;
}
if ( !v11 )
{
v13 = *(_QWORD *)(a1 + 56);
do
{
(*(void ( **)(long long))(*(_QWORD *)(v13 + 1232) + 120LL))(a1);
v13 = *(_QWORD *)(a1 + 56);
}
while ( v13 && (*(_WORD *)(v13 + 896) & 0x1008) != 0 );
}
*(_DWORD *)(a1 + 80) = 0;
return v3;
}
*(_DWORD *)(a1 + 264) = 2014;
strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 786) = 0;
v8 = a1 + 268;
v9 = client_errors[14];
goto LABEL_9;
}
if ( !(unsigned int)mysql_stmt_prepare(a1, a2, a3) )
return mysql_stmt_execute(a1);
return v3;
}
|
mariadb_stmt_execute_direct:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV EBX,0x1
TEST RDI,RDI
JZ 0x00127781
MOV R14,RDI
MOV R15,qword ptr [RDI + 0x38]
TEST R15,R15
JZ 0x0012772e
MOV R13,RDX
MOV R12,RSI
TEST byte ptr [R15 + 0x370],0x1
JNZ 0x001276f3
MOV RAX,qword ptr [R15 + 0x4f0]
TEST byte ptr [RAX + 0x70],0x4
JZ 0x001276f3
CMP byte ptr [R15 + 0x84],0x0
JZ 0x001277a5
LAB_001276f3:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R13
CALL 0x001260d4
TEST EAX,EAX
JNZ 0x00127781
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00127a33
MOV RDI,R14
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00126ca5
LAB_0012772e:
MOV dword ptr [R14 + 0x108],0x7dd
LEA RDI,[R14 + 0x30d]
LEA RAX,[0x150ee0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [R14 + 0x312],R15B
LEA RDI,[R14 + 0x10c]
LEA RAX,[0x150ef0]
MOV RSI,qword ptr [RAX + 0x68]
LAB_00127770:
MOV EDX,0x200
CALL 0x00113220
MOV byte ptr [R14 + 0x30b],R15B
LAB_00127781:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00127a33
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001277a5:
MOV RDI,R15
MOV ESI,0x2
CALL 0x0011b181
TEST EAX,EAX
JZ 0x001277fd
MOV dword ptr [R14 + 0x108],0x7de
LEA RDI,[R14 + 0x30d]
LEA RAX,[0x150ee0]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113220
XOR R15D,R15D
MOV byte ptr [R14 + 0x312],R15B
LEA RDI,[R14 + 0x10c]
LEA RAX,[0x150ef0]
MOV RSI,qword ptr [RAX + 0x70]
JMP 0x00127770
LAB_001277fd:
CMP R13,-0x1
JNZ 0x0012780e
MOV RDI,R12
CALL 0x001131c0
MOV R13,RAX
LAB_0012780e:
XOR EAX,EAX
MOV dword ptr [R14 + 0x108],EAX
MOV ECX,0x30303030
MOV dword ptr [R14 + 0x30d],ECX
MOV DX,0x30
MOV word ptr [R14 + 0x311],DX
MOV byte ptr [R14 + 0x10c],AL
MOV RSI,qword ptr [R14 + 0x38]
MOV dword ptr [RSI + 0x90],EAX
MOV RSI,qword ptr [R14 + 0x38]
MOV word ptr [RSI + 0x29b],DX
MOV dword ptr [RSI + 0x297],ECX
MOV RCX,qword ptr [R14 + 0x38]
MOV byte ptr [RCX + 0x97],AL
MOV RAX,qword ptr [R14 + 0x38]
MOV RAX,qword ptr [RAX + 0x2a0]
TEST RAX,RAX
JZ 0x00127872
MOV dword ptr [RAX + 0x4],0x0
LAB_00127872:
MOV RAX,-0x1
MOV qword ptr [R15 + 0x338],RAX
MOV qword ptr [R14 + 0xf8],RAX
CMP dword ptr [R14 + 0x50],0x0
JZ 0x001278f7
MOV RDI,R14
MOV ESI,0x1
CALL 0x00124e28
TEST AL,AL
JNZ 0x001278f2
MOV RDI,R14
MOV ESI,0x1
CALL 0x00122f93
MOV RDI,qword ptr [R14 + 0x340]
XOR ESI,ESI
CALL 0x00122f93
XOR EAX,EAX
MOV qword ptr [R14 + 0x60],RAX
MOV qword ptr [R14 + 0x70],RAX
MOV EAX,dword ptr [R14 + 0x40]
LEA RDX,[RBP + -0x34]
MOV dword ptr [RDX],EAX
MOV RAX,qword ptr [R15 + 0x4d0]
MOV ECX,0x4
MOV RDI,R15
MOV ESI,0x19
MOV R8D,0x1
MOV R9,R14
CALL qword ptr [RAX + 0x10]
TEST EAX,EAX
JZ 0x001278f7
LAB_001278f2:
MOV R12B,0x1
JMP 0x0012796b
LAB_001278f7:
MOV qword ptr [R14 + 0x40],-0x1
MOV RAX,qword ptr [R15 + 0x4d0]
MOV RDI,R15
MOV ESI,0x16
MOV RDX,R12
MOV RCX,R13
MOV R8D,0x1
MOV R9,R14
CALL qword ptr [RAX + 0x10]
MOV R12B,0x1
TEST EAX,EAX
JNZ 0x0012796b
MOV dword ptr [R14 + 0x50],0x1
MOV qword ptr [R14 + 0x40],-0x1
MOV RDI,R14
CALL 0x00126ca5
TEST EAX,EAX
JNZ 0x00127968
MOV RDI,R15
MOV ESI,0x4
CALL 0x0011b181
TEST EAX,EAX
JNZ 0x00127968
MOV RAX,qword ptr [R15 + 0x480]
CMP byte ptr [RAX + 0x148],0x0
JZ 0x00127a07
LAB_00127968:
XOR R12D,R12D
LAB_0012796b:
CMP dword ptr [R14 + 0x108],0x0
JNZ 0x001279cc
LEA RDI,[R14 + 0x30d]
LEA R15,[R14 + 0x10c]
MOV RSI,qword ptr [R14 + 0x38]
MOV EAX,dword ptr [RSI + 0x90]
MOV dword ptr [R14 + 0x108],EAX
ADD RSI,0x297
MOV EDX,0x5
CALL 0x00113220
XOR R13D,R13D
MOV byte ptr [R14 + 0x312],R13B
MOV ESI,0x97
ADD RSI,qword ptr [R14 + 0x38]
MOV EDX,0x200
MOV RDI,R15
CALL 0x00113220
MOV byte ptr [R14 + 0x30b],R13B
LAB_001279cc:
TEST R12B,R12B
JNZ 0x001279fa
MOV RAX,qword ptr [R14 + 0x38]
LAB_001279d5:
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RDI,R14
CALL qword ptr [RAX + 0x78]
MOV RAX,qword ptr [R14 + 0x38]
TEST RAX,RAX
JZ 0x001279fa
MOVZX ECX,word ptr [RAX + 0x380]
TEST ECX,0x1008
JNZ 0x001279d5
LAB_001279fa:
MOV dword ptr [R14 + 0x50],0x0
JMP 0x00127781
LAB_00127a07:
MOV RAX,qword ptr [R15 + 0x4d0]
MOV RAX,qword ptr [RAX + 0x40]
TEST RAX,RAX
JZ 0x00127a24
MOV RDI,R14
CALL RAX
TEST AL,AL
JNZ 0x00127968
LAB_00127a24:
MOV RDI,R14
CALL 0x001266a7
MOV EBX,EAX
JMP 0x00127781
LAB_00127a33:
CALL 0x00113500
|
ulong mariadb_stmt_execute_direct(long param_1,char *param_2,size_t param_3)
{
long lVar1;
code *pcVar2;
bool bVar3;
char cVar4;
int iVar5;
uint uVar6;
long lVar7;
ulong uVar8;
char *__src;
long in_FS_OFFSET;
int4 local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar8 = 1;
if (param_1 != 0) {
lVar7 = *(long *)(param_1 + 0x38);
if (lVar7 == 0) {
*(int4 *)(param_1 + 0x108) = 0x7dd;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
__src = PTR_s_Lost_connection_to_server_during_00150f58;
LAB_00127770:
strncpy((char *)(param_1 + 0x10c),__src,0x200);
*(int1 *)(param_1 + 0x30b) = 0;
}
else if ((((*(byte *)(lVar7 + 0x370) & 1) == 0) &&
((*(byte *)(*(long *)(lVar7 + 0x4f0) + 0x70) & 4) != 0)) &&
(*(char *)(lVar7 + 0x84) == '\0')) {
iVar5 = ma_multi_command(lVar7,2);
if (iVar5 != 0) {
*(int4 *)(param_1 + 0x108) = 0x7de;
strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x312) = 0;
__src = PTR_s_Commands_out_of_sync__you_can_t_r_00150f60;
goto LAB_00127770;
}
if (param_3 == 0xffffffffffffffff) {
param_3 = strlen(param_2);
}
*(int4 *)(param_1 + 0x108) = 0;
*(int4 *)(param_1 + 0x30d) = 0x30303030;
*(int2 *)(param_1 + 0x311) = 0x30;
*(int1 *)(param_1 + 0x10c) = 0;
*(int4 *)(*(long *)(param_1 + 0x38) + 0x90) = 0;
lVar1 = *(long *)(param_1 + 0x38);
*(int2 *)(lVar1 + 0x29b) = 0x30;
*(int4 *)(lVar1 + 0x297) = 0x30303030;
*(int1 *)(*(long *)(param_1 + 0x38) + 0x97) = 0;
lVar1 = *(long *)(*(long *)(param_1 + 0x38) + 0x2a0);
if (lVar1 != 0) {
*(int4 *)(lVar1 + 4) = 0;
}
*(int8 *)(lVar7 + 0x338) = 0xffffffffffffffff;
*(int8 *)(param_1 + 0xf8) = 0xffffffffffffffff;
if (*(int *)(param_1 + 0x50) == 0) {
LAB_001278f7:
*(int8 *)(param_1 + 0x40) = 0xffffffffffffffff;
iVar5 = (**(code **)(*(long *)(lVar7 + 0x4d0) + 0x10))(lVar7,0x16,param_2,param_3,1,param_1)
;
bVar3 = true;
if (iVar5 == 0) {
*(int4 *)(param_1 + 0x50) = 1;
*(int8 *)(param_1 + 0x40) = 0xffffffffffffffff;
iVar5 = mysql_stmt_execute(param_1);
if (iVar5 == 0) {
iVar5 = ma_multi_command(lVar7,4);
if ((iVar5 == 0) && (*(char *)(*(long *)(lVar7 + 0x480) + 0x148) == '\0')) {
pcVar2 = *(code **)(*(long *)(lVar7 + 0x4d0) + 0x40);
if (pcVar2 != (code *)0x0) {
cVar4 = (*pcVar2)(param_1);
if (cVar4 != '\0') goto LAB_00127968;
}
uVar6 = mthd_stmt_read_execute_response(param_1);
uVar8 = (ulong)uVar6;
goto LAB_00127781;
}
}
LAB_00127968:
bVar3 = false;
}
}
else {
cVar4 = mysql_stmt_internal_reset(param_1,1);
if (cVar4 == '\0') {
ma_free_root(param_1,1);
ma_free_root(*(int8 *)(param_1 + 0x340),0);
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x70) = 0;
local_3c = *(int4 *)(param_1 + 0x40);
iVar5 = (**(code **)(*(long *)(lVar7 + 0x4d0) + 0x10))(lVar7,0x19,&local_3c,4,1,param_1);
if (iVar5 == 0) goto LAB_001278f7;
}
bVar3 = true;
}
if (*(int *)(param_1 + 0x108) == 0) {
*(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90);
strncpy((char *)(param_1 + 0x30d),(char *)(*(long *)(param_1 + 0x38) + 0x297),5);
*(int1 *)(param_1 + 0x312) = 0;
strncpy((char *)(param_1 + 0x10c),(char *)(*(long *)(param_1 + 0x38) + 0x97),0x200);
*(int1 *)(param_1 + 0x30b) = 0;
}
if (!bVar3) {
lVar7 = *(long *)(param_1 + 0x38);
do {
(**(code **)(*(long *)(lVar7 + 0x4d0) + 0x78))(param_1);
lVar7 = *(long *)(param_1 + 0x38);
if (lVar7 == 0) break;
} while ((*(ushort *)(lVar7 + 0x380) & 0x1008) != 0);
}
*(int4 *)(param_1 + 0x50) = 0;
}
else {
iVar5 = mysql_stmt_prepare(param_1,param_2,param_3);
if (iVar5 == 0) {
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
uVar8 = mysql_stmt_execute(param_1);
return uVar8;
}
goto LAB_00127a33;
}
}
}
LAB_00127781:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar8;
}
LAB_00127a33:
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
13,322
|
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>::operator++()
|
llama.cpp/common/json.hpp
|
iter_impl& operator++()
{
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
{
std::advance(m_it.object_iterator, 1);
break;
}
case value_t::array:
{
std::advance(m_it.array_iterator, 1);
break;
}
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
{
++m_it.primitive_iterator;
break;
}
}
return *this;
}
|
O3
|
cpp
|
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>::operator++():
movq (%rdi), %rax
testq %rax, %rax
je 0xb02ef
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0xb02e0
cmpl $0x1, %eax
jne 0xb02e7
addq $0x30, 0x8(%rdi)
jmp 0xb02eb
addq $0x10, 0x10(%rdi)
jmp 0xb02eb
incq 0x18(%rdi)
movq %rdi, %rax
retq
pushq %rax
leaq 0x6b281(%rip), %rdi # 0x11b578
leaq 0x6b2b5(%rip), %rdx # 0x11b5b3
leaq 0x715e3(%rip), %rcx # 0x1218e8
movl $0x33c0, %esi # imm = 0x33C0
xorl %eax, %eax
callq 0x21e70
|
_ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv:
mov rax, [rdi]
test rax, rax
jz short loc_B02EF
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_B02E0
cmp eax, 1
jnz short loc_B02E7
add qword ptr [rdi+8], 30h ; '0'
jmp short loc_B02EB
loc_B02E0:
add qword ptr [rdi+10h], 10h
jmp short loc_B02EB
loc_B02E7:
inc qword ptr [rdi+18h]
loc_B02EB:
mov rax, rdi
retn
loc_B02EF:
push rax
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 33C0h
xor eax, eax
call _ggml_abort
|
long long 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++(
unsigned __int8 **a1)
{
int v1; // eax
long long v3; // rdx
if ( *a1 )
{
v1 = **a1;
if ( v1 == 2 )
{
a1[2] += 16;
}
else if ( v1 == 1 )
{
a1[1] += 48;
}
else
{
++a1[3];
}
return (long long)a1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
13248LL,
"GGML_ASSERT(%s) failed",
"m_object != nullptr");
return std::operator+<char>("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 13248LL, v3);
}
}
|
operator++:
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x001b02ef
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x001b02e0
CMP EAX,0x1
JNZ 0x001b02e7
ADD qword ptr [RDI + 0x8],0x30
JMP 0x001b02eb
LAB_001b02e0:
ADD qword ptr [RDI + 0x10],0x10
JMP 0x001b02eb
LAB_001b02e7:
INC qword ptr [RDI + 0x18]
LAB_001b02eb:
MOV RAX,RDI
RET
LAB_001b02ef:
PUSH RAX
LEA RDI,[0x21b578]
LEA RDX,[0x21b5b3]
LEA RCX,[0x2218e8]
MOV ESI,0x33c0
XOR EAX,EAX
CALL 0x00121e70
|
/* 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>::TEMPNAMEPLACEHOLDERVALUE() */
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>
* __thiscall
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++(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>
*this)
{
char cVar1;
int8 in_R8;
int8 in_R9;
if (*(char **)this != (char *)0x0) {
cVar1 = **(char **)this;
if (cVar1 == '\x02') {
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 0x10;
}
else if (cVar1 == '\x01') {
*(long *)(this + 8) = *(long *)(this + 8) + 0x30;
}
else {
*(long *)(this + 0x18) = *(long *)(this + 0x18) + 1;
}
return this;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x33c0,
"GGML_ASSERT(%s) failed","m_object != nullptr",in_R8,in_R9,0);
}
|
|
13,323
|
vec_is_zero
|
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/vect.h
|
static inline bool_t vec_is_zero(const void *a, size_t num)
{
const limb_t *ap = (const limb_t *)a;
limb_t acc;
size_t i;
#ifndef __BLST_NO_ASM__
bool_t vec_is_zero_16x(const void *a, size_t num);
if ((num & 15) == 0)
return vec_is_zero_16x(a, num);
#endif
num /= sizeof(limb_t);
for (acc = 0, i = 0; i < num; i++)
acc |= ap[i];
return is_zero(acc);
}
|
O0
|
c
|
vec_is_zero:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
andq $0xf, %rax
cmpq $0x0, %rax
jne 0xa76b9
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xc5980
movq %rax, -0x8(%rbp)
jmp 0xa770e
movq -0x18(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0xa7701
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
movq (%rax,%rcx,8), %rax
orq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0xa76d5
movq -0x28(%rbp), %rdi
callq 0xa7240
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
|
vec_is_zero:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
and rax, 0Fh
cmp rax, 0
jnz short loc_A76B9
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call vec_is_zero_16x
mov [rbp+var_8], rax
jmp short loc_A770E
loc_A76B9:
mov rax, [rbp+var_18]
shr rax, 3
mov [rbp+var_18], rax
mov [rbp+var_28], 0
mov [rbp+var_30], 0
loc_A76D5:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_18]
jnb short loc_A7701
mov rax, [rbp+var_20]
mov rcx, [rbp+var_30]
mov rax, [rax+rcx*8]
or rax, [rbp+var_28]
mov [rbp+var_28], rax
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
jmp short loc_A76D5
loc_A7701:
mov rdi, [rbp+var_28]
call is_zero
mov [rbp+var_8], rax
loc_A770E:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
unsigned long long vec_is_zero(long long a1, unsigned long long a2)
{
unsigned long long i; // [rsp+0h] [rbp-30h]
long long v4; // [rsp+8h] [rbp-28h]
if ( (a2 & 0xF) == 0 )
return vec_is_zero_16x(a1, a2);
v4 = 0LL;
for ( i = 0LL; i < a2 >> 3; ++i )
v4 |= *(_QWORD *)(a1 + 8 * i);
return is_zero(v4);
}
|
vec_is_zero:
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 qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0xf
CMP RAX,0x0
JNZ 0x001a76b9
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001c5980
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001a770e
LAB_001a76b9:
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
MOV qword ptr [RBP + -0x28],0x0
MOV qword ptr [RBP + -0x30],0x0
LAB_001a76d5:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x001a7701
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + RCX*0x8]
OR RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001a76d5
LAB_001a7701:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x001a7240
MOV qword ptr [RBP + -0x8],RAX
LAB_001a770e:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
int8 vec_is_zero(long param_1,ulong param_2)
{
int8 local_38;
int8 local_30;
int8 local_10;
if ((param_2 & 0xf) == 0) {
local_10 = vec_is_zero_16x(param_1,param_2);
}
else {
local_30 = 0;
for (local_38 = 0; local_38 < param_2 >> 3; local_38 = local_38 + 1) {
local_30 = *(ulong *)(param_1 + local_38 * 8) | local_30;
}
local_10 = is_zero(local_30);
}
return local_10;
}
|
|
13,324
|
mi_seq_search
|
eloqsql/storage/myisam/mi_search.c
|
int _mi_seq_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uint key_len, uint comp_flag, uchar **ret_pos,
uchar *buff, my_bool *last_key)
{
int UNINIT_VAR(flag);
uint nod_flag,UNINIT_VAR(length),not_used[2];
uchar t_buff[HA_MAX_KEY_BUFF],*end;
DBUG_ENTER("_mi_seq_search");
end= page+mi_getint(page);
nod_flag=mi_test_if_nod(page);
page+=2+nod_flag;
*ret_pos=page;
t_buff[0]=0; /* Avoid bugs */
while (page < end)
{
length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,t_buff);
if (length == 0 || page > end)
{
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_PRINT("error",
("Found wrong key: length: %u page: %p end: %p",
length, page, end));
DBUG_RETURN(MI_FOUND_WRONG_KEY);
}
if ((flag=ha_key_cmp(keyinfo->seg,t_buff,key,key_len,comp_flag,
not_used)) >= 0)
break;
#ifdef EXTRA_DEBUG
DBUG_PRINT("loop",("page: 0x%lx key: '%s' flag: %d", (long) page, t_buff,
flag));
#endif
memcpy(buff,t_buff,length);
*ret_pos=page;
}
if (flag == 0)
memcpy(buff,t_buff,length); /* Result is first key */
*last_key= page == end;
DBUG_PRINT("exit",("flag: %d ret_pos: %p", flag, *ret_pos));
DBUG_RETURN(flag);
}
|
O3
|
c
|
mi_seq_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x508, %rsp # imm = 0x508
movl %r9d, -0x508(%rbp)
movl %r8d, -0x504(%rbp)
movq %rcx, -0x520(%rbp)
movq %rsi, -0x510(%rbp)
movq 0x10(%rbp), %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movzbl 0x1(%rdx), %ecx
movzbl (%rdx), %r9d
movl %r9d, %eax
andl $0x7f, %eax
shll $0x8, %eax
orq %rcx, %rax
xorl %esi, %esi
testb %r9b, %r9b
jns 0x3ddf8
movq (%rdi), %rcx
movl 0x17c(%rcx), %esi
movq %rdi, -0x518(%rbp)
leaq (%rdx,%rax), %rcx
movq %rcx, -0x500(%rbp)
leal 0x2(%rsi), %ecx
addq %rcx, %rdx
movq %rdx, -0x4f8(%rbp)
movq %rdx, (%rbx)
movb $0x0, -0x4f0(%rbp)
cmpl %ecx, %eax
jbe 0x3df07
leaq -0x4f0(%rbp), %rcx
movq -0x510(%rbp), %rdi
movq %rsi, %r12
leaq -0x4f8(%rbp), %rdx
movq %rcx, %r13
callq *0x48(%rdi)
testl %eax, %eax
je 0x3dec1
movl %eax, %r15d
movq -0x500(%rbp), %rax
cmpq %rax, -0x4f8(%rbp)
ja 0x3dec1
movq -0x510(%rbp), %rax
movq 0x28(%rax), %rdi
movq %r13, %rsi
movq -0x520(%rbp), %rdx
movl -0x504(%rbp), %ecx
movl -0x508(%rbp), %r8d
leaq -0x528(%rbp), %r9
callq 0x5bb0e
movl %eax, %r14d
testl %eax, %eax
jns 0x3deef
movl %r15d, %edx
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0x282c0
movq -0x4f8(%rbp), %rax
movq %rax, (%rbx)
cmpq -0x500(%rbp), %rax
movq %r12, %rsi
movq %r13, %rcx
jb 0x3de30
jmp 0x3df07
movq -0x518(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0x3412a
callq 0x5ed5e
movl $0x7e, (%rax)
movl $0x7fffffff, %r14d # imm = 0x7FFFFFFF
jmp 0x3df1c
jne 0x3df07
movl %r15d, %edx
leaq -0x4f0(%rbp), %rsi
movq 0x18(%rbp), %rdi
callq 0x282c0
xorl %r14d, %r14d
movq -0x500(%rbp), %rax
cmpq %rax, -0x4f8(%rbp)
movq 0x20(%rbp), %rax
sete (%rax)
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x3df40
movl %r14d, %eax
addq $0x508, %rsp # imm = 0x508
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x28430
|
_mi_seq_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 508h
mov [rbp+var_508], r9d
mov [rbp+var_504], r8d
mov [rbp+var_520], rcx
mov [rbp+var_510], rsi
mov rbx, [rbp+arg_0]
mov rax, fs:28h
mov [rbp+var_30], rax
movzx ecx, byte ptr [rdx+1]
movzx r9d, byte ptr [rdx]
mov eax, r9d
and eax, 7Fh
shl eax, 8
or rax, rcx
xor esi, esi
test r9b, r9b
jns short loc_3DDF8
mov rcx, [rdi]
mov esi, [rcx+17Ch]
loc_3DDF8:
mov [rbp+var_518], rdi
lea rcx, [rdx+rax]
mov [rbp+var_500], rcx
lea ecx, [rsi+2]
add rdx, rcx
mov [rbp+var_4F8], rdx
mov [rbx], rdx
mov [rbp+var_4F0], 0
cmp eax, ecx
jbe loc_3DF07
lea rcx, [rbp+var_4F0]
loc_3DE30:
mov rdi, [rbp+var_510]
mov r12, rsi
lea rdx, [rbp+var_4F8]
mov r13, rcx
call qword ptr [rdi+48h]
test eax, eax
jz short loc_3DEC1
mov r15d, eax
mov rax, [rbp+var_500]
cmp [rbp+var_4F8], rax
ja short loc_3DEC1
mov rax, [rbp+var_510]
mov rdi, [rax+28h]
mov rsi, r13
mov rdx, [rbp+var_520]
mov ecx, [rbp+var_504]
mov r8d, [rbp+var_508]
lea r9, [rbp+var_528]
call ha_key_cmp
mov r14d, eax
test eax, eax
jns short loc_3DEEF
mov edx, r15d
mov rdi, [rbp+arg_8]
mov rsi, r13
call _memcpy
mov rax, [rbp+var_4F8]
mov [rbx], rax
cmp rax, [rbp+var_500]
mov rsi, r12
mov rcx, r13
jb loc_3DE30
jmp short loc_3DF07
loc_3DEC1:
mov rax, [rbp+var_518]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov r14d, 7FFFFFFFh
jmp short loc_3DF1C
loc_3DEEF:
jnz short loc_3DF07
mov edx, r15d
lea rsi, [rbp+var_4F0]
mov rdi, [rbp+arg_8]
call _memcpy
xor r14d, r14d
loc_3DF07:
mov rax, [rbp+var_500]
cmp [rbp+var_4F8], rax
mov rax, [rbp+arg_10]
setz byte ptr [rax]
loc_3DF1C:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_3DF40
mov eax, r14d
add rsp, 508h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3DF40:
call ___stack_chk_fail
|
long long mi_seq_search(
long long a1,
long long a2,
char *a3,
long long a4,
unsigned int a5,
unsigned int a6,
char **a7,
long long a8,
bool *a9)
{
unsigned int v9; // r14d
unsigned long long v10; // rax
long long v11; // rsi
long long v12; // rcx
_BYTE *v13; // rcx
_BYTE *v14; // r13
unsigned int v15; // eax
unsigned int v16; // r15d
int v17; // eax
char *v18; // rax
const char *v19; // rsi
char v21[8]; // [rsp+8h] [rbp-528h] BYREF
long long v22; // [rsp+10h] [rbp-520h]
long long v23; // [rsp+18h] [rbp-518h]
long long v24; // [rsp+20h] [rbp-510h]
unsigned int v25; // [rsp+28h] [rbp-508h]
unsigned int v26; // [rsp+2Ch] [rbp-504h]
char *v27; // [rsp+30h] [rbp-500h]
char *v28; // [rsp+38h] [rbp-4F8h] BYREF
_BYTE v29[1216]; // [rsp+40h] [rbp-4F0h] BYREF
unsigned long long v30; // [rsp+500h] [rbp-30h]
v25 = a6;
v26 = a5;
v22 = a4;
v24 = a2;
v30 = __readfsqword(0x28u);
v10 = (unsigned __int8)a3[1] | (unsigned long long)((unsigned __int8)(*a3 & 0x7F) << 8);
v11 = 0LL;
if ( *a3 < 0 )
v11 = *(unsigned int *)(*(_QWORD *)a1 + 380LL);
v23 = a1;
v27 = &a3[v10];
v12 = (unsigned int)(v11 + 2);
v28 = &a3[v12];
*a7 = &a3[v12];
v29[0] = 0;
if ( (unsigned int)v10 > (unsigned int)v12 )
{
v13 = v29;
while ( 1 )
{
v14 = v13;
v15 = (*(long long ( **)(long long, long long, char **))(v24 + 72))(v24, v11, &v28);
if ( !v15 || (v16 = v15, v28 > v27) )
{
v19 = *(const char **)(*(_QWORD *)v23 + 616LL);
mi_report_error(126, (long long)v19);
*(_DWORD *)my_thread_var(126LL, v19) = 126;
return 0x7FFFFFFF;
}
v17 = ha_key_cmp(*(_QWORD *)(v24 + 40), v14, v22, v26, v25, v21);
v9 = v17;
if ( v17 >= 0 )
break;
memcpy(a8, v14, v16);
v18 = v28;
*a7 = v28;
v13 = v14;
if ( v18 >= v27 )
goto LABEL_13;
}
if ( !v17 )
{
memcpy(a8, v29, v16);
v9 = 0;
}
}
LABEL_13:
*a9 = v28 == v27;
return v9;
}
|
_mi_seq_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x508
MOV dword ptr [RBP + -0x508],R9D
MOV dword ptr [RBP + -0x504],R8D
MOV qword ptr [RBP + -0x520],RCX
MOV qword ptr [RBP + -0x510],RSI
MOV RBX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOVZX ECX,byte ptr [RDX + 0x1]
MOVZX R9D,byte ptr [RDX]
MOV EAX,R9D
AND EAX,0x7f
SHL EAX,0x8
OR RAX,RCX
XOR ESI,ESI
TEST R9B,R9B
JNS 0x0013ddf8
MOV RCX,qword ptr [RDI]
MOV ESI,dword ptr [RCX + 0x17c]
LAB_0013ddf8:
MOV qword ptr [RBP + -0x518],RDI
LEA RCX,[RDX + RAX*0x1]
MOV qword ptr [RBP + -0x500],RCX
LEA ECX,[RSI + 0x2]
ADD RDX,RCX
MOV qword ptr [RBP + -0x4f8],RDX
MOV qword ptr [RBX],RDX
MOV byte ptr [RBP + -0x4f0],0x0
CMP EAX,ECX
JBE 0x0013df07
LEA RCX,[RBP + -0x4f0]
LAB_0013de30:
MOV RDI,qword ptr [RBP + -0x510]
MOV R12,RSI
LEA RDX,[RBP + -0x4f8]
MOV R13,RCX
CALL qword ptr [RDI + 0x48]
TEST EAX,EAX
JZ 0x0013dec1
MOV R15D,EAX
MOV RAX,qword ptr [RBP + -0x500]
CMP qword ptr [RBP + -0x4f8],RAX
JA 0x0013dec1
MOV RAX,qword ptr [RBP + -0x510]
MOV RDI,qword ptr [RAX + 0x28]
MOV RSI,R13
MOV RDX,qword ptr [RBP + -0x520]
MOV ECX,dword ptr [RBP + -0x504]
MOV R8D,dword ptr [RBP + -0x508]
LEA R9,[RBP + -0x528]
CALL 0x0015bb0e
MOV R14D,EAX
TEST EAX,EAX
JNS 0x0013deef
MOV EDX,R15D
MOV RDI,qword ptr [RBP + 0x18]
MOV RSI,R13
CALL 0x001282c0
MOV RAX,qword ptr [RBP + -0x4f8]
MOV qword ptr [RBX],RAX
CMP RAX,qword ptr [RBP + -0x500]
MOV RSI,R12
MOV RCX,R13
JC 0x0013de30
JMP 0x0013df07
LAB_0013dec1:
MOV RAX,qword ptr [RBP + -0x518]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x0013412a
CALL 0x0015ed5e
MOV dword ptr [RAX],0x7e
MOV R14D,0x7fffffff
JMP 0x0013df1c
LAB_0013deef:
JNZ 0x0013df07
MOV EDX,R15D
LEA RSI,[RBP + -0x4f0]
MOV RDI,qword ptr [RBP + 0x18]
CALL 0x001282c0
XOR R14D,R14D
LAB_0013df07:
MOV RAX,qword ptr [RBP + -0x500]
CMP qword ptr [RBP + -0x4f8],RAX
MOV RAX,qword ptr [RBP + 0x20]
SETZ byte ptr [RAX]
LAB_0013df1c:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0013df40
MOV EAX,R14D
ADD RSP,0x508
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013df40:
CALL 0x00128430
|
int _mi_seq_search(long *param_1,long param_2,byte *param_3,int8 param_4,int4 param_5,
int4 param_6,int8 *param_7,void *param_8,int8 param_9)
{
uint uVar1;
ulong uVar2;
int4 *puVar3;
int iVar4;
int unaff_R14D;
long in_FS_OFFSET;
int1 local_530 [8];
int8 local_528;
long *local_520;
long local_518;
int4 local_510;
int4 local_50c;
byte *local_508;
byte *local_500;
int1 local_4f8 [1216];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar2 = (ulong)((*param_3 & 0x7f) << 8) | (ulong)param_3[1];
iVar4 = 0;
if ((char)*param_3 < '\0') {
iVar4 = *(int *)(*param_1 + 0x17c);
}
local_508 = param_3 + uVar2;
local_500 = param_3 + (iVar4 + 2U);
*param_7 = local_500;
local_4f8[0] = 0;
local_528 = param_4;
local_520 = param_1;
local_518 = param_2;
local_510 = param_6;
local_50c = param_5;
if (iVar4 + 2U < (uint)uVar2) {
do {
uVar1 = (**(code **)(local_518 + 0x48))(local_518,iVar4,&local_500);
if ((uVar1 == 0) || (local_508 < local_500)) {
mi_report_error(0x7e,*(int8 *)(*local_520 + 0x268));
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x7e;
unaff_R14D = 0x7fffffff;
goto LAB_0013df1c;
}
unaff_R14D = ha_key_cmp(*(int8 *)(local_518 + 0x28),local_4f8,local_528,local_50c,
local_510,local_530);
if (-1 < unaff_R14D) {
if (unaff_R14D == 0) {
memcpy(param_8,local_4f8,(ulong)uVar1);
unaff_R14D = 0;
}
break;
}
memcpy(param_8,local_4f8,(ulong)uVar1);
*param_7 = local_500;
} while (local_500 < local_508);
}
*(bool *)param_9 = local_500 == local_508;
LAB_0013df1c:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return unaff_R14D;
}
|
|
13,325
|
ma_scan_remember_block_record
|
eloqsql/storage/maria/ma_blockrec.c
|
int _ma_scan_remember_block_record(MARIA_HA *info,
MARIA_RECORD_POS *lastpos)
{
uchar *bitmap_buff;
DBUG_ENTER("_ma_scan_remember_block_record");
if (!(info->scan_save))
{
if (!(info->scan_save= my_malloc(PSI_INSTRUMENT_ME,
ALIGN_SIZE(sizeof(*info->scan_save)) +
info->s->block_size * 2,
MYF(MY_WME))))
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
info->scan_save->bitmap_buff= ((uchar*) info->scan_save +
ALIGN_SIZE(sizeof(*info->scan_save)));
}
/* For checking if pages have changed since we last read it */
info->scan.row_changes= info->row_changes;
/* Remember used bitmap and used head page */
bitmap_buff= info->scan_save->bitmap_buff;
memcpy(info->scan_save, &info->scan, sizeof(*info->scan_save));
info->scan_save->bitmap_buff= bitmap_buff;
memcpy(bitmap_buff, info->scan.bitmap_buff, info->s->block_size * 2);
/* Point to the last read row */
*lastpos= info->cur_row.nextpos - 1;
info->scan_save->dir+= DIR_ENTRY_SIZE;
DBUG_RETURN(0);
}
|
O3
|
c
|
ma_scan_remember_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x280(%rdi), %rdi
testq %rdi, %rdi
jne 0x4fce6
movq (%rbx), %rax
movl 0x7bc(%rax), %esi
addl %esi, %esi
addq $0x60, %rsi
movl $0x10, %edx
xorl %edi, %edi
callq 0xa63e5
movq %rax, 0x280(%rbx)
testq %rax, %rax
je 0x4fd52
movq %rax, %rcx
addq $0x60, %rcx
movq %rcx, (%rax)
movq 0x280(%rbx), %rdi
movq 0x3f0(%rbx), %rax
leaq 0x220(%rbx), %rsi
movq %rax, 0x278(%rbx)
movq (%rdi), %r15
movl $0x60, %edx
callq 0x2a0a0
movq 0x280(%rbx), %rax
movq %r15, (%rax)
movq 0x220(%rbx), %rsi
movq (%rbx), %rax
movl 0x7bc(%rax), %edx
addl %edx, %edx
movq %r15, %rdi
callq 0x2a0a0
movq 0xa0(%rbx), %rax
decq %rax
movq %rax, (%r14)
movq 0x280(%rbx), %rax
addq $0x4, 0x20(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x80, %eax
jmp 0x4fd47
|
_ma_scan_remember_block_record:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
mov rdi, [rdi+280h]
test rdi, rdi
jnz short loc_4FCE6
mov rax, [rbx]
mov esi, [rax+7BCh]
add esi, esi
add rsi, 60h ; '`'
mov edx, 10h
xor edi, edi
call my_malloc
mov [rbx+280h], rax
test rax, rax
jz short loc_4FD52
mov rcx, rax
add rcx, 60h ; '`'
mov [rax], rcx
mov rdi, [rbx+280h]
loc_4FCE6:
mov rax, [rbx+3F0h]
lea rsi, [rbx+220h]
mov [rbx+278h], rax
mov r15, [rdi]
mov edx, 60h ; '`'
call _memcpy
mov rax, [rbx+280h]
mov [rax], r15
mov rsi, [rbx+220h]
mov rax, [rbx]
mov edx, [rax+7BCh]
add edx, edx
mov rdi, r15
call _memcpy
mov rax, [rbx+0A0h]
dec rax
mov [r14], rax
mov rax, [rbx+280h]
add qword ptr [rax+20h], 4
xor eax, eax
loc_4FD47:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4FD52:
mov eax, 80h
jmp short loc_4FD47
|
long long ma_scan_remember_block_record(_QWORD *a1, _QWORD *a2)
{
long long *v3; // rdi
_QWORD *v4; // rax
long long v5; // r15
v3 = (long long *)a1[80];
if ( !v3 )
{
v4 = (_QWORD *)my_malloc(0LL, (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)) + 96LL, 16LL);
a1[80] = v4;
if ( !v4 )
return 128LL;
*v4 = v4 + 12;
v3 = (long long *)a1[80];
}
a1[79] = a1[126];
v5 = *v3;
memcpy(v3, a1 + 68, 96LL);
*(_QWORD *)a1[80] = v5;
memcpy(v5, a1[68], (unsigned int)(2 * *(_DWORD *)(*a1 + 1980LL)));
*a2 = a1[20] - 1LL;
*(_QWORD *)(a1[80] + 32LL) += 4LL;
return 0LL;
}
|
_ma_scan_remember_block_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x280]
TEST RDI,RDI
JNZ 0x0014fce6
MOV RAX,qword ptr [RBX]
MOV ESI,dword ptr [RAX + 0x7bc]
ADD ESI,ESI
ADD RSI,0x60
MOV EDX,0x10
XOR EDI,EDI
CALL 0x001a63e5
MOV qword ptr [RBX + 0x280],RAX
TEST RAX,RAX
JZ 0x0014fd52
MOV RCX,RAX
ADD RCX,0x60
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBX + 0x280]
LAB_0014fce6:
MOV RAX,qword ptr [RBX + 0x3f0]
LEA RSI,[RBX + 0x220]
MOV qword ptr [RBX + 0x278],RAX
MOV R15,qword ptr [RDI]
MOV EDX,0x60
CALL 0x0012a0a0
MOV RAX,qword ptr [RBX + 0x280]
MOV qword ptr [RAX],R15
MOV RSI,qword ptr [RBX + 0x220]
MOV RAX,qword ptr [RBX]
MOV EDX,dword ptr [RAX + 0x7bc]
ADD EDX,EDX
MOV RDI,R15
CALL 0x0012a0a0
MOV RAX,qword ptr [RBX + 0xa0]
DEC RAX
MOV qword ptr [R14],RAX
MOV RAX,qword ptr [RBX + 0x280]
ADD qword ptr [RAX + 0x20],0x4
XOR EAX,EAX
LAB_0014fd47:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014fd52:
MOV EAX,0x80
JMP 0x0014fd47
|
int8 _ma_scan_remember_block_record(long *param_1,long *param_2)
{
void *__dest;
long *plVar1;
int8 *__dest_00;
__dest_00 = (int8 *)param_1[0x50];
if (__dest_00 == (int8 *)0x0) {
plVar1 = (long *)my_malloc(0,(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2) + 0x60,0x10);
param_1[0x50] = (long)plVar1;
if (plVar1 == (long *)0x0) {
return 0x80;
}
*plVar1 = (long)(plVar1 + 0xc);
__dest_00 = (int8 *)param_1[0x50];
}
param_1[0x4f] = param_1[0x7e];
__dest = (void *)*__dest_00;
memcpy(__dest_00,param_1 + 0x44,0x60);
*(void **)param_1[0x50] = __dest;
memcpy(__dest,(void *)param_1[0x44],(ulong)(uint)(*(int *)(*param_1 + 0x7bc) * 2));
*param_2 = param_1[0x14] + -1;
*(long *)(param_1[0x50] + 0x20) = *(long *)(param_1[0x50] + 0x20) + 4;
return 0;
}
|
|
13,326
|
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&)
|
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/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_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&):
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5fc20
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x676a8
jmp 0x67748
movb $0x1, -0x45(%rbp)
movl $0x20, %edi
callq 0x5c6c0
movq %rax, -0x50(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5dca0
movq %rax, -0x38(%rbp)
leaq 0x25751(%rip), %rsi # 0x8ce1f
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0x5b4b0
jmp 0x676dd
movq -0x50(%rbp), %rdi
movq -0x8(%rbp), %rcx
movl $0x12e, %esi # imm = 0x12E
leaq -0x30(%rbp), %rdx
callq 0x61580
jmp 0x676f5
movq -0x50(%rbp), %rdi
movb $0x0, -0x45(%rbp)
movq 0x3f88c(%rip), %rsi # 0xa6f90
movq 0x3f8c5(%rip), %rdx # 0xa6fd0
callq 0x60f20
jmp 0x6776c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x67735
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x5cfd0
testb $0x1, -0x45(%rbp)
jne 0x6773d
jmp 0x67746
movq -0x50(%rbp), %rdi
callq 0x5d520
jmp 0x67763
movq -0x8(%rbp), %rdi
callq 0x5ca00
movq %rax, %rsi
movq -0x10(%rbp), %rdi
callq 0x5b1a0
addq $0x50, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x611b0
nopl (%rax)
|
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_RNSG_8string_tE:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_stringEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_string(void)
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_676A8
jmp loc_67748
loc_676A8:
mov [rbp+var_45], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rbp+var_50], rax
mov rdi, [rbp+var_8]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov [rbp+var_38], rax
lea rsi, aTypeMustBeStri; "type must be string, but is "
lea rdi, [rbp+var_30]
lea rdx, [rbp+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* &&)
jmp short $+2
loc_676DD:
mov rdi, [rbp+var_50]
mov rcx, [rbp+var_8]
mov esi, 12Eh
lea rdx, [rbp+var_30]
call __ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_676F5:
mov rdi, [rbp+var_50]; void *
mov [rbp+var_45], 0
mov rsi, cs:_ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE_ptr; lptinfo
mov rdx, cs:_ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp short loc_6776C
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
jmp short loc_67735
mov rcx, rax
mov eax, edx
mov [rbp+var_40], rcx
mov [rbp+var_44], eax
lea rdi, [rbp+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_67735:
test [rbp+var_45], 1
jnz short loc_6773D
jmp short loc_67746
loc_6773D:
mov rdi, [rbp+var_50]; void *
call ___cxa_free_exception
loc_67746:
jmp short loc_67763
loc_67748:
mov rdi, [rbp+var_8]
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
mov rsi, rax
mov rdi, [rbp+var_10]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
add rsp, 50h
pop rbp
retn
loc_67763:
mov rdi, [rbp+var_40]
call __Unwind_Resume
loc_6776C:
nop dword ptr [rax+00h]
|
long long nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
long long a1,
long long a2)
{
long long v2; // rax
void *exception; // [rsp+0h] [rbp-50h]
long long v5; // [rsp+18h] [rbp-38h] BYREF
_BYTE v6[32]; // [rsp+20h] [rbp-30h] BYREF
long long v7; // [rsp+40h] [rbp-10h]
long long v8; // [rsp+48h] [rbp-8h]
v8 = a1;
v7 = a2;
if ( (nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::is_string(a1) & 1) == 0 )
{
exception = __cxa_allocate_exception(0x20uLL);
v5 = nlohmann::json_abi_v3_11_3::basic_json<std::map,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(v8);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
v6,
"type must be string, but is ",
&v5);
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
302LL,
v6,
v8);
__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::type_error::~type_error);
}
v2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv(v8);
return std::string::operator=(v7, v2);
}
|
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015fc20
XOR AL,0xff
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001676a8
JMP 0x00167748
LAB_001676a8:
MOV byte ptr [RBP + -0x45],0x1
MOV EDI,0x20
CALL 0x0015c6c0
MOV qword ptr [RBP + -0x50],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015dca0
MOV qword ptr [RBP + -0x38],RAX
LAB_001676c7:
LEA RSI,[0x18ce1f]
LEA RDI,[RBP + -0x30]
LEA RDX,[RBP + -0x38]
CALL 0x0015b4b0
JMP 0x001676dd
LAB_001676dd:
MOV RDI,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x8]
LAB_001676e5:
MOV ESI,0x12e
LEA RDX,[RBP + -0x30]
CALL 0x00161580
JMP 0x001676f5
LAB_001676f5:
MOV RDI,qword ptr [RBP + -0x50]
MOV byte ptr [RBP + -0x45],0x0
MOV RSI,qword ptr [0x001a6f90]
MOV RDX,qword ptr [0x001a6fd0]
CALL 0x00160f20
LAB_00167748:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0015ca00
MOV RSI,RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0015b1a0
ADD RSP,0x50
POP RBP
RET
|
/* void
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, 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<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::string_t&) */
void nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,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 *param_1,string_t *param_2)
{
string *psVar1;
int8 uVar2;
byte bVar3;
char *local_40;
detail local_38 [32];
string_t *local_18;
basic_json *local_10;
local_18 = param_2;
local_10 = param_1;
bVar3 = basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_string((basic_json<std::map,std::vector,std::__cxx11::string,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);
if (((bVar3 ^ 0xff) & 1) == 0) {
psVar1 = (string *)
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKS9_TnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
(local_10);
std::__cxx11::string::operator=((string *)local_18,psVar1);
return;
}
uVar2 = __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_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name((basic_json<std::map,std::vector,std::__cxx11::string,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_10);
/* try { // try from 001676c7 to 001676da has its CatchHandler @ 00167712 */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be string, but is ",&local_40);
/* try { // try from 001676e5 to 0016770f has its CatchHandler @ 00167720 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,local_10);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,PTR_typeinfo_001a6f90,PTR__type_error_001a6fd0);
}
|
|
13,327
|
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&)
|
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/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_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x15864
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x11530
movl $0x20, %edi
callq 0x11460
movq %rax, %rbx
movq %r14, %rdi
callq 0x11820
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0xcf0b(%rip), %rsi # 0x22793
leaq 0x10(%rsp), %rdi
callq 0x11100
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x120c0
xorl %ebp, %ebp
movq 0x176ed(%rip), %rsi # 0x2cfa0
movq 0x17696(%rip), %rdx # 0x2cf50
movq %rbx, %rdi
callq 0x11fb0
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158e8
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x119b0
jmp 0x158e8
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x158f5
movq %rbx, %rdi
callq 0x116b0
movq %r14, %rdi
callq 0x12010
nop
|
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_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_15864
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_15864:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::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, aTypeMustBeStri; "type must be string, 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_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
mov rsi, cs:_ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE_ptr; lptinfo
mov rdx, cs:_ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev_ptr; 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_158E8
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_158E8
mov r14, rax
mov bpl, 1
loc_158E8:
test bpl, bpl
jz short loc_158F5
mov rdi, rbx; void *
call ___cxa_free_exception
loc_158F5:
mov rdi, r14
call __Unwind_Resume
|
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x00115864
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,RSI
MOV RSI,RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x00111530
LAB_00115864:
MOV EDI,0x20
CALL 0x00111460
MOV RBX,RAX
MOV RDI,R14
CALL 0x00111820
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00115881:
LEA RSI,[0x122793]
LEA RDI,[RSP + 0x10]
CALL 0x00111100
MOV BPL,0x1
LAB_00115895:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x001120c0
XOR EBP,EBP
MOV RSI,qword ptr [0x0012cfa0]
MOV RDX,qword ptr [0x0012cf50]
MOV RDI,RBX
CALL 0x00111fb0
|
/* void
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, 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<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::string_t&) */
void nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,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 *param_1,string_t *param_2)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 == (basic_json)0x3) {
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_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name((basic_json<std::map,std::vector,std::__cxx11::string,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);
/* try { // try from 00115881 to 00115891 has its CatchHandler @ 001158e2 */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be string, but is ",&local_40);
/* try { // try from 00115895 to 001158c1 has its CatchHandler @ 001158c2 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,PTR_typeinfo_0012cfa0,PTR__exception_0012cf50);
}
|
||
13,328
|
void nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&)
|
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/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_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::string_t&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
cmpb $0x3, (%rdi)
jne 0x20815
movq 0x8(%r14), %rax
movq %rsi, %rdi
movq %rax, %rsi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x1c900
pushq $0x20
popq %rdi
callq 0x1c790
movq %rax, %rbx
movq %r14, %rdi
callq 0x1cea0
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0xaf4c(%rip), %rsi # 0x2b783
leaq 0x10(%rsp), %rdi
callq 0x1c1e0
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x1dd90
xorl %ebp, %ebp
movq 0x1873e(%rip), %rsi # 0x38fa0
movq 0x186e7(%rip), %rdx # 0x38f50
movq %rbx, %rdi
callq 0x1dc20
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1c6f0
testb %bpl, %bpl
jne 0x20888
jmp 0x20890
movq %rax, %r14
movq %rbx, %rdi
callq 0x1cc30
movq %r14, %rdi
callq 0x1dcb0
|
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEvRKT_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_20815
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_20815:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<std::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, aTypeMustBeStri; "type must be string, 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_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
mov rsi, cs:_ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE_ptr; lptinfo
mov rdx, cs:_ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+48h+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_20888
jmp short loc_20890
mov r14, rax
loc_20888:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_20890:
mov rdi, r14
call __Unwind_Resume
|
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
CMP byte ptr [RDI],0x3
JNZ 0x00120815
MOV RAX,qword ptr [R14 + 0x8]
MOV RDI,RSI
MOV RSI,RAX
ADD RSP,0x30
POP RBX
POP R14
POP RBP
JMP 0x0011c900
LAB_00120815:
PUSH 0x20
POP RDI
CALL 0x0011c790
MOV RBX,RAX
MOV RDI,R14
CALL 0x0011cea0
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00120830:
LEA RSI,[0x12b783]
LEA RDI,[RSP + 0x10]
CALL 0x0011c1e0
MOV BPL,0x1
LAB_00120844:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x0011dd90
XOR EBP,EBP
MOV RSI,qword ptr [0x00138fa0]
MOV RDX,qword ptr [0x00138f50]
MOV RDI,RBX
CALL 0x0011dc20
|
/* void
nlohmann::json_abi_v3_11_3::detail::from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector,
std::__cxx11::string, 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<std::map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::string_t&) */
void nlohmann::json_abi_v3_11_3::detail::
from_json<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,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 *param_1,string_t *param_2)
{
int8 uVar1;
char *local_40;
detail local_38 [32];
if (*param_1 == (basic_json)0x3) {
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_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name((basic_json<std::map,std::vector,std::__cxx11::string,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);
/* try { // try from 00120830 to 00120840 has its CatchHandler @ 00120885 */
concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be string, but is ",&local_40);
/* try { // try from 00120844 to 00120870 has its CatchHandler @ 00120871 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,PTR_typeinfo_00138fa0,PTR__exception_00138f50);
}
|
||
13,329
|
minja::Parser::consumeToken(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, minja::SpaceHandling)
|
monkey531[P]llama/common/minja.hpp
|
std::string consumeToken(const std::regex & regex, SpaceHandling space_handling = SpaceHandling::Strip) {
auto start = it;
consumeSpaces(space_handling);
std::smatch match;
if (std::regex_search(it, end, match, regex) && match.position() == 0) {
it += match[0].length();
return match[0].str();
}
it = start;
return "";
}
|
O2
|
cpp
|
minja::Parser::consumeToken(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, minja::SpaceHandling):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %r12
movq %rsi, %rdi
movl %ecx, %esi
callq 0x60aaa
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x4ee10
testb %al, %al
je 0x5fbf9
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x60a32
testq %rax, %rax
je 0x5fc2a
movq %r12, 0x20(%r14)
leaq 0x4954d(%rip), %rsi # 0xa9151
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x25c26
leaq 0x10(%rsp), %rdi
callq 0x4f33e
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
leaq -0x48(%rcx), %rdi
cmpq $0x48, %rdx
movq %rax, %rsi
cmoveq %rdi, %rsi
cmpq %rax, %rcx
cmoveq %rdi, %rsi
movq 0x8(%rsi), %rax
subq (%rsi), %rax
xorl %ecx, %ecx
cmpb $0x0, 0x10(%rsi)
cmovneq %rax, %rcx
addq %rcx, 0x20(%r14)
movq %rbx, %rdi
callq 0x51888
jmp 0x5fc11
jmp 0x5fc71
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4f33e
movq %rbx, %rdi
callq 0x23f10
|
_ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE:
push r15
push r14
push r12
push rbx
sub rsp, 38h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov r12, [rsi+20h]
mov rdi, rsi
mov esi, ecx
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
xorps xmm0, xmm0
lea rdx, [rsp+58h+var_48]
movaps xmmword ptr [rdx+10h], xmm0
movaps xmmword ptr [rdx], xmm0
mov rsi, [r14+18h]
mov rdi, [r14+20h]
mov rcx, r15
xor r8d, r8d
call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type)
test al, al
jz short loc_5FBF9
lea rdi, [rsp+58h+var_48]
xor esi, esi
call _ZNKSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEE8positionEm; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::position(ulong)
test rax, rax
jz short loc_5FC2A
loc_5FBF9:
mov [r14+20h], r12
lea rsi, aExampleSpecifi+1Fh; ""
lea rdx, [rsp+58h+var_49]
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
loc_5FC11:
lea rdi, [rsp+58h+var_48]
call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base()
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r14
pop r15
retn
loc_5FC2A:
mov rax, [rsp+58h+var_48]
mov rcx, [rsp+58h+var_40]
mov rdx, rcx
sub rdx, rax
lea rdi, [rcx-48h]
cmp rdx, 48h ; 'H'
mov rsi, rax
cmovz rsi, rdi
cmp rcx, rax
cmovz rsi, rdi
mov rax, [rsi+8]
sub rax, [rsi]
xor ecx, ecx
cmp byte ptr [rsi+10h], 0
cmovnz rcx, rax
add [r14+20h], rcx
mov rdi, rbx
call _ZNKSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEE3strEv; std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::str(void)
jmp short loc_5FC11
jmp short $+2
loc_5FC71:
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base()
mov rdi, rbx
call __Unwind_Resume
|
_QWORD * minja::Parser::consumeToken(_QWORD *a1, long long a2, long long a3, unsigned int a4)
{
long long v6; // r12
long long *v8; // rsi
long long v9; // rcx
long long *v10[9]; // [rsp+10h] [rbp-48h] BYREF
v6 = *(_QWORD *)(a2 + 32);
minja::Parser::consumeSpaces(a2, a4);
memset(v10, 0, 32);
if ( std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(
*(long long **)(a2 + 32),
*(_QWORD *)(a2 + 24),
v10,
a3,
0)
&& !std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::position(v10, 0LL) )
{
v8 = v10[0];
if ( (long long *)((char *)v10[1] - (char *)v10[0]) == &qword_48 )
v8 = v10[1] - 9;
if ( v10[1] == v10[0] )
v8 = v10[1] - 9;
v9 = 0LL;
if ( *((_BYTE *)v8 + 16) )
v9 = v8[1] - *v8;
*(_QWORD *)(a2 + 32) += v9;
std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::str((long long)a1, v8);
}
else
{
*(_QWORD *)(a2 + 32) = v6;
std::string::basic_string<std::allocator<char>>(a1, (long long)"");
}
std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base(v10);
return a1;
}
|
consumeToken:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RSI + 0x20]
MOV RDI,RSI
MOV ESI,ECX
CALL 0x00160aaa
XORPS XMM0,XMM0
LEA RDX,[RSP + 0x10]
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
MOV RSI,qword ptr [R14 + 0x18]
MOV RDI,qword ptr [R14 + 0x20]
LAB_0015fbd9:
MOV RCX,R15
XOR R8D,R8D
CALL 0x0014ee10
TEST AL,AL
JZ 0x0015fbf9
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
CALL 0x00160a32
TEST RAX,RAX
JZ 0x0015fc2a
LAB_0015fbf9:
MOV qword ptr [R14 + 0x20],R12
LAB_0015fbfd:
LEA RSI,[0x1a9151]
LEA RDX,[RSP + 0xf]
MOV RDI,RBX
CALL 0x00125c26
LAB_0015fc11:
LEA RDI,[RSP + 0x10]
CALL 0x0014f33e
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0015fc2a:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
MOV RDX,RCX
SUB RDX,RAX
LEA RDI,[RCX + -0x48]
CMP RDX,0x48
MOV RSI,RAX
CMOVZ RSI,RDI
CMP RCX,RAX
CMOVZ RSI,RDI
MOV RAX,qword ptr [RSI + 0x8]
SUB RAX,qword ptr [RSI]
XOR ECX,ECX
CMP byte ptr [RSI + 0x10],0x0
CMOVNZ RCX,RAX
ADD qword ptr [R14 + 0x20],RCX
LAB_0015fc65:
MOV RDI,RBX
CALL 0x00151888
LAB_0015fc6d:
JMP 0x0015fc11
|
/* minja::Parser::consumeToken(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> >
const&, minja::SpaceHandling) */
string * minja::Parser::consumeToken
(string *param_1,Parser *param_2,int8 param_3,int4 param_4)
{
int8 uVar1;
bool bVar2;
long lVar3;
long *plVar4;
allocator local_49;
long *local_48;
long *plStack_40;
int8 local_38;
int8 uStack_30;
uVar1 = *(int8 *)(param_2 + 0x20);
consumeSpaces(param_2,param_4);
local_38 = 0;
uStack_30 = 0;
local_48 = (long *)0x0;
plStack_40 = (long *)0x0;
/* try { // try from 0015fbd9 to 0015fbf3 has its CatchHandler @ 0015fc71 */
bVar2 = std::__detail::
__regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>
(*(int8 *)(param_2 + 0x20),*(int8 *)(param_2 + 0x18),&local_48,
param_3,0);
if (bVar2) {
lVar3 = std::__cxx11::
match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>
::position((match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>
*)&local_48,0);
if (lVar3 == 0) {
plVar4 = local_48;
if ((long)plStack_40 - (long)local_48 == 0x48) {
plVar4 = plStack_40 + -9;
}
if (plStack_40 == local_48) {
plVar4 = plStack_40 + -9;
}
lVar3 = 0;
if ((char)plVar4[2] != '\0') {
lVar3 = plVar4[1] - *plVar4;
}
*(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + lVar3;
/* try { // try from 0015fc65 to 0015fc6c has its CatchHandler @ 0015fc71 */
std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>::str()
;
goto LAB_0015fc11;
}
}
*(int8 *)(param_2 + 0x20) = uVar1;
/* try { // try from 0015fbfd to 0015fc10 has its CatchHandler @ 0015fc6f */
std::__cxx11::string::string<std::allocator<char>>(param_1,"",&local_49);
LAB_0015fc11:
std::
_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>
::~_Vector_base((_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>>
*)&local_48);
return param_1;
}
|
|
13,330
|
my_strcasecmp_mb
|
eloqsql/strings/ctype-mb.c
|
int my_strcasecmp_mb(CHARSET_INFO * cs,const char *s, const char *t)
{
register uint32 l;
register const uchar *map=cs->to_upper;
while (*s && *t)
{
/* Pointing after the '\0' is safe here. */
if ((l=my_ismbchar(cs, s, s + cs->mbmaxlen)))
{
while (l--)
if (*s++ != *t++)
return 1;
}
else if (my_ci_charlen(cs, (const uchar *) t, (const uchar *) t + cs->mbmaxlen) > 1)
return 1;
else if (map[(uchar) *s++] != map[(uchar) *t++])
return 1;
}
/* At least one of '*s' and '*t' is zero here. */
return (*t != *s);
}
|
O3
|
c
|
my_strcasecmp_mb:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movb (%rsi), %cl
testb %cl, %cl
je 0x6eca7
cmpb $0x0, (%rbx)
je 0x6eca9
movq %rsi, %r15
movq %rdi, %r14
movq 0x50(%rdi), %r12
movl 0x9c(%r14), %edx
addq %r15, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x6ec6c
movl 0x9c(%r14), %edx
addq %rbx, %rdx
movq 0xb8(%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x1, %ecx
jg 0x6ecb7
movzbl (%r15), %ecx
movb (%r12,%rcx), %cl
movzbl (%rbx), %edx
cmpb (%r12,%rdx), %cl
jne 0x6ecb7
incq %r15
incq %rbx
jmp 0x6ec95
movl %eax, %eax
leaq (%r15,%rax), %rcx
leaq (%rbx,%rax), %rdx
xorl %esi, %esi
cmpl %esi, %eax
je 0x6ec8f
movb (%r15,%rsi), %dil
leaq 0x1(%rsi), %r8
cmpb (%rbx,%rsi), %dil
movq %r8, %rsi
je 0x6ec78
jmp 0x6ecb2
movq %rcx, %r15
movq %rdx, %rbx
movb (%r15), %cl
testb %cl, %cl
je 0x6eca7
cmpb $0x0, (%rbx)
jne 0x6ec08
jmp 0x6eca9
xorl %ecx, %ecx
xorl %eax, %eax
cmpb %cl, (%rbx)
setne %al
jmp 0x6ecb7
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
my_strcasecmp_mb:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, rdx
mov cl, [rsi]
test cl, cl
jz loc_6ECA7
cmp byte ptr [rbx], 0
jz loc_6ECA9
mov r15, rsi
mov r14, rdi
mov r12, [rdi+50h]
loc_6EC08:
mov edx, [r14+9Ch]
add rdx, r15
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, r15
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_6EC6C
mov edx, [r14+9Ch]
add rdx, rbx
mov rax, [r14+0B8h]
mov rdi, r14
mov rsi, rbx
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 1
jg short loc_6ECB7
movzx ecx, byte ptr [r15]
mov cl, [r12+rcx]
movzx edx, byte ptr [rbx]
cmp cl, [r12+rdx]
jnz short loc_6ECB7
inc r15
inc rbx
jmp short loc_6EC95
loc_6EC6C:
mov eax, eax
lea rcx, [r15+rax]
lea rdx, [rbx+rax]
xor esi, esi
loc_6EC78:
cmp eax, esi
jz short loc_6EC8F
mov dil, [r15+rsi]
lea r8, [rsi+1]
cmp dil, [rbx+rsi]
mov rsi, r8
jz short loc_6EC78
jmp short loc_6ECB2
loc_6EC8F:
mov r15, rcx
mov rbx, rdx
loc_6EC95:
mov cl, [r15]
test cl, cl
jz short loc_6ECA7
cmp byte ptr [rbx], 0
jnz loc_6EC08
jmp short loc_6ECA9
loc_6ECA7:
xor ecx, ecx
loc_6ECA9:
xor eax, eax
cmp [rbx], cl
setnz al
jmp short loc_6ECB7
loc_6ECB2:
mov eax, 1
loc_6ECB7:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
_BOOL8 my_strcasecmp_mb(long long a1, unsigned __int8 *a2, _BYTE *a3)
{
_BYTE *v3; // rbx
unsigned __int8 v4; // cl
unsigned __int8 *v5; // r15
long long v6; // r12
int v7; // eax
int v8; // ecx
_BOOL8 result; // rax
long long i; // rsi
v3 = a3;
v4 = *a2;
if ( *a2 )
{
if ( *a3 )
{
v5 = a2;
v6 = *(_QWORD *)(a1 + 80);
do
{
v7 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v5,
&v5[*(unsigned int *)(a1 + 156)]);
if ( v7 >= 2 )
{
for ( i = 0LL; v7 != (_DWORD)i; ++i )
{
if ( v5[i] != v3[i] )
return 1LL;
}
v5 += (unsigned int)v7;
v3 += (unsigned int)v7;
}
else
{
v8 = (*(long long ( **)(long long, _BYTE *, _BYTE *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v3,
&v3[*(unsigned int *)(a1 + 156)]);
result = 1LL;
if ( v8 > 1 || *(_BYTE *)(v6 + *v5) != *(_BYTE *)(v6 + (unsigned __int8)*v3) )
return result;
++v5;
++v3;
}
v4 = *v5;
if ( !*v5 )
goto LABEL_16;
}
while ( *v3 );
}
}
else
{
LABEL_16:
v4 = 0;
}
return *v3 != v4;
}
|
my_strcasecmp_mb:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,RDX
MOV CL,byte ptr [RSI]
TEST CL,CL
JZ 0x0016eca7
CMP byte ptr [RBX],0x0
JZ 0x0016eca9
MOV R15,RSI
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x50]
LAB_0016ec08:
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,R15
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0016ec6c
MOV EDX,dword ptr [R14 + 0x9c]
ADD RDX,RBX
MOV RAX,qword ptr [R14 + 0xb8]
MOV RDI,R14
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x1
JG 0x0016ecb7
MOVZX ECX,byte ptr [R15]
MOV CL,byte ptr [R12 + RCX*0x1]
MOVZX EDX,byte ptr [RBX]
CMP CL,byte ptr [R12 + RDX*0x1]
JNZ 0x0016ecb7
INC R15
INC RBX
JMP 0x0016ec95
LAB_0016ec6c:
MOV EAX,EAX
LEA RCX,[R15 + RAX*0x1]
LEA RDX,[RBX + RAX*0x1]
XOR ESI,ESI
LAB_0016ec78:
CMP EAX,ESI
JZ 0x0016ec8f
MOV DIL,byte ptr [R15 + RSI*0x1]
LEA R8,[RSI + 0x1]
CMP DIL,byte ptr [RBX + RSI*0x1]
MOV RSI,R8
JZ 0x0016ec78
JMP 0x0016ecb2
LAB_0016ec8f:
MOV R15,RCX
MOV RBX,RDX
LAB_0016ec95:
MOV CL,byte ptr [R15]
TEST CL,CL
JZ 0x0016eca7
CMP byte ptr [RBX],0x0
JNZ 0x0016ec08
JMP 0x0016eca9
LAB_0016eca7:
XOR ECX,ECX
LAB_0016eca9:
XOR EAX,EAX
CMP byte ptr [RBX],CL
SETNZ AL
JMP 0x0016ecb7
LAB_0016ecb2:
MOV EAX,0x1
LAB_0016ecb7:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
bool my_strcasecmp_mb(long param_1,byte *param_2,byte *param_3)
{
byte *pbVar1;
byte *pbVar2;
long lVar3;
uint uVar4;
int iVar5;
byte bVar6;
byte *pbVar7;
long lVar8;
byte *pbVar9;
bVar6 = *param_2;
if (bVar6 == 0) {
LAB_0016eca7:
bVar6 = 0;
}
else if (*param_3 != 0) {
lVar3 = *(long *)(param_1 + 0x50);
pbVar7 = param_3;
do {
uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,param_2,param_2 + *(uint *)(param_1 + 0x9c));
if ((int)uVar4 < 2) {
iVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))
(param_1,pbVar7,pbVar7 + *(uint *)(param_1 + 0x9c));
if (1 < iVar5) {
return true;
}
if (*(char *)(lVar3 + (ulong)*param_2) != *(char *)(lVar3 + (ulong)*pbVar7)) {
return true;
}
pbVar9 = param_2 + 1;
param_3 = pbVar7 + 1;
}
else {
pbVar9 = param_2 + uVar4;
param_3 = pbVar7 + uVar4;
lVar8 = 0;
while (uVar4 != (uint)lVar8) {
pbVar1 = param_2 + lVar8;
pbVar2 = pbVar7 + lVar8;
lVar8 = lVar8 + 1;
if (*pbVar1 != *pbVar2) {
return true;
}
}
}
bVar6 = *pbVar9;
if (bVar6 == 0) goto LAB_0016eca7;
pbVar7 = param_3;
param_2 = pbVar9;
} while (*param_3 != 0);
}
return *param_3 != bVar6;
}
|
|
13,331
|
dummy_fallback_auth_client
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
static int dummy_fallback_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql __attribute__((unused)))
{
char last_error[MYSQL_ERRMSG_SIZE];
unsigned int i, last_errno= ((MCPVIO_EXT *)vio)->mysql->net.last_errno;
if (last_errno)
{
strncpy(last_error, ((MCPVIO_EXT *)vio)->mysql->net.last_error,
sizeof(last_error) - 1);
last_error[sizeof(last_error) - 1]= 0;
}
/* safety-wise we only do 10 round-trips */
for (i=0; i < 10; i++)
{
uchar *pkt;
if (vio->read_packet(vio, &pkt) < 0)
break;
if (vio->write_packet(vio, 0, 0))
break;
}
if (last_errno)
{
MYSQL *mysql= ((MCPVIO_EXT *)vio)->mysql;
strncpy(mysql->net.last_error, last_error,
sizeof(mysql->net.last_error) - 1);
mysql->net.last_error[sizeof(mysql->net.last_error) - 1]= 0;
}
return CR_ERROR;
}
|
O0
|
c
|
dummy_fallback_auth_client:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x90(%rax), %eax
movl %eax, -0x228(%rbp)
cmpl $0x0, -0x228(%rbp)
je 0x4382d
leaq -0x210(%rbp), %rdi
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rsi
addq $0x97, %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movb $0x0, -0x11(%rbp)
movl $0x0, -0x224(%rbp)
cmpl $0xa, -0x224(%rbp)
jae 0x43895
movq -0x218(%rbp), %rax
movq (%rax), %rax
movq -0x218(%rbp), %rdi
leaq -0x230(%rbp), %rsi
callq *%rax
cmpl $0x0, %eax
jge 0x43861
jmp 0x43895
movq -0x218(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x218(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
xorl %edx, %edx
callq *%rax
cmpl $0x0, %eax
je 0x43882
jmp 0x43895
jmp 0x43884
movl -0x224(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x224(%rbp)
jmp 0x43837
cmpl $0x0, -0x228(%rbp)
je 0x438dd
movq -0x218(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rdi
addq $0x97, %rdi
leaq -0x210(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x238(%rbp), %rax
movb $0x0, 0x296(%rax)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x438fa
xorl %eax, %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x134b0
nop
|
dummy_fallback_auth_client:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rax, [rbp+var_218]
mov rax, [rax+18h]
mov eax, [rax+90h]
mov [rbp+var_228], eax
cmp [rbp+var_228], 0
jz short loc_4382D
lea rdi, [rbp+var_210]
mov rax, [rbp+var_218]
mov rsi, [rax+18h]
add rsi, 97h
mov edx, 1FFh
call _strncpy
mov [rbp+var_11], 0
loc_4382D:
mov [rbp+var_224], 0
loc_43837:
cmp [rbp+var_224], 0Ah
jnb short loc_43895
mov rax, [rbp+var_218]
mov rax, [rax]
mov rdi, [rbp+var_218]
lea rsi, [rbp+var_230]
call rax
cmp eax, 0
jge short loc_43861
jmp short loc_43895
loc_43861:
mov rax, [rbp+var_218]
mov rax, [rax+8]
mov rdi, [rbp+var_218]
xor ecx, ecx
mov esi, ecx
xor edx, edx
call rax
cmp eax, 0
jz short loc_43882
jmp short loc_43895
loc_43882:
jmp short $+2
loc_43884:
mov eax, [rbp+var_224]
add eax, 1
mov [rbp+var_224], eax
jmp short loc_43837
loc_43895:
cmp [rbp+var_228], 0
jz short loc_438DD
mov rax, [rbp+var_218]
mov rax, [rax+18h]
mov [rbp+var_238], rax
mov rdi, [rbp+var_238]
add rdi, 97h
lea rsi, [rbp+var_210]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_238]
mov byte ptr [rax+296h], 0
loc_438DD:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_438FA
xor eax, eax
add rsp, 240h
pop rbp
retn
loc_438FA:
call ___stack_chk_fail
|
long long dummy_fallback_auth_client(long long a1, long long a2)
{
long long v3; // [rsp+8h] [rbp-238h]
_BYTE v4[8]; // [rsp+10h] [rbp-230h] BYREF
int v5; // [rsp+18h] [rbp-228h]
unsigned int i; // [rsp+1Ch] [rbp-224h]
long long v7; // [rsp+20h] [rbp-220h]
long long v8; // [rsp+28h] [rbp-218h]
_BYTE v9[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v10; // [rsp+238h] [rbp-8h]
v10 = __readfsqword(0x28u);
v8 = a1;
v7 = a2;
v5 = *(_DWORD *)(*(_QWORD *)(a1 + 24) + 144LL);
if ( v5 )
{
strncpy(v9, *(_QWORD *)(v8 + 24) + 151LL, 511LL);
v9[511] = 0;
}
for ( i = 0;
i < 0xA
&& (*(int ( **)(long long, _BYTE *))v8)(v8, v4) >= 0
&& !(*(unsigned int ( **)(long long, _QWORD, _QWORD))(v8 + 8))(v8, 0LL, 0LL);
++i )
{
;
}
if ( v5 )
{
v3 = *(_QWORD *)(v8 + 24);
strncpy(v3 + 151, v9, 511LL);
*(_BYTE *)(v3 + 662) = 0;
}
return 0LL;
}
|
dummy_fallback_auth_client:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x18]
MOV EAX,dword ptr [RAX + 0x90]
MOV dword ptr [RBP + -0x228],EAX
CMP dword ptr [RBP + -0x228],0x0
JZ 0x0014382d
LEA RDI,[RBP + -0x210]
MOV RAX,qword ptr [RBP + -0x218]
MOV RSI,qword ptr [RAX + 0x18]
ADD RSI,0x97
MOV EDX,0x1ff
CALL 0x00113210
MOV byte ptr [RBP + -0x11],0x0
LAB_0014382d:
MOV dword ptr [RBP + -0x224],0x0
LAB_00143837:
CMP dword ptr [RBP + -0x224],0xa
JNC 0x00143895
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0x218]
LEA RSI,[RBP + -0x230]
CALL RAX
CMP EAX,0x0
JGE 0x00143861
JMP 0x00143895
LAB_00143861:
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + -0x218]
XOR ECX,ECX
MOV ESI,ECX
XOR EDX,EDX
CALL RAX
CMP EAX,0x0
JZ 0x00143882
JMP 0x00143895
LAB_00143882:
JMP 0x00143884
LAB_00143884:
MOV EAX,dword ptr [RBP + -0x224]
ADD EAX,0x1
MOV dword ptr [RBP + -0x224],EAX
JMP 0x00143837
LAB_00143895:
CMP dword ptr [RBP + -0x228],0x0
JZ 0x001438dd
MOV RAX,qword ptr [RBP + -0x218]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x238],RAX
MOV RDI,qword ptr [RBP + -0x238]
ADD RDI,0x97
LEA RSI,[RBP + -0x210]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x238]
MOV byte ptr [RAX + 0x296],0x0
LAB_001438dd:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001438fa
XOR EAX,EAX
ADD RSP,0x240
POP RBP
RET
LAB_001438fa:
CALL 0x001134b0
|
int8 dummy_fallback_auth_client(int8 *param_1,int8 param_2)
{
long lVar1;
int iVar2;
long in_FS_OFFSET;
int1 local_238 [8];
int local_230;
uint local_22c;
int8 local_228;
int8 *local_220;
char local_218 [511];
int1 local_19;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_230 = *(int *)(param_1[3] + 0x90);
local_228 = param_2;
local_220 = param_1;
if (local_230 != 0) {
strncpy(local_218,(char *)(param_1[3] + 0x97),0x1ff);
local_19 = 0;
}
local_22c = 0;
while (((local_22c < 10 && (iVar2 = (*(code *)*local_220)(local_220,local_238), -1 < iVar2)) &&
(iVar2 = (*(code *)local_220[1])(local_220,0,0), iVar2 == 0))) {
local_22c = local_22c + 1;
}
if (local_230 != 0) {
lVar1 = local_220[3];
strncpy((char *)(lVar1 + 0x97),local_218,0x1ff);
*(int1 *)(lVar1 + 0x296) = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return 0;
}
|
|
13,332
|
dummy_fallback_auth_client
|
eloqsql/libmariadb/plugins/auth/my_auth.c
|
static int dummy_fallback_auth_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql __attribute__((unused)))
{
char last_error[MYSQL_ERRMSG_SIZE];
unsigned int i, last_errno= ((MCPVIO_EXT *)vio)->mysql->net.last_errno;
if (last_errno)
{
strncpy(last_error, ((MCPVIO_EXT *)vio)->mysql->net.last_error,
sizeof(last_error) - 1);
last_error[sizeof(last_error) - 1]= 0;
}
/* safety-wise we only do 10 round-trips */
for (i=0; i < 10; i++)
{
uchar *pkt;
if (vio->read_packet(vio, &pkt) < 0)
break;
if (vio->write_packet(vio, 0, 0))
break;
}
if (last_errno)
{
MYSQL *mysql= ((MCPVIO_EXT *)vio)->mysql;
strncpy(mysql->net.last_error, last_error,
sizeof(mysql->net.last_error) - 1);
mysql->net.last_error[sizeof(mysql->net.last_error) - 1]= 0;
}
return CR_ERROR;
}
|
O3
|
c
|
dummy_fallback_auth_client:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp # imm = 0x220
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movq 0x18(%rdi), %rsi
movl 0x90(%rsi), %r15d
testl %r15d, %r15d
je 0x308a9
addq $0x97, %rsi
leaq -0x230(%rbp), %r14
movl $0x1ff, %edx # imm = 0x1FF
movq %r14, %rdi
callq 0x13220
movb $0x0, 0x1ff(%r14)
movl $0xa, %r12d
leaq -0x238(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rbx)
testl %eax, %eax
js 0x308d5
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *0x8(%rbx)
testl %eax, %eax
jne 0x308d5
decl %r12d
jne 0x308b6
testl %r15d, %r15d
je 0x308fd
movq 0x18(%rbx), %rbx
leaq 0x97(%rbx), %rdi
leaq -0x230(%rbp), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13220
movb $0x0, 0x296(%rbx)
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x3091e
xorl %eax, %eax
addq $0x220, %rsp # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
|
dummy_fallback_auth_client:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 220h
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
mov rsi, [rdi+18h]
mov r15d, [rsi+90h]
test r15d, r15d
jz short loc_308A9
add rsi, 97h
lea r14, [rbp+var_230]
mov edx, 1FFh
mov rdi, r14
call _strncpy
mov byte ptr [r14+1FFh], 0
loc_308A9:
mov r12d, 0Ah
lea r14, [rbp+var_238]
loc_308B6:
mov rdi, rbx
mov rsi, r14
call qword ptr [rbx]
test eax, eax
js short loc_308D5
mov rdi, rbx
xor esi, esi
xor edx, edx
call qword ptr [rbx+8]
test eax, eax
jnz short loc_308D5
dec r12d
jnz short loc_308B6
loc_308D5:
test r15d, r15d
jz short loc_308FD
mov rbx, [rbx+18h]
lea rdi, [rbx+97h]
lea rsi, [rbp+var_230]
mov edx, 1FFh
call _strncpy
mov byte ptr [rbx+296h], 0
loc_308FD:
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_3091E
xor eax, eax
add rsp, 220h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_3091E:
call ___stack_chk_fail
|
long long dummy_fallback_auth_client(long long a1)
{
long long v1; // rsi
int v2; // r15d
int v3; // r12d
long long v4; // rbx
_BYTE v6[8]; // [rsp+8h] [rbp-238h] BYREF
_BYTE v7[520]; // [rsp+10h] [rbp-230h] BYREF
unsigned long long v8; // [rsp+218h] [rbp-28h]
v8 = __readfsqword(0x28u);
v1 = *(_QWORD *)(a1 + 24);
v2 = *(_DWORD *)(v1 + 144);
if ( v2 )
{
strncpy(v7, v1 + 151, 511LL);
v7[511] = 0;
}
v3 = 10;
do
{
if ( (*(int ( **)(long long, _BYTE *))a1)(a1, v6) < 0 )
break;
if ( (*(unsigned int ( **)(long long, _QWORD, _QWORD))(a1 + 8))(a1, 0LL, 0LL) )
break;
--v3;
}
while ( v3 );
if ( v2 )
{
v4 = *(_QWORD *)(a1 + 24);
strncpy(v4 + 151, v7, 511LL);
*(_BYTE *)(v4 + 662) = 0;
}
return 0LL;
}
|
dummy_fallback_auth_client:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x220
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV RSI,qword ptr [RDI + 0x18]
MOV R15D,dword ptr [RSI + 0x90]
TEST R15D,R15D
JZ 0x001308a9
ADD RSI,0x97
LEA R14,[RBP + -0x230]
MOV EDX,0x1ff
MOV RDI,R14
CALL 0x00113220
MOV byte ptr [R14 + 0x1ff],0x0
LAB_001308a9:
MOV R12D,0xa
LEA R14,[RBP + -0x238]
LAB_001308b6:
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RBX]
TEST EAX,EAX
JS 0x001308d5
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL qword ptr [RBX + 0x8]
TEST EAX,EAX
JNZ 0x001308d5
DEC R12D
JNZ 0x001308b6
LAB_001308d5:
TEST R15D,R15D
JZ 0x001308fd
MOV RBX,qword ptr [RBX + 0x18]
LEA RDI,[RBX + 0x97]
LEA RSI,[RBP + -0x230]
MOV EDX,0x1ff
CALL 0x00113220
MOV byte ptr [RBX + 0x296],0x0
LAB_001308fd:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x0013091e
XOR EAX,EAX
ADD RSP,0x220
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0013091e:
CALL 0x00113500
|
int8 dummy_fallback_auth_client(int8 *param_1)
{
int iVar1;
long lVar2;
int iVar3;
int iVar4;
long in_FS_OFFSET;
int1 local_240 [8];
char local_238 [511];
int1 local_39;
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = *(int *)(param_1[3] + 0x90);
if (iVar1 != 0) {
strncpy(local_238,(char *)(param_1[3] + 0x97),0x1ff);
local_39 = 0;
}
iVar4 = 10;
while( true ) {
iVar3 = (*(code *)*param_1)(param_1,local_240);
if (iVar3 < 0) break;
iVar3 = (*(code *)param_1[1])(param_1,0,0);
if ((iVar3 != 0) || (iVar4 = iVar4 + -1, iVar4 == 0)) break;
}
if (iVar1 != 0) {
lVar2 = param_1[3];
strncpy((char *)(lVar2 + 0x97),local_238,0x1ff);
*(int1 *)(lVar2 + 0x296) = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return 0;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
|
|
13,333
|
google::protobuf::compiler::java::SharedCodeGenerator::Generate(google::protobuf::compiler::GeneratorContext*, 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>>>>*, 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>>>>*)
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/java/shared_code_generator.cc
|
void SharedCodeGenerator::Generate(
GeneratorContext* context, std::vector<std::string>* file_list,
std::vector<std::string>* annotation_file_list) {
std::string java_package = FileJavaPackage(file_);
std::string package_dir = JavaPackageToDir(java_package);
if (HasDescriptorMethods(file_, options_.enforce_lite)) {
// Generate descriptors.
std::string classname = name_resolver_->GetDescriptorClassName(file_);
std::string filename = package_dir + classname + ".java";
file_list->push_back(filename);
std::unique_ptr<io::ZeroCopyOutputStream> output(context->Open(filename));
GeneratedCodeInfo annotations;
io::AnnotationProtoCollector<GeneratedCodeInfo> annotation_collector(
&annotations);
std::unique_ptr<io::Printer> printer(
new io::Printer(output.get(), '$',
options_.annotate_code ? &annotation_collector : NULL));
std::string info_relative_path = classname + ".java.pb.meta";
std::string info_full_path = filename + ".pb.meta";
printer->Print(
"// Generated by the protocol buffer compiler. DO NOT EDIT!\n"
"// source: $filename$\n"
"\n",
"filename", file_->name());
if (!java_package.empty()) {
printer->Print(
"package $package$;\n"
"\n",
"package", java_package);
}
PrintGeneratedAnnotation(printer.get(), '$',
options_.annotate_code ? info_relative_path : "");
printer->Print(
"public final class $classname$ {\n"
" public static com.google.protobuf.Descriptors.FileDescriptor\n"
" descriptor;\n"
" static {\n",
"classname", classname);
printer->Annotate("classname", file_->name());
printer->Indent();
printer->Indent();
GenerateDescriptors(printer.get());
printer->Outdent();
printer->Outdent();
printer->Print(
" }\n"
"}\n");
if (options_.annotate_code) {
std::unique_ptr<io::ZeroCopyOutputStream> info_output(
context->Open(info_full_path));
annotations.SerializeToZeroCopyStream(info_output.get());
annotation_file_list->push_back(info_full_path);
}
printer.reset();
output.reset();
}
}
|
O3
|
cpp
|
google::protobuf::compiler::java::SharedCodeGenerator::Generate(google::protobuf::compiler::GeneratorContext*, 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>>>>*, 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>>>>*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq 0x8(%rdi), %rsi
leaq 0x108(%rsp), %r13
movq %r13, %rdi
callq 0x43a5a
leaq 0xf8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x2586a
leaq 0x128(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x43a6a
movq 0xe8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xb88aa
callq 0x1f4a0
cmpb $0x0, 0x13(%r12)
jne 0xb8c11
movq (%r12), %rsi
movq 0x8(%r12), %rdx
leaq 0x68(%rsp), %rdi
callq 0x478f2
leaq 0xb8(%rsp), %rdi
leaq 0x128(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x2dc10
leaq 0xe8db2(%rip), %rsi # 0x1a169c
leaq 0xb8(%rsp), %rdi
callq 0x1f8e0
leaq 0x10(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb891d
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0xb8923
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8951
callq 0x1f4a0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x2dd04
movq (%r15), %rax
movq %rsp, %rsi
movq %r15, %rdi
callq *0x10(%rax)
movq %rax, %rbx
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x154f3e
leaq 0x1bdbea(%rip), %rax # 0x276570
movq %rax, 0xa8(%rsp)
movq %r13, 0xb0(%rsp)
movl $0xa0, %edi
callq 0x1f4f0
movq %rax, %r13
xorl %eax, %eax
cmpb $0x0, 0x14(%r12)
leaq 0xa8(%rsp), %rcx
cmoveq %rax, %rcx
movq %r13, %rdi
movq %rbx, %rsi
movl $0x24, %edx
callq 0x16ca36
movq %r13, 0x60(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x2586a
leaq 0x10197e(%rip), %rsi # 0x1ba371
leaq 0x40(%rsp), %rdi
callq 0x1f8e0
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x2586a
leaq 0x101953(%rip), %rsi # 0x1ba376
leaq 0x20(%rsp), %rdi
callq 0x1f8e0
movq 0x8(%r12), %rax
movq 0x8(%rax), %rcx
leaq 0x1018cb(%rip), %rsi # 0x1ba308
leaq 0xe8c6a(%rip), %rdx # 0x1a16ae
movq %r13, %rdi
callq 0x42e5c
cmpq $0x0, 0x110(%rsp)
je 0xb8a75
leaq 0x1018fe(%rip), %rsi # 0x1ba35c
leaq 0x101f09(%rip), %rdx # 0x1ba96e
leaq 0x108(%rsp), %rcx
movq %r13, %rdi
callq 0x751ae
movb 0x14(%r12), %al
leaq 0x98(%rsp), %rbp
movq %rbp, -0x10(%rbp)
cmpb $0x1, %al
jne 0xb8aa6
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x2586a
jmp 0xb8abd
leaq 0xe1afc(%rip), %rdx # 0x19a5a9
leaq 0x88(%rsp), %rdi
movq %rdx, %rsi
callq 0x250b2
leaq 0x88(%rsp), %rdx
movq %r13, %rdi
movl $0x24, %esi
callq 0x43014
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xb8ae4
callq 0x1f4a0
leaq 0x10bc28(%rip), %rsi # 0x1c4713
leaq 0xed9ac(%rip), %rdx # 0x1a649e
leaq 0x68(%rsp), %rcx
movq %r13, %rdi
callq 0x2e458
movq 0x8(%r12), %rax
movq 0x8(%rax), %rcx
leaq 0xed98f(%rip), %rdx # 0x1a649e
movq %r13, %rdi
movq %rdx, %rsi
callq 0xa9012
movq %r13, %rdi
callq 0x16d126
movq %r13, %rdi
callq 0x16d126
movq %r12, %rdi
movq %r13, %rsi
callq 0xb8dc6
movq %r13, %rdi
callq 0x16d136
movq %r13, %rdi
callq 0x16d136
leaq 0xe88a9(%rip), %rsi # 0x1a13f5
movq %r13, %rdi
callq 0x2e40a
cmpb $0x1, 0x14(%r12)
jne 0xb8b98
movq (%r15), %rax
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq *0x10(%rax)
movq %rax, %r15
leaq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0xfd8d4
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x2dd04
testq %r15, %r15
je 0xb8b98
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
movq %r13, %rdi
callq 0x16ca88
movq %r13, %rdi
callq 0x1f4a0
testq %rbx, %rbx
je 0xb8bb6
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xb8bca
callq 0x1f4a0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xb8bde
callq 0x1f4a0
leaq 0xb8(%rsp), %rdi
callq 0x154ffc
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xb8bfe
callq 0x1f4a0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8c11
callq 0x1f4a0
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8c27
callq 0x1f4a0
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8c3d
callq 0x1f4a0
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb8d1c
jmp 0xb8d1c
jmp 0xb8d1c
movq %rax, %r14
testq %r15, %r15
je 0xb8d1f
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
jmp 0xb8d1f
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0xb8d1f
callq 0x1f4a0
jmp 0xb8d1f
jmp 0xb8d1c
jmp 0xb8c9d
movq %rax, %r14
jmp 0xb8d33
movq %rax, %r14
jmp 0xb8d47
movq %rax, %r14
movq %r13, %rdi
callq 0x1f4a0
jmp 0xb8d51
movq %rax, %r14
jmp 0xb8d51
movq %rax, %r14
jmp 0xb8d5e
jmp 0xb8ccf
movq %rax, %r14
jmp 0xb8d6c
movq %rax, %r14
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0xb8d75
movq %rax, %r14
jmp 0xb8d7f
movq %rax, %r14
jmp 0xb8d92
movq %rax, %r14
movq 0xe8(%rsp), %rdi
cmpq %rbp, %rdi
jne 0xb8da3
jmp 0xb8da8
movq %rax, %r14
jmp 0xb8da8
movq %rax, %r14
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0xb8d33
callq 0x1f4a0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xb8d47
callq 0x1f4a0
leaq 0x60(%rsp), %rdi
callq 0xb93c2
leaq 0xb8(%rsp), %rdi
callq 0x154ffc
testq %rbx, %rbx
je 0xb8d6c
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0xb8d7f
callq 0x1f4a0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8d92
callq 0x1f4a0
leaq 0x138(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8da8
callq 0x1f4a0
leaq 0x118(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb8dbe
callq 0x1f4a0
movq %r14, %rdi
callq 0x1f860
|
_ZN6google8protobuf8compiler4java19SharedCodeGenerator8GenerateEPNS1_16GeneratorContextEPSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISC_EESF_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov r14, rcx
mov rbx, rdx
mov r15, rsi
mov r12, rdi
mov rsi, [rdi+8]
lea r13, [rsp+178h+var_70]
mov rdi, r13
call _ZN6google8protobuf8compiler4java15FileJavaPackageB5cxx11EPKNS0_14FileDescriptorE; google::protobuf::compiler::java::FileJavaPackage(google::protobuf::FileDescriptor const*)
lea rbp, [rsp+178h+var_80]
mov [rbp-10h], rbp
mov rsi, [r13+0]
mov rdx, [r13+8]
add rdx, rsi
lea rdi, [rsp+178h+var_90]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdi, [rsp+178h+var_50]; int
lea rsi, [rsp+178h+var_90]; int
call _ZN6google8protobuf8compiler4java16JavaPackageToDirENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::java::JavaPackageToDir(std::string)
mov rdi, [rsp+178h+var_90]; void *
cmp rdi, rbp
jz short loc_B88AA
call __ZdlPv; operator delete(void *)
loc_B88AA:
cmp byte ptr [r12+13h], 0
jnz loc_B8C11
mov rsi, [r12]
mov rdx, [r12+8]
lea rdi, [rsp+178h+var_110]
call _ZN6google8protobuf8compiler4java17ClassNameResolver22GetDescriptorClassNameB5cxx11EPKNS0_14FileDescriptorE; google::protobuf::compiler::java::ClassNameResolver::GetDescriptorClassName(google::protobuf::FileDescriptor const*)
lea rdi, [rsp+178h+var_C0]
lea rsi, [rsp+178h+var_50]
lea rdx, [rsp+178h+var_110]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_SA_; std::operator+<char>(std::string const&,std::string const&)
lea rsi, aJava; ".java"
lea rdi, [rsp+178h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rsi, [rsp+178h+var_168]
mov [rsi-10h], rsi
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_B891D
mov [rsp+178h+var_178], rdx
mov rdx, [rcx]
mov [rsp+178h+var_168], rdx
jmp short loc_B8923
loc_B891D:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi], xmm0
loc_B8923:
mov rdx, [rax+8]
mov [rsp+178h+var_170], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
lea rax, [rsp+178h+var_B0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8951
call __ZdlPv; operator delete(void *)
loc_B8951:
mov rsi, rsp
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
mov rax, [r15]
mov rsi, rsp
mov rdi, r15
call qword ptr [rax+10h]
mov rbx, rax
lea r13, [rsp+178h+var_C0]
mov rdi, r13
xor esi, esi
xor edx, edx
call _ZN6google8protobuf17GeneratedCodeInfoC2EPNS0_5ArenaEb; google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo(google::protobuf::Arena *,bool)
lea rax, off_276570
mov [rsp+178h+var_D0], rax
mov [rsp+178h+var_C8], r13
mov edi, 0A0h; unsigned __int64
call __Znwm; operator new(ulong)
mov r13, rax
xor eax, eax
cmp byte ptr [r12+14h], 0
lea rcx, [rsp+178h+var_D0]
cmovz rcx, rax; google::protobuf::io::AnnotationCollector *
mov rdi, r13; this
mov rsi, rbx; google::protobuf::io::ZeroCopyOutputStream *
mov edx, 24h ; '$'; char
call _ZN6google8protobuf2io7PrinterC2EPNS1_20ZeroCopyOutputStreamEcPNS1_19AnnotationCollectorE; google::protobuf::io::Printer::Printer(google::protobuf::io::ZeroCopyOutputStream *,char,google::protobuf::io::AnnotationCollector *)
mov [rsp+178h+var_118], r13
lea rax, [rsp+178h+var_128]
mov [rax-10h], rax
mov rsi, [rsp+178h+var_110]
mov rdx, [rsp+178h+var_108]
add rdx, rsi
lea rdi, [rsp+178h+var_138]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aJavaPbMeta; ".java.pb.meta"
lea rdi, [rsp+178h+var_138]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rax, [rsp+178h+var_148]
mov [rax-10h], rax
mov rsi, [rsp+178h+var_178]
mov rdx, [rsp+178h+var_170]
add rdx, rsi
lea rdi, [rsp+178h+var_158]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rsi, aJavaPbMeta+5; ".pb.meta"
lea rdi, [rsp+178h+var_158]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rax, [r12+8]
mov rcx, [rax+8]
lea rsi, aGeneratedByThe_2; "// Generated by the protocol buffer com"...
lea rdx, aFilename_0; "filename"
mov rdi, r13
call _ZN6google8protobuf2io7Printer5PrintIJA9_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [9],std::string>(char const*,char [9],std::string const&)
cmp [rsp+178h+var_68], 0
jz short loc_B8A75
lea rsi, aPackagePackage; "package $package$;\n\n"
lea rdx, aImmutablePacka+0Ah; "package"
lea rcx, [rsp+178h+var_70]
mov rdi, r13
call _ZN6google8protobuf2io7Printer5PrintIJA8_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [8],std::string>(char const*,char [8],std::string const&)
loc_B8A75:
mov al, [r12+14h]
lea rbp, [rsp+178h+var_E0]
mov [rbp-10h], rbp
cmp al, 1
jnz short loc_B8AA6
mov rsi, [rsp+178h+var_138]
mov rdx, [rsp+178h+var_130]
add rdx, rsi
lea rdi, [rsp+178h+var_F0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
jmp short loc_B8ABD
loc_B8AA6:
lea rdx, asc_19A5A7+2; ""
lea rdi, [rsp+178h+var_F0]
mov rsi, rdx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
loc_B8ABD:
lea rdx, [rsp+178h+var_F0]
mov rdi, r13
mov esi, 24h ; '$'
call _ZN6google8protobuf8compiler4java24PrintGeneratedAnnotationEPNS0_2io7PrinterEcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::compiler::java::PrintGeneratedAnnotation(google::protobuf::io::Printer *,char,std::string const&)
mov rdi, [rsp+178h+var_F0]; void *
cmp rdi, rbp
jz short loc_B8AE4
call __ZdlPv; operator delete(void *)
loc_B8AE4:
lea rsi, aPublicFinalCla; "public final class $classname$ {\n pub"...
lea rdx, aMetadataClassn+9; "classname"
lea rcx, [rsp+178h+var_110]
mov rdi, r13
call _ZN6google8protobuf2io7Printer5PrintIJA10_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvPKcDpRKT_; google::protobuf::io::Printer::Print<char [10],std::string>(char const*,char [10],std::string const&)
mov rax, [r12+8]
mov rcx, [rax+8]
lea rdx, aMetadataClassn+9; "classname"
mov rdi, r13
mov rsi, rdx
call _ZN6google8protobuf2io7Printer8AnnotateEPKcS4_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::io::Printer::Annotate(char const*,char const*,std::string const&)
mov rdi, r13; this
call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void)
mov rdi, r13; this
call _ZN6google8protobuf2io7Printer6IndentEv; google::protobuf::io::Printer::Indent(void)
mov rdi, r12; this
mov rsi, r13; google::protobuf::io::Printer *
call _ZN6google8protobuf8compiler4java19SharedCodeGenerator19GenerateDescriptorsEPNS0_2io7PrinterE; google::protobuf::compiler::java::SharedCodeGenerator::GenerateDescriptors(google::protobuf::io::Printer *)
mov rdi, r13; this
call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void)
mov rdi, r13; this
call _ZN6google8protobuf2io7Printer7OutdentEv; google::protobuf::io::Printer::Outdent(void)
lea rsi, aAccessLevelTyp_4+12Ah; " }\n}\n"
mov rdi, r13
call _ZN6google8protobuf2io7Printer5PrintIJEEEvPKcDpRKT_
cmp byte ptr [r12+14h], 1
jnz short loc_B8B98
mov rax, [r15]
lea rsi, [rsp+178h+var_158]
mov rdi, r15
call qword ptr [rax+10h]
mov r15, rax
lea rdi, [rsp+178h+var_C0]; this
mov rsi, rax; google::protobuf::io::ZeroCopyOutputStream *
call _ZNK6google8protobuf11MessageLite25SerializeToZeroCopyStreamEPNS0_2io20ZeroCopyOutputStreamE; google::protobuf::MessageLite::SerializeToZeroCopyStream(google::protobuf::io::ZeroCopyOutputStream *)
lea rsi, [rsp+178h+var_158]
mov rdi, r14
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backERKS5_; std::vector<std::string>::push_back(std::string const&)
test r15, r15
jz short loc_B8B98
mov rax, [r15]
mov rdi, r15
call qword ptr [rax+8]
loc_B8B98:
mov rdi, r13; this
call _ZN6google8protobuf2io7PrinterD2Ev; google::protobuf::io::Printer::~Printer()
mov rdi, r13; void *
call __ZdlPv; operator delete(void *)
test rbx, rbx
jz short loc_B8BB6
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
loc_B8BB6:
mov rdi, [rsp+178h+var_158]; void *
lea rax, [rsp+178h+var_148]
cmp rdi, rax
jz short loc_B8BCA
call __ZdlPv; operator delete(void *)
loc_B8BCA:
mov rdi, [rsp+178h+var_138]; void *
lea rax, [rsp+178h+var_128]
cmp rdi, rax
jz short loc_B8BDE
call __ZdlPv; operator delete(void *)
loc_B8BDE:
lea rdi, [rsp+178h+var_C0]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
mov rdi, [rsp+178h+var_178]; void *
lea rax, [rsp+178h+var_168]
cmp rdi, rax
jz short loc_B8BFE
call __ZdlPv; operator delete(void *)
loc_B8BFE:
lea rax, [rsp+178h+var_100]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8C11
call __ZdlPv; operator delete(void *)
loc_B8C11:
lea rax, [rsp+178h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8C27
call __ZdlPv; operator delete(void *)
loc_B8C27:
lea rax, [rsp+178h+var_60]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8C3D
call __ZdlPv; operator delete(void *)
loc_B8C3D:
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp loc_B8D1C
jmp loc_B8D1C
jmp loc_B8D1C
mov r14, rax
test r15, r15
jz loc_B8D1F
mov rax, [r15]
mov rdi, r15
call qword ptr [rax+8]
jmp loc_B8D1F
mov r14, rax
mov rdi, [rsp+arg_80]; void *
cmp rdi, rbp
jz loc_B8D1F
call __ZdlPv; operator delete(void *)
jmp loc_B8D1F
jmp loc_B8D1C
jmp short $+2
loc_B8C9D:
mov r14, rax
jmp loc_B8D33
mov r14, rax
jmp loc_B8D47
mov r14, rax
mov rdi, r13; void *
call __ZdlPv; operator delete(void *)
jmp loc_B8D51
mov r14, rax
jmp loc_B8D51
mov r14, rax
jmp loc_B8D5E
jmp short $+2
loc_B8CCF:
mov r14, rax
jmp loc_B8D6C
mov r14, rax
lea rax, [rsp+arg_C0]
mov rdi, [rax-10h]
jmp loc_B8D75
mov r14, rax
jmp loc_B8D7F
mov r14, rax
jmp loc_B8D92
mov r14, rax
mov rdi, [rsp+arg_E0]
cmp rdi, rbp
jnz loc_B8DA3
jmp loc_B8DA8
mov r14, rax
jmp loc_B8DA8
loc_B8D1C:
mov r14, rax
loc_B8D1F:
mov rdi, [rsp+arg_18]; void *
lea rax, [rsp+arg_28]
cmp rdi, rax
jz short loc_B8D33
call __ZdlPv; operator delete(void *)
loc_B8D33:
mov rdi, [rsp+arg_38]; void *
lea rax, [rsp+arg_48]
cmp rdi, rax
jz short loc_B8D47
call __ZdlPv; operator delete(void *)
loc_B8D47:
lea rdi, [rsp+arg_58]
call _ZNSt10unique_ptrIN6google8protobuf2io7PrinterESt14default_deleteIS3_EED2Ev; std::unique_ptr<google::protobuf::io::Printer>::~unique_ptr()
loc_B8D51:
lea rdi, [rsp+arg_B0]; this
call _ZN6google8protobuf17GeneratedCodeInfoD2Ev; google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo()
loc_B8D5E:
test rbx, rbx
jz short loc_B8D6C
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+8]
loc_B8D6C:
mov rdi, [rsp+0]; void *
lea rax, [rsp+arg_8]
loc_B8D75:
cmp rdi, rax
jz short loc_B8D7F
call __ZdlPv; operator delete(void *)
loc_B8D7F:
lea rax, [rsp+arg_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8D92
call __ZdlPv; operator delete(void *)
loc_B8D92:
lea rax, [rsp+arg_130]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8DA8
loc_B8DA3:
call __ZdlPv; operator delete(void *)
loc_B8DA8:
lea rax, [rsp+arg_110]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B8DBE
call __ZdlPv; operator delete(void *)
loc_B8DBE:
mov rdi, r14
call __Unwind_Resume
|
void google::protobuf::compiler::java::SharedCodeGenerator::Generate(
long long a1,
long long a2,
long long a3,
long long a4)
{
long long v6; // rax
__int128 *v7; // rcx
google::protobuf::io::ZeroCopyOutputStream *v8; // rbx
google::protobuf::io::Printer *v9; // r13
google::protobuf::io::AnnotationCollector *v10; // rcx
char v11; // al
google::protobuf::io::ZeroCopyOutputStream *v12; // r15
void *v13; // [rsp+0h] [rbp-178h] BYREF
long long v14; // [rsp+8h] [rbp-170h]
__int128 v15; // [rsp+10h] [rbp-168h] BYREF
void *v16[2]; // [rsp+20h] [rbp-158h] BYREF
_BYTE v17[16]; // [rsp+30h] [rbp-148h] BYREF
void *v18[2]; // [rsp+40h] [rbp-138h] BYREF
_BYTE v19[16]; // [rsp+50h] [rbp-128h] BYREF
google::protobuf::io::Printer *v20; // [rsp+60h] [rbp-118h]
void *v21[2]; // [rsp+68h] [rbp-110h] BYREF
char v22; // [rsp+78h] [rbp-100h] BYREF
void *v23[2]; // [rsp+88h] [rbp-F0h] BYREF
_BYTE v24[16]; // [rsp+98h] [rbp-E0h] BYREF
_QWORD v25[2]; // [rsp+A8h] [rbp-D0h] BYREF
void *v26[2]; // [rsp+B8h] [rbp-C0h] BYREF
char v27; // [rsp+C8h] [rbp-B0h] BYREF
void *v28[2]; // [rsp+E8h] [rbp-90h] BYREF
_BYTE v29[16]; // [rsp+F8h] [rbp-80h] BYREF
char *v30; // [rsp+108h] [rbp-70h] BYREF
long long v31; // [rsp+110h] [rbp-68h]
char v32; // [rsp+118h] [rbp-60h] BYREF
int v33[4]; // [rsp+128h] [rbp-50h] BYREF
char v34; // [rsp+138h] [rbp-40h] BYREF
google::protobuf::compiler::java::FileJavaPackage[abi:cxx11]((long long)&v30, *(_QWORD *)(a1 + 8));
v28[0] = v29;
std::string::_M_construct<char *>((long long)v28, v30, (long long)&v30[v31]);
google::protobuf::compiler::java::JavaPackageToDir((long long)v33, (long long)v28);
if ( v28[0] != v29 )
operator delete(v28[0]);
if ( !*(_BYTE *)(a1 + 19) )
{
google::protobuf::compiler::java::ClassNameResolver::GetDescriptorClassName[abi:cxx11](
v21,
*(_QWORD *)a1,
*(_QWORD *)(a1 + 8));
std::operator+<char>(v26, (long long)v33, v21);
v6 = std::string::append(v26, ".java");
v13 = &v15;
v7 = (__int128 *)(v6 + 16);
if ( *(_QWORD *)v6 == v6 + 16 )
{
v15 = *v7;
}
else
{
v13 = *(void **)v6;
*(_QWORD *)&v15 = *(_QWORD *)v7;
}
v14 = *(_QWORD *)(v6 + 8);
*(_QWORD *)v6 = v7;
*(_QWORD *)(v6 + 8) = 0LL;
*(_BYTE *)(v6 + 16) = 0;
if ( v26[0] != &v27 )
operator delete(v26[0]);
std::vector<std::string>::push_back(a3, (long long)&v13);
v8 = (google::protobuf::io::ZeroCopyOutputStream *)(*(long long ( **)(long long, void **))(*(_QWORD *)a2 + 16LL))(
a2,
&v13);
google::protobuf::GeneratedCodeInfo::GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v26, 0LL, 0);
v25[0] = &off_276570;
v25[1] = v26;
v9 = (google::protobuf::io::Printer *)operator new(0xA0uLL);
v10 = (google::protobuf::io::AnnotationCollector *)v25;
if ( !*(_BYTE *)(a1 + 20) )
v10 = 0LL;
google::protobuf::io::Printer::Printer(v9, v8, 36, v10);
v20 = v9;
v18[0] = v19;
std::string::_M_construct<char *>((long long)v18, (_BYTE *)v21[0], (long long)v21[0] + (unsigned long long)v21[1]);
std::string::append(v18, ".java.pb.meta");
v16[0] = v17;
std::string::_M_construct<char *>((long long)v16, v13, (long long)v13 + v14);
std::string::append(v16, ".pb.meta");
google::protobuf::io::Printer::Print<char [9],std::string>(v9);
if ( v31 )
google::protobuf::io::Printer::Print<char [8],std::string>(v9);
v11 = *(_BYTE *)(a1 + 20);
v23[0] = v24;
if ( v11 == 1 )
std::string::_M_construct<char *>((long long)v23, (_BYTE *)v18[0], (long long)v18[0] + (unsigned long long)v18[1]);
else
std::string::_M_construct<char const*>((long long)v23, "", (long long)"");
google::protobuf::compiler::java::PrintGeneratedAnnotation((long long)v9, 36, (long long)v23);
if ( v23[0] != v24 )
operator delete(v23[0]);
google::protobuf::io::Printer::Print<char [10],std::string>(v9);
google::protobuf::io::Printer::Annotate(v9, "classname", "classname", *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL));
google::protobuf::io::Printer::Indent(v9);
google::protobuf::io::Printer::Indent(v9);
google::protobuf::compiler::java::SharedCodeGenerator::GenerateDescriptors(
(google::protobuf::compiler::java::SharedCodeGenerator *)a1,
v9);
google::protobuf::io::Printer::Outdent(v9);
google::protobuf::io::Printer::Outdent(v9);
google::protobuf::io::Printer::Print<>(v9, " }\n}\n");
if ( *(_BYTE *)(a1 + 20) == 1 )
{
v12 = (google::protobuf::io::ZeroCopyOutputStream *)(*(long long ( **)(long long, void **))(*(_QWORD *)a2 + 16LL))(
a2,
v16);
google::protobuf::MessageLite::SerializeToZeroCopyStream((google::protobuf::MessageLite *)v26, v12);
std::vector<std::string>::push_back(a4, (long long)v16);
if ( v12 )
(*(void ( **)(google::protobuf::io::ZeroCopyOutputStream *))(*(_QWORD *)v12 + 8LL))(v12);
}
google::protobuf::io::Printer::~Printer(v9);
operator delete(v9);
if ( v8 )
(*(void ( **)(google::protobuf::io::ZeroCopyOutputStream *))(*(_QWORD *)v8 + 8LL))(v8);
if ( v16[0] != v17 )
operator delete(v16[0]);
if ( v18[0] != v19 )
operator delete(v18[0]);
google::protobuf::GeneratedCodeInfo::~GeneratedCodeInfo((google::protobuf::GeneratedCodeInfo *)v26);
if ( v13 != &v15 )
operator delete(v13);
if ( v21[0] != &v22 )
operator delete(v21[0]);
}
if ( *(char **)v33 != &v34 )
operator delete(*(void **)v33);
if ( v30 != &v32 )
operator delete(v30);
}
|
Generate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV R14,RCX
MOV RBX,RDX
MOV R15,RSI
MOV R12,RDI
MOV RSI,qword ptr [RDI + 0x8]
LEA R13,[RSP + 0x108]
MOV RDI,R13
CALL 0x00143a5a
LEA RBP,[RSP + 0xf8]
MOV qword ptr [RBP + -0x10],RBP
MOV RSI,qword ptr [R13]
MOV RDX,qword ptr [R13 + 0x8]
ADD RDX,RSI
LAB_001b8876:
LEA RDI,[RSP + 0xe8]
CALL 0x0012586a
LAB_001b8883:
LEA RDI,[RSP + 0x128]
LEA RSI,[RSP + 0xe8]
CALL 0x00143a6a
MOV RDI,qword ptr [RSP + 0xe8]
CMP RDI,RBP
JZ 0x001b88aa
CALL 0x0011f4a0
LAB_001b88aa:
CMP byte ptr [R12 + 0x13],0x0
JNZ 0x001b8c11
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
LAB_001b88bf:
LEA RDI,[RSP + 0x68]
CALL 0x001478f2
LAB_001b88c9:
LEA RDI,[RSP + 0xb8]
LEA RSI,[RSP + 0x128]
LEA RDX,[RSP + 0x68]
CALL 0x0012dc10
LAB_001b88e3:
LEA RSI,[0x2a169c]
LEA RDI,[RSP + 0xb8]
CALL 0x0011f8e0
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI + -0x10],RSI
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x001b891d
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x001b8923
LAB_001b891d:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI],XMM0
LAB_001b8923:
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
LEA RAX,[RSP + 0xc8]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b8951
CALL 0x0011f4a0
LAB_001b8951:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0012dd04
MOV RAX,qword ptr [R15]
LAB_001b895f:
MOV RSI,RSP
MOV RDI,R15
CALL qword ptr [RAX + 0x10]
LAB_001b8968:
MOV RBX,RAX
LEA R13,[RSP + 0xb8]
MOV RDI,R13
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00254f3e
LEA RAX,[0x376570]
MOV qword ptr [RSP + 0xa8],RAX
MOV qword ptr [RSP + 0xb0],R13
LAB_001b8996:
MOV EDI,0xa0
CALL 0x0011f4f0
MOV R13,RAX
XOR EAX,EAX
CMP byte ptr [R12 + 0x14],0x0
LEA RCX,[RSP + 0xa8]
CMOVZ RCX,RAX
LAB_001b89b7:
MOV RDI,R13
MOV RSI,RBX
MOV EDX,0x24
CALL 0x0026ca36
MOV qword ptr [RSP + 0x60],R13
LEA RAX,[RSP + 0x50]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
ADD RDX,RSI
LAB_001b89e2:
LEA RDI,[RSP + 0x40]
CALL 0x0012586a
LAB_001b89ec:
LEA RSI,[0x2ba371]
LEA RDI,[RSP + 0x40]
CALL 0x0011f8e0
LEA RAX,[RSP + 0x30]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
ADD RDX,RSI
LAB_001b8a12:
LEA RDI,[RSP + 0x20]
CALL 0x0012586a
LAB_001b8a1c:
LEA RSI,[0x2ba376]
LEA RDI,[RSP + 0x20]
CALL 0x0011f8e0
MOV RAX,qword ptr [R12 + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
LAB_001b8a36:
LEA RSI,[0x2ba308]
LEA RDX,[0x2a16ae]
MOV RDI,R13
CALL 0x00142e5c
CMP qword ptr [RSP + 0x110],0x0
JZ 0x001b8a75
LEA RSI,[0x2ba35c]
LEA RDX,[0x2ba96e]
LEA RCX,[RSP + 0x108]
MOV RDI,R13
CALL 0x001751ae
LAB_001b8a75:
MOV AL,byte ptr [R12 + 0x14]
LEA RBP,[RSP + 0x98]
MOV qword ptr [RBP + -0x10],RBP
CMP AL,0x1
JNZ 0x001b8aa6
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
ADD RDX,RSI
LAB_001b8a97:
LEA RDI,[RSP + 0x88]
CALL 0x0012586a
JMP 0x001b8abd
LAB_001b8aa6:
LEA RDX,[0x29a5a9]
LEA RDI,[RSP + 0x88]
MOV RSI,RDX
CALL 0x001250b2
LAB_001b8abd:
LEA RDX,[RSP + 0x88]
MOV RDI,R13
MOV ESI,0x24
CALL 0x00143014
MOV RDI,qword ptr [RSP + 0x88]
CMP RDI,RBP
JZ 0x001b8ae4
CALL 0x0011f4a0
LAB_001b8ae4:
LEA RSI,[0x2c4713]
LEA RDX,[0x2a649e]
LEA RCX,[RSP + 0x68]
MOV RDI,R13
CALL 0x0012e458
MOV RAX,qword ptr [R12 + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
LEA RDX,[0x2a649e]
MOV RDI,R13
MOV RSI,RDX
CALL 0x001a9012
MOV RDI,R13
CALL 0x0026d126
MOV RDI,R13
CALL 0x0026d126
MOV RDI,R12
MOV RSI,R13
CALL 0x001b8dc6
MOV RDI,R13
CALL 0x0026d136
MOV RDI,R13
CALL 0x0026d136
LEA RSI,[0x2a13f5]
MOV RDI,R13
CALL 0x0012e40a
CMP byte ptr [R12 + 0x14],0x1
JNZ 0x001b8b98
MOV RAX,qword ptr [R15]
LAB_001b8b5f:
LEA RSI,[RSP + 0x20]
MOV RDI,R15
CALL qword ptr [RAX + 0x10]
LAB_001b8b6a:
MOV R15,RAX
LEA RDI,[RSP + 0xb8]
MOV RSI,RAX
CALL 0x001fd8d4
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x0012dd04
LAB_001b8b8a:
TEST R15,R15
JZ 0x001b8b98
MOV RAX,qword ptr [R15]
MOV RDI,R15
CALL qword ptr [RAX + 0x8]
LAB_001b8b98:
MOV RDI,R13
CALL 0x0026ca88
MOV RDI,R13
CALL 0x0011f4a0
TEST RBX,RBX
JZ 0x001b8bb6
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x8]
LAB_001b8bb6:
MOV RDI,qword ptr [RSP + 0x20]
LEA RAX,[RSP + 0x30]
CMP RDI,RAX
JZ 0x001b8bca
CALL 0x0011f4a0
LAB_001b8bca:
MOV RDI,qword ptr [RSP + 0x40]
LEA RAX,[RSP + 0x50]
CMP RDI,RAX
JZ 0x001b8bde
CALL 0x0011f4a0
LAB_001b8bde:
LEA RDI,[RSP + 0xb8]
CALL 0x00254ffc
MOV RDI,qword ptr [RSP]
LEA RAX,[RSP + 0x10]
CMP RDI,RAX
JZ 0x001b8bfe
CALL 0x0011f4a0
LAB_001b8bfe:
LEA RAX,[RSP + 0x78]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b8c11
CALL 0x0011f4a0
LAB_001b8c11:
LEA RAX,[RSP + 0x138]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b8c27
CALL 0x0011f4a0
LAB_001b8c27:
LEA RAX,[RSP + 0x118]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001b8c3d
CALL 0x0011f4a0
LAB_001b8c3d:
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::compiler::java::SharedCodeGenerator::Generate(google::protobuf::compiler::GeneratorContext*,
std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >*,
std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > >*) */
void __thiscall
google::protobuf::compiler::java::SharedCodeGenerator::Generate
(SharedCodeGenerator *this,GeneratorContext *param_1,vector *param_2,vector *param_3)
{
long *plVar1;
ZeroCopyOutputStream *pZVar2;
Printer *this_00;
ZeroCopyOutputStream *pZVar3;
long *plVar4;
AnnotationCollector *pAVar5;
long *local_178;
long local_170;
long local_168;
long lStack_160;
int1 *local_158 [2];
int1 local_148 [16];
int1 *local_138;
long local_130;
int1 local_128 [16];
Printer *local_118;
int1 *local_110;
long local_108;
int1 local_100 [16];
int1 *local_f0 [2];
int1 local_e0 [16];
int **local_d0;
GeneratedCodeInfo *local_c8;
int1 *local_c0 [2];
int1 local_b0 [32];
int1 *local_90 [2];
int1 local_80 [16];
int1 *local_70;
long local_68;
int1 local_60 [16];
int1 *local_50 [2];
int1 local_40 [16];
FileJavaPackage_abi_cxx11_((java *)&local_70,*(FileDescriptor **)(this + 8));
/* try { // try from 001b8876 to 001b8882 has its CatchHandler @ 001b8d14 */
local_90[0] = local_80;
std::__cxx11::string::_M_construct<char*>(local_90,local_70,local_70 + local_68);
/* try { // try from 001b8883 to 001b8897 has its CatchHandler @ 001b8cfb */
JavaPackageToDir((java *)local_50,local_90);
if (local_90[0] != local_80) {
operator_delete(local_90[0]);
}
if (this[0x13] == (SharedCodeGenerator)0x0) {
/* try { // try from 001b88bf to 001b88c8 has its CatchHandler @ 001b8cf3 */
ClassNameResolver::GetDescriptorClassName_abi_cxx11_((FileDescriptor *)&local_110);
/* try { // try from 001b88c9 to 001b88e2 has its CatchHandler @ 001b8ceb */
std::operator+((string *)local_c0,(string *)local_50);
/* try { // try from 001b88e3 to 001b88f6 has its CatchHandler @ 001b8cd7 */
plVar1 = (long *)std::__cxx11::string::append((char *)local_c0);
local_178 = &local_168;
plVar4 = plVar1 + 2;
if ((long *)*plVar1 == plVar4) {
local_168 = *plVar4;
lStack_160 = plVar1[3];
}
else {
local_168 = *plVar4;
local_178 = (long *)*plVar1;
}
local_170 = plVar1[1];
*plVar1 = (long)plVar4;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
if (local_c0[0] != local_b0) {
operator_delete(local_c0[0]);
}
/* try { // try from 001b8951 to 001b895b has its CatchHandler @ 001b8ccf */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_2,
(string *)&local_178);
/* try { // try from 001b895f to 001b8967 has its CatchHandler @ 001b8ccd */
pZVar2 = (ZeroCopyOutputStream *)(**(code **)(*(long *)param_1 + 0x10))(param_1);
/* try { // try from 001b8968 to 001b897e has its CatchHandler @ 001b8cc5 */
GeneratedCodeInfo::GeneratedCodeInfo((GeneratedCodeInfo *)local_c0,(Arena *)0x0,false);
local_d0 = &PTR_AddAnnotation_00376570;
local_c8 = (GeneratedCodeInfo *)local_c0;
/* try { // try from 001b8996 to 001b899f has its CatchHandler @ 001b8cbd */
this_00 = (Printer *)operator_new(0xa0);
pAVar5 = (AnnotationCollector *)&local_d0;
if (this[0x14] == (SharedCodeGenerator)0x0) {
pAVar5 = (AnnotationCollector *)0x0;
}
/* try { // try from 001b89b7 to 001b89c6 has its CatchHandler @ 001b8cad */
io::Printer::Printer(this_00,pZVar2,'$',pAVar5);
local_138 = local_128;
/* try { // try from 001b89e2 to 001b89eb has its CatchHandler @ 001b8ca5 */
local_118 = this_00;
std::__cxx11::string::_M_construct<char*>(&local_138,local_110,local_110 + local_108);
/* try { // try from 001b89ec to 001b89fc has its CatchHandler @ 001b8c9d */
std::__cxx11::string::append((char *)&local_138);
local_158[0] = local_148;
/* try { // try from 001b8a12 to 001b8a1b has its CatchHandler @ 001b8c9b */
std::__cxx11::string::_M_construct<char*>(local_158,local_178,local_170 + (long)local_178);
/* try { // try from 001b8a1c to 001b8a2c has its CatchHandler @ 001b8c96 */
std::__cxx11::string::append((char *)local_158);
/* try { // try from 001b8a36 to 001b8a74 has its CatchHandler @ 001b8d1c */
io::Printer::Print<char[9],std::__cxx11::string>
((char *)this_00,
"// Generated by the protocol buffer compiler. DO NOT EDIT!\n// source: $filename$\n\n"
,(string *)"filename");
if (local_68 != 0) {
io::Printer::Print<char[8],std::__cxx11::string>
((char *)this_00,"package $package$;\n\n",(string *)0x2ba96e);
}
local_f0[0] = local_e0;
if (this[0x14] == (SharedCodeGenerator)0x1) {
/* try { // try from 001b8a97 to 001b8aa3 has its CatchHandler @ 001b8c59 */
std::__cxx11::string::_M_construct<char*>(local_f0,local_138,local_138 + local_130);
}
else {
/* try { // try from 001b8aa6 to 001b8abc has its CatchHandler @ 001b8c54 */
std::__cxx11::string::_M_construct<char_const*>(local_f0,&DAT_0029a5a9);
}
/* try { // try from 001b8abd to 001b8ad1 has its CatchHandler @ 001b8c78 */
PrintGeneratedAnnotation(this_00,'$',(string *)local_f0);
if (local_f0[0] != local_e0) {
operator_delete(local_f0[0]);
}
/* try { // try from 001b8ae4 to 001b8b53 has its CatchHandler @ 001b8d1c */
io::Printer::Print<char[10],std::__cxx11::string>
((char *)this_00,
"public final class $classname$ {\n public static com.google.protobuf.Descriptors.FileDescriptor\n descriptor;\n static {\n"
,(string *)0x2a649e);
io::Printer::Annotate(this_00,"classname","classname",*(string **)(*(long *)(this + 8) + 8));
io::Printer::Indent(this_00);
io::Printer::Indent(this_00);
GenerateDescriptors(this,this_00);
io::Printer::Outdent(this_00);
io::Printer::Outdent(this_00);
io::Printer::Print<>(this_00," }\n}\n");
if (this[0x14] == (SharedCodeGenerator)0x1) {
/* try { // try from 001b8b5f to 001b8b69 has its CatchHandler @ 001b8c4f */
pZVar3 = (ZeroCopyOutputStream *)(**(code **)(*(long *)param_1 + 0x10))(param_1,local_158);
/* try { // try from 001b8b6a to 001b8b89 has its CatchHandler @ 001b8c5e */
MessageLite::SerializeToZeroCopyStream((MessageLite *)local_c0,pZVar3);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::push_back
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_3,
(string *)local_158);
if (pZVar3 != (ZeroCopyOutputStream *)0x0) {
(**(code **)(*(long *)pZVar3 + 8))(pZVar3);
}
}
io::Printer::~Printer(this_00);
operator_delete(this_00);
if (pZVar2 != (ZeroCopyOutputStream *)0x0) {
(**(code **)(*(long *)pZVar2 + 8))(pZVar2);
}
if (local_158[0] != local_148) {
operator_delete(local_158[0]);
}
if (local_138 != local_128) {
operator_delete(local_138);
}
GeneratedCodeInfo::~GeneratedCodeInfo((GeneratedCodeInfo *)local_c0);
if (local_178 != &local_168) {
operator_delete(local_178);
}
if (local_110 != local_100) {
operator_delete(local_110);
}
}
if (local_50[0] != local_40) {
operator_delete(local_50[0]);
}
if (local_70 != local_60) {
operator_delete(local_70);
}
return;
}
|
|
13,334
|
ftxui::(anonymous namespace)::RecordSignal(int)
|
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/screen_interactive.cpp
|
void RecordSignal(int signal) {
switch (signal) {
case SIGABRT:
case SIGFPE:
case SIGILL:
case SIGINT:
case SIGSEGV:
case SIGTERM:
g_signal_exit_count++;
break;
#if !defined(_WIN32)
case SIGTSTP:
g_signal_stop_count++;
break;
case SIGWINCH:
g_signal_resize_count++;
break;
#endif
default:
break;
}
}
|
O1
|
cpp
|
ftxui::(anonymous namespace)::RecordSignal(int):
cmpl $0x1c, %edi
ja 0x3051d
movl $0x8954, %eax # imm = 0x8954
btl %edi, %eax
jae 0x3051e
leaq 0x2adae(%rip), %rax # 0x5b2c8
lock
incl (%rax)
retq
cmpl $0x14, %edi
je 0x30531
cmpl $0x1c, %edi
jne 0x3051d
leaq 0x2ada1(%rip), %rax # 0x5b2d0
jmp 0x3051a
leaq 0x2ad94(%rip), %rax # 0x5b2cc
jmp 0x3051a
|
_ZN5ftxui12_GLOBAL__N_112RecordSignalEi:
cmp edi, 1Ch
ja short locret_3051D
mov eax, 8954h
bt eax, edi
jnb short loc_3051E
lea rax, _ZN5ftxui12_GLOBAL__N_119g_signal_exit_countE; ftxui::`anonymous namespace'::g_signal_exit_count
loc_3051A:
lock inc dword ptr [rax]
locret_3051D:
retn
loc_3051E:
cmp edi, 14h
jz short loc_30531
cmp edi, 1Ch
jnz short locret_3051D
lea rax, _ZN5ftxui12_GLOBAL__N_121g_signal_resize_countE; ftxui::`anonymous namespace'::g_signal_resize_count
jmp short loc_3051A
loc_30531:
lea rax, _ZN5ftxui12_GLOBAL__N_119g_signal_stop_countE; ftxui::`anonymous namespace'::g_signal_stop_count
jmp short loc_3051A
|
void ftxui::`anonymous namespace'::RecordSignal(ftxui::_anonymous_namespace_ *this)
{
int v1; // eax
volatile signed __int32 *v2; // rax
if ( (unsigned int)this <= 0x1C )
{
v1 = 35156;
if ( _bittest(&v1, (unsigned int)this) )
{
v2 = &ftxui::`anonymous namespace'::g_signal_exit_count;
LABEL_4:
_InterlockedIncrement(v2);
return;
}
if ( (_DWORD)this == 20 )
{
v2 = &ftxui::`anonymous namespace'::g_signal_stop_count;
goto LABEL_4;
}
if ( (_DWORD)this == 28 )
{
v2 = &ftxui::`anonymous namespace'::g_signal_resize_count;
goto LABEL_4;
}
}
}
|
RecordSignal:
CMP EDI,0x1c
JA 0x0013051d
MOV EAX,0x8954
BT EAX,EDI
JNC 0x0013051e
LEA RAX,[0x15b2c8]
LAB_0013051a:
INC.LOCK dword ptr [RAX]
LAB_0013051d:
RET
LAB_0013051e:
CMP EDI,0x14
JZ 0x00130531
CMP EDI,0x1c
JNZ 0x0013051d
LEA RAX,[0x15b2d0]
JMP 0x0013051a
LAB_00130531:
LEA RAX,[0x15b2cc]
JMP 0x0013051a
|
/* ftxui::(anonymous namespace)::RecordSignal(int) */
void ftxui::(anonymous_namespace)::RecordSignal(int param_1)
{
int *piVar1;
if ((uint)param_1 < 0x1d) {
if ((0x8954U >> (param_1 & 0x1fU) & 1) == 0) {
if (param_1 == 0x14) {
piVar1 = &g_signal_stop_count;
}
else {
if (param_1 != 0x1c) {
return;
}
piVar1 = &g_signal_resize_count;
}
}
else {
piVar1 = &g_signal_exit_count;
}
LOCK();
*piVar1 = *piVar1 + 1;
UNLOCK();
}
return;
}
|
|
13,335
|
ma_tls_connect
|
eloqsql/libmariadb/libmariadb/secure/openssl.c
|
my_bool ma_tls_connect(MARIADB_TLS *ctls)
{
SSL *ssl = (SSL *)ctls->ssl;
my_bool blocking, try_connect= 1;
MYSQL *mysql;
MARIADB_PVIO *pvio;
int rc;
#ifdef OPENSSL_USE_BIOMETHOD
BIO_METHOD *bio_method= NULL;
BIO *bio;
#endif
mysql= (MYSQL *)SSL_get_app_data(ssl);
pvio= mysql->net.pvio;
/* Set socket to non blocking if not already set */
if (!(blocking= pvio->methods->is_blocking(pvio)))
pvio->methods->blocking(pvio, FALSE, 0);
SSL_clear(ssl);
#ifdef OPENSSL_USE_BIOMETHOD
bio= BIO_new(&ma_BIO_method);
bio->ptr= pvio;
SSL_set_bio(ssl, bio, bio);
BIO_set_fd(bio, mysql_get_socket(mysql), BIO_NOCLOSE);
#else
SSL_set_fd(ssl, (int)mysql_get_socket(mysql));
#endif
while (try_connect && (rc= SSL_connect(ssl)) == -1)
{
switch((SSL_get_error(ssl, rc))) {
case SSL_ERROR_WANT_READ:
if (pvio->methods->wait_io_or_timeout(pvio, TRUE, mysql->options.connect_timeout) < 1)
try_connect= 0;
break;
case SSL_ERROR_WANT_WRITE:
if (pvio->methods->wait_io_or_timeout(pvio, TRUE, mysql->options.connect_timeout) < 1)
try_connect= 0;
break;
default:
try_connect= 0;
}
}
/* In case handshake failed or if a root certificate (ca) was specified,
we need to check the result code of X509 verification. A detailed check
of the peer certificate (hostname checking will follow later) */
if (rc != 1 ||
(mysql->client_flag & CLIENT_SSL_VERIFY_SERVER_CERT) ||
(mysql->options.ssl_ca || mysql->options.ssl_capath))
{
long x509_err= SSL_get_verify_result(ssl);
if (x509_err != X509_V_OK)
{
my_set_error(mysql, CR_SSL_CONNECTION_ERROR, SQLSTATE_UNKNOWN,
ER(CR_SSL_CONNECTION_ERROR), X509_verify_cert_error_string(x509_err));
/* restore blocking mode */
if (!blocking)
pvio->methods->blocking(pvio, FALSE, 0);
return 1;
} else if (rc != 1) {
ma_tls_set_error(mysql);
return 1;
}
}
pvio->ctls->ssl= ctls->ssl= (void *)ssl;
return 0;
}
|
O3
|
c
|
ma_tls_connect:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, -0x30(%rbp)
movq 0x10(%rdi), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x13160
movq %rax, %r14
movq (%rax), %rbx
movq 0x48(%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
movl %eax, %r15d
testb %al, %al
jne 0x2bc86
movq 0x48(%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *0x38(%rax)
movq %r12, %rdi
callq 0x130b0
movq %r14, %rdi
callq 0x201ab
movq %r12, %rdi
movl %eax, %esi
callq 0x132b0
movq %r12, %rdi
callq 0x13660
cmpl $-0x1, %eax
jne 0x2bce0
movq %r12, %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x13050
cmpl $0x3, %eax
je 0x2bcc4
cmpl $0x2, %eax
jne 0x2bd2e
movq 0x48(%rbx), %rax
movl 0x390(%r14), %edx
movq %rbx, %rdi
movl $0x1, %esi
callq *0x30(%rax)
testl %eax, %eax
jg 0x2bca0
jmp 0x2bd2e
movl %eax, %r13d
cmpl $0x1, %eax
jne 0x2bd2e
testb $0x40, 0x36b(%r14)
jne 0x2bd06
cmpq $0x0, 0x410(%r14)
jne 0x2bd06
cmpq $0x0, 0x418(%r14)
je 0x2bd19
movq %r12, %rdi
callq 0x13190
testq %rax, %rax
jne 0x2bd3b
cmpl $0x1, %r13d
jne 0x2bd8b
movq -0x30(%rbp), %rax
movq %r12, 0x10(%rax)
movq 0x38(%rbx), %rax
movq %r12, 0x10(%rax)
xorl %r14d, %r14d
jmp 0x2bd96
movq %r12, %rdi
callq 0x13190
testq %rax, %rax
je 0x2bd8b
leaq 0x2304e(%rip), %rcx # 0x4ed90
movq (%rcx), %r12
leaq 0x23054(%rip), %rcx # 0x4eda0
movq 0xd0(%rcx), %r13
movq %rax, %rdi
callq 0x132f0
movq %r14, %rdi
movl $0x7ea, %esi # imm = 0x7EA
movq %r12, %rdx
movq %r13, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x1916d
movb $0x1, %r14b
testb %r15b, %r15b
jne 0x2bd96
movq 0x48(%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *0x38(%rax)
jmp 0x2bd96
movq %r14, %rdi
callq 0x2bda8
movb $0x1, %r14b
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
ma_tls_connect:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rbp+var_30], rdi
mov r12, [rdi+10h]
mov rdi, r12
xor esi, esi
call _SSL_get_ex_data
mov r14, rax
mov rbx, [rax]
mov rax, [rbx+48h]
mov rdi, rbx
call qword ptr [rax+68h]
mov r15d, eax
test al, al
jnz short loc_2BC86
mov rax, [rbx+48h]
mov rdi, rbx
xor esi, esi
xor edx, edx
call qword ptr [rax+38h]
loc_2BC86:
mov rdi, r12
call _SSL_clear
mov rdi, r14
call mysql_get_socket
mov rdi, r12
mov esi, eax
call _SSL_set_fd
loc_2BCA0:
mov rdi, r12
call _SSL_connect
cmp eax, 0FFFFFFFFh
jnz short loc_2BCE0
mov rdi, r12
mov esi, 0FFFFFFFFh
call _SSL_get_error
cmp eax, 3
jz short loc_2BCC4
cmp eax, 2
jnz short loc_2BD2E
loc_2BCC4:
mov rax, [rbx+48h]
mov edx, [r14+390h]
mov rdi, rbx
mov esi, 1
call qword ptr [rax+30h]
test eax, eax
jg short loc_2BCA0
jmp short loc_2BD2E
loc_2BCE0:
mov r13d, eax
cmp eax, 1
jnz short loc_2BD2E
test byte ptr [r14+36Bh], 40h
jnz short loc_2BD06
cmp qword ptr [r14+410h], 0
jnz short loc_2BD06
cmp qword ptr [r14+418h], 0
jz short loc_2BD19
loc_2BD06:
mov rdi, r12
call _SSL_get_verify_result
test rax, rax
jnz short loc_2BD3B
cmp r13d, 1
jnz short loc_2BD8B
loc_2BD19:
mov rax, [rbp+var_30]
mov [rax+10h], r12
mov rax, [rbx+38h]
mov [rax+10h], r12
xor r14d, r14d
jmp short loc_2BD96
loc_2BD2E:
mov rdi, r12
call _SSL_get_verify_result
test rax, rax
jz short loc_2BD8B
loc_2BD3B:
lea rcx, SQLSTATE_UNKNOWN
mov r12, [rcx]
lea rcx, client_errors
mov r13, [rcx+0D0h]
mov rdi, rax
call _X509_verify_cert_error_string
mov rdi, r14
mov esi, 7EAh
mov rdx, r12
mov rcx, r13
mov r8, rax
xor eax, eax
call my_set_error
mov r14b, 1
test r15b, r15b
jnz short loc_2BD96
mov rax, [rbx+48h]
mov rdi, rbx
xor esi, esi
xor edx, edx
call qword ptr [rax+38h]
jmp short loc_2BD96
loc_2BD8B:
mov rdi, r14
call ma_tls_set_error
mov r14b, 1
loc_2BD96:
mov eax, r14d
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ma_tls_connect(long long a1)
{
long long v1; // r12
_QWORD *v2; // r14
long long v3; // rbx
char v4; // r15
unsigned int socket; // eax
int v6; // eax
int error; // eax
long long verify_result; // rax
char *v9; // r12
char *v10; // r13
long long v11; // rax
v1 = *(_QWORD *)(a1 + 16);
v2 = (_QWORD *)SSL_get_ex_data(v1, 0LL);
v3 = *v2;
v4 = (*(long long ( **)(_QWORD))(*(_QWORD *)(*v2 + 72LL) + 104LL))(*v2);
if ( !v4 )
(*(void ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(v3 + 72) + 56LL))(v3, 0LL, 0LL);
SSL_clear(v1);
socket = mysql_get_socket(v2);
SSL_set_fd(v1, socket);
while ( 1 )
{
v6 = SSL_connect(v1);
if ( v6 != -1 )
break;
error = SSL_get_error(v1, 0xFFFFFFFFLL);
if ( error != 3 && error != 2
|| (*(int ( **)(long long, long long, _QWORD))(*(_QWORD *)(v3 + 72) + 48LL))(
v3,
1LL,
*((unsigned int *)v2 + 228)) <= 0 )
{
goto LABEL_15;
}
}
if ( v6 == 1 )
{
if ( (*((_BYTE *)v2 + 875) & 0x40) == 0 && !v2[130] && !v2[131] || (verify_result = SSL_get_verify_result(v1)) == 0 )
{
*(_QWORD *)(a1 + 16) = v1;
*(_QWORD *)(*(_QWORD *)(v3 + 56) + 16LL) = v1;
LODWORD(v2) = 0;
return (unsigned int)v2;
}
goto LABEL_16;
}
LABEL_15:
verify_result = SSL_get_verify_result(v1);
if ( !verify_result )
{
ma_tls_set_error(v2);
LOBYTE(v2) = 1;
return (unsigned int)v2;
}
LABEL_16:
v9 = SQLSTATE_UNKNOWN;
v10 = client_errors[26];
v11 = X509_verify_cert_error_string(verify_result);
my_set_error((long long)v2, 2026, (long long)v9, v10, v11);
LOBYTE(v2) = 1;
if ( !v4 )
(*(void ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(v3 + 72) + 56LL))(v3, 0LL, 0LL);
return (unsigned int)v2;
}
|
ma_tls_connect:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RBP + -0x30],RDI
MOV R12,qword ptr [RDI + 0x10]
MOV RDI,R12
XOR ESI,ESI
CALL 0x00113160
MOV R14,RAX
MOV RBX,qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x48]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
MOV R15D,EAX
TEST AL,AL
JNZ 0x0012bc86
MOV RAX,qword ptr [RBX + 0x48]
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL qword ptr [RAX + 0x38]
LAB_0012bc86:
MOV RDI,R12
CALL 0x001130b0
MOV RDI,R14
CALL 0x001201ab
MOV RDI,R12
MOV ESI,EAX
CALL 0x001132b0
LAB_0012bca0:
MOV RDI,R12
CALL 0x00113660
CMP EAX,-0x1
JNZ 0x0012bce0
MOV RDI,R12
MOV ESI,0xffffffff
CALL 0x00113050
CMP EAX,0x3
JZ 0x0012bcc4
CMP EAX,0x2
JNZ 0x0012bd2e
LAB_0012bcc4:
MOV RAX,qword ptr [RBX + 0x48]
MOV EDX,dword ptr [R14 + 0x390]
MOV RDI,RBX
MOV ESI,0x1
CALL qword ptr [RAX + 0x30]
TEST EAX,EAX
JG 0x0012bca0
JMP 0x0012bd2e
LAB_0012bce0:
MOV R13D,EAX
CMP EAX,0x1
JNZ 0x0012bd2e
TEST byte ptr [R14 + 0x36b],0x40
JNZ 0x0012bd06
CMP qword ptr [R14 + 0x410],0x0
JNZ 0x0012bd06
CMP qword ptr [R14 + 0x418],0x0
JZ 0x0012bd19
LAB_0012bd06:
MOV RDI,R12
CALL 0x00113190
TEST RAX,RAX
JNZ 0x0012bd3b
CMP R13D,0x1
JNZ 0x0012bd8b
LAB_0012bd19:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX + 0x10],R12
MOV RAX,qword ptr [RBX + 0x38]
MOV qword ptr [RAX + 0x10],R12
XOR R14D,R14D
JMP 0x0012bd96
LAB_0012bd2e:
MOV RDI,R12
CALL 0x00113190
TEST RAX,RAX
JZ 0x0012bd8b
LAB_0012bd3b:
LEA RCX,[0x14ed90]
MOV R12,qword ptr [RCX]
LEA RCX,[0x14eda0]
MOV R13,qword ptr [RCX + 0xd0]
MOV RDI,RAX
CALL 0x001132f0
MOV RDI,R14
MOV ESI,0x7ea
MOV RDX,R12
MOV RCX,R13
MOV R8,RAX
XOR EAX,EAX
CALL 0x0011916d
MOV R14B,0x1
TEST R15B,R15B
JNZ 0x0012bd96
MOV RAX,qword ptr [RBX + 0x48]
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL qword ptr [RAX + 0x38]
JMP 0x0012bd96
LAB_0012bd8b:
MOV RDI,R14
CALL 0x0012bda8
MOV R14B,0x1
LAB_0012bd96:
MOV EAX,R14D
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong ma_tls_connect(long param_1)
{
SSL *ssl;
long lVar1;
int *puVar2;
int *puVar3;
char cVar4;
int iVar5;
long *plVar6;
long n;
char *pcVar7;
int7 uVar9;
ulong uVar8;
ssl = *(SSL **)(param_1 + 0x10);
plVar6 = (long *)SSL_get_ex_data(ssl,0);
lVar1 = *plVar6;
cVar4 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x68))(lVar1);
if (cVar4 == '\0') {
(**(code **)(*(long *)(lVar1 + 0x48) + 0x38))(lVar1,0,0);
}
SSL_clear(ssl);
iVar5 = mysql_get_socket(plVar6);
SSL_set_fd(ssl,iVar5);
while( true ) {
iVar5 = SSL_connect(ssl);
uVar9 = (int7)((ulong)plVar6 >> 8);
if (iVar5 != -1) break;
iVar5 = SSL_get_error(ssl,-1);
if (((iVar5 != 3) && (iVar5 != 2)) ||
(iVar5 = (**(code **)(*(long *)(lVar1 + 0x48) + 0x30))(lVar1,1,(int)plVar6[0x72]), iVar5 < 1)
) goto LAB_0012bd2e;
}
if (iVar5 == 1) {
if (((((*(byte *)((long)plVar6 + 0x36b) & 0x40) != 0) || (plVar6[0x82] != 0)) ||
(plVar6[0x83] != 0)) && (n = SSL_get_verify_result(ssl), n != 0)) goto LAB_0012bd3b;
*(SSL **)(param_1 + 0x10) = ssl;
*(SSL **)(*(long *)(lVar1 + 0x38) + 0x10) = ssl;
uVar8 = 0;
goto LAB_0012bd96;
}
LAB_0012bd2e:
n = SSL_get_verify_result(ssl);
if (n == 0) {
ma_tls_set_error(plVar6);
uVar8 = CONCAT71(uVar9,1);
}
else {
LAB_0012bd3b:
puVar3 = PTR_s_TLS_SSL_error_____100s_0014ee70;
puVar2 = SQLSTATE_UNKNOWN;
pcVar7 = X509_verify_cert_error_string(n);
my_set_error(plVar6,0x7ea,puVar2,puVar3,pcVar7);
uVar8 = CONCAT71(uVar9,1);
if (cVar4 == '\0') {
(**(code **)(*(long *)(lVar1 + 0x48) + 0x38))(lVar1,0,0);
}
}
LAB_0012bd96:
return uVar8 & 0xffffffff;
}
|
|
13,336
|
common_chat_format_name[abi:cxx11](common_chat_format)
|
monkey531[P]llama/common/chat.cpp
|
std::string common_chat_format_name(common_chat_format format) {
switch (format) {
case COMMON_CHAT_FORMAT_CONTENT_ONLY: return "Content-only";
case COMMON_CHAT_FORMAT_GENERIC: return "Generic";
case COMMON_CHAT_FORMAT_MISTRAL_NEMO: return "Mistral Nemo";
case COMMON_CHAT_FORMAT_LLAMA_3_X: return "Llama 3.x";
case COMMON_CHAT_FORMAT_LLAMA_3_X_WITH_BUILTIN_TOOLS: return "Llama 3.x with builtin tools";
case COMMON_CHAT_FORMAT_DEEPSEEK_R1: return "DeepSeek R1";
case COMMON_CHAT_FORMAT_FIREFUNCTION_V2: return "FireFunction v2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_2: return "Functionary v3.2";
case COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1: return "Functionary v3.1 Llama 3.1";
case COMMON_CHAT_FORMAT_HERMES_2_PRO: return "Hermes 2 Pro";
case COMMON_CHAT_FORMAT_COMMAND_R7B: return "Command R7B";
default:
throw std::runtime_error("Unknown chat format");
}
}
|
O3
|
cpp
|
common_chat_format_name[abi:cxx11](common_chat_format):
pushq %r14
pushq %rbx
pushq %rax
cmpl $0xa, %esi
ja 0xd2177
movq %rdi, %rbx
movl %esi, %eax
leaq 0x255d3(%rip), %rcx # 0xf7624
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x265f4(%rip), %rsi # 0xf865c
leaq 0x265f9(%rip), %rdx # 0xf8668
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26606(%rip), %rsi # 0xf8688
leaq 0x2661b(%rip), %rdx # 0xf86a4
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26651(%rip), %rsi # 0xf86ed
leaq 0x26656(%rip), %rdx # 0xf86f9
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x265bb(%rip), %rsi # 0xf8671
leaq 0x265c0(%rip), %rdx # 0xf867d
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x265ae(%rip), %rsi # 0xf867e
leaq 0x265b0(%rip), %rdx # 0xf8687
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x265d7(%rip), %rsi # 0xf86c1
leaq 0x265e0(%rip), %rdx # 0xf86d1
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26568(%rip), %rsi # 0xf8669
leaq 0x26568(%rip), %rdx # 0xf8670
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x2658d(%rip), %rsi # 0xf86a5
leaq 0x26591(%rip), %rdx # 0xf86b0
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26582(%rip), %rsi # 0xf86b1
leaq 0x2658a(%rip), %rdx # 0xf86c0
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x265b4(%rip), %rsi # 0xf86fa
leaq 0x265b8(%rip), %rdx # 0xf8705
jmp 0xd2164
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x26575(%rip), %rsi # 0xf86d2
leaq 0x26588(%rip), %rdx # 0xf86ec
movq %rbx, %rdi
callq 0x225b4
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x1b440
movq %rax, %rbx
leaq 0x2657b(%rip), %rsi # 0xf8706
movq %rax, %rdi
callq 0x1b320
movq 0x5be4e(%rip), %rsi # 0x12dfe8
movq 0x5bdaf(%rip), %rdx # 0x12df50
movq %rbx, %rdi
callq 0x1bf00
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b660
movq %r14, %rdi
callq 0x1bf90
|
_Z23common_chat_format_nameB5cxx1118common_chat_format:
push r14
push rbx
push rax
cmp esi, 0Ah; switch 11 cases
ja def_D2058; jumptable 00000000000D2058 default case
mov rbx, rdi
mov eax, esi
lea rcx, jpt_D2058
movsxd rax, ds:(jpt_D2058 - 0F7624h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_D205A:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 0
mov [rbx], rax
lea rsi, aContentOnly; "Content-only"
lea rdx, aContentOnly+0Ch; ""
jmp loc_D2164
loc_D2074:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 4
mov [rbx], rax
lea rsi, aLlama3XWithBui; "Llama 3.x with builtin tools"
lea rdx, aLlama3XWithBui+1Ch; ""
jmp loc_D2164
loc_D208E:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 9
mov [rbx], rax
lea rsi, aHermes2Pro; "Hermes 2 Pro"
lea rdx, aHermes2Pro+0Ch; ""
jmp loc_D2164
loc_D20A8:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 2
mov [rbx], rax
lea rsi, aMistralNemo; "Mistral Nemo"
lea rdx, aMistralNemo+0Ch; ""
jmp loc_D2164
loc_D20C2:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 3
mov [rbx], rax
lea rsi, aLlama3X; "Llama 3.x"
lea rdx, aLlama3X+9; ""
jmp loc_D2164
loc_D20DC:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 7
mov [rbx], rax
lea rsi, aFunctionaryV32; "Functionary v3.2"
lea rdx, aFunctionaryV32+10h; ""
jmp short loc_D2164
loc_D20F3:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 1
mov [rbx], rax
lea rsi, aGeneric; "Generic"
lea rdx, aGeneric+7; ""
jmp short loc_D2164
loc_D210A:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 5
mov [rbx], rax
lea rsi, aDeepseekR1; "DeepSeek R1"
lea rdx, aDeepseekR1+0Bh; ""
jmp short loc_D2164
loc_D2121:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 6
mov [rbx], rax
lea rsi, aFirefunctionV2; "FireFunction v2"
lea rdx, aFirefunctionV2+0Fh; ""
jmp short loc_D2164
loc_D2138:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 10
mov [rbx], rax
lea rsi, aCommandR7b; "Command R7B"
lea rdx, aCommandR7b+0Bh; ""
jmp short loc_D2164
loc_D214F:
lea rax, [rbx+10h]; jumptable 00000000000D2058 case 8
mov [rbx], rax
lea rsi, aFunctionaryV31; "Functionary v3.1 Llama 3.1"
lea rdx, aFunctionaryV31+1Ah; ""
loc_D2164:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rax, rbx
add rsp, 8
pop rbx
pop r14
retn
def_D2058:
mov edi, 10h; jumptable 00000000000D2058 default case
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aUnknownChatFor; "Unknown chat format"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
mov rdi, r14
call __Unwind_Resume
|
_QWORD * common_chat_format_name[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
char *v3; // rdx
std::runtime_error *exception; // rbx
switch ( a2 )
{
case 0:
*a1 = a1 + 2;
v2 = "Content-only";
v3 = "";
break;
case 1:
*a1 = a1 + 2;
v2 = "Generic";
v3 = "";
break;
case 2:
*a1 = a1 + 2;
v2 = "Mistral Nemo";
v3 = "";
break;
case 3:
*a1 = a1 + 2;
v2 = "Llama 3.x";
v3 = "";
break;
case 4:
*a1 = a1 + 2;
v2 = "Llama 3.x with builtin tools";
v3 = "";
break;
case 5:
*a1 = a1 + 2;
v2 = "DeepSeek R1";
v3 = "";
break;
case 6:
*a1 = a1 + 2;
v2 = "FireFunction v2";
v3 = "";
break;
case 7:
*a1 = a1 + 2;
v2 = "Functionary v3.2";
v3 = "";
break;
case 8:
*a1 = a1 + 2;
v2 = "Functionary v3.1 Llama 3.1";
v3 = "";
break;
case 9:
*a1 = a1 + 2;
v2 = "Hermes 2 Pro";
v3 = "";
break;
case 10:
*a1 = a1 + 2;
v2 = "Command R7B";
v3 = "";
break;
default:
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Unknown chat format");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
std::string::_M_construct<char const*>((long long)a1, v2, (long long)v3);
return a1;
}
|
common_chat_format_name[abi:cxx11]:
PUSH R14
PUSH RBX
PUSH RAX
CMP ESI,0xa
JA 0x001d2177
MOV RBX,RDI
MOV EAX,ESI
LEA RCX,[0x1f7624]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f865c]
LEA RDX,[0x1f8668]
JMP 0x001d2164
caseD_4:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f8688]
LEA RDX,[0x1f86a4]
JMP 0x001d2164
caseD_9:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86ed]
LEA RDX,[0x1f86f9]
JMP 0x001d2164
caseD_2:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f8671]
LEA RDX,[0x1f867d]
JMP 0x001d2164
caseD_3:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f867e]
LEA RDX,[0x1f8687]
JMP 0x001d2164
caseD_7:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86c1]
LEA RDX,[0x1f86d1]
JMP 0x001d2164
caseD_1:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f8669]
LEA RDX,[0x1f8670]
JMP 0x001d2164
caseD_5:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86a5]
LEA RDX,[0x1f86b0]
JMP 0x001d2164
caseD_6:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86b1]
LEA RDX,[0x1f86c0]
JMP 0x001d2164
caseD_a:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86fa]
LEA RDX,[0x1f8705]
JMP 0x001d2164
caseD_8:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LEA RSI,[0x1f86d2]
LEA RDX,[0x1f86ec]
LAB_001d2164:
MOV RDI,RBX
CALL 0x001225b4
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R14
RET
default:
MOV EDI,0x10
CALL 0x0011b440
MOV RBX,RAX
LAB_001d2184:
LEA RSI,[0x1f8706]
MOV RDI,RAX
CALL 0x0011b320
LAB_001d2193:
MOV RSI,qword ptr [0x0022dfe8]
MOV RDX,qword ptr [0x0022df50]
MOV RDI,RBX
CALL 0x0011bf00
|
/* common_chat_format_name[abi:cxx11](common_chat_format) */
long * common_chat_format_name_abi_cxx11_(long *param_1,int4 param_2)
{
runtime_error *this;
char *pcVar1;
char *pcVar2;
switch(param_2) {
case 0:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Content-only";
pcVar1 = "";
break;
case 1:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Generic";
pcVar1 = "";
break;
case 2:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Mistral Nemo";
pcVar1 = "";
break;
case 3:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Llama 3.x";
pcVar1 = "";
break;
case 4:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Llama 3.x with builtin tools";
pcVar1 = "";
break;
case 5:
*param_1 = (long)(param_1 + 2);
pcVar2 = "DeepSeek R1";
pcVar1 = "";
break;
case 6:
*param_1 = (long)(param_1 + 2);
pcVar2 = "FireFunction v2";
pcVar1 = "";
break;
case 7:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Functionary v3.2";
pcVar1 = "";
break;
case 8:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Functionary v3.1 Llama 3.1";
pcVar1 = "";
break;
case 9:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Hermes 2 Pro";
pcVar1 = "";
break;
case 10:
*param_1 = (long)(param_1 + 2);
pcVar2 = "Command R7B";
pcVar1 = "";
break;
default:
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001d2184 to 001d2192 has its CatchHandler @ 001d21a9 */
std::runtime_error::runtime_error(this,"Unknown chat format");
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_0022dfe8,PTR__runtime_error_0022df50);
}
std::__cxx11::string::_M_construct<char_const*>(param_1,pcVar2,pcVar1);
return param_1;
}
|
|
13,337
|
lunasvg::Path::operator=(lunasvg::Path const&)
|
dmazzella[P]pylunasvg/lunasvg/source/graphics.cpp
|
Path& Path::operator=(const Path& path)
{
Path(path).swap(*this);
return *this;
}
|
O3
|
cpp
|
lunasvg::Path::operator=(lunasvg::Path const&):
pushq %rbx
movq %rdi, %rbx
movq (%rsi), %rdi
callq 0x29c89
movq (%rbx), %rdi
movq %rax, (%rbx)
callq 0x29c94
movq %rbx, %rax
popq %rbx
retq
movq %rax, %rdi
callq 0xc371
|
_ZN7lunasvg4PathaSERKS0_:
push rbx
mov rbx, rdi
mov rdi, [rsi]
call plutovg_path_reference
mov rdi, [rbx]
mov [rbx], rax
call plutovg_path_destroy
mov rax, rbx
pop rbx
retn
mov rdi, rax
call __clang_call_terminate
|
long long * lunasvg::Path::operator=(long long *a1, _QWORD *a2)
{
long long v3; // rax
long long v4; // rdi
v3 = plutovg_path_reference(*a2);
v4 = *a1;
*a1 = v3;
plutovg_path_destroy(v4);
return a1;
}
|
operator=:
PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RSI]
CALL 0x00129c89
MOV RDI,qword ptr [RBX]
MOV qword ptr [RBX],RAX
LAB_0010cd40:
CALL 0x00129c94
MOV RAX,RBX
POP RBX
RET
|
/* lunasvg::Path::TEMPNAMEPLACEHOLDERVALUE(lunasvg::Path const&) */
Path * __thiscall lunasvg::Path::operator=(Path *this,Path *param_1)
{
int8 uVar1;
int8 uVar2;
uVar2 = plutovg_path_reference(*(int8 *)param_1);
uVar1 = *(int8 *)this;
*(int8 *)this = uVar2;
/* try { // try from 0010cd40 to 0010cd44 has its CatchHandler @ 0010cd4a */
plutovg_path_destroy(uVar1);
return this;
}
|
|
13,338
|
my_strntoull10rnd_8bit
|
eloqsql/strings/ctype-simple.c
|
ulonglong
my_strntoull10rnd_8bit(CHARSET_INFO *cs __attribute__((unused)),
const char *str, size_t length, int unsigned_flag,
char **endptr, int *error)
{
const char *dot, *end9, *beg, *end= str + length;
ulonglong ull;
ulong ul;
uchar ch;
int shift= 0, digits= 0, negative, addon;
/* Skip leading spaces and tabs */
for ( ; str < end && my_isspace(&my_charset_latin1, *str) ; )
str++;
if (str >= end)
goto ret_edom;
if ((negative= (*str == '-')) || *str=='+') /* optional sign */
{
if (++str == end)
goto ret_edom;
}
beg= str;
end9= (str + 9) > end ? end : (str + 9);
/* Accumulate small number into ulong, for performance purposes */
for (ul= 0 ; str < end9 && (ch= (uchar) (*str - '0')) < 10; str++)
{
ul= ul * 10 + ch;
}
if (str >= end) /* Small number without dots and expanents */
{
*endptr= (char*) str;
if (negative)
{
if (unsigned_flag)
{
*error= ul ? MY_ERRNO_ERANGE : 0;
return 0;
}
else
{
*error= 0;
return (ulonglong) (longlong) -(long) ul;
}
}
else
{
*error=0;
return (ulonglong) ul;
}
}
digits= (int) (str - beg);
/* Continue to accumulate into ulonglong */
for (dot= NULL, ull= ul; str < end; str++)
{
if ((ch= (uchar) (*str - '0')) < 10)
{
if (ull < CUTOFF || (ull == CUTOFF && ch <= CUTLIM))
{
ull= ull * 10 + ch;
digits++;
continue;
}
/*
Adding the next digit would overflow.
Remember the next digit in "addon", for rounding.
Scan all digits with an optional single dot.
*/
if (ull == CUTOFF)
{
ull= ULONGLONG_MAX;
addon= 1;
str++;
}
else
addon= (*str >= '5');
if (!dot)
{
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; shift++, str++);
if (str < end && *str == '.')
{
str++;
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; str++);
}
}
else
{
shift= (int) (dot - str);
for ( ; str < end && (ch= (uchar) (*str - '0')) < 10; str++);
}
goto exp;
}
if (*str == '.')
{
if (dot)
{
/* The second dot character */
addon= 0;
goto exp;
}
else
{
dot= str + 1;
}
continue;
}
/* Unknown character, exit the loop */
break;
}
shift= dot ? (int)(dot - str) : 0; /* Right shift */
addon= 0;
exp: /* [ E [ <sign> ] <unsigned integer> ] */
if (!digits)
{
str= beg;
goto ret_edom;
}
if (str < end && (*str == 'e' || *str == 'E'))
{
str++;
if (str < end)
{
int negative_exp, exponent;
if ((negative_exp= (*str == '-')) || *str=='+')
{
if (++str == end)
{
str-= 2; /* 'e-' or 'e+' not followed by digits */
goto ret_sign;
}
}
if (shift > 0 && !negative_exp)
goto ret_too_big;
for (exponent= 0 ; str < end && (ch= (uchar) (*str - '0')) < 10; str++)
{
if (negative_exp)
{
if (exponent - shift > DIGITS_IN_ULONGLONG)
goto ret_zero;
}
else
{
if (exponent + shift > DIGITS_IN_ULONGLONG)
goto ret_too_big;
}
exponent= exponent * 10 + ch;
}
shift+= negative_exp ? -exponent : exponent;
}
else
str--; /* 'e' not followed by digits */
}
if (shift == 0) /* No shift, check addon digit */
{
if (addon)
{
if (ull == ULONGLONG_MAX)
goto ret_too_big;
ull++;
}
goto ret_sign;
}
if (shift < 0) /* Right shift */
{
ulonglong d, r;
if (-shift >= DIGITS_IN_ULONGLONG)
goto ret_zero; /* Exponent is a big negative number, return 0 */
d= d10[-shift];
r= (ull % d) * 2;
ull /= d;
if (r >= d)
ull++;
goto ret_sign;
}
if (shift > DIGITS_IN_ULONGLONG) /* Huge left shift */
{
if (!ull)
goto ret_sign;
goto ret_too_big;
}
for ( ; shift > 0; shift--, ull*= 10) /* Left shift */
{
if (ull > CUTOFF)
goto ret_too_big; /* Overflow, number too big */
}
ret_sign:
*endptr= (char*) str;
if (!unsigned_flag)
{
if (negative)
{
if (ull >= (ulonglong) LONGLONG_MIN)
{
if (ull != (ulonglong) LONGLONG_MIN)
*error= MY_ERRNO_ERANGE;
return (ulonglong) LONGLONG_MIN;
}
*error= 0;
return (ulonglong) -(longlong) ull;
}
else
{
if (ull > (ulonglong) LONGLONG_MAX)
{
*error= MY_ERRNO_ERANGE;
return (ulonglong) LONGLONG_MAX;
}
*error= 0;
return ull;
}
}
/* Unsigned number */
if (negative && ull)
{
*error= MY_ERRNO_ERANGE;
return 0;
}
*error= 0;
return ull;
ret_zero:
*endptr= (char*) str;
*error= 0;
return 0;
ret_edom:
*endptr= (char*) str;
*error= MY_ERRNO_EDOM;
return 0;
ret_too_big:
*endptr= (char*) str;
*error= MY_ERRNO_ERANGE;
return unsigned_flag ?
ULONGLONG_MAX :
negative ? (ulonglong) LONGLONG_MIN : (ulonglong) LONGLONG_MAX;
}
|
O3
|
c
|
my_strntoull10rnd_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdx, %rdx
jle 0x3dfa3
leaq (%rsi,%rdx), %r11
leaq 0x2dee07(%rip), %rax # 0x31caf0
movq 0x40(%rax), %rax
decq %rdx
movzbl (%rsi), %r10d
testb $0x8, 0x1(%rax,%r10)
je 0x3dd0c
incq %rsi
decq %rdx
cmpq %r11, %rsi
jb 0x3dcf0
jmp 0x3dfa3
cmpl $0x2b, %r10d
je 0x3dd18
cmpl $0x2d, %r10d
jne 0x3dd24
testq %rdx, %rdx
je 0x3ddfb
incq %rsi
leaq 0x9(%rsi), %rax
cmpq %r11, %rax
cmovaq %r11, %rax
xorl %edi, %edi
movq %rsi, %r14
cmpq %rax, %rsi
jae 0x3dd57
movb (%r14), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x3dd57
leaq (%rdi,%rdi,4), %rdi
movzbl %dl, %edx
leaq (%rdx,%rdi,2), %rdi
incq %r14
cmpq %rax, %r14
jb 0x3dd39
cmpq %r11, %r14
jae 0x3ddd1
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movl %r14d, %r12d
subl %esi, %r12d
xorl %ebx, %ebx
movl %r14d, %r13d
movb (%r14), %al
leal -0x30(%rax), %edx
cmpb $0x9, %dl
ja 0x3dda0
cmpq %r15, %rdi
jb 0x3dd90
jne 0x3de10
cmpb $0x5, %dl
ja 0x3de10
leaq (%rdi,%rdi,4), %rax
movzbl %dl, %edx
leaq (%rdx,%rax,2), %rdi
incl %r12d
jmp 0x3ddad
cmpb $0x2e, %al
jne 0x3ddb8
testq %rbx, %rbx
jne 0x3de03
leaq 0x1(%r14), %rbx
incq %r14
incl %r13d
cmpq %r11, %r14
jb 0x3dd71
movl %ebx, %eax
subl %r14d, %eax
xorl %r13d, %r13d
testq %rbx, %rbx
cmovel %r13d, %eax
movl %eax, %ebx
movq %rdi, %rax
jmp 0x3dece
movq %r14, (%r8)
cmpl $0x2d, %r10d
jne 0x3e086
testl %ecx, %ecx
je 0x3e072
xorl %eax, %eax
testq %rdi, %rdi
movl $0x22, %ecx
cmovel %eax, %ecx
movl %ecx, (%r9)
jmp 0x3dfad
movq %r11, %rsi
jmp 0x3dfa3
xorl %ebx, %ebx
movq %rdi, %rax
xorl %r13d, %r13d
jmp 0x3dece
movl %ecx, -0x30(%rbp)
cmpb $0x35, %al
setae %al
movl %eax, -0x2c(%rbp)
xorl %ecx, %ecx
cmpq %r15, %rdi
movq $-0x1, %rax
cmovneq %rdi, %rax
sete %cl
movl -0x2c(%rbp), %edx
orb %cl, %dl
movl %edx, -0x2c(%rbp)
movq %rcx, %rdx
movq %r15, %rcx
leaq (%r14,%rdx), %r15
testq %rbx, %rbx
je 0x3de80
xorl %edx, %edx
cmpq %rcx, %rdi
sete %dl
subl %edx, %ebx
subl %r13d, %ebx
cmpq %r11, %r15
movl -0x30(%rbp), %ecx
jae 0x3debd
movl -0x2c(%rbp), %r13d
movb (%r15), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x3de71
incq %r15
cmpq %r11, %r15
jb 0x3de5e
movq %r15, %r14
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
jmp 0x3dece
xorl %ebx, %ebx
cmpq %r11, %r15
movl -0x30(%rbp), %ecx
jae 0x3debd
leaq (%r14,%rdx), %rdi
xorl %ebx, %ebx
leaq (%rdx,%rbx), %r15
movb (%r14,%r15), %r15b
leal -0x30(%r15), %r13d
cmpb $0x9, %r13b
ja 0x3e0c9
leaq (%rbx,%rdi), %r15
incq %r15
incq %rbx
cmpq %r11, %r15
jb 0x3de90
addq %rbx, %rdi
movq %rdi, %r14
jmp 0x3dec0
movq %r15, %r14
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movl -0x2c(%rbp), %r13d
testl %r12d, %r12d
je 0x3dfa3
cmpq %r11, %r14
jae 0x3df8c
movzbl (%r14), %edx
orl $0x20, %edx
cmpl $0x65, %edx
jne 0x3df8c
leaq 0x1(%r14), %rsi
cmpq %r11, %rsi
jae 0x3df8c
movzbl (%rsi), %edi
cmpl $0x2d, %edi
je 0x3df0a
cmpl $0x2b, %edi
jne 0x3df17
leaq 0x2(%r14), %rsi
cmpq %r11, %rsi
je 0x3dff6
testl %ebx, %ebx
jle 0x3df25
cmpb $0x2d, %dil
jne 0x3dffe
xorl %r14d, %r14d
cmpq %r11, %rsi
jae 0x3df78
xorl %r14d, %r14d
movb (%rsi), %dl
addb $-0x30, %dl
cmpb $0x9, %dl
ja 0x3df78
movq %r15, %r12
cmpb $0x2d, %dil
jne 0x3df54
movl %r14d, %r15d
subl %ebx, %r15d
cmpl $0x14, %r15d
jle 0x3df62
jmp 0x3dfd5
leal (%r14,%rbx), %r15d
cmpl $0x14, %r15d
jg 0x3dffe
movzbl %dl, %edx
leal (%r14,%r14,4), %r14d
leal (%rdx,%r14,2), %r14d
incq %rsi
cmpq %r11, %rsi
movq %r12, %r15
jb 0x3df30
movl %r14d, %edx
negl %edx
cmpb $0x2d, %dil
cmovnel %r14d, %edx
addl %ebx, %edx
movl %edx, %ebx
movq %rsi, %r14
testl %ebx, %ebx
je 0x3dfbd
js 0x3dfcd
cmpl $0x14, %ebx
jbe 0x3dfe1
testq %rax, %rax
jne 0x3dffb
xorl %edi, %edi
jmp 0x3e049
movq %rsi, (%r8)
movl $0x21, (%r9)
xorl %edi, %edi
movq %rdi, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %r13b, %r13b
je 0x3dff6
cmpq $-0x1, %rax
je 0x3dffb
incq %rax
jmp 0x3dff6
cmpl $-0x13, %ebx
jae 0x3e02a
movq %r14, %rsi
movq %rsi, (%r8)
movl $0x0, (%r9)
jmp 0x3dfad
incl %ebx
cmpq %r15, %rax
ja 0x3dffb
addq %rax, %rax
leaq (%rax,%rax,4), %rax
decl %ebx
cmpl $0x1, %ebx
jg 0x3dfe3
movq %rax, %rdi
jmp 0x3e049
movq %r14, %rsi
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
leaq -0x1(%rax), %rdx
cmpl $0x2d, %r10d
movq %rsi, (%r8)
movl $0x22, (%r9)
cmoveq %rax, %rdx
xorl %edi, %edi
negl %ecx
sbbq %rdi, %rdi
orq %rdx, %rdi
jmp 0x3dfaf
negl %ebx
leaq 0x16b23d(%rip), %rdx # 0x1a9270
movq (%rdx,%rbx,8), %rsi
xorl %edx, %edx
divq %rsi
movq %rax, %rdi
addq %rdx, %rdx
cmpq %rsi, %rdx
sbbq $-0x1, %rdi
movq %r14, (%r8)
testl %ecx, %ecx
je 0x3e067
cmpl $0x2d, %r10d
jne 0x3e086
testq %rdi, %rdi
je 0x3e086
movl $0x22, (%r9)
jmp 0x3dfad
cmpl $0x2d, %r10d
jne 0x3e081
testq %rdi, %rdi
js 0x3e092
movl $0x0, (%r9)
negq %rdi
jmp 0x3dfaf
testq %rdi, %rdi
js 0x3e0b0
movl $0x0, (%r9)
jmp 0x3dfaf
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
negq %rdi
jo 0x3e0a8
movl $0x22, (%r9)
movq %rax, %rdi
jmp 0x3dfaf
movl $0x22, (%r9)
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
decq %rdi
jmp 0x3dfaf
cmpb $0x2e, %r15b
movl -0x2c(%rbp), %r13d
jne 0x3e106
leaq (%rbx,%rdi), %rdx
incq %rdx
movabsq $0x1999999999999999, %r15 # imm = 0x1999999999999999
movq %rdx, %r14
cmpq %r11, %rdx
jae 0x3dece
movb (%r14), %dil
addb $-0x30, %dil
leaq 0x1(%r14), %rdx
cmpb $0xa, %dil
jb 0x3e0e4
jmp 0x3dece
addq %rbx, %rdi
movq %rdi, %r14
jmp 0x3de74
|
my_strntoull10rnd_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
test rdx, rdx
jle loc_3DFA3
lea r11, [rsi+rdx]
lea rax, my_charset_latin1
mov rax, [rax+40h]
dec rdx
loc_3DCF0:
movzx r10d, byte ptr [rsi]
test byte ptr [rax+r10+1], 8
jz short loc_3DD0C
inc rsi
dec rdx
cmp rsi, r11
jb short loc_3DCF0
jmp loc_3DFA3
loc_3DD0C:
cmp r10d, 2Bh ; '+'
jz short loc_3DD18
cmp r10d, 2Dh ; '-'
jnz short loc_3DD24
loc_3DD18:
test rdx, rdx
jz loc_3DDFB
inc rsi
loc_3DD24:
lea rax, [rsi+9]
cmp rax, r11
cmova rax, r11
xor edi, edi
mov r14, rsi
cmp rsi, rax
jnb short loc_3DD57
loc_3DD39:
mov dl, [r14]
add dl, 0D0h
cmp dl, 9
ja short loc_3DD57
lea rdi, [rdi+rdi*4]
movzx edx, dl
lea rdi, [rdx+rdi*2]
inc r14
cmp r14, rax
jb short loc_3DD39
loc_3DD57:
cmp r14, r11
jnb short loc_3DDD1
mov r15, 1999999999999999h
mov r12d, r14d
sub r12d, esi
xor ebx, ebx
mov r13d, r14d
loc_3DD71:
mov al, [r14]
lea edx, [rax-30h]
cmp dl, 9
ja short loc_3DDA0
cmp rdi, r15
jb short loc_3DD90
jnz loc_3DE10
cmp dl, 5
ja loc_3DE10
loc_3DD90:
lea rax, [rdi+rdi*4]
movzx edx, dl
lea rdi, [rdx+rax*2]
inc r12d
jmp short loc_3DDAD
loc_3DDA0:
cmp al, 2Eh ; '.'
jnz short loc_3DDB8
test rbx, rbx
jnz short loc_3DE03
lea rbx, [r14+1]
loc_3DDAD:
inc r14
inc r13d
cmp r14, r11
jb short loc_3DD71
loc_3DDB8:
mov eax, ebx
sub eax, r14d
xor r13d, r13d
test rbx, rbx
cmovz eax, r13d
mov ebx, eax
mov rax, rdi
jmp loc_3DECE
loc_3DDD1:
mov [r8], r14
cmp r10d, 2Dh ; '-'
jnz loc_3E086
test ecx, ecx
jz loc_3E072
xor eax, eax
test rdi, rdi
mov ecx, 22h ; '"'
cmovz ecx, eax
mov [r9], ecx
jmp loc_3DFAD
loc_3DDFB:
mov rsi, r11
jmp loc_3DFA3
loc_3DE03:
xor ebx, ebx
mov rax, rdi
xor r13d, r13d
jmp loc_3DECE
loc_3DE10:
mov [rbp+var_30], ecx
cmp al, 35h ; '5'
setnb al
mov [rbp+var_2C], eax
xor ecx, ecx
cmp rdi, r15
mov rax, 0FFFFFFFFFFFFFFFFh
cmovnz rax, rdi
setz cl
mov edx, [rbp+var_2C]
or dl, cl
mov [rbp+var_2C], edx
mov rdx, rcx
mov rcx, r15
lea r15, [r14+rdx]
test rbx, rbx
jz short loc_3DE80
xor edx, edx
cmp rdi, rcx
setz dl
sub ebx, edx
sub ebx, r13d
cmp r15, r11
mov ecx, [rbp+var_30]
jnb short loc_3DEBD
mov r13d, [rbp+var_2C]
loc_3DE5E:
mov dl, [r15]
add dl, 0D0h
cmp dl, 9
ja short loc_3DE71
inc r15
cmp r15, r11
jb short loc_3DE5E
loc_3DE71:
mov r14, r15
loc_3DE74:
mov r15, 1999999999999999h
jmp short loc_3DECE
loc_3DE80:
xor ebx, ebx
cmp r15, r11
mov ecx, [rbp+var_30]
jnb short loc_3DEBD
lea rdi, [r14+rdx]
xor ebx, ebx
loc_3DE90:
lea r15, [rdx+rbx]
mov r15b, [r14+r15]
lea r13d, [r15-30h]
cmp r13b, 9
ja loc_3E0C9
lea r15, [rbx+rdi]
inc r15
inc rbx
cmp r15, r11
jb short loc_3DE90
add rdi, rbx
mov r14, rdi
jmp short loc_3DEC0
loc_3DEBD:
mov r14, r15
loc_3DEC0:
mov r15, 1999999999999999h
mov r13d, [rbp+var_2C]
loc_3DECE:
test r12d, r12d
jz loc_3DFA3
cmp r14, r11
jnb loc_3DF8C
movzx edx, byte ptr [r14]
or edx, 20h
cmp edx, 65h ; 'e'
jnz loc_3DF8C
lea rsi, [r14+1]
cmp rsi, r11
jnb loc_3DF8C
movzx edi, byte ptr [rsi]
cmp edi, 2Dh ; '-'
jz short loc_3DF0A
cmp edi, 2Bh ; '+'
jnz short loc_3DF17
loc_3DF0A:
lea rsi, [r14+2]
cmp rsi, r11
jz loc_3DFF6
loc_3DF17:
test ebx, ebx
jle short loc_3DF25
cmp dil, 2Dh ; '-'
jnz loc_3DFFE
loc_3DF25:
xor r14d, r14d
cmp rsi, r11
jnb short loc_3DF78
xor r14d, r14d
loc_3DF30:
mov dl, [rsi]
add dl, 0D0h
cmp dl, 9
ja short loc_3DF78
mov r12, r15
cmp dil, 2Dh ; '-'
jnz short loc_3DF54
mov r15d, r14d
sub r15d, ebx
cmp r15d, 14h
jle short loc_3DF62
jmp loc_3DFD5
loc_3DF54:
lea r15d, [r14+rbx]
cmp r15d, 14h
jg loc_3DFFE
loc_3DF62:
movzx edx, dl
lea r14d, [r14+r14*4]
lea r14d, [rdx+r14*2]
inc rsi
cmp rsi, r11
mov r15, r12
jb short loc_3DF30
loc_3DF78:
mov edx, r14d
neg edx
cmp dil, 2Dh ; '-'
cmovnz edx, r14d
add edx, ebx
mov ebx, edx
mov r14, rsi
loc_3DF8C:
test ebx, ebx
jz short loc_3DFBD
js short loc_3DFCD
cmp ebx, 14h
jbe short loc_3DFE1
test rax, rax
jnz short loc_3DFFB
xor edi, edi
jmp loc_3E049
loc_3DFA3:
mov [r8], rsi
mov dword ptr [r9], 21h ; '!'
loc_3DFAD:
xor edi, edi
loc_3DFAF:
mov rax, rdi
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3DFBD:
test r13b, r13b
jz short loc_3DFF6
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_3DFFB
inc rax
jmp short loc_3DFF6
loc_3DFCD:
cmp ebx, 0FFFFFFEDh
jnb short loc_3E02A
mov rsi, r14
loc_3DFD5:
mov [r8], rsi
mov dword ptr [r9], 0
jmp short loc_3DFAD
loc_3DFE1:
inc ebx
loc_3DFE3:
cmp rax, r15
ja short loc_3DFFB
add rax, rax
lea rax, [rax+rax*4]
dec ebx
cmp ebx, 1
jg short loc_3DFE3
loc_3DFF6:
mov rdi, rax
jmp short loc_3E049
loc_3DFFB:
mov rsi, r14
loc_3DFFE:
mov rax, 8000000000000000h
lea rdx, [rax-1]
cmp r10d, 2Dh ; '-'
mov [r8], rsi
mov dword ptr [r9], 22h ; '"'
cmovz rdx, rax
xor edi, edi
neg ecx
sbb rdi, rdi
or rdi, rdx
jmp short loc_3DFAF
loc_3E02A:
neg ebx
lea rdx, d10
mov rsi, [rdx+rbx*8]
xor edx, edx
div rsi
mov rdi, rax
add rdx, rdx
cmp rdx, rsi
sbb rdi, 0FFFFFFFFFFFFFFFFh
loc_3E049:
mov [r8], r14
test ecx, ecx
jz short loc_3E067
cmp r10d, 2Dh ; '-'
jnz short loc_3E086
test rdi, rdi
jz short loc_3E086
mov dword ptr [r9], 22h ; '"'
jmp loc_3DFAD
loc_3E067:
cmp r10d, 2Dh ; '-'
jnz short loc_3E081
test rdi, rdi
js short loc_3E092
loc_3E072:
mov dword ptr [r9], 0
neg rdi
jmp loc_3DFAF
loc_3E081:
test rdi, rdi
js short loc_3E0B0
loc_3E086:
mov dword ptr [r9], 0
jmp loc_3DFAF
loc_3E092:
mov rax, 8000000000000000h
neg rdi
jo short loc_3E0A8
mov dword ptr [r9], 22h ; '"'
loc_3E0A8:
mov rdi, rax
jmp loc_3DFAF
loc_3E0B0:
mov dword ptr [r9], 22h ; '"'
mov rdi, 8000000000000000h
dec rdi
jmp loc_3DFAF
loc_3E0C9:
cmp r15b, 2Eh ; '.'
mov r13d, [rbp+var_2C]
jnz short loc_3E106
lea rdx, [rbx+rdi]
inc rdx
mov r15, 1999999999999999h
loc_3E0E4:
mov r14, rdx
cmp rdx, r11
jnb loc_3DECE
mov dil, [r14]
add dil, 0D0h
lea rdx, [r14+1]
cmp dil, 0Ah
jb short loc_3E0E4
jmp loc_3DECE
loc_3E106:
add rdi, rbx
mov r14, rdi
jmp loc_3DE74
|
long long my_strntoull10rnd_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
int a4,
unsigned __int8 **a5,
int *a6)
{
unsigned long long v6; // r11
long long v7; // rdx
long long v8; // r10
unsigned __int8 *v9; // rax
long long v10; // rdi
unsigned __int8 *i; // r14
unsigned __int8 v12; // dl
int v13; // r12d
_BYTE *v14; // rbx
int v15; // r13d
unsigned __int8 v16; // al
unsigned __int8 v17; // dl
int v18; // eax
bool v19; // r13
unsigned long long v20; // rax
int v21; // ecx
long long v22; // rcx
long long v23; // rdx
unsigned __int8 *v24; // r15
unsigned __int8 *v25; // rdi
char v26; // r15
unsigned long long v27; // r15
unsigned __int8 *v28; // rsi
int v29; // edi
int v30; // r14d
unsigned __int8 v31; // dl
int v32; // edx
int v34; // ebx
unsigned long long v35; // rdx
unsigned long long v36; // rsi
unsigned __int8 *v37; // rdx
unsigned __int8 v38; // di
int v39; // [rsp+0h] [rbp-30h]
bool v40; // [rsp+4h] [rbp-2Ch]
bool v41; // [rsp+4h] [rbp-2Ch]
if ( a3 <= 0 )
goto LABEL_76;
v6 = (unsigned long long)&a2[a3];
v7 = a3 - 1;
while ( 1 )
{
v8 = *a2;
if ( (*(_BYTE *)(*(_QWORD *)&my_charset_latin1[16] + v8 + 1) & 8) == 0 )
break;
++a2;
--v7;
if ( (unsigned long long)a2 >= v6 )
goto LABEL_76;
}
if ( (_DWORD)v8 == 43 || (_DWORD)v8 == 45 )
{
if ( !v7 )
{
a2 = (unsigned __int8 *)v6;
goto LABEL_76;
}
++a2;
}
v9 = a2 + 9;
if ( (unsigned long long)(a2 + 9) > v6 )
v9 = (unsigned __int8 *)v6;
v10 = 0LL;
for ( i = a2; i < v9; ++i )
{
v12 = *i - 48;
if ( v12 > 9u )
break;
v10 = v12 + 10 * v10;
}
if ( (unsigned long long)i >= v6 )
{
*a5 = i;
if ( (_DWORD)v8 != 45 )
goto LABEL_102;
if ( a4 )
{
v21 = 34;
if ( !v10 )
v21 = 0;
*a6 = v21;
return 0LL;
}
goto LABEL_100;
}
v13 = (_DWORD)i - (_DWORD)a2;
v14 = 0LL;
v15 = (int)i;
while ( 1 )
{
v16 = *i;
v17 = *i - 48;
if ( v17 <= 9u )
break;
if ( v16 != 46 )
goto LABEL_26;
if ( v14 )
{
LODWORD(v14) = 0;
v20 = v10;
v19 = 0;
goto LABEL_51;
}
v14 = i + 1;
LABEL_25:
++i;
++v15;
if ( (unsigned long long)i >= v6 )
{
LABEL_26:
v18 = (_DWORD)v14 - (_DWORD)i;
v19 = 0;
if ( !v14 )
v18 = 0;
LODWORD(v14) = v18;
v20 = v10;
goto LABEL_51;
}
}
if ( (unsigned long long)v10 < 0x1999999999999999LL || v10 == 0x1999999999999999LL && v17 <= 5u )
{
v10 = v17 + 10 * v10;
++v13;
goto LABEL_25;
}
v39 = a4;
v40 = v16 >= 0x35u;
v22 = 0LL;
v20 = -1LL;
if ( v10 != 0x1999999999999999LL )
v20 = v10;
LOBYTE(v22) = v10 == 0x1999999999999999LL;
v41 = v10 == 0x1999999999999999LL || v40;
v23 = v22;
v24 = &i[v22];
if ( v14 )
{
LODWORD(v14) = (_DWORD)v14 - (v10 == 0x1999999999999999LL) - v15;
a4 = v39;
if ( (unsigned long long)v24 < v6 )
{
v19 = v41;
do
{
if ( (unsigned __int8)(*v24 - 48) > 9u )
break;
++v24;
}
while ( (unsigned long long)v24 < v6 );
i = v24;
goto LABEL_51;
}
LABEL_49:
i = v24;
LABEL_50:
v19 = v41;
}
else
{
LODWORD(v14) = 0;
a4 = v39;
if ( (unsigned long long)v24 >= v6 )
goto LABEL_49;
v25 = &i[v23];
v14 = 0LL;
while ( 1 )
{
v26 = v14[v23 + (_QWORD)i];
if ( (unsigned __int8)(v26 - 48) > 9u )
break;
v27 = (unsigned long long)&v25[(_QWORD)v14++ + 1];
if ( v27 >= v6 )
{
i = &v25[(_QWORD)v14];
goto LABEL_50;
}
}
v19 = v41;
if ( v26 == 46 )
{
v37 = &v25[(_QWORD)v14 + 1];
do
{
i = v37;
if ( (unsigned long long)v37 >= v6 )
break;
v38 = *v37++ - 48;
}
while ( v38 < 0xAu );
}
else
{
i = &v25[(_QWORD)v14];
}
}
LABEL_51:
if ( !v13 )
{
LABEL_76:
*a5 = a2;
*a6 = 33;
return 0LL;
}
if ( (unsigned long long)i >= v6 )
goto LABEL_71;
if ( (*i | 0x20) != 0x65 )
goto LABEL_71;
v28 = i + 1;
if ( (unsigned long long)(i + 1) >= v6 )
goto LABEL_71;
v29 = *v28;
if ( v29 == 45 || v29 == 43 )
{
v28 = i + 2;
if ( i + 2 == (unsigned __int8 *)v6 )
{
LABEL_88:
v10 = v20;
LABEL_94:
*a5 = i;
if ( a4 )
{
if ( (_DWORD)v8 == 45 && v10 )
{
*a6 = 34;
return 0LL;
}
LABEL_102:
*a6 = 0;
return v10;
}
if ( (_DWORD)v8 != 45 )
{
if ( v10 < 0 )
{
*a6 = 34;
return 0x7FFFFFFFFFFFFFFFLL;
}
goto LABEL_102;
}
if ( v10 < 0 )
{
if ( !__OFSUB__(-v10, 1LL) )
*a6 = 34;
return 0x8000000000000000LL;
}
LABEL_100:
*a6 = 0;
return -v10;
}
}
if ( (int)v14 > 0 && (_BYTE)v29 != 45 )
goto LABEL_90;
v30 = 0;
if ( (unsigned long long)v28 < v6 )
{
v30 = 0;
do
{
v31 = *v28 - 48;
if ( v31 > 9u )
break;
if ( (_BYTE)v29 == 45 )
{
if ( v30 - (int)v14 > 20 )
goto LABEL_84;
}
else if ( v30 + (int)v14 > 20 )
{
goto LABEL_90;
}
v30 = v31 + 10 * v30;
++v28;
}
while ( (unsigned long long)v28 < v6 );
}
v32 = -v30;
if ( (_BYTE)v29 != 45 )
v32 = v30;
LODWORD(v14) = (_DWORD)v14 + v32;
i = v28;
LABEL_71:
if ( !(_DWORD)v14 )
{
if ( v19 )
{
if ( v20 == -1LL )
goto LABEL_89;
++v20;
}
goto LABEL_88;
}
if ( (int)v14 < 0 )
{
if ( (unsigned int)v14 < 0xFFFFFFED )
{
v28 = i;
LABEL_84:
*a5 = v28;
*a6 = 0;
return 0LL;
}
v36 = d10[-(int)v14];
v10 = v20 / v36 - ((2 * (v20 % v36) < v36) - 1LL);
goto LABEL_94;
}
if ( (unsigned int)v14 <= 0x14 )
{
v34 = (_DWORD)v14 + 1;
while ( v20 <= 0x1999999999999999LL )
{
v20 *= 10LL;
if ( --v34 <= 1 )
goto LABEL_88;
}
}
else if ( !v20 )
{
v10 = 0LL;
goto LABEL_94;
}
LABEL_89:
v28 = i;
LABEL_90:
v35 = 0x7FFFFFFFFFFFFFFFLL;
*a5 = v28;
*a6 = 34;
if ( (_DWORD)v8 == 45 )
v35 = 0x8000000000000000LL;
return v35 | -(long long)(a4 != 0);
}
|
my_strntoull10rnd_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
TEST RDX,RDX
JLE 0x0013dfa3
LEA R11,[RSI + RDX*0x1]
LEA RAX,[0x41caf0]
MOV RAX,qword ptr [RAX + 0x40]
DEC RDX
LAB_0013dcf0:
MOVZX R10D,byte ptr [RSI]
TEST byte ptr [RAX + R10*0x1 + 0x1],0x8
JZ 0x0013dd0c
INC RSI
DEC RDX
CMP RSI,R11
JC 0x0013dcf0
JMP 0x0013dfa3
LAB_0013dd0c:
CMP R10D,0x2b
JZ 0x0013dd18
CMP R10D,0x2d
JNZ 0x0013dd24
LAB_0013dd18:
TEST RDX,RDX
JZ 0x0013ddfb
INC RSI
LAB_0013dd24:
LEA RAX,[RSI + 0x9]
CMP RAX,R11
CMOVA RAX,R11
XOR EDI,EDI
MOV R14,RSI
CMP RSI,RAX
JNC 0x0013dd57
LAB_0013dd39:
MOV DL,byte ptr [R14]
ADD DL,0xd0
CMP DL,0x9
JA 0x0013dd57
LEA RDI,[RDI + RDI*0x4]
MOVZX EDX,DL
LEA RDI,[RDX + RDI*0x2]
INC R14
CMP R14,RAX
JC 0x0013dd39
LAB_0013dd57:
CMP R14,R11
JNC 0x0013ddd1
MOV R15,0x1999999999999999
MOV R12D,R14D
SUB R12D,ESI
XOR EBX,EBX
MOV R13D,R14D
LAB_0013dd71:
MOV AL,byte ptr [R14]
LEA EDX,[RAX + -0x30]
CMP DL,0x9
JA 0x0013dda0
CMP RDI,R15
JC 0x0013dd90
JNZ 0x0013de10
CMP DL,0x5
JA 0x0013de10
LAB_0013dd90:
LEA RAX,[RDI + RDI*0x4]
MOVZX EDX,DL
LEA RDI,[RDX + RAX*0x2]
INC R12D
JMP 0x0013ddad
LAB_0013dda0:
CMP AL,0x2e
JNZ 0x0013ddb8
TEST RBX,RBX
JNZ 0x0013de03
LEA RBX,[R14 + 0x1]
LAB_0013ddad:
INC R14
INC R13D
CMP R14,R11
JC 0x0013dd71
LAB_0013ddb8:
MOV EAX,EBX
SUB EAX,R14D
XOR R13D,R13D
TEST RBX,RBX
CMOVZ EAX,R13D
MOV EBX,EAX
MOV RAX,RDI
JMP 0x0013dece
LAB_0013ddd1:
MOV qword ptr [R8],R14
CMP R10D,0x2d
JNZ 0x0013e086
TEST ECX,ECX
JZ 0x0013e072
XOR EAX,EAX
TEST RDI,RDI
MOV ECX,0x22
CMOVZ ECX,EAX
MOV dword ptr [R9],ECX
JMP 0x0013dfad
LAB_0013ddfb:
MOV RSI,R11
JMP 0x0013dfa3
LAB_0013de03:
XOR EBX,EBX
MOV RAX,RDI
XOR R13D,R13D
JMP 0x0013dece
LAB_0013de10:
MOV dword ptr [RBP + -0x30],ECX
CMP AL,0x35
SETNC AL
MOV dword ptr [RBP + -0x2c],EAX
XOR ECX,ECX
CMP RDI,R15
MOV RAX,-0x1
CMOVNZ RAX,RDI
SETZ CL
MOV EDX,dword ptr [RBP + -0x2c]
OR DL,CL
MOV dword ptr [RBP + -0x2c],EDX
MOV RDX,RCX
MOV RCX,R15
LEA R15,[R14 + RDX*0x1]
TEST RBX,RBX
JZ 0x0013de80
XOR EDX,EDX
CMP RDI,RCX
SETZ DL
SUB EBX,EDX
SUB EBX,R13D
CMP R15,R11
MOV ECX,dword ptr [RBP + -0x30]
JNC 0x0013debd
MOV R13D,dword ptr [RBP + -0x2c]
LAB_0013de5e:
MOV DL,byte ptr [R15]
ADD DL,0xd0
CMP DL,0x9
JA 0x0013de71
INC R15
CMP R15,R11
JC 0x0013de5e
LAB_0013de71:
MOV R14,R15
LAB_0013de74:
MOV R15,0x1999999999999999
JMP 0x0013dece
LAB_0013de80:
XOR EBX,EBX
CMP R15,R11
MOV ECX,dword ptr [RBP + -0x30]
JNC 0x0013debd
LEA RDI,[R14 + RDX*0x1]
XOR EBX,EBX
LAB_0013de90:
LEA R15,[RDX + RBX*0x1]
MOV R15B,byte ptr [R14 + R15*0x1]
LEA R13D,[R15 + -0x30]
CMP R13B,0x9
JA 0x0013e0c9
LEA R15,[RBX + RDI*0x1]
INC R15
INC RBX
CMP R15,R11
JC 0x0013de90
ADD RDI,RBX
MOV R14,RDI
JMP 0x0013dec0
LAB_0013debd:
MOV R14,R15
LAB_0013dec0:
MOV R15,0x1999999999999999
MOV R13D,dword ptr [RBP + -0x2c]
LAB_0013dece:
TEST R12D,R12D
JZ 0x0013dfa3
CMP R14,R11
JNC 0x0013df8c
MOVZX EDX,byte ptr [R14]
OR EDX,0x20
CMP EDX,0x65
JNZ 0x0013df8c
LEA RSI,[R14 + 0x1]
CMP RSI,R11
JNC 0x0013df8c
MOVZX EDI,byte ptr [RSI]
CMP EDI,0x2d
JZ 0x0013df0a
CMP EDI,0x2b
JNZ 0x0013df17
LAB_0013df0a:
LEA RSI,[R14 + 0x2]
CMP RSI,R11
JZ 0x0013dff6
LAB_0013df17:
TEST EBX,EBX
JLE 0x0013df25
CMP DIL,0x2d
JNZ 0x0013dffe
LAB_0013df25:
XOR R14D,R14D
CMP RSI,R11
JNC 0x0013df78
XOR R14D,R14D
LAB_0013df30:
MOV DL,byte ptr [RSI]
ADD DL,0xd0
CMP DL,0x9
JA 0x0013df78
MOV R12,R15
CMP DIL,0x2d
JNZ 0x0013df54
MOV R15D,R14D
SUB R15D,EBX
CMP R15D,0x14
JLE 0x0013df62
JMP 0x0013dfd5
LAB_0013df54:
LEA R15D,[R14 + RBX*0x1]
CMP R15D,0x14
JG 0x0013dffe
LAB_0013df62:
MOVZX EDX,DL
LEA R14D,[R14 + R14*0x4]
LEA R14D,[RDX + R14*0x2]
INC RSI
CMP RSI,R11
MOV R15,R12
JC 0x0013df30
LAB_0013df78:
MOV EDX,R14D
NEG EDX
CMP DIL,0x2d
CMOVNZ EDX,R14D
ADD EDX,EBX
MOV EBX,EDX
MOV R14,RSI
LAB_0013df8c:
TEST EBX,EBX
JZ 0x0013dfbd
JS 0x0013dfcd
CMP EBX,0x14
JBE 0x0013dfe1
TEST RAX,RAX
JNZ 0x0013dffb
XOR EDI,EDI
JMP 0x0013e049
LAB_0013dfa3:
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x21
LAB_0013dfad:
XOR EDI,EDI
LAB_0013dfaf:
MOV RAX,RDI
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013dfbd:
TEST R13B,R13B
JZ 0x0013dff6
CMP RAX,-0x1
JZ 0x0013dffb
INC RAX
JMP 0x0013dff6
LAB_0013dfcd:
CMP EBX,-0x13
JNC 0x0013e02a
MOV RSI,R14
LAB_0013dfd5:
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x0
JMP 0x0013dfad
LAB_0013dfe1:
INC EBX
LAB_0013dfe3:
CMP RAX,R15
JA 0x0013dffb
ADD RAX,RAX
LEA RAX,[RAX + RAX*0x4]
DEC EBX
CMP EBX,0x1
JG 0x0013dfe3
LAB_0013dff6:
MOV RDI,RAX
JMP 0x0013e049
LAB_0013dffb:
MOV RSI,R14
LAB_0013dffe:
MOV RAX,-0x8000000000000000
LEA RDX,[RAX + -0x1]
CMP R10D,0x2d
MOV qword ptr [R8],RSI
MOV dword ptr [R9],0x22
CMOVZ RDX,RAX
XOR EDI,EDI
NEG ECX
SBB RDI,RDI
OR RDI,RDX
JMP 0x0013dfaf
LAB_0013e02a:
NEG EBX
LEA RDX,[0x2a9270]
MOV RSI,qword ptr [RDX + RBX*0x8]
XOR EDX,EDX
DIV RSI
MOV RDI,RAX
ADD RDX,RDX
CMP RDX,RSI
SBB RDI,-0x1
LAB_0013e049:
MOV qword ptr [R8],R14
TEST ECX,ECX
JZ 0x0013e067
CMP R10D,0x2d
JNZ 0x0013e086
TEST RDI,RDI
JZ 0x0013e086
MOV dword ptr [R9],0x22
JMP 0x0013dfad
LAB_0013e067:
CMP R10D,0x2d
JNZ 0x0013e081
TEST RDI,RDI
JS 0x0013e092
LAB_0013e072:
MOV dword ptr [R9],0x0
NEG RDI
JMP 0x0013dfaf
LAB_0013e081:
TEST RDI,RDI
JS 0x0013e0b0
LAB_0013e086:
MOV dword ptr [R9],0x0
JMP 0x0013dfaf
LAB_0013e092:
MOV RAX,-0x8000000000000000
NEG RDI
JO 0x0013e0a8
MOV dword ptr [R9],0x22
LAB_0013e0a8:
MOV RDI,RAX
JMP 0x0013dfaf
LAB_0013e0b0:
MOV dword ptr [R9],0x22
MOV RDI,-0x8000000000000000
DEC RDI
JMP 0x0013dfaf
LAB_0013e0c9:
CMP R15B,0x2e
MOV R13D,dword ptr [RBP + -0x2c]
JNZ 0x0013e106
LEA RDX,[RBX + RDI*0x1]
INC RDX
MOV R15,0x1999999999999999
LAB_0013e0e4:
MOV R14,RDX
CMP RDX,R11
JNC 0x0013dece
MOV DIL,byte ptr [R14]
ADD DIL,0xd0
LEA RDX,[R14 + 0x1]
CMP DIL,0xa
JC 0x0013e0e4
JMP 0x0013dece
LAB_0013e106:
ADD RDI,RBX
MOV R14,RDI
JMP 0x0013de74
|
ulong my_strntoull10rnd_8bit
(int8 param_1,byte *param_2,long param_3,int param_4,ulong *param_5,
int4 *param_6)
{
byte *pbVar1;
byte bVar2;
byte bVar3;
long lVar4;
uint uVar5;
byte *pbVar6;
int4 uVar7;
ulong uVar8;
byte bVar9;
int iVar10;
ulong uVar11;
ulong uVar12;
byte *pbVar13;
ulong uVar14;
int iVar15;
byte *pbVar16;
byte *pbVar17;
bool bVar18;
if (param_3 < 1) {
LAB_0013dfa3:
*param_5 = (ulong)param_2;
*param_6 = 0x21;
return 0;
}
pbVar1 = param_2 + param_3;
param_3 = param_3 + -1;
pbVar13 = param_2;
while (bVar3 = *pbVar13, (PTR_ctype_latin1_0041cb30[(ulong)bVar3 + 1] & 8) != 0) {
param_2 = pbVar13 + 1;
param_3 = param_3 + -1;
pbVar13 = param_2;
if (pbVar1 <= param_2) goto LAB_0013dfa3;
}
if ((bVar3 == 0x2b) || (bVar3 == 0x2d)) {
param_2 = pbVar1;
if (param_3 == 0) goto LAB_0013dfa3;
pbVar13 = pbVar13 + 1;
}
pbVar6 = pbVar13 + 9;
if (pbVar1 < pbVar13 + 9) {
pbVar6 = pbVar1;
}
uVar11 = 0;
for (pbVar16 = pbVar13; (pbVar16 < pbVar6 && ((byte)(*pbVar16 - 0x30) < 10));
pbVar16 = pbVar16 + 1) {
uVar11 = (ulong)(byte)(*pbVar16 - 0x30) + uVar11 * 10;
}
if (pbVar1 <= pbVar16) {
*param_5 = (ulong)pbVar16;
if (bVar3 == 0x2d) {
if (param_4 != 0) {
uVar7 = 0x22;
if (uVar11 == 0) {
uVar7 = 0;
}
*param_6 = uVar7;
return 0;
}
goto LAB_0013e072;
}
goto LAB_0013e086;
}
iVar15 = (int)pbVar16 - (int)pbVar13;
pbVar6 = (byte *)0x0;
uVar12 = (ulong)pbVar16 & 0xffffffff;
uVar14 = uVar11;
LAB_0013dd71:
bVar2 = *pbVar16;
bVar9 = bVar2 - 0x30;
if (9 < bVar9) {
if (bVar2 != 0x2e) goto LAB_0013ddb8;
if (pbVar6 == (byte *)0x0) {
pbVar6 = pbVar16 + 1;
goto LAB_0013ddad;
}
uVar12 = 0;
bVar18 = false;
uVar11 = uVar14;
pbVar17 = pbVar16;
goto LAB_0013dece;
}
if ((uVar14 < 0x1999999999999999) || ((uVar14 == 0x1999999999999999 && (bVar9 < 6))))
goto LAB_0013dd90;
bVar18 = uVar14 == 0x1999999999999999;
uVar11 = 0xffffffffffffffff;
if (!bVar18) {
uVar11 = uVar14;
}
uVar8 = (ulong)bVar18;
bVar18 = 0x34 < bVar2 || bVar18;
pbVar17 = pbVar16 + uVar8;
if (pbVar6 != (byte *)0x0) {
uVar12 = (ulong)(((int)pbVar6 - (uint)(uVar14 == 0x1999999999999999)) - (int)uVar12);
for (; (pbVar17 < pbVar1 && ((byte)(*pbVar17 - 0x30) < 10)); pbVar17 = pbVar17 + 1) {
}
goto LAB_0013dece;
}
uVar12 = 0;
if (pbVar1 <= pbVar17) goto LAB_0013dece;
uVar12 = 0;
goto LAB_0013de90;
while (lVar4 = uVar12 + uVar8, uVar12 = uVar12 + 1, pbVar16 + lVar4 + 1 < pbVar1) {
LAB_0013de90:
if (9 < (byte)(pbVar16[uVar8 + uVar12] - 0x30)) {
if (pbVar16[uVar8 + uVar12] != 0x2e) {
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_0013dece;
}
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_0013e0e4;
}
}
pbVar17 = pbVar16 + uVar12 + uVar8;
goto LAB_0013dece;
LAB_0013dd90:
uVar14 = (ulong)bVar9 + uVar14 * 10;
iVar15 = iVar15 + 1;
LAB_0013ddad:
pbVar16 = pbVar16 + 1;
uVar12 = (ulong)((int)uVar12 + 1);
if (pbVar1 <= pbVar16) goto LAB_0013ddb8;
goto LAB_0013dd71;
LAB_0013ddb8:
uVar5 = (int)pbVar6 - (int)pbVar16;
bVar18 = false;
if (pbVar6 == (byte *)0x0) {
uVar5 = 0;
}
uVar12 = (ulong)uVar5;
uVar11 = uVar14;
pbVar17 = pbVar16;
goto LAB_0013dece;
while ((byte)(*pbVar17 - 0x30) < 10) {
LAB_0013e0e4:
pbVar17 = pbVar17 + 1;
if (pbVar1 <= pbVar17) break;
}
LAB_0013dece:
uVar5 = (uint)uVar12;
param_2 = pbVar13;
if (iVar15 == 0) goto LAB_0013dfa3;
if (((pbVar17 < pbVar1) && ((*pbVar17 | 0x20) == 0x65)) &&
(pbVar13 = pbVar17 + 1, pbVar13 < pbVar1)) {
bVar2 = *pbVar13;
if (((bVar2 != 0x2d) && (bVar2 != 0x2b)) || (pbVar13 = pbVar17 + 2, pbVar13 != pbVar1)) {
if ((0 < (int)uVar5) && (bVar2 != 0x2d)) goto LAB_0013dffe;
iVar15 = 0;
if (pbVar13 < pbVar1) {
iVar15 = 0;
do {
if (9 < (byte)(*pbVar13 - 0x30)) break;
if (bVar2 == 0x2d) {
if (0x14 < (int)(iVar15 - uVar5)) goto LAB_0013dfd5;
}
else if (0x14 < (int)(iVar15 + uVar5)) goto LAB_0013dffe;
iVar15 = (uint)(byte)(*pbVar13 - 0x30) + iVar15 * 10;
pbVar13 = pbVar13 + 1;
} while (pbVar13 < pbVar1);
}
iVar10 = -iVar15;
if (bVar2 != 0x2d) {
iVar10 = iVar15;
}
uVar5 = iVar10 + uVar5;
pbVar17 = pbVar13;
goto LAB_0013df8c;
}
}
else {
LAB_0013df8c:
pbVar13 = pbVar17;
pbVar17 = pbVar13;
if (uVar5 == 0) {
if (bVar18) {
if (uVar11 == 0xffffffffffffffff) goto LAB_0013dffe;
uVar11 = uVar11 + 1;
}
}
else if ((int)uVar5 < 0) {
if (uVar5 < 0xffffffed) {
LAB_0013dfd5:
*param_5 = (ulong)pbVar13;
*param_6 = 0;
return 0;
}
uVar14 = *(ulong *)(d10 + (ulong)-uVar5 * 8);
uVar11 = (uVar11 / uVar14 + 1) - (ulong)((uVar11 % uVar14) * 2 < uVar14);
}
else if (uVar5 < 0x15) {
iVar15 = uVar5 + 1;
do {
if (0x1999999999999999 < uVar11) goto LAB_0013dffe;
uVar11 = uVar11 * 10;
iVar15 = iVar15 + -1;
} while (1 < iVar15);
}
else {
if (uVar11 != 0) {
LAB_0013dffe:
uVar11 = 0x7fffffffffffffff;
*param_5 = (ulong)pbVar13;
*param_6 = 0x22;
if (bVar3 == 0x2d) {
uVar11 = 0x8000000000000000;
}
return -(ulong)(param_4 != 0) | uVar11;
}
uVar11 = 0;
}
}
*param_5 = (ulong)pbVar17;
if (param_4 == 0) {
if (bVar3 == 0x2d) {
if ((long)uVar11 < 0) {
*param_6 = 0x22;
return 0x8000000000000000;
}
LAB_0013e072:
*param_6 = 0;
return -uVar11;
}
if ((long)uVar11 < 0) {
*param_6 = 0x22;
return 0x7fffffffffffffff;
}
}
else if ((bVar3 == 0x2d) && (uVar11 != 0)) {
*param_6 = 0x22;
return 0;
}
LAB_0013e086:
*param_6 = 0;
return uVar11;
}
|
|
13,339
|
string_buffer_end
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue string_buffer_end(StringBuffer *s)
{
JSString *str;
str = s->str;
if (s->error_status)
return JS_EXCEPTION;
if (s->len == 0) {
js_free(s->ctx, str);
s->str = NULL;
return JS_AtomToString(s->ctx, JS_ATOM_empty_string);
}
if (s->len < s->size) {
/* smaller size so js_realloc should not fail, but OK if it does */
/* XXX: should add some slack to avoid unnecessary calls */
/* XXX: might need to use malloc+free to ensure smaller size */
str = js_realloc_rt(s->ctx->rt, str, sizeof(JSString) +
(s->len << s->is_wide_char) + 1 - s->is_wide_char);
if (str == NULL)
str = s->str;
s->str = str;
}
if (!s->is_wide_char)
str->u.str8[s->len] = 0;
#ifdef DUMP_LEAKS
list_add_tail(&str->link, &s->ctx->rt->string_list);
#endif
str->is_wide_char = s->is_wide_char;
str->len = s->len;
s->str = NULL;
return JS_MKPTR(JS_TAG_STRING, str);
}
|
O1
|
c
|
string_buffer_end:
pushq %rbx
subq $0x10, %rsp
cmpl $0x0, 0x1c(%rdi)
je 0x3284d
movl $0x0, 0x8(%rsp)
movl $0x6, %edx
jmp 0x3290f
movq %rdi, %rbx
movq 0x8(%rdi), %rsi
movl 0x10(%rdi), %eax
testl %eax, %eax
je 0x328df
cmpl 0x14(%rbx), %eax
jge 0x32890
movq (%rbx), %rdx
movslq 0x18(%rbx), %rcx
shll %cl, %eax
movq 0x18(%rdx), %rdi
movslq %eax, %rdx
subq %rcx, %rdx
addq $0x19, %rdx
callq 0x1beae
movq %rax, %rsi
testq %rax, %rax
jne 0x3288c
movq 0x8(%rbx), %rsi
movq %rsi, 0x8(%rbx)
cmpl $0x0, 0x18(%rbx)
jne 0x3289f
movslq 0x10(%rbx), %rax
movb $0x0, 0x18(%rsi,%rax)
movl 0x18(%rbx), %eax
shll $0x1f, %eax
movabsq $-0x80000001, %rcx # imm = 0xFFFFFFFF7FFFFFFF
andq 0x4(%rsi), %rcx
orq %rax, %rcx
movq %rcx, 0x4(%rsi)
movl 0x10(%rbx), %eax
andl $0x7fffffff, %eax # imm = 0x7FFFFFFF
andq $-0x80000000, %rcx # imm = 0x80000000
orq %rax, %rcx
movq %rcx, 0x4(%rsi)
movq $0x0, 0x8(%rbx)
movq %rsi, 0x8(%rsp)
jmp 0x32908
movq (%rbx), %rdi
callq 0x1bf85
movq $0x0, 0x8(%rbx)
movq (%rbx), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %rax
movq 0x178(%rax), %rax
incl (%rax)
movq %rax, 0x8(%rsp)
movq $-0x7, %rdx
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
retq
|
string_buffer_end:
push rbx
sub rsp, 10h
cmp dword ptr [rdi+1Ch], 0
jz short loc_3284D
mov dword ptr [rsp+18h+var_10], 0
mov edx, 6
jmp loc_3290F
loc_3284D:
mov rbx, rdi
mov rsi, [rdi+8]
mov eax, [rdi+10h]
test eax, eax
jz loc_328DF
cmp eax, [rbx+14h]
jge short loc_32890
mov rdx, [rbx]
movsxd rcx, dword ptr [rbx+18h]
shl eax, cl
mov rdi, [rdx+18h]
movsxd rdx, eax
sub rdx, rcx
add rdx, 19h
call js_realloc_rt
mov rsi, rax
test rax, rax
jnz short loc_3288C
mov rsi, [rbx+8]
loc_3288C:
mov [rbx+8], rsi
loc_32890:
cmp dword ptr [rbx+18h], 0
jnz short loc_3289F
movsxd rax, dword ptr [rbx+10h]
mov byte ptr [rsi+rax+18h], 0
loc_3289F:
mov eax, [rbx+18h]
shl eax, 1Fh
mov rcx, 0FFFFFFFF7FFFFFFFh
and rcx, [rsi+4]
or rcx, rax
mov [rsi+4], rcx
mov eax, [rbx+10h]
and eax, 7FFFFFFFh
and rcx, 0FFFFFFFF80000000h
or rcx, rax
mov [rsi+4], rcx
mov qword ptr [rbx+8], 0
mov [rsp+18h+var_10], rsi
jmp short loc_32908
loc_328DF:
mov rdi, [rbx]
call js_free
mov qword ptr [rbx+8], 0
mov rax, [rbx]
mov rax, [rax+18h]
mov rax, [rax+68h]
mov rax, [rax+178h]
inc dword ptr [rax]
mov [rsp+18h+var_10], rax
loc_32908:
mov rdx, 0FFFFFFFFFFFFFFF9h
loc_3290F:
mov rax, [rsp+18h+var_10]
add rsp, 10h
pop rbx
retn
|
_DWORD * string_buffer_end(long long a1)
{
long long v1; // rsi
int v2; // eax
unsigned long long v3; // rcx
_DWORD *v4; // rax
long long v6; // [rsp+8h] [rbp-10h]
if ( *(_DWORD *)(a1 + 28) )
{
LODWORD(v6) = 0;
}
else
{
v1 = *(_QWORD *)(a1 + 8);
v2 = *(_DWORD *)(a1 + 16);
if ( v2 )
{
if ( v2 < *(_DWORD *)(a1 + 20) )
{
v1 = js_realloc_rt(
*(_QWORD *)(*(_QWORD *)a1 + 24LL),
v1,
(v2 << *(_DWORD *)(a1 + 24)) - (long long)*(int *)(a1 + 24) + 25);
if ( !v1 )
v1 = *(_QWORD *)(a1 + 8);
*(_QWORD *)(a1 + 8) = v1;
}
if ( !*(_DWORD *)(a1 + 24) )
*(_BYTE *)(v1 + *(int *)(a1 + 16) + 24) = 0;
v3 = (unsigned int)(*(_DWORD *)(a1 + 24) << 31) | *(_QWORD *)(v1 + 4) & 0xFFFFFFFF7FFFFFFFLL;
*(_QWORD *)(v1 + 4) = v3;
*(_QWORD *)(v1 + 4) = *(_DWORD *)(a1 + 16) & 0x7FFFFFFF | v3 & 0xFFFFFFFF80000000LL;
*(_QWORD *)(a1 + 8) = 0LL;
return (_DWORD *)v1;
}
else
{
js_free(*(_QWORD *)a1, v1);
*(_QWORD *)(a1 + 8) = 0LL;
v4 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)a1 + 24LL) + 104LL) + 376LL);
++*v4;
return v4;
}
}
return (_DWORD *)v6;
}
|
string_buffer_end:
PUSH RBX
SUB RSP,0x10
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x0013284d
MOV dword ptr [RSP + 0x8],0x0
MOV EDX,0x6
JMP 0x0013290f
LAB_0013284d:
MOV RBX,RDI
MOV RSI,qword ptr [RDI + 0x8]
MOV EAX,dword ptr [RDI + 0x10]
TEST EAX,EAX
JZ 0x001328df
CMP EAX,dword ptr [RBX + 0x14]
JGE 0x00132890
MOV RDX,qword ptr [RBX]
MOVSXD RCX,dword ptr [RBX + 0x18]
SHL EAX,CL
MOV RDI,qword ptr [RDX + 0x18]
MOVSXD RDX,EAX
SUB RDX,RCX
ADD RDX,0x19
CALL 0x0011beae
MOV RSI,RAX
TEST RAX,RAX
JNZ 0x0013288c
MOV RSI,qword ptr [RBX + 0x8]
LAB_0013288c:
MOV qword ptr [RBX + 0x8],RSI
LAB_00132890:
CMP dword ptr [RBX + 0x18],0x0
JNZ 0x0013289f
MOVSXD RAX,dword ptr [RBX + 0x10]
MOV byte ptr [RSI + RAX*0x1 + 0x18],0x0
LAB_0013289f:
MOV EAX,dword ptr [RBX + 0x18]
SHL EAX,0x1f
MOV RCX,-0x80000001
AND RCX,qword ptr [RSI + 0x4]
OR RCX,RAX
MOV qword ptr [RSI + 0x4],RCX
MOV EAX,dword ptr [RBX + 0x10]
AND EAX,0x7fffffff
AND RCX,-0x80000000
OR RCX,RAX
MOV qword ptr [RSI + 0x4],RCX
MOV qword ptr [RBX + 0x8],0x0
MOV qword ptr [RSP + 0x8],RSI
JMP 0x00132908
LAB_001328df:
MOV RDI,qword ptr [RBX]
CALL 0x0011bf85
MOV qword ptr [RBX + 0x8],0x0
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV RAX,qword ptr [RAX + 0x178]
INC dword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
LAB_00132908:
MOV RDX,-0x7
LAB_0013290f:
MOV RAX,qword ptr [RSP + 0x8]
ADD RSP,0x10
POP RBX
RET
|
int1 [16] string_buffer_end(long *param_1)
{
int iVar1;
ulong uVar2;
ulong uVar3;
int8 uVar4;
int1 auVar5 [16];
int *local_10;
if (*(int *)((long)param_1 + 0x1c) == 0) {
local_10 = (int *)param_1[1];
iVar1 = (int)param_1[2];
if (iVar1 == 0) {
js_free(*param_1);
param_1[1] = 0;
local_10 = *(int **)(*(long *)(*(long *)(*param_1 + 0x18) + 0x68) + 0x178);
*local_10 = *local_10 + 1;
}
else {
if (iVar1 < *(int *)((long)param_1 + 0x14)) {
local_10 = (int *)js_realloc_rt(*(int8 *)(*param_1 + 0x18),local_10,
((long)(iVar1 << ((byte)(int)param_1[3] & 0x1f)) -
(long)(int)param_1[3]) + 0x19);
if (local_10 == (int *)0x0) {
local_10 = (int *)param_1[1];
}
param_1[1] = (long)local_10;
}
if ((int)param_1[3] == 0) {
*(int1 *)((long)local_10 + (long)(int)param_1[2] + 0x18) = 0;
}
uVar3 = (ulong)(uint)((int)param_1[3] << 0x1f);
uVar2 = *(ulong *)(local_10 + 1);
*(ulong *)(local_10 + 1) = uVar2 & 0xffffffff7fffffff | uVar3;
*(ulong *)(local_10 + 1) =
uVar2 & 0xffffffff00000000 | uVar3 | (ulong)(*(uint *)(param_1 + 2) & 0x7fffffff);
param_1[1] = 0;
}
uVar4 = 0xfffffffffffffff9;
}
else {
local_10 = (int *)((ulong)local_10 & 0xffffffff00000000);
uVar4 = 6;
}
auVar5._8_8_ = uVar4;
auVar5._0_8_ = local_10;
return auVar5;
}
|
|
13,340
|
string_buffer_end
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue string_buffer_end(StringBuffer *s)
{
JSString *str;
str = s->str;
if (s->error_status)
return JS_EXCEPTION;
if (s->len == 0) {
js_free(s->ctx, str);
s->str = NULL;
return JS_AtomToString(s->ctx, JS_ATOM_empty_string);
}
if (s->len < s->size) {
/* smaller size so js_realloc should not fail, but OK if it does */
/* XXX: should add some slack to avoid unnecessary calls */
/* XXX: might need to use malloc+free to ensure smaller size */
str = js_realloc_rt(s->ctx->rt, str, sizeof(JSString) +
(s->len << s->is_wide_char) + 1 - s->is_wide_char);
if (str == NULL)
str = s->str;
s->str = str;
}
if (!s->is_wide_char)
str->u.str8[s->len] = 0;
#ifdef DUMP_LEAKS
list_add_tail(&str->link, &s->ctx->rt->string_list);
#endif
str->is_wide_char = s->is_wide_char;
str->len = s->len;
s->str = NULL;
return JS_MKPTR(JS_TAG_STRING, str);
}
|
O2
|
c
|
string_buffer_end:
cmpl $0x0, 0x1c(%rdi)
je 0x2bf64
pushq $0x6
popq %rdx
xorl %eax, %eax
retq
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movl 0x10(%rdi), %edx
testl %edx, %edx
je 0x2bff0
cmpl 0x14(%rbx), %edx
jge 0x2bfa4
movq (%rbx), %rsi
movslq 0x18(%rbx), %rcx
shll %cl, %edx
movq 0x18(%rsi), %rdi
movslq %edx, %rdx
subq %rcx, %rdx
addq $0x19, %rdx
movq %rax, %rsi
callq 0x1658d
testq %rax, %rax
jne 0x2bfa0
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rbx)
movl 0x18(%rbx), %ecx
testl %ecx, %ecx
jne 0x2bfb7
movslq 0x10(%rbx), %rcx
movb $0x0, 0x18(%rax,%rcx)
movl 0x18(%rbx), %ecx
movabsq $-0x80000001, %rdx # imm = 0xFFFFFFFF7FFFFFFF
andq 0x4(%rax), %rdx
shll $0x1f, %ecx
orq %rcx, %rdx
movq %rdx, 0x4(%rax)
movl 0x10(%rbx), %ecx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andq $-0x80000000, %rdx # imm = 0x80000000
orq %rcx, %rdx
movq %rdx, 0x4(%rax)
andq $0x0, 0x8(%rbx)
pushq $-0x7
popq %rdx
jmp 0x2c00b
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x166f2
andq $0x0, 0x8(%rbx)
movq (%rbx), %rdi
pushq $0x2f
popq %rsi
callq 0x19e14
popq %rbx
retq
|
string_buffer_end:
cmp dword ptr [rdi+1Ch], 0
jz short loc_2BF64
push 6
pop rdx
xor eax, eax
retn
loc_2BF64:
push rbx
mov rbx, rdi
mov rax, [rdi+8]
mov edx, [rdi+10h]
test edx, edx
jz short loc_2BFF0
cmp edx, [rbx+14h]
jge short loc_2BFA4
mov rsi, [rbx]
movsxd rcx, dword ptr [rbx+18h]
shl edx, cl
mov rdi, [rsi+18h]
movsxd rdx, edx
sub rdx, rcx
add rdx, 19h
mov rsi, rax
call js_realloc_rt
test rax, rax
jnz short loc_2BFA0
mov rax, [rbx+8]
loc_2BFA0:
mov [rbx+8], rax
loc_2BFA4:
mov ecx, [rbx+18h]
test ecx, ecx
jnz short loc_2BFB7
movsxd rcx, dword ptr [rbx+10h]
mov byte ptr [rax+rcx+18h], 0
mov ecx, [rbx+18h]
loc_2BFB7:
mov rdx, 0FFFFFFFF7FFFFFFFh
and rdx, [rax+4]
shl ecx, 1Fh
or rdx, rcx
mov [rax+4], rdx
mov ecx, [rbx+10h]
and ecx, 7FFFFFFFh
and rdx, 0FFFFFFFF80000000h
or rdx, rcx
mov [rax+4], rdx
and qword ptr [rbx+8], 0
push 0FFFFFFFFFFFFFFF9h
pop rdx
jmp short loc_2C00B
loc_2BFF0:
mov rdi, [rbx]
mov rsi, rax
call js_free
and qword ptr [rbx+8], 0
mov rdi, [rbx]
push 2Fh ; '/'
pop rsi
call JS_AtomToString
loc_2C00B:
pop rbx
retn
|
long long string_buffer_end(long long *a1)
{
long long result; // rax
int v2; // edx
int v3; // ecx
unsigned long long v4; // rdx
if ( *((_DWORD *)a1 + 7) )
return 0LL;
result = a1[1];
v2 = *((_DWORD *)a1 + 4);
if ( v2 )
{
if ( v2 < *((_DWORD *)a1 + 5) )
{
result = js_realloc_rt(
*(_QWORD *)(*a1 + 24),
result,
(v2 << *((_DWORD *)a1 + 6)) - (long long)*((int *)a1 + 6) + 25);
if ( !result )
result = a1[1];
a1[1] = result;
}
v3 = *((_DWORD *)a1 + 6);
if ( !v3 )
{
*(_BYTE *)(result + *((int *)a1 + 4) + 24) = 0;
v3 = *((_DWORD *)a1 + 6);
}
v4 = (unsigned int)(v3 << 31) | *(_QWORD *)(result + 4) & 0xFFFFFFFF7FFFFFFFLL;
*(_QWORD *)(result + 4) = v4;
*(_QWORD *)(result + 4) = a1[2] & 0x7FFFFFFF | v4 & 0xFFFFFFFF80000000LL;
a1[1] = 0LL;
}
else
{
js_free(*a1, result);
a1[1] = 0LL;
return JS_AtomToString(*a1, 47);
}
return result;
}
|
string_buffer_end:
CMP dword ptr [RDI + 0x1c],0x0
JZ 0x0012bf64
PUSH 0x6
POP RDX
XOR EAX,EAX
RET
LAB_0012bf64:
PUSH RBX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x8]
MOV EDX,dword ptr [RDI + 0x10]
TEST EDX,EDX
JZ 0x0012bff0
CMP EDX,dword ptr [RBX + 0x14]
JGE 0x0012bfa4
MOV RSI,qword ptr [RBX]
MOVSXD RCX,dword ptr [RBX + 0x18]
SHL EDX,CL
MOV RDI,qword ptr [RSI + 0x18]
MOVSXD RDX,EDX
SUB RDX,RCX
ADD RDX,0x19
MOV RSI,RAX
CALL 0x0011658d
TEST RAX,RAX
JNZ 0x0012bfa0
MOV RAX,qword ptr [RBX + 0x8]
LAB_0012bfa0:
MOV qword ptr [RBX + 0x8],RAX
LAB_0012bfa4:
MOV ECX,dword ptr [RBX + 0x18]
TEST ECX,ECX
JNZ 0x0012bfb7
MOVSXD RCX,dword ptr [RBX + 0x10]
MOV byte ptr [RAX + RCX*0x1 + 0x18],0x0
MOV ECX,dword ptr [RBX + 0x18]
LAB_0012bfb7:
MOV RDX,-0x80000001
AND RDX,qword ptr [RAX + 0x4]
SHL ECX,0x1f
OR RDX,RCX
MOV qword ptr [RAX + 0x4],RDX
MOV ECX,dword ptr [RBX + 0x10]
AND ECX,0x7fffffff
AND RDX,-0x80000000
OR RDX,RCX
MOV qword ptr [RAX + 0x4],RDX
AND qword ptr [RBX + 0x8],0x0
PUSH -0x7
POP RDX
JMP 0x0012c00b
LAB_0012bff0:
MOV RDI,qword ptr [RBX]
MOV RSI,RAX
CALL 0x001166f2
AND qword ptr [RBX + 0x8],0x0
MOV RDI,qword ptr [RBX]
PUSH 0x2f
POP RSI
CALL 0x00119e14
LAB_0012c00b:
POP RBX
RET
|
int1 [16] string_buffer_end(long *param_1)
{
ulong uVar1;
long lVar2;
int iVar3;
int1 auVar4 [16];
if (*(int *)((long)param_1 + 0x1c) != 0) {
return ZEXT816(6) << 0x40;
}
lVar2 = param_1[1];
iVar3 = (int)param_1[2];
if (iVar3 == 0) {
js_free(*param_1,lVar2);
param_1[1] = 0;
auVar4 = JS_AtomToString(*param_1,0x2f);
}
else {
if (iVar3 < *(int *)((long)param_1 + 0x14)) {
lVar2 = js_realloc_rt(*(int8 *)(*param_1 + 0x18),lVar2,
((long)(iVar3 << ((byte)(int)param_1[3] & 0x1f)) - (long)(int)param_1[3]
) + 0x19);
if (lVar2 == 0) {
lVar2 = param_1[1];
}
param_1[1] = lVar2;
}
iVar3 = (int)param_1[3];
if (iVar3 == 0) {
*(int1 *)(lVar2 + 0x18 + (long)(int)param_1[2]) = 0;
iVar3 = (int)param_1[3];
}
uVar1 = *(ulong *)(lVar2 + 4);
*(ulong *)(lVar2 + 4) = uVar1 & 0xffffffff7fffffff | (ulong)(uint)(iVar3 << 0x1f);
*(ulong *)(lVar2 + 4) =
uVar1 & 0xffffffff00000000 | (ulong)(uint)(iVar3 << 0x1f) |
(ulong)(*(uint *)(param_1 + 2) & 0x7fffffff);
param_1[1] = 0;
auVar4._8_8_ = 0xfffffffffffffff9;
auVar4._0_8_ = lVar2;
}
return auVar4;
}
|
|
13,341
|
nglog::CaptureTestOutput(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
|
ng-log[P]ng-log/src/googletest.h
|
static inline void CaptureTestOutput(int fd, const string& filename) {
CHECK((fd == fileno(stdout)) || (fd == fileno(stderr)));
CHECK(s_captured_streams.find(fd) == s_captured_streams.end());
s_captured_streams[fd] = std::make_unique<CapturedStream>(fd, filename);
}
|
O1
|
c
|
nglog::CaptureTestOutput(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movl %edi, %ebp
movl %edi, 0xc(%rsp)
movq 0x31b85(%rip), %rax # 0x45ee0
movq (%rax), %rdi
callq 0x8670
cmpl %ebp, %eax
jne 0x1436b
xorl %ebp, %ebp
jmp 0x14384
movl 0xc(%rsp), %ebp
movq 0x31c12(%rip), %rax # 0x45f88
movq (%rax), %rdi
callq 0x8670
cmpl %eax, %ebp
setne %bpl
testb %bpl, %bpl
jne 0x1447c
movq 0x327dc(%rip), %rdx # 0x46b70
leaq 0x327cd(%rip), %rcx # 0x46b68
movq %rcx, %rax
testq %rdx, %rdx
je 0x143c5
leaq 0x327be(%rip), %rax # 0x46b68
movl 0xc(%rsp), %esi
xorl %edi, %edi
cmpl %esi, 0x20(%rdx)
setl %dil
cmovgeq %rdx, %rax
movq 0x10(%rdx,%rdi,8), %rdx
testq %rdx, %rdx
jne 0x143ae
cmpq %rcx, %rax
je 0x143d7
movl 0xc(%rsp), %ecx
cmpl 0x20(%rax), %ecx
jge 0x144c4
movl $0x28, %edi
callq 0xa980
movq %rax, %r14
movl 0xc(%rsp), %ebp
leaq 0x28(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %rdi
callq 0x17146
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x175e4
movq %r14, 0x10(%rsp)
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x14428
callq 0x8790
leaq 0x32731(%rip), %rdi # 0x46b60
leaq 0xc(%rsp), %rsi
callq 0x17580
movq 0x10(%rsp), %rcx
movq $0x0, 0x10(%rsp)
movq (%rax), %rsi
movq %rcx, (%rax)
testq %rsi, %rsi
je 0x1445a
movq %rax, %rdi
callq 0x172c8
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x1446e
leaq 0x10(%rsp), %rdi
callq 0x172c8
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ecf2(%rip), %rsi # 0x33175
leaq 0x78(%rsp), %r14
movq %r14, %rdi
movl $0x16b, %edx # imm = 0x16B
callq 0x1e61c
movq %r14, %rdi
callq 0x1ad8e
leaq 0x1ed1a(%rip), %rsi # 0x331be
movl $0x3f, %edx
movq %rax, %rdi
callq 0x8720
testb %bpl, %bpl
je 0x1438d
leaq 0x78(%rsp), %rdi
callq 0x1e660
leaq 0x1ecaa(%rip), %rsi # 0x33175
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movl $0x16c, %edx # imm = 0x16C
callq 0x1e61c
movq %r14, %rdi
callq 0x1ad8e
leaq 0x1ed12(%rip), %rsi # 0x331fe
movl $0x46, %edx
movq %rax, %rdi
callq 0x8720
leaq 0x18(%rsp), %rdi
callq 0x1e660
jmp 0x14545
movq %rax, %rbx
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x1453d
leaq 0x10(%rsp), %rdi
callq 0x172c8
jmp 0x1453d
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x14535
callq 0x8790
jmp 0x14535
movq %rax, %rbx
movq %r14, %rdi
callq 0x8790
movq %rbx, %rdi
callq 0x8bb0
movq %r14, %rdi
callq 0x1e660
movq %rax, %rdi
callq 0x16adb
|
_ZN5nglogL17CaptureTestOutputEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push rbx
sub rsp, 0D8h
mov rbx, rsi
mov ebp, edi
mov [rsp+0F8h+var_EC], edi
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fileno
cmp eax, ebp
jnz short loc_1436B
xor ebp, ebp
jmp short loc_14384
loc_1436B:
mov ebp, [rsp+0F8h+var_EC]
mov rax, cs:stderr_ptr
mov rdi, [rax]
call _fileno
cmp ebp, eax
setnz bpl
loc_14384:
test bpl, bpl
jnz loc_1447C
loc_1438D:
mov rdx, cs:qword_46B70
lea rcx, dword_46B68
mov rax, rcx
test rdx, rdx
jz short loc_143C5
lea rax, dword_46B68
mov esi, [rsp+0F8h+var_EC]
loc_143AE:
xor edi, edi
cmp [rdx+20h], esi
setl dil
cmovge rax, rdx
mov rdx, [rdx+rdi*8+10h]
test rdx, rdx
jnz short loc_143AE
loc_143C5:
cmp rax, rcx
jz short loc_143D7
mov ecx, [rsp+0F8h+var_EC]
cmp ecx, [rax+20h]
jge loc_144C4
loc_143D7:
mov edi, 28h ; '('; unsigned __int64
call _Znwm; operator new(ulong)
mov r14, rax
mov ebp, [rsp+0F8h+var_EC]
lea r15, [rsp+0F8h+var_D0]
mov [r15-10h], r15
mov rsi, [rbx]
mov rdx, [rbx+8]
add rdx, rsi
lea rdi, [rsp+0F8h+var_E0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rdx, [rsp+0F8h+var_E0]
mov rdi, r14; this
mov esi, ebp
call _ZN5nglog14CapturedStreamC2EiNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; nglog::CapturedStream::CapturedStream(int,std::string)
mov [rsp+0F8h+var_E8], r14
mov rdi, [rsp+0F8h+var_E0]
cmp rdi, r15
jz short loc_14428
call _free
loc_14428:
lea rdi, _ZN5nglogL18s_captured_streamsE; nglog::s_captured_streams
lea rsi, [rsp+0F8h+var_EC]
call _ZNSt3mapIiSt10unique_ptrIN5nglog14CapturedStreamESt14default_deleteIS2_EESt4lessIiESaISt4pairIKiS5_EEEixERS9_; std::map<int,std::unique_ptr<nglog::CapturedStream>>::operator[](int const&)
mov rcx, [rsp+0F8h+var_E8]
mov [rsp+0F8h+var_E8], 0
mov rsi, [rax]
mov [rax], rcx
test rsi, rsi
jz short loc_1445A
mov rdi, rax
call _ZNKSt14default_deleteIN5nglog14CapturedStreamEEclEPS1_; std::default_delete<nglog::CapturedStream>::operator()(nglog::CapturedStream*)
loc_1445A:
mov rsi, [rsp+0F8h+var_E8]
test rsi, rsi
jz short loc_1446E
lea rdi, [rsp+0F8h+var_E8]
call _ZNKSt14default_deleteIN5nglog14CapturedStreamEEclEPS1_; std::default_delete<nglog::CapturedStream>::operator()(nglog::CapturedStream*)
loc_1446E:
add rsp, 0D8h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_1447C:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+0F8h+var_80]
mov rdi, r14; this
mov edx, 16Bh; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, r14; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedFdF; "Check failed: (fd == fileno(stdout)) ||"...
mov edx, 3Fh ; '?'
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
test bpl, bpl
jz loc_1438D
lea rdi, [rsp+0F8h+var_80]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
loc_144C4:
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+0F8h+var_E0]
mov rdi, r14; this
mov edx, 16Ch; int
call _ZN5nglog15LogMessageFatalC2EPKci; nglog::LogMessageFatal::LogMessageFatal(char const*,int)
mov rdi, r14; this
call _ZN5nglog10LogMessage6streamEv; nglog::LogMessage::stream(void)
lea rsi, aCheckFailedSCa; "Check failed: s_captured_streams.find(f"...
mov edx, 46h ; 'F'
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rdi, [rsp+0F8h+var_E0]; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
jmp short loc_14545
mov rbx, rax
mov rsi, [rsp+arg_8]
test rsi, rsi
jz short loc_1453D
lea rdi, [rsp+arg_8]
call _ZNKSt14default_deleteIN5nglog14CapturedStreamEEclEPS1_; std::default_delete<nglog::CapturedStream>::operator()(nglog::CapturedStream*)
jmp short loc_1453D
mov rbx, rax
mov rdi, [rsp+arg_10]
cmp rdi, r15
jz short loc_14535
call _free
jmp short loc_14535
mov rbx, rax
loc_14535:
mov rdi, r14
call _free
loc_1453D:
mov rdi, rbx
call __Unwind_Resume
loc_14545:
mov rdi, r14; this
call _ZN5nglog15LogMessageFatalD2Ev; nglog::LogMessageFatal::~LogMessageFatal()
mov rdi, rax
call __clang_call_terminate
|
nglog::CapturedStream ** nglog::CaptureTestOutput(int a1, _QWORD *a2)
{
long long v3; // rdx
int *v4; // rax
nglog::CapturedStream *v5; // r14
nglog::CapturedStream **result; // rax
nglog::CapturedStream *v7; // rcx
nglog::CapturedStream *v8; // rsi
long long v9; // rax
long long v10; // rax
int v11; // [rsp+Ch] [rbp-ECh] BYREF
nglog::CapturedStream *v12; // [rsp+10h] [rbp-E8h] BYREF
void *v13[2]; // [rsp+18h] [rbp-E0h] BYREF
_BYTE v14[80]; // [rsp+28h] [rbp-D0h] BYREF
_BYTE v15[128]; // [rsp+78h] [rbp-80h] BYREF
v11 = a1;
if ( (unsigned int)fileno(stdout) != a1 && v11 != (unsigned int)fileno(stderr) )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v15,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
363);
v9 = nglog::LogMessage::stream((nglog::LogMessage *)v15);
std::__ostream_insert<char,std::char_traits<char>>(
v9,
"Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ",
63LL);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v15);
}
v3 = qword_46B70;
v4 = &dword_46B68;
if ( qword_46B70 )
{
v4 = &dword_46B68;
do
{
if ( *(_DWORD *)(v3 + 32) >= v11 )
v4 = (int *)v3;
v3 = *(_QWORD *)(v3 + 8LL * (*(_DWORD *)(v3 + 32) < v11) + 16);
}
while ( v3 );
}
if ( v4 != &dword_46B68 && v11 >= v4[8] )
{
nglog::LogMessageFatal::LogMessageFatal(
(nglog::LogMessageFatal *)v13,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
364);
v10 = nglog::LogMessage::stream((nglog::LogMessage *)v13);
std::__ostream_insert<char,std::char_traits<char>>(
v10,
"Check failed: s_captured_streams.find(fd) == s_captured_streams.end() ",
70LL);
nglog::LogMessageFatal::~LogMessageFatal((nglog::LogMessageFatal *)v13);
}
v5 = (nglog::CapturedStream *)operator new(40LL);
v13[0] = v14;
std::string::_M_construct<char *>(v13, *a2, *a2 + a2[1]);
nglog::CapturedStream::CapturedStream(v5);
v12 = v5;
if ( v13[0] != v14 )
free(v13[0]);
result = (nglog::CapturedStream **)std::map<int,std::unique_ptr<nglog::CapturedStream>>::operator[](
&nglog::s_captured_streams,
&v11);
v7 = v12;
v12 = 0LL;
v8 = *result;
*result = v7;
if ( v8 )
result = (nglog::CapturedStream **)std::default_delete<nglog::CapturedStream>::operator()(result);
if ( v12 )
return (nglog::CapturedStream **)std::default_delete<nglog::CapturedStream>::operator()(&v12);
return result;
}
|
CaptureTestOutput:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xd8
MOV RBX,RSI
MOV EBP,EDI
MOV dword ptr [RSP + 0xc],EDI
MOV RAX,qword ptr [0x00145ee0]
MOV RDI,qword ptr [RAX]
CALL 0x00108670
CMP EAX,EBP
JNZ 0x0011436b
XOR EBP,EBP
JMP 0x00114384
LAB_0011436b:
MOV EBP,dword ptr [RSP + 0xc]
MOV RAX,qword ptr [0x00145f88]
MOV RDI,qword ptr [RAX]
CALL 0x00108670
CMP EBP,EAX
SETNZ BPL
LAB_00114384:
TEST BPL,BPL
JNZ 0x0011447c
LAB_0011438d:
MOV RDX,qword ptr [0x00146b70]
LEA RCX,[0x146b68]
MOV RAX,RCX
TEST RDX,RDX
JZ 0x001143c5
LEA RAX,[0x146b68]
MOV ESI,dword ptr [RSP + 0xc]
LAB_001143ae:
XOR EDI,EDI
CMP dword ptr [RDX + 0x20],ESI
SETL DIL
CMOVGE RAX,RDX
MOV RDX,qword ptr [RDX + RDI*0x8 + 0x10]
TEST RDX,RDX
JNZ 0x001143ae
LAB_001143c5:
CMP RAX,RCX
JZ 0x001143d7
MOV ECX,dword ptr [RSP + 0xc]
CMP ECX,dword ptr [RAX + 0x20]
JGE 0x001144c4
LAB_001143d7:
MOV EDI,0x28
CALL 0x0010a980
MOV R14,RAX
MOV EBP,dword ptr [RSP + 0xc]
LEA R15,[RSP + 0x28]
MOV qword ptr [R15 + -0x10],R15
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
ADD RDX,RSI
LAB_001143fb:
LEA RDI,[RSP + 0x18]
CALL 0x00117146
LAB_00114405:
LEA RDX,[RSP + 0x18]
MOV RDI,R14
MOV ESI,EBP
CALL 0x001175e4
MOV qword ptr [RSP + 0x10],R14
MOV RDI,qword ptr [RSP + 0x18]
CMP RDI,R15
JZ 0x00114428
CALL 0x00108790
LAB_00114428:
LEA RDI,[0x146b60]
LEA RSI,[RSP + 0xc]
CALL 0x00117580
LAB_00114439:
MOV RCX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x10],0x0
MOV RSI,qword ptr [RAX]
MOV qword ptr [RAX],RCX
TEST RSI,RSI
JZ 0x0011445a
MOV RDI,RAX
CALL 0x001172c8
LAB_0011445a:
MOV RSI,qword ptr [RSP + 0x10]
TEST RSI,RSI
JZ 0x0011446e
LEA RDI,[RSP + 0x10]
CALL 0x001172c8
LAB_0011446e:
ADD RSP,0xd8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0011447c:
LEA RSI,[0x133175]
LEA R14,[RSP + 0x78]
MOV RDI,R14
MOV EDX,0x16b
CALL 0x0011e61c
LAB_00114495:
MOV RDI,R14
CALL 0x0011ad8e
LEA RSI,[0x1331be]
MOV EDX,0x3f
MOV RDI,RAX
CALL 0x00108720
LAB_001144b1:
TEST BPL,BPL
JZ 0x0011438d
LEA RDI,[RSP + 0x78]
CALL 0x0011e660
LAB_001144c4:
LEA RSI,[0x133175]
LEA R14,[RSP + 0x18]
MOV RDI,R14
MOV EDX,0x16c
CALL 0x0011e61c
LAB_001144dd:
MOV RDI,R14
CALL 0x0011ad8e
LEA RSI,[0x1331fe]
MOV EDX,0x46
MOV RDI,RAX
CALL 0x00108720
LAB_001144f9:
LEA RDI,[RSP + 0x18]
CALL 0x0011e660
LAB_00114503:
JMP 0x00114545
LAB_00114545:
MOV RDI,R14
CALL 0x0011e660
LAB_0011454d:
MOV RDI,RAX
CALL 0x00116adb
|
/* nglog::CaptureTestOutput(int, std::__cxx11::string const&) */
void nglog::CaptureTestOutput(int param_1,string *param_2)
{
int iVar1;
CapturedStream *pCVar2;
int iVar3;
long lVar4;
CapturedStream *pCVar5;
default_delete<nglog::CapturedStream> *this;
ostream *poVar6;
int8 uVar7;
long lVar8;
bool bVar9;
int local_ec;
CapturedStream *local_e8;
int1 *local_e0 [2];
int1 local_d0 [80];
LogMessageFatal local_80 [96];
local_ec = param_1;
iVar3 = fileno(*(FILE **)PTR_stdout_00145ee0);
iVar1 = local_ec;
if (iVar3 == param_1) {
bVar9 = false;
}
else {
iVar3 = fileno(*(FILE **)PTR_stderr_00145f88);
bVar9 = iVar1 != iVar3;
}
if (bVar9) {
LogMessageFatal::LogMessageFatal
(local_80,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",
0x16b);
/* try { // try from 00114495 to 001144b0 has its CatchHandler @ 00114503 */
poVar6 = (ostream *)LogMessage::stream((LogMessage *)local_80);
std::__ostream_insert<char,std::char_traits<char>>
(poVar6,"Check failed: (fd == fileno(stdout)) || (fd == fileno(stderr)) ",0x3f);
if (bVar9) {
LogMessageFatal::~LogMessageFatal(local_80);
goto LAB_001144c4;
}
}
lVar4 = 0x146b68;
if (s_captured_streams._16_8_ != 0) {
lVar4 = 0x146b68;
lVar8 = s_captured_streams._16_8_;
do {
if (local_ec <= *(int *)(lVar8 + 0x20)) {
lVar4 = lVar8;
}
lVar8 = *(long *)(lVar8 + 0x10 + (ulong)(*(int *)(lVar8 + 0x20) < local_ec) * 8);
} while (lVar8 != 0);
}
if ((lVar4 == 0x146b68) || (local_ec < *(int *)(lVar4 + 0x20))) {
pCVar5 = (CapturedStream *)operator_new(0x28);
iVar1 = local_ec;
/* try { // try from 001143fb to 00114404 has its CatchHandler @ 00114532 */
local_e0[0] = local_d0;
std::__cxx11::string::_M_construct<char*>
(local_e0,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2);
/* try { // try from 00114405 to 00114413 has its CatchHandler @ 0011451e */
CapturedStream::CapturedStream(pCVar5,iVar1,local_e0);
local_e8 = pCVar5;
if (local_e0[0] != local_d0) {
free(local_e0[0]);
}
/* try { // try from 00114428 to 00114438 has its CatchHandler @ 00114505 */
this = (default_delete<nglog::CapturedStream> *)
std::
map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
::operator[]((map<int,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>,std::less<int>,std::allocator<std::pair<int_const,std::unique_ptr<nglog::CapturedStream,std::default_delete<nglog::CapturedStream>>>>>
*)s_captured_streams,&local_ec);
pCVar2 = local_e8;
local_e8 = (CapturedStream *)0x0;
pCVar5 = *(CapturedStream **)this;
*(CapturedStream **)this = pCVar2;
if (pCVar5 != (CapturedStream *)0x0) {
std::default_delete<nglog::CapturedStream>::operator()(this,pCVar5);
}
if (local_e8 != (CapturedStream *)0x0) {
std::default_delete<nglog::CapturedStream>::operator()
((default_delete<nglog::CapturedStream> *)&local_e8,local_e8);
}
return;
}
LAB_001144c4:
LogMessageFatal::LogMessageFatal
((LogMessageFatal *)local_e0,
"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/googletest.h",0x16c);
/* try { // try from 001144dd to 001144f8 has its CatchHandler @ 00114545 */
poVar6 = (ostream *)LogMessage::stream((LogMessage *)local_e0);
std::__ostream_insert<char,std::char_traits<char>>
(poVar6,"Check failed: s_captured_streams.find(fd) == s_captured_streams.end() ",0x46);
LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_e0);
/* catch(type#1 @ 00000000) { ... } // from try @ 00114495 with catch @ 00114503
*/
/* catch(type#1 @ 00000000) { ... } // from try @ 001144dd with catch @ 00114545
try { // try from 00114545 to 0011454c has its CatchHandler @ 0011454d */
uVar7 = LogMessageFatal::~LogMessageFatal((LogMessageFatal *)local_e0);
/* catch(type#1 @ 00000000) { ... } // from try @ 00114545 with catch @ 0011454d
*/
/* WARNING: Subroutine does not return */
__clang_call_terminate(uVar7);
}
|
|
13,342
|
ma_set_dynamic
|
eloqsql/libmariadb/libmariadb/ma_array.c
|
my_bool ma_set_dynamic(DYNAMIC_ARRAY *array, void * element, uint idx)
{
if (idx >= array->elements)
{
if (idx >= array->max_element)
{
uint size;
char *new_ptr;
size=(idx+array->alloc_increment)/array->alloc_increment;
size*= array->alloc_increment;
if (!(new_ptr=(char*) realloc(array->buffer,size*
array->size_of_element)))
return TRUE;
array->buffer=new_ptr;
array->max_element=size;
}
memset((array->buffer+array->elements*array->size_of_element), 0,
(idx - array->elements)*array->size_of_element);
array->elements=idx+1;
}
memcpy(array->buffer+(idx * array->size_of_element),element,
(size_t) array->size_of_element);
return FALSE;
}
|
O3
|
c
|
ma_set_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %eax
cmpl %edx, %eax
ja 0x34b24
movq (%r15), %rcx
cmpl %r14d, 0xc(%r15)
ja 0x34b01
movl 0x10(%r15), %esi
movl %esi, %r12d
addl %r14d, %r12d
movl %r12d, %eax
xorl %edx, %edx
divl %esi
subl %edx, %r12d
movl 0x14(%r15), %esi
imull %r12d, %esi
movq %rcx, %rdi
callq 0x13730
testq %rax, %rax
je 0x34b45
movq %rax, %rcx
movq %rax, (%r15)
movl %r12d, 0xc(%r15)
movl 0x8(%r15), %eax
movl 0x14(%r15), %esi
movl %r14d, %edx
subl %eax, %edx
imull %esi, %edx
movl %esi, %edi
imull %eax, %edi
addq %rcx, %rdi
xorl %esi, %esi
callq 0x13260
leal 0x1(%r14), %eax
movl %eax, 0x8(%r15)
movl 0x14(%r15), %edx
imull %edx, %r14d
addq (%r15), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13390
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x34b3c
|
ma_set_dynamic:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14d, edx
mov rbx, rsi
mov r15, rdi
mov eax, [rdi+8]
cmp eax, edx
ja short loc_34B24
mov rcx, [r15]
cmp [r15+0Ch], r14d
ja short loc_34B01
mov esi, [r15+10h]
mov r12d, esi
add r12d, r14d
mov eax, r12d
xor edx, edx
div esi
sub r12d, edx
mov esi, [r15+14h]
imul esi, r12d
mov rdi, rcx
call _realloc
test rax, rax
jz short loc_34B45
mov rcx, rax
mov [r15], rax
mov [r15+0Ch], r12d
mov eax, [r15+8]
loc_34B01:
mov esi, [r15+14h]
mov edx, r14d
sub edx, eax
imul edx, esi
mov edi, esi
imul edi, eax
add rdi, rcx
xor esi, esi
call _memset
lea eax, [r14+1]
mov [r15+8], eax
loc_34B24:
mov edx, [r15+14h]
imul r14d, edx
add r14, [r15]
mov rdi, r14
mov rsi, rbx
call _memcpy
xor eax, eax
loc_34B3C:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_34B45:
mov al, 1
jmp short loc_34B3C
|
long long ma_set_dynamic(long long *a1, long long a2, unsigned int a3)
{
unsigned int v4; // eax
long long v5; // rcx
unsigned int v6; // r12d
long long v7; // rax
v4 = *((_DWORD *)a1 + 2);
if ( v4 > a3 )
goto LABEL_6;
v5 = *a1;
if ( *((_DWORD *)a1 + 3) > a3 )
{
LABEL_5:
memset(v5 + v4 * *((_DWORD *)a1 + 5), 0LL, *((_DWORD *)a1 + 5) * (a3 - v4));
*((_DWORD *)a1 + 2) = a3 + 1;
LABEL_6:
memcpy(*a1 + *((_DWORD *)a1 + 5) * a3, a2, *((unsigned int *)a1 + 5));
return 0LL;
}
v6 = a3 + *((_DWORD *)a1 + 4) - (a3 + *((_DWORD *)a1 + 4)) % *((_DWORD *)a1 + 4);
v7 = realloc(*a1, v6 * *((_DWORD *)a1 + 5));
if ( v7 )
{
v5 = v7;
*a1 = v7;
*((_DWORD *)a1 + 3) = v6;
v4 = *((_DWORD *)a1 + 2);
goto LABEL_5;
}
return 1LL;
}
|
ma_set_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14D,EDX
MOV RBX,RSI
MOV R15,RDI
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,EDX
JA 0x00134b24
MOV RCX,qword ptr [R15]
CMP dword ptr [R15 + 0xc],R14D
JA 0x00134b01
MOV ESI,dword ptr [R15 + 0x10]
MOV R12D,ESI
ADD R12D,R14D
MOV EAX,R12D
XOR EDX,EDX
DIV ESI
SUB R12D,EDX
MOV ESI,dword ptr [R15 + 0x14]
IMUL ESI,R12D
MOV RDI,RCX
CALL 0x00113730
TEST RAX,RAX
JZ 0x00134b45
MOV RCX,RAX
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0xc],R12D
MOV EAX,dword ptr [R15 + 0x8]
LAB_00134b01:
MOV ESI,dword ptr [R15 + 0x14]
MOV EDX,R14D
SUB EDX,EAX
IMUL EDX,ESI
MOV EDI,ESI
IMUL EDI,EAX
ADD RDI,RCX
XOR ESI,ESI
CALL 0x00113260
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15 + 0x8],EAX
LAB_00134b24:
MOV EDX,dword ptr [R15 + 0x14]
IMUL R14D,EDX
ADD R14,qword ptr [R15]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00113390
XOR EAX,EAX
LAB_00134b3c:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00134b45:
MOV AL,0x1
JMP 0x00134b3c
|
int8 ma_set_dynamic(long *param_1,void *param_2,uint param_3)
{
void *__ptr;
uint uVar1;
int iVar2;
uVar1 = *(uint *)(param_1 + 1);
if (uVar1 <= param_3) {
__ptr = (void *)*param_1;
if (*(uint *)((long)param_1 + 0xc) <= param_3) {
uVar1 = *(uint *)(param_1 + 2) + param_3;
iVar2 = uVar1 - uVar1 % *(uint *)(param_1 + 2);
__ptr = realloc(__ptr,(ulong)(uint)(*(int *)((long)param_1 + 0x14) * iVar2));
if (__ptr == (void *)0x0) {
return 1;
}
*param_1 = (long)__ptr;
*(int *)((long)param_1 + 0xc) = iVar2;
uVar1 = *(uint *)(param_1 + 1);
}
memset((void *)((ulong)(*(int *)((long)param_1 + 0x14) * uVar1) + (long)__ptr),0,
(ulong)((param_3 - uVar1) * *(int *)((long)param_1 + 0x14)));
*(uint *)(param_1 + 1) = param_3 + 1;
}
memcpy((void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1),param_2,
(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
|
|
13,343
|
nglog::LogDestination::AddLogSink(nglog::LogSink*)
|
ng-log[P]ng-log/src/logging.cc
|
inline void LogDestination::AddLogSink(LogSink* destination) {
// Prevent any subtle race conditions by wrapping a mutex lock around
// all this stuff.
SinkLock l{sink_mutex_};
if (sinks_ == nullptr) sinks_ = std::make_unique<std::vector<LogSink*>>();
sinks_->push_back(destination);
}
|
O2
|
cpp
|
nglog::LogDestination::AddLogSink(nglog::LogSink*):
pushq %rbx
subq $0x10, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x203f1(%rip), %rdi # 0x3c258
callq 0x2856e
movq 0x203dd(%rip), %rdi # 0x3c250
testq %rdi, %rdi
jne 0x1bea5
movq %rsp, %rdi
callq 0x14500
movq %rsp, %rbx
movq (%rbx), %rsi
andq $0x0, (%rbx)
leaq 0x203bf(%rip), %rdi # 0x3c250
callq 0x1cc0a
movq %rbx, %rdi
callq 0x1b6a2
movq 0x203ab(%rip), %rdi # 0x3c250
leaq 0x8(%rsp), %rsi
callq 0x1cbec
leaq 0x203a2(%rip), %rdi # 0x3c258
callq 0x14f80
addq $0x10, %rsp
popq %rbx
retq
jmp 0x1bec3
movq %rax, %rbx
leaq 0x2038b(%rip), %rdi # 0x3c258
callq 0x14f80
movq %rbx, %rdi
callq 0x155d0
|
_ZN5nglog14LogDestination10AddLogSinkEPNS_7LogSinkE:
push rbx
sub rsp, 10h
mov [rsp+18h+var_10], rdi
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; this
call _ZNSt22__shared_mutex_pthread4lockEv; std::__shared_mutex_pthread::lock(void)
mov rdi, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
test rdi, rdi
jnz short loc_1BEA5
mov rdi, rsp
call __ZSt11make_uniqueISt6vectorIPN5nglog7LogSinkESaIS3_EEJEENSt9_MakeUniqIT_E15__single_objectEDpOT0_; std::make_unique<std::vector<nglog::LogSink *>>()
mov rbx, rsp
mov rsi, [rbx]
and qword ptr [rbx], 0
lea rdi, _ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
call _ZNSt15__uniq_ptr_implISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EE5resetEPS5_; std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset(std::vector<nglog::LogSink *>*)
mov rdi, rbx; void *
call _ZNSt10unique_ptrISt6vectorIPN5nglog7LogSinkESaIS3_EESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::vector<nglog::LogSink *>>::~unique_ptr()
mov rdi, cs:_ZN5nglog14LogDestination6sinks_E; nglog::LogDestination::sinks_
loc_1BEA5:
lea rsi, [rsp+18h+var_10]
call _ZNSt6vectorIPN5nglog7LogSinkESaIS2_EE9push_backERKS2_; std::vector<nglog::LogSink *>::push_back(nglog::LogSink * const&)
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
add rsp, 10h
pop rbx
retn
jmp short $+2
loc_1BEC3:
mov rbx, rax
lea rdi, _ZN5nglog14LogDestination11sink_mutex_E; nglog::LogDestination::sink_mutex_
call _pthread_rwlock_unlock
mov rdi, rbx
call __Unwind_Resume
|
long long nglog::LogDestination::AddLogSink(nglog::LogDestination *this, nglog::LogSink *a2)
{
long long v2; // rdi
long long v3; // rsi
long long v5; // [rsp+0h] [rbp-18h] BYREF
nglog::LogDestination *v6; // [rsp+8h] [rbp-10h] BYREF
v6 = this;
std::__shared_mutex_pthread::lock((std::__shared_mutex_pthread *)&nglog::LogDestination::sink_mutex_);
v2 = nglog::LogDestination::sinks_;
if ( !nglog::LogDestination::sinks_ )
{
std::make_unique<std::vector<nglog::LogSink *>>(&v5, a2);
v3 = v5;
v5 = 0LL;
std::__uniq_ptr_impl<std::vector<nglog::LogSink *>,std::default_delete<std::vector<nglog::LogSink *>>>::reset(
&nglog::LogDestination::sinks_,
v3);
std::unique_ptr<std::vector<nglog::LogSink *>>::~unique_ptr(&v5);
v2 = nglog::LogDestination::sinks_;
}
std::vector<nglog::LogSink *>::push_back(v2, &v6);
return pthread_rwlock_unlock(&nglog::LogDestination::sink_mutex_);
}
|
AddLogSink:
PUSH RBX
SUB RSP,0x10
MOV qword ptr [RSP + 0x8],RDI
LEA RDI,[0x13c258]
CALL 0x0012856e
MOV RDI,qword ptr [0x0013c250]
TEST RDI,RDI
JNZ 0x0011bea5
LAB_0011be78:
MOV RDI,RSP
CALL 0x00114500
MOV RBX,RSP
MOV RSI,qword ptr [RBX]
AND qword ptr [RBX],0x0
LEA RDI,[0x13c250]
CALL 0x0011cc0a
MOV RDI,RBX
CALL 0x0011b6a2
MOV RDI,qword ptr [0x0013c250]
LAB_0011bea5:
LEA RSI,[RSP + 0x8]
CALL 0x0011cbec
LAB_0011beaf:
LEA RDI,[0x13c258]
CALL 0x00114f80
ADD RSP,0x10
POP RBX
RET
|
/* nglog::LogDestination::AddLogSink(nglog::LogSink*) */
void nglog::LogDestination::AddLogSink(LogSink *param_1)
{
vector *pvVar1;
vector *local_18;
LogSink *local_10;
local_10 = param_1;
std::__shared_mutex_pthread::lock((__shared_mutex_pthread *)sink_mutex_);
if (sinks_ == (vector<nglog::LogSink*,std::allocator<nglog::LogSink*>> *)0x0) {
/* try { // try from 0011be78 to 0011be7f has its CatchHandler @ 0011bec1 */
std::make_unique<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>();
pvVar1 = local_18;
local_18 = (vector *)0x0;
std::
__uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
::reset((__uniq_ptr_impl<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
*)&sinks_,pvVar1);
std::
unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
::~unique_ptr((unique_ptr<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>,std::default_delete<std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>>>
*)&local_18);
}
/* try { // try from 0011bea5 to 0011beae has its CatchHandler @ 0011bec3 */
std::vector<nglog::LogSink*,std::allocator<nglog::LogSink*>>::push_back(sinks_,&local_10);
pthread_rwlock_unlock((pthread_rwlock_t *)sink_mutex_);
return;
}
|
|
13,344
|
my_strcasecmp_utf8mb3
|
eloqsql/strings/ctype-utf8.c
|
static
int my_strcasecmp_utf8mb3(CHARSET_INFO *cs, const char *s, const char *t)
{
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
while (s[0] && t[0])
{
my_wc_t s_wc,t_wc;
if ((uchar) s[0] < 128)
{
/*
s[0] is between 0 and 127.
It represents a single byte character.
Convert it into weight according to collation.
*/
s_wc= my_unicase_default_page00[(uchar) s[0]].tolower;
s++;
}
else
{
int res;
/*
Scan a multibyte character.
In the future it is worth to write a special version of my_utf8mb3_uni()
for 0-terminated strings which will not take in account length. Now
we call the regular version of my_utf8mb3_uni() with s+3 in the
last argument. s+3 is enough to scan any multibyte sequence.
Calling the regular version of my_utf8mb3_uni is safe for 0-terminated
strings: we will never lose the end of the string:
If we have 0 character in the middle of a multibyte sequence,
then my_utf8mb3_uni will always return a negative number, so the
loop with finish.
*/
res= my_utf8mb3_uni(cs,&s_wc, (const uchar*)s, (const uchar*) s + 3);
/*
In the case of wrong multibyte sequence we will
call strcmp() for byte-to-byte comparison.
*/
if (res <= 0)
return strcmp(s, t);
s+= res;
/* Convert Unicode code into weight according to collation */
my_tolower_utf8mb3(uni_plane, &s_wc);
}
/* Do the same for the second string */
if ((uchar) t[0] < 128)
{
/* Convert single byte character into weight */
t_wc= my_unicase_default_page00[(uchar) t[0]].tolower;
t++;
}
else
{
int res=my_utf8mb3_uni(cs,&t_wc, (const uchar*)t, (const uchar*) t + 3);
if (res <= 0)
return strcmp(s, t);
t+= res;
/* Convert code into weight */
my_tolower_utf8mb3(uni_plane, &t_wc);
}
/* Now we have two weights, let's compare them */
if ( s_wc != t_wc )
return ((int) s_wc) - ((int) t_wc);
}
return ((int)(uchar)s[0]) - ((int) (uchar) t[0]);
}
|
O3
|
c
|
my_strcasecmp_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r13
movb (%rsi), %al
testb %al, %al
je 0x4efc8
movq %rsi, %r14
movq 0x78(%rdi), %r15
leaq 0x2f21a3(%rip), %r12 # 0x3410a0
cmpb $0x0, (%r13)
je 0x4efc3
testb %al, %al
js 0x4ef21
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl 0x4(%r12,%rax,4), %ebx
movq %rbx, -0x30(%rbp)
incq %r14
jmp 0x4ef61
leaq 0x3(%r14), %rcx
leaq -0x30(%rbp), %rsi
movq %r14, %rdx
callq 0x4da77
testl %eax, %eax
jle 0x4efe6
movl %eax, %eax
addq %rax, %r14
movq 0x8(%r15), %rax
movq -0x30(%rbp), %rbx
movzbl %bh, %ecx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x4ef61
movzbl %bl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %ebx
movq %rbx, -0x30(%rbp)
movsbq (%r13), %rax
testq %rax, %rax
js 0x4ef79
leaq (%rax,%rax,2), %rax
movl 0x4(%r12,%rax,4), %eax
incq %r13
jmp 0x4efb1
leaq 0x3(%r13), %rcx
leaq -0x38(%rbp), %rsi
movq %r13, %rdx
callq 0x4da77
testl %eax, %eax
jle 0x4efe6
movl %eax, %eax
addq %rax, %r13
movq 0x8(%r15), %rcx
movq -0x38(%rbp), %rax
movzbl %ah, %edx
movq (%rcx,%rdx,8), %rcx
testq %rcx, %rcx
je 0x4efb1
movzbl %al, %eax
leaq (%rax,%rax,2), %rax
movl 0x4(%rcx,%rax,4), %eax
cmpq %rax, %rbx
jne 0x4efe2
movb (%r14), %al
testb %al, %al
jne 0x4eefd
xorl %eax, %eax
movzbl %al, %ebx
jmp 0x4efca
xorl %ebx, %ebx
movzbl (%r13), %eax
subl %eax, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subl %eax, %ebx
jmp 0x4efd1
movq %r14, %rdi
movq %r13, %rsi
callq 0x243c0
movl %eax, %ebx
jmp 0x4efd1
|
my_strcasecmp_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r13, rdx
mov al, [rsi]
test al, al
jz loc_4EFC8
mov r14, rsi
mov r15, [rdi+78h]
lea r12, my_unicase_default_page00
loc_4EEFD:
cmp byte ptr [r13+0], 0
jz loc_4EFC3
test al, al
js short loc_4EF21
movzx eax, al
lea rax, [rax+rax*2]
mov ebx, [r12+rax*4+4]
mov [rbp+var_30], rbx
inc r14
jmp short loc_4EF61
loc_4EF21:
lea rcx, [r14+3]
lea rsi, [rbp+var_30]
mov rdx, r14
call my_utf8mb3_uni
test eax, eax
jle loc_4EFE6
mov eax, eax
add r14, rax
mov rax, [r15+8]
mov rbx, [rbp+var_30]
movzx ecx, bh
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_4EF61
movzx ecx, bl
lea rcx, [rcx+rcx*2]
mov ebx, [rax+rcx*4+4]
mov [rbp+var_30], rbx
loc_4EF61:
movsx rax, byte ptr [r13+0]
test rax, rax
js short loc_4EF79
lea rax, [rax+rax*2]
mov eax, [r12+rax*4+4]
inc r13
jmp short loc_4EFB1
loc_4EF79:
lea rcx, [r13+3]
lea rsi, [rbp+var_38]
mov rdx, r13
call my_utf8mb3_uni
test eax, eax
jle short loc_4EFE6
mov eax, eax
add r13, rax
mov rcx, [r15+8]
mov rax, [rbp+var_38]
movzx edx, ah
mov rcx, [rcx+rdx*8]
test rcx, rcx
jz short loc_4EFB1
movzx eax, al
lea rax, [rax+rax*2]
mov eax, [rcx+rax*4+4]
loc_4EFB1:
cmp rbx, rax
jnz short loc_4EFE2
mov al, [r14]
test al, al
jnz loc_4EEFD
xor eax, eax
loc_4EFC3:
movzx ebx, al
jmp short loc_4EFCA
loc_4EFC8:
xor ebx, ebx
loc_4EFCA:
movzx eax, byte ptr [r13+0]
sub ebx, eax
loc_4EFD1:
mov eax, ebx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4EFE2:
sub ebx, eax
jmp short loc_4EFD1
loc_4EFE6:
mov rdi, r14
mov rsi, r13
call _strcmp
mov ebx, eax
jmp short loc_4EFD1
|
long long my_strcasecmp_utf8mb3(long long a1, unsigned __int8 *a2, unsigned __int8 *a3)
{
unsigned __int8 v4; // al
unsigned __int8 *v5; // r14
long long v6; // r15
unsigned long long v7; // rbx
int v8; // eax
long long v9; // rax
long long v10; // rax
unsigned long long v11; // rax
int v12; // eax
long long v13; // rcx
int v14; // ebx
unsigned long long v17; // [rsp+8h] [rbp-38h] BYREF
unsigned long long v18; // [rsp+10h] [rbp-30h] BYREF
v4 = *a2;
if ( *a2 )
{
v5 = a2;
v6 = *(_QWORD *)(a1 + 120);
while ( 1 )
{
if ( !*a3 )
goto LABEL_17;
if ( (v4 & 0x80u) != 0 )
{
v8 = my_utf8mb3_uni(a1, &v18, v5, (unsigned long long)(v5 + 3));
if ( v8 <= 0 )
return (unsigned int)strcmp(v5, a3);
v5 += (unsigned int)v8;
v7 = v18;
v9 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL * BYTE1(v18));
if ( v9 )
{
v7 = *(unsigned int *)(v9 + 12LL * (unsigned __int8)v18 + 4);
v18 = v7;
}
}
else
{
v7 = (unsigned int)my_unicase_default_page00[3 * v4 + 1];
v18 = v7;
++v5;
}
v10 = (char)*a3;
if ( v10 < 0 )
{
v12 = my_utf8mb3_uni(a1, &v17, a3, (unsigned long long)(a3 + 3));
if ( v12 <= 0 )
return (unsigned int)strcmp(v5, a3);
a3 += (unsigned int)v12;
v11 = v17;
v13 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 8LL * BYTE1(v17));
if ( v13 )
v11 = *(unsigned int *)(v13 + 12LL * (unsigned __int8)v17 + 4);
}
else
{
v11 = (unsigned int)my_unicase_default_page00[3 * v10 + 1];
++a3;
}
if ( v7 != v11 )
return (unsigned int)(v7 - v11);
v4 = *v5;
if ( !*v5 )
{
v4 = 0;
LABEL_17:
v14 = v4;
return (unsigned int)(v14 - *a3);
}
}
}
v14 = 0;
return (unsigned int)(v14 - *a3);
}
|
my_strcasecmp_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R13,RDX
MOV AL,byte ptr [RSI]
TEST AL,AL
JZ 0x0014efc8
MOV R14,RSI
MOV R15,qword ptr [RDI + 0x78]
LEA R12,[0x4410a0]
LAB_0014eefd:
CMP byte ptr [R13],0x0
JZ 0x0014efc3
TEST AL,AL
JS 0x0014ef21
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EBX,dword ptr [R12 + RAX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RBX
INC R14
JMP 0x0014ef61
LAB_0014ef21:
LEA RCX,[R14 + 0x3]
LEA RSI,[RBP + -0x30]
MOV RDX,R14
CALL 0x0014da77
TEST EAX,EAX
JLE 0x0014efe6
MOV EAX,EAX
ADD R14,RAX
MOV RAX,qword ptr [R15 + 0x8]
MOV RBX,qword ptr [RBP + -0x30]
MOVZX ECX,BH
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x0014ef61
MOVZX ECX,BL
LEA RCX,[RCX + RCX*0x2]
MOV EBX,dword ptr [RAX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RBX
LAB_0014ef61:
MOVSX RAX,byte ptr [R13]
TEST RAX,RAX
JS 0x0014ef79
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [R12 + RAX*0x4 + 0x4]
INC R13
JMP 0x0014efb1
LAB_0014ef79:
LEA RCX,[R13 + 0x3]
LEA RSI,[RBP + -0x38]
MOV RDX,R13
CALL 0x0014da77
TEST EAX,EAX
JLE 0x0014efe6
MOV EAX,EAX
ADD R13,RAX
MOV RCX,qword ptr [R15 + 0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOVZX EDX,AH
MOV RCX,qword ptr [RCX + RDX*0x8]
TEST RCX,RCX
JZ 0x0014efb1
MOVZX EAX,AL
LEA RAX,[RAX + RAX*0x2]
MOV EAX,dword ptr [RCX + RAX*0x4 + 0x4]
LAB_0014efb1:
CMP RBX,RAX
JNZ 0x0014efe2
MOV AL,byte ptr [R14]
TEST AL,AL
JNZ 0x0014eefd
XOR EAX,EAX
LAB_0014efc3:
MOVZX EBX,AL
JMP 0x0014efca
LAB_0014efc8:
XOR EBX,EBX
LAB_0014efca:
MOVZX EAX,byte ptr [R13]
SUB EBX,EAX
LAB_0014efd1:
MOV EAX,EBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014efe2:
SUB EBX,EAX
JMP 0x0014efd1
LAB_0014efe6:
MOV RDI,R14
MOV RSI,R13
CALL 0x001243c0
MOV EBX,EAX
JMP 0x0014efd1
|
int my_strcasecmp_utf8mb3(long param_1,byte *param_2,byte *param_3)
{
long lVar1;
long lVar2;
byte bVar3;
uint uVar4;
int iVar5;
ulong uVar6;
ulong local_40;
ulong local_38;
bVar3 = *param_2;
if (bVar3 == 0) {
uVar4 = 0;
}
else {
lVar1 = *(long *)(param_1 + 0x78);
do {
if (*param_3 == 0) goto LAB_0014efc3;
if ((char)bVar3 < '\0') {
uVar4 = my_utf8mb3_uni();
if ((int)uVar4 < 1) goto LAB_0014efe6;
param_2 = param_2 + uVar4;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_38 >> 8 & 0xff) * 8);
if (lVar2 != 0) {
local_38 = (ulong)*(uint *)(lVar2 + 4 + (local_38 & 0xff) * 0xc);
}
}
else {
local_38 = (ulong)*(uint *)(my_unicase_default_page00 + (ulong)bVar3 * 0xc + 4);
param_2 = param_2 + 1;
}
bVar3 = *param_3;
if ((long)(char)bVar3 < 0) {
uVar4 = my_utf8mb3_uni();
if ((int)uVar4 < 1) {
LAB_0014efe6:
iVar5 = strcmp((char *)param_2,(char *)param_3);
return iVar5;
}
param_3 = param_3 + uVar4;
lVar2 = *(long *)(*(long *)(lVar1 + 8) + (local_40 >> 8 & 0xff) * 8);
uVar6 = local_40;
if (lVar2 != 0) {
uVar6 = (ulong)*(uint *)(lVar2 + 4 + (local_40 & 0xff) * 0xc);
}
}
else {
param_3 = param_3 + 1;
uVar6 = (ulong)*(uint *)(my_unicase_default_page00 + (long)(char)bVar3 * 0xc + 4);
}
if (local_38 != uVar6) {
return (int)local_38 - (int)uVar6;
}
bVar3 = *param_2;
} while (bVar3 != 0);
bVar3 = 0;
LAB_0014efc3:
uVar4 = (uint)bVar3;
}
return uVar4 - *param_3;
}
|
|
13,345
|
my_copy_fix_mb
|
eloqsql/strings/ctype-mb.c
|
size_t
my_copy_fix_mb(CHARSET_INFO *cs,
char *dst, size_t dst_length,
const char *src, size_t src_length,
size_t nchars, MY_STRCOPY_STATUS *status)
{
size_t well_formed_nchars;
size_t well_formed_length;
size_t fixed_length;
size_t min_length= MY_MIN(src_length, dst_length);
well_formed_nchars= my_ci_well_formed_char_length(cs, src, src + min_length,
nchars, status);
DBUG_ASSERT(well_formed_nchars <= nchars);
well_formed_length= status->m_source_end_pos - src;
if (well_formed_length)
memmove(dst, src, well_formed_length);
if (!status->m_well_formed_error_pos)
return well_formed_length;
fixed_length= my_append_fix_badly_formed_tail(cs,
dst + well_formed_length,
dst + dst_length,
src + well_formed_length,
src + src_length,
nchars - well_formed_nchars,
status);
return well_formed_length + fixed_length;
}
|
O0
|
c
|
my_copy_fix_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x42848
movq -0x30(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x42850
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x28(%rbp), %rdx
addq -0x58(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq 0x10(%rbp), %r8
callq 0x42910
movq %rax, -0x40(%rbp)
jmp 0x4287b
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x428a5
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0x25670
movq 0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x428ba
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x42903
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq -0x48(%rbp), %rsi
movq -0x18(%rbp), %rdx
addq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq -0x48(%rbp), %rcx
movq -0x28(%rbp), %r8
addq -0x30(%rbp), %r8
movq -0x38(%rbp), %r9
subq -0x40(%rbp), %r9
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
callq 0x42960
movq %rax, -0x50(%rbp)
movq -0x48(%rbp), %rax
addq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)
|
my_copy_fix_mb:
push rbp
mov rbp, rsp
sub rsp, 70h
mov rax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jnb short loc_42848
mov rax, [rbp+var_30]
mov [rbp+var_60], rax
jmp short loc_42850
loc_42848:
mov rax, [rbp+var_20]
mov [rbp+var_60], rax
loc_42850:
mov rax, [rbp+var_60]
mov [rbp+var_58], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_28]
add rdx, [rbp+var_58]
mov rcx, [rbp+var_38]
mov r8, [rbp+arg_0]
call my_ci_well_formed_char_length
mov [rbp+var_40], rax
jmp short $+2
loc_4287B:
mov rax, [rbp+arg_0]
mov rax, [rax]
mov rcx, [rbp+var_28]
sub rax, rcx
mov [rbp+var_48], rax
cmp [rbp+var_48], 0
jz short loc_428A5
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_48]
call _memmove
loc_428A5:
mov rax, [rbp+arg_0]
cmp qword ptr [rax+8], 0
jnz short loc_428BA
mov rax, [rbp+var_48]
mov [rbp+var_8], rax
jmp short loc_42903
loc_428BA:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
add rsi, [rbp+var_48]
mov rdx, [rbp+var_18]
add rdx, [rbp+var_20]
mov rcx, [rbp+var_28]
add rcx, [rbp+var_48]
mov r8, [rbp+var_28]
add r8, [rbp+var_30]
mov r9, [rbp+var_38]
sub r9, [rbp+var_40]
mov rax, [rbp+arg_0]
mov [rsp+70h+var_70], rax
call my_append_fix_badly_formed_tail
mov [rbp+var_50], rax
mov rax, [rbp+var_48]
add rax, [rbp+var_50]
mov [rbp+var_8], rax
loc_42903:
mov rax, [rbp+var_8]
add rsp, 70h
pop rbp
retn
|
long long my_copy_fix_mb(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
long long a6,
_QWORD *a7)
{
unsigned long long v8; // [rsp+10h] [rbp-60h]
long long v9; // [rsp+28h] [rbp-48h]
int v10; // [rsp+30h] [rbp-40h]
int v11; // [rsp+38h] [rbp-38h]
int v12; // [rsp+40h] [rbp-30h]
int v14; // [rsp+50h] [rbp-20h]
v14 = a3;
v12 = a5;
v11 = a6;
if ( a5 >= a3 )
v8 = a3;
else
v8 = a5;
v10 = my_ci_well_formed_char_length(a1, a4, v8 + a4, a6, a7);
v9 = *a7 - a4;
if ( v9 )
memmove(a2, a4, v9);
if ( a7[1] )
return my_append_fix_badly_formed_tail(
a1,
(int)v9 + (int)a2,
v14 + (int)a2,
(int)v9 + (int)a4,
v12 + (int)a4,
v11 - v10,
(long long)a7)
+ v9;
else
return v9;
}
|
my_copy_fix_mb:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00142848
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x00142850
LAB_00142848:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x60],RAX
LAB_00142850:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x58],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x28]
ADD RDX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + 0x10]
CALL 0x00142910
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0014287b
LAB_0014287b:
MOV RAX,qword ptr [RBP + 0x10]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
CMP qword ptr [RBP + -0x48],0x0
JZ 0x001428a5
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x48]
CALL 0x00125670
LAB_001428a5:
MOV RAX,qword ptr [RBP + 0x10]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x001428ba
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00142903
LAB_001428ba:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
ADD RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x18]
ADD RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x28]
ADD RCX,qword ptr [RBP + -0x48]
MOV R8,qword ptr [RBP + -0x28]
ADD R8,qword ptr [RBP + -0x30]
MOV R9,qword ptr [RBP + -0x38]
SUB R9,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RSP],RAX
CALL 0x00142960
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x8],RAX
LAB_00142903:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x70
POP RBP
RET
|
size_t my_copy_fix_mb(int8 param_1,void *param_2,ulong param_3,void *param_4,ulong param_5,
long param_6,long *param_7)
{
long lVar1;
ulong local_68;
size_t local_10;
local_68 = param_3;
if (param_5 < param_3) {
local_68 = param_5;
}
lVar1 = my_ci_well_formed_char_length(param_1,param_4,(long)param_4 + local_68,param_6,param_7);
local_10 = *param_7 - (long)param_4;
if (local_10 != 0) {
memmove(param_2,param_4,local_10);
}
if (param_7[1] != 0) {
lVar1 = my_append_fix_badly_formed_tail
(param_1,(long)param_2 + local_10,(long)param_2 + param_3,
(long)param_4 + local_10,(long)param_4 + param_5,param_6 - lVar1,param_7);
local_10 = local_10 + lVar1;
}
return local_10;
}
|
|
13,346
|
bitmap_union_is_set_all
|
eloqsql/mysys/my_bitmap.c
|
my_bool bitmap_union_is_set_all(const MY_BITMAP *map1, const MY_BITMAP *map2)
{
my_bitmap_map *m1= map1->bitmap, *m2= map2->bitmap, *end;
DBUG_ASSERT(map1->bitmap);
DBUG_ASSERT(map2->bitmap);
DBUG_ASSERT(map1->n_bits==map2->n_bits);
end= map1->last_word_ptr;
while ( m1 < end)
if ((*m1++ | *m2++) != 0xFFFFFFFF)
return FALSE;
/* here both maps have the same number of bits - see assert above */
return ((*m1 | *m2 | map1->last_word_mask) != 0xFFFFFFFF);
}
|
O3
|
c
|
bitmap_union_is_set_all:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
movq (%rsi), %rcx
cmpq %rdx, %rax
jae 0x9d8c4
movl (%rcx), %esi
addq $0x4, %rcx
orl (%rax), %esi
addq $0x4, %rax
cmpl $-0x1, %esi
je 0x9d8aa
xorl %eax, %eax
jmp 0x9d8d1
movl (%rcx), %ecx
orl (%rax), %ecx
orl 0x18(%rdi), %ecx
cmpl $-0x1, %ecx
setne %al
popq %rbp
retq
|
bitmap_union_is_set_all:
push rbp
mov rbp, rsp
mov rax, [rdi]
mov rdx, [rdi+8]
mov rcx, [rsi]
loc_9D8AA:
cmp rax, rdx
jnb short loc_9D8C4
mov esi, [rcx]
add rcx, 4
or esi, [rax]
add rax, 4
cmp esi, 0FFFFFFFFh
jz short loc_9D8AA
xor eax, eax
jmp short loc_9D8D1
loc_9D8C4:
mov ecx, [rcx]
or ecx, [rax]
or ecx, [rdi+18h]
cmp ecx, 0FFFFFFFFh
setnz al
loc_9D8D1:
pop rbp
retn
|
bool bitmap_union_is_set_all(long long a1, int **a2)
{
_DWORD *v2; // rax
int *v3; // rcx
int v4; // esi
int v5; // esi
v2 = *(_DWORD **)a1;
v3 = *a2;
while ( (unsigned long long)v2 < *(_QWORD *)(a1 + 8) )
{
v4 = *v3++;
v5 = *v2++ | v4;
if ( v5 != -1 )
return 0;
}
return (*(_DWORD *)(a1 + 24) | *v2 | *v3) != -1;
}
|
bitmap_union_is_set_all:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
MOV RDX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RSI]
LAB_0019d8aa:
CMP RAX,RDX
JNC 0x0019d8c4
MOV ESI,dword ptr [RCX]
ADD RCX,0x4
OR ESI,dword ptr [RAX]
ADD RAX,0x4
CMP ESI,-0x1
JZ 0x0019d8aa
XOR EAX,EAX
JMP 0x0019d8d1
LAB_0019d8c4:
MOV ECX,dword ptr [RCX]
OR ECX,dword ptr [RAX]
OR ECX,dword ptr [RDI + 0x18]
CMP ECX,-0x1
SETNZ AL
LAB_0019d8d1:
POP RBP
RET
|
int8 bitmap_union_is_set_all(int8 *param_1,int8 *param_2)
{
uint uVar1;
uint uVar2;
uint *puVar3;
uint *puVar4;
puVar3 = (uint *)*param_1;
puVar4 = (uint *)*param_2;
do {
if ((uint *)param_1[1] <= puVar3) {
return CONCAT71((int7)((ulong)puVar3 >> 8),
(*puVar4 | *puVar3 | *(uint *)(param_1 + 3)) != 0xffffffff);
}
uVar1 = *puVar4;
puVar4 = puVar4 + 1;
uVar2 = *puVar3;
puVar3 = puVar3 + 1;
} while ((uVar1 | uVar2) == 0xffffffff);
return 0;
}
|
|
13,347
|
mi_cmp_static_unique
|
eloqsql/storage/myisam/mi_statrec.c
|
int _mi_cmp_static_unique(MI_INFO *info, MI_UNIQUEDEF *def,
const uchar *record, my_off_t pos)
{
DBUG_ENTER("_mi_cmp_static_unique");
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, info->rec_buff, info->s->base.reclength,
pos, MYF(MY_NABP)))
DBUG_RETURN(-1);
DBUG_RETURN(mi_unique_comp(def, record, info->rec_buff,
def->null_are_equal));
}
|
O0
|
c
|
mi_cmp_static_unique:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl $0x1, 0x300(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x2e0(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq 0x120(%rcx), %rsi
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq 0x140(%rcx), %rdx
movq -0x28(%rbp), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0xee77e
jmp 0xee775
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0xee7a3
jmp 0xee780
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x120(%rax), %rdx
movq -0x18(%rbp), %rax
movsbl 0x3(%rax), %ecx
callq 0xef2f0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
_mi_cmp_static_unique:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+300h], 1
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+2E0h]
mov rdi, [rbp+var_10]
mov rcx, [rbp+var_10]
mov rsi, [rcx+120h]
mov rcx, [rbp+var_10]
mov rcx, [rcx]
mov rdx, [rcx+140h]
mov rcx, [rbp+var_28]
mov r8d, 4
call rax
cmp rax, 0
jz short loc_EE77E
jmp short $+2
loc_EE775:
mov [rbp+var_4], 0FFFFFFFFh
jmp short loc_EE7A3
loc_EE77E:
jmp short $+2
loc_EE780:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_10]
mov rdx, [rax+120h]
mov rax, [rbp+var_18]
movsx ecx, byte ptr [rax+3]
call mi_unique_comp
mov [rbp+var_4], eax
loc_EE7A3:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long mi_cmp_static_unique(long long a1, long long a2, long long a3, long long a4)
{
*(_DWORD *)(a1 + 768) = 1;
if ( (*(long long ( **)(long long, _QWORD, _QWORD, long long, long long))(*(_QWORD *)a1 + 736LL))(
a1,
*(_QWORD *)(a1 + 288),
*(_QWORD *)(*(_QWORD *)a1 + 320LL),
a4,
4LL) )
{
return (unsigned int)-1;
}
else
{
return (unsigned int)mi_unique_comp(a2, a3, *(_QWORD *)(a1 + 288), (unsigned int)*(char *)(a2 + 3));
}
}
|
_mi_cmp_static_unique:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x300],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x2e0]
MOV RDI,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RCX + 0x120]
MOV RCX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x140]
MOV RCX,qword ptr [RBP + -0x28]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x001ee77e
JMP 0x001ee775
LAB_001ee775:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x001ee7a3
LAB_001ee77e:
JMP 0x001ee780
LAB_001ee780:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RAX + 0x120]
MOV RAX,qword ptr [RBP + -0x18]
MOVSX ECX,byte ptr [RAX + 0x3]
CALL 0x001ef2f0
MOV dword ptr [RBP + -0x4],EAX
LAB_001ee7a3:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 _mi_cmp_static_unique(long *param_1,long param_2,int8 param_3,int8 param_4)
{
long lVar1;
int4 local_c;
*(int4 *)(param_1 + 0x60) = 1;
lVar1 = (**(code **)(*param_1 + 0x2e0))
(param_1,param_1[0x24],*(int8 *)(*param_1 + 0x140),param_4,4);
if (lVar1 == 0) {
local_c = mi_unique_comp(param_2,param_3,param_1[0x24],(int)*(char *)(param_2 + 3));
}
else {
local_c = 0xffffffff;
}
return local_c;
}
|
|
13,348
|
reset_root_defaults
|
eloqsql/mysys/my_alloc.c
|
void reset_root_defaults(MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)))
{
DBUG_ENTER("reset_root_defaults");
DBUG_ASSERT(alloc_root_inited(mem_root));
mem_root->block_size= (((block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1) |
(mem_root->block_size & 1));
#if !(defined(HAVE_valgrind) && defined(EXTRA_DEBUG))
if (pre_alloc_size)
{
size_t size= pre_alloc_size + ALIGN_SIZE(sizeof(USED_MEM));
if (!mem_root->pre_alloc || mem_root->pre_alloc->size != size)
{
USED_MEM *mem, **prev= &mem_root->free;
/*
Free unused blocks, so that consequent calls
to reset_root_defaults won't eat away memory.
*/
while (*prev)
{
mem= *prev;
if (mem->size == size)
{
/* We found a suitable block, no need to do anything else */
mem_root->pre_alloc= mem;
DBUG_VOID_RETURN;
}
if (mem->left + ALIGN_SIZE(sizeof(USED_MEM)) == mem->size)
{
/* remove block from the list and free it */
*prev= mem->next;
my_free(mem);
}
else
prev= &mem->next;
}
/* Allocate new prealloc block and add it to the end of free list */
if ((mem= (USED_MEM *) my_malloc(mem_root->m_psi_key, size,
MYF(MALLOC_FLAG(mem_root->
block_size)))))
{
mem->size= size;
mem->left= pre_alloc_size;
mem->next= *prev;
*prev= mem_root->pre_alloc= mem;
TRASH_MEM(mem);
}
else
{
mem_root->pre_alloc= 0;
}
}
}
else
#endif
mem_root->pre_alloc= 0;
DBUG_VOID_RETURN;
}
|
O0
|
c
|
reset_root_defaults:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
jmp 0x67ff6
movq -0x10(%rbp), %rcx
subq $0x28, %rcx
andq $-0x2, %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
andq $0x1, %rax
orq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, -0x18(%rbp)
je 0x6814f
movq -0x18(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x68051
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
je 0x6814d
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpq $0x0, (%rax)
je 0x680c6
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x20(%rbp), %rax
jne 0x6808d
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x6815f
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x18, %rax
movq -0x28(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x680bc
movq -0x28(%rbp), %rax
movq (%rax), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rdi
callq 0x58fc0
jmp 0x680c4
movq -0x28(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x68059
movq -0x8(%rbp), %rax
movl 0x38(%rax), %edi
movq -0x20(%rbp), %rsi
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdx
andq $0x1, %rdx
xorl %eax, %eax
movl $0x10000, %ecx # imm = 0x10000
cmpq $0x0, %rdx
cmovnel %ecx, %eax
movl %eax, %eax
movl %eax, %edx
callq 0x58c40
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
je 0x6813f
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x30(%rbp), %rax
movq (%rax), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x28(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
jmp 0x68139
jmp 0x6813b
jmp 0x6813d
jmp 0x6814b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0x6814d
jmp 0x6815b
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
jmp 0x6815d
jmp 0x6815f
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
reset_root_defaults:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
jmp short $+2
loc_67FF6:
mov rcx, [rbp+var_10]
sub rcx, 28h ; '('
and rcx, 0FFFFFFFFFFFFFFFEh
mov rax, [rbp+var_8]
mov rax, [rax+20h]
and rax, 1
or rcx, rax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
cmp [rbp+var_18], 0
jz loc_6814F
mov rax, [rbp+var_18]
add rax, 18h
mov [rbp+var_20], rax
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_68051
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jz loc_6814D
loc_68051:
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
loc_68059:
mov rax, [rbp+var_30]
cmp qword ptr [rax], 0
jz short loc_680C6
mov rax, [rbp+var_30]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+10h]
cmp rax, [rbp+var_20]
jnz short loc_6808D
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
jmp loc_6815F
loc_6808D:
mov rax, [rbp+var_28]
mov rax, [rax+8]
add rax, 18h
mov rcx, [rbp+var_28]
cmp rax, [rcx+10h]
jnz short loc_680BC
mov rax, [rbp+var_28]
mov rcx, [rax]
mov rax, [rbp+var_30]
mov [rax], rcx
mov rdi, [rbp+var_28]
call my_free
jmp short loc_680C4
loc_680BC:
mov rax, [rbp+var_28]
mov [rbp+var_30], rax
loc_680C4:
jmp short loc_68059
loc_680C6:
mov rax, [rbp+var_8]
mov edi, [rax+38h]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_8]
mov rdx, [rax+20h]
and rdx, 1
xor eax, eax
mov ecx, 10000h
cmp rdx, 0
cmovnz eax, ecx
mov eax, eax
mov edx, eax
call my_malloc
mov [rbp+var_28], rax
cmp rax, 0
jz short loc_6813F
mov rcx, [rbp+var_20]
mov rax, [rbp+var_28]
mov [rax+10h], rcx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_28]
mov [rax+8], rcx
mov rax, [rbp+var_30]
mov rcx, [rax]
mov rax, [rbp+var_28]
mov [rax], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_8]
mov [rax+10h], rcx
mov rax, [rbp+var_30]
mov [rax], rcx
jmp short $+2
loc_68139:
jmp short $+2
loc_6813B:
jmp short $+2
loc_6813D:
jmp short loc_6814B
loc_6813F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_6814B:
jmp short $+2
loc_6814D:
jmp short loc_6815B
loc_6814F:
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_6815B:
jmp short $+2
loc_6815D:
jmp short $+2
loc_6815F:
add rsp, 30h
pop rbp
retn
|
long long * reset_root_defaults(long long *a1, long long a2, long long a3)
{
long long *result; // rax
unsigned int v4; // edi
int v5; // eax
long long *v6; // [rsp+0h] [rbp-30h]
long long *v7; // [rsp+8h] [rbp-28h]
_QWORD *v8; // [rsp+8h] [rbp-28h]
unsigned long long v9; // [rsp+10h] [rbp-20h]
a1[4] = a1[4] & 1 | (a2 - 40) & 0xFFFFFFFFFFFFFFFELL;
if ( a3 )
{
v9 = a3 + 24;
if ( !a1[2] || (result = *(long long **)(a1[2] + 16), result != (long long *)v9) )
{
v6 = a1;
while ( *v6 )
{
v7 = (long long *)*v6;
if ( *(_QWORD *)(*v6 + 16) == v9 )
{
result = a1;
a1[2] = (long long)v7;
return result;
}
if ( v7[1] + 24 == v7[2] )
{
*v6 = *v7;
my_free((long long)v7);
}
else
{
v6 = (long long *)*v6;
}
}
v4 = *((_DWORD *)a1 + 14);
v5 = 0;
if ( (a1[4] & 1) != 0 )
v5 = 0x10000;
v8 = (_QWORD *)my_malloc(v4, v9, v5);
if ( v8 )
{
v8[2] = v9;
v8[1] = a3;
*v8 = *v6;
a1[2] = (long long)v8;
result = v6;
*v6 = (long long)v8;
}
else
{
result = a1;
a1[2] = 0LL;
}
}
}
else
{
result = a1;
a1[2] = 0LL;
}
return result;
}
|
reset_root_defaults:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
JMP 0x00167ff6
LAB_00167ff6:
MOV RCX,qword ptr [RBP + -0x10]
SUB RCX,0x28
AND RCX,-0x2
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x20]
AND RAX,0x1
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0016814f
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00168051
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x0016814d
LAB_00168051:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
LAB_00168059:
MOV RAX,qword ptr [RBP + -0x30]
CMP qword ptr [RAX],0x0
JZ 0x001680c6
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x10]
CMP RAX,qword ptr [RBP + -0x20]
JNZ 0x0016808d
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
JMP 0x0016815f
LAB_0016808d:
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
ADD RAX,0x18
MOV RCX,qword ptr [RBP + -0x28]
CMP RAX,qword ptr [RCX + 0x10]
JNZ 0x001680bc
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x00158fc0
JMP 0x001680c4
LAB_001680bc:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x30],RAX
LAB_001680c4:
JMP 0x00168059
LAB_001680c6:
MOV RAX,qword ptr [RBP + -0x8]
MOV EDI,dword ptr [RAX + 0x38]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RAX + 0x20]
AND RDX,0x1
XOR EAX,EAX
MOV ECX,0x10000
CMP RDX,0x0
CMOVNZ EAX,ECX
MOV EAX,EAX
MOV EDX,EAX
CALL 0x00158c40
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
JZ 0x0016813f
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RAX],RCX
JMP 0x00168139
LAB_00168139:
JMP 0x0016813b
LAB_0016813b:
JMP 0x0016813d
LAB_0016813d:
JMP 0x0016814b
LAB_0016813f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_0016814b:
JMP 0x0016814d
LAB_0016814d:
JMP 0x0016815b
LAB_0016814f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_0016815b:
JMP 0x0016815d
LAB_0016815d:
JMP 0x0016815f
LAB_0016815f:
ADD RSP,0x30
POP RBP
RET
|
void reset_root_defaults(long *param_1,long param_2,long param_3)
{
int4 uVar1;
long lVar2;
long *plVar3;
long *local_38;
param_1[4] = param_2 - 0x28U & 0xfffffffffffffffe | param_1[4] & 1U;
if (param_3 == 0) {
param_1[2] = 0;
}
else {
lVar2 = param_3 + 0x18;
plVar3 = param_1;
if ((param_1[2] == 0) || (plVar3 = param_1, *(long *)(param_1[2] + 0x10) != lVar2)) {
while (local_38 = plVar3, *local_38 != 0) {
plVar3 = (long *)*local_38;
if (plVar3[2] == lVar2) {
param_1[2] = (long)plVar3;
return;
}
if (plVar3[1] + 0x18 == plVar3[2]) {
*local_38 = *plVar3;
my_free(plVar3);
plVar3 = local_38;
}
}
uVar1 = 0;
if ((param_1[4] & 1U) != 0) {
uVar1 = 0x10000;
}
plVar3 = (long *)my_malloc((int)param_1[7],lVar2,uVar1);
if (plVar3 == (long *)0x0) {
param_1[2] = 0;
}
else {
plVar3[2] = lVar2;
plVar3[1] = param_3;
*plVar3 = *local_38;
param_1[2] = (long)plVar3;
*local_38 = (long)plVar3;
}
}
}
return;
}
|
|
13,349
|
mi_get_status
|
eloqsql/storage/myisam/mi_locking.c
|
my_bool mi_get_status(void* param, my_bool concurrent_insert)
{
MI_INFO *info=(MI_INFO*) param;
DBUG_ENTER("mi_get_status");
DBUG_PRINT("info",("name: %s key_file: %lu data_file: %lu rows: %lu concurrent_insert: %d",
info->s->index_file_name,
(ulong) info->s->state.state.key_file_length,
(ulong) info->s->state.state.data_file_length,
(ulong) info->s->state.state.records,
concurrent_insert));
#ifndef DBUG_OFF
if (info->state->key_file_length > info->s->state.state.key_file_length ||
info->state->data_file_length > info->s->state.state.data_file_length)
DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld",
(long) info->state->key_file_length,
(long) info->state->data_file_length));
#endif
info->save_state=info->s->state.state;
info->state= &info->save_state;
info->append_insert_at_end= concurrent_insert;
if (concurrent_insert)
info->s->state.state.uncacheable= TRUE;
DBUG_RETURN(0);
}
|
O3
|
c
|
mi_get_status:
pushq %rbp
movq %rsp, %rbp
leaq 0x10(%rdi), %rcx
movq (%rdi), %rax
movups 0x18(%rax), %xmm0
movups 0x28(%rax), %xmm1
movups 0x38(%rax), %xmm2
movups %xmm0, 0x10(%rdi)
movups %xmm1, 0x20(%rdi)
movups %xmm2, 0x30(%rdi)
movq 0x48(%rax), %rdx
movq %rdx, 0x40(%rdi)
movq %rcx, 0x8(%rdi)
movb %sil, 0x33a(%rdi)
testb %sil, %sil
je 0x37396
movb $0x1, 0x4c(%rax)
xorl %eax, %eax
popq %rbp
retq
|
mi_get_status:
push rbp
mov rbp, rsp
lea rcx, [rdi+10h]
mov rax, [rdi]
movups xmm0, xmmword ptr [rax+18h]
movups xmm1, xmmword ptr [rax+28h]
movups xmm2, xmmword ptr [rax+38h]
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi+20h], xmm1
movups xmmword ptr [rdi+30h], xmm2
mov rdx, [rax+48h]
mov [rdi+40h], rdx
mov [rdi+8], rcx
mov [rdi+33Ah], sil
test sil, sil
jz short loc_37396
mov byte ptr [rax+4Ch], 1
loc_37396:
xor eax, eax
pop rbp
retn
|
long long mi_get_status(_OWORD *a1, char a2)
{
long long v2; // rax
__int128 v3; // xmm1
__int128 v4; // xmm2
v2 = *(_QWORD *)a1;
v3 = *(_OWORD *)(*(_QWORD *)a1 + 40LL);
v4 = *(_OWORD *)(*(_QWORD *)a1 + 56LL);
a1[1] = *(_OWORD *)(*(_QWORD *)a1 + 24LL);
a1[2] = v3;
a1[3] = v4;
*((_QWORD *)a1 + 8) = *(_QWORD *)(v2 + 72);
*((_QWORD *)a1 + 1) = a1 + 1;
*((_BYTE *)a1 + 826) = a2;
if ( a2 )
*(_BYTE *)(v2 + 76) = 1;
return 0LL;
}
|
mi_get_status:
PUSH RBP
MOV RBP,RSP
LEA RCX,[RDI + 0x10]
MOV RAX,qword ptr [RDI]
MOVUPS XMM0,xmmword ptr [RAX + 0x18]
MOVUPS XMM1,xmmword ptr [RAX + 0x28]
MOVUPS XMM2,xmmword ptr [RAX + 0x38]
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM1
MOVUPS xmmword ptr [RDI + 0x30],XMM2
MOV RDX,qword ptr [RAX + 0x48]
MOV qword ptr [RDI + 0x40],RDX
MOV qword ptr [RDI + 0x8],RCX
MOV byte ptr [RDI + 0x33a],SIL
TEST SIL,SIL
JZ 0x00137396
MOV byte ptr [RAX + 0x4c],0x1
LAB_00137396:
XOR EAX,EAX
POP RBP
RET
|
int8 mi_get_status(long *param_1,char param_2)
{
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long lVar5;
long lVar6;
lVar1 = *param_1;
lVar2 = *(long *)(lVar1 + 0x20);
lVar3 = *(long *)(lVar1 + 0x28);
lVar4 = *(long *)(lVar1 + 0x30);
lVar5 = *(long *)(lVar1 + 0x38);
lVar6 = *(long *)(lVar1 + 0x40);
param_1[2] = *(long *)(lVar1 + 0x18);
param_1[3] = lVar2;
param_1[4] = lVar3;
param_1[5] = lVar4;
param_1[6] = lVar5;
param_1[7] = lVar6;
param_1[8] = *(long *)(lVar1 + 0x48);
param_1[1] = (long)(param_1 + 2);
*(char *)((long)param_1 + 0x33a) = param_2;
if (param_2 != '\0') {
*(int1 *)(lVar1 + 0x4c) = 1;
}
return 0;
}
|
|
13,350
|
js_not_slow
|
bluesky950520[P]quickjs/quickjs.c
|
static no_inline int js_not_slow(JSContext *ctx, JSValue *sp)
{
JSValue op1;
op1 = JS_ToNumericFree(ctx, sp[-1]);
if (JS_IsException(op1))
goto exception;
if (JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT) {
if (js_unary_arith_bigint(ctx, sp - 1, OP_not, op1))
goto exception;
} else {
int32_t v1;
if (unlikely(JS_ToInt32Free(ctx, &v1, op1)))
goto exception;
sp[-1] = js_int32(~v1);
}
return 0;
exception:
sp[-1] = JS_UNDEFINED;
return -1;
}
|
O1
|
c
|
js_not_slow:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq -0x10(%rsi), %rsi
movq -0x8(%rbx), %rdx
movl $0x1, %ecx
callq 0x42b20
movq %rdx, %r8
cmpl $0x6, %r8d
je 0x40cfb
cmpl $-0x9, %r8d
jne 0x40d11
leaq -0x10(%rbx), %rsi
movq %r14, %rdi
movl $0x95, %edx
movq %rax, %rcx
callq 0x42d24
testl %eax, %eax
je 0x40d3a
movl $0x0, -0x10(%rbx)
movq $0x3, -0x8(%rbx)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x40d3c
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %r8, %rcx
callq 0x279c3
testl %eax, %eax
jne 0x40cfb
movl 0x4(%rsp), %eax
notl %eax
movq %rax, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_not_slow:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rsi, [rsi-10h]
mov rdx, [rbx-8]
mov ecx, 1
call JS_ToNumberHintFree
mov r8, rdx
cmp r8d, 6
jz short loc_40CFB
cmp r8d, 0FFFFFFF7h
jnz short loc_40D11
lea rsi, [rbx-10h]
mov rdi, r14
mov edx, 95h
mov rcx, rax
call js_unary_arith_bigint
test eax, eax
jz short loc_40D3A
loc_40CFB:
mov dword ptr [rbx-10h], 0
mov qword ptr [rbx-8], 3
mov eax, 0FFFFFFFFh
jmp short loc_40D3C
loc_40D11:
lea rsi, [rsp+18h+var_14]
mov rdi, r14
mov rdx, rax
mov rcx, r8
call JS_ToInt32Free
test eax, eax
jnz short loc_40CFB
mov eax, [rsp+18h+var_14]
not eax
mov [rbx-10h], rax
mov qword ptr [rbx-8], 0
loc_40D3A:
xor eax, eax
loc_40D3C:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_not_slow(long long a1, long long a2)
{
long long v2; // rax
unsigned long long v3; // rax
long long v4; // rdx
int v6[5]; // [rsp+0h] [rbp-14h] BYREF
v6[0] = HIDWORD(v2);
v3 = JS_ToNumberHintFree(a1, *(_QWORD *)(a2 - 16), *(_QWORD *)(a2 - 8), 1LL);
if ( (_DWORD)v4 == 6 )
goto LABEL_4;
if ( (_DWORD)v4 == -9 )
{
if ( (unsigned int)js_unary_arith_bigint(a1, a2 - 16, 149LL, v3) )
{
LABEL_4:
*(_DWORD *)(a2 - 16) = 0;
*(_QWORD *)(a2 - 8) = 3LL;
return 0xFFFFFFFFLL;
}
}
else
{
if ( (unsigned int)JS_ToInt32Free(a1, v6, v3, v4) )
goto LABEL_4;
*(_QWORD *)(a2 - 16) = (unsigned int)~v6[0];
*(_QWORD *)(a2 - 8) = 0LL;
}
return 0LL;
}
| |||
13,351
|
js_not_slow
|
bluesky950520[P]quickjs/quickjs.c
|
static no_inline int js_not_slow(JSContext *ctx, JSValue *sp)
{
JSValue op1;
op1 = JS_ToNumericFree(ctx, sp[-1]);
if (JS_IsException(op1))
goto exception;
if (JS_VALUE_GET_TAG(op1) == JS_TAG_BIG_INT) {
if (js_unary_arith_bigint(ctx, sp - 1, OP_not, op1))
goto exception;
} else {
int32_t v1;
if (unlikely(JS_ToInt32Free(ctx, &v1, op1)))
goto exception;
sp[-1] = js_int32(~v1);
}
return 0;
exception:
sp[-1] = JS_UNDEFINED;
return -1;
}
|
O2
|
c
|
js_not_slow:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq -0x10(%rsi), %rsi
movq -0x8(%rbx), %rdx
callq 0x3a3be
movq %rdx, %r8
cmpl $0x6, %r8d
je 0x38c6d
cmpl $-0x9, %r8d
jne 0x38c7e
leaq -0x10(%rbx), %rsi
movq %r14, %rdi
movl $0x95, %edx
movq %rax, %rcx
callq 0x3a8e6
testl %eax, %eax
je 0x38ca4
andl $0x0, -0x10(%rbx)
movq $0x3, -0x8(%rbx)
pushq $-0x1
popq %rax
jmp 0x38ca6
leaq 0x4(%rsp), %rsi
movq %r14, %rdi
movq %rax, %rdx
movq %r8, %rcx
callq 0x215e0
testl %eax, %eax
jne 0x38c6d
movl 0x4(%rsp), %eax
notl %eax
movq %rax, -0x10(%rbx)
andq $0x0, -0x8(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
|
js_not_slow:
push r14
push rbx
push rax
mov rbx, rsi
mov r14, rdi
mov rsi, [rsi-10h]
mov rdx, [rbx-8]
call JS_ToNumericFree
mov r8, rdx
cmp r8d, 6
jz short loc_38C6D
cmp r8d, 0FFFFFFF7h
jnz short loc_38C7E
lea rsi, [rbx-10h]
mov rdi, r14
mov edx, 95h
mov rcx, rax
call js_unary_arith_bigint
test eax, eax
jz short loc_38CA4
loc_38C6D:
and dword ptr [rbx-10h], 0
mov qword ptr [rbx-8], 3
push 0FFFFFFFFFFFFFFFFh
pop rax
jmp short loc_38CA6
loc_38C7E:
lea rsi, [rsp+18h+var_14]
mov rdi, r14
mov rdx, rax
mov rcx, r8
call JS_ToInt32Free
test eax, eax
jnz short loc_38C6D
mov eax, [rsp+18h+var_14]
not eax
mov [rbx-10h], rax
and qword ptr [rbx-8], 0
loc_38CA4:
xor eax, eax
loc_38CA6:
add rsp, 8
pop rbx
pop r14
retn
|
long long js_not_slow(long long a1, long long a2)
{
long long v2; // rax
unsigned long long v3; // rax
long long v4; // rdx
_DWORD v6[5]; // [rsp+0h] [rbp-14h] BYREF
v6[0] = HIDWORD(v2);
v3 = JS_ToNumericFree(a1, *(_QWORD *)(a2 - 16));
if ( (_DWORD)v4 == 6 )
goto LABEL_4;
if ( (_DWORD)v4 == -9 )
{
if ( (unsigned int)js_unary_arith_bigint(a1, a2 - 16, 149LL, v3) )
{
LABEL_4:
*(_DWORD *)(a2 - 16) = 0;
*(_QWORD *)(a2 - 8) = 3LL;
return -1LL;
}
}
else
{
if ( (unsigned int)JS_ToInt32Free(a1, v6, v3, v4) )
goto LABEL_4;
*(_QWORD *)(a2 - 16) = (unsigned int)~v6[0];
*(_QWORD *)(a2 - 8) = 0LL;
}
return 0LL;
}
|
js_not_slow:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
MOV RSI,qword ptr [RSI + -0x10]
MOV RDX,qword ptr [RBX + -0x8]
CALL 0x0013a3be
MOV R8,RDX
CMP R8D,0x6
JZ 0x00138c6d
CMP R8D,-0x9
JNZ 0x00138c7e
LEA RSI,[RBX + -0x10]
MOV RDI,R14
MOV EDX,0x95
MOV RCX,RAX
CALL 0x0013a8e6
TEST EAX,EAX
JZ 0x00138ca4
LAB_00138c6d:
AND dword ptr [RBX + -0x10],0x0
MOV qword ptr [RBX + -0x8],0x3
PUSH -0x1
POP RAX
JMP 0x00138ca6
LAB_00138c7e:
LEA RSI,[RSP + 0x4]
MOV RDI,R14
MOV RDX,RAX
MOV RCX,R8
CALL 0x001215e0
TEST EAX,EAX
JNZ 0x00138c6d
MOV EAX,dword ptr [RSP + 0x4]
NOT EAX
MOV qword ptr [RBX + -0x10],RAX
AND qword ptr [RBX + -0x8],0x0
LAB_00138ca4:
XOR EAX,EAX
LAB_00138ca6:
ADD RSP,0x8
POP RBX
POP R14
RET
|
int8 js_not_slow(int8 param_1,long param_2)
{
int iVar1;
int8 in_RAX;
int1 auVar2 [16];
uint local_14;
local_14 = (uint)((ulong)in_RAX >> 0x20);
auVar2 = JS_ToNumericFree(param_1,*(int8 *)(param_2 + -0x10),*(int8 *)(param_2 + -8));
if (auVar2._8_4_ != 6) {
if (auVar2._8_4_ == -9) {
iVar1 = js_unary_arith_bigint(param_1,param_2 + -0x10,0x95,auVar2._0_8_);
if (iVar1 == 0) {
return 0;
}
}
else {
iVar1 = JS_ToInt32Free(param_1,&local_14,auVar2._0_8_,auVar2._8_8_);
if (iVar1 == 0) {
*(ulong *)(param_2 + -0x10) = (ulong)~local_14;
*(int8 *)(param_2 + -8) = 0;
return 0;
}
}
}
*(int4 *)(param_2 + -0x10) = 0;
*(int8 *)(param_2 + -8) = 3;
return 0xffffffffffffffff;
}
|
|
13,352
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool)
|
monkey531[P]llama/common/json.hpp
|
static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser(
InputAdapterType adapter,
detail::parser_callback_t<basic_json>cb = nullptr,
const bool allow_exceptions = true,
const bool ignore_comments = false
)
{
return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter),
std::move(cb), allow_exceptions, ignore_comments);
}
|
O2
|
cpp
|
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>> 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>::parser<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>>>>>(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>>>>, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool, bool):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq 0x18(%rcx), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rcx), %rax
testq %rax, %rax
je 0x3fe2e
movups (%rcx), %xmm1
addq $0x10, %rcx
movaps %xmm1, (%rsp)
movq %rax, 0x10(%rsp)
movups %xmm0, (%rcx)
movzbl %r8b, %ecx
movzbl %r9b, %r8d
leaq 0x20(%rsp), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x40a4e
movq %rsp, %rdi
callq 0x4a6e6
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4a6e6
movq %rbx, %rdi
callq 0x251e0
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6parserINS0_6detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcS9_EEEEEENSF_6parserISD_T_EESO_St8functionIFbiNSF_13parse_event_tERSD_EEbb:
push rbx
sub rsp, 30h
mov rbx, rdi
mov [rsp+38h+var_18], rsi
mov [rsp+38h+var_10], rdx
xorps xmm0, xmm0
movaps [rsp+38h+var_38], xmm0
and [rsp+38h+var_28], 0
mov rax, [rcx+18h]
mov [rsp+38h+var_20], rax
mov rax, [rcx+10h]
test rax, rax
jz short loc_3FE2E
movups xmm1, xmmword ptr [rcx]
add rcx, 10h
movaps [rsp+38h+var_38], xmm1
mov [rsp+38h+var_28], rax
movups xmmword ptr [rcx], xmm0
loc_3FE2E:
movzx ecx, r8b
movzx r8d, r9b
lea rsi, [rsp+38h+var_18]
mov rdx, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEEC2EOSM_St8functionIFbiNS1_13parse_event_tERSF_EEbb; nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>&&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool,bool)
mov rdi, rsp; this
call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base()
mov rax, rbx
add rsp, 30h
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
|
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>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>(
long long a1,
long long a2,
long long a3,
__int128 *a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
long long v6; // rax
__int128 v8; // [rsp+0h] [rbp-38h] BYREF
long long v9; // [rsp+10h] [rbp-28h]
long long v10; // [rsp+18h] [rbp-20h]
_QWORD v11[3]; // [rsp+20h] [rbp-18h] BYREF
v11[0] = a2;
v11[1] = a3;
v8 = 0LL;
v9 = 0LL;
v10 = *((_QWORD *)a4 + 3);
v6 = *((_QWORD *)a4 + 2);
if ( v6 )
{
v8 = *a4;
v9 = v6;
a4[1] = 0LL;
}
((void ( *)(long long, _QWORD *, __int128 *, _QWORD, _QWORD))nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::parser)(
a1,
v11,
&v8,
a5,
a6);
std::_Function_base::~_Function_base((std::_Function_base *)&v8);
return a1;
}
|
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV qword ptr [RSP + 0x20],RSI
MOV qword ptr [RSP + 0x28],RDX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
AND qword ptr [RSP + 0x10],0x0
MOV RAX,qword ptr [RCX + 0x18]
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RCX + 0x10]
TEST RAX,RAX
JZ 0x0013fe2e
MOVUPS XMM1,xmmword ptr [RCX]
ADD RCX,0x10
MOVAPS xmmword ptr [RSP],XMM1
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RCX],XMM0
LAB_0013fe2e:
MOVZX ECX,R8B
MOVZX R8D,R9B
LEA RSI,[RSP + 0x20]
MOV RDX,RSP
MOV RDI,RBX
CALL 0x00140a4e
LAB_0013fe46:
MOV RDI,RSP
CALL 0x0014a6e6
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>(nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >, std::function<bool (int,
nlohmann::json_abi_v3_11_3::detail::parse_event_t,
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>&)>, bool, bool) */
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
* nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
parser<nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
(parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*param_1,int8 param_2,int8 param_3,int8 *param_4,int1 param_5,
int1 param_6)
{
long lVar1;
int8 local_38;
int8 uStack_30;
long local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_38 = 0;
uStack_30 = 0;
local_28 = 0;
local_20 = param_4[3];
lVar1 = param_4[2];
if (lVar1 != 0) {
local_38 = *param_4;
uStack_30 = param_4[1];
param_4[2] = 0;
param_4[3] = 0;
local_28 = lVar1;
}
/* try { // try from 0013fe2e to 0013fe45 has its CatchHandler @ 0013fe57 */
local_18 = param_2;
local_10 = param_3;
detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::parser(param_1,&local_18,&local_38,param_5,param_6);
std::_Function_base::~_Function_base((_Function_base *)&local_38);
return param_1;
}
|
|
13,353
|
string_split(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/common.cpp
|
std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) {
std::vector<std::string> parts;
size_t start = 0;
size_t end = str.find(delimiter);
while (end != std::string::npos) {
parts.push_back(str.substr(start, end - start));
start = end + delimiter.length();
end = str.find(delimiter, start);
}
parts.push_back(str.substr(start));
return parts;
}
|
O3
|
cpp
|
string_split(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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %ebp, %ebp
movq %r14, %rdi
xorl %edx, %edx
callq 0x1af20
cmpq $-0x1, %rax
je 0x72016
movq %rax, %r12
xorl %ebp, %ebp
leaq 0x8(%rsp), %r13
movq %r12, %rcx
subq %rbp, %rcx
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x1a910
movq %rbx, %rdi
movq %r13, %rsi
callq 0x554de
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x71ff5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq (%r15), %rsi
movq 0x8(%r15), %rcx
movq %r12, %rbp
addq %rcx, %rbp
movq %r14, %rdi
movq %rbp, %rdx
callq 0x1af20
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x71fba
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq $-0x1, %rcx
callq 0x1a910
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x554de
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72055
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x72089
jmp 0x72077
movq %rax, %r14
jmp 0x7209b
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7209b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8c0
movq %rbx, %rdi
callq 0x20b0a
movq %r14, %rdi
callq 0x1af80
|
_Z12string_splitRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
mov qword ptr [rdi+10h], 0
mov rsi, [rdx]
mov rcx, [rdx+8]
xor ebp, ebp
mov rdi, r14
xor edx, edx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_72016
mov r12, rax
xor ebp, ebp
lea r13, [rsp+58h+var_50]
loc_71FBA:
mov rcx, r12
sub rcx, rbp
mov rdi, r13
mov rsi, r14
mov rdx, rbp
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, rbx
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
mov rdi, [rsp+58h+var_50]; void *
lea rax, [rsp+58h+var_40]
cmp rdi, rax
jz short loc_71FF5
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_71FF5:
mov rsi, [r15]
mov rcx, [r15+8]
mov rbp, r12
add rbp, rcx
mov rdi, r14
mov rdx, rbp
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
mov r12, rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_71FBA
loc_72016:
lea rdi, [rsp+58h+var_50]
mov rsi, r14
mov rdx, rbp
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
lea rsi, [rsp+58h+var_50]
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&)
lea rax, [rsp+58h+var_40]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_72055
mov rsi, [rsp+58h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_72055:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]
jmp short loc_72089
jmp short $+2
loc_72077:
mov r14, rax
jmp short loc_7209B
mov r14, rax
mov rdi, [rsp+arg_0]; void *
lea rax, [rsp+arg_10]
loc_72089:
cmp rdi, rax
jz short loc_7209B
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7209B:
mov rdi, rbx
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, r14
call __Unwind_Resume
|
long long string_split(long long a1, long long a2, _QWORD *a3)
{
long long v4; // rbp
long long v5; // rax
long long v6; // r12
long long v7; // rcx
void *v9[2]; // [rsp+8h] [rbp-50h] BYREF
_QWORD v10[8]; // [rsp+18h] [rbp-40h] BYREF
*(_OWORD *)a1 = 0LL;
*(_QWORD *)(a1 + 16) = 0LL;
v4 = 0LL;
v5 = std::string::find(a2, *a3, 0LL, a3[1]);
if ( v5 != -1 )
{
v6 = v5;
v4 = 0LL;
do
{
std::string::substr(v9, a2, v4, v6 - v4);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
v7 = a3[1];
v4 = v7 + v6;
v6 = std::string::find(a2, *a3, v7 + v6, v7);
}
while ( v6 != -1 );
}
std::string::substr(v9, a2, v4, -1LL);
std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9);
if ( v9[0] != v10 )
operator delete(v9[0], v10[0] + 1LL);
return a1;
}
|
string_split:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOV qword ptr [RDI + 0x10],0x0
MOV RSI,qword ptr [RDX]
MOV RCX,qword ptr [RDX + 0x8]
XOR EBP,EBP
MOV RDI,R14
XOR EDX,EDX
CALL 0x0011af20
CMP RAX,-0x1
JZ 0x00172016
MOV R12,RAX
XOR EBP,EBP
LEA R13,[RSP + 0x8]
LAB_00171fba:
MOV RCX,R12
SUB RCX,RBP
LAB_00171fc0:
MOV RDI,R13
MOV RSI,R14
MOV RDX,RBP
CALL 0x0011a910
LAB_00171fce:
MOV RDI,RBX
MOV RSI,R13
CALL 0x001554de
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x00171ff5
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8c0
LAB_00171ff5:
MOV RSI,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
MOV RBP,R12
ADD RBP,RCX
MOV RDI,R14
MOV RDX,RBP
CALL 0x0011af20
MOV R12,RAX
CMP RAX,-0x1
JNZ 0x00171fba
LAB_00172016:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV RDX,RBP
MOV RCX,-0x1
CALL 0x0011a910
LAB_0017202d:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001554de
LAB_0017203a:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00172055
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8c0
LAB_00172055:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_split(std::__cxx11::string const&, std::__cxx11::string const&) */
string * string_split(string *param_1,string *param_2)
{
long lVar1;
ulong *in_RDX;
long *local_50 [2];
long local_40 [2];
*(int8 *)param_1 = 0;
*(int8 *)(param_1 + 8) = 0;
*(int8 *)(param_1 + 0x10) = 0;
lVar1 = std::__cxx11::string::find((char *)param_2,*in_RDX,0);
if (lVar1 != -1) {
do {
/* try { // try from 00171fc0 to 00171fcd has its CatchHandler @ 00172077 */
std::__cxx11::string::substr((ulong)local_50,(ulong)param_2);
/* try { // try from 00171fce to 00171fd8 has its CatchHandler @ 0017207c */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,
(string *)local_50);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
lVar1 = std::__cxx11::string::find((char *)param_2,*in_RDX,lVar1 + in_RDX[1]);
} while (lVar1 != -1);
}
/* try { // try from 00172016 to 0017202c has its CatchHandler @ 00172075 */
std::__cxx11::string::substr((ulong)local_50,(ulong)param_2);
/* try { // try from 0017202d to 00172039 has its CatchHandler @ 00172067 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
emplace_back<std::__cxx11::string>
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1,
(string *)local_50);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
return param_1;
}
|
|
13,354
|
trnman_recreate_trn_from_recovery
|
eloqsql/storage/maria/trnman.c
|
TRN *trnman_recreate_trn_from_recovery(uint16 shortid, TrID longid)
{
TrID old_trid_generator= global_trid_generator;
TRN *trn;
DBUG_ASSERT(maria_in_recovery && !maria_multi_threaded);
global_trid_generator= longid-1; /* force a correct trid in the new trn */
if (unlikely((trn= trnman_new_trn(NULL)) == NULL))
return NULL;
/* deallocate excessive allocations of trnman_new_trn() */
global_trid_generator= old_trid_generator;
set_if_bigger(global_trid_generator, longid);
short_trid_to_active_trn[trn->short_id]= 0;
DBUG_ASSERT(short_trid_to_active_trn[shortid] == NULL);
short_trid_to_active_trn[shortid]= trn;
trn->short_id= shortid;
return trn;
}
|
O0
|
c
|
trnman_recreate_trn_from_recovery:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movw %di, %ax
movw %ax, -0xa(%rbp)
movq %rsi, -0x18(%rbp)
movq 0x40d226(%rip), %rax # 0x483120
movq %rax, -0x20(%rbp)
jmp 0x75f00
movq -0x18(%rbp), %rax
subq $0x1, %rax
movq %rax, 0x40d211(%rip) # 0x483120
xorl %eax, %eax
movl %eax, %edi
callq 0x74da0
movq %rax, -0x28(%rbp)
cmpq $0x0, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x75f45
movq $0x0, -0x8(%rbp)
jmp 0x75fb0
movq -0x20(%rbp), %rax
movq %rax, 0x40d1d0(%rip) # 0x483120
movq 0x40d1c9(%rip), %rax # 0x483120
cmpq -0x18(%rbp), %rax
jae 0x75f68
movq -0x18(%rbp), %rax
movq %rax, 0x40d1b8(%rip) # 0x483120
jmp 0x75f6a
movq 0x40cecf(%rip), %rax # 0x482e40
movq -0x28(%rbp), %rcx
movzwl 0xac(%rcx), %ecx
movq $0x0, (%rax,%rcx,8)
jmp 0x75f86
movq -0x28(%rbp), %rdx
movq 0x40ceaf(%rip), %rax # 0x482e40
movzwl -0xa(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movw -0xa(%rbp), %cx
movq -0x28(%rbp), %rax
movw %cx, 0xac(%rax)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
trnman_recreate_trn_from_recovery:
push rbp
mov rbp, rsp
sub rsp, 30h
mov ax, di
mov [rbp+var_A], ax
mov [rbp+var_18], rsi
mov rax, cs:global_trid_generator
mov [rbp+var_20], rax
jmp short $+2
loc_75F00:
mov rax, [rbp+var_18]
sub rax, 1
mov cs:global_trid_generator, rax
xor eax, eax
mov edi, eax
call trnman_new_trn
mov [rbp+var_28], rax
cmp rax, 0
setz al
and al, 1
movzx eax, al
cmp eax, 0
setnz al
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_75F45
mov [rbp+var_8], 0
jmp short loc_75FB0
loc_75F45:
mov rax, [rbp+var_20]
mov cs:global_trid_generator, rax
mov rax, cs:global_trid_generator
cmp rax, [rbp+var_18]
jnb short loc_75F68
mov rax, [rbp+var_18]
mov cs:global_trid_generator, rax
loc_75F68:
jmp short $+2
loc_75F6A:
mov rax, cs:short_trid_to_active_trn
mov rcx, [rbp+var_28]
movzx ecx, word ptr [rcx+0ACh]
mov qword ptr [rax+rcx*8], 0
jmp short $+2
loc_75F86:
mov rdx, [rbp+var_28]
mov rax, cs:short_trid_to_active_trn
movzx ecx, [rbp+var_A]
mov [rax+rcx*8], rdx
mov cx, [rbp+var_A]
mov rax, [rbp+var_28]
mov [rax+0ACh], cx
mov rax, [rbp+var_28]
mov [rbp+var_8], rax
loc_75FB0:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
|
long long trnman_recreate_trn_from_recovery(unsigned __int16 a1, unsigned long long a2)
{
long long v3; // [rsp+8h] [rbp-28h]
unsigned long long v4; // [rsp+10h] [rbp-20h]
v4 = global_trid_generator;
global_trid_generator = a2 - 1;
v3 = trnman_new_trn(0LL);
if ( !v3 )
return 0LL;
global_trid_generator = v4;
if ( v4 < a2 )
global_trid_generator = a2;
*(_QWORD *)(short_trid_to_active_trn + 8LL * *(unsigned __int16 *)(v3 + 172)) = 0LL;
*(_QWORD *)(short_trid_to_active_trn + 8LL * a1) = v3;
*(_WORD *)(v3 + 172) = a1;
return v3;
}
|
trnman_recreate_trn_from_recovery:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AX,DI
MOV word ptr [RBP + -0xa],AX
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [0x00583120]
MOV qword ptr [RBP + -0x20],RAX
JMP 0x00175f00
LAB_00175f00:
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0x1
MOV qword ptr [0x00583120],RAX
XOR EAX,EAX
MOV EDI,EAX
CALL 0x00174da0
MOV qword ptr [RBP + -0x28],RAX
CMP RAX,0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x00175f45
MOV qword ptr [RBP + -0x8],0x0
JMP 0x00175fb0
LAB_00175f45:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [0x00583120],RAX
MOV RAX,qword ptr [0x00583120]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x00175f68
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [0x00583120],RAX
LAB_00175f68:
JMP 0x00175f6a
LAB_00175f6a:
MOV RAX,qword ptr [0x00582e40]
MOV RCX,qword ptr [RBP + -0x28]
MOVZX ECX,word ptr [RCX + 0xac]
MOV qword ptr [RAX + RCX*0x8],0x0
JMP 0x00175f86
LAB_00175f86:
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [0x00582e40]
MOVZX ECX,word ptr [RBP + -0xa]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV CX,word ptr [RBP + -0xa]
MOV RAX,qword ptr [RBP + -0x28]
MOV word ptr [RAX + 0xac],CX
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x8],RAX
LAB_00175fb0:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long trnman_recreate_trn_from_recovery(ushort param_1,ulong param_2)
{
ulong uVar1;
int8 local_10;
uVar1 = global_trid_generator;
global_trid_generator = param_2 - 1;
local_10 = trnman_new_trn(0);
if (local_10 == 0) {
local_10 = 0;
}
else {
global_trid_generator = uVar1;
if (uVar1 < param_2) {
global_trid_generator = param_2;
}
*(int8 *)(short_trid_to_active_trn + (ulong)*(ushort *)(local_10 + 0xac) * 8) = 0;
*(long *)(short_trid_to_active_trn + (ulong)param_1 * 8) = local_10;
*(ushort *)(local_10 + 0xac) = param_1;
}
return local_10;
}
|
|
13,355
|
my_strnncoll_simple
|
eloqsql/strings/ctype-simple.c
|
int my_strnncoll_simple(CHARSET_INFO * cs, const uchar *s, size_t slen,
const uchar *t, size_t tlen,
my_bool t_is_prefix)
{
size_t len = ( slen > tlen ) ? tlen : slen;
const uchar *map= cs->sort_order;
if (t_is_prefix && slen > tlen)
slen=tlen;
while (len--)
{
if (map[*s++] != map[*t++])
return ((int) map[s[-1]] - (int) map[t[-1]]);
}
/*
We can't use (slen - tlen) here as the result may be outside of the
precision of a signed int
*/
return slen > tlen ? 1 : slen < tlen ? -1 : 0 ;
}
|
O0
|
c
|
my_strnncoll_simple:
pushq %rbp
movq %rsp, %rbp
movb %r9b, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movb %al, -0x31(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x77872
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x7787a
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0x48(%rbp)
movsbl -0x31(%rbp), %eax
cmpl $0x0, %eax
je 0x778a9
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x778a9
movq -0x30(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0x778ab
movq -0x40(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rcx
movq %rcx, -0x40(%rbp)
cmpq $0x0, %rax
je 0x77921
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x18(%rbp)
movzbl (%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x28(%rbp)
movzbl (%rdx), %edx
movzbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x7791f
movq -0x48(%rbp), %rax
movq -0x18(%rbp), %rcx
movzbl -0x1(%rcx), %ecx
movzbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movq -0x28(%rbp), %rdx
movzbl -0x1(%rdx), %edx
movzbl (%rcx,%rdx), %ecx
subl %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x77953
jmp 0x778ab
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
jbe 0x77935
movl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x7794d
movq -0x20(%rbp), %rdx
movq -0x30(%rbp), %rsi
xorl %eax, %eax
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
cmpq %rsi, %rdx
cmovbl %ecx, %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
|
my_strnncoll_simple:
push rbp
mov rbp, rsp
mov al, r9b
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_31], al
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_77872
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
jmp short loc_7787A
loc_77872:
mov rax, [rbp+var_20]
mov [rbp+var_50], rax
loc_7787A:
mov rax, [rbp+var_50]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov rax, [rax+58h]
mov [rbp+var_48], rax
movsx eax, [rbp+var_31]
cmp eax, 0
jz short loc_778A9
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_778A9
mov rax, [rbp+var_30]
mov [rbp+var_20], rax
loc_778A9:
jmp short $+2
loc_778AB:
mov rax, [rbp+var_40]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rcx
cmp rax, 0
jz short loc_77921
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
mov rdx, rcx
add rdx, 1
mov [rbp+var_18], rdx
movzx ecx, byte ptr [rcx]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
mov rsi, rdx
add rsi, 1
mov [rbp+var_28], rsi
movzx edx, byte ptr [rdx]
movzx ecx, byte ptr [rcx+rdx]
cmp eax, ecx
jz short loc_7791F
mov rax, [rbp+var_48]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx-1]
movzx eax, byte ptr [rax+rcx]
mov rcx, [rbp+var_48]
mov rdx, [rbp+var_28]
movzx edx, byte ptr [rdx-1]
movzx ecx, byte ptr [rcx+rdx]
sub eax, ecx
mov [rbp+var_4], eax
jmp short loc_77953
loc_7791F:
jmp short loc_778AB
loc_77921:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
jbe short loc_77935
mov eax, 1
mov [rbp+var_54], eax
jmp short loc_7794D
loc_77935:
mov rdx, [rbp+var_20]
mov rsi, [rbp+var_30]
xor eax, eax
mov ecx, 0FFFFFFFFh
cmp rdx, rsi
cmovb eax, ecx
mov [rbp+var_54], eax
loc_7794D:
mov eax, [rbp+var_54]
mov [rbp+var_4], eax
loc_77953:
mov eax, [rbp+var_4]
pop rbp
retn
|
long long my_strnncoll_simple(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
unsigned __int8 *a4,
unsigned long long a5,
char a6)
{
unsigned __int8 *v7; // rcx
unsigned __int8 *v8; // rdx
unsigned int v9; // eax
unsigned long long v12; // [rsp+4h] [rbp-50h]
long long v13; // [rsp+Ch] [rbp-48h]
unsigned long long v14; // [rsp+14h] [rbp-40h]
unsigned long long v16; // [rsp+34h] [rbp-20h]
v16 = a3;
if ( a3 <= a5 )
v12 = a3;
else
v12 = a5;
v14 = v12;
v13 = *(_QWORD *)(a1 + 88);
if ( a6 && a3 > a5 )
v16 = a5;
while ( v14-- )
{
v7 = a2++;
v8 = a4++;
if ( *(unsigned __int8 *)(v13 + *v7) != *(unsigned __int8 *)(v13 + *v8) )
return (unsigned int)(*(unsigned __int8 *)(v13 + *(a2 - 1)) - *(unsigned __int8 *)(v13 + *(a4 - 1)));
}
if ( v16 <= a5 )
{
v9 = 0;
if ( v16 < a5 )
v9 = -1;
return v9;
}
else
{
return 1;
}
}
|
my_strnncoll_simple:
PUSH RBP
MOV RBP,RSP
MOV AL,R9B
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV byte ptr [RBP + -0x31],AL
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00177872
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0017787a
LAB_00177872:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x50],RAX
LAB_0017787a:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x58]
MOV qword ptr [RBP + -0x48],RAX
MOVSX EAX,byte ptr [RBP + -0x31]
CMP EAX,0x0
JZ 0x001778a9
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x001778a9
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x20],RAX
LAB_001778a9:
JMP 0x001778ab
LAB_001778ab:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,RAX
ADD RCX,-0x1
MOV qword ptr [RBP + -0x40],RCX
CMP RAX,0x0
JZ 0x00177921
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RBP + -0x18],RDX
MOVZX ECX,byte ptr [RCX]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOV RSI,RDX
ADD RSI,0x1
MOV qword ptr [RBP + -0x28],RSI
MOVZX EDX,byte ptr [RDX]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
CMP EAX,ECX
JZ 0x0017791f
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + -0x1]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV RCX,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x28]
MOVZX EDX,byte ptr [RDX + -0x1]
MOVZX ECX,byte ptr [RCX + RDX*0x1]
SUB EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00177953
LAB_0017791f:
JMP 0x001778ab
LAB_00177921:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00177935
MOV EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x0017794d
LAB_00177935:
MOV RDX,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x30]
XOR EAX,EAX
MOV ECX,0xffffffff
CMP RDX,RSI
CMOVC EAX,ECX
MOV dword ptr [RBP + -0x54],EAX
LAB_0017794d:
MOV EAX,dword ptr [RBP + -0x54]
MOV dword ptr [RBP + -0x4],EAX
LAB_00177953:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int my_strnncoll_simple(long param_1,byte *param_2,ulong param_3,byte *param_4,ulong param_5,
char param_6)
{
long lVar1;
byte *pbVar2;
byte *pbVar3;
int local_5c;
ulong local_58;
ulong local_48;
byte *local_30;
ulong local_28;
byte *local_20;
local_58 = param_3;
if (param_5 < param_3) {
local_58 = param_5;
}
local_48 = local_58;
lVar1 = *(long *)(param_1 + 0x58);
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_3;
if ((param_6 != '\0') && (pbVar2 = param_4, pbVar3 = param_2, param_5 < param_3)) {
pbVar2 = param_4;
pbVar3 = param_2;
local_28 = param_5;
}
do {
local_20 = pbVar3;
local_30 = pbVar2;
if (local_48 == 0) {
if (param_5 < local_28) {
local_5c = 1;
}
else {
local_5c = 0;
if (local_28 < param_5) {
local_5c = -1;
}
}
return local_5c;
}
local_48 = local_48 - 1;
pbVar2 = local_30 + 1;
pbVar3 = local_20 + 1;
} while (*(char *)(lVar1 + (ulong)*local_20) == *(char *)(lVar1 + (ulong)*local_30));
return (uint)*(byte *)(lVar1 + (ulong)*local_20) - (uint)*(byte *)(lVar1 + (ulong)*local_30);
}
|
|
13,356
|
ma_search_last
|
eloqsql/storage/maria/ma_search.c
|
int _ma_search_last(MARIA_HA *info, MARIA_KEYDEF *keyinfo,
my_off_t pos)
{
uchar *end_of_page;
MARIA_PAGE page;
DBUG_ENTER("_ma_search_last");
if (pos == HA_OFFSET_ERROR)
{
my_errno=HA_ERR_KEY_NOT_FOUND; /* Didn't find key */
info->cur_row.lastpos= HA_OFFSET_ERROR;
DBUG_RETURN(-1);
}
do
{
if (_ma_fetch_keypage(&page, info, keyinfo, pos,
PAGECACHE_LOCK_LEFT_UNLOCKED,
DFLT_INIT_HITS, info->keyread_buff, 0))
{
info->cur_row.lastpos= HA_OFFSET_ERROR;
DBUG_RETURN(-1);
}
end_of_page= page.buff + page.size;
} while ((pos= _ma_kpos(page.node, end_of_page)) != HA_OFFSET_ERROR);
if (!_ma_get_last_key(&info->last_key, &page, end_of_page))
DBUG_RETURN(-1);
info->cur_row.lastpos= _ma_row_pos_from_key(&info->last_key);
info->cur_row.trid= _ma_trid_from_key(&info->last_key);
info->int_keypos= info->int_maxpos= end_of_page;
info->int_nod_flag= page.node;
info->int_keytree_version= keyinfo->version;
info->last_search_keypage= info->last_keypage;
info->page_changed=info->keyread_buff_used=0;
DBUG_PRINT("exit",("found key at %lu",(ulong) info->cur_row.lastpos));
DBUG_RETURN(0);
}
|
O0
|
c
|
ma_search_last:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $-0x1, -0x20(%rbp)
jne 0x98c61
callq 0xf6f70
movl $0x78, (%rax)
movq -0x10(%rbp), %rax
movq $-0x1, 0x98(%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x98db5
jmp 0x98c63
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x380(%rax), %rax
leaq -0x60(%rbp), %rdi
xorl %r8d, %r8d
movl $0x3, %r9d
movq %rax, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x9a630
cmpb $0x0, %al
je 0x98cb7
movq -0x10(%rbp), %rax
movq $-0x1, 0x98(%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x98db5
movq -0x50(%rbp), %rax
movl -0x40(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movl -0x38(%rbp), %edi
movq -0x28(%rbp), %rsi
callq 0x96340
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rax
jne 0x98c63
movq -0x10(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
movq -0x28(%rbp), %rdx
leaq -0x60(%rbp), %rsi
callq 0x98160
cmpq $0x0, %rax
jne 0x98d07
jmp 0x98cfb
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x98db5
movq -0x10(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
callq 0x96830
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq -0x10(%rbp), %rdi
addq $0x200, %rdi # imm = 0x200
callq 0x969e0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x3b8(%rax)
movq -0x10(%rbp), %rax
movq %rcx, 0x3b0(%rax)
movl -0x38(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x3d0(%rax)
movq -0x18(%rbp), %rax
movl 0xb8(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x3d4(%rax)
movq -0x10(%rbp), %rax
movq 0x440(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x448(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x685(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x684(%rax)
jmp 0x98dac
jmp 0x98dae
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nop
|
_ma_search_last:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh
jnz short loc_98C61
call _my_thread_var
mov dword ptr [rax], 78h ; 'x'
mov rax, [rbp+var_10]
mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_98DB5
loc_98C61:
jmp short $+2
loc_98C63:
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov rax, [rax+380h]
lea rdi, [rbp+var_60]
xor r8d, r8d
mov r9d, 3
mov [rsp+70h+var_70], rax
mov [rsp+70h+var_68], 0
call _ma_fetch_keypage
cmp al, 0
jz short loc_98CB7
mov rax, [rbp+var_10]
mov qword ptr [rax+98h], 0FFFFFFFFFFFFFFFFh
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_98DB5
loc_98CB7:
mov rax, [rbp+var_50]
mov ecx, [rbp+var_40]
add rax, rcx
mov [rbp+var_28], rax
mov edi, [rbp+var_38]
mov rsi, [rbp+var_28]
call _ma_kpos
mov [rbp+var_20], rax
cmp rax, 0FFFFFFFFFFFFFFFFh
jnz short loc_98C63
mov rdi, [rbp+var_10]
add rdi, 200h
mov rdx, [rbp+var_28]
lea rsi, [rbp+var_60]
call _ma_get_last_key
cmp rax, 0
jnz short loc_98D07
jmp short $+2
loc_98CFB:
mov [rbp+var_4], 0FFFFFFFFh
jmp loc_98DB5
loc_98D07:
mov rdi, [rbp+var_10]
add rdi, 200h
call _ma_row_pos_from_key
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+98h], rcx
mov rdi, [rbp+var_10]
add rdi, 200h
call _ma_trid_from_key
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+0C0h], rcx
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+3B8h], rcx
mov rax, [rbp+var_10]
mov [rax+3B0h], rcx
mov ecx, [rbp+var_38]
mov rax, [rbp+var_10]
mov [rax+3D0h], ecx
mov rax, [rbp+var_18]
mov ecx, [rax+0B8h]
mov rax, [rbp+var_10]
mov [rax+3D4h], ecx
mov rax, [rbp+var_10]
mov rcx, [rax+440h]
mov rax, [rbp+var_10]
mov [rax+448h], rcx
mov rax, [rbp+var_10]
mov byte ptr [rax+685h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax+684h], 0
jmp short $+2
loc_98DAC:
jmp short $+2
loc_98DAE:
mov [rbp+var_4], 0
loc_98DB5:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
|
long long ma_search_last(long long a1, const char *a2, long long a3)
{
long long v3; // rax
unsigned long long v4; // rax
unsigned long long v5; // rcx
_BYTE v7[16]; // [rsp+10h] [rbp-60h] BYREF
long long v8; // [rsp+20h] [rbp-50h]
unsigned int v9; // [rsp+30h] [rbp-40h]
unsigned int v10; // [rsp+38h] [rbp-38h]
unsigned long long v11; // [rsp+48h] [rbp-28h]
long long v12; // [rsp+50h] [rbp-20h]
const char *v13; // [rsp+58h] [rbp-18h]
long long v14; // [rsp+60h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
if ( a3 == -1 )
{
*(_DWORD *)my_thread_var(a1, a2) = 120;
*(_QWORD *)(v14 + 152) = -1LL;
return (unsigned int)-1;
}
else
{
do
{
if ( (unsigned __int8)ma_fetch_keypage((unsigned int)v7, v14, (_DWORD)v13, v12, 0, 3, *(_QWORD *)(v14 + 896), 0) )
{
*(_QWORD *)(v14 + 152) = -1LL;
return (unsigned int)-1;
}
v11 = v9 + v8;
v12 = ma_kpos(v10, v11);
}
while ( v12 != -1 );
if ( ma_get_last_key(v14 + 512, (long long)v7, v11) )
{
v3 = ma_row_pos_from_key(v14 + 512);
*(_QWORD *)(v14 + 152) = v3;
v4 = ma_trid_from_key(v14 + 512);
*(_QWORD *)(v14 + 192) = v4;
v5 = v11;
*(_QWORD *)(v14 + 952) = v11;
*(_QWORD *)(v14 + 944) = v5;
*(_DWORD *)(v14 + 976) = v10;
*(_DWORD *)(v14 + 980) = *((_DWORD *)v13 + 46);
*(_QWORD *)(v14 + 1096) = *(_QWORD *)(v14 + 1088);
*(_BYTE *)(v14 + 1669) = 0;
*(_BYTE *)(v14 + 1668) = 0;
return 0;
}
else
{
return (unsigned int)-1;
}
}
}
|
_ma_search_last:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x20],-0x1
JNZ 0x00198c61
CALL 0x001f6f70
MOV dword ptr [RAX],0x78
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],-0x1
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00198db5
LAB_00198c61:
JMP 0x00198c63
LAB_00198c63:
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x380]
LEA RDI,[RBP + -0x60]
XOR R8D,R8D
MOV R9D,0x3
MOV qword ptr [RSP],RAX
MOV dword ptr [RSP + 0x8],0x0
CALL 0x0019a630
CMP AL,0x0
JZ 0x00198cb7
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],-0x1
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00198db5
LAB_00198cb7:
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RBP + -0x40]
ADD RAX,RCX
MOV qword ptr [RBP + -0x28],RAX
MOV EDI,dword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x00196340
MOV qword ptr [RBP + -0x20],RAX
CMP RAX,-0x1
JNZ 0x00198c63
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x200
MOV RDX,qword ptr [RBP + -0x28]
LEA RSI,[RBP + -0x60]
CALL 0x00198160
CMP RAX,0x0
JNZ 0x00198d07
JMP 0x00198cfb
LAB_00198cfb:
MOV dword ptr [RBP + -0x4],0xffffffff
JMP 0x00198db5
LAB_00198d07:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x200
CALL 0x00196830
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x98],RCX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x200
CALL 0x001969e0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0xc0],RCX
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x3b8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x3b0],RCX
MOV ECX,dword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x3d0],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RAX + 0xb8]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x3d4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x440]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x448],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x685],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x684],0x0
JMP 0x00198dac
LAB_00198dac:
JMP 0x00198dae
LAB_00198dae:
MOV dword ptr [RBP + -0x4],0x0
LAB_00198db5:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 _ma_search_last(long param_1,long param_2,long param_3)
{
char cVar1;
int4 *puVar2;
long lVar3;
int8 uVar4;
int1 local_68 [16];
long local_58;
uint local_48;
int4 local_40;
long local_30;
long local_28;
long local_20;
long local_18;
int4 local_c;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
if (param_3 == -1) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x78;
*(int8 *)(local_18 + 0x98) = 0xffffffffffffffff;
local_c = 0xffffffff;
}
else {
do {
cVar1 = _ma_fetch_keypage(local_68,local_18,local_20,local_28,0,3,
*(int8 *)(local_18 + 0x380),0);
if (cVar1 != '\0') {
*(int8 *)(local_18 + 0x98) = 0xffffffffffffffff;
return 0xffffffff;
}
local_30 = local_58 + (ulong)local_48;
local_28 = _ma_kpos(local_40,local_30);
} while (local_28 != -1);
lVar3 = _ma_get_last_key(local_18 + 0x200,local_68,local_30);
if (lVar3 == 0) {
local_c = 0xffffffff;
}
else {
uVar4 = _ma_row_pos_from_key(local_18 + 0x200);
*(int8 *)(local_18 + 0x98) = uVar4;
uVar4 = _ma_trid_from_key(local_18 + 0x200);
*(int8 *)(local_18 + 0xc0) = uVar4;
*(long *)(local_18 + 0x3b8) = local_30;
*(long *)(local_18 + 0x3b0) = local_30;
*(int4 *)(local_18 + 0x3d0) = local_40;
*(int4 *)(local_18 + 0x3d4) = *(int4 *)(local_20 + 0xb8);
*(int8 *)(local_18 + 0x448) = *(int8 *)(local_18 + 0x440);
*(int1 *)(local_18 + 0x685) = 0;
*(int1 *)(local_18 + 0x684) = 0;
local_c = 0;
}
}
return local_c;
}
|
|
13,357
|
pollAbsState
|
untodesu[P]riteg/build_O2/_deps/glfw-src/src/linux_joystick.c
|
static void pollAbsState(_GLFWjoystick* js)
{
int code;
for (code = 0; code < ABS_CNT; code++)
{
if (js->linjs.absMap[code] < 0)
continue;
struct input_absinfo* info = &js->linjs.absInfo[code];
if (ioctl(js->linjs.fd, EVIOCGABS(code), info) < 0)
continue;
handleAbsEvent(js, code, info->value);
}
}
|
O2
|
c
|
pollAbsState:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x187c, %r12d # imm = 0x187C
movl $0x197c, %r13d # imm = 0x197C
movl $0x80184540, %ebp # imm = 0x80184540
xorl %r14d, %r14d
cmpq $0x197c, %r12 # imm = 0x197C
je 0x2420b
cmpl $0x0, (%rbx,%r12)
js 0x241fe
leaq (%rbx,%r13), %r15
movl 0x78(%rbx), %edi
leaq (%r14,%rbp), %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xbb50
testl %eax, %eax
js 0x241fe
movl (%r15), %edx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x2421a
incq %r14
addq $0x4, %r12
addq $0x18, %r13
jmp 0x241c7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
pollAbsState:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rdi
mov r12d, 187Ch
mov r13d, 197Ch
mov ebp, 80184540h
xor r14d, r14d
loc_241C7:
cmp r12, 197Ch
jz short loc_2420B
cmp dword ptr [rbx+r12], 0
js short loc_241FE
lea r15, [rbx+r13]
mov edi, [rbx+78h]
lea rsi, [r14+rbp]
mov rdx, r15
xor eax, eax
call _ioctl
test eax, eax
js short loc_241FE
mov edx, [r15]
mov rdi, rbx
mov esi, r14d
call handleAbsEvent
loc_241FE:
inc r14
add r12, 4
add r13, 18h
jmp short loc_241C7
loc_2420B:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long pollAbsState(long long a1)
{
long long v1; // r12
long long v2; // r13
long long v3; // r14
long long result; // rax
v1 = 6268LL;
v2 = 6524LL;
v3 = 0LL;
while ( v1 != 6524 )
{
if ( *(int *)(a1 + v1) >= 0 )
{
result = ioctl(*(unsigned int *)(a1 + 120), v3 + 2149074240LL, a1 + v2);
if ( (int)result >= 0 )
result = handleAbsEvent(a1, (unsigned int)v3, *(unsigned int *)(a1 + v2));
}
++v3;
v1 += 4LL;
v2 += 24LL;
}
return result;
}
|
pollAbsState:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV R12D,0x187c
MOV R13D,0x197c
MOV EBP,0x80184540
XOR R14D,R14D
LAB_001241c7:
CMP R12,0x197c
JZ 0x0012420b
CMP dword ptr [RBX + R12*0x1],0x0
JS 0x001241fe
LEA R15,[RBX + R13*0x1]
MOV EDI,dword ptr [RBX + 0x78]
LEA RSI,[R14 + RBP*0x1]
MOV RDX,R15
XOR EAX,EAX
CALL 0x0010bb50
TEST EAX,EAX
JS 0x001241fe
MOV EDX,dword ptr [R15]
MOV RDI,RBX
MOV ESI,R14D
CALL 0x0012421a
LAB_001241fe:
INC R14
ADD R12,0x4
ADD R13,0x18
JMP 0x001241c7
LAB_0012420b:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void pollAbsState(long param_1)
{
int iVar1;
long lVar2;
long lVar3;
ulong uVar4;
lVar3 = 0x197c;
uVar4 = 0;
for (lVar2 = 0x187c; lVar2 != 0x197c; lVar2 = lVar2 + 4) {
if (-1 < *(int *)(param_1 + lVar2)) {
iVar1 = ioctl(*(int *)(param_1 + 0x78),uVar4 + 0x80184540,(int4 *)(param_1 + lVar3));
if (-1 < iVar1) {
handleAbsEvent(param_1,uVar4 & 0xffffffff,*(int4 *)(param_1 + lVar3));
}
}
uVar4 = uVar4 + 1;
lVar3 = lVar3 + 0x18;
}
return;
}
|
|
13,358
|
read_block_secondary
|
eloqsql/mysys/mf_keycache.c
|
static void read_block_secondary(SIMPLE_KEY_CACHE_CB *keycache,
BLOCK_LINK *block)
{
KEYCACHE_THREAD_TRACE("read_block_secondary");
/*
This code is executed only by threads that submitted secondary
requests. At this point it could happen that the cache block is
not yet assigned to the hash_link for the requested file block.
But at awake from the wait this should be the case. Unfortunately
we cannot assert this here because we do not know the hash_link
for the requested file block nor the file and position. So we have
to assert this in the caller.
*/
KEYCACHE_DBUG_PRINT("read_block_secondary",
("secondary request waiting for new page to be read"));
wait_on_queue(&block->wqueue[COND_FOR_REQUESTED], &keycache->cache_lock);
KEYCACHE_DBUG_PRINT("read_block_secondary",
("secondary request: new page in cache"));
DBUG_ASSERT(keycache->can_be_used);
DBUG_ASSERT(block->status & (BLOCK_READ | BLOCK_IN_USE));
}
|
O0
|
c
|
read_block_secondary:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
jmp 0x78352
movq -0x10(%rbp), %rdi
addq $0x28, %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
callq 0x77830
jmp 0x7836c
jmp 0x7836e
jmp 0x78370
jmp 0x78372
jmp 0x78374
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
|
read_block_secondary:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
jmp short $+2
loc_78352:
mov rdi, [rbp+var_10]
add rdi, 28h ; '('
mov rsi, [rbp+var_8]
add rsi, 0C0h
call wait_on_queue
jmp short $+2
loc_7836C:
jmp short $+2
loc_7836E:
jmp short $+2
loc_78370:
jmp short $+2
loc_78372:
jmp short $+2
loc_78374:
add rsp, 10h
pop rbp
retn
|
long long read_block_secondary(long long a1, long long a2)
{
return wait_on_queue((long long *)(a2 + 40), (const char *)(a1 + 192));
}
|
read_block_secondary:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
JMP 0x00178352
LAB_00178352:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x28
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
CALL 0x00177830
JMP 0x0017836c
LAB_0017836c:
JMP 0x0017836e
LAB_0017836e:
JMP 0x00178370
LAB_00178370:
JMP 0x00178372
LAB_00178372:
JMP 0x00178374
LAB_00178374:
ADD RSP,0x10
POP RBP
RET
|
void read_block_secondary(long param_1,long param_2)
{
wait_on_queue(param_2 + 0x28,param_1 + 0xc0);
return;
}
|
|
13,359
|
tree_search_edge
|
eloqsql/mysys/tree.c
|
void *tree_search_edge(TREE *tree, TREE_ELEMENT **parents,
TREE_ELEMENT ***last_pos, int child_offs)
{
TREE_ELEMENT *element= tree->root;
*parents= &null_element;
while (element != &null_element)
{
*++parents= element;
element= ELEMENT_CHILD(element, child_offs);
}
*last_pos= parents;
return **last_pos != &null_element ?
ELEMENT_KEY(tree, **last_pos) : NULL;
}
|
O3
|
c
|
tree_search_edge:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
leaq 0x2e16d2(%rip), %r8 # 0x387bc0
movq %r8, (%rsi)
cmpq %r8, %rax
je 0xa650a
movslq %ecx, %rcx
movq %rax, 0x8(%rsi)
addq $0x8, %rsi
movq (%rax,%rcx), %rax
cmpq %r8, %rax
jne 0xa64f9
movq %rsi, (%rdx)
movq (%rsi), %rax
cmpq %r8, %rax
je 0xa6525
movl 0x208(%rdi), %ecx
testq %rcx, %rcx
je 0xa6529
addq %rcx, %rax
jmp 0xa652d
xorl %eax, %eax
jmp 0xa652d
movq 0x18(%rax), %rax
popq %rbp
retq
|
tree_search_edge:
push rbp
mov rbp, rsp
mov rax, [rdi]
lea r8, null_element
mov [rsi], r8
cmp rax, r8
jz short loc_A650A
movsxd rcx, ecx
loc_A64F9:
mov [rsi+8], rax
add rsi, 8
mov rax, [rax+rcx]
cmp rax, r8
jnz short loc_A64F9
loc_A650A:
mov [rdx], rsi
mov rax, [rsi]
cmp rax, r8
jz short loc_A6525
mov ecx, [rdi+208h]
test rcx, rcx
jz short loc_A6529
add rax, rcx
jmp short loc_A652D
loc_A6525:
xor eax, eax
jmp short loc_A652D
loc_A6529:
mov rax, [rax+18h]
loc_A652D:
pop rbp
retn
|
char * tree_search_edge(char **a1, _QWORD *a2, _QWORD *a3, int a4)
{
char *v4; // rax
_QWORD *v5; // rax
v4 = *a1;
for ( *a2 = &null_element; v4 != (char *)&null_element; v4 = *(char **)&v4[a4] )
{
a2[1] = v4;
++a2;
}
*a3 = a2;
v5 = (_QWORD *)*a2;
if ( (_UNKNOWN *)*a2 == &null_element )
return 0LL;
if ( *((_DWORD *)a1 + 130) )
return (char *)v5 + *((unsigned int *)a1 + 130);
return (char *)v5[3];
}
|
tree_search_edge:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI]
LEA R8,[0x487bc0]
MOV qword ptr [RSI],R8
CMP RAX,R8
JZ 0x001a650a
MOVSXD RCX,ECX
LAB_001a64f9:
MOV qword ptr [RSI + 0x8],RAX
ADD RSI,0x8
MOV RAX,qword ptr [RAX + RCX*0x1]
CMP RAX,R8
JNZ 0x001a64f9
LAB_001a650a:
MOV qword ptr [RDX],RSI
MOV RAX,qword ptr [RSI]
CMP RAX,R8
JZ 0x001a6525
MOV ECX,dword ptr [RDI + 0x208]
TEST RCX,RCX
JZ 0x001a6529
ADD RAX,RCX
JMP 0x001a652d
LAB_001a6525:
XOR EAX,EAX
JMP 0x001a652d
LAB_001a6529:
MOV RAX,qword ptr [RAX + 0x18]
LAB_001a652d:
POP RBP
RET
|
int1 * tree_search_edge(long *param_1,long *param_2,int8 *param_3,int param_4)
{
int1 *puVar1;
puVar1 = (int1 *)*param_1;
*param_2 = (long)null_element;
if (puVar1 != null_element) {
do {
param_2[1] = (long)puVar1;
param_2 = param_2 + 1;
puVar1 = *(int1 **)(puVar1 + param_4);
} while (puVar1 != null_element);
}
*param_3 = param_2;
puVar1 = (int1 *)*param_2;
if (puVar1 == null_element) {
puVar1 = (int1 *)0x0;
}
else if ((ulong)*(uint *)(param_1 + 0x41) == 0) {
puVar1 = *(int1 **)(puVar1 + 0x18);
}
else {
puVar1 = puVar1 + *(uint *)(param_1 + 0x41);
}
return puVar1;
}
|
|
13,360
|
google::protobuf::FieldDescriptorProto::ByteSizeLong() const
|
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
|
size_t FieldDescriptorProto::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.FieldDescriptorProto)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x000000ffu) {
// optional string name = 1;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// optional string extendee = 2;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_extendee());
}
// optional string type_name = 6;
if (cached_has_bits & 0x00000004u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_type_name());
}
// optional string default_value = 7;
if (cached_has_bits & 0x00000008u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_default_value());
}
// optional string json_name = 10;
if (cached_has_bits & 0x00000010u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_json_name());
}
// optional .google.protobuf.FieldOptions options = 8;
if (cached_has_bits & 0x00000020u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.options_);
}
// optional int32 number = 3;
if (cached_has_bits & 0x00000040u) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_number());
}
// optional int32 oneof_index = 9;
if (cached_has_bits & 0x00000080u) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_oneof_index());
}
}
if (cached_has_bits & 0x00000700u) {
// optional bool proto3_optional = 17;
if (cached_has_bits & 0x00000100u) {
total_size += 2 + 1;
}
// optional .google.protobuf.FieldDescriptorProto.Label label = 4;
if (cached_has_bits & 0x00000200u) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_label());
}
// optional .google.protobuf.FieldDescriptorProto.Type type = 5;
if (cached_has_bits & 0x00000400u) {
total_size += 1 +
::_pbi::WireFormatLite::EnumSize(this->_internal_type());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
|
O0
|
cpp
|
google::protobuf::FieldDescriptorProto::ByteSizeLong() const:
subq $0x38, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
addq $0x10, %rax
movq %rax, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq 0x30(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
je 0xb3b5e
movl 0x14(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xb3a34
movq 0x8(%rsp), %rdi
callq 0x87810
movq %rax, %rdi
callq 0xd53e0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xb3a60
movq 0x8(%rsp), %rdi
callq 0x890d0
movq %rax, %rdi
callq 0xd53e0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0xb3a8c
movq 0x8(%rsp), %rdi
callq 0x89150
movq %rax, %rdi
callq 0xd53e0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0xb3ab8
movq 0x8(%rsp), %rdi
callq 0x87960
movq %rax, %rdi
callq 0xd53e0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0xb3ae4
movq 0x8(%rsp), %rdi
callq 0x87880
movq %rax, %rdi
callq 0xd53e0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xb3b0c
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0xd74f0
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0xb3b33
movq 0x8(%rsp), %rdi
callq 0x86e70
movl %eax, %edi
callq 0xd5b20
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xb3b5c
movq 0x8(%rsp), %rdi
callq 0x87a10
movl %eax, %edi
callq 0xd5b20
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0xb3b5e
movl 0x14(%rsp), %eax
andl $0x700, %eax # imm = 0x700
cmpl $0x0, %eax
je 0xb3be4
movl 0x14(%rsp), %eax
andl $0x100, %eax # imm = 0x100
cmpl $0x0, %eax
je 0xb3b88
movq 0x18(%rsp), %rax
addq $0x3, %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0xb3bb5
movq 0x8(%rsp), %rdi
callq 0x878d0
movl %eax, %edi
callq 0xd7510
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movl 0x14(%rsp), %eax
andl $0x400, %eax # imm = 0x400
cmpl $0x0, %eax
je 0xb3be2
movq 0x8(%rsp), %rdi
callq 0x878c0
movl %eax, %edi
callq 0xd7510
addq $0x1, %rax
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0xb3be4
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rdi, %rdx
addq $0x10, %rdx
addq $0x4, %rdx
callq 0x13aa50
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZNK6google8protobuf20FieldDescriptorProto12ByteSizeLongEv:
sub rsp, 38h
mov [rsp+38h+var_18], rdi
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_30], rax
mov [rsp+38h+var_20], 0
mov [rsp+38h+var_24], 0
add rax, 10h
mov [rsp+38h+var_8], rax
mov [rsp+38h+var_C], 0
mov rax, [rsp+38h+var_8]
movsxd rcx, [rsp+38h+var_C]
mov eax, [rax+rcx*4]
mov [rsp+38h+var_24], eax
mov eax, [rsp+38h+var_24]
and eax, 0FFh
cmp eax, 0
jz loc_B3B5E
mov eax, [rsp+38h+var_24]
and eax, 1
cmp eax, 0
jz short loc_B3A34
mov rdi, [rsp+38h+var_30]
call _ZNK6google8protobuf20FieldDescriptorProto14_internal_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_name(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3A34:
mov eax, [rsp+38h+var_24]
and eax, 2
cmp eax, 0
jz short loc_B3A60
mov rdi, [rsp+38h+var_30]
call _ZNK6google8protobuf20FieldDescriptorProto18_internal_extendeeB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_extendee(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3A60:
mov eax, [rsp+38h+var_24]
and eax, 4
cmp eax, 0
jz short loc_B3A8C
mov rdi, [rsp+38h+var_30]
call _ZNK6google8protobuf20FieldDescriptorProto19_internal_type_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_type_name(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3A8C:
mov eax, [rsp+38h+var_24]
and eax, 8
cmp eax, 0
jz short loc_B3AB8
mov rdi, [rsp+38h+var_30]
call _ZNK6google8protobuf20FieldDescriptorProto23_internal_default_valueB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_default_value(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3AB8:
mov eax, [rsp+38h+var_24]
and eax, 10h
cmp eax, 0
jz short loc_B3AE4
mov rdi, [rsp+38h+var_30]
call _ZNK6google8protobuf20FieldDescriptorProto19_internal_json_nameB5cxx11Ev; google::protobuf::FieldDescriptorProto::_internal_json_name(void)
mov rdi, rax
call _ZN6google8protobuf8internal14WireFormatLite10StringSizeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::WireFormatLite::StringSize(std::string const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3AE4:
mov eax, [rsp+38h+var_24]
and eax, 20h
cmp eax, 0
jz short loc_B3B0C
mov rax, [rsp+38h+var_30]
mov rdi, [rax+40h]
call _ZN6google8protobuf8internal14WireFormatLite11MessageSizeINS0_12FieldOptionsEEEmRKT_; google::protobuf::internal::WireFormatLite::MessageSize<google::protobuf::FieldOptions>(google::protobuf::FieldOptions const&)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3B0C:
mov eax, [rsp+38h+var_24]
and eax, 40h
cmp eax, 0
jz short loc_B3B33
mov rdi, [rsp+38h+var_30]; this
call _ZNK6google8protobuf20FieldDescriptorProto16_internal_numberEv; google::protobuf::FieldDescriptorProto::_internal_number(void)
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite16Int32SizePlusOneEi; google::protobuf::internal::WireFormatLite::Int32SizePlusOne(int)
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3B33:
mov eax, [rsp+38h+var_24]
and eax, 80h
cmp eax, 0
jz short loc_B3B5C
mov rdi, [rsp+38h+var_30]; this
call _ZNK6google8protobuf20FieldDescriptorProto21_internal_oneof_indexEv; google::protobuf::FieldDescriptorProto::_internal_oneof_index(void)
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite16Int32SizePlusOneEi; google::protobuf::internal::WireFormatLite::Int32SizePlusOne(int)
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3B5C:
jmp short $+2
loc_B3B5E:
mov eax, [rsp+38h+var_24]
and eax, 700h
cmp eax, 0
jz short loc_B3BE4
mov eax, [rsp+38h+var_24]
and eax, 100h
cmp eax, 0
jz short loc_B3B88
mov rax, [rsp+38h+var_20]
add rax, 3
mov [rsp+38h+var_20], rax
loc_B3B88:
mov eax, [rsp+38h+var_24]
and eax, 200h
cmp eax, 0
jz short loc_B3BB5
mov rdi, [rsp+38h+var_30]; this
call _ZNK6google8protobuf20FieldDescriptorProto15_internal_labelEv; google::protobuf::FieldDescriptorProto::_internal_label(void)
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite8EnumSizeEi; google::protobuf::internal::WireFormatLite::EnumSize(int)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3BB5:
mov eax, [rsp+38h+var_24]
and eax, 400h
cmp eax, 0
jz short loc_B3BE2
mov rdi, [rsp+38h+var_30]; this
call _ZNK6google8protobuf20FieldDescriptorProto14_internal_typeEv; google::protobuf::FieldDescriptorProto::_internal_type(void)
mov edi, eax; this
call _ZN6google8protobuf8internal14WireFormatLite8EnumSizeEi; google::protobuf::internal::WireFormatLite::EnumSize(int)
add rax, 1
add rax, [rsp+38h+var_20]
mov [rsp+38h+var_20], rax
loc_B3BE2:
jmp short $+2
loc_B3BE4:
mov rdi, [rsp+38h+var_30]; this
mov rsi, [rsp+38h+var_20]; unsigned __int64
mov rdx, rdi
add rdx, 10h
add rdx, 4; google::protobuf::internal::CachedSize *
call _ZNK6google8protobuf7Message29MaybeComputeUnknownFieldsSizeEmPNS0_8internal10CachedSizeE; google::protobuf::Message::MaybeComputeUnknownFieldsSize(ulong,google::protobuf::internal::CachedSize *)
add rsp, 38h
retn
|
long long google::protobuf::FieldDescriptorProto::ByteSizeLong(
google::protobuf::FieldDescriptorProto *this,
int a2)
{
unsigned long long v2; // rax
unsigned long long v3; // rax
unsigned long long v4; // rax
unsigned long long v5; // rax
unsigned long long v6; // rax
unsigned int v7; // eax
unsigned int v8; // eax
unsigned int v9; // eax
unsigned int v10; // eax
_BYTE v12[12]; // [rsp+14h] [rbp-24h]
*(_DWORD *)&v12[8] = 0;
*(_QWORD *)v12 = *((unsigned int *)this + 4);
if ( v12[0] )
{
if ( (v12[0] & 1) != 0 )
{
v2 = google::protobuf::FieldDescriptorProto::_internal_name[abi:cxx11]((long long)this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::StringSize(v2) + 1;
}
if ( (v12[0] & 2) != 0 )
{
v3 = google::protobuf::FieldDescriptorProto::_internal_extendee[abi:cxx11]((long long)this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::StringSize(v3) + 1;
}
if ( (v12[0] & 4) != 0 )
{
v4 = google::protobuf::FieldDescriptorProto::_internal_type_name[abi:cxx11]((long long)this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::StringSize(v4) + 1;
}
if ( (v12[0] & 8) != 0 )
{
v5 = google::protobuf::FieldDescriptorProto::_internal_default_value[abi:cxx11]((long long)this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::StringSize(v5) + 1;
}
if ( (v12[0] & 0x10) != 0 )
{
v6 = google::protobuf::FieldDescriptorProto::_internal_json_name[abi:cxx11]((long long)this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::StringSize(v6) + 1;
}
if ( (v12[0] & 0x20) != 0 )
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::MessageSize<google::protobuf::FieldOptions>(*((_QWORD *)this + 8))
+ 1;
if ( (v12[0] & 0x40) != 0 )
{
v7 = google::protobuf::FieldDescriptorProto::_internal_number(this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::Int32SizePlusOne(
(google::protobuf::internal::WireFormatLite *)v7,
a2);
}
if ( (v12[0] & 0x80) != 0 )
{
v8 = google::protobuf::FieldDescriptorProto::_internal_oneof_index(this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::Int32SizePlusOne(
(google::protobuf::internal::WireFormatLite *)v8,
a2);
}
}
if ( (*(_WORD *)v12 & 0x700) != 0 )
{
if ( (*(_WORD *)v12 & 0x100) != 0 )
*(_QWORD *)&v12[4] += 3LL;
if ( (*(_WORD *)v12 & 0x200) != 0 )
{
v9 = google::protobuf::FieldDescriptorProto::_internal_label(this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::EnumSize(
(google::protobuf::internal::WireFormatLite *)v9,
a2)
+ 1;
}
if ( (*(_WORD *)v12 & 0x400) != 0 )
{
v10 = google::protobuf::FieldDescriptorProto::_internal_type(this);
*(_QWORD *)&v12[4] += google::protobuf::internal::WireFormatLite::EnumSize(
(google::protobuf::internal::WireFormatLite *)v10,
a2)
+ 1;
}
}
return google::protobuf::Message::MaybeComputeUnknownFieldsSize(
this,
*(unsigned long long *)&v12[4],
(google::protobuf::FieldDescriptorProto *)((char *)this + 20));
}
|
ByteSizeLong:
SUB RSP,0x38
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x18],0x0
MOV dword ptr [RSP + 0x14],0x0
ADD RAX,0x10
MOV qword ptr [RSP + 0x30],RAX
MOV dword ptr [RSP + 0x2c],0x0
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,dword ptr [RSP + 0x2c]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV dword ptr [RSP + 0x14],EAX
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0xff
CMP EAX,0x0
JZ 0x001b3b5e
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x1
CMP EAX,0x0
JZ 0x001b3a34
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00187810
MOV RDI,RAX
CALL 0x001d53e0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3a34:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x2
CMP EAX,0x0
JZ 0x001b3a60
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001890d0
MOV RDI,RAX
CALL 0x001d53e0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3a60:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x4
CMP EAX,0x0
JZ 0x001b3a8c
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00189150
MOV RDI,RAX
CALL 0x001d53e0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3a8c:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x8
CMP EAX,0x0
JZ 0x001b3ab8
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00187960
MOV RDI,RAX
CALL 0x001d53e0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3ab8:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x10
CMP EAX,0x0
JZ 0x001b3ae4
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00187880
MOV RDI,RAX
CALL 0x001d53e0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3ae4:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001b3b0c
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x40]
CALL 0x001d74f0
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3b0c:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x40
CMP EAX,0x0
JZ 0x001b3b33
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00186e70
MOV EDI,EAX
CALL 0x001d5b20
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3b33:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001b3b5c
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00187a10
MOV EDI,EAX
CALL 0x001d5b20
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3b5c:
JMP 0x001b3b5e
LAB_001b3b5e:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x700
CMP EAX,0x0
JZ 0x001b3be4
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x100
CMP EAX,0x0
JZ 0x001b3b88
MOV RAX,qword ptr [RSP + 0x18]
ADD RAX,0x3
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3b88:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x200
CMP EAX,0x0
JZ 0x001b3bb5
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001878d0
MOV EDI,EAX
CALL 0x001d7510
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3bb5:
MOV EAX,dword ptr [RSP + 0x14]
AND EAX,0x400
CMP EAX,0x0
JZ 0x001b3be2
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x001878c0
MOV EDI,EAX
CALL 0x001d7510
ADD RAX,0x1
ADD RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x18],RAX
LAB_001b3be2:
JMP 0x001b3be4
LAB_001b3be4:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x18]
MOV RDX,RDI
ADD RDX,0x10
ADD RDX,0x4
CALL 0x0023aa50
ADD RSP,0x38
RET
|
/* google::protobuf::FieldDescriptorProto::ByteSizeLong() const */
void __thiscall google::protobuf::FieldDescriptorProto::ByteSizeLong(FieldDescriptorProto *this)
{
uint uVar1;
int iVar2;
string *psVar3;
long lVar4;
ulong uVar5;
ulong local_20;
local_20 = 0;
uVar1 = *(uint *)(this + 0x10);
if ((uVar1 & 0xff) != 0) {
if ((uVar1 & 1) != 0) {
psVar3 = (string *)_internal_name_abi_cxx11_(this);
lVar4 = internal::WireFormatLite::StringSize(psVar3);
local_20 = lVar4 + 1;
}
if ((uVar1 & 2) != 0) {
psVar3 = (string *)_internal_extendee_abi_cxx11_(this);
lVar4 = internal::WireFormatLite::StringSize(psVar3);
local_20 = lVar4 + 1 + local_20;
}
if ((uVar1 & 4) != 0) {
psVar3 = (string *)_internal_type_name_abi_cxx11_(this);
lVar4 = internal::WireFormatLite::StringSize(psVar3);
local_20 = lVar4 + 1 + local_20;
}
if ((uVar1 & 8) != 0) {
psVar3 = (string *)_internal_default_value_abi_cxx11_(this);
lVar4 = internal::WireFormatLite::StringSize(psVar3);
local_20 = lVar4 + 1 + local_20;
}
if ((uVar1 & 0x10) != 0) {
psVar3 = (string *)_internal_json_name_abi_cxx11_(this);
lVar4 = internal::WireFormatLite::StringSize(psVar3);
local_20 = lVar4 + 1 + local_20;
}
if ((uVar1 & 0x20) != 0) {
uVar5 = internal::WireFormatLite::MessageSize<google::protobuf::FieldOptions>
(*(FieldOptions **)(this + 0x40));
local_20 = uVar5 + 1 + local_20;
}
if ((uVar1 & 0x40) != 0) {
iVar2 = _internal_number(this);
lVar4 = internal::WireFormatLite::Int32SizePlusOne(iVar2);
local_20 = lVar4 + local_20;
}
if ((uVar1 & 0x80) != 0) {
iVar2 = _internal_oneof_index(this);
lVar4 = internal::WireFormatLite::Int32SizePlusOne(iVar2);
local_20 = lVar4 + local_20;
}
}
if ((uVar1 & 0x700) != 0) {
if ((uVar1 & 0x100) != 0) {
local_20 = local_20 + 3;
}
if ((uVar1 & 0x200) != 0) {
iVar2 = _internal_label(this);
lVar4 = internal::WireFormatLite::EnumSize(iVar2);
local_20 = lVar4 + 1 + local_20;
}
if ((uVar1 & 0x400) != 0) {
iVar2 = _internal_type(this);
lVar4 = internal::WireFormatLite::EnumSize(iVar2);
local_20 = lVar4 + 1 + local_20;
}
}
Message::MaybeComputeUnknownFieldsSize((Message *)this,local_20,(CachedSize *)(this + 0x14));
return;
}
|
|
13,361
|
tree_record_pos
|
eloqsql/mysys/tree.c
|
ha_rows tree_record_pos(TREE *tree, const void *key,
enum ha_rkey_function flag, void *custom_arg)
{
int cmp;
TREE_ELEMENT *element= tree->root;
double left= 1;
double right= tree->elements_in_tree;
while (element != &null_element)
{
if ((cmp= (*tree->compare)(custom_arg, ELEMENT_KEY(tree, element),
key)) == 0)
{
switch (flag) {
case HA_READ_KEY_EXACT:
case HA_READ_BEFORE_KEY:
cmp= 1;
break;
case HA_READ_AFTER_KEY:
cmp= -1;
break;
default:
return HA_POS_ERROR;
}
}
if (cmp < 0) /* element < key */
{
element= element->right;
left= (left + right) / 2;
}
else
{
element= element->left;
right= (left + right) / 2;
}
}
switch (flag) {
case HA_READ_KEY_EXACT:
case HA_READ_BEFORE_KEY:
return (ha_rows) right;
case HA_READ_AFTER_KEY:
return (ha_rows) left;
default:
return HA_POS_ERROR;
}
}
|
O3
|
c
|
tree_record_pos:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movl 0x20c(%rdi), %eax
cvtsi2sd %rax, %xmm0
movapd %xmm0, -0x50(%rbp)
movq (%rdi), %r13
leaq 0x2e15d0(%rip), %rax # 0x387bc0
cmpq %rax, %r13
je 0xa66ad
movq %rcx, %r14
movq %rdi, %r15
movq %rsi, %r12
movsd 0x3c06e(%rip), %xmm0 # 0xe2678
movapd %xmm0, -0x40(%rbp)
movl 0x208(%r15), %esi
testq %rsi, %rsi
je 0xa6620
addq %r13, %rsi
jmp 0xa6624
movq 0x18(%r13), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq *0x228(%r15)
testl %eax, %eax
je 0xa666d
movapd -0x40(%rbp), %xmm0
addsd -0x50(%rbp), %xmm0
mulsd 0x3c099(%rip), %xmm0 # 0xe26e0
testl %eax, %eax
js 0xa6652
movapd %xmm0, -0x50(%rbp)
jmp 0xa6657
movapd %xmm0, -0x40(%rbp)
shrl $0x1f, %eax
movq (%r13,%rax,8), %r13
leaq 0x2e155a(%rip), %rax # 0x387bc0
cmpq %rax, %r13
jne 0xa660f
jmp 0xa6687
movl $0x1, %eax
testl %ebx, %ebx
je 0xa6635
cmpl $0x4, %ebx
je 0xa6635
cmpl $0x3, %ebx
jne 0xa66fa
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0xa6635
movapd -0x40(%rbp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x3bfc8(%rip), %xmm0 # 0xe2668
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
jmp 0xa66b2
movl $0x1, %eax
cmpl $0x4, %ebx
je 0xa66c7
cmpl $0x3, %ebx
je 0xa66eb
movq $-0x1, %rax
testl %ebx, %ebx
jne 0xa66eb
movapd -0x50(%rbp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x3bf88(%rip), %xmm0 # 0xe2668
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $-0x1, %rax
jmp 0xa66eb
|
tree_record_pos:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov ebx, edx
mov eax, [rdi+20Ch]
cvtsi2sd xmm0, rax
movapd [rbp+var_50], xmm0
mov r13, [rdi]
lea rax, null_element
cmp r13, rax
jz loc_A66AD
mov r14, rcx
mov r15, rdi
mov r12, rsi
movsd xmm0, cs:qword_E2678
movapd [rbp+var_40], xmm0
loc_A660F:
mov esi, [r15+208h]
test rsi, rsi
jz short loc_A6620
add rsi, r13
jmp short loc_A6624
loc_A6620:
mov rsi, [r13+18h]
loc_A6624:
mov rdi, r14
mov rdx, r12
call qword ptr [r15+228h]
test eax, eax
jz short loc_A666D
loc_A6635:
movapd xmm0, [rbp+var_40]
addsd xmm0, qword ptr [rbp+var_50]
mulsd xmm0, cs:qword_E26E0
test eax, eax
js short loc_A6652
movapd [rbp+var_50], xmm0
jmp short loc_A6657
loc_A6652:
movapd [rbp+var_40], xmm0
loc_A6657:
shr eax, 1Fh
mov r13, [r13+rax*8+0]
lea rax, null_element
cmp r13, rax
jnz short loc_A660F
jmp short loc_A6687
loc_A666D:
mov eax, 1
test ebx, ebx
jz short loc_A6635
cmp ebx, 4
jz short loc_A6635
cmp ebx, 3
jnz short loc_A66FA
mov eax, 0FFFFFFFFh
jmp short loc_A6635
loc_A6687:
movapd xmm0, [rbp+var_40]
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
subsd xmm0, cs:qword_E2668
cvttsd2si rax, xmm0
and rax, rdx
or rax, rcx
jmp short loc_A66B2
loc_A66AD:
mov eax, 1
loc_A66B2:
cmp ebx, 4
jz short loc_A66C7
cmp ebx, 3
jz short loc_A66EB
mov rax, 0FFFFFFFFFFFFFFFFh
test ebx, ebx
jnz short loc_A66EB
loc_A66C7:
movapd xmm0, [rbp+var_50]
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
subsd xmm0, cs:qword_E2668
cvttsd2si rax, xmm0
and rax, rdx
or rax, rcx
loc_A66EB:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A66FA:
mov rax, 0FFFFFFFFFFFFFFFFh
jmp short loc_A66EB
|
long long tree_record_pos(long long a1, long long a2, int a3, long long a4)
{
_QWORD *v5; // r13
char *v8; // rsi
int v9; // eax
__int128 v10; // xmm0
long long result; // rax
double v12; // [rsp+0h] [rbp-50h]
__int128 v13; // [rsp+10h] [rbp-40h]
v12 = (double)*(int *)(a1 + 524);
v5 = *(_QWORD **)a1;
if ( *(_UNKNOWN **)a1 != &null_element )
{
v13 = 0x3FF0000000000000uLL;
while ( 1 )
{
if ( *(_DWORD *)(a1 + 520) )
v8 = (char *)v5 + *(unsigned int *)(a1 + 520);
else
v8 = (char *)v5[3];
v9 = (*(long long ( **)(long long, char *, long long))(a1 + 552))(a4, v8, a2);
if ( !v9 )
{
v9 = 1;
if ( a3 )
{
if ( a3 != 4 )
{
if ( a3 != 3 )
return -1LL;
v9 = -1;
}
}
}
*((_QWORD *)&v10 + 1) = *((_QWORD *)&v13 + 1);
if ( v9 < 0 )
{
*(double *)&v10 = (*(double *)&v13 + v12) * 0.5;
v13 = v10;
}
else
{
v12 = (*(double *)&v13 + v12) * 0.5;
}
v5 = (_QWORD *)v5[(unsigned int)v9 >> 31];
if ( v5 == (_QWORD *)&null_element )
{
result = (unsigned int)(int)*(double *)&v13;
goto LABEL_17;
}
}
}
result = 1LL;
LABEL_17:
if ( a3 == 4 )
return (unsigned int)(int)v12;
if ( a3 != 3 )
{
result = -1LL;
if ( !a3 )
return (unsigned int)(int)v12;
}
return result;
}
|
tree_record_pos:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV EBX,EDX
MOV EAX,dword ptr [RDI + 0x20c]
CVTSI2SD XMM0,RAX
MOVAPD xmmword ptr [RBP + -0x50],XMM0
MOV R13,qword ptr [RDI]
LEA RAX,[0x487bc0]
CMP R13,RAX
JZ 0x001a66ad
MOV R14,RCX
MOV R15,RDI
MOV R12,RSI
MOVSD XMM0,qword ptr [0x001e2678]
MOVAPD xmmword ptr [RBP + -0x40],XMM0
LAB_001a660f:
MOV ESI,dword ptr [R15 + 0x208]
TEST RSI,RSI
JZ 0x001a6620
ADD RSI,R13
JMP 0x001a6624
LAB_001a6620:
MOV RSI,qword ptr [R13 + 0x18]
LAB_001a6624:
MOV RDI,R14
MOV RDX,R12
CALL qword ptr [R15 + 0x228]
TEST EAX,EAX
JZ 0x001a666d
LAB_001a6635:
MOVAPD XMM0,xmmword ptr [RBP + -0x40]
ADDSD XMM0,qword ptr [RBP + -0x50]
MULSD XMM0,qword ptr [0x001e26e0]
TEST EAX,EAX
JS 0x001a6652
MOVAPD xmmword ptr [RBP + -0x50],XMM0
JMP 0x001a6657
LAB_001a6652:
MOVAPD xmmword ptr [RBP + -0x40],XMM0
LAB_001a6657:
SHR EAX,0x1f
MOV R13,qword ptr [R13 + RAX*0x8]
LEA RAX,[0x487bc0]
CMP R13,RAX
JNZ 0x001a660f
JMP 0x001a6687
LAB_001a666d:
MOV EAX,0x1
TEST EBX,EBX
JZ 0x001a6635
CMP EBX,0x4
JZ 0x001a6635
CMP EBX,0x3
JNZ 0x001a66fa
MOV EAX,0xffffffff
JMP 0x001a6635
LAB_001a6687:
MOVAPD XMM0,xmmword ptr [RBP + -0x40]
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM0,qword ptr [0x001e2668]
CVTTSD2SI RAX,XMM0
AND RAX,RDX
OR RAX,RCX
JMP 0x001a66b2
LAB_001a66ad:
MOV EAX,0x1
LAB_001a66b2:
CMP EBX,0x4
JZ 0x001a66c7
CMP EBX,0x3
JZ 0x001a66eb
MOV RAX,-0x1
TEST EBX,EBX
JNZ 0x001a66eb
LAB_001a66c7:
MOVAPD XMM0,xmmword ptr [RBP + -0x50]
CVTTSD2SI RCX,XMM0
MOV RDX,RCX
SAR RDX,0x3f
SUBSD XMM0,qword ptr [0x001e2668]
CVTTSD2SI RAX,XMM0
AND RAX,RDX
OR RAX,RCX
LAB_001a66eb:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a66fa:
MOV RAX,-0x1
JMP 0x001a66eb
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
ulong tree_record_pos(long *param_1,int8 param_2,int param_3,int8 param_4)
{
uint uVar1;
ulong uVar2;
int1 *puVar3;
int1 *puVar4;
double dVar5;
double local_58;
double local_48;
local_58 = (double)*(uint *)((long)param_1 + 0x20c);
puVar4 = (int1 *)*param_1;
if (puVar4 == null_element) {
uVar2 = 1;
}
else {
local_48 = DAT_001e2678;
do {
if ((ulong)*(uint *)(param_1 + 0x41) == 0) {
puVar3 = *(int1 **)(puVar4 + 0x18);
}
else {
puVar3 = puVar4 + *(uint *)(param_1 + 0x41);
}
uVar1 = (*(code *)param_1[0x45])(param_4,puVar3,param_2);
if (((uVar1 == 0) && (uVar1 = 1, param_3 != 0)) && (param_3 != 4)) {
if (param_3 != 3) {
return 0xffffffffffffffff;
}
uVar1 = 0xffffffff;
}
dVar5 = (local_48 + local_58) * DAT_001e26e0;
if (-1 < (int)uVar1) {
local_58 = dVar5;
dVar5 = local_48;
}
local_48 = dVar5;
puVar4 = *(int1 **)(puVar4 + (ulong)(uVar1 >> 0x1f) * 8);
} while (puVar4 != null_element);
uVar2 = (long)(local_48 - _DAT_001e2668) & (long)local_48 >> 0x3f | (long)local_48;
}
if ((param_3 == 4) || ((param_3 != 3 && (uVar2 = 0xffffffffffffffff, param_3 == 0)))) {
uVar2 = (long)(local_58 - _DAT_001e2668) & (long)local_58 >> 0x3f | (long)local_58;
}
return uVar2;
}
|
|
13,362
|
LefDefParser::lefwMacroPinPortLayerRect(double, double, double, double, int, int, double, double, int)
|
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
|
int
lefwMacroPinPortLayerRect(double xl1,
double yl1,
double xl2,
double yl2,
int numX,
int numY, // optional
double spaceX,
double spaceY, // optional
int mask)
{ // optional
if (!lefwFile)
return LEFW_UNINITIALIZED;
if (!lefwDidInit)
return LEFW_BAD_ORDER;
if (!lefwIsMacroPinPortLayer)
return LEFW_BAD_ORDER;
if (mask && versionNum < 5.8) {
return LEFW_WRONG_VERSION;
}
if (!lefwValidateMaskNumber(mask)) {
return LEFW_BAD_DATA;
}
if (lefwWriteEncrypt) {
if (numX || numY || spaceX || spaceY) {
if (mask) {
encPrint(lefwFile,
(char*) " RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",
mask, xl1, yl1, xl2, yl2);
} else {
encPrint(lefwFile,
(char*) " RECT ITERATE %.11g %.11g %.11g %.11g ",
xl1, yl1, xl2, yl2);
}
encPrint(lefwFile,
(char*) "DO %d BY %d STEP %.11g %.11g ", numX, numY, spaceX,
spaceY);
} else {
if (mask) {
encPrint(lefwFile, (char*)
" RECT MASK %d %.11g %.11g %.11g %.11g ", mask, xl1, yl1, xl2, yl2);
} else {
encPrint(lefwFile, (char*)
" RECT %.11g %.11g %.11g %.11g ", xl1, yl1, xl2, yl2);
}
}
encPrint(lefwFile, (char*) ";\n");
} else {
if (numX || numY || spaceX || spaceY) {
if (mask) {
fprintf(lefwFile, " RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",
mask, xl1, yl1, xl2, yl2);
} else {
fprintf(lefwFile, " RECT ITERATE %.11g %.11g %.11g %.11g ",
xl1, yl1, xl2, yl2);
}
fprintf(lefwFile, "DO %d BY %d STEP %.11g %.11g ", numX, numY, spaceX,
spaceY);
} else {
if (mask) {
fprintf(lefwFile,
" RECT MASK %d %.11g %.11g %.11g %.11g ", mask, xl1, yl1, xl2, yl2);
} else {
fprintf(lefwFile,
" RECT %.11g %.11g %.11g %.11g ", xl1, yl1, xl2, yl2);
}
}
fprintf(lefwFile, ";\n");
}
lefwLines++;
return LEFW_OK;
}
|
O0
|
cpp
|
LefDefParser::lefwMacroPinPortLayerRect(double, double, double, double, int, int, double, double, int):
subq $0x48, %rsp
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd %xmm2, 0x28(%rsp)
movsd %xmm3, 0x20(%rsp)
movl %edi, 0x1c(%rsp)
movl %esi, 0x18(%rsp)
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, 0x8(%rsp)
movl %edx, 0x4(%rsp)
leaq 0xe9a5(%rip), %rax # 0x32e00
cmpq $0x0, (%rax)
jne 0x2446e
movl $0x1, 0x44(%rsp)
jmp 0x247bd
leaq 0xebdf(%rip), %rax # 0x33054
cmpl $0x0, (%rax)
jne 0x24487
movl $0x2, 0x44(%rsp)
jmp 0x247bd
leaq 0xec16(%rip), %rax # 0x330a4
cmpl $0x0, (%rax)
jne 0x244a0
movl $0x2, 0x44(%rsp)
jmp 0x247bd
cmpl $0x0, 0x4(%rsp)
je 0x244c6
movsd 0x5231(%rip), %xmm0 # 0x296e0
ucomisd 0xe889(%rip), %xmm0 # 0x32d40
jbe 0x244c6
movl $0x5, 0x44(%rsp)
jmp 0x247bd
movl 0x4(%rsp), %edi
callq 0xbf20
testb $0x1, %al
jne 0x244e0
movl $0x3, 0x44(%rsp)
jmp 0x247bd
cmpl $0x0, 0xec05(%rip) # 0x330ec
je 0x24649
cmpl $0x0, 0x1c(%rsp)
jne 0x24522
cmpl $0x0, 0x18(%rsp)
jne 0x24522
movsd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x24522
jp 0x24522
movsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x24522
jp 0x24522
jmp 0x245bd
cmpl $0x0, 0x4(%rsp)
je 0x2455f
leaq 0xe8d0(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x4(%rsp), %edx
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x76ce(%rip), %rsi # 0x2bc24
movb $0x4, %al
callq 0x289b0
jmp 0x2458f
leaq 0xe89a(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x76d6(%rip), %rsi # 0x2bc5e
movb $0x4, %al
callq 0x289b0
leaq 0xe86a(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
leaq 0x7614(%rip), %rsi # 0x2bbc8
movb $0x2, %al
callq 0x289b0
jmp 0x2462c
cmpl $0x0, 0x4(%rsp)
je 0x245fa
leaq 0xe835(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x4(%rsp), %edx
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x769f(%rip), %rsi # 0x2bc90
movb $0x4, %al
callq 0x289b0
jmp 0x2462a
leaq 0xe7ff(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x769f(%rip), %rsi # 0x2bcc2
movb $0x4, %al
callq 0x289b0
jmp 0x2462c
leaq 0xe7cd(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x5917(%rip), %rsi # 0x29f54
movb $0x0, %al
callq 0x289b0
jmp 0x247a0
cmpl $0x0, 0x1c(%rsp)
jne 0x2467e
cmpl $0x0, 0x18(%rsp)
jne 0x2467e
movsd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2467e
jp 0x2467e
movsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2467e
jp 0x2467e
jmp 0x24719
cmpl $0x0, 0x4(%rsp)
je 0x246bb
leaq 0xe774(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x4(%rsp), %edx
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x7572(%rip), %rsi # 0x2bc24
movb $0x4, %al
callq 0x1100
jmp 0x246eb
leaq 0xe73e(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x757a(%rip), %rsi # 0x2bc5e
movb $0x4, %al
callq 0x1100
leaq 0xe70e(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x1c(%rsp), %edx
movl 0x18(%rsp), %ecx
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
leaq 0x74b8(%rip), %rsi # 0x2bbc8
movb $0x2, %al
callq 0x1100
jmp 0x24788
cmpl $0x0, 0x4(%rsp)
je 0x24756
leaq 0xe6d9(%rip), %rax # 0x32e00
movq (%rax), %rdi
movl 0x4(%rsp), %edx
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x7543(%rip), %rsi # 0x2bc90
movb $0x4, %al
callq 0x1100
jmp 0x24786
leaq 0xe6a3(%rip), %rax # 0x32e00
movq (%rax), %rdi
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
leaq 0x7543(%rip), %rsi # 0x2bcc2
movb $0x4, %al
callq 0x1100
jmp 0x24788
leaq 0xe671(%rip), %rax # 0x32e00
movq (%rax), %rdi
leaq 0x57bb(%rip), %rsi # 0x29f54
movb $0x0, %al
callq 0x1100
leaq 0xe8a5(%rip), %rax # 0x3304c
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0xe899(%rip), %rax # 0x3304c
movl %ecx, (%rax)
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
|
_ZN12LefDefParser25lefwMacroPinPortLayerRectEddddiiddi:
sub rsp, 48h
movsd [rsp+48h+var_10], xmm0
movsd [rsp+48h+var_18], xmm1
movsd [rsp+48h+var_20], xmm2
movsd [rsp+48h+var_28], xmm3
mov [rsp+48h+var_2C], edi
mov [rsp+48h+var_30], esi
movsd [rsp+48h+var_38], xmm4
movsd [rsp+48h+var_44+4], xmm5
mov dword ptr [rsp+48h+var_44], edx
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
cmp qword ptr [rax], 0
jnz short loc_2446E
mov [rsp+48h+var_4], 1
jmp loc_247BD
loc_2446E:
lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit
cmp dword ptr [rax], 0
jnz short loc_24487
mov [rsp+48h+var_4], 2
jmp loc_247BD
loc_24487:
lea rax, _ZN12LefDefParser23lefwIsMacroPinPortLayerE; LefDefParser::lefwIsMacroPinPortLayer
cmp dword ptr [rax], 0
jnz short loc_244A0
mov [rsp+48h+var_4], 2
jmp loc_247BD
loc_244A0:
cmp dword ptr [rsp+48h+var_44], 0
jz short loc_244C6
movsd xmm0, cs:qword_296E0
ucomisd xmm0, cs:_ZN12LefDefParserL10versionNumE; LefDefParser::versionNum
jbe short loc_244C6
mov [rsp+48h+var_4], 5
jmp loc_247BD
loc_244C6:
mov edi, dword ptr [rsp+48h+var_44]; this
call _ZN12LefDefParser22lefwValidateMaskNumberEi; LefDefParser::lefwValidateMaskNumber(int)
test al, 1
jnz short loc_244E0
mov [rsp+48h+var_4], 3
jmp loc_247BD
loc_244E0:
cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 0; LefDefParser::lefwWriteEncrypt
jz loc_24649
cmp [rsp+48h+var_2C], 0
jnz short loc_24522
cmp [rsp+48h+var_30], 0
jnz short loc_24522
movsd xmm0, [rsp+48h+var_38]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jnz short loc_24522
jp short loc_24522
movsd xmm0, [rsp+48h+var_44+4]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jnz short loc_24522
jp short loc_24522
jmp loc_245BD
loc_24522:
cmp dword ptr [rsp+48h+var_44], 0
jz short loc_2455F
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, dword ptr [rsp+48h+var_44]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectMaskDItera; " RECT MASK %d ITERATE %.11g "...
mov al, 4
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2458F
loc_2455F:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectIterate11g; " RECT ITERATE %.11g %.11g %."...
mov al, 4
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
loc_2458F:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, [rsp+48h+var_2C]
mov ecx, [rsp+48h+var_30]
movsd xmm0, [rsp+48h+var_38]
movsd xmm1, [rsp+48h+var_44+4]
lea rsi, aDoDByDStep11g1+0Bh; "DO %d BY %d STEP %.11g %.11g "
mov al, 2
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2462C
loc_245BD:
cmp dword ptr [rsp+48h+var_44], 0
jz short loc_245FA
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, dword ptr [rsp+48h+var_44]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectMaskD11g11_0; " RECT MASK %d %.11g %.11g %."...
mov al, 4
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp short loc_2462A
loc_245FA:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRect11g11g11g1_1; " RECT %.11g %.11g %.11g %.11"...
mov al, 4
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
loc_2462A:
jmp short $+2
loc_2462C:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...)
jmp loc_247A0
loc_24649:
cmp [rsp+48h+var_2C], 0
jnz short loc_2467E
cmp [rsp+48h+var_30], 0
jnz short loc_2467E
movsd xmm0, [rsp+48h+var_38]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jnz short loc_2467E
jp short loc_2467E
movsd xmm0, [rsp+48h+var_44+4]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jnz short loc_2467E
jp short loc_2467E
jmp loc_24719
loc_2467E:
cmp dword ptr [rsp+48h+var_44], 0
jz short loc_246BB
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, dword ptr [rsp+48h+var_44]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectMaskDItera; " RECT MASK %d ITERATE %.11g "...
mov al, 4
call _fprintf
jmp short loc_246EB
loc_246BB:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectIterate11g; " RECT ITERATE %.11g %.11g %."...
mov al, 4
call _fprintf
loc_246EB:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, [rsp+48h+var_2C]
mov ecx, [rsp+48h+var_30]
movsd xmm0, [rsp+48h+var_38]
movsd xmm1, [rsp+48h+var_44+4]
lea rsi, aDoDByDStep11g1+0Bh; "DO %d BY %d STEP %.11g %.11g "
mov al, 2
call _fprintf
jmp short loc_24788
loc_24719:
cmp dword ptr [rsp+48h+var_44], 0
jz short loc_24756
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
mov edx, dword ptr [rsp+48h+var_44]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRectMaskD11g11_0; " RECT MASK %d %.11g %.11g %."...
mov al, 4
call _fprintf
jmp short loc_24786
loc_24756:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
movsd xmm0, [rsp+48h+var_10]
movsd xmm1, [rsp+48h+var_18]
movsd xmm2, [rsp+48h+var_20]
movsd xmm3, [rsp+48h+var_28]
lea rsi, aRect11g11g11g1_1; " RECT %.11g %.11g %.11g %.11"...
mov al, 4
call _fprintf
loc_24786:
jmp short $+2
loc_24788:
lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile
mov rdi, [rax]
lea rsi, aDividercharS+11h; ";\n"
mov al, 0
call _fprintf
loc_247A0:
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov ecx, [rax]
add ecx, 1
lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines
mov [rax], ecx
mov [rsp+48h+var_4], 0
loc_247BD:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
|
long long LefDefParser::lefwMacroPinPortLayerRect(
LefDefParser *this,
double a2,
double a3,
double a4,
double a5,
int a6,
unsigned int a7,
double a8,
double a9)
{
int v9; // edx
int v10; // ecx
int v11; // r8d
int v12; // r9d
int v13; // r8d
int v14; // r9d
int v15; // edx
int v16; // ecx
int v17; // r8d
int v18; // r9d
if ( *(_QWORD *)&LefDefParser::lefwFile )
{
if ( LefDefParser::lefwDidInit )
{
if ( LefDefParser::lefwIsMacroPinPortLayer )
{
if ( a7 && *(double *)&LefDefParser::versionNum < 5.8 )
{
return 5;
}
else if ( LefDefParser::lefwValidateMaskNumber((LefDefParser *)a7) )
{
if ( LefDefParser::lefwWriteEncrypt )
{
if ( !(_DWORD)this && !a6 && a8 == 0.0 && a9 == 0.0 )
{
if ( a7 )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" RECT MASK %d %.11g %.11g %.11g %.11g ",
a7,
v10,
v11,
v12);
else
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" RECT %.11g %.11g %.11g %.11g ",
v9,
v10,
v11,
v12);
}
else
{
if ( a7 )
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",
a7,
v10,
v11,
v12);
else
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)" RECT ITERATE %.11g %.11g %.11g %.11g ",
v9,
v10,
v11,
v12);
LefDefParser::encPrint(
LefDefParser::lefwFile,
(unsigned int)"DO %d BY %d STEP %.11g %.11g ",
(_DWORD)this,
a6,
v13,
v14);
}
LefDefParser::encPrint(LefDefParser::lefwFile, (unsigned int)";\n", v15, v16, v17, v18);
}
else
{
if ( !(_DWORD)this && !a6 && a8 == 0.0 && a9 == 0.0 )
{
if ( a7 )
fprintf(
*(_QWORD *)&LefDefParser::lefwFile,
" RECT MASK %d %.11g %.11g %.11g %.11g ",
a7,
a2,
a3,
a4,
a5);
else
fprintf(*(_QWORD *)&LefDefParser::lefwFile, " RECT %.11g %.11g %.11g %.11g ", a2, a3, a4, a5);
}
else
{
if ( a7 )
fprintf(
*(_QWORD *)&LefDefParser::lefwFile,
" RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",
a7,
a2,
a3,
a4,
a5);
else
fprintf(
*(_QWORD *)&LefDefParser::lefwFile,
" RECT ITERATE %.11g %.11g %.11g %.11g ",
a2,
a3,
a4,
a5);
fprintf(*(_QWORD *)&LefDefParser::lefwFile, "DO %d BY %d STEP %.11g %.11g ", (_DWORD)this, a6, a8, a9);
}
fprintf(*(_QWORD *)&LefDefParser::lefwFile, ";\n");
}
++LefDefParser::lefwLines;
return 0;
}
else
{
return 3;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 1;
}
}
|
lefwMacroPinPortLayerRect:
SUB RSP,0x48
MOVSD qword ptr [RSP + 0x38],XMM0
MOVSD qword ptr [RSP + 0x30],XMM1
MOVSD qword ptr [RSP + 0x28],XMM2
MOVSD qword ptr [RSP + 0x20],XMM3
MOV dword ptr [RSP + 0x1c],EDI
MOV dword ptr [RSP + 0x18],ESI
MOVSD qword ptr [RSP + 0x10],XMM4
MOVSD qword ptr [RSP + 0x8],XMM5
MOV dword ptr [RSP + 0x4],EDX
LEA RAX,[0x132e00]
CMP qword ptr [RAX],0x0
JNZ 0x0012446e
MOV dword ptr [RSP + 0x44],0x1
JMP 0x001247bd
LAB_0012446e:
LEA RAX,[0x133054]
CMP dword ptr [RAX],0x0
JNZ 0x00124487
MOV dword ptr [RSP + 0x44],0x2
JMP 0x001247bd
LAB_00124487:
LEA RAX,[0x1330a4]
CMP dword ptr [RAX],0x0
JNZ 0x001244a0
MOV dword ptr [RSP + 0x44],0x2
JMP 0x001247bd
LAB_001244a0:
CMP dword ptr [RSP + 0x4],0x0
JZ 0x001244c6
MOVSD XMM0,qword ptr [0x001296e0]
UCOMISD XMM0,qword ptr [0x00132d40]
JBE 0x001244c6
MOV dword ptr [RSP + 0x44],0x5
JMP 0x001247bd
LAB_001244c6:
MOV EDI,dword ptr [RSP + 0x4]
CALL 0x0010bf20
TEST AL,0x1
JNZ 0x001244e0
MOV dword ptr [RSP + 0x44],0x3
JMP 0x001247bd
LAB_001244e0:
CMP dword ptr [0x001330ec],0x0
JZ 0x00124649
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x00124522
CMP dword ptr [RSP + 0x18],0x0
JNZ 0x00124522
MOVSD XMM0,qword ptr [RSP + 0x10]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
JNZ 0x00124522
JP 0x00124522
MOVSD XMM0,qword ptr [RSP + 0x8]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
JNZ 0x00124522
JP 0x00124522
JMP 0x001245bd
LAB_00124522:
CMP dword ptr [RSP + 0x4],0x0
JZ 0x0012455f
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x4]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc24]
MOV AL,0x4
CALL 0x001289b0
JMP 0x0012458f
LAB_0012455f:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc5e]
MOV AL,0x4
CALL 0x001289b0
LAB_0012458f:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x1c]
MOV ECX,dword ptr [RSP + 0x18]
MOVSD XMM0,qword ptr [RSP + 0x10]
MOVSD XMM1,qword ptr [RSP + 0x8]
LEA RSI,[0x12bbc8]
MOV AL,0x2
CALL 0x001289b0
JMP 0x0012462c
LAB_001245bd:
CMP dword ptr [RSP + 0x4],0x0
JZ 0x001245fa
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x4]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc90]
MOV AL,0x4
CALL 0x001289b0
JMP 0x0012462a
LAB_001245fa:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bcc2]
MOV AL,0x4
CALL 0x001289b0
LAB_0012462a:
JMP 0x0012462c
LAB_0012462c:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129f54]
MOV AL,0x0
CALL 0x001289b0
JMP 0x001247a0
LAB_00124649:
CMP dword ptr [RSP + 0x1c],0x0
JNZ 0x0012467e
CMP dword ptr [RSP + 0x18],0x0
JNZ 0x0012467e
MOVSD XMM0,qword ptr [RSP + 0x10]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
JNZ 0x0012467e
JP 0x0012467e
MOVSD XMM0,qword ptr [RSP + 0x8]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
JNZ 0x0012467e
JP 0x0012467e
JMP 0x00124719
LAB_0012467e:
CMP dword ptr [RSP + 0x4],0x0
JZ 0x001246bb
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x4]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc24]
MOV AL,0x4
CALL 0x00101100
JMP 0x001246eb
LAB_001246bb:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc5e]
MOV AL,0x4
CALL 0x00101100
LAB_001246eb:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x1c]
MOV ECX,dword ptr [RSP + 0x18]
MOVSD XMM0,qword ptr [RSP + 0x10]
MOVSD XMM1,qword ptr [RSP + 0x8]
LEA RSI,[0x12bbc8]
MOV AL,0x2
CALL 0x00101100
JMP 0x00124788
LAB_00124719:
CMP dword ptr [RSP + 0x4],0x0
JZ 0x00124756
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [RSP + 0x4]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bc90]
MOV AL,0x4
CALL 0x00101100
JMP 0x00124786
LAB_00124756:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
MOVSD XMM0,qword ptr [RSP + 0x38]
MOVSD XMM1,qword ptr [RSP + 0x30]
MOVSD XMM2,qword ptr [RSP + 0x28]
MOVSD XMM3,qword ptr [RSP + 0x20]
LEA RSI,[0x12bcc2]
MOV AL,0x4
CALL 0x00101100
LAB_00124786:
JMP 0x00124788
LAB_00124788:
LEA RAX,[0x132e00]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x129f54]
MOV AL,0x0
CALL 0x00101100
LAB_001247a0:
LEA RAX,[0x13304c]
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
LEA RAX,[0x13304c]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x44],0x0
LAB_001247bd:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
/* LefDefParser::lefwMacroPinPortLayerRect(double, double, double, double, int, int, double, double,
int) */
int4
LefDefParser::lefwMacroPinPortLayerRect
(double param_1,double param_2,double param_3,double param_4,int param_5,int param_6,
double param_7,double param_8,int param_9)
{
ulong uVar1;
int4 local_4;
if (lefwFile == (_IO_FILE *)0x0) {
local_4 = 1;
}
else if (lefwDidInit == 0) {
local_4 = 2;
}
else if (lefwIsMacroPinPortLayer == 0) {
local_4 = 2;
}
else if ((param_9 == 0) || (DAT_001296e0 <= versionNum)) {
uVar1 = lefwValidateMaskNumber(param_9);
if ((uVar1 & 1) == 0) {
local_4 = 3;
}
else {
if (lefwWriteEncrypt == 0) {
if ((((param_5 != 0) || (param_6 != 0)) || (param_7 != 0.0)) ||
(((NAN(param_7) || (param_8 != 0.0)) || (NAN(param_8))))) {
if (param_9 == 0) {
fprintf(lefwFile," RECT ITERATE %.11g %.11g %.11g %.11g ",param_1,param_2,
param_3,param_4);
}
else {
fprintf(lefwFile," RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",param_1,
param_2,param_3,param_4,(ulong)(uint)param_9);
}
fprintf(lefwFile,"DO %d BY %d STEP %.11g %.11g ",param_7,param_8,(ulong)(uint)param_5,
(ulong)(uint)param_6);
}
else if (param_9 == 0) {
fprintf(lefwFile," RECT %.11g %.11g %.11g %.11g ",param_1,param_2,param_3,
param_4);
}
else {
fprintf(lefwFile," RECT MASK %d %.11g %.11g %.11g %.11g ",param_1,param_2,
param_3,param_4,(ulong)(uint)param_9);
}
fprintf(lefwFile,";\n");
}
else {
if (((param_5 != 0) || (param_6 != 0)) ||
((param_7 != 0.0 || (((NAN(param_7) || (param_8 != 0.0)) || (NAN(param_8))))))) {
if (param_9 == 0) {
encPrint(lefwFile," RECT ITERATE %.11g %.11g %.11g %.11g ",param_1,param_2,
param_3,param_4);
}
else {
encPrint(lefwFile," RECT MASK %d ITERATE %.11g %.11g %.11g %.11g ",param_1,
param_2,param_3,param_4,(ulong)(uint)param_9);
}
encPrint(lefwFile,"DO %d BY %d STEP %.11g %.11g ",param_7,param_8,(ulong)(uint)param_5,
(ulong)(uint)param_6);
}
else if (param_9 == 0) {
encPrint(lefwFile," RECT %.11g %.11g %.11g %.11g ",param_1,param_2,param_3,
param_4);
}
else {
encPrint(lefwFile," RECT MASK %d %.11g %.11g %.11g %.11g ",param_1,param_2,
param_3,param_4,(ulong)(uint)param_9);
}
encPrint(lefwFile,";\n");
}
lefwLines = lefwLines + 1;
local_4 = 0;
}
}
else {
local_4 = 5;
}
return local_4;
}
|
|
13,363
|
BAIL_OUT
|
eloqsql/libmariadb/unittest/mytap/tap.c
|
void
BAIL_OUT(char const *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
fprintf(tapout, "Bail out! ");
vfprintf(tapout, fmt, ap);
emit_endl();
va_end(ap);
exit(255);
}
|
O3
|
c
|
BAIL_OUT:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xe0(%rbp), %rdi
movq %rsi, 0x8(%rdi)
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x17adf
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)
leaq -0x30(%rbp), %r14
movq %rdi, 0x10(%r14)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%r14)
movabsq $0x3000000008, %rax # imm = 0x3000000008
movq %rax, (%r14)
movq 0x344b5(%rip), %r15 # 0x4bfb8
movq (%r15), %rdi
leaq 0x20bba(%rip), %rdx # 0x386c7
movl $0x1, %esi
xorl %eax, %eax
callq 0x13750
movq (%r15), %rdi
movl $0x1, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x13150
callq 0x18196
movl $0xff, %edi
callq 0x13590
|
BAIL_OUT:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 0C8h
mov rbx, rdi
lea rdi, [rbp+var_E0]
mov [rdi+8], rsi
mov [rdi+10h], rdx
mov [rdi+18h], rcx
mov [rdi+20h], r8
mov [rdi+28h], r9
test al, al
jz short loc_17ADF
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_17ADF:
lea r14, [rbp+var_30]
mov [r14+10h], rdi
lea rax, [rbp+arg_0]
mov [r14+8], rax
mov rax, 3000000008h
mov [r14], rax
mov r15, cs:stdout_ptr
mov rdi, [r15]
lea rdx, aBailOut; "Bail out! "
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [r15]
mov esi, 1
mov rdx, rbx
mov rcx, r14
call ___vfprintf_chk
call emit_endl
mov edi, 0FFh
call _exit
|
void __noreturn BAIL_OUT(
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; // [rsp+0h] [rbp-E0h] BYREF
long long v16; // [rsp+8h] [rbp-D8h]
long long v17; // [rsp+10h] [rbp-D0h]
long long v18; // [rsp+18h] [rbp-C8h]
long long v19; // [rsp+20h] [rbp-C0h]
long long v20; // [rsp+28h] [rbp-B8h]
__m128 v21; // [rsp+30h] [rbp-B0h]
__m128 v22; // [rsp+40h] [rbp-A0h]
__m128 v23; // [rsp+50h] [rbp-90h]
__m128 v24; // [rsp+60h] [rbp-80h]
__m128 v25; // [rsp+70h] [rbp-70h]
__m128 v26; // [rsp+80h] [rbp-60h]
__m128 v27; // [rsp+90h] [rbp-50h]
__m128 v28; // [rsp+A0h] [rbp-40h]
_QWORD v29[6]; // [rsp+B0h] [rbp-30h] BYREF
v21 = a7;
v22 = a8;
v23 = a9;
v24 = a10;
v25 = a11;
v26 = a12;
v27 = a13;
v28 = a14;
v16 = a2;
v17 = a3;
v18 = a4;
v19 = a5;
v20 = a6;
v29[2] = &v15;
v29[1] = &a15;
v29[0] = 0x3000000008LL;
__fprintf_chk(stdout, 1LL, "Bail out! ");
__vfprintf_chk(stdout, 1LL, a1, v29);
emit_endl();
exit(255LL);
}
|
BAIL_OUT:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0xc8
MOV RBX,RDI
LEA RDI,[RBP + -0xe0]
MOV qword ptr [RDI + 0x8],RSI
MOV qword ptr [RDI + 0x10],RDX
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],R8
MOV qword ptr [RDI + 0x28],R9
TEST AL,AL
JZ 0x00117adf
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_00117adf:
LEA R14,[RBP + -0x30]
MOV qword ptr [R14 + 0x10],RDI
LEA RAX,[RBP + 0x10]
MOV qword ptr [R14 + 0x8],RAX
MOV RAX,0x3000000008
MOV qword ptr [R14],RAX
MOV R15,qword ptr [0x0014bfb8]
MOV RDI,qword ptr [R15]
LEA RDX,[0x1386c7]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00113750
MOV RDI,qword ptr [R15]
MOV ESI,0x1
MOV RDX,RBX
MOV RCX,R14
CALL 0x00113150
CALL 0x00118196
MOV EDI,0xff
CALL 0x00113590
|
void BAIL_OUT(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)
{
int *puVar1;
char in_AL;
int1 local_e8 [8];
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;
int8 local_38;
int1 *local_30;
int1 *local_28;
puVar1 = PTR_stdout_0014bfb8;
local_28 = local_e8;
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_30 = &stack0x00000008;
local_38 = 0x3000000008;
local_e0 = param_10;
local_d8 = param_11;
local_d0 = param_12;
local_c8 = param_13;
local_c0 = param_14;
__fprintf_chk(*(int8 *)PTR_stdout_0014bfb8,1,"Bail out! ");
__vfprintf_chk(*(int8 *)puVar1,1,param_9,&local_38);
emit_endl();
/* WARNING: Subroutine does not return */
exit(0xff);
}
|
|
13,364
|
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 0x327d1
leaq 0x298ae6(%rip), %rax # 0x2cb2a0
movq (%rax), %rax
movq 0x168(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x90(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rdi
callq 0xfec40
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_rwlock_unlock:
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_327D1
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+168h]
mov rcx, [rbp+var_8]
mov rdi, [rcx+90h]
call rax
loc_327D1:
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(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 0x001327d1
LEA RAX,[0x3cb2a0]
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_001327d1:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001fec40
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;
}
|
|
13,365
|
stbi_zlib_decode_noheader_malloc
|
7CodeWizard[P]stablediffusion/thirdparty/stb_image.h
|
STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(16384);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer+len;
if (stbi__do_zlib(&a, p, 16384, 1, 0)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
|
O2
|
c
|
stbi_zlib_decode_noheader_malloc:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp # imm = 0x1000
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x4000, %edi # imm = 0x4000
callq 0xa7e0
testq %rax, %rax
je 0xd0d0
movq %rsp, %rdi
movq %r14, (%rdi)
movslq %ebp, %rcx
addq %r14, %rcx
movq %rcx, 0x8(%rdi)
pushq $0x1
popq %rcx
movq %rax, %rsi
movl $0x4000, %edx # imm = 0x4000
xorl %r8d, %r8d
callq 0xc9ef
testl %eax, %eax
je 0xd0c6
testq %rbx, %rbx
je 0xd0de
movl 0x18(%rsp), %ecx
movq 0x20(%rsp), %rax
subl %eax, %ecx
movl %ecx, (%rbx)
jmp 0xd0d2
movq 0x20(%rsp), %rdi
callq 0xa710
xorl %eax, %eax
addq $0x1000, %rsp # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
retq
movq 0x20(%rsp), %rax
jmp 0xd0d2
|
stbi_zlib_decode_noheader_malloc:
push rbp
push r14
push rbx
sub rsp, 1000h
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov edi, 4000h
call _malloc
test rax, rax
jz short loc_D0D0
mov rdi, rsp
mov [rdi], r14
movsxd rcx, ebp
add rcx, r14
mov [rdi+8], rcx
push 1
pop rcx
mov rsi, rax
mov edx, 4000h
xor r8d, r8d
call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int)
test eax, eax
jz short loc_D0C6
test rbx, rbx
jz short loc_D0DE
mov ecx, [rsp+1018h+var_1000]
mov rax, [rsp+1018h+var_FF8]
sub ecx, eax
mov [rbx], ecx
jmp short loc_D0D2
loc_D0C6:
mov rdi, [rsp+1018h+var_FF8]
call _free
loc_D0D0:
xor eax, eax
loc_D0D2:
add rsp, 1000h
pop rbx
pop r14
pop rbp
retn
loc_D0DE:
mov rax, [rsp+1018h+var_FF8]
jmp short loc_D0D2
|
long long stbi_zlib_decode_noheader_malloc(unsigned __int8 *a1, int a2, _DWORD *a3)
{
unsigned __int8 *v4; // rax
long long result; // rax
unsigned __int8 *v6[3]; // [rsp+0h] [rbp-1018h] BYREF
int v7; // [rsp+18h] [rbp-1000h]
long long v8; // [rsp+20h] [rbp-FF8h]
v4 = (unsigned __int8 *)malloc(0x4000LL);
if ( !v4 )
return 0LL;
v6[0] = a1;
v6[1] = &a1[a2];
if ( !(unsigned int)stbi__do_zlib(v6, v4, 0x4000, 1, 0) )
{
free(v8);
return 0LL;
}
result = v8;
if ( a3 )
*a3 = v7 - v8;
return result;
}
|
stbi_zlib_decode_noheader_malloc:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x1000
MOV RBX,RDX
MOV EBP,ESI
MOV R14,RDI
MOV EDI,0x4000
CALL 0x0010a7e0
TEST RAX,RAX
JZ 0x0010d0d0
MOV RDI,RSP
MOV qword ptr [RDI],R14
MOVSXD RCX,EBP
ADD RCX,R14
MOV qword ptr [RDI + 0x8],RCX
PUSH 0x1
POP RCX
MOV RSI,RAX
MOV EDX,0x4000
XOR R8D,R8D
CALL 0x0010c9ef
TEST EAX,EAX
JZ 0x0010d0c6
TEST RBX,RBX
JZ 0x0010d0de
MOV ECX,dword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x20]
SUB ECX,EAX
MOV dword ptr [RBX],ECX
JMP 0x0010d0d2
LAB_0010d0c6:
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0010a710
LAB_0010d0d0:
XOR EAX,EAX
LAB_0010d0d2:
ADD RSP,0x1000
POP RBX
POP R14
POP RBP
RET
LAB_0010d0de:
MOV RAX,qword ptr [RSP + 0x20]
JMP 0x0010d0d2
|
void * stbi_zlib_decode_noheader_malloc(long param_1,int param_2,int *param_3)
{
int iVar1;
char *pcVar2;
long local_1018;
long local_1010;
int local_1000;
void *local_ff8;
pcVar2 = (char *)malloc(0x4000);
if (pcVar2 != (char *)0x0) {
local_1010 = param_2 + param_1;
local_1018 = param_1;
iVar1 = stbi__do_zlib((stbi__zbuf *)&local_1018,pcVar2,0x4000,1,0);
if (iVar1 != 0) {
if (param_3 == (int *)0x0) {
return local_ff8;
}
*param_3 = local_1000 - (int)local_ff8;
return local_ff8;
}
free(local_ff8);
}
return (void *)0x0;
}
|
|
13,366
|
stbi_zlib_decode_noheader_malloc
|
7CodeWizard[P]stablediffusion/thirdparty/stb_image.h
|
STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(16384);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer+len;
if (stbi__do_zlib(&a, p, 16384, 1, 0)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
|
O3
|
c
|
stbi_zlib_decode_noheader_malloc:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp # imm = 0x1000
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x4000, %edi # imm = 0x4000
callq 0xa7b0
testq %rax, %rax
je 0x1b58c
movq %rsp, %rdi
movq %r14, (%rdi)
movslq %ebp, %rcx
addq %r14, %rcx
movq %rcx, 0x8(%rdi)
movq %rax, %rsi
movl $0x4000, %edx # imm = 0x4000
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x1aa57
testl %eax, %eax
je 0x1b582
testq %rbx, %rbx
je 0x1b59a
movl 0x18(%rsp), %ecx
movq 0x20(%rsp), %rax
subl %eax, %ecx
movl %ecx, (%rbx)
jmp 0x1b58e
movq 0x20(%rsp), %rdi
callq 0xa6f0
xorl %eax, %eax
addq $0x1000, %rsp # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
retq
movq 0x20(%rsp), %rax
jmp 0x1b58e
|
stbi_zlib_decode_noheader_malloc:
push rbp
push r14
push rbx
sub rsp, 1000h
mov rbx, rdx
mov ebp, esi
mov r14, rdi
mov edi, 4000h
call _malloc
test rax, rax
jz short loc_1B58C
mov rdi, rsp
mov [rdi], r14
movsxd rcx, ebp
add rcx, r14
mov [rdi+8], rcx
mov rsi, rax
mov edx, 4000h
mov ecx, 1
xor r8d, r8d
call _ZL13stbi__do_zlibP10stbi__zbufPciii; stbi__do_zlib(stbi__zbuf *,char *,int,int,int)
test eax, eax
jz short loc_1B582
test rbx, rbx
jz short loc_1B59A
mov ecx, [rsp+1018h+var_1000]
mov rax, [rsp+1018h+var_FF8]
sub ecx, eax
mov [rbx], ecx
jmp short loc_1B58E
loc_1B582:
mov rdi, [rsp+1018h+var_FF8]
call _free
loc_1B58C:
xor eax, eax
loc_1B58E:
add rsp, 1000h
pop rbx
pop r14
pop rbp
retn
loc_1B59A:
mov rax, [rsp+1018h+var_FF8]
jmp short loc_1B58E
|
long long stbi_zlib_decode_noheader_malloc(unsigned __int8 *a1, int a2, _DWORD *a3)
{
unsigned __int8 *v4; // rax
long long result; // rax
unsigned __int8 *v6[3]; // [rsp+0h] [rbp-1018h] BYREF
int v7; // [rsp+18h] [rbp-1000h]
long long v8; // [rsp+20h] [rbp-FF8h]
v4 = (unsigned __int8 *)malloc(0x4000LL);
if ( !v4 )
return 0LL;
v6[0] = a1;
v6[1] = &a1[a2];
if ( !(unsigned int)stbi__do_zlib(v6, v4, 0x4000, 1, 0) )
{
free(v8);
return 0LL;
}
result = v8;
if ( a3 )
*a3 = v7 - v8;
return result;
}
| |||
13,367
|
js_agent_getReport
|
bluesky950520[P]quickjs/run-test262.c
|
static JSValue js_agent_getReport(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
ThreadLocalStorage *tls = JS_GetRuntimeOpaque(JS_GetRuntime(ctx));
AgentReport *rep;
JSValue ret;
js_mutex_lock(&tls->report_mutex);
if (list_empty(&tls->report_list)) {
rep = NULL;
} else {
rep = list_entry(tls->report_list.next, AgentReport, link);
list_del(&rep->link);
}
js_mutex_unlock(&tls->report_mutex);
if (rep) {
ret = JS_NewString(ctx, rep->str);
free(rep->str);
free(rep);
} else {
ret = JS_NULL;
}
return ret;
}
|
O0
|
c
|
js_agent_getReport:
subq $0x68, %rsp
movq %rsi, 0x48(%rsp)
movq %rdx, 0x50(%rsp)
movq %rdi, 0x40(%rsp)
movl %ecx, 0x3c(%rsp)
movq %r8, 0x30(%rsp)
movq 0x40(%rsp), %rdi
callq 0x2e1f0
movq %rax, %rdi
callq 0x299e0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
addq $0x68, %rdi
callq 0x27220
movq 0x28(%rsp), %rdi
addq $0x90, %rdi
callq 0x15f70
cmpl $0x0, %eax
je 0x152b2
movq $0x0, 0x20(%rsp)
jmp 0x152cd
movq 0x28(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
callq 0x15f90
movq 0x28(%rsp), %rdi
addq $0x68, %rdi
callq 0x27240
cmpq $0x0, 0x20(%rsp)
je 0x1532e
movq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x15ff0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xe060
movq 0x20(%rsp), %rdi
callq 0xe060
jmp 0x15351
movl $0x0, (%rsp)
movq $0x2, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rax
movq 0x60(%rsp), %rdx
addq $0x68, %rsp
retq
|
js_agent_getReport:
sub rsp, 68h
mov [rsp+68h+var_20], rsi
mov [rsp+68h+var_18], rdx
mov [rsp+68h+var_28], rdi
mov [rsp+68h+var_2C], ecx
mov [rsp+68h+var_38], r8
mov rdi, [rsp+68h+var_28]
call JS_GetRuntime
mov rdi, rax
call JS_GetRuntimeOpaque
mov [rsp+68h+var_40], rax
mov rdi, [rsp+68h+var_40]
add rdi, 68h ; 'h'
call js_mutex_lock
mov rdi, [rsp+68h+var_40]
add rdi, 90h
call list_empty
cmp eax, 0
jz short loc_152B2
mov [rsp+68h+var_48], 0
jmp short loc_152CD
loc_152B2:
mov rax, [rsp+68h+var_40]
mov rax, [rax+98h]
mov [rsp+68h+var_48], rax
mov rdi, [rsp+68h+var_48]
call list_del
loc_152CD:
mov rdi, [rsp+68h+var_40]
add rdi, 68h ; 'h'
call js_mutex_unlock
cmp [rsp+68h+var_48], 0
jz short loc_1532E
mov rdi, [rsp+68h+var_28]
mov rax, [rsp+68h+var_48]
mov rsi, [rax+10h]
call JS_NewString
mov [rsp+68h+var_58], rax
mov [rsp+68h+var_50], rdx
mov rax, [rsp+68h+var_58]
mov [rsp+68h+var_10], rax
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_8], rax
mov rax, [rsp+68h+var_48]
mov rdi, [rax+10h]
call _free
mov rdi, [rsp+68h+var_48]
call _free
jmp short loc_15351
loc_1532E:
mov dword ptr [rsp+68h+var_68], 0
mov [rsp+68h+var_60], 2
mov rax, [rsp+68h+var_68]
mov [rsp+68h+var_10], rax
mov rax, [rsp+68h+var_60]
mov [rsp+68h+var_8], rax
loc_15351:
mov rax, [rsp+68h+var_10]
mov rdx, [rsp+68h+var_8]
add rsp, 68h
retn
|
long long js_agent_getReport(long long a1, long long a2)
{
long long Runtime; // rax
long long v3; // rdx
long long v5; // [rsp+0h] [rbp-68h]
long long v6; // [rsp+20h] [rbp-48h]
long long RuntimeOpaque; // [rsp+28h] [rbp-40h]
long long v8; // [rsp+58h] [rbp-10h]
Runtime = JS_GetRuntime(a1);
RuntimeOpaque = JS_GetRuntimeOpaque(Runtime);
js_mutex_lock(RuntimeOpaque + 104);
if ( (unsigned int)list_empty(RuntimeOpaque + 144) )
{
v6 = 0LL;
}
else
{
v6 = *(_QWORD *)(RuntimeOpaque + 152);
list_del(v6);
}
js_mutex_unlock(RuntimeOpaque + 104, a2, v3);
if ( v6 )
{
v8 = JS_NewString(a1, *(_QWORD *)(v6 + 16));
free(*(_QWORD *)(v6 + 16));
free(v6);
}
else
{
LODWORD(v5) = 0;
return v5;
}
return v8;
}
|
js_agent_getReport:
SUB RSP,0x68
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x40],RDI
MOV dword ptr [RSP + 0x3c],ECX
MOV qword ptr [RSP + 0x30],R8
MOV RDI,qword ptr [RSP + 0x40]
CALL 0x0012e1f0
MOV RDI,RAX
CALL 0x001299e0
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x68
CALL 0x00127220
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x90
CALL 0x00115f70
CMP EAX,0x0
JZ 0x001152b2
MOV qword ptr [RSP + 0x20],0x0
JMP 0x001152cd
LAB_001152b2:
MOV RAX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RAX + 0x98]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x00115f90
LAB_001152cd:
MOV RDI,qword ptr [RSP + 0x28]
ADD RDI,0x68
CALL 0x00127240
CMP qword ptr [RSP + 0x20],0x0
JZ 0x0011532e
MOV RDI,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RSP + 0x20]
MOV RSI,qword ptr [RAX + 0x10]
CALL 0x00115ff0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x0010e060
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0010e060
JMP 0x00115351
LAB_0011532e:
MOV dword ptr [RSP],0x0
MOV qword ptr [RSP + 0x8],0x2
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x60],RAX
LAB_00115351:
MOV RAX,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
ADD RSP,0x68
RET
|
int1 [16] js_agent_getReport(int8 param_1)
{
int iVar1;
int8 uVar2;
long lVar3;
int1 auVar4 [16];
uint uStack_64;
void *local_48;
uVar2 = JS_GetRuntime(param_1);
lVar3 = JS_GetRuntimeOpaque(uVar2);
js_mutex_lock(lVar3 + 0x68);
iVar1 = list_empty(lVar3 + 0x90);
if (iVar1 == 0) {
local_48 = *(void **)(lVar3 + 0x98);
list_del(local_48);
}
else {
local_48 = (void *)0x0;
}
js_mutex_unlock(lVar3 + 0x68);
if (local_48 == (void *)0x0) {
auVar4._8_8_ = 2;
auVar4._0_8_ = (ulong)uStack_64 << 0x20;
}
else {
auVar4 = JS_NewString(param_1,*(int8 *)((long)local_48 + 0x10));
free(*(void **)((long)local_48 + 0x10));
free(local_48);
}
return auVar4;
}
|
|
13,368
|
Cache::getByte(unsigned int, unsigned int*)
|
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
|
uint8_t Cache::getByte(uint32_t addr, uint32_t *cycles) {
this->referenceCounter++;
this->statistics.numRead++;
// If in cache, return directly
int blockId;
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->statistics.numHit++;
this->statistics.totalCycles += this->policy.hitLatency;
this->blocks[blockId].lastReference = this->referenceCounter;
if (cycles) *cycles = this->policy.hitLatency;
return this->blocks[blockId].data[offset];
}
// Else, find the data in memory or other level of cache
this->statistics.numMiss++;
this->statistics.totalCycles += this->policy.missLatency;
this->loadBlockFromLowerLevel(addr, cycles);
// The block is in top level cache now, return directly
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->blocks[blockId].lastReference = this->referenceCounter;
return this->blocks[blockId].data[offset];
} else {
fprintf(stderr, "Error: data not in top level cache!\n");
exit(-1);
}
}
|
O0
|
cpp
|
Cache::getByte(unsigned int, unsigned int*):
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movl %esi, 0x34(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl 0x20(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x20(%rdi)
movl 0x8(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x8(%rdi)
movl 0x34(%rsp), %esi
callq 0x45a0
movl %eax, 0x24(%rsp)
cmpl $-0x1, %eax
je 0x4852
movq 0x10(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x4920
movq 0x10(%rsp), %rdi
movl %eax, 0x20(%rsp)
movl 0x10(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x10(%rdi)
movl 0x48(%rdi), %eax
addq 0x18(%rdi), %rax
movq %rax, 0x18(%rdi)
movl 0x20(%rdi), %eax
movl %eax, 0xc(%rsp)
addq $0x50, %rdi
movslq 0x24(%rsp), %rsi
callq 0x5620
movl 0xc(%rsp), %ecx
movl %ecx, 0x10(%rax)
cmpq $0x0, 0x28(%rsp)
je 0x4822
movq 0x10(%rsp), %rax
movl 0x48(%rax), %ecx
movq 0x28(%rsp), %rax
movl %ecx, (%rax)
movq 0x10(%rsp), %rdi
addq $0x50, %rdi
movslq 0x24(%rsp), %rsi
callq 0x5620
movq %rax, %rdi
addq $0x18, %rdi
movl 0x20(%rsp), %eax
movl %eax, %esi
callq 0x5640
movb (%rax), %al
movb %al, 0x47(%rsp)
jmp 0x4912
movq 0x10(%rsp), %rdi
movl 0x14(%rdi), %eax
addl $0x1, %eax
movl %eax, 0x14(%rdi)
movl 0x4c(%rdi), %eax
addq 0x18(%rdi), %rax
movq %rax, 0x18(%rdi)
movl 0x34(%rsp), %esi
movq 0x28(%rsp), %rdx
callq 0x4960
movq 0x10(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x45a0
movl %eax, 0x24(%rsp)
cmpl $-0x1, %eax
je 0x48f0
movq 0x10(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x4920
movq 0x10(%rsp), %rdi
movl %eax, 0x1c(%rsp)
movl 0x20(%rdi), %eax
movl %eax, 0x8(%rsp)
addq $0x50, %rdi
movslq 0x24(%rsp), %rsi
callq 0x5620
movl 0x8(%rsp), %ecx
movq 0x10(%rsp), %rdi
movl %ecx, 0x10(%rax)
addq $0x50, %rdi
movslq 0x24(%rsp), %rsi
callq 0x5620
movq %rax, %rdi
addq $0x18, %rdi
movl 0x1c(%rsp), %eax
movl %eax, %esi
callq 0x5640
movb (%rax), %al
movb %al, 0x47(%rsp)
jmp 0x4912
movq 0x76e1(%rip), %rax # 0xbfd8
movq (%rax), %rdi
leaq 0x3999(%rip), %rsi # 0x829a
movb $0x0, %al
callq 0x2240
movl $0xffffffff, %edi # imm = 0xFFFFFFFF
callq 0x21b0
movb 0x47(%rsp), %al
addq $0x48, %rsp
retq
nopl (%rax,%rax)
|
_ZN5Cache7getByteEjPj:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_14], esi
mov [rsp+48h+var_20], rdx
mov rdi, [rsp+48h+var_10]; this
mov [rsp+48h+var_38], rdi
mov eax, [rdi+20h]
add eax, 1
mov [rdi+20h], eax
mov eax, [rdi+8]
add eax, 1
mov [rdi+8], eax
mov esi, [rsp+48h+var_14]; unsigned int
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
mov [rsp+48h+var_24], eax
cmp eax, 0FFFFFFFFh
jz loc_4852
mov rdi, [rsp+48h+var_38]; this
mov esi, [rsp+48h+var_14]; unsigned int
call _ZN5Cache9getOffsetEj; Cache::getOffset(uint)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_28], eax
mov eax, [rdi+10h]
add eax, 1
mov [rdi+10h], eax
mov eax, [rdi+48h]
add rax, [rdi+18h]
mov [rdi+18h], rax
mov eax, [rdi+20h]
mov [rsp+48h+var_3C], eax
add rdi, 50h ; 'P'
movsxd rsi, [rsp+48h+var_24]
call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong)
mov ecx, [rsp+48h+var_3C]
mov [rax+10h], ecx
cmp [rsp+48h+var_20], 0
jz short loc_4822
mov rax, [rsp+48h+var_38]
mov ecx, [rax+48h]
mov rax, [rsp+48h+var_20]
mov [rax], ecx
loc_4822:
mov rdi, [rsp+48h+var_38]
add rdi, 50h ; 'P'
movsxd rsi, [rsp+48h+var_24]
call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong)
mov rdi, rax
add rdi, 18h
mov eax, [rsp+48h+var_28]
mov esi, eax
call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong)
mov al, [rax]
mov [rsp+48h+var_1], al
jmp loc_4912
loc_4852:
mov rdi, [rsp+48h+var_38]; this
mov eax, [rdi+14h]
add eax, 1
mov [rdi+14h], eax
mov eax, [rdi+4Ch]
add rax, [rdi+18h]
mov [rdi+18h], rax
mov esi, [rsp+48h+var_14]; unsigned int
mov rdx, [rsp+48h+var_20]; unsigned int *
call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *)
mov rdi, [rsp+48h+var_38]; this
mov esi, [rsp+48h+var_14]; unsigned int
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
mov [rsp+48h+var_24], eax
cmp eax, 0FFFFFFFFh
jz short loc_48F0
mov rdi, [rsp+48h+var_38]; this
mov esi, [rsp+48h+var_14]; unsigned int
call _ZN5Cache9getOffsetEj; Cache::getOffset(uint)
mov rdi, [rsp+48h+var_38]
mov [rsp+48h+var_2C], eax
mov eax, [rdi+20h]
mov [rsp+48h+var_40], eax
add rdi, 50h ; 'P'
movsxd rsi, [rsp+48h+var_24]
call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong)
mov ecx, [rsp+48h+var_40]
mov rdi, [rsp+48h+var_38]
mov [rax+10h], ecx
add rdi, 50h ; 'P'
movsxd rsi, [rsp+48h+var_24]
call _ZNSt6vectorIN5Cache5BlockESaIS1_EEixEm; std::vector<Cache::Block>::operator[](ulong)
mov rdi, rax
add rdi, 18h
mov eax, [rsp+48h+var_2C]
mov esi, eax
call _ZNSt6vectorIhSaIhEEixEm; std::vector<uchar>::operator[](ulong)
mov al, [rax]
mov [rsp+48h+var_1], al
jmp short loc_4912
loc_48F0:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aErrorDataNotIn; "Error: data not in top level cache!\n"
mov al, 0
call _fprintf
mov edi, 0FFFFFFFFh
call _exit
loc_4912:
mov al, [rsp+48h+var_1]
add rsp, 48h
retn
|
char Cache::getByte(Cache *this, unsigned int a2, unsigned int *a3)
{
long long v3; // rax
long long v4; // rax
int v6; // [rsp+8h] [rbp-40h]
int v7; // [rsp+Ch] [rbp-3Ch]
unsigned int Offset; // [rsp+1Ch] [rbp-2Ch]
unsigned int v9; // [rsp+20h] [rbp-28h]
int BlockId; // [rsp+24h] [rbp-24h]
int v11; // [rsp+24h] [rbp-24h]
++*((_DWORD *)this + 8);
++*((_DWORD *)this + 2);
BlockId = Cache::getBlockId(this, a2);
if ( BlockId == -1 )
{
++*((_DWORD *)this + 5);
*((_QWORD *)this + 3) += *((unsigned int *)this + 19);
Cache::loadBlockFromLowerLevel(this, a2, a3);
v11 = Cache::getBlockId(this, a2);
if ( v11 == -1 )
{
fprintf(stderr, "Error: data not in top level cache!\n");
exit(0xFFFFFFFFLL);
}
Offset = Cache::getOffset(this, a2);
v6 = *((_DWORD *)this + 8);
*(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 80, v11) + 16) = v6;
v4 = std::vector<Cache::Block>::operator[]((char *)this + 80, v11);
return *(_BYTE *)std::vector<unsigned char>::operator[](v4 + 24, Offset);
}
else
{
v9 = Cache::getOffset(this, a2);
++*((_DWORD *)this + 4);
*((_QWORD *)this + 3) += *((unsigned int *)this + 18);
v7 = *((_DWORD *)this + 8);
*(_DWORD *)(std::vector<Cache::Block>::operator[]((char *)this + 80, BlockId) + 16) = v7;
if ( a3 )
*a3 = *((_DWORD *)this + 18);
v3 = std::vector<Cache::Block>::operator[]((char *)this + 80, BlockId);
return *(_BYTE *)std::vector<unsigned char>::operator[](v3 + 24, v9);
}
}
|
getByte:
SUB RSP,0x48
MOV qword ptr [RSP + 0x38],RDI
MOV dword ptr [RSP + 0x34],ESI
MOV qword ptr [RSP + 0x28],RDX
MOV RDI,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RDI
MOV EAX,dword ptr [RDI + 0x20]
ADD EAX,0x1
MOV dword ptr [RDI + 0x20],EAX
MOV EAX,dword ptr [RDI + 0x8]
ADD EAX,0x1
MOV dword ptr [RDI + 0x8],EAX
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x001045a0
MOV dword ptr [RSP + 0x24],EAX
CMP EAX,-0x1
JZ 0x00104852
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x00104920
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x20],EAX
MOV EAX,dword ptr [RDI + 0x10]
ADD EAX,0x1
MOV dword ptr [RDI + 0x10],EAX
MOV EAX,dword ptr [RDI + 0x48]
ADD RAX,qword ptr [RDI + 0x18]
MOV qword ptr [RDI + 0x18],RAX
MOV EAX,dword ptr [RDI + 0x20]
MOV dword ptr [RSP + 0xc],EAX
ADD RDI,0x50
MOVSXD RSI,dword ptr [RSP + 0x24]
CALL 0x00105620
MOV ECX,dword ptr [RSP + 0xc]
MOV dword ptr [RAX + 0x10],ECX
CMP qword ptr [RSP + 0x28],0x0
JZ 0x00104822
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x48]
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX],ECX
LAB_00104822:
MOV RDI,qword ptr [RSP + 0x10]
ADD RDI,0x50
MOVSXD RSI,dword ptr [RSP + 0x24]
CALL 0x00105620
MOV RDI,RAX
ADD RDI,0x18
MOV EAX,dword ptr [RSP + 0x20]
MOV ESI,EAX
CALL 0x00105640
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0x47],AL
JMP 0x00104912
LAB_00104852:
MOV RDI,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RDI + 0x14]
ADD EAX,0x1
MOV dword ptr [RDI + 0x14],EAX
MOV EAX,dword ptr [RDI + 0x4c]
ADD RAX,qword ptr [RDI + 0x18]
MOV qword ptr [RDI + 0x18],RAX
MOV ESI,dword ptr [RSP + 0x34]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x00104960
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x001045a0
MOV dword ptr [RSP + 0x24],EAX
CMP EAX,-0x1
JZ 0x001048f0
MOV RDI,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RSP + 0x34]
CALL 0x00104920
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RSP + 0x1c],EAX
MOV EAX,dword ptr [RDI + 0x20]
MOV dword ptr [RSP + 0x8],EAX
ADD RDI,0x50
MOVSXD RSI,dword ptr [RSP + 0x24]
CALL 0x00105620
MOV ECX,dword ptr [RSP + 0x8]
MOV RDI,qword ptr [RSP + 0x10]
MOV dword ptr [RAX + 0x10],ECX
ADD RDI,0x50
MOVSXD RSI,dword ptr [RSP + 0x24]
CALL 0x00105620
MOV RDI,RAX
ADD RDI,0x18
MOV EAX,dword ptr [RSP + 0x1c]
MOV ESI,EAX
CALL 0x00105640
MOV AL,byte ptr [RAX]
MOV byte ptr [RSP + 0x47],AL
JMP 0x00104912
LAB_001048f0:
MOV RAX,qword ptr [0x0010bfd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x10829a]
MOV AL,0x0
CALL 0x00102240
MOV EDI,0xffffffff
CALL 0x001021b0
LAB_00104912:
MOV AL,byte ptr [RSP + 0x47]
ADD RSP,0x48
RET
|
/* Cache::getByte(unsigned int, unsigned int*) */
int8 __thiscall Cache::getByte(Cache *this,uint param_1,uint *param_2)
{
int4 uVar1;
int iVar2;
uint uVar3;
long lVar4;
int1 *puVar5;
int7 uVar6;
int1 local_1;
*(int *)(this + 0x20) = *(int *)(this + 0x20) + 1;
*(int *)(this + 8) = *(int *)(this + 8) + 1;
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
*(ulong *)(this + 0x18) = (ulong)*(uint *)(this + 0x4c) + *(long *)(this + 0x18);
loadBlockFromLowerLevel(this,param_1,param_2);
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
fprintf(*(FILE **)PTR_stderr_0010bfd8,"Error: data not in top level cache!\n");
/* WARNING: Subroutine does not return */
exit(-1);
}
uVar3 = getOffset(this,param_1);
uVar1 = *(int4 *)(this + 0x20);
lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[]
((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50),
(long)iVar2);
*(int4 *)(lVar4 + 0x10) = uVar1;
lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[]
((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50),
(long)iVar2);
puVar5 = (int1 *)
std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[]
((vector<unsigned_char,std::allocator<unsigned_char>> *)(lVar4 + 0x18),
(ulong)uVar3);
local_1 = *puVar5;
uVar6 = (int7)((ulong)puVar5 >> 8);
}
else {
uVar3 = getOffset(this,param_1);
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
*(ulong *)(this + 0x18) = (ulong)*(uint *)(this + 0x48) + *(long *)(this + 0x18);
uVar1 = *(int4 *)(this + 0x20);
lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[]
((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50),
(long)iVar2);
*(int4 *)(lVar4 + 0x10) = uVar1;
if (param_2 != (uint *)0x0) {
*param_2 = *(uint *)(this + 0x48);
}
lVar4 = std::vector<Cache::Block,std::allocator<Cache::Block>>::operator[]
((vector<Cache::Block,std::allocator<Cache::Block>> *)(this + 0x50),
(long)iVar2);
puVar5 = (int1 *)
std::vector<unsigned_char,std::allocator<unsigned_char>>::operator[]
((vector<unsigned_char,std::allocator<unsigned_char>> *)(lVar4 + 0x18),
(ulong)uVar3);
local_1 = *puVar5;
uVar6 = (int7)((ulong)puVar5 >> 8);
}
return CONCAT71(uVar6,local_1);
}
|
|
13,369
|
Cache::getByte(unsigned int, unsigned int*)
|
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
|
uint8_t Cache::getByte(uint32_t addr, uint32_t *cycles) {
this->referenceCounter++;
this->statistics.numRead++;
// If in cache, return directly
int blockId;
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->statistics.numHit++;
this->statistics.totalCycles += this->policy.hitLatency;
this->blocks[blockId].lastReference = this->referenceCounter;
if (cycles) *cycles = this->policy.hitLatency;
return this->blocks[blockId].data[offset];
}
// Else, find the data in memory or other level of cache
this->statistics.numMiss++;
this->statistics.totalCycles += this->policy.missLatency;
this->loadBlockFromLowerLevel(addr, cycles);
// The block is in top level cache now, return directly
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->blocks[blockId].lastReference = this->referenceCounter;
return this->blocks[blockId].data[offset];
} else {
fprintf(stderr, "Error: data not in top level cache!\n");
exit(-1);
}
}
|
O1
|
cpp
|
Cache::getByte(unsigned int, unsigned int*):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %r14
incl 0x20(%rdi)
movl %esi, %ebx
incl 0x8(%rdi)
callq 0x3866
cmpl $-0x1, %eax
je 0x39f6
movl 0x3c(%r14), %edx
testl %edx, %edx
je 0x3a47
xorl %ecx, %ecx
cmpl $0x1, %edx
je 0x3a4c
cmpl $0x2, %edx
jb 0x3a4c
xorl %ecx, %ecx
movl %edx, %esi
shrl %esi
incl %ecx
cmpl $0x3, %edx
movl %esi, %edx
ja 0x39e9
jmp 0x3a4c
incl 0x14(%r14)
movl 0x4c(%r14), %eax
addq %rax, 0x18(%r14)
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x3aee
movq %r14, %rdi
movl %ebx, %esi
callq 0x3866
cmpl $-0x1, %eax
je 0x3ab4
movl 0x3c(%r14), %edx
testl %edx, %edx
je 0x3a7d
xorl %ecx, %ecx
cmpl $0x1, %edx
je 0x3a82
cmpl $0x2, %edx
jb 0x3a82
xorl %ecx, %ecx
movl %edx, %esi
shrl %esi
incl %ecx
cmpl $0x3, %edx
movl %esi, %edx
ja 0x3a3a
jmp 0x3a82
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
incl 0x10(%r14)
movl 0x20(%r14), %esi
movl 0x48(%r14), %edx
addq %rdx, 0x18(%r14)
cltq
movq 0x50(%r14), %rdi
leaq (%rax,%rax,2), %r8
shlq $0x4, %r8
leaq (%rdi,%r8), %rax
movl %esi, 0x10(%rdi,%r8)
testq %r15, %r15
je 0x3a9c
movl %edx, (%r15)
jmp 0x3a9c
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl 0x20(%r14), %edx
cltq
movq 0x50(%r14), %rsi
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
leaq (%rsi,%rdi), %rax
movl %edx, 0x10(%rsi,%rdi)
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
shll %cl, %edx
notl %edx
andl %ebx, %edx
movq 0x18(%rax), %rax
movb (%rax,%rdx), %al
popq %rbx
popq %r14
popq %r15
retq
callq 0x2401
nop
|
_ZN5Cache7getByteEjPj:
push r15
push r14
push rbx
mov r15, rdx
mov r14, rdi
inc dword ptr [rdi+20h]
mov ebx, esi
inc dword ptr [rdi+8]
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
cmp eax, 0FFFFFFFFh
jz short loc_39F6
mov edx, [r14+3Ch]
test edx, edx
jz short loc_3A47
xor ecx, ecx
cmp edx, 1
jz short loc_3A4C
cmp edx, 2
jb short loc_3A4C
xor ecx, ecx
mov esi, edx
loc_39E9:
shr esi, 1
inc ecx
cmp edx, 3
mov edx, esi
ja short loc_39E9
jmp short loc_3A4C
loc_39F6:
inc dword ptr [r14+14h]
mov eax, [r14+4Ch]
add [r14+18h], rax
mov rdi, r14; this
mov esi, ebx; unsigned int
mov rdx, r15; unsigned int *
call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *)
mov rdi, r14; this
mov esi, ebx; unsigned int
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
cmp eax, 0FFFFFFFFh
jz loc_3AB4
mov edx, [r14+3Ch]
test edx, edx
jz short loc_3A7D
xor ecx, ecx
cmp edx, 1
jz short loc_3A82
cmp edx, 2
jb short loc_3A82
xor ecx, ecx
mov esi, edx
loc_3A3A:
shr esi, 1
inc ecx
cmp edx, 3
mov edx, esi
ja short loc_3A3A
jmp short loc_3A82
loc_3A47:
mov ecx, 0FFFFFFFFh
loc_3A4C:
inc dword ptr [r14+10h]
mov esi, [r14+20h]
mov edx, [r14+48h]
add [r14+18h], rdx
cdqe
mov rdi, [r14+50h]
lea r8, [rax+rax*2]
shl r8, 4
lea rax, [rdi+r8]
mov [rdi+r8+10h], esi
test r15, r15
jz short loc_3A9C
mov [r15], edx
jmp short loc_3A9C
loc_3A7D:
mov ecx, 0FFFFFFFFh
loc_3A82:
mov edx, [r14+20h]
cdqe
mov rsi, [r14+50h]
lea rdi, [rax+rax*2]
shl rdi, 4
lea rax, [rsi+rdi]
mov [rsi+rdi+10h], edx
loc_3A9C:
mov edx, 0FFFFFFFFh
shl edx, cl
not edx
and edx, ebx
mov rax, [rax+18h]
mov al, [rax+rdx]
pop rbx
pop r14
pop r15
retn
loc_3AB4:
call _ZN5Cache7getByteEjPj_cold_1; Cache::getByte(uint,uint *) [clone]
|
char Cache::getByte(Cache *this, unsigned int a2, unsigned int *a3)
{
int BlockId; // eax
unsigned int v6; // edx
char v7; // cl
unsigned int v8; // esi
bool v9; // cc
int v10; // eax
unsigned int v11; // edx
unsigned int v12; // esi
int v13; // esi
long long v14; // rdx
long long v15; // rax
++*((_DWORD *)this + 8);
++*((_DWORD *)this + 2);
BlockId = Cache::getBlockId(this, a2);
if ( BlockId == -1 )
{
++*((_DWORD *)this + 5);
*((_QWORD *)this + 3) += *((unsigned int *)this + 19);
Cache::loadBlockFromLowerLevel(this, a2, a3);
v10 = Cache::getBlockId(this, a2);
if ( v10 == -1 )
Cache::getByte();
v11 = *((_DWORD *)this + 15);
if ( v11 )
{
v7 = 0;
if ( v11 != 1 )
{
v7 = 0;
v12 = *((_DWORD *)this + 15);
do
{
v12 >>= 1;
++v7;
v9 = v11 <= 3;
v11 = v12;
}
while ( !v9 );
}
}
else
{
v7 = -1;
}
v15 = *((_QWORD *)this + 10) + 48LL * v10;
*(_DWORD *)(v15 + 16) = *((_DWORD *)this + 8);
}
else
{
v6 = *((_DWORD *)this + 15);
if ( v6 )
{
v7 = 0;
if ( v6 != 1 )
{
v7 = 0;
v8 = *((_DWORD *)this + 15);
do
{
v8 >>= 1;
++v7;
v9 = v6 <= 3;
v6 = v8;
}
while ( !v9 );
}
}
else
{
v7 = -1;
}
++*((_DWORD *)this + 4);
v13 = *((_DWORD *)this + 8);
v14 = *((unsigned int *)this + 18);
*((_QWORD *)this + 3) += v14;
v15 = *((_QWORD *)this + 10) + 48LL * BlockId;
*(_DWORD *)(v15 + 16) = v13;
if ( a3 )
*a3 = v14;
}
return *(_BYTE *)(*(_QWORD *)(v15 + 24) + (a2 & ~(-1 << v7)));
}
|
getByte:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RDX
MOV R14,RDI
INC dword ptr [RDI + 0x20]
MOV EBX,ESI
INC dword ptr [RDI + 0x8]
CALL 0x00103866
CMP EAX,-0x1
JZ 0x001039f6
MOV EDX,dword ptr [R14 + 0x3c]
TEST EDX,EDX
JZ 0x00103a47
XOR ECX,ECX
CMP EDX,0x1
JZ 0x00103a4c
CMP EDX,0x2
JC 0x00103a4c
XOR ECX,ECX
MOV ESI,EDX
LAB_001039e9:
SHR ESI,0x1
INC ECX
CMP EDX,0x3
MOV EDX,ESI
JA 0x001039e9
JMP 0x00103a4c
LAB_001039f6:
INC dword ptr [R14 + 0x14]
MOV EAX,dword ptr [R14 + 0x4c]
ADD qword ptr [R14 + 0x18],RAX
MOV RDI,R14
MOV ESI,EBX
MOV RDX,R15
CALL 0x00103aee
MOV RDI,R14
MOV ESI,EBX
CALL 0x00103866
CMP EAX,-0x1
JZ 0x00103ab4
MOV EDX,dword ptr [R14 + 0x3c]
TEST EDX,EDX
JZ 0x00103a7d
XOR ECX,ECX
CMP EDX,0x1
JZ 0x00103a82
CMP EDX,0x2
JC 0x00103a82
XOR ECX,ECX
MOV ESI,EDX
LAB_00103a3a:
SHR ESI,0x1
INC ECX
CMP EDX,0x3
MOV EDX,ESI
JA 0x00103a3a
JMP 0x00103a82
LAB_00103a47:
MOV ECX,0xffffffff
LAB_00103a4c:
INC dword ptr [R14 + 0x10]
MOV ESI,dword ptr [R14 + 0x20]
MOV EDX,dword ptr [R14 + 0x48]
ADD qword ptr [R14 + 0x18],RDX
CDQE
MOV RDI,qword ptr [R14 + 0x50]
LEA R8,[RAX + RAX*0x2]
SHL R8,0x4
LEA RAX,[RDI + R8*0x1]
MOV dword ptr [RDI + R8*0x1 + 0x10],ESI
TEST R15,R15
JZ 0x00103a9c
MOV dword ptr [R15],EDX
JMP 0x00103a9c
LAB_00103a7d:
MOV ECX,0xffffffff
LAB_00103a82:
MOV EDX,dword ptr [R14 + 0x20]
CDQE
MOV RSI,qword ptr [R14 + 0x50]
LEA RDI,[RAX + RAX*0x2]
SHL RDI,0x4
LEA RAX,[RSI + RDI*0x1]
MOV dword ptr [RSI + RDI*0x1 + 0x10],EDX
LAB_00103a9c:
MOV EDX,0xffffffff
SHL EDX,CL
NOT EDX
AND EDX,EBX
MOV RAX,qword ptr [RAX + 0x18]
MOV AL,byte ptr [RAX + RDX*0x1]
POP RBX
POP R14
POP R15
RET
LAB_00103ab4:
CALL 0x00102401
NOP
|
/* Cache::getByte(unsigned int, unsigned int*) */
ulong __thiscall Cache::getByte(Cache *this,uint param_1,uint *param_2)
{
bool bVar1;
int iVar2;
long lVar3;
byte bVar4;
uint uVar5;
uint *puVar6;
Cache *pCVar7;
*(int *)(this + 0x20) = *(int *)(this + 0x20) + 1;
puVar6 = (uint *)(ulong)param_1;
*(int *)(this + 8) = *(int *)(this + 8) + 1;
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)*(uint *)(this + 0x4c);
loadBlockFromLowerLevel(this,param_1,param_2);
pCVar7 = this;
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
getByte((uint)pCVar7,puVar6);
uVar5 = *(uint *)(pCVar7 + 0x3c);
bVar4 = 0xff;
if (uVar5 != 0) {
bVar4 = 0;
if ((uVar5 != 1) && (bVar4 = 0, 1 < uVar5)) {
bVar4 = 0;
do {
bVar4 = bVar4 + 1;
bVar1 = 3 < uVar5;
uVar5 = uVar5 >> 1;
} while (bVar1);
}
}
return (ulong)(~(-1 << (bVar4 & 0x1f)) & (uint)puVar6);
}
uVar5 = *(uint *)(this + 0x3c);
if (uVar5 == 0) {
bVar4 = 0xff;
}
else {
bVar4 = 0;
if ((uVar5 != 1) && (1 < uVar5)) {
bVar4 = 0;
do {
bVar4 = bVar4 + 1;
bVar1 = 3 < uVar5;
uVar5 = uVar5 >> 1;
} while (bVar1);
}
}
lVar3 = *(long *)(this + 0x50) + (long)iVar2 * 0x30;
*(int4 *)(*(long *)(this + 0x50) + 0x10 + (long)iVar2 * 0x30) =
*(int4 *)(this + 0x20);
}
else {
uVar5 = *(uint *)(this + 0x3c);
if (uVar5 == 0) {
bVar4 = 0xff;
}
else {
bVar4 = 0;
if ((uVar5 != 1) && (bVar4 = 0, 1 < uVar5)) {
bVar4 = 0;
do {
bVar4 = bVar4 + 1;
bVar1 = 3 < uVar5;
uVar5 = uVar5 >> 1;
} while (bVar1);
}
}
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
uVar5 = *(uint *)(this + 0x48);
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)uVar5;
lVar3 = *(long *)(this + 0x50) + (long)iVar2 * 0x30;
*(int4 *)(*(long *)(this + 0x50) + 0x10 + (long)iVar2 * 0x30) =
*(int4 *)(this + 0x20);
if (param_2 != (uint *)0x0) {
*param_2 = uVar5;
}
}
return CONCAT71((int7)((ulong)*(long *)(lVar3 + 0x18) >> 8),
*(int1 *)
(*(long *)(lVar3 + 0x18) + (ulong)(~(-1 << (bVar4 & 0x1f)) & param_1)));
}
|
|
13,370
|
Cache::getByte(unsigned int, unsigned int*)
|
DanielDanyang[P]CSC3050-2025-Spring-Project-4/src/Cache.cpp
|
uint8_t Cache::getByte(uint32_t addr, uint32_t *cycles) {
this->referenceCounter++;
this->statistics.numRead++;
// If in cache, return directly
int blockId;
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->statistics.numHit++;
this->statistics.totalCycles += this->policy.hitLatency;
this->blocks[blockId].lastReference = this->referenceCounter;
if (cycles) *cycles = this->policy.hitLatency;
return this->blocks[blockId].data[offset];
}
// Else, find the data in memory or other level of cache
this->statistics.numMiss++;
this->statistics.totalCycles += this->policy.missLatency;
this->loadBlockFromLowerLevel(addr, cycles);
// The block is in top level cache now, return directly
if ((blockId = this->getBlockId(addr)) != -1) {
uint32_t offset = this->getOffset(addr);
this->blocks[blockId].lastReference = this->referenceCounter;
return this->blocks[blockId].data[offset];
} else {
fprintf(stderr, "Error: data not in top level cache!\n");
exit(-1);
}
}
|
O3
|
cpp
|
Cache::getByte(unsigned int, unsigned int*):
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %r14
incl 0x20(%rdi)
movl %esi, %ebx
incl 0x8(%rdi)
callq 0x37d0
cmpl $-0x1, %eax
je 0x393d
movl 0x3c(%r14), %edx
testl %edx, %edx
je 0x3987
xorl %ecx, %ecx
cmpl $0x1, %edx
je 0x398c
movl %edx, %esi
shrl %esi
incl %ecx
cmpl $0x3, %edx
movl %esi, %edx
ja 0x3930
jmp 0x398c
incl 0x14(%r14)
movl 0x4c(%r14), %eax
addq %rax, 0x18(%r14)
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x3a26
movq %r14, %rdi
movl %ebx, %esi
callq 0x37d0
cmpl $-0x1, %eax
je 0x39f4
movl 0x3c(%r14), %edx
testl %edx, %edx
je 0x39bd
xorl %ecx, %ecx
cmpl $0x1, %edx
je 0x39c2
movl %edx, %esi
shrl %esi
incl %ecx
cmpl $0x3, %edx
movl %esi, %edx
ja 0x397a
jmp 0x39c2
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
incl 0x10(%r14)
movl 0x20(%r14), %esi
movl 0x48(%r14), %edx
addq %rdx, 0x18(%r14)
cltq
movq 0x50(%r14), %rdi
leaq (%rax,%rax,2), %r8
shlq $0x4, %r8
leaq (%rdi,%r8), %rax
movl %esi, 0x10(%rdi,%r8)
testq %r15, %r15
je 0x39dc
movl %edx, (%r15)
jmp 0x39dc
movl $0xffffffff, %ecx # imm = 0xFFFFFFFF
movl 0x20(%r14), %edx
cltq
movq 0x50(%r14), %rsi
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
leaq (%rsi,%rdi), %rax
movl %edx, 0x10(%rsi,%rdi)
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
shll %cl, %edx
notl %edx
andl %ebx, %edx
movq 0x18(%rax), %rax
movb (%rax,%rdx), %al
popq %rbx
popq %r14
popq %r15
retq
callq 0x2402
nop
|
_ZN5Cache7getByteEjPj:
push r15
push r14
push rbx
mov r15, rdx
mov r14, rdi
inc dword ptr [rdi+20h]
mov ebx, esi
inc dword ptr [rdi+8]
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
cmp eax, 0FFFFFFFFh
jz short loc_393D
mov edx, [r14+3Ch]
test edx, edx
jz short loc_3987
xor ecx, ecx
cmp edx, 1
jz short loc_398C
mov esi, edx
loc_3930:
shr esi, 1
inc ecx
cmp edx, 3
mov edx, esi
ja short loc_3930
jmp short loc_398C
loc_393D:
inc dword ptr [r14+14h]
mov eax, [r14+4Ch]
add [r14+18h], rax
mov rdi, r14; this
mov esi, ebx; unsigned int
mov rdx, r15; unsigned int *
call _ZN5Cache23loadBlockFromLowerLevelEjPj; Cache::loadBlockFromLowerLevel(uint,uint *)
mov rdi, r14; this
mov esi, ebx; unsigned int
call _ZN5Cache10getBlockIdEj; Cache::getBlockId(uint)
cmp eax, 0FFFFFFFFh
jz loc_39F4
mov edx, [r14+3Ch]
test edx, edx
jz short loc_39BD
xor ecx, ecx
cmp edx, 1
jz short loc_39C2
mov esi, edx
loc_397A:
shr esi, 1
inc ecx
cmp edx, 3
mov edx, esi
ja short loc_397A
jmp short loc_39C2
loc_3987:
mov ecx, 0FFFFFFFFh
loc_398C:
inc dword ptr [r14+10h]
mov esi, [r14+20h]
mov edx, [r14+48h]
add [r14+18h], rdx
cdqe
mov rdi, [r14+50h]
lea r8, [rax+rax*2]
shl r8, 4
lea rax, [rdi+r8]
mov [rdi+r8+10h], esi
test r15, r15
jz short loc_39DC
mov [r15], edx
jmp short loc_39DC
loc_39BD:
mov ecx, 0FFFFFFFFh
loc_39C2:
mov edx, [r14+20h]
cdqe
mov rsi, [r14+50h]
lea rdi, [rax+rax*2]
shl rdi, 4
lea rax, [rsi+rdi]
mov [rsi+rdi+10h], edx
loc_39DC:
mov edx, 0FFFFFFFFh
shl edx, cl
not edx
and edx, ebx
mov rax, [rax+18h]
mov al, [rax+rdx]
pop rbx
pop r14
pop r15
retn
loc_39F4:
call _ZN5Cache7getByteEjPj_cold_1; Cache::getByte(uint,uint *) [clone]
|
char Cache::getByte(Cache *this, unsigned int a2, unsigned int *a3)
{
int BlockId; // eax
unsigned int v6; // edx
char v7; // cl
unsigned int v8; // esi
bool v9; // cc
int v10; // eax
unsigned int v11; // edx
unsigned int v12; // esi
int v13; // esi
long long v14; // rdx
long long v15; // rax
++*((_DWORD *)this + 8);
++*((_DWORD *)this + 2);
BlockId = Cache::getBlockId(this, a2);
if ( BlockId == -1 )
{
++*((_DWORD *)this + 5);
*((_QWORD *)this + 3) += *((unsigned int *)this + 19);
Cache::loadBlockFromLowerLevel(this, a2, a3);
v10 = Cache::getBlockId(this, a2);
if ( v10 == -1 )
Cache::getByte();
v11 = *((_DWORD *)this + 15);
if ( v11 )
{
v7 = 0;
if ( v11 != 1 )
{
v12 = *((_DWORD *)this + 15);
do
{
v12 >>= 1;
++v7;
v9 = v11 <= 3;
v11 = v12;
}
while ( !v9 );
}
}
else
{
v7 = -1;
}
v15 = *((_QWORD *)this + 10) + 48LL * v10;
*(_DWORD *)(v15 + 16) = *((_DWORD *)this + 8);
}
else
{
v6 = *((_DWORD *)this + 15);
if ( v6 )
{
v7 = 0;
if ( v6 != 1 )
{
v8 = *((_DWORD *)this + 15);
do
{
v8 >>= 1;
++v7;
v9 = v6 <= 3;
v6 = v8;
}
while ( !v9 );
}
}
else
{
v7 = -1;
}
++*((_DWORD *)this + 4);
v13 = *((_DWORD *)this + 8);
v14 = *((unsigned int *)this + 18);
*((_QWORD *)this + 3) += v14;
v15 = *((_QWORD *)this + 10) + 48LL * BlockId;
*(_DWORD *)(v15 + 16) = v13;
if ( a3 )
*a3 = v14;
}
return *(_BYTE *)(*(_QWORD *)(v15 + 24) + (a2 & ~(-1 << v7)));
}
|
getByte:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,RDX
MOV R14,RDI
INC dword ptr [RDI + 0x20]
MOV EBX,ESI
INC dword ptr [RDI + 0x8]
CALL 0x001037d0
CMP EAX,-0x1
JZ 0x0010393d
MOV EDX,dword ptr [R14 + 0x3c]
TEST EDX,EDX
JZ 0x00103987
XOR ECX,ECX
CMP EDX,0x1
JZ 0x0010398c
MOV ESI,EDX
LAB_00103930:
SHR ESI,0x1
INC ECX
CMP EDX,0x3
MOV EDX,ESI
JA 0x00103930
JMP 0x0010398c
LAB_0010393d:
INC dword ptr [R14 + 0x14]
MOV EAX,dword ptr [R14 + 0x4c]
ADD qword ptr [R14 + 0x18],RAX
MOV RDI,R14
MOV ESI,EBX
MOV RDX,R15
CALL 0x00103a26
MOV RDI,R14
MOV ESI,EBX
CALL 0x001037d0
CMP EAX,-0x1
JZ 0x001039f4
MOV EDX,dword ptr [R14 + 0x3c]
TEST EDX,EDX
JZ 0x001039bd
XOR ECX,ECX
CMP EDX,0x1
JZ 0x001039c2
MOV ESI,EDX
LAB_0010397a:
SHR ESI,0x1
INC ECX
CMP EDX,0x3
MOV EDX,ESI
JA 0x0010397a
JMP 0x001039c2
LAB_00103987:
MOV ECX,0xffffffff
LAB_0010398c:
INC dword ptr [R14 + 0x10]
MOV ESI,dword ptr [R14 + 0x20]
MOV EDX,dword ptr [R14 + 0x48]
ADD qword ptr [R14 + 0x18],RDX
CDQE
MOV RDI,qword ptr [R14 + 0x50]
LEA R8,[RAX + RAX*0x2]
SHL R8,0x4
LEA RAX,[RDI + R8*0x1]
MOV dword ptr [RDI + R8*0x1 + 0x10],ESI
TEST R15,R15
JZ 0x001039dc
MOV dword ptr [R15],EDX
JMP 0x001039dc
LAB_001039bd:
MOV ECX,0xffffffff
LAB_001039c2:
MOV EDX,dword ptr [R14 + 0x20]
CDQE
MOV RSI,qword ptr [R14 + 0x50]
LEA RDI,[RAX + RAX*0x2]
SHL RDI,0x4
LEA RAX,[RSI + RDI*0x1]
MOV dword ptr [RSI + RDI*0x1 + 0x10],EDX
LAB_001039dc:
MOV EDX,0xffffffff
SHL EDX,CL
NOT EDX
AND EDX,EBX
MOV RAX,qword ptr [RAX + 0x18]
MOV AL,byte ptr [RAX + RDX*0x1]
POP RBX
POP R14
POP R15
RET
LAB_001039f4:
CALL 0x00102402
NOP
|
/* Cache::getByte(unsigned int, unsigned int*) */
ulong __thiscall Cache::getByte(Cache *this,uint param_1,uint *param_2)
{
bool bVar1;
int iVar2;
long lVar3;
byte bVar4;
byte bVar5;
uint uVar6;
uint *puVar7;
Cache *pCVar8;
*(int *)(this + 0x20) = *(int *)(this + 0x20) + 1;
puVar7 = (uint *)(ulong)param_1;
*(int *)(this + 8) = *(int *)(this + 8) + 1;
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)*(uint *)(this + 0x4c);
loadBlockFromLowerLevel(this,param_1,param_2);
pCVar8 = this;
iVar2 = getBlockId(this,param_1);
if (iVar2 == -1) {
getByte((uint)pCVar8,puVar7);
uVar6 = *(uint *)(pCVar8 + 0x3c);
bVar4 = 0xff;
if (uVar6 != 0) {
bVar5 = 0;
bVar4 = 0;
if (uVar6 != 1) {
do {
bVar4 = bVar5 + 1;
bVar1 = 3 < uVar6;
uVar6 = uVar6 >> 1;
bVar5 = bVar4;
} while (bVar1);
}
}
return (ulong)(~(-1 << (bVar4 & 0x1f)) & (uint)puVar7);
}
uVar6 = *(uint *)(this + 0x3c);
if (uVar6 == 0) {
bVar4 = 0xff;
}
else {
bVar4 = 0;
if (uVar6 != 1) {
do {
bVar4 = bVar4 + 1;
bVar1 = 3 < uVar6;
uVar6 = uVar6 >> 1;
} while (bVar1);
}
}
lVar3 = *(long *)(this + 0x50) + (long)iVar2 * 0x30;
*(int4 *)(*(long *)(this + 0x50) + 0x10 + (long)iVar2 * 0x30) =
*(int4 *)(this + 0x20);
}
else {
uVar6 = *(uint *)(this + 0x3c);
if (uVar6 == 0) {
bVar4 = 0xff;
}
else {
bVar4 = 0;
if (uVar6 != 1) {
do {
bVar4 = bVar4 + 1;
bVar1 = 3 < uVar6;
uVar6 = uVar6 >> 1;
} while (bVar1);
}
}
*(int *)(this + 0x10) = *(int *)(this + 0x10) + 1;
uVar6 = *(uint *)(this + 0x48);
*(ulong *)(this + 0x18) = *(long *)(this + 0x18) + (ulong)uVar6;
lVar3 = *(long *)(this + 0x50) + (long)iVar2 * 0x30;
*(int4 *)(*(long *)(this + 0x50) + 0x10 + (long)iVar2 * 0x30) =
*(int4 *)(this + 0x20);
if (param_2 != (uint *)0x0) {
*param_2 = uVar6;
}
}
return CONCAT71((int7)((ulong)*(long *)(lVar3 + 0x18) >> 8),
*(int1 *)
(*(long *)(lVar3 + 0x18) + (ulong)(~(-1 << (bVar4 & 0x1f)) & param_1)));
}
|
|
13,371
|
minja::ArgumentsValue::expectArgs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::pair<unsigned long, unsigned long> const&, std::pair<unsigned long, unsigned long> const&)
|
monkey531[P]llama/common/minja.hpp
|
void expectArgs(const std::string & method_name, const std::pair<size_t, size_t> & pos_count, const std::pair<size_t, size_t> & kw_count) {
if (args.size() < pos_count.first || args.size() > pos_count.second || kwargs.size() < kw_count.first || kwargs.size() > kw_count.second) {
std::ostringstream out;
out << method_name << " must have between " << pos_count.first << " and " << pos_count.second << " positional arguments and between " << kw_count.first << " and " << kw_count.second << " keyword arguments";
throw std::runtime_error(out.str());
}
}
|
O2
|
cpp
|
minja::ArgumentsValue::expectArgs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::pair<unsigned long, unsigned long> const&, std::pair<unsigned long, unsigned long> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a0, %rsp # imm = 0x1A0
movq %rcx, %rbx
movq %rdx, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq %rsi, %r15
pushq $0x50
popq %rcx
cqto
idivq %rcx
cmpq (%r14), %rax
jb 0x6ca53
cmpq 0x8(%r14), %rax
ja 0x6ca53
movq 0x20(%rdi), %rax
subq 0x18(%rdi), %rax
pushq $0x70
popq %rcx
cqto
idivq %rcx
cmpq (%rbx), %rax
jb 0x6ca53
cmpq 0x8(%rbx), %rax
ja 0x6ca53
addq $0x1a0, %rsp # imm = 0x1A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0x23bc0
movq %r12, %rdi
movq %r15, %rsi
callq 0x237f0
leaq 0x47c70(%rip), %rsi # 0xb46e2
movq %rax, %rdi
callq 0x238c0
movq (%r14), %rsi
movq %rax, %rdi
callq 0x23640
leaq 0x47c6a(%rip), %rsi # 0xb46f6
movq %rax, %rdi
callq 0x238c0
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x23640
leaq 0x47c55(%rip), %rsi # 0xb46fc
movq %rax, %rdi
callq 0x238c0
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x23640
leaq 0x47c35(%rip), %rsi # 0xb46f6
movq %rax, %rdi
callq 0x238c0
movq 0x8(%rbx), %rsi
movq %rax, %rdi
callq 0x23640
leaq 0x47c43(%rip), %rsi # 0xb471f
movq %rax, %rdi
callq 0x238c0
pushq $0x10
popq %rdi
callq 0x23480
movq %rax, %rbx
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x23de0
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x23e60
xorl %ebp, %ebp
movq 0x914d9(%rip), %rsi # 0xfdff0
movq 0x9143a(%rip), %rdx # 0xfdf58
movq %rbx, %rdi
callq 0x23f30
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x24208
testb %bpl, %bpl
jne 0x6cb3d
jmp 0x6cb4a
movq %rax, %r14
movq %rbx, %rdi
callq 0x236b0
jmp 0x6cb4a
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x231f0
movq %r14, %rdi
callq 0x23fd0
|
_ZN5minja14ArgumentsValue10expectArgsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt4pairImmESC_:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 1A0h
mov rbx, rcx
mov r14, rdx
mov rax, [rdi+8]
sub rax, [rdi]
mov r15, rsi
push 50h ; 'P'
pop rcx
cqo
idiv rcx
cmp rax, [r14]
jb short loc_6CA53
cmp rax, [r14+8]
ja short loc_6CA53
mov rax, [rdi+20h]
sub rax, [rdi+18h]
push 70h ; 'p'
pop rcx
cqo
idiv rcx
cmp rax, [rbx]
jb short loc_6CA53
cmp rax, [rbx+8]
ja short loc_6CA53
add rsp, 1A0h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_6CA53:
lea r12, [rsp+1C8h+var_1A0]
mov rdi, r12
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rdi, r12
mov rsi, r15
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
lea rsi, aMustHaveBetwee; " must have between "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rsi, [r14]
mov rdi, rax
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aAnd; " and "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rsi, [r14+8]
mov rdi, rax
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aPositionalArgu; " positional arguments and between "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rsi, [rbx]
mov rdi, rax
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aAnd; " and "
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
mov rsi, [rbx+8]
mov rdi, rax
call __ZNSo9_M_insertImEERSoT_; std::ostream::_M_insert<ulong>(ulong)
lea rsi, aKeywordArgumen; " keyword arguments"
mov rdi, rax
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, [rsp+1C8h+var_198]
lea rdi, [rsp+1C8h+var_1C0]
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov bpl, 1
lea rsi, [rsp+1C8h+var_1C0]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+1C8h+var_1C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6CB3D
jmp short loc_6CB4A
mov r14, rax
loc_6CB3D:
mov rdi, rbx; void *
call ___cxa_free_exception
jmp short loc_6CB4A
mov r14, rax
loc_6CB4A:
lea rdi, [rsp+1C8h+var_1A0]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rdi, r14
call __Unwind_Resume
|
unsigned long long minja::ArgumentsValue::expectArgs(
_QWORD *a1,
long long a2,
unsigned long long *a3,
unsigned long long *a4)
{
unsigned long long v6; // rax
unsigned long long result; // rax
long long v8; // rax
long long v9; // rax
long long v10; // rax
long long v11; // rax
long long v12; // rax
long long v13; // rax
long long v14; // rax
long long v15; // rax
long long v16; // rax
void *exception; // rbx
_BYTE v18[32]; // [rsp+8h] [rbp-1C0h] BYREF
_BYTE v19[8]; // [rsp+28h] [rbp-1A0h] BYREF
_BYTE v20[408]; // [rsp+30h] [rbp-198h] BYREF
v6 = (a1[1] - *a1) / 80LL;
if ( v6 < *a3 || v6 > a3[1] || (result = (a1[4] - a1[3]) / 112LL, result < *a4) || result > a4[1] )
{
std::ostringstream::basic_ostringstream(v19);
v8 = std::operator<<<char>(v19, a2);
v9 = std::operator<<<std::char_traits<char>>(v8, " must have between ");
v10 = std::ostream::_M_insert<unsigned long>(v9, *a3);
v11 = std::operator<<<std::char_traits<char>>(v10, " and ");
v12 = std::ostream::_M_insert<unsigned long>(v11, a3[1]);
v13 = std::operator<<<std::char_traits<char>>(v12, " positional arguments and between ");
v14 = std::ostream::_M_insert<unsigned long>(v13, *a4);
v15 = std::operator<<<std::char_traits<char>>(v14, " and ");
v16 = std::ostream::_M_insert<unsigned long>(v15, a4[1]);
std::operator<<<std::char_traits<char>>(v16, " keyword arguments");
exception = __cxa_allocate_exception(0x10uLL);
std::stringbuf::str(v18, v20);
std::runtime_error::runtime_error(exception, v18);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return result;
}
|
expectArgs:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1a0
MOV RBX,RCX
MOV R14,RDX
MOV RAX,qword ptr [RDI + 0x8]
SUB RAX,qword ptr [RDI]
MOV R15,RSI
PUSH 0x50
POP RCX
CQO
IDIV RCX
CMP RAX,qword ptr [R14]
JC 0x0016ca53
CMP RAX,qword ptr [R14 + 0x8]
JA 0x0016ca53
MOV RAX,qword ptr [RDI + 0x20]
SUB RAX,qword ptr [RDI + 0x18]
PUSH 0x70
POP RCX
CQO
IDIV RCX
CMP RAX,qword ptr [RBX]
JC 0x0016ca53
CMP RAX,qword ptr [RBX + 0x8]
JA 0x0016ca53
ADD RSP,0x1a0
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0016ca53:
LEA R12,[RSP + 0x28]
MOV RDI,R12
CALL 0x00123bc0
LAB_0016ca60:
MOV RDI,R12
MOV RSI,R15
CALL 0x001237f0
LEA RSI,[0x1b46e2]
MOV RDI,RAX
CALL 0x001238c0
MOV RSI,qword ptr [R14]
MOV RDI,RAX
CALL 0x00123640
LEA RSI,[0x1b46f6]
MOV RDI,RAX
CALL 0x001238c0
MOV RSI,qword ptr [R14 + 0x8]
MOV RDI,RAX
CALL 0x00123640
LEA RSI,[0x1b46fc]
MOV RDI,RAX
CALL 0x001238c0
MOV RSI,qword ptr [RBX]
MOV RDI,RAX
CALL 0x00123640
LEA RSI,[0x1b46f6]
MOV RDI,RAX
CALL 0x001238c0
MOV RSI,qword ptr [RBX + 0x8]
MOV RDI,RAX
CALL 0x00123640
LEA RSI,[0x1b471f]
MOV RDI,RAX
CALL 0x001238c0
LAB_0016cae4:
PUSH 0x10
POP RDI
CALL 0x00123480
MOV RBX,RAX
LEA RSI,[RSP + 0x30]
LAB_0016caf4:
LEA RDI,[RSP + 0x8]
CALL 0x00123de0
MOV BPL,0x1
LAB_0016cb01:
LEA RSI,[RSP + 0x8]
MOV RDI,RBX
CALL 0x00123e60
XOR EBP,EBP
MOV RSI,qword ptr [0x001fdff0]
MOV RDX,qword ptr [0x001fdf58]
MOV RDI,RBX
CALL 0x00123f30
|
/* minja::ArgumentsValue::expectArgs(std::__cxx11::string const&, std::pair<unsigned long, unsigned
long> const&, std::pair<unsigned long, unsigned long> const&) */
void __thiscall
minja::ArgumentsValue::expectArgs(ArgumentsValue *this,string *param_1,pair *param_2,pair *param_3)
{
ulong uVar1;
ostream *poVar2;
runtime_error *this_00;
string local_1c0 [32];
ostringstream local_1a0 [376];
uVar1 = (*(long *)(this + 8) - *(long *)this) / 0x50;
if ((*(ulong *)param_2 <= uVar1) && (uVar1 <= *(ulong *)(param_2 + 8))) {
uVar1 = (*(long *)(this + 0x20) - *(long *)(this + 0x18)) / 0x70;
if ((*(ulong *)param_3 <= uVar1) && (uVar1 <= *(ulong *)(param_3 + 8))) {
return;
}
}
std::__cxx11::ostringstream::ostringstream(local_1a0);
/* try { // try from 0016ca60 to 0016cae3 has its CatchHandler @ 0016cb47 */
poVar2 = std::operator<<((ostream *)local_1a0,param_1);
poVar2 = std::operator<<(poVar2," must have between ");
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
poVar2 = std::operator<<(poVar2," and ");
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
poVar2 = std::operator<<(poVar2," positional arguments and between ");
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
poVar2 = std::operator<<(poVar2," and ");
poVar2 = std::ostream::_M_insert<unsigned_long>((ulong)poVar2);
std::operator<<(poVar2," keyword arguments");
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0016caf4 to 0016cafd has its CatchHandler @ 0016cb3a */
std::__cxx11::stringbuf::str();
/* try { // try from 0016cb01 to 0016cb25 has its CatchHandler @ 0016cb26 */
std::runtime_error::runtime_error(this_00,local_1c0);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001fdff0,PTR__runtime_error_001fdf58);
}
|
|
13,372
|
mult
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static Bigint *mult(Bigint *a, Bigint *b, Stack_alloc *alloc)
{
Bigint *c;
int k, wa, wb, wc;
ULong *x, *xa, *xae, *xb, *xbe, *xc, *xc0;
ULong y;
ULLong carry, z;
if (a->wds < b->wds)
{
c= a;
a= b;
b= c;
}
k= a->k;
wa= a->wds;
wb= b->wds;
wc= wa + wb;
if (wc > a->maxwds)
k++;
c= Balloc(k, alloc);
for (x= c->p.x, xa= x + wc; x < xa; x++)
*x= 0;
xa= a->p.x;
xae= xa + wa;
xb= b->p.x;
xbe= xb + wb;
xc0= c->p.x;
for (; xb < xbe; xc0++)
{
if ((y= *xb++))
{
x= xa;
xc= xc0;
carry= 0;
do
{
z= *x++ * (ULLong)y + *xc + carry;
carry= z >> 32;
*xc++= (ULong) (z & FFFFFFFF);
}
while (x < xae);
*xc= (ULong) carry;
}
}
for (xc0= c->p.x, xc= xc0 + wc; wc > 0 && !*--xc; --wc) ;
c->wds= wc;
return c;
}
|
O0
|
c
|
mult:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x14(%rcx), %eax
jge 0x3499f
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x28(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jle 0x349db
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x350b0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x34a2b
movq -0x38(%rbp), %rax
movl $0x0, (%rax)
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x38(%rbp)
jmp 0x34a09
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movslq -0x28(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
jae 0x34b34
movq -0x50(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x50(%rbp)
movl (%rax), %eax
movl %eax, -0x6c(%rbp)
cmpl $0x0, %eax
je 0x34b21
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0x78(%rbp)
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl -0x6c(%rbp), %ecx
imulq %rcx, %rax
movq -0x60(%rbp), %rcx
movl (%rcx), %ecx
addq %rcx, %rax
addq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
shrq $0x20, %rax
movq %rax, -0x78(%rbp)
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x80(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movq %rax, %rdx
addq $0x4, %rdx
movq %rdx, -0x60(%rbp)
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
cmpq -0x48(%rbp), %rax
jb 0x34ab5
movq -0x78(%rbp), %rax
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, (%rax)
jmp 0x34b23
movq -0x68(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x68(%rbp)
jmp 0x34a72
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x30(%rbp)
movb %al, -0x81(%rbp)
jle 0x34b7e
movq -0x60(%rbp), %rax
movq %rax, %rcx
addq $-0x4, %rcx
movq %rcx, -0x60(%rbp)
cmpl $0x0, -0x4(%rax)
setne %al
xorb $-0x1, %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
testb $0x1, %al
jne 0x34b8a
jmp 0x34b97
jmp 0x34b8c
movl -0x30(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x34b52
movl -0x30(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x20(%rbp), %rax
addq $0x90, %rsp
popq %rbp
retq
nop
|
mult:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov eax, [rax+14h]
mov rcx, [rbp+var_10]
cmp eax, [rcx+14h]
jge short loc_3499F
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
mov rax, [rbp+var_20]
mov [rbp+var_10], rax
loc_3499F:
mov rax, [rbp+var_8]
mov eax, [rax+8]
mov [rbp+var_24], eax
mov rax, [rbp+var_8]
mov eax, [rax+14h]
mov [rbp+var_28], eax
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov [rbp+var_2C], eax
mov eax, [rbp+var_28]
add eax, [rbp+var_2C]
mov [rbp+var_30], eax
mov eax, [rbp+var_30]
mov rcx, [rbp+var_8]
cmp eax, [rcx+0Ch]
jle short loc_349DB
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
loc_349DB:
mov edi, [rbp+var_24]
mov rsi, [rbp+var_18]
call Balloc
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
movsxd rcx, [rbp+var_30]
shl rcx, 2
add rax, rcx
mov [rbp+var_40], rax
loc_34A09:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_40]
jnb short loc_34A2B
mov rax, [rbp+var_38]
mov dword ptr [rax], 0
mov rax, [rbp+var_38]
add rax, 4
mov [rbp+var_38], rax
jmp short loc_34A09
loc_34A2B:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
movsxd rcx, [rbp+var_28]
shl rcx, 2
add rax, rcx
mov [rbp+var_48], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
movsxd rcx, [rbp+var_2C]
shl rcx, 2
add rax, rcx
mov [rbp+var_58], rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_68], rax
loc_34A72:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_58]
jnb loc_34B34
mov rax, [rbp+var_50]
mov rcx, rax
add rcx, 4
mov [rbp+var_50], rcx
mov eax, [rax]
mov [rbp+var_6C], eax
cmp eax, 0
jz loc_34B21
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
mov rax, [rbp+var_68]
mov [rbp+var_60], rax
mov [rbp+var_78], 0
loc_34AB5:
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 4
mov [rbp+var_38], rcx
mov eax, [rax]
mov ecx, [rbp+var_6C]
imul rax, rcx
mov rcx, [rbp+var_60]
mov ecx, [rcx]
add rax, rcx
add rax, [rbp+var_78]
mov [rbp+var_80], rax
mov rax, [rbp+var_80]
shr rax, 20h
mov [rbp+var_78], rax
mov rax, 0FFFFFFFFh
and rax, [rbp+var_80]
mov ecx, eax
mov rax, [rbp+var_60]
mov rdx, rax
add rdx, 4
mov [rbp+var_60], rdx
mov [rax], ecx
mov rax, [rbp+var_38]
cmp rax, [rbp+var_48]
jb short loc_34AB5
mov rax, [rbp+var_78]
mov ecx, eax
mov rax, [rbp+var_60]
mov [rax], ecx
loc_34B21:
jmp short $+2
loc_34B23:
mov rax, [rbp+var_68]
add rax, 4
mov [rbp+var_68], rax
jmp loc_34A72
loc_34B34:
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_68], rax
mov rax, [rbp+var_68]
movsxd rcx, [rbp+var_30]
shl rcx, 2
add rax, rcx
mov [rbp+var_60], rax
loc_34B52:
xor eax, eax
cmp [rbp+var_30], 0
mov [rbp+var_81], al
jle short loc_34B7E
mov rax, [rbp+var_60]
mov rcx, rax
add rcx, 0FFFFFFFFFFFFFFFCh
mov [rbp+var_60], rcx
cmp dword ptr [rax-4], 0
setnz al
xor al, 0FFh
mov [rbp+var_81], al
loc_34B7E:
mov al, [rbp+var_81]
test al, 1
jnz short loc_34B8A
jmp short loc_34B97
loc_34B8A:
jmp short $+2
loc_34B8C:
mov eax, [rbp+var_30]
add eax, 0FFFFFFFFh
mov [rbp+var_30], eax
jmp short loc_34B52
loc_34B97:
mov ecx, [rbp+var_30]
mov rax, [rbp+var_20]
mov [rax+14h], ecx
mov rax, [rbp+var_20]
add rsp, 90h
pop rbp
retn
|
long long mult(unsigned int **a1, unsigned int **a2, long long a3)
{
unsigned int *v3; // rax
unsigned int *v4; // rax
_DWORD *v5; // rax
long long v6; // rax
char v8; // [rsp+Fh] [rbp-81h]
unsigned long long v9; // [rsp+10h] [rbp-80h]
unsigned long long v10; // [rsp+18h] [rbp-78h]
unsigned int v11; // [rsp+24h] [rbp-6Ch]
_DWORD *v12; // [rsp+28h] [rbp-68h]
_DWORD *v13; // [rsp+30h] [rbp-60h]
long long v14; // [rsp+30h] [rbp-60h]
unsigned long long v15; // [rsp+38h] [rbp-58h]
unsigned int *v16; // [rsp+40h] [rbp-50h]
unsigned long long v17; // [rsp+48h] [rbp-48h]
unsigned long long v18; // [rsp+50h] [rbp-40h]
unsigned int *v19; // [rsp+50h] [rbp-40h]
_DWORD *v20; // [rsp+58h] [rbp-38h]
unsigned int *v21; // [rsp+58h] [rbp-38h]
int v22; // [rsp+60h] [rbp-30h]
int v23; // [rsp+64h] [rbp-2Ch]
int v24; // [rsp+68h] [rbp-28h]
unsigned int v25; // [rsp+6Ch] [rbp-24h]
long long v26; // [rsp+70h] [rbp-20h]
unsigned int **v27; // [rsp+80h] [rbp-10h]
unsigned int **v28; // [rsp+88h] [rbp-8h]
v28 = a1;
v27 = a2;
if ( *((_DWORD *)a1 + 5) < *((_DWORD *)a2 + 5) )
{
v28 = a2;
v27 = a1;
}
v25 = *((_DWORD *)v28 + 2);
v24 = *((_DWORD *)v28 + 5);
v23 = *((_DWORD *)v27 + 5);
v22 = v23 + v24;
if ( v23 + v24 > *((_DWORD *)v28 + 3) )
++v25;
v26 = Balloc(v25, a3);
v20 = *(_DWORD **)v26;
v18 = 4LL * v22 + *(_QWORD *)v26;
while ( (unsigned long long)v20 < v18 )
*v20++ = 0;
v19 = *v28;
v17 = (unsigned long long)&(*v28)[v24];
v16 = *v27;
v15 = (unsigned long long)&(*v27)[v23];
v12 = *(_DWORD **)v26;
while ( (unsigned long long)v16 < v15 )
{
v3 = v16++;
v11 = *v3;
if ( *v3 )
{
v21 = v19;
v13 = v12;
v10 = 0LL;
do
{
v4 = v21++;
v9 = v10 + (unsigned int)*v13 + v11 * (unsigned long long)*v4;
v10 = HIDWORD(v9);
v5 = v13++;
*v5 = v9;
}
while ( (unsigned long long)v21 < v17 );
*v13 = HIDWORD(v9);
}
++v12;
}
v14 = 4LL * v22 + *(_QWORD *)v26;
while ( 1 )
{
v8 = 0;
if ( v22 > 0 )
{
v6 = v14;
v14 -= 4LL;
v8 = ~(*(_DWORD *)(v6 - 4) != 0);
}
if ( (v8 & 1) == 0 )
break;
--v22;
}
*(_DWORD *)(v26 + 20) = v22;
return v26;
}
|
mult:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x14]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x14]
JGE 0x0013499f
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x10],RAX
LAB_0013499f:
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x24],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x28],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x28]
ADD EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x30],EAX
MOV EAX,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0xc]
JLE 0x001349db
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
LAB_001349db:
MOV EDI,dword ptr [RBP + -0x24]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001350b0
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOVSXD RCX,dword ptr [RBP + -0x30]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_00134a09:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x00134a2b
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x4
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00134a09
LAB_00134a2b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOVSXD RCX,dword ptr [RBP + -0x28]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOVSXD RCX,dword ptr [RBP + -0x2c]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
LAB_00134a72:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x58]
JNC 0x00134b34
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x50],RCX
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x6c],EAX
CMP EAX,0x0
JZ 0x00134b21
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOV qword ptr [RBP + -0x60],RAX
MOV qword ptr [RBP + -0x78],0x0
LAB_00134ab5:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x4
MOV qword ptr [RBP + -0x38],RCX
MOV EAX,dword ptr [RAX]
MOV ECX,dword ptr [RBP + -0x6c]
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x60]
MOV ECX,dword ptr [RCX]
ADD RAX,RCX
ADD RAX,qword ptr [RBP + -0x78]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x80]
SHR RAX,0x20
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x80]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV RDX,RAX
ADD RDX,0x4
MOV qword ptr [RBP + -0x60],RDX
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x48]
JC 0x00134ab5
MOV RAX,qword ptr [RBP + -0x78]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX],ECX
LAB_00134b21:
JMP 0x00134b23
LAB_00134b23:
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,0x4
MOV qword ptr [RBP + -0x68],RAX
JMP 0x00134a72
LAB_00134b34:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x68]
MOVSXD RCX,dword ptr [RBP + -0x30]
SHL RCX,0x2
ADD RAX,RCX
MOV qword ptr [RBP + -0x60],RAX
LAB_00134b52:
XOR EAX,EAX
CMP dword ptr [RBP + -0x30],0x0
MOV byte ptr [RBP + -0x81],AL
JLE 0x00134b7e
MOV RAX,qword ptr [RBP + -0x60]
MOV RCX,RAX
ADD RCX,-0x4
MOV qword ptr [RBP + -0x60],RCX
CMP dword ptr [RAX + -0x4],0x0
SETNZ AL
XOR AL,0xff
MOV byte ptr [RBP + -0x81],AL
LAB_00134b7e:
MOV AL,byte ptr [RBP + -0x81]
TEST AL,0x1
JNZ 0x00134b8a
JMP 0x00134b97
LAB_00134b8a:
JMP 0x00134b8c
LAB_00134b8c:
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00134b52
LAB_00134b97:
MOV ECX,dword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x14],ECX
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x90
POP RBP
RET
|
long * mult(int8 *param_1,int8 *param_2,int8 param_3)
{
int iVar1;
int iVar2;
uint uVar3;
uint *puVar4;
uint *puVar5;
long *plVar6;
int4 *puVar7;
ulong uVar8;
uint *puVar9;
uint *puVar10;
bool bVar11;
ulong local_80;
uint *local_70;
uint *local_68;
uint *local_58;
uint *local_40;
int local_38;
int local_2c;
int8 *local_18;
int8 *local_10;
local_18 = param_2;
local_10 = param_1;
if (*(int *)((long)param_1 + 0x14) < *(int *)((long)param_2 + 0x14)) {
local_18 = param_1;
local_10 = param_2;
}
local_2c = *(int *)(local_10 + 1);
iVar1 = *(int *)((long)local_10 + 0x14);
iVar2 = *(int *)((long)local_18 + 0x14);
local_38 = iVar1 + iVar2;
if (*(int *)((long)local_10 + 0xc) < local_38) {
local_2c = local_2c + 1;
}
plVar6 = (long *)Balloc(local_2c,param_3);
local_40 = (uint *)*plVar6;
puVar7 = local_40 + local_38;
for (; local_40 < puVar7; local_40 = local_40 + 1) {
*local_40 = 0;
}
puVar4 = (uint *)*local_10;
puVar5 = (uint *)*local_18;
local_70 = (uint *)*plVar6;
local_58 = puVar5;
while (local_58 < puVar5 + iVar2) {
uVar3 = *local_58;
if (uVar3 != 0) {
local_68 = local_70;
local_80 = 0;
local_40 = puVar4;
do {
puVar9 = local_40 + 1;
uVar8 = (ulong)*local_40 * (ulong)uVar3 + (ulong)*local_68 + local_80;
local_80 = uVar8 >> 0x20;
puVar10 = local_68 + 1;
*local_68 = (uint)uVar8;
local_68 = puVar10;
local_40 = puVar9;
} while (puVar9 < puVar4 + iVar1);
*puVar10 = (uint)(uVar8 >> 0x20);
}
local_70 = local_70 + 1;
local_58 = local_58 + 1;
}
local_68 = (uint *)(*plVar6 + (long)local_38 * 4);
while( true ) {
bVar11 = false;
if (0 < local_38) {
bVar11 = *(int *)((long)local_68 + -4) == 0;
local_68 = (uint *)((long)local_68 + -4);
}
if (!bVar11) break;
local_38 = local_38 + -1;
}
*(int *)((long)plVar6 + 0x14) = local_38;
return plVar6;
}
|
|
13,373
|
mult
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static Bigint *mult(Bigint *a, Bigint *b, Stack_alloc *alloc)
{
Bigint *c;
int k, wa, wb, wc;
ULong *x, *xa, *xae, *xb, *xbe, *xc, *xc0;
ULong y;
ULLong carry, z;
if (a->wds < b->wds)
{
c= a;
a= b;
b= c;
}
k= a->k;
wa= a->wds;
wb= b->wds;
wc= wa + wb;
if (wc > a->maxwds)
k++;
c= Balloc(k, alloc);
for (x= c->p.x, xa= x + wc; x < xa; x++)
*x= 0;
xa= a->p.x;
xae= xa + wa;
xb= b->p.x;
xbe= xb + wb;
xc0= c->p.x;
for (; xb < xbe; xc0++)
{
if ((y= *xb++))
{
x= xa;
xc= xc0;
carry= 0;
do
{
z= *x++ * (ULLong)y + *xc + carry;
carry= z >> 32;
*xc++= (ULong) (z & FFFFFFFF);
}
while (x < xae);
*xc= (ULong) carry;
}
}
for (xc0= c->p.x, xc= xc0 + wc; wc > 0 && !*--xc; --wc) ;
c->wds= wc;
return c;
}
|
O3
|
c
|
mult:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x14(%rdi), %eax
cmpl 0x14(%rsi), %eax
movq %rsi, %r12
cmovlq %rdi, %r12
cmovlq %rsi, %r14
movslq 0x14(%r14), %rax
movslq 0x14(%r12), %r13
movq %rax, -0x30(%rbp)
leaq (%rax,%r13), %r15
xorl %edi, %edi
cmpl 0xc(%r14), %r15d
setg %dil
addl 0x8(%r14), %edi
movq %rdx, %rsi
callq 0x27173
movq %rax, %rbx
movq (%rax), %rdi
testl %r15d, %r15d
jle 0x26e96
leaq (%rdi,%r15,4), %rax
leaq 0x4(%rdi), %rcx
cmpq %rcx, %rax
cmovaq %rax, %rcx
movq %rdi, %rdx
notq %rdx
addq %rcx, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
xorl %esi, %esi
callq 0x13260
movq (%rbx), %rdi
testl %r13d, %r13d
jle 0x26efe
movq (%r14), %rax
movq -0x30(%rbp), %rcx
leaq (%rax,%rcx,4), %rcx
movq (%r12), %rdx
leaq (%rdx,%r13,4), %rsi
movl (%rdx), %r8d
testq %r8, %r8
je 0x26eee
xorl %r9d, %r9d
xorl %r10d, %r10d
leaq (%rax,%r9), %r11
addq $0x4, %r11
movl -0x4(%r11), %r14d
imulq %r8, %r14
movl (%rdi,%r9), %r12d
addq %r10, %r12
addq %r14, %r12
movq %r12, %r10
shrq $0x20, %r10
movl %r12d, (%rdi,%r9)
addq $0x4, %r9
cmpq %rcx, %r11
jb 0x26ebc
movl %r10d, (%rdi,%r9)
addq $0x4, %rdx
addq $0x4, %rdi
cmpq %rsi, %rdx
jb 0x26eae
movq (%rbx), %rdi
testl %r15d, %r15d
jle 0x26f24
leaq (%rdi,%r15,4), %rax
addq $-0x4, %rax
cmpl $0x0, (%rax)
jne 0x26f24
leal -0x1(%r15), %ecx
addq $-0x4, %rax
cmpl $0x1, %r15d
movl %ecx, %r15d
jg 0x26f0b
xorl %r15d, %r15d
movl %r15d, 0x14(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
mult:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, rdi
mov eax, [rdi+14h]
cmp eax, [rsi+14h]
mov r12, rsi
cmovl r12, rdi
cmovl r14, rsi
movsxd rax, dword ptr [r14+14h]
movsxd r13, dword ptr [r12+14h]
mov [rbp+var_30], rax
lea r15, [rax+r13]
xor edi, edi
cmp r15d, [r14+0Ch]
setnle dil
add edi, [r14+8]
mov rsi, rdx
call Balloc
mov rbx, rax
mov rdi, [rax]
test r15d, r15d
jle short loc_26E96
lea rax, [rdi+r15*4]
lea rcx, [rdi+4]
cmp rax, rcx
cmova rcx, rax
mov rdx, rdi
not rdx
add rdx, rcx
and rdx, 0FFFFFFFFFFFFFFFCh
add rdx, 4
xor esi, esi
call _memset
mov rdi, [rbx]
loc_26E96:
test r13d, r13d
jle short loc_26EFE
mov rax, [r14]
mov rcx, [rbp+var_30]
lea rcx, [rax+rcx*4]
mov rdx, [r12]
lea rsi, [rdx+r13*4]
loc_26EAE:
mov r8d, [rdx]
test r8, r8
jz short loc_26EEE
xor r9d, r9d
xor r10d, r10d
loc_26EBC:
lea r11, [rax+r9]
add r11, 4
mov r14d, [r11-4]
imul r14, r8
mov r12d, [rdi+r9]
add r12, r10
add r12, r14
mov r10, r12
shr r10, 20h
mov [rdi+r9], r12d
add r9, 4
cmp r11, rcx
jb short loc_26EBC
mov [rdi+r9], r10d
loc_26EEE:
add rdx, 4
add rdi, 4
cmp rdx, rsi
jb short loc_26EAE
mov rdi, [rbx]
loc_26EFE:
test r15d, r15d
jle short loc_26F24
lea rax, [rdi+r15*4]
add rax, 0FFFFFFFFFFFFFFFCh
loc_26F0B:
cmp dword ptr [rax], 0
jnz short loc_26F24
lea ecx, [r15-1]
add rax, 0FFFFFFFFFFFFFFFCh
cmp r15d, 1
mov r15d, ecx
jg short loc_26F0B
xor r15d, r15d
loc_26F24:
mov [rbx+14h], r15d
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long mult(long long *a1, long long *a2, long long a3, long long a4)
{
long long *v4; // r14
long long *v5; // r12
long long v6; // r13
long long v7; // r15
long long v8; // rbx
long long v9; // rdi
long long v10; // rcx
long long v11; // rax
unsigned long long v12; // rcx
_DWORD *v13; // rdx
unsigned long long v14; // rsi
long long v15; // r8
long long v16; // r9
unsigned long long v17; // r10
unsigned long long v18; // r11
unsigned long long v19; // r12
_DWORD *v20; // rax
bool v21; // cc
long long v23; // [rsp+0h] [rbp-30h]
v4 = a1;
v5 = a2;
if ( *((_DWORD *)a1 + 5) < *((_DWORD *)a2 + 5) )
{
v5 = a1;
v4 = a2;
}
v6 = *((int *)v5 + 5);
v23 = *((int *)v4 + 5);
v7 = v23 + v6;
v8 = Balloc(*((_DWORD *)v4 + 2) + (unsigned int)((int)v23 + (int)v6 > *((_DWORD *)v4 + 3)), a3, a3, a4);
v9 = *(_QWORD *)v8;
if ( (int)v23 + (int)v6 > 0 )
{
v10 = v9 + 4;
if ( v9 + 4 * v7 > (unsigned long long)(v9 + 4) )
v10 = v9 + 4 * v7;
memset(v9, 0LL, ((v10 + ~v9) & 0xFFFFFFFFFFFFFFFCLL) + 4);
v9 = *(_QWORD *)v8;
}
if ( (int)v6 > 0 )
{
v11 = *v4;
v12 = *v4 + 4 * v23;
v13 = (_DWORD *)*v5;
v14 = *v5 + 4 * v6;
do
{
v15 = (unsigned int)*v13;
if ( *v13 )
{
v16 = 0LL;
v17 = 0LL;
do
{
v18 = v11 + v16 + 4;
v19 = v15 * *(unsigned int *)(v11 + v16) + v17 + *(unsigned int *)(v9 + v16);
v17 = HIDWORD(v19);
*(_DWORD *)(v9 + v16) = v19;
v16 += 4LL;
}
while ( v18 < v12 );
*(_DWORD *)(v9 + v16) = HIDWORD(v19);
}
++v13;
v9 += 4LL;
}
while ( (unsigned long long)v13 < v14 );
v9 = *(_QWORD *)v8;
}
if ( (int)v7 > 0 )
{
v20 = (_DWORD *)(v9 + 4 * v7 - 4);
while ( !*v20 )
{
--v20;
v21 = (int)v7 <= 1;
LODWORD(v7) = v7 - 1;
if ( v21 )
{
LODWORD(v7) = 0;
break;
}
}
}
*(_DWORD *)(v8 + 20) = v7;
return v8;
}
|
mult:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV EAX,dword ptr [RDI + 0x14]
CMP EAX,dword ptr [RSI + 0x14]
MOV R12,RSI
CMOVL R12,RDI
CMOVL R14,RSI
MOVSXD RAX,dword ptr [R14 + 0x14]
MOVSXD R13,dword ptr [R12 + 0x14]
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[RAX + R13*0x1]
XOR EDI,EDI
CMP R15D,dword ptr [R14 + 0xc]
SETG DIL
ADD EDI,dword ptr [R14 + 0x8]
MOV RSI,RDX
CALL 0x00127173
MOV RBX,RAX
MOV RDI,qword ptr [RAX]
TEST R15D,R15D
JLE 0x00126e96
LEA RAX,[RDI + R15*0x4]
LEA RCX,[RDI + 0x4]
CMP RAX,RCX
CMOVA RCX,RAX
MOV RDX,RDI
NOT RDX
ADD RDX,RCX
AND RDX,-0x4
ADD RDX,0x4
XOR ESI,ESI
CALL 0x00113260
MOV RDI,qword ptr [RBX]
LAB_00126e96:
TEST R13D,R13D
JLE 0x00126efe
MOV RAX,qword ptr [R14]
MOV RCX,qword ptr [RBP + -0x30]
LEA RCX,[RAX + RCX*0x4]
MOV RDX,qword ptr [R12]
LEA RSI,[RDX + R13*0x4]
LAB_00126eae:
MOV R8D,dword ptr [RDX]
TEST R8,R8
JZ 0x00126eee
XOR R9D,R9D
XOR R10D,R10D
LAB_00126ebc:
LEA R11,[RAX + R9*0x1]
ADD R11,0x4
MOV R14D,dword ptr [R11 + -0x4]
IMUL R14,R8
MOV R12D,dword ptr [RDI + R9*0x1]
ADD R12,R10
ADD R12,R14
MOV R10,R12
SHR R10,0x20
MOV dword ptr [RDI + R9*0x1],R12D
ADD R9,0x4
CMP R11,RCX
JC 0x00126ebc
MOV dword ptr [RDI + R9*0x1],R10D
LAB_00126eee:
ADD RDX,0x4
ADD RDI,0x4
CMP RDX,RSI
JC 0x00126eae
MOV RDI,qword ptr [RBX]
LAB_00126efe:
TEST R15D,R15D
JLE 0x00126f24
LEA RAX,[RDI + R15*0x4]
ADD RAX,-0x4
LAB_00126f0b:
CMP dword ptr [RAX],0x0
JNZ 0x00126f24
LEA ECX,[R15 + -0x1]
ADD RAX,-0x4
CMP R15D,0x1
MOV R15D,ECX
JG 0x00126f0b
XOR R15D,R15D
LAB_00126f24:
MOV dword ptr [RBX + 0x14],R15D
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 * mult(long *param_1,long *param_2)
{
void *pvVar1;
uint *puVar2;
uint *puVar3;
int iVar4;
int iVar5;
uint uVar6;
long lVar7;
int8 *puVar8;
int *piVar9;
void *pvVar10;
uint *puVar11;
void *__s;
long lVar12;
ulong uVar13;
ulong uVar14;
long *plVar15;
int iVar16;
ulong uVar17;
plVar15 = param_1;
if (*(int *)((long)param_1 + 0x14) < *(int *)((long)param_2 + 0x14)) {
plVar15 = param_2;
param_2 = param_1;
}
iVar4 = *(int *)((long)plVar15 + 0x14);
iVar5 = *(int *)((long)param_2 + 0x14);
uVar17 = (long)iVar4 + (long)iVar5;
iVar16 = (int)uVar17;
puVar8 = (int8 *)Balloc((uint)(*(int *)((long)plVar15 + 0xc) < iVar16) + (int)plVar15[1]);
__s = (void *)*puVar8;
if (0 < iVar16) {
pvVar1 = (void *)((long)__s + uVar17 * 4);
pvVar10 = (void *)((long)__s + 4U);
if ((void *)((long)__s + 4U) < pvVar1) {
pvVar10 = pvVar1;
}
memset(__s,0,(~(ulong)__s + (long)pvVar10 & 0xfffffffffffffffc) + 4);
__s = (void *)*puVar8;
}
if (0 < iVar5) {
lVar7 = *plVar15;
puVar11 = (uint *)*param_2;
puVar2 = puVar11 + iVar5;
do {
uVar6 = *puVar11;
if ((ulong)uVar6 != 0) {
lVar12 = 0;
uVar13 = 0;
do {
puVar3 = (uint *)(lVar7 + lVar12);
uVar14 = *(uint *)((long)__s + lVar12) + uVar13 + (ulong)*puVar3 * (ulong)uVar6;
uVar13 = uVar14 >> 0x20;
*(int *)((long)__s + lVar12) = (int)uVar14;
lVar12 = lVar12 + 4;
} while (puVar3 + 1 < (uint *)(lVar7 + (long)iVar4 * 4));
*(int *)((long)__s + lVar12) = (int)(uVar14 >> 0x20);
}
puVar11 = puVar11 + 1;
__s = (void *)((long)__s + 4);
} while (puVar11 < puVar2);
__s = (void *)*puVar8;
}
if (0 < iVar16) {
piVar9 = (int *)((long)__s + uVar17 * 4);
do {
piVar9 = piVar9 + -1;
if (*piVar9 != 0) goto LAB_00126f24;
iVar4 = (int)uVar17;
uVar17 = (ulong)(iVar4 - 1);
} while (1 < iVar4);
uVar17 = 0;
}
LAB_00126f24:
*(int *)((long)puVar8 + 0x14) = (int)uVar17;
return puVar8;
}
|
|
13,374
|
ma_free_root
|
eloqsql/libmariadb/libmariadb/ma_alloc.c
|
void ma_free_root(MA_MEM_ROOT *root, myf MyFlags)
{
reg1 MA_USED_MEM *next,*old;
if (!root)
return; /* purecov: inspected */
if (!(MyFlags & MY_KEEP_PREALLOC))
root->pre_alloc=0;
for ( next=root->used; next ;)
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
for (next= root->free ; next ; )
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
root->used=root->free=0;
if (root->pre_alloc)
{
root->free=root->pre_alloc;
root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM));
root->free->next=0;
}
}
|
O0
|
c
|
ma_free_root:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x48b1b
jmp 0x48c09
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x48b32
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x48b71
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x48b6f
movq -0x20(%rbp), %rdi
callq 0x361a0
jmp 0x48b3e
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x48baf
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x48bad
movq -0x20(%rbp), %rdi
callq 0x361a0
jmp 0x48b7c
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x48c09
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rcx
subq $0x18, %rcx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
|
ma_free_root:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_8], 0
jnz short loc_48B1B
jmp loc_48C09
loc_48B1B:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 0
jnz short loc_48B32
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_48B32:
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
loc_48B3E:
cmp [rbp+var_18], 0
jz short loc_48B71
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_48B6F
mov rdi, [rbp+var_20]
call _free
loc_48B6F:
jmp short loc_48B3E
loc_48B71:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
loc_48B7C:
cmp [rbp+var_18], 0
jz short loc_48BAF
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_48BAD
mov rdi, [rbp+var_20]
call _free
loc_48BAD:
jmp short loc_48B7C
loc_48BAF:
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_48C09
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rax+10h]
sub rcx, 18h
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_8]
mov rax, [rax]
mov qword ptr [rax], 0
loc_48C09:
add rsp, 20h
pop rbp
retn
|
_QWORD * ma_free_root(_QWORD *a1, char a2)
{
_QWORD *result; // rax
_QWORD *v3; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+0h] [rbp-20h]
_QWORD *v5; // [rsp+8h] [rbp-18h]
_QWORD *v6; // [rsp+8h] [rbp-18h]
if ( a1 )
{
if ( (a2 & 1) == 0 )
a1[2] = 0LL;
v5 = (_QWORD *)a1[1];
while ( v5 )
{
v3 = v5;
v5 = (_QWORD *)*v5;
if ( v3 != (_QWORD *)a1[2] )
free(v3);
}
v6 = (_QWORD *)*a1;
while ( v6 )
{
v4 = v6;
v6 = (_QWORD *)*v6;
if ( v4 != (_QWORD *)a1[2] )
free(v4);
}
*a1 = 0LL;
a1[1] = 0LL;
result = a1;
if ( a1[2] )
{
*a1 = a1[2];
*(_QWORD *)(*a1 + 8LL) = *(_QWORD *)(a1[2] + 16LL) - 24LL;
result = (_QWORD *)*a1;
*(_QWORD *)*a1 = 0LL;
}
}
return result;
}
|
ma_free_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x00148b1b
JMP 0x00148c09
LAB_00148b1b:
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x00148b32
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_00148b32:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
LAB_00148b3e:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00148b71
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00148b6f
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001361a0
LAB_00148b6f:
JMP 0x00148b3e
LAB_00148b71:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_00148b7c:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00148baf
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00148bad
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x001361a0
LAB_00148bad:
JMP 0x00148b7c
LAB_00148baf:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00148c09
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],0x0
LAB_00148c09:
ADD RSP,0x20
POP RBP
RET
|
void ma_free_root(long *param_1,uint param_2)
{
int8 *puVar1;
int8 *local_20;
if (param_1 != (long *)0x0) {
if ((param_2 & 1) == 0) {
param_1[2] = 0;
}
puVar1 = (int8 *)param_1[1];
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
puVar1 = (int8 *)*param_1;
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
*param_1 = 0;
param_1[1] = 0;
if (param_1[2] != 0) {
*param_1 = param_1[2];
*(long *)(*param_1 + 8) = *(long *)(param_1[2] + 0x10) + -0x18;
*(int8 *)*param_1 = 0;
}
}
return;
}
|
|
13,375
|
ma_soft_sync_background
|
eloqsql/storage/maria/ma_loghandler.c
|
static pthread_handler_t
ma_soft_sync_background( void *arg __attribute__((unused)))
{
my_thread_init();
{
DBUG_ENTER("ma_soft_sync_background");
for(;;)
{
ulonglong prev_loop= microsecond_interval_timer();
ulonglong time, sleep;
uint32 min, max, sync_request;
min= soft_sync_min;
max= soft_sync_max;
sync_request= soft_need_sync;
soft_sync_min= max;
soft_need_sync= 0;
sleep= group_commit_wait;
if (sync_request)
translog_sync_files(min, max, FALSE);
time= microsecond_interval_timer() - prev_loop;
if (time > sleep)
sleep= 0;
else
sleep-= time;
if (my_service_thread_sleep(&soft_sync_control, sleep))
break;
}
my_thread_end();
DBUG_RETURN(0);
}
}
|
O3
|
c
|
ma_soft_sync_background:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
callq 0xa17e5
movabsq $0x20c49ba5e353f7cf, %r12 # imm = 0x20C49BA5E353F7CF
leaq 0x336296(%rip), %rbx # 0x3841b8
callq 0x9e0ac
shrq $0x3, %rax
mulq %r12
movq %rdx, %r15
movl 0xbb17b5(%rip), %edi # 0xbff6ec
movl 0xbb17b3(%rip), %esi # 0xbff6f0
cmpb $0x0, 0xbb17b0(%rip) # 0xbff6f4
movl %esi, 0xbb17a2(%rip) # 0xbff6ec
movb $0x1, 0xbb17a3(%rip) # 0xbff6f4
movl 0xbb178c(%rip), %r14d # 0xbff6e4
jne 0x4df61
xorl %edx, %edx
callq 0x4d1ae
shrq $0x4, %r15
callq 0x9e0ac
shrq $0x3, %rax
mulq %r12
shrq $0x4, %rdx
subq %r15, %rdx
subq %rdx, %r14
jae 0x4df80
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x50584
testb %al, %al
je 0x4df22
callq 0xa1a60
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
|
ma_soft_sync_background:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
call my_thread_init
mov r12, 20C49BA5E353F7CFh
lea rbx, soft_sync_control
loc_4DF22:
call my_interval_timer
shr rax, 3
mul r12
mov r15, rdx
mov edi, cs:soft_sync_min
mov esi, cs:soft_sync_max
cmp cs:soft_need_sync, 0
mov cs:soft_sync_min, esi
mov cs:soft_need_sync, 1
mov r14d, cs:group_commit_wait
jnz short loc_4DF61
xor edx, edx
call translog_sync_files
loc_4DF61:
shr r15, 4
call my_interval_timer
shr rax, 3
mul r12
shr rdx, 4
sub rdx, r15
sub r14, rdx
jnb short loc_4DF80
xor r14d, r14d
loc_4DF80:
mov rdi, rbx
mov rsi, r14
call my_service_thread_sleep
test al, al
jz short loc_4DF22
call my_thread_end
xor eax, eax
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
|
long long ma_soft_sync_background()
{
unsigned long long v0; // r15
long long v1; // rdi
bool v2; // zf
unsigned long long v3; // r14
unsigned long long v4; // rdx
bool v5; // cf
unsigned long long v6; // r14
my_thread_init();
do
{
v0 = (0x20C49BA5E353F7CFLL * (unsigned __int128)((unsigned long long)((long long (*)(void))my_interval_timer)() >> 3)) >> 64;
v1 = (unsigned int)soft_sync_min;
v2 = soft_need_sync == 0;
soft_sync_min = soft_sync_max;
soft_need_sync = 1;
v3 = (unsigned int)group_commit_wait;
if ( v2 )
translog_sync_files(v1, soft_sync_max, 0);
v4 = my_interval_timer(v1) / 0x3E8uLL - (v0 >> 4);
v5 = v3 < v4;
v6 = v3 - v4;
if ( v5 )
v6 = 0LL;
}
while ( !(unsigned __int8)my_service_thread_sleep(&soft_sync_control, v6) );
my_thread_end();
return 0LL;
}
|
ma_soft_sync_background:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
CALL 0x001a17e5
MOV R12,0x20c49ba5e353f7cf
LEA RBX,[0x4841b8]
LAB_0014df22:
CALL 0x0019e0ac
SHR RAX,0x3
MUL R12
MOV R15,RDX
MOV EDI,dword ptr [0x00cff6ec]
MOV ESI,dword ptr [0x00cff6f0]
CMP byte ptr [0x00cff6f4],0x0
MOV dword ptr [0x00cff6ec],ESI
MOV byte ptr [0x00cff6f4],0x1
MOV R14D,dword ptr [0x00cff6e4]
JNZ 0x0014df61
XOR EDX,EDX
CALL 0x0014d1ae
LAB_0014df61:
SHR R15,0x4
CALL 0x0019e0ac
SHR RAX,0x3
MUL R12
SHR RDX,0x4
SUB RDX,R15
SUB R14,RDX
JNC 0x0014df80
XOR R14D,R14D
LAB_0014df80:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00150584
TEST AL,AL
JZ 0x0014df22
CALL 0x001a1a60
XOR EAX,EAX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8 ma_soft_sync_background(void)
{
int4 uVar1;
char cVar2;
ulong uVar3;
ulong uVar4;
ulong uVar5;
long lVar6;
bool bVar7;
my_thread_init();
do {
uVar3 = my_interval_timer();
uVar1 = soft_sync_min;
bVar7 = soft_need_sync == '\0';
soft_sync_min = soft_sync_max;
soft_need_sync = '\x01';
uVar5 = (ulong)group_commit_wait;
if (bVar7) {
translog_sync_files(uVar1,soft_sync_max,0);
}
uVar4 = my_interval_timer();
uVar3 = uVar4 / 1000 - uVar3 / 1000;
lVar6 = uVar5 - uVar3;
if (uVar5 < uVar3) {
lVar6 = 0;
}
cVar2 = my_service_thread_sleep(soft_sync_control,lVar6);
} while (cVar2 == '\0');
my_thread_end();
return 0;
}
|
|
13,376
|
process_str_arg
|
eloqsql/strings/my_vsnprintf.c
|
static char *process_str_arg(CHARSET_INFO *cs, char *to, const char *end,
longlong length_arg, size_t width, char *par,
uint print_type, my_bool nice_cut)
{
int well_formed_error;
uint dots= 0;
size_t plen, left_len= (size_t) (end - to) + 1, slen=0;
my_bool left_fill= 1;
size_t length;
/*
The sign of the length argument specific the string should be right
or left adjusted
*/
if (length_arg < 0)
{
length= (size_t) -length_arg;
left_fill= 0;
}
else
length= (size_t) length_arg;
if (!par)
par = (char*) "(null)";
if (nice_cut)
{
plen= slen= strnlen(par, width + 1);
if (plen > width)
plen= width;
if (left_len <= plen)
{
plen = left_len - 1;
length= plen;
}
if ((slen > plen))
{
if (plen < 3)
{
dots= (uint) plen;
plen= 0;
}
else
{
dots= 3;
plen-= 3;
}
}
}
else
{
plen= slen= strnlen(par, width);
dots= 0;
if (left_len <= plen)
{
plen = left_len - 1;
length= plen;
}
}
plen= my_well_formed_length(cs, par, par + plen, width, &well_formed_error);
if (print_type & ESCAPED_ARG)
{
const char *org_to= to;
to= backtick_string(cs, to, end, par, plen + dots, '`', MY_TEST(dots));
plen= (size_t) (to - org_to);
dots= 0;
}
else
{
if (left_fill)
{
if (plen + dots < length)
to= strfill(to, length - plen - dots, ' ');
}
to= strnmov(to,par,plen);
if (dots)
to= strfill(to, dots, '.');
}
if (!left_fill && plen + dots < length)
to= strfill(to, length - plen - dots, ' ');
return to;
}
|
O3
|
c
|
process_str_arg:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r15
movq %rdi, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq %rdx, %r14
movq %rsi, -0x38(%rbp)
subq %rsi, %r14
leaq 0x1(%r14), %rbx
movq %rcx, %r13
negq %r13
movq %rcx, -0x40(%rbp)
cmovsq %rcx, %r13
testq %r9, %r9
leaq 0x8f4f(%rip), %r12 # 0xe82a1
cmovneq %r9, %r12
cmpb $0x0, 0x18(%rbp)
je 0xdf39a
leaq 0x1(%r15), %rsi
movq %r12, %rdi
callq 0x2a4f0
cmpq %r15, %rax
movq %r15, %rdx
cmovbq %rax, %rdx
cmpq %rdx, %rbx
cmovbeq %r14, %rdx
cmovbeq %r14, %r13
movl $0x0, -0x2c(%rbp)
cmpq %rdx, %rax
movq %r13, -0x48(%rbp)
jbe 0xdf3cb
cmpq $0x2, %rdx
ja 0xdf3c0
movl %edx, -0x2c(%rbp)
xorl %edx, %edx
jmp 0xdf3cb
movq %r12, %rdi
movq %r15, %rsi
callq 0x2a4f0
movq %rax, %rdx
cmpq %rax, %rbx
cmovbeq %r14, %rdx
cmovbeq %r14, %r13
movq %r13, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
jmp 0xdf3cb
addq $-0x3, %rdx
movl $0x3, -0x2c(%rbp)
addq %r12, %rdx
movq -0x58(%rbp), %rdi
movq 0xb8(%rdi), %rax
leaq -0x70(%rbp), %rbx
movq %r12, %rsi
movq %r15, %rcx
movq %rbx, %r8
callq *0xc8(%rax)
movq (%rbx), %r13
subq %r12, %r13
movl 0x10(%rbp), %eax
testb $0x8, %al
jne 0xdf433
movq -0x40(%rbp), %rbx
testq %rbx, %rbx
js 0xdf506
movl -0x2c(%rbp), %r14d
movl %r14d, %eax
addq %r13, %rax
movq -0x48(%rbp), %rsi
subq %rax, %rsi
jbe 0xdf510
movq -0x38(%rbp), %rdi
movl $0x20, %edx
callq 0xdfc54
movq %rax, %rdi
jmp 0xdf514
movl -0x2c(%rbp), %eax
addq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
cmpq %r13, %r14
jbe 0xdf590
movq -0x38(%rbp), %rax
leaq 0x1(%rax), %r15
movb $0x60, (%rax)
testq %r13, %r13
jle 0xdf53f
addq %r12, %r13
xorl %r14d, %r14d
cmpl $0x0, -0x2c(%rbp)
je 0xdf496
movl %r14d, %eax
movq %r15, -0x70(%rbp,%rax,8)
movl %r14d, %eax
incl %eax
movl $0xaaaaaaab, %ecx # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x21, %rax
leal (%rax,%rax,2), %eax
negl %eax
addl %eax, %r14d
incl %r14d
movb (%r12), %bl
movq -0x58(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r12, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x1, %ecx
cmovll %ecx, %eax
jge 0xdf4d7
cmpb $0x60, %bl
jne 0xdf4d7
leaq 0x1(%r15), %rdi
cmpq -0x50(%rbp), %rdi
jae 0xdf590
movb $0x60, (%r15)
jmp 0xdf4da
movq %r15, %rdi
movl %eax, %ebx
leaq (%rdi,%rbx), %rax
cmpq -0x50(%rbp), %rax
jae 0xdf590
movq %r12, %rsi
movq %rbx, %rdx
callq 0xdfcb4
movq %rax, %r15
addq %rbx, %r12
cmpq %r13, %r12
jb 0xdf46b
jmp 0xdf542
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %r14d
jmp 0xdf514
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xdfcb4
movq %rax, %r15
testl %r14d, %r14d
je 0xdf5a4
movl %r14d, %r14d
movq %r15, %rdi
movq %r14, %rsi
movl $0x2e, %edx
callq 0xdfc54
movq %rax, %r15
jmp 0xdf5a7
xorl %r14d, %r14d
leaq 0x1(%r15), %rax
cmpq -0x50(%rbp), %rax
jae 0xdf590
cmpl $0x0, -0x2c(%rbp)
je 0xdf5f2
subl $0x1, %r14d
movl $0x2, %eax
cmovbl %eax, %r14d
movq -0x70(%rbp,%r14,8), %rdx
testq %rdx, %rdx
je 0xdf590
movl $0x1, %ecx
subl $0x1, %r14d
cmovbl %eax, %r14d
movq -0x70(%rbp,%r14,8), %r15
testq %r15, %r15
je 0xdf5da
incl %ecx
movq %r15, %rdx
cmpl $0x3, %ecx
jne 0xdf572
jmp 0xdf5dd
movq -0x38(%rbp), %rax
movb $0x0, (%rax)
movq %rax, %r15
movq -0x40(%rbp), %rbx
movq %r15, %r13
subq %rax, %r13
xorl %r14d, %r14d
testq %rbx, %rbx
jns 0xdf5c8
addq %r14, %r13
movq -0x48(%rbp), %rsi
subq %r13, %rsi
jbe 0xdf5c8
movq %r15, %rdi
movl $0x20, %edx
callq 0xdfc54
movq %rax, %r15
movq %r15, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r15
movl %ecx, %ebx
movq %r15, %rdi
movl $0x2e, %esi
movq %rbx, %rdx
callq 0x2a290
addq %rbx, %r15
movb $0x60, (%r15)
incq %r15
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %rax
jmp 0xdf59e
|
process_str_arg:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov r15, r8
mov [rbp+var_58], rdi
mov [rbp+var_50], rdx
mov r14, rdx
mov [rbp+var_38], rsi
sub r14, rsi
lea rbx, [r14+1]
mov r13, rcx
neg r13
mov [rbp+var_40], rcx
cmovs r13, rcx
test r9, r9
lea r12, aNull; "(null)"
cmovnz r12, r9
cmp [rbp+arg_8], 0
jz short loc_DF39A
lea rsi, [r15+1]
mov rdi, r12
call _strnlen
cmp rax, r15
mov rdx, r15
cmovb rdx, rax
cmp rbx, rdx
cmovbe rdx, r14
cmovbe r13, r14
mov [rbp+var_2C], 0
cmp rax, rdx
mov [rbp+var_48], r13
jbe short loc_DF3CB
cmp rdx, 2
ja short loc_DF3C0
mov [rbp+var_2C], edx
xor edx, edx
jmp short loc_DF3CB
loc_DF39A:
mov rdi, r12
mov rsi, r15
call _strnlen
mov rdx, rax
cmp rbx, rax
cmovbe rdx, r14
cmovbe r13, r14
mov [rbp+var_48], r13
mov [rbp+var_2C], 0
jmp short loc_DF3CB
loc_DF3C0:
add rdx, 0FFFFFFFFFFFFFFFDh
mov [rbp+var_2C], 3
loc_DF3CB:
add rdx, r12
mov rdi, [rbp+var_58]
mov rax, [rdi+0B8h]
lea rbx, [rbp+var_70]
mov rsi, r12
mov rcx, r15
mov r8, rbx
call qword ptr [rax+0C8h]
mov r13, [rbx]
sub r13, r12
mov eax, [rbp+arg_0]
test al, 8
jnz short loc_DF433
mov rbx, [rbp+var_40]
test rbx, rbx
js loc_DF506
mov r14d, [rbp+var_2C]
mov eax, r14d
add rax, r13
mov rsi, [rbp+var_48]
sub rsi, rax
jbe loc_DF510
mov rdi, [rbp+var_38]
mov edx, 20h ; ' '
call strfill
mov rdi, rax
jmp loc_DF514
loc_DF433:
mov eax, [rbp+var_2C]
add r13, rax
xorps xmm0, xmm0
movaps [rbp+var_70], xmm0
mov [rbp+var_60], 0
cmp r14, r13
jbe loc_DF590
mov rax, [rbp+var_38]
lea r15, [rax+1]
mov byte ptr [rax], 60h ; '`'
test r13, r13
jle loc_DF53F
add r13, r12
xor r14d, r14d
loc_DF46B:
cmp [rbp+var_2C], 0
jz short loc_DF496
mov eax, r14d
mov qword ptr [rbp+rax*8+var_70], r15
mov eax, r14d
inc eax
mov ecx, 0AAAAAAABh
imul rax, rcx
shr rax, 21h
lea eax, [rax+rax*2]
neg eax
add r14d, eax
inc r14d
loc_DF496:
mov bl, [r12]
mov rdi, [rbp+var_58]
mov rax, [rdi+0B8h]
mov rsi, r12
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 1
cmovl eax, ecx
jge short loc_DF4D7
cmp bl, 60h ; '`'
jnz short loc_DF4D7
lea rdi, [r15+1]
cmp rdi, [rbp+var_50]
jnb loc_DF590
mov byte ptr [r15], 60h ; '`'
jmp short loc_DF4DA
loc_DF4D7:
mov rdi, r15
loc_DF4DA:
mov ebx, eax
lea rax, [rdi+rbx]
cmp rax, [rbp+var_50]
jnb loc_DF590
mov rsi, r12
mov rdx, rbx
call strnmov
mov r15, rax
add r12, rbx
cmp r12, r13
jb loc_DF46B
jmp short loc_DF542
loc_DF506:
mov rdi, [rbp+var_38]
mov r14d, [rbp+var_2C]
jmp short loc_DF514
loc_DF510:
mov rdi, [rbp+var_38]
loc_DF514:
mov rsi, r12
mov rdx, r13
call strnmov
mov r15, rax
test r14d, r14d
jz short loc_DF5A4
mov r14d, r14d
mov rdi, r15
mov rsi, r14
mov edx, 2Eh ; '.'
call strfill
mov r15, rax
jmp short loc_DF5A7
loc_DF53F:
xor r14d, r14d
loc_DF542:
lea rax, [r15+1]
cmp rax, [rbp+var_50]
jnb short loc_DF590
cmp [rbp+var_2C], 0
jz loc_DF5F2
sub r14d, 1
mov eax, 2
cmovb r14d, eax
mov rdx, qword ptr [rbp+r14*8+var_70]
test rdx, rdx
jz short loc_DF590
mov ecx, 1
loc_DF572:
sub r14d, 1
cmovb r14d, eax
mov r15, qword ptr [rbp+r14*8+var_70]
test r15, r15
jz short loc_DF5DA
inc ecx
mov rdx, r15
cmp ecx, 3
jnz short loc_DF572
jmp short loc_DF5DD
loc_DF590:
mov rax, [rbp+var_38]
mov byte ptr [rax], 0
mov r15, rax
mov rbx, [rbp+var_40]
loc_DF59E:
mov r13, r15
sub r13, rax
loc_DF5A4:
xor r14d, r14d
loc_DF5A7:
test rbx, rbx
jns short loc_DF5C8
add r13, r14
mov rsi, [rbp+var_48]
sub rsi, r13
jbe short loc_DF5C8
mov rdi, r15
mov edx, 20h ; ' '
call strfill
mov r15, rax
loc_DF5C8:
mov rax, r15
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_DF5DA:
mov r15, rdx
loc_DF5DD:
mov ebx, ecx
mov rdi, r15
mov esi, 2Eh ; '.'
mov rdx, rbx
call _memset
add r15, rbx
loc_DF5F2:
mov byte ptr [r15], 60h ; '`'
inc r15
mov rbx, [rbp+var_40]
mov rax, [rbp+var_38]
jmp short loc_DF59E
|
long long process_str_arg(
long long a1,
_BYTE *a2,
unsigned long long a3,
long long a4,
unsigned long long a5,
const char *a6,
char a7,
char a8)
{
unsigned long long v9; // r14
unsigned long long v10; // rbx
long long v11; // r13
const char *v12; // r12
unsigned long long v13; // rax
unsigned long long v14; // rdx
long long v15; // rcx
long long v16; // r8
long long v17; // r9
long long v18; // r13
long long v19; // rbx
long long v20; // r14
unsigned long long v21; // rax
long long v22; // rdi
long long v23; // r13
_BYTE *v24; // r15
const char *v25; // r13
unsigned int v26; // r14d
char v27; // bl
unsigned int v28; // eax
_BYTE *v29; // rdi
long long v30; // rbx
long long v31; // rax
long long v32; // r15
bool v33; // cf
long long v34; // r14
long long v35; // rdx
unsigned int v36; // ecx
long long v37; // r15
_BYTE *v38; // rax
unsigned long long v39; // r13
long long v41; // rbx
__int128 v42; // [rsp+0h] [rbp-70h] BYREF
long long v43; // [rsp+10h] [rbp-60h]
long long v44; // [rsp+18h] [rbp-58h]
unsigned long long v45; // [rsp+20h] [rbp-50h]
unsigned long long v46; // [rsp+28h] [rbp-48h]
long long v47; // [rsp+30h] [rbp-40h]
_BYTE *v48; // [rsp+38h] [rbp-38h]
unsigned int v49; // [rsp+44h] [rbp-2Ch]
v44 = a1;
v45 = a3;
v48 = a2;
v9 = a3 - (_QWORD)a2;
v10 = a3 - (_QWORD)a2 + 1;
v11 = -a4;
v47 = a4;
if ( a4 > 0 )
v11 = a4;
v12 = "(null)";
if ( a6 )
v12 = a6;
if ( a8 )
{
v13 = strnlen(v12, a5 + 1);
v14 = a5;
if ( v13 < a5 )
v14 = v13;
if ( v10 <= v14 )
{
v14 = v9;
v11 = v9;
}
v49 = 0;
v46 = v11;
if ( v13 > v14 )
{
if ( v14 > 2 )
{
v14 -= 3LL;
v49 = 3;
}
else
{
v49 = v14;
v14 = 0LL;
}
}
}
else
{
v14 = strnlen(v12, a5);
if ( v10 <= v14 )
{
v14 = v9;
v11 = v9;
}
v46 = v11;
v49 = 0;
}
(*(void ( **)(long long, const char *, const char *, unsigned long long, __int128 *))(*(_QWORD *)(v44 + 184)
+ 200LL))(
v44,
v12,
&v12[v14],
a5,
&v42);
v18 = v42 - (_QWORD)v12;
if ( (a7 & 8) != 0 )
{
v23 = v49 + v18;
v42 = 0LL;
v43 = 0LL;
if ( v9 > v23 )
{
v24 = v48 + 1;
*v48 = 96;
if ( v23 > 0 )
{
v25 = &v12[v23];
v26 = 0;
while ( 1 )
{
if ( v49 )
{
*((_QWORD *)&v42 + v26) = v24;
v15 = 2863311531LL;
v26 += -3 * ((v26 + 1) / 3) + 1;
}
v27 = *v12;
v28 = (*(long long ( **)(long long, const char *, const char *, long long, long long, long long, _QWORD, _QWORD, long long))(*(_QWORD *)(v44 + 184) + 192LL))(
v44,
v12,
v25,
v15,
v16,
v17,
v42,
*((_QWORD *)&v42 + 1),
v43);
if ( (int)v28 < 2 && (v28 = 1, v27 == 96) )
{
v29 = v24 + 1;
if ( (unsigned long long)(v24 + 1) >= v45 )
goto LABEL_50;
*v24 = 96;
}
else
{
v29 = v24;
}
v30 = v28;
if ( (unsigned long long)&v29[v28] >= v45 )
goto LABEL_50;
v24 = (_BYTE *)strnmov(v29, v12, v28);
v12 += v30;
if ( v12 >= v25 )
goto LABEL_39;
}
}
v26 = 0;
LABEL_39:
if ( (unsigned long long)(v24 + 1) >= v45 )
goto LABEL_50;
if ( !v49 )
{
LABEL_59:
*v24 = 96;
v32 = (long long)(v24 + 1);
v19 = v47;
v38 = v48;
goto LABEL_51;
}
v33 = v26 == 0;
v34 = v26 - 1;
if ( v33 )
v34 = 2LL;
v35 = *((_QWORD *)&v42 + v34);
if ( v35 )
{
v36 = 1;
while ( 1 )
{
v33 = (_DWORD)v34 == 0;
v34 = (unsigned int)(v34 - 1);
if ( v33 )
v34 = 2LL;
v37 = *((_QWORD *)&v42 + v34);
if ( !v37 )
break;
++v36;
v35 = *((_QWORD *)&v42 + v34);
if ( v36 == 3 )
goto LABEL_58;
}
v37 = v35;
LABEL_58:
v41 = v36;
memset(v37, 46LL, v36);
v24 = (_BYTE *)(v41 + v37);
goto LABEL_59;
}
}
LABEL_50:
v38 = v48;
*v48 = 0;
v32 = (long long)v38;
v19 = v47;
LABEL_51:
v18 = v32 - (_QWORD)v38;
LABEL_52:
v20 = 0LL;
goto LABEL_53;
}
v19 = v47;
if ( v47 < 0 )
{
v22 = (long long)v48;
LODWORD(v20) = v49;
}
else
{
LODWORD(v20) = v49;
v21 = v18 + v49;
if ( v46 <= v21 )
v22 = (long long)v48;
else
v22 = strfill(v48, v46 - v21, 32LL);
}
v31 = strnmov(v22, v12, v18);
v32 = v31;
if ( !(_DWORD)v20 )
goto LABEL_52;
v20 = (unsigned int)v20;
v32 = strfill(v31, (unsigned int)v20, 46LL);
LABEL_53:
if ( v19 < 0 )
{
v39 = v20 + v18;
if ( v46 > v39 )
return strfill(v32, v46 - v39, 32LL);
}
return v32;
}
|
process_str_arg:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV R15,R8
MOV qword ptr [RBP + -0x58],RDI
MOV qword ptr [RBP + -0x50],RDX
MOV R14,RDX
MOV qword ptr [RBP + -0x38],RSI
SUB R14,RSI
LEA RBX,[R14 + 0x1]
MOV R13,RCX
NEG R13
MOV qword ptr [RBP + -0x40],RCX
CMOVS R13,RCX
TEST R9,R9
LEA R12,[0x1e82a1]
CMOVNZ R12,R9
CMP byte ptr [RBP + 0x18],0x0
JZ 0x001df39a
LEA RSI,[R15 + 0x1]
MOV RDI,R12
CALL 0x0012a4f0
CMP RAX,R15
MOV RDX,R15
CMOVC RDX,RAX
CMP RBX,RDX
CMOVBE RDX,R14
CMOVBE R13,R14
MOV dword ptr [RBP + -0x2c],0x0
CMP RAX,RDX
MOV qword ptr [RBP + -0x48],R13
JBE 0x001df3cb
CMP RDX,0x2
JA 0x001df3c0
MOV dword ptr [RBP + -0x2c],EDX
XOR EDX,EDX
JMP 0x001df3cb
LAB_001df39a:
MOV RDI,R12
MOV RSI,R15
CALL 0x0012a4f0
MOV RDX,RAX
CMP RBX,RAX
CMOVBE RDX,R14
CMOVBE R13,R14
MOV qword ptr [RBP + -0x48],R13
MOV dword ptr [RBP + -0x2c],0x0
JMP 0x001df3cb
LAB_001df3c0:
ADD RDX,-0x3
MOV dword ptr [RBP + -0x2c],0x3
LAB_001df3cb:
ADD RDX,R12
MOV RDI,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RDI + 0xb8]
LEA RBX,[RBP + -0x70]
MOV RSI,R12
MOV RCX,R15
MOV R8,RBX
CALL qword ptr [RAX + 0xc8]
MOV R13,qword ptr [RBX]
SUB R13,R12
MOV EAX,dword ptr [RBP + 0x10]
TEST AL,0x8
JNZ 0x001df433
MOV RBX,qword ptr [RBP + -0x40]
TEST RBX,RBX
JS 0x001df506
MOV R14D,dword ptr [RBP + -0x2c]
MOV EAX,R14D
ADD RAX,R13
MOV RSI,qword ptr [RBP + -0x48]
SUB RSI,RAX
JBE 0x001df510
MOV RDI,qword ptr [RBP + -0x38]
MOV EDX,0x20
CALL 0x001dfc54
MOV RDI,RAX
JMP 0x001df514
LAB_001df433:
MOV EAX,dword ptr [RBP + -0x2c]
ADD R13,RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBP + -0x70],XMM0
MOV qword ptr [RBP + -0x60],0x0
CMP R14,R13
JBE 0x001df590
MOV RAX,qword ptr [RBP + -0x38]
LEA R15,[RAX + 0x1]
MOV byte ptr [RAX],0x60
TEST R13,R13
JLE 0x001df53f
ADD R13,R12
XOR R14D,R14D
LAB_001df46b:
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x001df496
MOV EAX,R14D
MOV qword ptr [RBP + RAX*0x8 + -0x70],R15
MOV EAX,R14D
INC EAX
MOV ECX,0xaaaaaaab
IMUL RAX,RCX
SHR RAX,0x21
LEA EAX,[RAX + RAX*0x2]
NEG EAX
ADD R14D,EAX
INC R14D
LAB_001df496:
MOV BL,byte ptr [R12]
MOV RDI,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R12
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x1
CMOVL EAX,ECX
JGE 0x001df4d7
CMP BL,0x60
JNZ 0x001df4d7
LEA RDI,[R15 + 0x1]
CMP RDI,qword ptr [RBP + -0x50]
JNC 0x001df590
MOV byte ptr [R15],0x60
JMP 0x001df4da
LAB_001df4d7:
MOV RDI,R15
LAB_001df4da:
MOV EBX,EAX
LEA RAX,[RDI + RBX*0x1]
CMP RAX,qword ptr [RBP + -0x50]
JNC 0x001df590
MOV RSI,R12
MOV RDX,RBX
CALL 0x001dfcb4
MOV R15,RAX
ADD R12,RBX
CMP R12,R13
JC 0x001df46b
JMP 0x001df542
LAB_001df506:
MOV RDI,qword ptr [RBP + -0x38]
MOV R14D,dword ptr [RBP + -0x2c]
JMP 0x001df514
LAB_001df510:
MOV RDI,qword ptr [RBP + -0x38]
LAB_001df514:
MOV RSI,R12
MOV RDX,R13
CALL 0x001dfcb4
MOV R15,RAX
TEST R14D,R14D
JZ 0x001df5a4
MOV R14D,R14D
MOV RDI,R15
MOV RSI,R14
MOV EDX,0x2e
CALL 0x001dfc54
MOV R15,RAX
JMP 0x001df5a7
LAB_001df53f:
XOR R14D,R14D
LAB_001df542:
LEA RAX,[R15 + 0x1]
CMP RAX,qword ptr [RBP + -0x50]
JNC 0x001df590
CMP dword ptr [RBP + -0x2c],0x0
JZ 0x001df5f2
SUB R14D,0x1
MOV EAX,0x2
CMOVC R14D,EAX
MOV RDX,qword ptr [RBP + R14*0x8 + -0x70]
TEST RDX,RDX
JZ 0x001df590
MOV ECX,0x1
LAB_001df572:
SUB R14D,0x1
CMOVC R14D,EAX
MOV R15,qword ptr [RBP + R14*0x8 + -0x70]
TEST R15,R15
JZ 0x001df5da
INC ECX
MOV RDX,R15
CMP ECX,0x3
JNZ 0x001df572
JMP 0x001df5dd
LAB_001df590:
MOV RAX,qword ptr [RBP + -0x38]
MOV byte ptr [RAX],0x0
MOV R15,RAX
MOV RBX,qword ptr [RBP + -0x40]
LAB_001df59e:
MOV R13,R15
SUB R13,RAX
LAB_001df5a4:
XOR R14D,R14D
LAB_001df5a7:
TEST RBX,RBX
JNS 0x001df5c8
ADD R13,R14
MOV RSI,qword ptr [RBP + -0x48]
SUB RSI,R13
JBE 0x001df5c8
MOV RDI,R15
MOV EDX,0x20
CALL 0x001dfc54
MOV R15,RAX
LAB_001df5c8:
MOV RAX,R15
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001df5da:
MOV R15,RDX
LAB_001df5dd:
MOV EBX,ECX
MOV RDI,R15
MOV ESI,0x2e
MOV RDX,RBX
CALL 0x0012a290
ADD R15,RBX
LAB_001df5f2:
MOV byte ptr [R15],0x60
INC R15
MOV RBX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x38]
JMP 0x001df59e
|
int1 *
process_str_arg(long param_1,int1 *param_2,int1 *param_3,ulong param_4,ulong param_5,
char *param_6,uint param_7,char param_8)
{
char cVar1;
void *pvVar2;
uint uVar3;
uint uVar4;
size_t sVar5;
int1 *puVar6;
void *__s;
long lVar7;
char *__string;
long lVar8;
ulong uVar9;
char *pcVar10;
int iVar11;
ulong uVar12;
long local_78 [4];
int1 *local_58;
ulong local_50;
ulong local_48;
int1 *local_40;
uint local_34;
uVar12 = (long)param_3 - (long)param_2;
local_50 = -param_4;
if (0 < (long)param_4) {
local_50 = param_4;
}
__string = "(null)";
if (param_6 != (char *)0x0) {
__string = param_6;
}
local_78[3] = param_1;
local_58 = param_3;
local_48 = param_4;
local_40 = param_2;
if (param_8 == '\0') {
uVar9 = strnlen(__string,param_5);
if (uVar12 + 1 <= uVar9) {
local_50 = uVar12;
uVar9 = uVar12;
}
local_34 = 0;
}
else {
sVar5 = strnlen(__string,param_5 + 1);
uVar9 = param_5;
if (sVar5 < param_5) {
uVar9 = sVar5;
}
if (uVar12 + 1 <= uVar9) {
local_50 = uVar12;
uVar9 = uVar12;
}
local_34 = 0;
if (uVar9 < sVar5) {
if (uVar9 < 3) {
local_34 = (uint)uVar9;
uVar9 = 0;
}
else {
uVar9 = uVar9 - 3;
local_34 = 3;
}
}
}
(**(code **)(*(long *)(local_78[3] + 0xb8) + 200))
(local_78[3],__string,__string + uVar9,param_5,local_78);
uVar4 = local_34;
uVar9 = local_48;
lVar8 = local_78[0] - (long)__string;
if ((param_7 & 8) == 0) {
puVar6 = local_40;
if ((-1 < (long)local_48) &&
(lVar7 = local_50 - ((ulong)local_34 + lVar8),
(ulong)local_34 + lVar8 <= local_50 && lVar7 != 0)) {
puVar6 = (int1 *)strfill(local_40,lVar7,0x20);
}
uVar12 = (ulong)uVar4;
puVar6 = (int1 *)strnmov(puVar6,__string,lVar8);
if (uVar4 != 0) {
puVar6 = (int1 *)strfill(puVar6,uVar12,0x2e);
goto LAB_001df5a7;
}
}
else {
uVar9 = lVar8 + (ulong)local_34;
local_78[0] = 0;
local_78[1] = 0;
local_78[2] = 0;
if (uVar9 < uVar12) {
puVar6 = local_40 + 1;
*local_40 = 0x60;
if ((long)uVar9 < 1) {
iVar11 = 0;
}
else {
pcVar10 = __string + uVar9;
uVar12 = 0;
do {
if (local_34 != 0) {
local_78[uVar12] = (long)puVar6;
uVar12 = (ulong)((int)uVar12 + (((int)uVar12 + 1U) / 3) * -3 + 1);
}
iVar11 = (int)uVar12;
cVar1 = *__string;
uVar4 = (**(code **)(*(long *)(local_78[3] + 0xb8) + 0xc0))(local_78[3],__string,pcVar10);
if (((int)uVar4 < 2) && (uVar4 = 1, cVar1 == '`')) {
if (local_58 <= puVar6 + 1) goto LAB_001df590;
*puVar6 = 0x60;
puVar6 = puVar6 + 1;
}
uVar9 = (ulong)uVar4;
if (local_58 <= puVar6 + uVar9) goto LAB_001df590;
puVar6 = (int1 *)strnmov(puVar6,__string,uVar9);
__string = __string + uVar9;
} while (__string < pcVar10);
}
if (local_58 <= puVar6 + 1) goto LAB_001df590;
if (local_34 != 0) {
uVar4 = iVar11 - 1;
if (iVar11 == 0) {
uVar4 = 2;
}
uVar12 = (ulong)uVar4;
if ((void *)local_78[uVar12] == (void *)0x0) goto LAB_001df590;
uVar4 = 1;
__s = (void *)local_78[uVar12];
do {
uVar3 = (int)uVar12 - 1;
if ((int)uVar12 == 0) {
uVar3 = 2;
}
uVar12 = (ulong)uVar3;
pvVar2 = (void *)local_78[uVar12];
} while ((pvVar2 != (void *)0x0) && (uVar4 = uVar4 + 1, __s = pvVar2, uVar4 != 3));
memset(__s,0x2e,(ulong)uVar4);
puVar6 = (int1 *)((long)__s + (ulong)uVar4);
}
*puVar6 = 0x60;
puVar6 = puVar6 + 1;
}
else {
LAB_001df590:
*local_40 = 0;
puVar6 = local_40;
}
lVar8 = (long)puVar6 - (long)local_40;
uVar9 = local_48;
}
uVar12 = 0;
LAB_001df5a7:
if (((long)uVar9 < 0) &&
(lVar7 = local_50 - (lVar8 + uVar12), lVar8 + uVar12 <= local_50 && lVar7 != 0)) {
puVar6 = (int1 *)strfill(puVar6,lVar7,0x20);
}
return puVar6;
}
|
|
13,377
|
ankerl::nanobench::detail::IterationLogic::Impl::calcBestNumIters(std::chrono::duration<long, std::ratio<1l, 1000000000l>>, unsigned long)
|
BadAccessGuards/build_O0/_deps/nanobench-src/src/include/nanobench.h
|
uint64_t calcBestNumIters(std::chrono::nanoseconds elapsed, uint64_t iters) noexcept {
auto doubleElapsed = d(elapsed);
auto doubleTargetRuntimePerEpoch = d(mTargetRuntimePerEpoch);
auto doubleNewIters = doubleTargetRuntimePerEpoch / doubleElapsed * d(iters);
auto doubleMinEpochIters = d(mBench.minEpochIterations());
if (doubleNewIters < doubleMinEpochIters) {
doubleNewIters = doubleMinEpochIters;
}
doubleNewIters *= 1.0 + 0.2 * mRng.uniform01();
// +0.5 for correct rounding when casting
// NOLINTNEXTLINE(bugprone-incorrect-roundings)
return static_cast<uint64_t>(doubleNewIters + 0.5);
}
|
O0
|
c
|
ankerl::nanobench::detail::IterationLogic::Impl::calcBestNumIters(std::chrono::duration<long, std::ratio<1l, 1000000000l>>, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1e140
movq -0x58(%rbp), %rax
movsd %xmm0, -0x20(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x1e140
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
divsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movq -0x18(%rbp), %rdi
callq 0x1e040
movq -0x58(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x50(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movq 0x8(%rax), %rdi
callq 0x187d0
movq %rax, %rdi
callq 0x1e040
movsd %xmm0, -0x48(%rbp)
movsd -0x40(%rbp), %xmm1
movsd -0x48(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x21299
movsd -0x48(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movq -0x58(%rbp), %rdi
addq $0x148, %rdi # imm = 0x148
callq 0x22930
movaps %xmm0, %xmm1
movsd 0x14104(%rip), %xmm0 # 0x353b8
mulsd %xmm0, %xmm1
movsd 0x140e0(%rip), %xmm0 # 0x353a0
addsd %xmm0, %xmm1
movsd -0x40(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x40(%rbp), %xmm0
movsd 0x140e1(%rip), %xmm1 # 0x353c0
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x140ce(%rip), %xmm1 # 0x353c8
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nop
|
_ZN6ankerl9nanobench6detail14IterationLogic4Impl16calcBestNumItersENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEm:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rsi
mov [rbp+var_10], rdi
mov [rbp+var_18], rdx
mov rax, [rbp+var_10]
mov [rbp+var_58], rax
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
mov rdi, [rbp+var_28]
call _ZN6ankerl9nanobench6detail1dENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE; ankerl::nanobench::detail::d(std::chrono::duration<long,std::ratio<1l,1000000000l>>)
mov rax, [rbp+var_58]
movsd [rbp+var_20], xmm0
mov rax, [rax+10h]
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call _ZN6ankerl9nanobench6detail1dENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE; ankerl::nanobench::detail::d(std::chrono::duration<long,std::ratio<1l,1000000000l>>)
movsd [rbp+var_30], xmm0
movsd xmm0, [rbp+var_30]
divsd xmm0, [rbp+var_20]
movsd [rbp+var_50], xmm0
mov rdi, [rbp+var_18]
call _ZN6ankerl9nanobench6detail1dImEEdT_; ankerl::nanobench::detail::d<ulong>(ulong)
mov rax, [rbp+var_58]
movaps xmm1, xmm0
movsd xmm0, [rbp+var_50]
mulsd xmm0, xmm1
movsd [rbp+var_40], xmm0
mov rdi, [rax+8]; this
call _ZNK6ankerl9nanobench5Bench18minEpochIterationsEv; ankerl::nanobench::Bench::minEpochIterations(void)
mov rdi, rax
call _ZN6ankerl9nanobench6detail1dImEEdT_; ankerl::nanobench::detail::d<ulong>(ulong)
movsd [rbp+var_48], xmm0
movsd xmm1, [rbp+var_40]
movsd xmm0, [rbp+var_48]
ucomisd xmm0, xmm1
jbe short loc_21299
movsd xmm0, [rbp+var_48]
movsd [rbp+var_40], xmm0
loc_21299:
mov rdi, [rbp+var_58]
add rdi, 148h; this
call _ZN6ankerl9nanobench3Rng9uniform01Ev; ankerl::nanobench::Rng::uniform01(void)
movaps xmm1, xmm0
movsd xmm0, cs:qword_353B8
mulsd xmm1, xmm0
movsd xmm0, cs:qword_353A0
addsd xmm1, xmm0
movsd xmm0, [rbp+var_40]
mulsd xmm0, xmm1
movsd [rbp+var_40], xmm0
movsd xmm0, [rbp+var_40]
movsd xmm1, cs:qword_353C0
addsd xmm0, xmm1
movaps xmm1, xmm0
cvttsd2si rax, xmm1
mov rdx, rax
sar rdx, 3Fh
movsd xmm1, cs:qword_353C8
subsd xmm0, xmm1
cvttsd2si rcx, xmm0
and rcx, rdx
or rax, rcx
add rsp, 60h
pop rbp
retn
|
double ankerl::nanobench::detail::IterationLogic::Impl::calcBestNumIters(long long a1, long long a2, long long a3)
{
long long v3; // rax
double v4; // xmm0_8
double v6; // [rsp+10h] [rbp-50h]
double v7; // [rsp+20h] [rbp-40h]
double v8; // [rsp+40h] [rbp-20h]
v8 = ankerl::nanobench::detail::d(a2);
v6 = ankerl::nanobench::detail::d(*(_QWORD *)(a1 + 16)) / v8;
v7 = v6 * ankerl::nanobench::detail::d<unsigned long>(a3);
v3 = ankerl::nanobench::Bench::minEpochIterations(*(ankerl::nanobench::Bench **)(a1 + 8));
v4 = ankerl::nanobench::detail::d<unsigned long>(v3);
if ( v4 > v7 )
v7 = v4;
ankerl::nanobench::Rng::uniform01((ankerl::nanobench::Rng *)(a1 + 328));
return v7 * (v4 * 0.2 + 1.0) + 0.5 - 9.223372036854776e18;
}
|
calcBestNumIters:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RSI
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x0011e140
MOV RAX,qword ptr [RBP + -0x58]
MOVSD qword ptr [RBP + -0x20],XMM0
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x0011e140
MOVSD qword ptr [RBP + -0x30],XMM0
MOVSD XMM0,qword ptr [RBP + -0x30]
DIVSD XMM0,qword ptr [RBP + -0x20]
MOVSD qword ptr [RBP + -0x50],XMM0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0011e040
MOV RAX,qword ptr [RBP + -0x58]
MOVAPS XMM1,XMM0
MOVSD XMM0,qword ptr [RBP + -0x50]
MULSD XMM0,XMM1
MOVSD qword ptr [RBP + -0x40],XMM0
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x001187d0
MOV RDI,RAX
CALL 0x0011e040
MOVSD qword ptr [RBP + -0x48],XMM0
MOVSD XMM1,qword ptr [RBP + -0x40]
MOVSD XMM0,qword ptr [RBP + -0x48]
UCOMISD XMM0,XMM1
JBE 0x00121299
MOVSD XMM0,qword ptr [RBP + -0x48]
MOVSD qword ptr [RBP + -0x40],XMM0
LAB_00121299:
MOV RDI,qword ptr [RBP + -0x58]
ADD RDI,0x148
CALL 0x00122930
MOVAPS XMM1,XMM0
MOVSD XMM0,qword ptr [0x001353b8]
MULSD XMM1,XMM0
MOVSD XMM0,qword ptr [0x001353a0]
ADDSD XMM1,XMM0
MOVSD XMM0,qword ptr [RBP + -0x40]
MULSD XMM0,XMM1
MOVSD qword ptr [RBP + -0x40],XMM0
MOVSD XMM0,qword ptr [RBP + -0x40]
MOVSD XMM1,qword ptr [0x001353c0]
ADDSD XMM0,XMM1
MOVAPS XMM1,XMM0
CVTTSD2SI RAX,XMM1
MOV RDX,RAX
SAR RDX,0x3f
MOVSD XMM1,qword ptr [0x001353c8]
SUBSD XMM0,XMM1
CVTTSD2SI RCX,XMM0
AND RCX,RDX
OR RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
/* ankerl::nanobench::detail::IterationLogic::Impl::calcBestNumIters(std::chrono::duration<long,
std::ratio<1l, 1000000000l> >, unsigned long) */
ulong __thiscall
ankerl::nanobench::detail::IterationLogic::Impl::calcBestNumIters
(Impl *this,int8 param_2,ulong param_3)
{
ulong uVar1;
double dVar2;
double dVar3;
double local_48;
dVar2 = (double)d(param_2);
dVar3 = (double)d(*(int8 *)(this + 0x10));
local_48 = d<unsigned_long>(param_3);
local_48 = (dVar3 / dVar2) * local_48;
uVar1 = Bench::minEpochIterations(*(Bench **)(this + 8));
dVar2 = d<unsigned_long>(uVar1);
if (local_48 < dVar2) {
local_48 = dVar2;
}
dVar2 = (double)Rng::uniform01((Rng *)(this + 0x148));
dVar2 = local_48 * (dVar2 * DAT_001353b8 + DAT_001353a0) + DAT_001353c0;
uVar1 = (ulong)dVar2;
return uVar1 | (long)(dVar2 - DAT_001353c8) & (long)uVar1 >> 0x3f;
}
|
|
13,378
|
resize_partitioned_key_cache
|
eloqsql/mysys/mf_keycache.c
|
static
int resize_partitioned_key_cache(PARTITIONED_KEY_CACHE_CB *keycache,
uint key_cache_block_size,
size_t use_mem, uint division_limit,
uint age_threshold,
uint changed_blocks_hash_size)
{
uint i;
uint partitions= keycache->partitions;
my_bool cleanup= use_mem == 0;
int blocks= -1;
int err= 0;
DBUG_ENTER("partitioned_resize_key_cache");
if (cleanup)
{
end_partitioned_key_cache(keycache, 0);
DBUG_RETURN(-1);
}
for (i= 0; i < partitions; i++)
{
err|= prepare_resize_simple_key_cache(keycache->partition_array[i], 1);
}
if (!err)
blocks= init_partitioned_key_cache(keycache, key_cache_block_size,
use_mem, division_limit, age_threshold,
changed_blocks_hash_size);
if (blocks > 0)
{
for (i= 0; i < partitions; i++)
{
keycache_pthread_mutex_lock(&keycache->partition_array[i]->cache_lock);
finish_resize_simple_key_cache(keycache->partition_array[i]);
}
}
DBUG_RETURN(blocks);
}
|
O3
|
c
|
resize_partitioned_key_cache:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl 0x1c(%rdi), %r13d
testq %rdx, %rdx
je 0x9a7dc
movq %rdx, %r15
testq %r13, %r13
je 0x9a76e
movl %esi, -0x2c(%rbp)
movl %ecx, -0x30(%rbp)
movl %r8d, -0x34(%rbp)
movl %r9d, -0x38(%rbp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
movl $0x1, %esi
callq 0x99ade
orl %eax, %r12d
incq %r14
cmpq %r14, %r13
jne 0x9a734
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testl %r12d, %r12d
movl -0x38(%rbp), %r9d
movl -0x34(%rbp), %r8d
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %esi
jne 0x9a801
movq %rbx, %rdi
movq %r15, %rdx
callq 0x9a4a4
movl %eax, %r14d
testl %eax, %eax
setg %al
testl %r13d, %r13d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x9a801
xorl %r12d, %r12d
leaq 0x4183d(%rip), %r15 # 0xdbfd5
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rax
leaq 0xc0(%rax), %rdi
cmpq $0x0, 0x100(%rax)
jne 0x9a7cd
callq 0x29200
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rdi
callq 0x99cc2
incq %r12
cmpq %r12, %r13
jne 0x9a798
jmp 0x9a801
movq %r15, %rsi
movl $0x14a9, %edx # imm = 0x14A9
callq 0x2eb6f
jmp 0x9a7b6
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
testq %r13, %r13
je 0x9a801
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
callq 0x999ca
incq %r15
cmpq %r15, %r13
jne 0x9a7ea
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
resize_partitioned_key_cache:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
mov r13d, [rdi+1Ch]
test rdx, rdx
jz loc_9A7DC
mov r15, rdx
test r13, r13
jz short loc_9A76E
mov [rbp+var_2C], esi
mov [rbp+var_30], ecx
mov [rbp+var_34], r8d
mov [rbp+var_38], r9d
xor r14d, r14d
xor r12d, r12d
loc_9A734:
mov rax, [rbx+8]
mov rdi, [rax+r14*8]
mov esi, 1
call prepare_resize_simple_key_cache
or r12d, eax
inc r14
cmp r13, r14
jnz short loc_9A734
mov r14d, 0FFFFFFFFh
test r12d, r12d
mov r9d, [rbp+var_38]
mov r8d, [rbp+var_34]
mov ecx, [rbp+var_30]
mov esi, [rbp+var_2C]
jnz loc_9A801
loc_9A76E:
mov rdi, rbx
mov rdx, r15
call init_partitioned_key_cache
mov r14d, eax
test eax, eax
setnle al
test r13d, r13d
setnz cl
and cl, al
cmp cl, 1
jnz short loc_9A801
xor r12d, r12d
lea r15, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"...
loc_9A798:
mov rax, [rbx+8]
mov rax, [rax+r12*8]
lea rdi, [rax+0C0h]
cmp qword ptr [rax+100h], 0
jnz short loc_9A7CD
call _pthread_mutex_lock
loc_9A7B6:
mov rax, [rbx+8]
mov rdi, [rax+r12*8]
call finish_resize_simple_key_cache
inc r12
cmp r13, r12
jnz short loc_9A798
jmp short loc_9A801
loc_9A7CD:
mov rsi, r15
mov edx, 14A9h
call psi_mutex_lock
jmp short loc_9A7B6
loc_9A7DC:
mov r14d, 0FFFFFFFFh
test r13, r13
jz short loc_9A801
xor r15d, r15d
loc_9A7EA:
mov rax, [rbx+8]
mov rdi, [rax+r15*8]
xor esi, esi
call end_simple_key_cache
inc r15
cmp r13, r15
jnz short loc_9A7EA
loc_9A801:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long resize_partitioned_key_cache(
long long a1,
unsigned int a2,
unsigned long long a3,
unsigned int a4,
unsigned int a5,
unsigned int a6)
{
long long v7; // r13
long long v9; // r14
int v10; // r12d
int inited; // r14d
long long v12; // r12
long long v13; // rax
long long v14; // rdi
long long v15; // r15
unsigned int v17; // [rsp+8h] [rbp-38h]
unsigned int v18; // [rsp+Ch] [rbp-34h]
unsigned int v19; // [rsp+10h] [rbp-30h]
v7 = *(unsigned int *)(a1 + 28);
if ( a3 )
{
if ( !*(_DWORD *)(a1 + 28) )
goto LABEL_19;
v19 = a4;
v18 = a5;
v17 = a6;
v9 = 0LL;
v10 = 0;
do
v10 |= prepare_resize_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v9++), 1);
while ( v7 != v9 );
inited = -1;
a6 = v17;
a5 = v18;
a4 = v19;
if ( !v10 )
{
LABEL_19:
inited = init_partitioned_key_cache((char *)a1, a2, a3, a4, a5, a6);
if ( inited > 0 && (_DWORD)v7 != 0 )
{
v12 = 0LL;
do
{
v13 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v12);
v14 = v13 + 192;
if ( *(_QWORD *)(v13 + 256) )
psi_mutex_lock(v14, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c", 0x14A9u);
else
pthread_mutex_lock(v14);
finish_resize_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v12++));
}
while ( v7 != v12 );
}
}
}
else
{
inited = -1;
if ( *(_DWORD *)(a1 + 28) )
{
v15 = 0LL;
do
end_simple_key_cache(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v15++), 0);
while ( v7 != v15 );
}
}
return (unsigned int)inited;
}
|
resize_partitioned_key_cache:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
MOV R13D,dword ptr [RDI + 0x1c]
TEST RDX,RDX
JZ 0x0019a7dc
MOV R15,RDX
TEST R13,R13
JZ 0x0019a76e
MOV dword ptr [RBP + -0x2c],ESI
MOV dword ptr [RBP + -0x30],ECX
MOV dword ptr [RBP + -0x34],R8D
MOV dword ptr [RBP + -0x38],R9D
XOR R14D,R14D
XOR R12D,R12D
LAB_0019a734:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R14*0x8]
MOV ESI,0x1
CALL 0x00199ade
OR R12D,EAX
INC R14
CMP R13,R14
JNZ 0x0019a734
MOV R14D,0xffffffff
TEST R12D,R12D
MOV R9D,dword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x34]
MOV ECX,dword ptr [RBP + -0x30]
MOV ESI,dword ptr [RBP + -0x2c]
JNZ 0x0019a801
LAB_0019a76e:
MOV RDI,RBX
MOV RDX,R15
CALL 0x0019a4a4
MOV R14D,EAX
TEST EAX,EAX
SETG AL
TEST R13D,R13D
SETNZ CL
AND CL,AL
CMP CL,0x1
JNZ 0x0019a801
XOR R12D,R12D
LEA R15,[0x1dbfd5]
LAB_0019a798:
MOV RAX,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RAX + R12*0x8]
LEA RDI,[RAX + 0xc0]
CMP qword ptr [RAX + 0x100],0x0
JNZ 0x0019a7cd
CALL 0x00129200
LAB_0019a7b6:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R12*0x8]
CALL 0x00199cc2
INC R12
CMP R13,R12
JNZ 0x0019a798
JMP 0x0019a801
LAB_0019a7cd:
MOV RSI,R15
MOV EDX,0x14a9
CALL 0x0012eb6f
JMP 0x0019a7b6
LAB_0019a7dc:
MOV R14D,0xffffffff
TEST R13,R13
JZ 0x0019a801
XOR R15D,R15D
LAB_0019a7ea:
MOV RAX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RAX + R15*0x8]
XOR ESI,ESI
CALL 0x001999ca
INC R15
CMP R13,R15
JNZ 0x0019a7ea
LAB_0019a801:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int resize_partitioned_key_cache
(long param_1,ulong param_2,long param_3,ulong param_4,ulong param_5,ulong param_6)
{
pthread_mutex_t *__mutex;
uint uVar1;
long lVar2;
uint uVar3;
int iVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
uVar1 = *(uint *)(param_1 + 0x1c);
uVar6 = (ulong)uVar1;
if (param_3 == 0) {
iVar4 = -1;
if (uVar6 != 0) {
uVar7 = 0;
do {
end_simple_key_cache(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8),0);
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
}
}
else {
if (uVar6 != 0) {
uVar7 = 0;
uVar5 = 0;
do {
uVar3 = prepare_resize_simple_key_cache
(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8),1);
uVar5 = uVar5 | uVar3;
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
param_6 = param_6 & 0xffffffff;
param_5 = param_5 & 0xffffffff;
param_4 = param_4 & 0xffffffff;
param_2 = param_2 & 0xffffffff;
if (uVar5 != 0) {
return -1;
}
}
iVar4 = init_partitioned_key_cache(param_1,param_2,param_3,param_4,param_5,param_6);
if (uVar1 != 0 && 0 < iVar4) {
uVar7 = 0;
do {
lVar2 = *(long *)(*(long *)(param_1 + 8) + uVar7 * 8);
__mutex = (pthread_mutex_t *)(lVar2 + 0xc0);
if (*(long *)(lVar2 + 0x100) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/mysys/mf_keycache.c",
0x14a9);
}
finish_resize_simple_key_cache(*(int8 *)(*(long *)(param_1 + 8) + uVar7 * 8));
uVar7 = uVar7 + 1;
} while (uVar6 != uVar7);
}
}
return iVar4;
}
|
|
13,379
|
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*)
|
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp
|
reference operator[](T* key)
{
return operator[](typename object_t::key_type(key));
}
|
O1
|
cpp
|
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>& nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::operator[]<char const>(char const*):
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
callq 0x11fa0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11f60
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x154fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15524
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x119b0
movq %rbx, %rdi
callq 0x12010
|
_ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_:
push r14
push rbx
sub rsp, 28h
mov rbx, rdi
lea r14, [rsp+38h+var_30]
lea rdx, [rsp+38h+var_31]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rdi, rbx
mov rsi, r14
call __ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](std::string)
mov rbx, rax
lea rax, [rsp+38h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_154FB
mov rsi, [rsp+38h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_154FB:
mov rax, rbx
add rsp, 28h
pop rbx
pop r14
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_15524
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_15524:
mov rdi, rbx
call __Unwind_Resume
|
long long nlohmann::json_abi_v3_11_3::basic_json<std::map,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[]<char const>(
long long a1,
long long a2)
{
long long v2; // rbx
char v4; // [rsp+7h] [rbp-31h] BYREF
void *v5[2]; // [rsp+8h] [rbp-30h] BYREF
long long v6; // [rsp+18h] [rbp-20h] BYREF
std::string::basic_string<std::allocator<char>>(v5, a2, &v4);
v2 = nlohmann::json_abi_v3_11_3::basic_json<std::map,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,
v5);
if ( v5[0] != &v6 )
operator delete(v5[0], v6 + 1);
return v2;
}
|
operator[]<char_const>:
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV RBX,RDI
LEA R14,[RSP + 0x8]
LEA RDX,[RSP + 0x7]
MOV RDI,R14
CALL 0x00111fa0
LAB_001154d2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x00111f60
LAB_001154dd:
MOV RBX,RAX
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001154fb
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001119b0
LAB_001154fb:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R14
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long,
unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer,
std::vector<unsigned char, std::allocator<unsigned char> >, void>&
nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, 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[]<char const>(char
const*) */
basic_json * __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<std::map,std::vector,std::__cxx11::string,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[]<char_const>
(basic_json<std::map,std::vector,std::__cxx11::string,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,char *param_1)
{
basic_json *pbVar1;
allocator local_31;
long *local_30 [2];
long local_20 [2];
std::__cxx11::string::string<std::allocator<char>>((string *)local_30,param_1,&local_31);
/* try { // try from 001154d2 to 001154dc has its CatchHandler @ 00115506 */
pbVar1 = (basic_json *)operator[](this,(string *)local_30);
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return pbVar1;
}
|
|
13,380
|
ftb_check_phrase_internal
|
eloqsql/storage/myisam/ft_boolean_search.c
|
static int ftb_check_phrase_internal(MYSQL_FTPARSER_PARAM *param,
const char *document, int len)
{
FT_WORD word;
MY_FTB_PHRASE_PARAM *phrase_param= param->mysql_ftparam;
const uchar *docend= (uchar*) document + len;
while (ft_simple_get_word(phrase_param->cs, (uchar**) &document, docend,
&word, FALSE))
{
param->mysql_add_word(param, (char*) word.pos, (int)word.len, 0);
if (phrase_param->match)
break;
}
return 0;
}
|
O0
|
c
|
ftb_check_phrase_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x40(%rbp), %rdx
leaq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rcx
xorl %r8d, %r8d
callq 0xa3a70
cmpb $0x0, %al
je 0xa17d6
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x20(%rbp), %rcx
movl %ecx, %edx
xorl %ecx, %ecx
callq *%rax
movq -0x38(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0xa17d4
jmp 0xa17d6
jmp 0xa178e
xorl %eax, %eax
addq $0x40, %rsp
popq %rbp
retq
nop
|
ftb_check_phrase_internal:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov rax, [rax+18h]
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_14]
add rax, rcx
mov [rbp+var_40], rax
loc_A178E:
mov rax, [rbp+var_38]
mov rdi, [rax+10h]
mov rdx, [rbp+var_40]
lea rsi, [rbp+var_10]
lea rcx, [rbp+var_30]
xor r8d, r8d
call ft_simple_get_word
cmp al, 0
jz short loc_A17D6
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rcx, [rbp+var_20]
mov edx, ecx
xor ecx, ecx
call rax
mov rax, [rbp+var_38]
cmp dword ptr [rax+20h], 0
jz short loc_A17D4
jmp short loc_A17D6
loc_A17D4:
jmp short loc_A178E
loc_A17D6:
xor eax, eax
add rsp, 40h
pop rbp
retn
|
long long ftb_check_phrase_internal(long long a1, long long a2, int a3)
{
long long v4; // [rsp+0h] [rbp-40h]
long long v5; // [rsp+8h] [rbp-38h]
long long v6; // [rsp+10h] [rbp-30h] BYREF
long long v7; // [rsp+20h] [rbp-20h]
int v8; // [rsp+2Ch] [rbp-14h]
long long v9; // [rsp+30h] [rbp-10h] BYREF
long long v10; // [rsp+38h] [rbp-8h]
v10 = a1;
v9 = a2;
v8 = a3;
v5 = *(_QWORD *)(a1 + 24);
v4 = a3 + a2;
do
{
if ( !(unsigned __int8)ft_simple_get_word(*(_QWORD *)(v5 + 16), &v9, v4, &v6, 0LL) )
break;
(*(void ( **)(long long, long long, _QWORD, _QWORD))(v10 + 8))(v10, v6, (unsigned int)v7, 0LL);
}
while ( !*(_DWORD *)(v5 + 32) );
return 0LL;
}
|
ftb_check_phrase_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x14]
ADD RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_001a178e:
MOV RAX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RBP + -0x40]
LEA RSI,[RBP + -0x10]
LEA RCX,[RBP + -0x30]
XOR R8D,R8D
CALL 0x001a3a70
CMP AL,0x0
JZ 0x001a17d6
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x20]
MOV EDX,ECX
XOR ECX,ECX
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX + 0x20],0x0
JZ 0x001a17d4
JMP 0x001a17d6
LAB_001a17d4:
JMP 0x001a178e
LAB_001a17d6:
XOR EAX,EAX
ADD RSP,0x40
POP RBP
RET
|
int8 ftb_check_phrase_internal(long param_1,long param_2,int param_3)
{
long lVar1;
char cVar2;
int8 local_38 [2];
ulong local_28;
int local_1c;
long local_18;
long local_10;
lVar1 = *(long *)(param_1 + 0x18);
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
do {
cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x10),&local_18,param_2 + param_3,local_38,0)
;
if (cVar2 == '\0') {
return 0;
}
(**(code **)(local_10 + 8))(local_10,local_38[0],local_28 & 0xffffffff,0);
} while (*(int *)(lVar1 + 0x20) == 0);
return 0;
}
|
|
13,381
|
js_array_buffer_get_maxByteLength
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_array_buffer_get_maxByteLength(JSContext *ctx,
JSValue this_val,
int class_id)
{
JSArrayBuffer *abuf = JS_GetOpaque2(ctx, this_val, class_id);
if (!abuf)
return JS_EXCEPTION;
if (array_buffer_is_resizable(abuf))
return js_uint32(abuf->max_byte_length);
return js_uint32(abuf->byte_length);
}
|
O1
|
c
|
js_array_buffer_get_maxByteLength:
pushq %rax
callq 0x269a1
testq %rax, %rax
je 0x7ef55
movslq 0x4(%rax), %rcx
testq %rcx, %rcx
js 0x7ef60
xorl %esi, %esi
xorl %edx, %edx
jmp 0x7ef8e
movl $0x6, %edx
xorl %ecx, %ecx
xorl %esi, %esi
jmp 0x7ef8e
movslq (%rax), %rax
xorl %esi, %esi
testq %rax, %rax
movl %eax, %ecx
cvtsi2sd %rcx, %xmm0
movq %xmm0, %rcx
cmovnsq %rax, %rcx
movl $0x7, %edx
cmovnsq %rsi, %rdx
movabsq $0x7fffffff00000000, %rsi # imm = 0x7FFFFFFF00000000
andq %rcx, %rsi
movl %ecx, %eax
orq %rsi, %rax
popq %rcx
retq
|
js_array_buffer_get_maxByteLength:
push rax
call JS_GetOpaque2
test rax, rax
jz short loc_7EF55
movsxd rcx, dword ptr [rax+4]
test rcx, rcx
js short loc_7EF60
xor esi, esi
xor edx, edx
jmp short loc_7EF8E
loc_7EF55:
mov edx, 6
xor ecx, ecx
xor esi, esi
jmp short loc_7EF8E
loc_7EF60:
movsxd rax, dword ptr [rax]
xor esi, esi
test rax, rax
mov ecx, eax
cvtsi2sd xmm0, rcx
movq rcx, xmm0
cmovns rcx, rax
mov edx, 7
cmovns rdx, rsi
mov rsi, 7FFFFFFF00000000h
and rsi, rcx
loc_7EF8E:
mov eax, ecx
or rax, rsi
pop rcx
retn
|
long long js_array_buffer_get_maxByteLength(long long a1, long long a2, int a3, unsigned int a4)
{
int *Opaque2; // rax
double v5; // rcx
long long v6; // rsi
long long v7; // rax
Opaque2 = (int *)JS_GetOpaque2(a1, a2, a3, a4);
if ( Opaque2 )
{
*(_QWORD *)&v5 = Opaque2[1];
if ( v5 < 0.0 )
{
v7 = *Opaque2;
v5 = (double)(int)v7;
if ( v7 >= 0 )
v5 = *(double *)&v7;
v6 = *(_QWORD *)&v5 & 0x7FFFFFFF00000000LL;
}
else
{
v6 = 0LL;
}
}
else
{
LODWORD(v5) = 0;
v6 = 0LL;
}
return v6 | LODWORD(v5);
}
|
js_array_buffer_get_maxByteLength:
PUSH RAX
CALL 0x001269a1
TEST RAX,RAX
JZ 0x0017ef55
MOVSXD RCX,dword ptr [RAX + 0x4]
TEST RCX,RCX
JS 0x0017ef60
XOR ESI,ESI
XOR EDX,EDX
JMP 0x0017ef8e
LAB_0017ef55:
MOV EDX,0x6
XOR ECX,ECX
XOR ESI,ESI
JMP 0x0017ef8e
LAB_0017ef60:
MOVSXD RAX,dword ptr [RAX]
XOR ESI,ESI
TEST RAX,RAX
MOV ECX,EAX
CVTSI2SD XMM0,RCX
MOVQ RCX,XMM0
CMOVNS RCX,RAX
MOV EDX,0x7
CMOVNS RDX,RSI
MOV RSI,0x7fffffff00000000
AND RSI,RCX
LAB_0017ef8e:
MOV EAX,ECX
OR RAX,RSI
POP RCX
RET
|
int1 [16] js_array_buffer_get_maxByteLength(void)
{
uint uVar1;
uint *puVar2;
double dVar3;
double dVar4;
int8 uVar5;
ulong uVar6;
int1 auVar7 [16];
puVar2 = (uint *)JS_GetOpaque2();
if (puVar2 == (uint *)0x0) {
uVar5 = 6;
dVar4 = 0.0;
uVar6 = 0;
}
else {
dVar4 = (double)(long)(int)puVar2[1];
if ((long)dVar4 < 0) {
uVar1 = *puVar2;
dVar3 = (double)(long)(int)uVar1;
dVar4 = (double)uVar1;
if (-1 < (long)dVar3) {
dVar4 = dVar3;
}
uVar5 = 7;
if (-1 < (long)dVar3) {
uVar5 = 0;
}
uVar6 = (ulong)dVar4 & 0x7fffffff00000000;
}
else {
uVar6 = 0;
uVar5 = 0;
}
}
auVar7._0_8_ = (ulong)dVar4 & 0xffffffff | uVar6;
auVar7._8_8_ = uVar5;
return auVar7;
}
|
|
13,382
|
js_array_buffer_get_maxByteLength
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_array_buffer_get_maxByteLength(JSContext *ctx,
JSValue this_val,
int class_id)
{
JSArrayBuffer *abuf = JS_GetOpaque2(ctx, this_val, class_id);
if (!abuf)
return JS_EXCEPTION;
if (array_buffer_is_resizable(abuf))
return js_uint32(abuf->max_byte_length);
return js_uint32(abuf->byte_length);
}
|
O3
|
c
|
js_array_buffer_get_maxByteLength:
cmpl $-0x1, %edx
jne 0x819e1
movzwl 0x6(%rsi), %eax
cmpl %ecx, %eax
jne 0x819e1
movq 0x30(%rsi), %rdx
testq %rdx, %rdx
je 0x819e1
movslq 0x4(%rdx), %rax
testq %rax, %rax
js 0x819fc
xorl %ecx, %ecx
xorl %edx, %edx
jmp 0x819f6
pushq %rax
movl %ecx, %esi
callq 0x270bb
movl $0x6, %edx
xorl %eax, %eax
xorl %ecx, %ecx
addq $0x8, %rsp
movl %eax, %eax
orq %rcx, %rax
retq
movslq (%rdx), %rcx
xorl %esi, %esi
testq %rcx, %rcx
movl %ecx, %eax
cvtsi2sd %rax, %xmm0
movq %xmm0, %rax
cmovnsq %rcx, %rax
movl $0x7, %edx
cmovnsq %rsi, %rdx
movabsq $0x7fffffff00000000, %rcx # imm = 0x7FFFFFFF00000000
andq %rax, %rcx
jmp 0x819f6
|
js_array_buffer_get_maxByteLength:
cmp edx, 0FFFFFFFFh
jnz short loc_819E1
movzx eax, word ptr [rsi+6]
cmp eax, ecx
jnz short loc_819E1
mov rdx, [rsi+30h]
test rdx, rdx
jz short loc_819E1
movsxd rax, dword ptr [rdx+4]
test rax, rax
js short loc_819FC
xor ecx, ecx
xor edx, edx
jmp short loc_819F6
loc_819E1:
push rax
mov esi, ecx
call JS_ThrowTypeErrorInvalidClass
mov edx, 6
xor eax, eax
xor ecx, ecx
add rsp, 8
loc_819F6:
mov eax, eax
or rax, rcx
retn
loc_819FC:
movsxd rcx, dword ptr [rdx]
xor esi, esi
test rcx, rcx
mov eax, ecx
cvtsi2sd xmm0, rax
movq rax, xmm0
cmovns rax, rcx
mov edx, 7
cmovns rdx, rsi
mov rcx, 7FFFFFFF00000000h
and rcx, rax
jmp short loc_819F6
|
long long js_array_buffer_get_maxByteLength(
long long a1,
long long a2,
int a3,
int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
int *v12; // rdx
double v13; // rax
long long v14; // rcx
if ( a3 == -1 && *(unsigned __int16 *)(a2 + 6) == a4 && (v12 = *(int **)(a2 + 48)) != 0LL )
{
*(_QWORD *)&v13 = v12[1];
if ( v13 < 0.0 )
{
v13 = (double)*v12;
if ( *v12 >= 0LL )
*(_QWORD *)&v13 = *v12;
v14 = *(_QWORD *)&v13 & 0x7FFFFFFF00000000LL;
}
else
{
v14 = 0LL;
}
}
else
{
JS_ThrowTypeErrorInvalidClass(a1, a4, a5, a6, a7, a8, a9, a10, a11, a12);
LODWORD(v13) = 0;
v14 = 0LL;
}
return v14 | LODWORD(v13);
}
|
js_array_buffer_get_maxByteLength:
CMP EDX,-0x1
JNZ 0x001819e1
MOVZX EAX,word ptr [RSI + 0x6]
CMP EAX,ECX
JNZ 0x001819e1
MOV RDX,qword ptr [RSI + 0x30]
TEST RDX,RDX
JZ 0x001819e1
MOVSXD RAX,dword ptr [RDX + 0x4]
TEST RAX,RAX
JS 0x001819fc
XOR ECX,ECX
XOR EDX,EDX
JMP 0x001819f6
LAB_001819e1:
PUSH RAX
MOV ESI,ECX
CALL 0x001270bb
MOV EDX,0x6
XOR EAX,EAX
XOR ECX,ECX
ADD RSP,0x8
LAB_001819f6:
MOV EAX,EAX
OR RAX,RCX
RET
LAB_001819fc:
MOVSXD RCX,dword ptr [RDX]
XOR ESI,ESI
TEST RCX,RCX
MOV EAX,ECX
CVTSI2SD XMM0,RAX
MOVQ RAX,XMM0
CMOVNS RAX,RCX
MOV EDX,0x7
CMOVNS RDX,RSI
MOV RCX,0x7fffffff00000000
AND RCX,RAX
JMP 0x001819f6
|
int1 [16]
js_array_buffer_get_maxByteLength(int8 param_1,long param_2,int param_3,uint param_4)
{
uint uVar1;
uint *puVar2;
double dVar3;
double dVar4;
ulong uVar5;
int8 uVar6;
int1 auVar7 [16];
if (((param_3 == -1) && (*(ushort *)(param_2 + 6) == param_4)) &&
(puVar2 = *(uint **)(param_2 + 0x30), puVar2 != (uint *)0x0)) {
dVar3 = (double)(long)(int)puVar2[1];
if ((long)dVar3 < 0) {
uVar1 = *puVar2;
dVar4 = (double)(long)(int)uVar1;
dVar3 = (double)uVar1;
if (-1 < (long)dVar4) {
dVar3 = dVar4;
}
uVar6 = 7;
if (-1 < (long)dVar4) {
uVar6 = 0;
}
uVar5 = (ulong)dVar3 & 0x7fffffff00000000;
}
else {
uVar5 = 0;
uVar6 = 0;
}
}
else {
JS_ThrowTypeErrorInvalidClass(param_1,param_4);
uVar6 = 6;
dVar3 = 0.0;
uVar5 = 0;
}
auVar7._0_8_ = (ulong)dVar3 & 0xffffffff | uVar5;
auVar7._8_8_ = uVar6;
return auVar7;
}
|
|
13,383
|
bool 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>::operator==<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>, nullptr>(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> const&) const
|
monkey531[P]llama/common/json.hpp
|
bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
|
O0
|
cpp
|
bool 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>::operator==<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>, nullptr>(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> const&) const:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%rax), %rax
movq 0x70(%rsp), %rcx
cmpq (%rcx), %rax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xc7ac6
jmp 0xc7b8b
movb $0x1, 0x3b(%rsp)
movl $0x20, %edi
callq 0x4f580
movq %rax, 0x10(%rsp)
leaq 0x4f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x4fd90
movq 0x18(%rsp), %rdx
leaq 0xf130e(%rip), %rsi # 0x1b8e03
leaq 0x50(%rsp), %rdi
callq 0x55120
jmp 0xc7b01
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rcx
movl $0xd4, %esi
leaq 0x50(%rsp), %rdx
callq 0xc7c80
jmp 0xc7b1f
movq 0x10(%rsp), %rdi
movb $0x0, 0x3b(%rsp)
leaq 0x16c700(%rip), %rsi # 0x234230
leaq -0xc657(%rip), %rdx # 0xbb4e0
callq 0x4f940
jmp 0xc7c7f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
jmp 0xc7b69
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x50100
leaq 0x4f(%rsp), %rdi
callq 0x500e0
testb $0x1, 0x3b(%rsp)
jne 0xc7b7c
jmp 0xc7b86
movq 0x10(%rsp), %rdi
callq 0x4fc70
jmp 0xc7c75
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xc7bb7
leaq 0xefd48(%rip), %rdi # 0x1b78e5
movl $0x3422, %esi # imm = 0x3422
leaq 0xec6e3(%rip), %rdx # 0x1b428c
leaq 0xf24ce(%rip), %rcx # 0x1ba07e
movb $0x0, %al
callq 0x4fbf0
movq 0x20(%rsp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq %rax, 0x8(%rsp)
subq $0x9, %rax
ja 0xc7c30
movq 0x8(%rsp), %rax
leaq 0xedddb(%rip), %rcx # 0x1b59b4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rsp), %rdi
addq $0x8, %rdi
movq 0x70(%rsp), %rsi
addq $0x8, %rsi
callq 0xbb4f0
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xc7c64
movq 0x20(%rsp), %rdi
addq $0x8, %rdi
addq $0x8, %rdi
movq 0x70(%rsp), %rsi
addq $0x8, %rsi
addq $0x8, %rsi
callq 0xbb530
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xc7c64
jmp 0xc7c30
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xbb570
andb $0x1, %al
movb %al, 0x87(%rsp)
movb 0x87(%rsp), %al
andb $0x1, %al
addq $0x88, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x4f990
nop
|
_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_:
sub rsp, 88h
mov qword ptr [rsp+88h+var_10], rdi; int
mov qword ptr [rsp+88h+var_18], rsi; char
mov rax, qword ptr [rsp+88h+var_10]
mov qword ptr [rsp+88h+var_68], rax; int
mov rax, [rax]
mov rcx, qword ptr [rsp+88h+var_18]
cmp rax, [rcx]
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_C7AC6
jmp loc_C7B8B
loc_C7AC6:
mov [rsp+88h+var_4D], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+88h+var_78], rax; int
lea rdi, [rsp+88h+var_39]
mov qword ptr [rsp+88h+var_70], rdi; char
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+88h+var_70]
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdi, [rsp+88h+var_38]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_C7B01:
mov rdi, [rsp+88h+var_78]; int
mov rax, qword ptr [rsp+88h+var_68]
mov rcx, [rax]
mov esi, 0D4h
lea rdx, [rsp+88h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_C7B1F:
mov rdi, [rsp+88h+var_78]; void *
mov [rsp+88h+var_4D], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iteratorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_C7C7F
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
jmp short loc_C7B69
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_C7B69:
lea rdi, [rsp+arg_47]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_33], 1
jnz short loc_C7B7C
jmp short loc_C7B86
loc_C7B7C:
mov rdi, [rsp+arg_8]; void *
call ___cxa_free_exception
loc_C7B86:
jmp loc_C7C75
loc_C7B8B:
mov rax, qword ptr [rsp+88h+var_68]
cmp qword ptr [rax], 0
jnz short loc_C7BB7
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
mov esi, 3422h
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov al, 0
call _ggml_abort
loc_C7BB7:
mov rax, qword ptr [rsp+88h+var_68]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov [rsp+88h+var_80], rax
sub rax, 9; switch 10 cases
ja short def_C7BE0; jumptable 00000000000C7BE0 default case
mov rax, [rsp+88h+var_80]
lea rcx, jpt_C7BE0
movsxd rax, ds:(jpt_C7BE0 - 1B59B4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_C7BE2:
mov rdi, qword ptr [rsp+88h+var_68]; jumptable 00000000000C7BE0 case 1
add rdi, 8
mov rsi, qword ptr [rsp+88h+var_18]
add rsi, 8
call _ZN9__gnu_cxxeqIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
and al, 1
mov [rsp+88h+var_1], al
jmp short loc_C7C64
loc_C7C04:
mov rdi, qword ptr [rsp+88h+var_68]; jumptable 00000000000C7BE0 case 2
add rdi, 8
add rdi, 8
mov rsi, qword ptr [rsp+88h+var_18]
add rsi, 8
add rsi, 8
call _ZN9__gnu_cxxeqIPN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EEEEbRKNS_17__normal_iteratorIT_T0_EESO_; __gnu_cxx::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> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>(__gnu_cxx::__normal_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> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&,__gnu_cxx::__normal_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> *,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>> const&)
and al, 1
mov [rsp+88h+var_1], al
jmp short loc_C7C64
loc_C7C2E:
jmp short $+2; jumptable 00000000000C7BE0 cases 0,3-9
def_C7BE0:
mov rax, qword ptr [rsp+88h+var_68]; jumptable 00000000000C7BE0 default case
mov rax, [rax+18h]
mov [rsp+88h+var_58], rax
mov rax, qword ptr [rsp+88h+var_18]
mov rax, [rax+18h]
mov [rsp+88h+var_60], rax
mov rdi, [rsp+88h+var_58]
mov rsi, [rsp+88h+var_60]
call _ZN8nlohmann16json_abi_v3_11_36detaileqENS1_20primitive_iterator_tES2_; nlohmann::json_abi_v3_11_3::detail::operator==(nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t,nlohmann::json_abi_v3_11_3::detail::primitive_iterator_t)
and al, 1
mov [rsp+88h+var_1], al
loc_C7C64:
mov al, [rsp+88h+var_1]
and al, 1
add rsp, 88h
retn
loc_C7C75:
mov rdi, [rsp+arg_38]
call __Unwind_Resume
loc_C7C7F:
nop
|
_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_:
SUB RSP,0x88
MOV qword ptr [RSP + 0x78],RDI
MOV qword ptr [RSP + 0x70],RSI
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RSP + 0x70]
CMP RAX,qword ptr [RCX]
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001c7ac6
JMP 0x001c7b8b
LAB_001c7ac6:
MOV byte ptr [RSP + 0x3b],0x1
MOV EDI,0x20
CALL 0x0014f580
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x4f]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0014fd90
MOV RDX,qword ptr [RSP + 0x18]
LAB_001c7aee:
LEA RSI,[0x2b8e03]
LEA RDI,[RSP + 0x50]
CALL 0x00155120
JMP 0x001c7b01
LAB_001c7b01:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RAX]
LAB_001c7b0e:
MOV ESI,0xd4
LEA RDX,[RSP + 0x50]
CALL 0x001c7c80
JMP 0x001c7b1f
LAB_001c7b1f:
MOV RDI,qword ptr [RSP + 0x10]
MOV byte ptr [RSP + 0x3b],0x0
LEA RSI,[0x334230]
LEA RDX,[0x1bb4e0]
CALL 0x0014f940
LAB_001c7b8b:
MOV RAX,qword ptr [RSP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x001c7bb7
LEA RDI,[0x2b78e5]
MOV ESI,0x3422
LEA RDX,[0x2b428c]
LEA RCX,[0x2ba07e]
MOV AL,0x0
CALL 0x0014fbf0
LAB_001c7bb7:
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
SUB RAX,0x9
JA 0x001c7c30
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x2b59b4]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_1:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x8
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,0x8
CALL 0x001bb4f0
AND AL,0x1
MOV byte ptr [RSP + 0x87],AL
JMP 0x001c7c64
caseD_2:
MOV RDI,qword ptr [RSP + 0x20]
ADD RDI,0x8
ADD RDI,0x8
MOV RSI,qword ptr [RSP + 0x70]
ADD RSI,0x8
ADD RSI,0x8
CALL 0x001bb530
AND AL,0x1
MOV byte ptr [RSP + 0x87],AL
JMP 0x001c7c64
caseD_0:
JMP 0x001c7c30
default:
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x28],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x28]
CALL 0x001bb570
AND AL,0x1
MOV byte ptr [RSP + 0x87],AL
LAB_001c7c64:
MOV AL,byte ptr [RSP + 0x87]
AND AL,0x1
ADD RSP,0x88
RET
|
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_
(long *param_1,long *param_2)
{
byte extraout_AL;
int8 uVar1;
int7 extraout_var;
int7 extraout_var_00;
int7 extraout_var_01;
int7 uVar2;
allocator local_39;
string local_38 [32];
long *local_18;
long *local_10;
bool local_1;
local_18 = param_2;
local_10 = param_1;
if (*param_1 != *param_2) {
uVar1 = __cxa_allocate_exception(0x20);
std::allocator<char>::allocator();
/* try { // try from 001c7aee to 001c7afe has its CatchHandler @ 001c7b41 */
std::__cxx11::string::string<std::allocator<char>>
(local_38,"cannot compare iterators of different containers",&local_39);
/* try { // try from 001c7b0e to 001c7b3b has its CatchHandler @ 001c7b51 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar1,0xd4,local_38,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar1,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::invalid_iterator::~invalid_iterator);
}
if (*param_1 == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
switch(*(int1 *)*param_1) {
case 0:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
default:
nlohmann::json_abi_v3_11_3::detail::operator==(param_1[3],local_18[3]);
local_1 = (bool)(extraout_AL & 1);
uVar2 = extraout_var_01;
break;
case 1:
local_1 = __gnu_cxx::operator==
((__normal_iterator *)(param_1 + 1),(__normal_iterator *)(local_18 + 1));
uVar2 = extraout_var;
break;
case 2:
local_1 = __gnu_cxx::operator==
((__normal_iterator *)(param_1 + 2),(__normal_iterator *)(local_18 + 2));
uVar2 = extraout_var_00;
}
return CONCAT71(uVar2,local_1);
}
|
||
13,384
|
bool 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>::operator==<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>, nullptr>(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> const&) const
|
monkey531[P]llama/common/json.hpp
|
bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
|
O2
|
cpp
|
bool 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>::operator==<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>, nullptr>(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> const&) const:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x46553
testq %rax, %rax
je 0x465a4
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x46535
cmpl $0x1, %eax
jne 0x4653f
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x46547
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x46547
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x20390
movq %rax, %rbx
leaq 0x4ad97(%rip), %rsi # 0x912fc
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2303e
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x465ec
xorl %ebp, %ebp
leaq 0x88e5b(%rip), %rsi # 0xcf3f0
leaq 0x21b8(%rip), %rdx # 0x48754
movq %rbx, %rdi
callq 0x20b30
leaq 0x4982c(%rip), %rdi # 0x8fdd7
leaq 0x46cda(%rip), %rdx # 0x8d28c
leaq 0x4bf9c(%rip), %rcx # 0x92555
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x20af0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x20d88
testb %bpl, %bpl
jne 0x465dc
jmp 0x465e4
movq %rax, %r14
movq %rbx, %rdi
callq 0x20510
movq %r14, %rdi
callq 0x20b90
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_46553
test rax, rax
jz loc_465A4
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_46535
cmp eax, 1
jnz short loc_4653F
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_46547
loc_46535:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_46547
loc_4653F:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_46547:
setz al
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_46553:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdi, [rsp+48h+var_38]
lea rdx, [rsp+48h+var_39]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_38]
mov rdi, rbx; this
mov esi, 0D4h; int
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_465A4:
lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
lea rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_465DC
jmp short loc_465E4
mov r14, rax
loc_465DC:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_465E4:
mov rdi, r14
call __Unwind_Resume
|
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x00146553
TEST RAX,RAX
JZ 0x001465a4
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x00146535
CMP EAX,0x1
JNZ 0x0014653f
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x00146547
LAB_00146535:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x00146547
LAB_0014653f:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_00146547:
SETZ AL
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00146553:
PUSH 0x20
POP RDI
CALL 0x00120390
MOV RBX,RAX
LAB_0014655e:
LEA RSI,[0x1912fc]
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0xf]
CALL 0x0012303e
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0014657a:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x001465ec
XOR EBP,EBP
LEA RSI,[0x1cf3f0]
LEA RDX,[0x148754]
MOV RDI,RBX
CALL 0x00120b30
LAB_001465a4:
LEA RDI,[0x18fdd7]
LEA RDX,[0x18d28c]
LEA RCX,[0x192555]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x00120af0
|
int8
_ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
allocator local_39;
string local_38 [32];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
/* try { // try from 0014655e to 00146573 has its CatchHandler @ 001465d9 */
std::__cxx11::string::string<std::allocator<char>>
(local_38,"cannot compare iterators of different containers",&local_39);
/* try { // try from 0014657a to 001465a3 has its CatchHandler @ 001465c5 */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_
(uVar3,0xd4,local_38,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
|
||
13,385
|
bool 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>::operator==<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>, nullptr>(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> const&) const
|
monkey531[P]llama/common/json.hpp
|
bool operator==(const IterImpl& other) const
{
// if objects are not the same, the comparison is undefined
if (JSON_HEDLEY_UNLIKELY(m_object != other.m_object))
{
JSON_THROW(invalid_iterator::create(212, "cannot compare iterators of different containers", m_object));
}
JSON_ASSERT(m_object != nullptr);
switch (m_object->m_data.m_type)
{
case value_t::object:
return (m_it.object_iterator == other.m_it.object_iterator);
case value_t::array:
return (m_it.array_iterator == other.m_it.array_iterator);
case value_t::null:
case value_t::string:
case value_t::boolean:
case value_t::number_integer:
case value_t::number_unsigned:
case value_t::number_float:
case value_t::binary:
case value_t::discarded:
default:
return (m_it.primitive_iterator == other.m_it.primitive_iterator);
}
}
|
O3
|
cpp
|
bool 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>::operator==<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>, nullptr>(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> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movq (%rdi), %rax
cmpq (%rsi), %rax
jne 0x4e0ff
testq %rax, %rax
je 0x4e15d
movzbl (%rax), %eax
cmpl $0x2, %eax
je 0x4e0df
cmpl $0x1, %eax
jne 0x4e0e9
movq 0x8(%r14), %rax
cmpq 0x8(%rsi), %rax
jmp 0x4e0f1
movq 0x10(%r14), %rax
cmpq 0x10(%rsi), %rax
jmp 0x4e0f1
movq 0x18(%r14), %rax
cmpq 0x18(%rsi), %rax
sete %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x18360
movq %rax, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5d210(%rip), %rsi # 0xab32c
leaq 0x5d239(%rip), %rdx # 0xab35c
leaq 0x8(%rsp), %rdi
callq 0x1d1e4
movq (%r14), %rcx
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xd4, %esi
callq 0x4e1b2
xorl %ebp, %ebp
leaq 0x8d292(%rip), %rsi # 0xdb3e0
leaq -0x1fdb(%rip), %rdx # 0x4c17a
movq %rbx, %rdi
callq 0x18b30
leaq 0x5bca3(%rip), %rdi # 0xa9e07
leaq 0x59121(%rip), %rdx # 0xa728c
leaq 0x5e404(%rip), %rcx # 0xac576
movl $0x3422, %esi # imm = 0x3422
xorl %eax, %eax
callq 0x18ad0
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4e198
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x186a0
testb %bpl, %bpl
jne 0x4e1a2
jmp 0x4e1aa
movq %rax, %r14
movq %rbx, %rdi
callq 0x184f0
movq %r14, %rdi
callq 0x18b90
|
_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_:
push rbp; char
push r15; int
push r14; __int64
push rbx; int
sub rsp, 28h
mov r14, rdi
mov rax, [rdi]
cmp rax, [rsi]
jnz short loc_4E0FF
test rax, rax
jz loc_4E15D
movzx eax, byte ptr [rax]
cmp eax, 2
jz short loc_4E0DF
cmp eax, 1
jnz short loc_4E0E9
mov rax, [r14+8]
cmp rax, [rsi+8]
jmp short loc_4E0F1
loc_4E0DF:
mov rax, [r14+10h]
cmp rax, [rsi+10h]
jmp short loc_4E0F1
loc_4E0E9:
mov rax, [r14+18h]
cmp rax, [rsi+18h]
loc_4E0F1:
setz al
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_4E0FF:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r15, [rsp+48h+var_30]
mov [r15-10h], r15
lea rsi, aCannotCompareI; "cannot compare iterators of different c"...
lea rdx, aCannotCompareI+30h; ""
lea rdi, [rsp+48h+var_40]
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 rcx, [r14]
mov bpl, 1
lea rdx, [rsp+48h+var_40]
mov rdi, rbx; this
mov esi, 0D4h; int
call _ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_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_36detail16invalid_iteratorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_4E15D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAnchorMObjectN+7; "m_object != nullptr"
mov esi, 3422h
xor eax, eax
call _ggml_abort
mov r14, rax
mov rdi, [rsp+48h+var_40]; void *
cmp rdi, r15
jz short loc_4E198
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_4E198:
test bpl, bpl
jnz short loc_4E1A2
jmp short loc_4E1AA
mov r14, rax
loc_4E1A2:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_4E1AA:
mov rdi, r14
call __Unwind_Resume
|
_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_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOV RAX,qword ptr [RDI]
CMP RAX,qword ptr [RSI]
JNZ 0x0014e0ff
TEST RAX,RAX
JZ 0x0014e15d
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x2
JZ 0x0014e0df
CMP EAX,0x1
JNZ 0x0014e0e9
MOV RAX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RSI + 0x8]
JMP 0x0014e0f1
LAB_0014e0df:
MOV RAX,qword ptr [R14 + 0x10]
CMP RAX,qword ptr [RSI + 0x10]
JMP 0x0014e0f1
LAB_0014e0e9:
MOV RAX,qword ptr [R14 + 0x18]
CMP RAX,qword ptr [RSI + 0x18]
LAB_0014e0f1:
SETZ AL
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0014e0ff:
MOV EDI,0x20
CALL 0x00118360
MOV RBX,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
LAB_0014e115:
LEA RSI,[0x1ab32c]
LEA RDX,[0x1ab35c]
LEA RDI,[RSP + 0x8]
CALL 0x0011d1e4
MOV RCX,qword ptr [R14]
MOV BPL,0x1
LAB_0014e133:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0xd4
CALL 0x0014e1b2
XOR EBP,EBP
LEA RSI,[0x1db3e0]
LEA RDX,[0x14c17a]
MOV RDI,RBX
CALL 0x00118b30
LAB_0014e15d:
LEA RDI,[0x1a9e07]
LEA RDX,[0x1a728c]
LEA RCX,[0x1ac576]
MOV ESI,0x3422
XOR EAX,EAX
CALL 0x00118ad0
|
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_
(int8 *param_1,int8 *param_2)
{
char *pcVar1;
long lVar2;
int8 uVar3;
bool bVar4;
int1 *local_40 [2];
int1 local_30 [16];
pcVar1 = (char *)*param_1;
if (pcVar1 != (char *)*param_2) {
uVar3 = __cxa_allocate_exception(0x20);
local_40[0] = local_30;
/* try { // try from 0014e115 to 0014e12c has its CatchHandler @ 0014e19f */
std::__cxx11::string::_M_construct<char_const*>
(local_40,"cannot compare iterators of different containers","");
/* try { // try from 0014e133 to 0014e15c has its CatchHandler @ 0014e17e */
_ZN8nlohmann16json_abi_v3_11_36detail16invalid_iterator6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar3,0xd4,local_40,*param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar3,&nlohmann::json_abi_v3_11_3::detail::invalid_iterator::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
if (pcVar1 != (char *)0x0) {
if (*pcVar1 == '\x02') {
lVar2 = param_1[2];
bVar4 = lVar2 == param_2[2];
}
else if (*pcVar1 == '\x01') {
lVar2 = param_1[1];
bVar4 = lVar2 == param_2[1];
}
else {
lVar2 = param_1[3];
bVar4 = lVar2 == param_2[3];
}
return CONCAT71((int7)((ulong)lVar2 >> 8),bVar4);
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x3422,
"GGML_ASSERT(%s) failed","m_object != nullptr");
}
|
||
13,386
|
testing::internal::ExitSummary[abi:cxx11](int)
|
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-death-test.cc
|
static std::string ExitSummary(int exit_code) {
Message m;
#if defined(GTEST_OS_WINDOWS) || defined(GTEST_OS_FUCHSIA)
m << "Exited with exit status " << exit_code;
#else
if (WIFEXITED(exit_code)) {
m << "Exited with exit status " << WEXITSTATUS(exit_code);
} else if (WIFSIGNALED(exit_code)) {
m << "Terminated by signal " << WTERMSIG(exit_code);
}
#ifdef WCOREDUMP
if (WCOREDUMP(exit_code)) {
m << " (core dumped)";
}
#endif
#endif // GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
return m.GetString();
}
|
O0
|
cpp
|
testing::internal::ExitSummary[abi:cxx11](int):
subq $0x58, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x22e80
movl 0x4c(%rsp), %eax
andl $0x7f, %eax
cmpl $0x0, %eax
jne 0x14df1
leaq 0x60cca(%rip), %rsi # 0x75a71
leaq 0x40(%rsp), %rdi
callq 0x47e40
movq %rax, 0x10(%rsp)
jmp 0x14db8
movq 0x10(%rsp), %rdi
movzbl 0x4d(%rsp), %eax
movl %eax, 0x30(%rsp)
leaq 0x30(%rsp), %rsi
callq 0x46ef0
jmp 0x14dd2
jmp 0x14e3d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x40(%rsp), %rdi
callq 0xee50
jmp 0x14e85
movl 0x4c(%rsp), %eax
andl $0x7f, %eax
addl $0x1, %eax
movsbl %al, %eax
sarl %eax
cmpl $0x0, %eax
jle 0x14e3b
leaq 0x60c7e(%rip), %rsi # 0x75a8a
leaq 0x40(%rsp), %rdi
callq 0x47360
movq %rax, 0x8(%rsp)
jmp 0x14e1d
movq 0x8(%rsp), %rdi
movl 0x4c(%rsp), %eax
andl $0x7f, %eax
movl %eax, 0x2c(%rsp)
leaq 0x2c(%rsp), %rsi
callq 0x46ef0
jmp 0x14e39
jmp 0x14e3b
jmp 0x14e3d
movl 0x4c(%rsp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x14e60
leaq 0x60c4e(%rip), %rsi # 0x75aa0
leaq 0x40(%rsp), %rdi
callq 0x47ce0
jmp 0x14e5e
jmp 0x14e60
movq 0x18(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x14e90
jmp 0x14e71
leaq 0x40(%rsp), %rdi
callq 0xee50
movq 0x20(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0xb910
nop
|
_ZN7testing8internalL11ExitSummaryB5cxx11Ei:
sub rsp, 58h
mov qword ptr [rsp+58h+var_40], rdi
mov rax, rdi
mov [rsp+58h+var_38], rax
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_C], esi
lea rdi, [rsp+58h+var_18]; this
call _ZN7testing7MessageC2Ev; testing::Message::Message(void)
mov eax, [rsp+58h+var_C]
and eax, 7Fh
cmp eax, 0
jnz short loc_14DF1
lea rsi, aExitedWithExit; "Exited with exit status "
lea rdi, [rsp+58h+var_18]
call _ZN7testing7MessagelsIA25_cEERS0_RKT_; testing::Message::operator<<<char [25]>(char [25] const&)
mov [rsp+58h+var_48], rax
jmp short $+2
loc_14DB8:
mov rdi, [rsp+58h+var_48]
movzx eax, byte ptr [rsp+58h+var_C+1]
mov [rsp+58h+var_28], eax
lea rsi, [rsp+58h+var_28]
call _ZN7testing7MessagelsIiEERS0_RKT_; testing::Message::operator<<<int>(int const&)
jmp short $+2
loc_14DD2:
jmp short loc_14E3D
mov rcx, rax
mov eax, edx
mov [rsp+arg_30], rcx
mov [rsp+arg_2C], eax
lea rdi, [rsp+arg_38]; this
call _ZN7testing7MessageD2Ev; testing::Message::~Message()
jmp loc_14E85
loc_14DF1:
mov eax, [rsp+58h+var_C]
and eax, 7Fh
add eax, 1
movsx eax, al
sar eax, 1
cmp eax, 0
jle short loc_14E3B
lea rsi, aTerminatedBySi; "Terminated by signal "
lea rdi, [rsp+58h+var_18]
call _ZN7testing7MessagelsIA22_cEERS0_RKT_; testing::Message::operator<<<char [22]>(char [22] const&)
mov [rsp+58h+var_50], rax
jmp short $+2
loc_14E1D:
mov rdi, [rsp+58h+var_50]
mov eax, [rsp+58h+var_C]
and eax, 7Fh
mov [rsp+58h+var_2C], eax
lea rsi, [rsp+58h+var_2C]
call _ZN7testing7MessagelsIiEERS0_RKT_; testing::Message::operator<<<int>(int const&)
jmp short $+2
loc_14E39:
jmp short $+2
loc_14E3B:
jmp short $+2
loc_14E3D:
mov eax, [rsp+58h+var_C]
and eax, 80h
cmp eax, 0
jz short loc_14E60
lea rsi, aCoreDumped; " (core dumped)"
lea rdi, [rsp+58h+var_18]
call _ZN7testing7MessagelsIA15_cEERS0_RKT_; testing::Message::operator<<<char [15]>(char [15] const&)
jmp short $+2
loc_14E5E:
jmp short $+2
loc_14E60:
mov rdi, qword ptr [rsp+58h+var_40]; int
lea rsi, [rsp+58h+var_18]; int
call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void)
jmp short $+2
loc_14E71:
lea rdi, [rsp+58h+var_18]; this
call _ZN7testing7MessageD2Ev; testing::Message::~Message()
mov rax, [rsp+58h+var_38]
add rsp, 58h
retn
loc_14E85:
mov rdi, [rsp+arg_30]
call __Unwind_Resume
|
long long testing::internal::ExitSummary[abi:cxx11](long long a1, int a2)
{
long long v3; // [rsp+8h] [rbp-50h]
long long v4; // [rsp+10h] [rbp-48h]
int v5; // [rsp+2Ch] [rbp-2Ch] BYREF
_DWORD v6[4]; // [rsp+30h] [rbp-28h] BYREF
int v7[3]; // [rsp+40h] [rbp-18h] BYREF
int v8; // [rsp+4Ch] [rbp-Ch]
long long v9; // [rsp+50h] [rbp-8h]
v9 = a1;
v8 = a2;
testing::Message::Message((testing::Message *)v7);
if ( (v8 & 0x7F) != 0 )
{
if ( (char)((v8 & 0x7F) + 1) >> 1 > 0 )
{
v3 = testing::Message::operator<<<char [22]>(v7, "Terminated by signal ");
v5 = v8 & 0x7F;
testing::Message::operator<<<int>(v3, &v5);
}
}
else
{
v4 = testing::Message::operator<<<char [25]>(v7, "Exited with exit status ");
v6[0] = BYTE1(v8);
testing::Message::operator<<<int>(v4, v6);
}
if ( (v8 & 0x80) != 0 )
testing::Message::operator<<<char [15]>(v7, " (core dumped)");
testing::Message::GetString[abi:cxx11](a1, (int)v7);
testing::Message::~Message((testing::Message *)v7);
return a1;
}
|
ExitSummary[abi:cxx11]:
SUB RSP,0x58
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x50],RDI
MOV dword ptr [RSP + 0x4c],ESI
LEA RDI,[RSP + 0x40]
CALL 0x00122e80
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x7f
CMP EAX,0x0
JNZ 0x00114df1
LAB_00114da0:
LEA RSI,[0x175a71]
LEA RDI,[RSP + 0x40]
CALL 0x00147e40
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00114db8
LAB_00114db8:
MOV RDI,qword ptr [RSP + 0x10]
MOVZX EAX,byte ptr [RSP + 0x4d]
MOV dword ptr [RSP + 0x30],EAX
LEA RSI,[RSP + 0x30]
CALL 0x00146ef0
JMP 0x00114dd2
LAB_00114dd2:
JMP 0x00114e3d
LAB_00114df1:
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x7f
ADD EAX,0x1
MOVSX EAX,AL
SAR EAX,0x1
CMP EAX,0x0
JLE 0x00114e3b
LEA RSI,[0x175a8a]
LEA RDI,[RSP + 0x40]
CALL 0x00147360
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00114e1d
LAB_00114e1d:
MOV RDI,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x7f
MOV dword ptr [RSP + 0x2c],EAX
LEA RSI,[RSP + 0x2c]
CALL 0x00146ef0
JMP 0x00114e39
LAB_00114e39:
JMP 0x00114e3b
LAB_00114e3b:
JMP 0x00114e3d
LAB_00114e3d:
MOV EAX,dword ptr [RSP + 0x4c]
AND EAX,0x80
CMP EAX,0x0
JZ 0x00114e60
LEA RSI,[0x175aa0]
LEA RDI,[RSP + 0x40]
CALL 0x00147ce0
JMP 0x00114e5e
LAB_00114e5e:
JMP 0x00114e60
LAB_00114e60:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x40]
CALL 0x00114e90
LAB_00114e6f:
JMP 0x00114e71
LAB_00114e71:
LEA RDI,[RSP + 0x40]
CALL 0x0010ee50
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x58
RET
|
/* testing::internal::ExitSummary[abi:cxx11](int) */
internal * __thiscall testing::internal::ExitSummary_abi_cxx11_(internal *this,int param_1)
{
Message *pMVar1;
uint local_2c;
uint local_28 [4];
Message local_18 [12];
uint local_c;
internal *local_8;
local_c = param_1;
local_8 = this;
Message::Message(local_18);
if ((local_c & 0x7f) == 0) {
/* try { // try from 00114da0 to 00114e6e has its CatchHandler @ 00114dd4 */
pMVar1 = Message::operator<<(local_18,"Exited with exit status ");
local_28[0] = local_c >> 8 & 0xff;
Message::operator<<(pMVar1,(int *)local_28);
}
else if ('\0' < (char)(((byte)local_c & 0x7f) + 1) >> 1) {
pMVar1 = Message::operator<<(local_18,"Terminated by signal ");
local_2c = local_c & 0x7f;
Message::operator<<(pMVar1,(int *)&local_2c);
}
if ((local_c & 0x80) != 0) {
Message::operator<<(local_18," (core dumped)");
}
Message::GetString_abi_cxx11_();
Message::~Message(local_18);
return this;
}
|
|
13,387
|
js_async_module_execution_rejected
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_async_module_execution_rejected(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv, int magic, JSValue *func_data)
{
JSModuleDef *module = JS_VALUE_GET_PTR(func_data[0]);
JSValueConst error = argv[0];
int i;
if (js_check_stack_overflow(ctx->rt, 0))
return JS_ThrowStackOverflow(ctx);
if (module->status == JS_MODULE_STATUS_EVALUATED) {
assert(module->eval_has_exception);
return JS_UNDEFINED;
}
assert(module->status == JS_MODULE_STATUS_EVALUATING_ASYNC);
assert(!module->eval_has_exception);
assert(module->async_evaluation);
module->eval_has_exception = TRUE;
module->eval_exception = JS_DupValue(ctx, error);
module->status = JS_MODULE_STATUS_EVALUATED;
for(i = 0; i < module->async_parent_modules_count; i++) {
JSModuleDef *m = module->async_parent_modules[i];
JSValue m_obj = JS_NewModuleValue(ctx, m);
js_async_module_execution_rejected(ctx, JS_UNDEFINED, 1, &error, 0,
&m_obj);
JS_FreeValue(ctx, m_obj);
}
if (!JS_IsUndefined(module->promise)) {
JSValue ret_val;
assert(module->cycle_root == module);
ret_val = JS_Call(ctx, module->resolving_funcs[1], JS_UNDEFINED,
1, &error);
JS_FreeValue(ctx, ret_val);
}
return JS_UNDEFINED;
}
|
O0
|
c
|
js_async_module_execution_rejected:
subq $0xe8, %rsp
movq 0xf0(%rsp), %rax
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xd0(%rsp)
movq %rdi, 0xc0(%rsp)
movl %ecx, 0xbc(%rsp)
movq %r8, 0xb0(%rsp)
movl %r9d, 0xac(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x90(%rsp)
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0xc0(%rsp), %rax
movq 0x18(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x4ca20
cmpl $0x0, %eax
je 0x7620c
movq 0xc0(%rsp), %rdi
callq 0x5ef20
movq %rax, 0xd8(%rsp)
movq %rdx, 0xe0(%rsp)
jmp 0x76461
movq 0xa0(%rsp), %rax
movl 0x80(%rax), %eax
shrl $0x18, %eax
cmpl $0x5, %eax
jne 0x7623e
movl $0x0, 0xd8(%rsp)
movq $0x3, 0xe0(%rsp)
jmp 0x76461
movq 0xa0(%rsp), %rax
movb $0x1, 0xf0(%rax)
movq 0xa0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0xc0(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x203d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
movq 0x78(%rsp), %rcx
movq %rcx, 0xf8(%rax)
movq 0x80(%rsp), %rcx
movq %rcx, 0x100(%rax)
movq 0xa0(%rsp), %rax
movl 0x80(%rax), %ecx
andl $0xffffff, %ecx # imm = 0xFFFFFF
orl $0x5000000, %ecx # imm = 0x5000000
movl %ecx, 0x80(%rax)
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
movq 0xa0(%rsp), %rcx
cmpl 0xa0(%rcx), %eax
jge 0x763a1
movq 0xa0(%rsp), %rax
movq 0x98(%rax), %rax
movslq 0x8c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x70(%rsp)
movq 0xc0(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x72d30
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movq 0xc0(%rsp), %rdi
movl $0x0, 0x50(%rsp)
movq $0x3, 0x58(%rsp)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movl $0x1, %ecx
leaq 0x90(%rsp), %r8
xorl %r9d, %r9d
leaq 0x60(%rsp), %rax
movq %rax, (%rsp)
callq 0x76160
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0xc0(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x229d0
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x762d2
movq 0xa0(%rsp), %rax
movq 0xc0(%rax), %rdi
movq 0xc8(%rax), %rsi
callq 0x2cfa0
cmpl $0x0, %eax
jne 0x7644a
movq 0xc0(%rsp), %rdi
movq 0xa0(%rsp), %rax
movl $0x0, 0x10(%rsp)
movq $0x3, 0x18(%rsp)
movq 0xe0(%rax), %rsi
movq 0xe8(%rax), %rdx
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movl $0x1, %r9d
leaq 0x90(%rsp), %rax
movq %rax, (%rsp)
callq 0x38d90
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xc0(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x229d0
movl $0x0, 0xd8(%rsp)
movq $0x3, 0xe0(%rsp)
movq 0xd8(%rsp), %rax
movq 0xe0(%rsp), %rdx
addq $0xe8, %rsp
retq
nopl (%rax)
|
js_async_module_execution_rejected:
sub rsp, 0E8h
mov rax, [rsp+0E8h+arg_0]
mov [rsp+0E8h+var_20], rsi
mov [rsp+0E8h+var_18], rdx
mov [rsp+0E8h+var_28], rdi
mov [rsp+0E8h+var_2C], ecx
mov [rsp+0E8h+var_38], r8
mov [rsp+0E8h+var_3C], r9d
mov rax, [rsp+0E8h+arg_0]
mov rax, [rax]
mov [rsp+0E8h+var_48], rax
mov rax, [rsp+0E8h+var_38]
mov rcx, [rax]
mov [rsp+0E8h+var_58], rcx
mov rax, [rax+8]
mov [rsp+0E8h+var_50], rax
mov rax, [rsp+0E8h+var_28]
mov rdi, [rax+18h]
xor eax, eax
mov esi, eax
call js_check_stack_overflow
cmp eax, 0
jz short loc_7620C
mov rdi, [rsp+0E8h+var_28]
call JS_ThrowStackOverflow
mov [rsp+0E8h+var_10], rax
mov [rsp+0E8h+var_8], rdx
jmp loc_76461
loc_7620C:
mov rax, [rsp+0E8h+var_48]
mov eax, [rax+80h]
shr eax, 18h
cmp eax, 5
jnz short loc_7623E
mov dword ptr [rsp+0E8h+var_10], 0
mov [rsp+0E8h+var_8], 3
jmp loc_76461
loc_7623E:
mov rax, [rsp+0E8h+var_48]
mov byte ptr [rax+0F0h], 1
mov rax, [rsp+0E8h+var_48]
mov [rsp+0E8h+var_E0], rax
mov rdi, [rsp+0E8h+var_28]
mov rsi, [rsp+0E8h+var_58]
mov rdx, [rsp+0E8h+var_50]
call JS_DupValue
mov rcx, rax
mov rax, [rsp+0E8h+var_E0]
mov [rsp+0E8h+var_70], rcx
mov [rsp+0E8h+var_68], rdx
mov rcx, [rsp+0E8h+var_70]
mov [rax+0F8h], rcx
mov rcx, [rsp+0E8h+var_68]
mov [rax+100h], rcx
mov rax, [rsp+0E8h+var_48]
mov ecx, [rax+80h]
and ecx, 0FFFFFFh
or ecx, 5000000h
mov [rax+80h], ecx
mov [rsp+0E8h+var_5C], 0
loc_762D2:
mov eax, [rsp+0E8h+var_5C]
mov rcx, [rsp+0E8h+var_48]
cmp eax, [rcx+0A0h]
jge loc_763A1
mov rax, [rsp+0E8h+var_48]
mov rax, [rax+98h]
movsxd rcx, [rsp+0E8h+var_5C]
mov rax, [rax+rcx*8]
mov [rsp+0E8h+var_78], rax
mov rdi, [rsp+0E8h+var_28]
mov rsi, [rsp+0E8h+var_78]
call JS_NewModuleValue
mov [rsp+0E8h+var_88], rax
mov [rsp+0E8h+var_80], rdx
mov rdi, [rsp+0E8h+var_28]
mov dword ptr [rsp+0E8h+var_98], 0
mov [rsp+0E8h+var_90], 3
mov rsi, [rsp+0E8h+var_98]
mov rdx, [rsp+0E8h+var_90]
mov ecx, 1
lea r8, [rsp+0E8h+var_58]
xor r9d, r9d
lea rax, [rsp+0E8h+var_88]
mov [rsp+0E8h+var_E8], rax
call js_async_module_execution_rejected
mov [rsp+0E8h+var_A8], rax
mov [rsp+0E8h+var_A0], rdx
mov rdi, [rsp+0E8h+var_28]
mov rsi, [rsp+0E8h+var_88]
mov rdx, [rsp+0E8h+var_80]
call JS_FreeValue
mov eax, [rsp+0E8h+var_5C]
add eax, 1
mov [rsp+0E8h+var_5C], eax
jmp loc_762D2
loc_763A1:
mov rax, [rsp+0E8h+var_48]
mov rdi, [rax+0C0h]
mov rsi, [rax+0C8h]
call JS_IsUndefined_0
cmp eax, 0
jnz loc_7644A
mov rdi, [rsp+0E8h+var_28]
mov rax, [rsp+0E8h+var_48]
mov dword ptr [rsp+0E8h+var_D8], 0
mov [rsp+0E8h+var_D0], 3
mov rsi, [rax+0E0h]
mov rdx, [rax+0E8h]
mov rcx, [rsp+0E8h+var_D8]
mov r8, [rsp+0E8h+var_D0]
mov r9d, 1
lea rax, [rsp+0E8h+var_58]
mov [rsp+0E8h+var_E8], rax
call JS_Call
mov [rsp+0E8h+var_C8], rax
mov [rsp+0E8h+var_C0], rdx
mov rax, [rsp+0E8h+var_C8]
mov [rsp+0E8h+var_B8], rax
mov rax, [rsp+0E8h+var_C0]
mov [rsp+0E8h+var_B0], rax
mov rdi, [rsp+0E8h+var_28]
mov rsi, [rsp+0E8h+var_B8]
mov rdx, [rsp+0E8h+var_B0]
call JS_FreeValue
loc_7644A:
mov dword ptr [rsp+0E8h+var_10], 0
mov [rsp+0E8h+var_8], 3
loc_76461:
mov rax, [rsp+0E8h+var_10]
mov rdx, [rsp+0E8h+var_8]
add rsp, 0E8h
retn
|
long long js_async_module_execution_rejected(
long long a1,
long long a2,
long long a3,
int a4,
long long *a5,
int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
long long *a15)
{
long long v15; // rdx
long long v16; // rcx
long long v17; // r8
long long v18; // r9
__m128 v19; // xmm4
__m128 v20; // xmm5
long long v21; // rdx
long long v22; // rdx
long long v23; // r8
long long v24; // r9
long long v25; // rdx
long long v26; // rdx
long long v28; // [rsp+8h] [rbp-E0h]
long long v29; // [rsp+20h] [rbp-C8h]
long long v30; // [rsp+60h] [rbp-88h] BYREF
long long v31; // [rsp+68h] [rbp-80h]
long long v32; // [rsp+70h] [rbp-78h]
long long v33; // [rsp+78h] [rbp-70h]
long long v34; // [rsp+80h] [rbp-68h]
int i; // [rsp+8Ch] [rbp-5Ch]
long long v36; // [rsp+90h] [rbp-58h] BYREF
long long v37; // [rsp+98h] [rbp-50h]
long long v38; // [rsp+A0h] [rbp-48h]
int v39; // [rsp+ACh] [rbp-3Ch]
long long *v40; // [rsp+B0h] [rbp-38h]
int v41; // [rsp+BCh] [rbp-2Ch]
long long v42; // [rsp+C0h] [rbp-28h]
long long v43; // [rsp+C8h] [rbp-20h]
long long v44; // [rsp+D0h] [rbp-18h]
long long v45; // [rsp+D8h] [rbp-10h]
long long v46; // [rsp+E0h] [rbp-8h]
v43 = a2;
v44 = a3;
v42 = a1;
v41 = a4;
v40 = a5;
v39 = a6;
v38 = *a15;
v36 = *a5;
v37 = a5[1];
if ( js_check_stack_overflow(*(_QWORD *)(a1 + 24), 0LL) )
{
v45 = JS_ThrowStackOverflow(v42, a7, a8, a9, a10, v19, v20, a13, a14, 0LL, v15, v16, v17, v18);
v46 = v21;
}
else if ( HIBYTE(*(_DWORD *)(v38 + 128)) == 5 )
{
LODWORD(v45) = 0;
v46 = 3LL;
}
else
{
*(_BYTE *)(v38 + 240) = 1;
v28 = v38;
v33 = JS_DupValue(v42, v36, v37, v16, v17, v18);
v34 = v22;
*(_QWORD *)(v38 + 248) = v33;
*(_QWORD *)(v28 + 256) = v34;
*(_DWORD *)(v38 + 128) = *(_DWORD *)(v38 + 128) & 0xFFFFFF | 0x5000000;
for ( i = 0; i < *(_DWORD *)(v38 + 160); ++i )
{
v32 = *(_QWORD *)(*(_QWORD *)(v38 + 152) + 8LL * i);
v30 = JS_NewModuleValue(v42, v32, v22, i, v23, v24);
v31 = v25;
js_async_module_execution_rejected(v42, 0, 3, 1, (int)&v36, 0, (long long)&v30);
JS_FreeValue(v42, v30, v31);
}
if ( !JS_IsUndefined_0(*(_QWORD *)(v38 + 192), *(_QWORD *)(v38 + 200)) )
{
v29 = JS_Call(v42, *(_QWORD *)(v38 + 224), *(_QWORD *)(v38 + 232), 0, 3, 1, (long long)&v36);
JS_FreeValue(v42, v29, v26);
}
LODWORD(v45) = 0;
v46 = 3LL;
}
return v45;
}
|
js_async_module_execution_rejected:
SUB RSP,0xe8
MOV RAX,qword ptr [RSP + 0xf0]
MOV qword ptr [RSP + 0xc8],RSI
MOV qword ptr [RSP + 0xd0],RDX
MOV qword ptr [RSP + 0xc0],RDI
MOV dword ptr [RSP + 0xbc],ECX
MOV qword ptr [RSP + 0xb0],R8
MOV dword ptr [RSP + 0xac],R9D
MOV RAX,qword ptr [RSP + 0xf0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa0],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSP + 0x90],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x98],RAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV RDI,qword ptr [RAX + 0x18]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0014ca20
CMP EAX,0x0
JZ 0x0017620c
MOV RDI,qword ptr [RSP + 0xc0]
CALL 0x0015ef20
MOV qword ptr [RSP + 0xd8],RAX
MOV qword ptr [RSP + 0xe0],RDX
JMP 0x00176461
LAB_0017620c:
MOV RAX,qword ptr [RSP + 0xa0]
MOV EAX,dword ptr [RAX + 0x80]
SHR EAX,0x18
CMP EAX,0x5
JNZ 0x0017623e
MOV dword ptr [RSP + 0xd8],0x0
MOV qword ptr [RSP + 0xe0],0x3
JMP 0x00176461
LAB_0017623e:
MOV RAX,qword ptr [RSP + 0xa0]
MOV byte ptr [RAX + 0xf0],0x1
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP + 0xc0]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001203d0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x78],RCX
MOV qword ptr [RSP + 0x80],RDX
MOV RCX,qword ptr [RSP + 0x78]
MOV qword ptr [RAX + 0xf8],RCX
MOV RCX,qword ptr [RSP + 0x80]
MOV qword ptr [RAX + 0x100],RCX
MOV RAX,qword ptr [RSP + 0xa0]
MOV ECX,dword ptr [RAX + 0x80]
AND ECX,0xffffff
OR ECX,0x5000000
MOV dword ptr [RAX + 0x80],ECX
MOV dword ptr [RSP + 0x8c],0x0
LAB_001762d2:
MOV EAX,dword ptr [RSP + 0x8c]
MOV RCX,qword ptr [RSP + 0xa0]
CMP EAX,dword ptr [RCX + 0xa0]
JGE 0x001763a1
MOV RAX,qword ptr [RSP + 0xa0]
MOV RAX,qword ptr [RAX + 0x98]
MOVSXD RCX,dword ptr [RSP + 0x8c]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0xc0]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x00172d30
MOV qword ptr [RSP + 0x60],RAX
MOV qword ptr [RSP + 0x68],RDX
MOV RDI,qword ptr [RSP + 0xc0]
MOV dword ptr [RSP + 0x50],0x0
MOV qword ptr [RSP + 0x58],0x3
MOV RSI,qword ptr [RSP + 0x50]
MOV RDX,qword ptr [RSP + 0x58]
MOV ECX,0x1
LEA R8,[RSP + 0x90]
XOR R9D,R9D
LEA RAX,[RSP + 0x60]
MOV qword ptr [RSP],RAX
CALL 0x00176160
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RDI,qword ptr [RSP + 0xc0]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x68]
CALL 0x001229d0
MOV EAX,dword ptr [RSP + 0x8c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x8c],EAX
JMP 0x001762d2
LAB_001763a1:
MOV RAX,qword ptr [RSP + 0xa0]
MOV RDI,qword ptr [RAX + 0xc0]
MOV RSI,qword ptr [RAX + 0xc8]
CALL 0x0012cfa0
CMP EAX,0x0
JNZ 0x0017644a
MOV RDI,qword ptr [RSP + 0xc0]
MOV RAX,qword ptr [RSP + 0xa0]
MOV dword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x18],0x3
MOV RSI,qword ptr [RAX + 0xe0]
MOV RDX,qword ptr [RAX + 0xe8]
MOV RCX,qword ptr [RSP + 0x10]
MOV R8,qword ptr [RSP + 0x18]
MOV R9D,0x1
LEA RAX,[RSP + 0x90]
MOV qword ptr [RSP],RAX
CALL 0x00138d90
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x28],RDX
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x38],RAX
MOV RDI,qword ptr [RSP + 0xc0]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x001229d0
LAB_0017644a:
MOV dword ptr [RSP + 0xd8],0x0
MOV qword ptr [RSP + 0xe0],0x3
LAB_00176461:
MOV RAX,qword ptr [RSP + 0xd8]
MOV RDX,qword ptr [RSP + 0xe0]
ADD RSP,0xe8
RET
|
int1 [16]
js_async_module_execution_rejected
(long param_1,int8 param_2,int8 param_3,int4 param_4,int8 *param_5
,int4 param_6,long *param_7)
{
long lVar1;
int iVar2;
int1 auVar3 [16];
uint uStack_d4;
uint uStack_94;
int1 local_88 [16];
int8 local_78;
int1 local_70 [16];
int local_5c;
int8 local_58;
int8 local_50;
long local_48;
int4 local_3c;
int8 *local_38;
int4 local_2c;
long local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_48 = *param_7;
local_58 = *param_5;
local_50 = param_5[1];
local_3c = param_6;
local_38 = param_5;
local_2c = param_4;
local_28 = param_1;
local_20 = param_2;
local_18 = param_3;
iVar2 = js_check_stack_overflow(*(int8 *)(param_1 + 0x18),0);
lVar1 = local_48;
if (iVar2 == 0) {
if (*(uint *)(local_48 + 0x80) >> 0x18 == 5) {
local_10 = 0;
local_8 = 3;
}
else {
*(int1 *)(local_48 + 0xf0) = 1;
local_70 = JS_DupValue(local_28,local_58,local_50);
*(int1 (*) [16])(lVar1 + 0xf8) = local_70;
*(uint *)(local_48 + 0x80) = *(uint *)(local_48 + 0x80) & 0xffffff | 0x5000000;
for (local_5c = 0; local_5c < *(int *)(local_48 + 0xa0); local_5c = local_5c + 1) {
local_78 = *(int8 *)(*(long *)(local_48 + 0x98) + (long)local_5c * 8);
auVar3 = JS_NewModuleValue(local_28,local_78);
local_88 = auVar3;
js_async_module_execution_rejected
(local_28,(ulong)uStack_94 << 0x20,3,1,&local_58,0,local_88);
JS_FreeValue(local_28,local_88._0_8_,local_88._8_8_);
}
iVar2 = JS_IsUndefined(*(int8 *)(local_48 + 0xc0),*(int8 *)(local_48 + 200));
if (iVar2 == 0) {
auVar3 = JS_Call(local_28,*(int8 *)(local_48 + 0xe0),*(int8 *)(local_48 + 0xe8),
(ulong)uStack_d4 << 0x20,3,1,&local_58);
JS_FreeValue(local_28,auVar3._0_8_,auVar3._8_8_);
}
local_10 = 0;
local_8 = 3;
}
}
else {
auVar3 = JS_ThrowStackOverflow(local_28);
local_8 = auVar3._8_8_;
local_10 = auVar3._0_4_;
uStack_c = auVar3._4_4_;
}
auVar3._4_4_ = uStack_c;
auVar3._0_4_ = local_10;
auVar3._8_8_ = local_8;
return auVar3;
}
|
|
13,388
|
js_async_module_execution_rejected
|
bluesky950520[P]quickjs/quickjs.c
|
static JSValue js_async_module_execution_rejected(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv, int magic, JSValue *func_data)
{
JSModuleDef *module = JS_VALUE_GET_PTR(func_data[0]);
JSValueConst error = argv[0];
int i;
if (js_check_stack_overflow(ctx->rt, 0))
return JS_ThrowStackOverflow(ctx);
if (module->status == JS_MODULE_STATUS_EVALUATED) {
assert(module->eval_has_exception);
return JS_UNDEFINED;
}
assert(module->status == JS_MODULE_STATUS_EVALUATING_ASYNC);
assert(!module->eval_has_exception);
assert(module->async_evaluation);
module->eval_has_exception = TRUE;
module->eval_exception = JS_DupValue(ctx, error);
module->status = JS_MODULE_STATUS_EVALUATED;
for(i = 0; i < module->async_parent_modules_count; i++) {
JSModuleDef *m = module->async_parent_modules[i];
JSValue m_obj = JS_NewModuleValue(ctx, m);
js_async_module_execution_rejected(ctx, JS_UNDEFINED, 1, &error, 0,
&m_obj);
JS_FreeValue(ctx, m_obj);
}
if (!JS_IsUndefined(module->promise)) {
JSValue ret_val;
assert(module->cycle_root == module);
ret_val = JS_Call(ctx, module->resolving_funcs[1], JS_UNDEFINED,
1, &error);
JS_FreeValue(ctx, ret_val);
}
return JS_UNDEFINED;
}
|
O1
|
c
|
js_async_module_execution_rejected:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x10(%rbp), %rax
movq (%rax), %r13
movups (%r8), %xmm0
movaps %xmm0, -0x50(%rbp)
movq 0x18(%rdi), %rax
cmpq %rbp, 0xe8(%rax)
jbe 0x44409
leaq 0x594da(%rip), %rsi # 0x9d8ce
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1fec9
movl $0x6, %r14d
jmp 0x44523
movzbl 0x83(%r13), %eax
shll $0x18, %eax
movl $0x3, %r14d
cmpl $0x5000000, %eax # imm = 0x5000000
je 0x44523
movb $0x1, 0xf0(%r13)
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rax, -0x38(%rbp)
cmpl $-0x9, %ecx
jb 0x44444
movq -0x38(%rbp), %rdx
incl (%rdx)
movq %rax, 0xf8(%r13)
movq %rcx, 0x100(%r13)
movb $0x5, 0x83(%r13)
cmpl $0x0, 0xa0(%r13)
jle 0x444bb
xorl %r14d, %r14d
leaq -0x50(%rbp), %r15
movq 0x98(%r13), %rax
movq (%rax,%r14,8), %r12
incl (%r12)
movq %r12, -0x38(%rbp)
movq $-0x3, -0x30(%rbp)
leaq -0x38(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %r8
callq 0x443bd
movq 0x18(%rbx), %rdi
movq %r12, %rsi
movq $-0x3, %rdx
callq 0x1ccb2
incq %r14
movslq 0xa0(%r13), %rax
cmpq %rax, %r14
jl 0x4446b
cmpl $0x3, 0xc8(%r13)
movl $0x3, %r14d
je 0x44523
movq 0xe0(%r13), %rsi
movq 0xe8(%r13), %rdx
movl $0x0, -0x38(%rbp)
movq $0x3, -0x30(%rbp)
movups -0x38(%rbp), %xmm0
movups %xmm0, (%rsp)
leaq -0x50(%rbp), %rax
movq %rax, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movl $0x3, %r8d
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x278b6
movq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x1ccb2
xorl %eax, %eax
movq %r14, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
|
js_async_module_execution_rejected:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbx, rdi
mov rax, [rbp+arg_0]
mov r13, [rax]
movups xmm0, xmmword ptr [r8]
movaps [rbp+var_50], xmm0
mov rax, [rdi+18h]
cmp [rax+0E8h], rbp
jbe short loc_44409
lea rsi, aMaximumCallSta; "Maximum call stack size exceeded"
mov rdi, rbx
xor eax, eax
call JS_ThrowRangeError
mov r14d, 6
jmp loc_44523
loc_44409:
movzx eax, byte ptr [r13+83h]
shl eax, 18h
mov r14d, 3
cmp eax, 5000000h
jz loc_44523
mov byte ptr [r13+0F0h], 1
mov rax, qword ptr [rbp+var_50]
mov rcx, qword ptr [rbp+var_50+8]
mov qword ptr [rbp+var_38], rax
cmp ecx, 0FFFFFFF7h
jb short loc_44444
mov rdx, qword ptr [rbp+var_38]
inc dword ptr [rdx]
loc_44444:
mov [r13+0F8h], rax
mov [r13+100h], rcx
mov byte ptr [r13+83h], 5
cmp dword ptr [r13+0A0h], 0
jle short loc_444BB
xor r14d, r14d
lea r15, [rbp+var_50]
loc_4446B:
mov rax, [r13+98h]
mov r12, [rax+r14*8]
inc dword ptr [r12]
mov qword ptr [rbp+var_38], r12
mov qword ptr [rbp+var_38+8], 0FFFFFFFFFFFFFFFDh
lea rax, [rbp+var_38]
mov qword ptr [rsp+70h+var_70], rax
mov rdi, rbx
mov r8, r15
call js_async_module_execution_rejected
mov rdi, [rbx+18h]
mov rsi, r12
mov rdx, 0FFFFFFFFFFFFFFFDh
call JS_FreeValueRT
inc r14
movsxd rax, dword ptr [r13+0A0h]
cmp r14, rax
jl short loc_4446B
loc_444BB:
cmp dword ptr [r13+0C8h], 3
mov r14d, 3
jz short loc_44523
mov rsi, [r13+0E0h]
mov rdx, [r13+0E8h]
mov dword ptr [rbp+var_38], 0
mov qword ptr [rbp+var_38+8], 3
movups xmm0, [rbp+var_38]
movups [rsp+70h+var_70], xmm0
lea rax, [rbp+var_50]
mov [rsp+70h+var_60], rax
mov [rsp+70h+var_58], 2
mov r8d, 3
mov rdi, rbx
xor ecx, ecx
mov r9d, 1
call JS_CallInternal
mov rdi, [rbx+18h]
mov rsi, rax
call JS_FreeValueRT
loc_44523:
xor eax, eax
mov rdx, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long js_async_module_execution_rejected(
long long a1,
int a2,
long long a3,
long long a4,
__m128 *a5,
long long a6,
double a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
long long *a15)
{
long long v15; // r13
__m128 v16; // xmm0
unsigned long long v17; // rax
unsigned long long v18; // rcx
long long v19; // r14
_DWORD *v20; // r12
long long v21; // rsi
long long v22; // rdx
_DWORD *v23; // rax
long long v24; // rdx
char v26; // [rsp+0h] [rbp-70h]
__m128 v27; // [rsp+20h] [rbp-50h] BYREF
__m128 v28; // [rsp+38h] [rbp-38h] BYREF
long long savedregs; // [rsp+70h] [rbp+0h] BYREF
v15 = *a15;
v16 = *a5;
v27 = *a5;
if ( *(_QWORD *)(*(_QWORD *)(a1 + 24) + 232LL) <= (unsigned long long)&savedregs )
{
if ( *(unsigned __int8 *)(v15 + 131) << 24 != 83886080 )
{
*(_BYTE *)(v15 + 240) = 1;
v18 = v27.m128_u64[1];
v17 = v27.m128_u64[0];
v28.m128_u64[0] = v27.m128_u64[0];
if ( v27.m128_i32[2] >= 0xFFFFFFF7 )
{
LODWORD(a3) = v28.m128_i32[0];
++*(_DWORD *)v28.m128_u64[0];
}
*(_QWORD *)(v15 + 248) = v17;
*(_QWORD *)(v15 + 256) = v18;
*(_BYTE *)(v15 + 131) = 5;
if ( *(int *)(v15 + 160) > 0 )
{
v19 = 0LL;
do
{
v20 = *(_DWORD **)(*(_QWORD *)(v15 + 152) + 8 * v19);
++*v20;
v28.m128_u64[0] = (unsigned long long)v20;
v28.m128_u64[1] = -3LL;
js_async_module_execution_rejected(a1, a2, a3, v18, (int)&v27, a6, (long long)&v28);
a2 = (int)v20;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v20, -3LL);
++v19;
}
while ( v19 < *(int *)(v15 + 160) );
}
if ( *(_DWORD *)(v15 + 200) != 3 )
{
v21 = *(_QWORD *)(v15 + 224);
v22 = *(_QWORD *)(v15 + 232);
v28.m128_i32[0] = 0;
v28.m128_u64[1] = 3LL;
v23 = (_DWORD *)JS_CallInternal(
a1,
v21,
v22,
0LL,
3LL,
1LL,
v28,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
0,
3,
(long long)&v27,
2u);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v24);
}
}
}
else
{
JS_ThrowRangeError(
a1,
(long long)"Maximum call stack size exceeded",
a3,
a4,
(long long)a5,
a6,
v16,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v26);
}
return 0LL;
}
|
js_async_module_execution_rejected:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
MOV RAX,qword ptr [RBP + 0x10]
MOV R13,qword ptr [RAX]
MOVUPS XMM0,xmmword ptr [R8]
MOVAPS xmmword ptr [RBP + -0x50],XMM0
MOV RAX,qword ptr [RDI + 0x18]
CMP qword ptr [RAX + 0xe8],RBP
JBE 0x00144409
LEA RSI,[0x19d8ce]
MOV RDI,RBX
XOR EAX,EAX
CALL 0x0011fec9
MOV R14D,0x6
JMP 0x00144523
LAB_00144409:
MOVZX EAX,byte ptr [R13 + 0x83]
SHL EAX,0x18
MOV R14D,0x3
CMP EAX,0x5000000
JZ 0x00144523
MOV byte ptr [R13 + 0xf0],0x1
MOV RAX,qword ptr [RBP + -0x50]
MOV RCX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0x38],RAX
CMP ECX,-0x9
JC 0x00144444
MOV RDX,qword ptr [RBP + -0x38]
INC dword ptr [RDX]
LAB_00144444:
MOV qword ptr [R13 + 0xf8],RAX
MOV qword ptr [R13 + 0x100],RCX
MOV byte ptr [R13 + 0x83],0x5
CMP dword ptr [R13 + 0xa0],0x0
JLE 0x001444bb
XOR R14D,R14D
LEA R15,[RBP + -0x50]
LAB_0014446b:
MOV RAX,qword ptr [R13 + 0x98]
MOV R12,qword ptr [RAX + R14*0x8]
INC dword ptr [R12]
MOV qword ptr [RBP + -0x38],R12
MOV qword ptr [RBP + -0x30],-0x3
LEA RAX,[RBP + -0x38]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV R8,R15
CALL 0x001443bd
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R12
MOV RDX,-0x3
CALL 0x0011ccb2
INC R14
MOVSXD RAX,dword ptr [R13 + 0xa0]
CMP R14,RAX
JL 0x0014446b
LAB_001444bb:
CMP dword ptr [R13 + 0xc8],0x3
MOV R14D,0x3
JZ 0x00144523
MOV RSI,qword ptr [R13 + 0xe0]
MOV RDX,qword ptr [R13 + 0xe8]
MOV dword ptr [RBP + -0x38],0x0
MOV qword ptr [RBP + -0x30],0x3
MOVUPS XMM0,xmmword ptr [RBP + -0x38]
MOVUPS xmmword ptr [RSP],XMM0
LEA RAX,[RBP + -0x50]
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x18],0x2
MOV R8D,0x3
MOV RDI,RBX
XOR ECX,ECX
MOV R9D,0x1
CALL 0x001278b6
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,RAX
CALL 0x0011ccb2
LAB_00144523:
XOR EAX,EAX
MOV RDX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] js_async_module_execution_rejected(long param_1)
{
long lVar1;
int *piVar2;
int1 auVar3 [16];
int8 uVar4;
int8 *in_R8;
ulong uVar5;
long lVar6;
long *in_stack_00000008;
int4 local_58;
int4 uStack_54;
uint uStack_50;
int4 uStack_4c;
int *local_40;
int8 uStack_38;
lVar1 = *in_stack_00000008;
local_58 = *(int4 *)in_R8;
uStack_54 = *(int4 *)((long)in_R8 + 4);
local_40 = (int *)*in_R8;
uStack_50 = *(uint *)(in_R8 + 1);
uStack_4c = *(int4 *)((long)in_R8 + 0xc);
uVar4 = in_R8[1];
if (&stack0xfffffffffffffff8 < *(int1 **)(*(long *)(param_1 + 0x18) + 0xe8)) {
JS_ThrowRangeError(param_1,"Maximum call stack size exceeded");
uVar5 = 6;
}
else {
uVar5 = 3;
if (*(char *)(lVar1 + 0x83) != '\x05') {
*(int1 *)(lVar1 + 0xf0) = 1;
if (0xfffffff6 < uStack_50) {
*local_40 = *local_40 + 1;
}
*(int **)(lVar1 + 0xf8) = local_40;
*(int8 *)(lVar1 + 0x100) = uVar4;
*(int1 *)(lVar1 + 0x83) = 5;
if (0 < *(int *)(lVar1 + 0xa0)) {
lVar6 = 0;
do {
piVar2 = *(int **)(*(long *)(lVar1 + 0x98) + lVar6 * 8);
*piVar2 = *piVar2 + 1;
uStack_38 = 0xfffffffffffffffd;
local_40 = piVar2;
js_async_module_execution_rejected(param_1);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),piVar2,0xfffffffffffffffd);
lVar6 = lVar6 + 1;
} while (lVar6 < *(int *)(lVar1 + 0xa0));
}
piVar2 = local_40;
uVar5 = 3;
if (*(int *)(lVar1 + 200) != 3) {
local_40 = (int *)((ulong)local_40 & 0xffffffff00000000);
uStack_38 = 3;
uVar4 = JS_CallInternal(param_1,*(int8 *)(lVar1 + 0xe0),*(int8 *)(lVar1 + 0xe8),
0,3,1,(ulong)piVar2 & 0xffffffff00000000,3,&local_58,2);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar4);
}
}
}
auVar3._8_8_ = 0;
auVar3._0_8_ = uVar5;
return auVar3 << 0x40;
}
|
|
13,389
|
ftxui::(anonymous namespace)::Separator::Render(ftxui::Screen&)
|
Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/dom/separator.cpp
|
void Render(Screen& screen) override {
for (int y = box_.y_min; y <= box_.y_max; ++y) {
for (int x = box_.x_min; x <= box_.x_max; ++x) {
Pixel& pixel = screen.PixelAt(x, y);
pixel.character = value_;
pixel.automerge = true;
}
}
}
|
O3
|
cpp
|
ftxui::(anonymous namespace)::Separator::Render(ftxui::Screen&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x54(%rdi), %r15d
movl 0x58(%rdi), %eax
cmpl %eax, %r15d
jg 0x24a38
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x60(%rdi), %r12
movl 0x50(%rdi), %ecx
movl 0x4c(%r14), %r13d
cmpl %ecx, %r13d
jg 0x24a2c
movq %rbx, %rdi
movl %r13d, %esi
movl %r15d, %edx
callq 0x3985c
movq %rax, %rbp
leaq 0x8(%rax), %rdi
movq %r12, %rsi
callq 0xb1f0
orb $-0x80, (%rbp)
leal 0x1(%r13), %eax
movl 0x50(%r14), %ecx
cmpl %ecx, %r13d
movl %eax, %r13d
jl 0x249f7
movl 0x58(%r14), %eax
leal 0x1(%r15), %edx
cmpl %eax, %r15d
movl %edx, %r15d
jl 0x249ee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
|
_ZN5ftxui12_GLOBAL__N_19Separator6RenderERNS_6ScreenE:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15d, [rdi+54h]
mov eax, [rdi+58h]
cmp r15d, eax
jg short loc_24A38
mov rbx, rsi
mov r14, rdi
lea r12, [rdi+60h]
mov ecx, [rdi+50h]
loc_249EE:
mov r13d, [r14+4Ch]
cmp r13d, ecx
jg short loc_24A2C
loc_249F7:
mov rdi, rbx; this
mov esi, r13d; int
mov edx, r15d; int
call _ZN5ftxui6Screen7PixelAtEii; ftxui::Screen::PixelAt(int,int)
mov rbp, rax
lea rdi, [rax+8]
mov rsi, r12
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
or byte ptr [rbp+0], 80h
lea eax, [r13+1]
mov ecx, [r14+50h]
cmp r13d, ecx
mov r13d, eax
jl short loc_249F7
mov eax, [r14+58h]
loc_24A2C:
lea edx, [r15+1]
cmp r15d, eax
mov r15d, edx
jl short loc_249EE
loc_24A38:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
|
long long ftxui::`anonymous namespace'::Separator::Render(
ftxui::_anonymous_namespace_::Separator *this,
ftxui::Screen *a2)
{
int v2; // r15d
long long result; // rax
int v4; // ecx
int v5; // r13d
_BYTE *v6; // rbp
bool v7; // cc
v2 = *((_DWORD *)this + 21);
result = *((unsigned int *)this + 22);
if ( v2 <= (int)result )
{
v4 = *((_DWORD *)this + 20);
do
{
v5 = *((_DWORD *)this + 19);
if ( v5 <= v4 )
{
do
{
v6 = (_BYTE *)ftxui::Screen::PixelAt(a2, v5, v2);
std::string::_M_assign(v6 + 8, (char *)this + 96);
*v6 |= 0x80u;
v4 = *((_DWORD *)this + 20);
v7 = v5++ < v4;
}
while ( v7 );
result = *((unsigned int *)this + 22);
}
v7 = v2++ < (int)result;
}
while ( v7 );
}
return result;
}
|
Render:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15D,dword ptr [RDI + 0x54]
MOV EAX,dword ptr [RDI + 0x58]
CMP R15D,EAX
JG 0x00124a38
MOV RBX,RSI
MOV R14,RDI
LEA R12,[RDI + 0x60]
MOV ECX,dword ptr [RDI + 0x50]
LAB_001249ee:
MOV R13D,dword ptr [R14 + 0x4c]
CMP R13D,ECX
JG 0x00124a2c
LAB_001249f7:
MOV RDI,RBX
MOV ESI,R13D
MOV EDX,R15D
CALL 0x0013985c
MOV RBP,RAX
LEA RDI,[RAX + 0x8]
MOV RSI,R12
CALL 0x0010b1f0
OR byte ptr [RBP],0x80
LEA EAX,[R13 + 0x1]
MOV ECX,dword ptr [R14 + 0x50]
CMP R13D,ECX
MOV R13D,EAX
JL 0x001249f7
MOV EAX,dword ptr [R14 + 0x58]
LAB_00124a2c:
LEA EDX,[R15 + 0x1]
CMP R15D,EAX
MOV R15D,EDX
JL 0x001249ee
LAB_00124a38:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ftxui::(anonymous namespace)::Separator::Render(ftxui::Screen&) */
void __thiscall ftxui::(anonymous_namespace)::Separator::Render(Separator *this,Screen *param_1)
{
bool bVar1;
int iVar2;
byte *pbVar3;
int iVar4;
int iVar5;
int iVar6;
iVar2 = *(int *)(this + 0x58);
if (*(int *)(this + 0x54) <= iVar2) {
iVar4 = *(int *)(this + 0x50);
iVar6 = *(int *)(this + 0x54);
do {
iVar5 = *(int *)(this + 0x4c);
if (*(int *)(this + 0x4c) <= iVar4) {
do {
pbVar3 = (byte *)Screen::PixelAt(param_1,iVar5,iVar6);
std::__cxx11::string::_M_assign((string *)(pbVar3 + 8));
*pbVar3 = *pbVar3 | 0x80;
iVar4 = *(int *)(this + 0x50);
bVar1 = iVar5 < iVar4;
iVar5 = iVar5 + 1;
} while (bVar1);
iVar2 = *(int *)(this + 0x58);
}
bVar1 = iVar6 < iVar2;
iVar6 = iVar6 + 1;
} while (bVar1);
}
return;
}
|
|
13,390
|
my_mutex_end
|
eloqsql/mysys/thr_mutex.c
|
void my_mutex_end()
{
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_fast_mutexattr);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
#endif
}
|
O0
|
c
|
my_mutex_end:
pushq %rbp
movq %rsp, %rbp
leaq 0x35f22d(%rip), %rdi # 0x387588
callq 0x24440
leaq 0x35f225(%rip), %rdi # 0x38758c
callq 0x24440
popq %rbp
retq
nop
|
my_mutex_end:
push rbp
mov rbp, rsp
lea rdi, my_fast_mutexattr
call _pthread_mutexattr_destroy
lea rdi, my_errorcheck_mutexattr
call _pthread_mutexattr_destroy
pop rbp
retn
|
long long my_mutex_end()
{
pthread_mutexattr_destroy(&my_fast_mutexattr);
return pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
}
|
my_mutex_end:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x487588]
CALL 0x00124440
LEA RDI,[0x48758c]
CALL 0x00124440
POP RBP
RET
|
void my_mutex_end(void)
{
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_errorcheck_mutexattr);
return;
}
|
|
13,391
|
dtoa_alloc
|
eloqsql/libmariadb/libmariadb/ma_dtoa.c
|
static char *dtoa_alloc(int i, Stack_alloc *alloc)
{
char *rv;
int aligned_size= MY_ALIGN(i, SIZEOF_CHARP);
if (alloc->free + aligned_size <= alloc->end)
{
rv= alloc->free;
alloc->free+= aligned_size;
}
else
rv= malloc(i);
return rv;
}
|
O0
|
c
|
dtoa_alloc:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %eax
addl $0x8, %eax
subl $0x1, %eax
andl $-0x8, %eax
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x1c(%rbp), %rcx
addq %rcx, %rax
movq -0x10(%rbp), %rcx
cmpq 0x10(%rcx), %rax
ja 0x38b2a
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movl -0x1c(%rbp), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
jmp 0x38b37
movslq -0x4(%rbp), %rdi
callq 0x135c0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
dtoa_alloc:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov eax, [rbp+var_4]
add eax, 8
sub eax, 1
and eax, 0FFFFFFF8h
mov [rbp+var_1C], eax
mov rax, [rbp+var_10]
mov rax, [rax+8]
movsxd rcx, [rbp+var_1C]
add rax, rcx
mov rcx, [rbp+var_10]
cmp rax, [rcx+10h]
ja short loc_38B2A
mov rax, [rbp+var_10]
mov rax, [rax+8]
mov [rbp+var_18], rax
mov edx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov rcx, [rax+8]
movsxd rdx, edx
add rcx, rdx
mov [rax+8], rcx
jmp short loc_38B37
loc_38B2A:
movsxd rdi, [rbp+var_4]
call _malloc
mov [rbp+var_18], rax
loc_38B37:
mov rax, [rbp+var_18]
add rsp, 20h
pop rbp
retn
|
long long dtoa_alloc(int a1, long long a2)
{
signed int v3; // [rsp+4h] [rbp-1Ch]
long long v4; // [rsp+8h] [rbp-18h]
v3 = (a1 + 7) & 0xFFFFFFF8;
if ( (unsigned long long)(v3 + *(_QWORD *)(a2 + 8)) > *(_QWORD *)(a2 + 16) )
return malloc(a1);
v4 = *(_QWORD *)(a2 + 8);
*(_QWORD *)(a2 + 8) = v3 + v4;
return v4;
}
|
dtoa_alloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV EAX,dword ptr [RBP + -0x4]
ADD EAX,0x8
SUB EAX,0x1
AND EAX,0xfffffff8
MOV dword ptr [RBP + -0x1c],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOVSXD RCX,dword ptr [RBP + -0x1c]
ADD RAX,RCX
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x10]
JA 0x00138b2a
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV EDX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x8]
MOVSXD RDX,EDX
ADD RCX,RDX
MOV qword ptr [RAX + 0x8],RCX
JMP 0x00138b37
LAB_00138b2a:
MOVSXD RDI,dword ptr [RBP + -0x4]
CALL 0x001135c0
MOV qword ptr [RBP + -0x18],RAX
LAB_00138b37:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x20
POP RBP
RET
|
void * dtoa_alloc(int param_1,long param_2)
{
uint uVar1;
int8 local_20;
uVar1 = param_1 + 7U & 0xfffffff8;
if (*(ulong *)(param_2 + 0x10) < (ulong)(*(long *)(param_2 + 8) + (long)(int)uVar1)) {
local_20 = malloc((long)param_1);
}
else {
local_20 = *(void **)(param_2 + 8);
*(long *)(param_2 + 8) = *(long *)(param_2 + 8) + (long)(int)uVar1;
}
return local_20;
}
|
|
13,392
|
ModbusClientPort::setPort(ModbusPort*)
|
serhmarch[P]ModbusBridge/modbus/src/ModbusClientPort.cpp
|
void ModbusClientPort::setPort(ModbusPort *port)
{
ModbusClientPortPrivate *d = d_ModbusClientPort(d_ptr);
if (port != d->port)
{
ModbusPort *old = d->port;
old->close();
d->currentClient = nullptr;
d->state = STATE_BEGIN;
d->port = port;
delete old;
}
}
|
O2
|
cpp
|
ModbusClientPort::setPort(ModbusPort*):
pushq %r15
pushq %r14
pushq %rbx
movq 0x8(%rdi), %r15
movq 0x60(%r15), %r14
cmpq %rsi, %r14
je 0xbb90
movq %rsi, %rbx
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
andq $0x0, 0x78(%r15)
andl $0x0, 0x68(%r15)
movq %rbx, 0x60(%r15)
movq (%r14), %rax
movq %r14, %rdi
popq %rbx
popq %r14
popq %r15
jmpq *0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
|
_ZN16ModbusClientPort7setPortEP10ModbusPort:
push r15
push r14
push rbx
mov r15, [rdi+8]
mov r14, [r15+60h]
cmp r14, rsi
jz short loc_BB90
mov rbx, rsi
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+28h]
and qword ptr [r15+78h], 0
and dword ptr [r15+68h], 0
mov [r15+60h], rbx
mov rax, [r14]
mov rdi, r14
pop rbx
pop r14
pop r15
jmp qword ptr [rax+8]
loc_BB90:
pop rbx
pop r14
pop r15
retn
|
long long ModbusClientPort::setPort(ModbusClientPort *this, ModbusPort *a2)
{
long long v2; // r15
ModbusPort *v3; // r14
long long result; // rax
v2 = *((_QWORD *)this + 1);
v3 = *(ModbusPort **)(v2 + 96);
if ( v3 != a2 )
{
(*(void ( **)(_QWORD))(*(_QWORD *)v3 + 40LL))(*(_QWORD *)(v2 + 96));
*(_QWORD *)(v2 + 120) = 0LL;
*(_DWORD *)(v2 + 104) = 0;
*(_QWORD *)(v2 + 96) = a2;
return (*(long long ( **)(ModbusPort *))(*(_QWORD *)v3 + 8LL))(v3);
}
return result;
}
|
setPort:
PUSH R15
PUSH R14
PUSH RBX
MOV R15,qword ptr [RDI + 0x8]
MOV R14,qword ptr [R15 + 0x60]
CMP R14,RSI
JZ 0x0010bb90
MOV RBX,RSI
MOV RAX,qword ptr [R14]
MOV RDI,R14
CALL qword ptr [RAX + 0x28]
AND qword ptr [R15 + 0x78],0x0
AND dword ptr [R15 + 0x68],0x0
MOV qword ptr [R15 + 0x60],RBX
MOV RAX,qword ptr [R14]
MOV RDI,R14
POP RBX
POP R14
POP R15
JMP qword ptr [RAX + 0x8]
LAB_0010bb90:
POP RBX
POP R14
POP R15
RET
|
/* ModbusClientPort::setPort(ModbusPort*) */
void __thiscall ModbusClientPort::setPort(ModbusClientPort *this,ModbusPort *param_1)
{
long lVar1;
ModbusPort *pMVar2;
lVar1 = *(long *)(this + 8);
pMVar2 = *(ModbusPort **)(lVar1 + 0x60);
if (pMVar2 != param_1) {
(**(code **)(*(long *)pMVar2 + 0x28))(pMVar2);
*(int8 *)(lVar1 + 0x78) = 0;
*(int4 *)(lVar1 + 0x68) = 0;
*(ModbusPort **)(lVar1 + 0x60) = param_1;
/* WARNING: Could not recover jumptable at 0x0010bb8d. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*(long *)pMVar2 + 8))(pMVar2);
return;
}
return;
}
|
|
13,393
|
js_proxy_delete_property
|
bluesky950520[P]quickjs/quickjs.c
|
static int js_proxy_delete_property(JSContext *ctx, JSValue obj,
JSAtom atom)
{
JSProxyData *s;
JSValue method, ret, atom_val;
int res, res2, is_extensible;
JSValue args[2];
s = get_proxy_method(ctx, &method, obj, JS_ATOM_deleteProperty);
if (!s)
return -1;
if (JS_IsUndefined(method)) {
return JS_DeleteProperty(ctx, s->target, atom, 0);
}
atom_val = JS_AtomToValue(ctx, atom);;
if (JS_IsException(atom_val)) {
JS_FreeValue(ctx, method);
return -1;
}
args[0] = s->target;
args[1] = atom_val;
ret = JS_CallFree(ctx, method, s->handler, 2, args);
JS_FreeValue(ctx, atom_val);
if (JS_IsException(ret))
return -1;
res = JS_ToBoolFree(ctx, ret);
if (res) {
JSPropertyDescriptor desc;
res2 = JS_GetOwnPropertyInternal(ctx, &desc, JS_VALUE_GET_OBJ(s->target), atom);
if (res2 < 0)
return -1;
if (res2) {
if (!(desc.flags & JS_PROP_CONFIGURABLE))
goto fail;
is_extensible = JS_IsExtensible(ctx, s->target);
if (is_extensible < 0)
goto fail1;
if (!is_extensible) {
/* proxy-missing-checks */
fail:
JS_ThrowTypeError(ctx, "proxy: inconsistent deleteProperty");
fail1:
js_free_desc(ctx, &desc);
return -1;
}
js_free_desc(ctx, &desc);
}
}
return res;
}
|
O1
|
c
|
js_proxy_delete_property:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %r15d
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x18(%rsp), %rsi
movl $0x65, %r8d
callq 0x3d3e0
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4e9a6
movq %rax, %r14
movq 0x20(%rsp), %r12
cmpl $0x3, %r12d
jne 0x4e8c7
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movl %r15d, %ecx
xorl %r8d, %r8d
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x26d3b
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x2075a
movq %rdx, %r13
cmpl $0x6, %r13d
jne 0x4e8f3
movq 0x18(%rsp), %rsi
movq 0x18(%rbx), %rdi
movq %r12, %rdx
callq 0x1d8c6
jmp 0x4e9a6
movups (%r14), %xmm0
leaq 0x60(%rsp), %rdx
movaps %xmm0, (%rdx)
movq %rax, 0x10(%rdx)
movq %r13, 0x18(%rdx)
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rsi
movq 0x10(%r14), %rcx
movq 0x18(%r14), %r8
movq %rdx, (%rsp)
movq %rbx, %rdi
movq %r12, %rdx
movl $0x2, %r9d
callq 0x22c9d
movq %rax, 0x8(%rsp)
movq %rdx, %r12
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
callq 0x1d8c6
cmpl $0x6, %r12d
je 0x4e9a6
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
callq 0x22d0d
movl %eax, %ebp
testl %eax, %eax
je 0x4e9a6
movq (%r14), %rdx
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
movl %r15d, %ecx
callq 0x23bd9
testl %eax, %eax
js 0x4e9a1
je 0x4e9a6
testb $0x1, 0x28(%rsp)
jne 0x4e9ba
leaq 0x51739(%rip), %rsi # 0xa00c3
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22567
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x3d8c3
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13536
testw %ax, %ax
je 0x4e994
movzwl %ax, %eax
cmpl $0x1, %eax
je 0x4e983
jmp 0x4e9a6
|
js_proxy_delete_property:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r15d, ecx
mov rcx, rdx
mov rdx, rsi
mov rbx, rdi
lea rsi, [rsp+0B8h+var_A0]
mov r8d, 65h ; 'e'
call get_proxy_method
mov ebp, 0FFFFFFFFh
test rax, rax
jz loc_4E9A6
mov r14, rax
mov r12, [rsp+0B8h+var_98]
cmp r12d, 3
jnz short loc_4E8C7
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
mov ecx, r15d
xor r8d, r8d
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp JS_DeleteProperty
loc_4E8C7:
mov rdi, rbx
mov esi, r15d
xor edx, edx
call __JS_AtomToValue
mov r13, rdx
cmp r13d, 6
jnz short loc_4E8F3
mov rsi, [rsp+0B8h+var_A0]
mov rdi, [rbx+18h]
mov rdx, r12
call JS_FreeValueRT
jmp loc_4E9A6
loc_4E8F3:
movups xmm0, xmmword ptr [r14]
lea rdx, [rsp+0B8h+var_58]
movaps xmmword ptr [rdx], xmm0
mov [rdx+10h], rax
mov [rdx+18h], r13
mov [rsp+0B8h+var_A8], rax
mov rsi, [rsp+0B8h+var_A0]
mov rcx, [r14+10h]
mov r8, [r14+18h]
mov [rsp+0B8h+var_B8], rdx
mov rdi, rbx
mov rdx, r12
mov r9d, 2
call JS_CallFree
mov [rsp+0B8h+var_B0], rax
mov r12, rdx
mov rdi, [rbx+18h]
mov rsi, [rsp+0B8h+var_A8]
mov rdx, r13
call JS_FreeValueRT
cmp r12d, 6
jz short loc_4E9A6
mov rdi, rbx
mov rsi, [rsp+0B8h+var_B0]
mov rdx, r12
call JS_ToBoolFree
mov ebp, eax
test eax, eax
jz short loc_4E9A6
mov rdx, [r14]
lea rsi, [rsp+0B8h+var_90]
mov rdi, rbx
mov ecx, r15d
call JS_GetOwnPropertyInternal
test eax, eax
js short loc_4E9A1
jz short loc_4E9A6
test [rsp+0B8h+var_90], 1
jnz short loc_4E9BA
loc_4E983:
lea rsi, aProxyInconsist_3; "proxy: inconsistent deleteProperty"
mov rdi, rbx
xor eax, eax
call JS_ThrowTypeError
loc_4E994:
lea rsi, [rsp+0B8h+var_90]
mov rdi, rbx
call js_free_desc
loc_4E9A1:
mov ebp, 0FFFFFFFFh
loc_4E9A6:
mov eax, ebp
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4E9BA:
lea rdx, [rsp+0B8h+var_90]
mov rdi, r14
mov rsi, rbx
call js_proxy_delete_property_cold_1
test ax, ax
jz short loc_4E994
movzx eax, ax
cmp eax, 1
jz short loc_4E983
jmp short loc_4E9A6
|
long long js_proxy_delete_property(
long long a1,
long long a2,
long long a3,
unsigned int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
long long a13,
long long a14)
{
long long *proxy_method; // rax
double v16; // xmm4_8
double v17; // xmm5_8
unsigned int v18; // ebp
long long *v19; // r14
long long v20; // r12
long long v22; // rax
long long v23; // rdx
long long v24; // r13
__m128 v25; // xmm0
long long v26; // rdx
long long v27; // r12
int OwnPropertyInternal; // eax
long long v29; // rdx
long long v30; // rcx
long long v31; // r8
long long v32; // r9
__m128 v33; // xmm4
__m128 v34; // xmm5
__int16 v35; // ax
char v36; // [rsp+0h] [rbp-B8h]
long long v37; // [rsp+8h] [rbp-B0h]
_DWORD *v38; // [rsp+10h] [rbp-A8h]
_DWORD *v39; // [rsp+18h] [rbp-A0h] BYREF
long long v40; // [rsp+20h] [rbp-98h]
_BYTE v41[56]; // [rsp+28h] [rbp-90h] BYREF
__m128 v42; // [rsp+60h] [rbp-58h] BYREF
long long v43; // [rsp+70h] [rbp-48h]
long long v44; // [rsp+78h] [rbp-40h]
proxy_method = (long long *)get_proxy_method(
a1,
(unsigned long long *)&v39,
a2,
a3,
101LL,
a14,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12);
v18 = -1;
if ( !proxy_method )
return v18;
v19 = proxy_method;
v20 = v40;
if ( (_DWORD)v40 == 3 )
return JS_DeleteProperty(a1, *proxy_method, proxy_method[1], a4, 0, a5, a6, a7, a8, v16, v17, a11, a12);
v22 = _JS_AtomToValue(a1, a4, 0);
v24 = v23;
if ( (_DWORD)v23 != 6 )
{
v25 = *(__m128 *)v19;
v42 = *(__m128 *)v19;
v43 = v22;
v44 = v23;
v38 = (_DWORD *)v22;
v37 = JS_CallFree(a1, v39, v20, v19[2], v19[3], 2, (long long)&v42);
v27 = v26;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v38, v24);
if ( (_DWORD)v27 == 6 )
return v18;
v18 = JS_ToBoolFree(a1, v37, v27);
if ( !v18 )
return v18;
OwnPropertyInternal = JS_GetOwnPropertyInternal(a1, (long long)v41, *v19, a4);
if ( OwnPropertyInternal < 0 )
return (unsigned int)-1;
if ( !OwnPropertyInternal )
return v18;
if ( (v41[0] & 1) != 0 )
{
v35 = js_proxy_delete_property_cold_1(v19, a1);
if ( !v35 )
goto LABEL_12;
if ( v35 != 1 )
return v18;
}
JS_ThrowTypeError(
a1,
(long long)"proxy: inconsistent deleteProperty",
v29,
v30,
v31,
v32,
v25,
a6,
a7,
a8,
v33,
v34,
a11,
a12,
v36);
LABEL_12:
js_free_desc(a1, (long long)v41);
return (unsigned int)-1;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v39, v20);
return v18;
}
| |||
13,394
|
js_proxy_delete_property
|
bluesky950520[P]quickjs/quickjs.c
|
static int js_proxy_delete_property(JSContext *ctx, JSValue obj,
JSAtom atom)
{
JSProxyData *s;
JSValue method, ret, atom_val;
int res, res2, is_extensible;
JSValue args[2];
s = get_proxy_method(ctx, &method, obj, JS_ATOM_deleteProperty);
if (!s)
return -1;
if (JS_IsUndefined(method)) {
return JS_DeleteProperty(ctx, s->target, atom, 0);
}
atom_val = JS_AtomToValue(ctx, atom);;
if (JS_IsException(atom_val)) {
JS_FreeValue(ctx, method);
return -1;
}
args[0] = s->target;
args[1] = atom_val;
ret = JS_CallFree(ctx, method, s->handler, 2, args);
JS_FreeValue(ctx, atom_val);
if (JS_IsException(ret))
return -1;
res = JS_ToBoolFree(ctx, ret);
if (res) {
JSPropertyDescriptor desc;
res2 = JS_GetOwnPropertyInternal(ctx, &desc, JS_VALUE_GET_OBJ(s->target), atom);
if (res2 < 0)
return -1;
if (res2) {
if (!(desc.flags & JS_PROP_CONFIGURABLE))
goto fail;
is_extensible = JS_IsExtensible(ctx, s->target);
if (is_extensible < 0)
goto fail1;
if (!is_extensible) {
/* proxy-missing-checks */
fail:
JS_ThrowTypeError(ctx, "proxy: inconsistent deleteProperty");
fail1:
js_free_desc(ctx, &desc);
return -1;
}
js_free_desc(ctx, &desc);
}
}
return res;
}
|
O2
|
c
|
js_proxy_delete_property:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebp
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %r14
leaq 0x18(%rsp), %rsi
pushq $0x65
popq %r8
callq 0x35d01
movq %rax, %r15
pushq $-0x1
popq %rax
testq %r15, %r15
je 0x436bc
movq 0x20(%rsp), %r12
cmpl $0x3, %r12d
jne 0x43642
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
movl %ebp, %ecx
xorl %r8d, %r8d
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x20af7
movq %r14, %rdi
movl %ebp, %esi
callq 0x1a91e
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x43666
movq 0x18(%rsp), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0x1801e
jmp 0x436b9
movq %rax, %r13
movups (%r15), %xmm0
leaq 0x60(%rsp), %rax
movaps %xmm0, (%rax)
movq %r13, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq 0x18(%rsp), %rsi
movq 0x10(%r15), %rcx
movq 0x18(%r15), %r8
movq %rax, (%rsp)
pushq $0x2
popq %r9
movq %r14, %rdi
movq %r12, %rdx
callq 0x1cd8e
movq %rax, 0x10(%rsp)
movq %rdx, %r12
movq %r14, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x1801e
cmpl $0x6, %r12d
jne 0x436ce
pushq $-0x1
popq %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0x1cdfa
testl %eax, %eax
je 0x43717
movl %eax, %r12d
movq (%r15), %rdx
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %ecx
callq 0x1db80
testl %eax, %eax
js 0x436b9
je 0x4373d
testb $0x1, 0x28(%rsp)
jne 0x4371b
leaq 0x438f2(%rip), %rsi # 0x86ffd
movq %r14, %rdi
xorl %eax, %eax
callq 0x1c64d
jmp 0x43745
xorl %eax, %eax
jmp 0x436bc
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x1de0a
testl %eax, %eax
js 0x43745
je 0x43704
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x360ed
movl %r12d, %eax
jmp 0x436bc
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x360ed
jmp 0x436b9
|
js_proxy_delete_property:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov ebp, ecx
mov rcx, rdx
mov rdx, rsi
mov r14, rdi
lea rsi, [rsp+0B8h+var_A0]
push 65h ; 'e'
pop r8
call get_proxy_method
mov r15, rax
push 0FFFFFFFFFFFFFFFFh
pop rax
test r15, r15
jz loc_436BC
mov r12, [rsp+0B8h+var_98]
cmp r12d, 3
jnz short loc_43642
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, r14
mov ecx, ebp
xor r8d, r8d
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp JS_DeleteProperty
loc_43642:
mov rdi, r14
mov esi, ebp
call JS_AtomToValue
mov rbx, rdx
cmp ebx, 6
jnz short loc_43666
mov rsi, [rsp+0B8h+var_A0]
mov rdi, r14
mov rdx, r12
call JS_FreeValue
jmp short loc_436B9
loc_43666:
mov r13, rax
movups xmm0, xmmword ptr [r15]
lea rax, [rsp+0B8h+var_58]
movaps xmmword ptr [rax], xmm0
mov [rax+10h], r13
mov [rax+18h], rbx
mov rsi, [rsp+0B8h+var_A0]
mov rcx, [r15+10h]
mov r8, [r15+18h]
mov [rsp+0B8h+var_B8], rax
push 2
pop r9
mov rdi, r14
mov rdx, r12
call JS_CallFree
mov [rsp+0B8h+var_A8], rax
mov r12, rdx
mov rdi, r14
mov rsi, r13
mov rdx, rbx
call JS_FreeValue
cmp r12d, 6
jnz short loc_436CE
loc_436B9:
push 0FFFFFFFFFFFFFFFFh
pop rax
loc_436BC:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_436CE:
mov rdi, r14
mov rsi, [rsp+0B8h+var_A8]
mov rdx, r12
call JS_ToBoolFree
test eax, eax
jz short loc_43717
mov r12d, eax
mov rdx, [r15]
lea rsi, [rsp+0B8h+var_90]
mov rdi, r14
mov ecx, ebp
call JS_GetOwnPropertyInternal
test eax, eax
js short loc_436B9
jz short loc_4373D
test [rsp+0B8h+var_90], 1
jnz short loc_4371B
loc_43704:
lea rsi, aProxyInconsist_3; "proxy: inconsistent deleteProperty"
mov rdi, r14
xor eax, eax
call JS_ThrowTypeError
jmp short loc_43745
loc_43717:
xor eax, eax
jmp short loc_436BC
loc_4371B:
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, r14
call JS_IsExtensible
test eax, eax
js short loc_43745
jz short loc_43704
lea rsi, [rsp+0B8h+var_90]
mov rdi, r14
call js_free_desc
loc_4373D:
mov eax, r12d
jmp loc_436BC
loc_43745:
lea rsi, [rsp+0B8h+var_90]
mov rdi, r14
call js_free_desc
jmp loc_436B9
|
long long js_proxy_delete_property(
long long a1,
long long a2,
int a3,
unsigned int a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
double a9,
double a10,
__m128 a11,
__m128 a12)
{
long long *proxy_method; // r15
double v14; // xmm4_8
double v15; // xmm5_8
long long result; // rax
long long v17; // r12
long long v18; // rax
long long v19; // rdx
long long v20; // rbx
long long v21; // r13
__m128 v22; // xmm0
long long v23; // rdx
long long v24; // r12
unsigned int v25; // eax
unsigned int *v26; // r8
unsigned int v27; // r12d
int v28; // eax
long long v29; // rdx
long long v30; // rcx
long long v31; // r8
long long v32; // r9
__m128 v33; // xmm4
__m128 v34; // xmm5
int IsExtensible; // eax
char v36; // [rsp+0h] [rbp-B8h]
long long v37; // [rsp+10h] [rbp-A8h]
long long v38; // [rsp+18h] [rbp-A0h] BYREF
long long v39; // [rsp+20h] [rbp-98h]
long long v40[7]; // [rsp+28h] [rbp-90h] BYREF
__m128 v41; // [rsp+60h] [rbp-58h] BYREF
long long v42; // [rsp+70h] [rbp-48h]
long long v43; // [rsp+78h] [rbp-40h]
proxy_method = (long long *)get_proxy_method(a1, (unsigned long long *)&v38, a2, a3, 101);
result = -1LL;
if ( proxy_method )
{
v17 = v39;
if ( (_DWORD)v39 == 3 )
return JS_DeleteProperty(a1, a5, a6, a7, a8, v14, v15, a11, a12, *proxy_method, proxy_method[1], a4, 0);
v18 = JS_AtomToValue(a1, a4);
v20 = v19;
if ( (_DWORD)v19 == 6 )
{
JS_FreeValue(a1, v38, v17);
return -1LL;
}
v21 = v18;
v22 = *(__m128 *)proxy_method;
v41 = *(__m128 *)proxy_method;
v42 = v18;
v43 = v19;
v37 = JS_CallFree(a1, v38, v17, proxy_method[2], proxy_method[3], 2, (long long)&v41);
v24 = v23;
JS_FreeValue(a1, v21, v20);
if ( (_DWORD)v24 == 6 )
return -1LL;
v25 = JS_ToBoolFree(a1, v37, v24);
if ( !v25 )
return 0LL;
v27 = v25;
LOBYTE(v28) = JS_GetOwnPropertyInternal(a1, (long long)v40, *proxy_method, a4, v26);
if ( v28 < 0 )
return -1LL;
if ( v28 )
{
if ( (v40[0] & 1) == 0 )
goto LABEL_13;
IsExtensible = JS_IsExtensible(
a1,
*proxy_method,
proxy_method[1],
v22,
a6,
a7,
a8,
*(double *)v33.m128_u64,
*(double *)v34.m128_u64,
a11,
a12);
if ( IsExtensible < 0 )
goto LABEL_19;
if ( !IsExtensible )
{
LABEL_13:
JS_ThrowTypeError(
a1,
(long long)"proxy: inconsistent deleteProperty",
v29,
v30,
v31,
v32,
v22,
a6,
a7,
a8,
v33,
v34,
a11,
a12,
v36);
LABEL_19:
js_free_desc(a1, v40);
return -1LL;
}
js_free_desc(a1, v40);
}
return v27;
}
return result;
}
|
js_proxy_delete_property:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV EBP,ECX
MOV RCX,RDX
MOV RDX,RSI
MOV R14,RDI
LEA RSI,[RSP + 0x18]
PUSH 0x65
POP R8
CALL 0x00135d01
MOV R15,RAX
PUSH -0x1
POP RAX
TEST R15,R15
JZ 0x001436bc
MOV R12,qword ptr [RSP + 0x20]
CMP R12D,0x3
JNZ 0x00143642
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,R14
MOV ECX,EBP
XOR R8D,R8D
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00120af7
LAB_00143642:
MOV RDI,R14
MOV ESI,EBP
CALL 0x0011a91e
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x00143666
MOV RSI,qword ptr [RSP + 0x18]
MOV RDI,R14
MOV RDX,R12
CALL 0x0011801e
JMP 0x001436b9
LAB_00143666:
MOV R13,RAX
MOVUPS XMM0,xmmword ptr [R15]
LEA RAX,[RSP + 0x60]
MOVAPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],R13
MOV qword ptr [RAX + 0x18],RBX
MOV RSI,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [R15 + 0x10]
MOV R8,qword ptr [R15 + 0x18]
MOV qword ptr [RSP],RAX
PUSH 0x2
POP R9
MOV RDI,R14
MOV RDX,R12
CALL 0x0011cd8e
MOV qword ptr [RSP + 0x10],RAX
MOV R12,RDX
MOV RDI,R14
MOV RSI,R13
MOV RDX,RBX
CALL 0x0011801e
CMP R12D,0x6
JNZ 0x001436ce
LAB_001436b9:
PUSH -0x1
POP RAX
LAB_001436bc:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001436ce:
MOV RDI,R14
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,R12
CALL 0x0011cdfa
TEST EAX,EAX
JZ 0x00143717
MOV R12D,EAX
MOV RDX,qword ptr [R15]
LEA RSI,[RSP + 0x28]
MOV RDI,R14
MOV ECX,EBP
CALL 0x0011db80
TEST EAX,EAX
JS 0x001436b9
JZ 0x0014373d
TEST byte ptr [RSP + 0x28],0x1
JNZ 0x0014371b
LAB_00143704:
LEA RSI,[0x186ffd]
MOV RDI,R14
XOR EAX,EAX
CALL 0x0011c64d
JMP 0x00143745
LAB_00143717:
XOR EAX,EAX
JMP 0x001436bc
LAB_0014371b:
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV RDI,R14
CALL 0x0011de0a
TEST EAX,EAX
JS 0x00143745
JZ 0x00143704
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x001360ed
LAB_0014373d:
MOV EAX,R12D
JMP 0x001436bc
LAB_00143745:
LEA RSI,[RSP + 0x28]
MOV RDI,R14
CALL 0x001360ed
JMP 0x001436b9
|
ulong js_proxy_delete_property
(int8 param_1,int8 param_2,int8 param_3,int4 param_4)
{
uint uVar1;
int iVar2;
int8 *puVar3;
ulong uVar4;
int8 uVar5;
int8 uVar6;
int1 auVar7 [16];
int8 local_a0;
int8 local_98;
byte local_90 [56];
int4 local_58;
int4 uStack_54;
int4 uStack_50;
int4 uStack_4c;
int1 local_48 [16];
puVar3 = (int8 *)get_proxy_method(param_1,&local_a0,param_2,param_3,0x65);
if (puVar3 == (int8 *)0x0) {
return 0xffffffffffffffff;
}
if ((int)local_98 == 3) {
uVar4 = JS_DeleteProperty(param_1,*puVar3,puVar3[1],param_4,0);
return uVar4;
}
local_48 = JS_AtomToValue(param_1,param_4);
uVar6 = local_48._8_8_;
uVar5 = local_48._0_8_;
if (local_48._8_4_ == 6) {
JS_FreeValue(param_1,local_a0,local_98);
return 0xffffffffffffffff;
}
local_58 = *(int4 *)puVar3;
uStack_54 = *(int4 *)((long)puVar3 + 4);
uStack_50 = *(int4 *)(puVar3 + 1);
uStack_4c = *(int4 *)((long)puVar3 + 0xc);
auVar7 = JS_CallFree(param_1,local_a0,local_98,puVar3[2],puVar3[3],2,&local_58);
JS_FreeValue(param_1,uVar5,uVar6);
if (auVar7._8_4_ == 6) {
return 0xffffffffffffffff;
}
uVar1 = JS_ToBoolFree(param_1,auVar7._0_8_,auVar7._8_8_);
if (uVar1 == 0) {
return 0;
}
iVar2 = JS_GetOwnPropertyInternal(param_1,local_90,*puVar3,param_4);
if (iVar2 < 0) {
return 0xffffffffffffffff;
}
if (iVar2 == 0) {
return (ulong)uVar1;
}
if ((local_90[0] & 1) != 0) {
iVar2 = JS_IsExtensible(param_1,*puVar3,puVar3[1]);
if (iVar2 < 0) goto LAB_00143745;
if (iVar2 != 0) {
js_free_desc(param_1,local_90);
return (ulong)uVar1;
}
}
JS_ThrowTypeError(param_1,"proxy: inconsistent deleteProperty");
LAB_00143745:
js_free_desc(param_1,local_90);
return 0xffffffffffffffff;
}
|
|
13,395
|
fmt::v10::detail::bigint::remove_leading_zeros()
|
AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
|
FMT_CONSTEXPR20 void remove_leading_zeros() {
int num_bigits = static_cast<int>(bigits_.size()) - 1;
while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits;
bigits_.resize(to_unsigned(num_bigits + 1));
}
|
O3
|
c
|
fmt::v10::detail::bigint::remove_leading_zeros():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rax
movl %eax, %esi
testl %eax, %eax
movl $0x1, %ecx
cmovlel %eax, %ecx
leaq (%rdx,%rsi,4), %rdx
addq $-0x4, %rdx
cmpl $0x2, %eax
jl 0x47f95
decl %eax
cmpl $0x0, (%rdx)
leaq -0x4(%rdx), %rdx
je 0x47f81
incl %eax
movl %eax, %ecx
movl %ecx, %r14d
movq 0x18(%rbx), %rax
cmpq %r14, %rax
jae 0x47fb0
movq (%rbx), %rax
movq %rbx, %rdi
movq %r14, %rsi
callq *(%rax)
movq 0x18(%rbx), %rax
cmpq %r14, %rax
cmovbq %rax, %r14
movq %r14, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
|
_ZN3fmt3v106detail6bigint20remove_leading_zerosEv:
push r14
push rbx
push rax
mov rbx, rdi
mov rdx, [rdi+8]
mov rax, [rdi+10h]
mov esi, eax
test eax, eax
mov ecx, 1
cmovle ecx, eax
lea rdx, [rdx+rsi*4]
add rdx, 0FFFFFFFFFFFFFFFCh
loc_47F81:
cmp eax, 2
jl short loc_47F95
dec eax
cmp dword ptr [rdx], 0
lea rdx, [rdx-4]
jz short loc_47F81
inc eax
mov ecx, eax
loc_47F95:
mov r14d, ecx
mov rax, [rbx+18h]
cmp rax, r14
jnb short loc_47FB0
mov rax, [rbx]
mov rdi, rbx
mov rsi, r14
call qword ptr [rax]
mov rax, [rbx+18h]
loc_47FB0:
cmp rax, r14
cmovb r14, rax
mov [rbx+10h], r14
add rsp, 8
pop rbx
pop r14
retn
|
unsigned long long fmt::v10::detail::bigint::remove_leading_zeros(fmt::v10::detail::bigint *this)
{
long long v1; // rax
unsigned int v2; // ecx
_DWORD *v3; // rdx
unsigned long long v5; // r14
unsigned long long result; // rax
v1 = *((_QWORD *)this + 2);
v2 = 1;
if ( (int)v1 <= 0 )
v2 = *((_QWORD *)this + 2);
v3 = (_DWORD *)(*((_QWORD *)this + 1) + 4LL * (unsigned int)v1 - 4);
while ( (int)v1 >= 2 )
{
LODWORD(v1) = v1 - 1;
if ( *v3-- != 0 )
{
v2 = v1 + 1;
break;
}
}
v5 = v2;
result = *((_QWORD *)this + 3);
if ( result < v2 )
{
(**(void ( ***)(fmt::v10::detail::bigint *, _QWORD, _DWORD *))this)(this, v2, v3);
result = *((_QWORD *)this + 3);
}
if ( result < v5 )
v5 = result;
*((_QWORD *)this + 2) = v5;
return result;
}
|
remove_leading_zeros:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RDX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RDI + 0x10]
MOV ESI,EAX
TEST EAX,EAX
MOV ECX,0x1
CMOVLE ECX,EAX
LEA RDX,[RDX + RSI*0x4]
ADD RDX,-0x4
LAB_00147f81:
CMP EAX,0x2
JL 0x00147f95
DEC EAX
CMP dword ptr [RDX],0x0
LEA RDX,[RDX + -0x4]
JZ 0x00147f81
INC EAX
MOV ECX,EAX
LAB_00147f95:
MOV R14D,ECX
MOV RAX,qword ptr [RBX + 0x18]
CMP RAX,R14
JNC 0x00147fb0
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RAX]
MOV RAX,qword ptr [RBX + 0x18]
LAB_00147fb0:
CMP RAX,R14
CMOVC R14,RAX
MOV qword ptr [RBX + 0x10],R14
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* fmt::v10::detail::bigint::remove_leading_zeros() */
void __thiscall fmt::v10::detail::bigint::remove_leading_zeros(bigint *this)
{
int iVar1;
ulong uVar3;
ulong uVar4;
int *piVar5;
ulong uVar2;
uVar3 = *(ulong *)(this + 0x10);
uVar4 = 1;
if ((int)uVar3 < 1) {
uVar4 = uVar3 & 0xffffffff;
}
piVar5 = (int *)(*(long *)(this + 8) + (uVar3 & 0xffffffff) * 4);
do {
uVar2 = uVar3;
piVar5 = piVar5 + -1;
iVar1 = (int)uVar2;
if (iVar1 < 2) goto LAB_00147f95;
uVar3 = (ulong)(iVar1 - 1);
} while (*piVar5 == 0);
uVar4 = uVar2 & 0xffffffff;
LAB_00147f95:
uVar3 = *(ulong *)(this + 0x18);
if (uVar3 < uVar4) {
(*(code *)**(int8 **)this)(this,uVar4);
uVar3 = *(ulong *)(this + 0x18);
}
if (uVar3 < uVar4) {
uVar4 = uVar3;
}
*(ulong *)(this + 0x10) = uVar4;
return;
}
|
|
13,396
|
my_realloc
|
eloqsql/mysys/my_malloc.c
|
void *my_realloc(PSI_memory_key key, void *old_point, size_t size, myf my_flags)
{
my_memory_header *old_mh, *mh;
void *point;
size_t old_size;
my_bool old_flags;
DBUG_ENTER("my_realloc");
DBUG_PRINT("my",("ptr: %p size: %zu flags: %lu", old_point, size, my_flags));
DBUG_ASSERT(size > 0);
if (!old_point && (my_flags & MY_ALLOW_ZERO_PTR))
DBUG_RETURN(my_malloc(key, size, my_flags));
old_mh= USER_TO_HEADER(old_point);
old_size= old_mh->m_size & ~1;
old_flags= old_mh->m_size & 1;
DBUG_ASSERT(old_mh->m_key == key || old_mh->m_key == PSI_NOT_INSTRUMENTED);
DBUG_ASSERT(old_flags == MY_TEST(my_flags & MY_THREAD_SPECIFIC));
size= ALIGN_SIZE(size);
mh= sf_realloc(old_mh, size + HEADER_SIZE, my_flags);
if (mh == NULL)
{
if (size < old_size)
DBUG_RETURN(old_point);
my_errno=errno;
if (my_flags & MY_FREE_ON_ERROR)
{
/* my_free will take care of size accounting */
my_free(old_point);
old_point= 0;
}
if (my_flags & (MY_FAE+MY_WME))
my_error(EE_OUTOFMEMORY, MYF(ME_BELL + ME_FATAL), size);
point= NULL;
}
else
{
mh->m_size= size | old_flags;
mh->m_key= PSI_CALL_memory_realloc(key, old_size, size, & mh->m_owner);
update_malloc_size((longlong)size - (longlong)old_size, old_flags);
point= HEADER_TO_USER(mh);
}
DBUG_PRINT("exit",("ptr: %p", point));
DBUG_RETURN(point);
}
|
O0
|
c
|
my_realloc:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
jmp 0x37049
jmp 0x3704b
jmp 0x3704d
cmpq $0x0, -0x18(%rbp)
jne 0x3707d
movq -0x28(%rbp), %rax
andq $0x40, %rax
cmpq $0x0, %rax
je 0x3707d
jmp 0x37064
movl -0xc(%rbp), %edi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x36e60
movq %rax, -0x8(%rbp)
jmp 0x371c7
movq -0x18(%rbp), %rax
addq $-0x18, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
andq $-0x2, %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
andq $0x1, %rax
movb %al, -0x49(%rbp)
jmp 0x370aa
jmp 0x370ac
jmp 0x370ae
movq -0x20(%rbp), %rax
addq $0x8, %rax
subq $0x1, %rax
andq $-0x8, %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x18, %rsi
callq 0x255d0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x37159
movq -0x20(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x370f7
jmp 0x370ea
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x371c7
callq 0x25040
movl (%rax), %eax
movl %eax, -0x50(%rbp)
callq 0x38f00
movl -0x50(%rbp), %ecx
movl %ecx, (%rax)
movq -0x28(%rbp), %rax
andq $0x80, %rax
cmpq $0x0, %rax
je 0x3712c
movq -0x18(%rbp), %rdi
callq 0x371e0
movq $0x0, -0x18(%rbp)
movq -0x28(%rbp), %rax
andq $0x18, %rax
cmpq $0x0, %rax
je 0x3714f
movq -0x20(%rbp), %rdx
movl $0x5, %edi
movl $0x1004, %esi # imm = 0x1004
movb $0x0, %al
callq 0x31c20
movq $0x0, -0x40(%rbp)
jmp 0x371b9
movq -0x20(%rbp), %rcx
movsbq -0x49(%rbp), %rax
orq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
leaq 0x1aaa44(%rip), %rax # 0x1e1bb8
movq (%rax), %rax
movq 0x3e8(%rax), %rax
movl -0xc(%rbp), %edi
movq -0x48(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x38(%rbp), %rcx
callq *%rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, 0x10(%rax)
movq 0x1aa4e1(%rip), %rax # 0x1e1680
movq -0x20(%rbp), %rdi
subq -0x48(%rbp), %rdi
movsbl -0x49(%rbp), %esi
callq *%rax
movq -0x38(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x40(%rbp)
jmp 0x371bb
jmp 0x371bd
jmp 0x371bf
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
my_realloc:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
jmp short $+2
loc_37049:
jmp short $+2
loc_3704B:
jmp short $+2
loc_3704D:
cmp [rbp+var_18], 0
jnz short loc_3707D
mov rax, [rbp+var_28]
and rax, 40h
cmp rax, 0
jz short loc_3707D
jmp short $+2
loc_37064:
mov edi, [rbp+var_C]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_28]
call my_malloc
mov [rbp+var_8], rax
jmp loc_371C7
loc_3707D:
mov rax, [rbp+var_18]
add rax, 0FFFFFFFFFFFFFFE8h
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rax, [rax+8]
and rax, 0FFFFFFFFFFFFFFFEh
mov [rbp+var_48], rax
mov rax, [rbp+var_30]
mov rax, [rax+8]
and rax, 1
mov [rbp+var_49], al
jmp short $+2
loc_370AA:
jmp short $+2
loc_370AC:
jmp short $+2
loc_370AE:
mov rax, [rbp+var_20]
add rax, 8
sub rax, 1
and rax, 0FFFFFFFFFFFFFFF8h
mov [rbp+var_20], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_20]
add rsi, 18h
call _realloc
mov [rbp+var_38], rax
cmp [rbp+var_38], 0
jnz short loc_37159
mov rax, [rbp+var_20]
cmp rax, [rbp+var_48]
jnb short loc_370F7
jmp short $+2
loc_370EA:
mov rax, [rbp+var_18]
mov [rbp+var_8], rax
jmp loc_371C7
loc_370F7:
call ___errno_location
mov eax, [rax]
mov [rbp+var_50], eax
call _my_thread_var
mov ecx, [rbp+var_50]
mov [rax], ecx
mov rax, [rbp+var_28]
and rax, 80h
cmp rax, 0
jz short loc_3712C
mov rdi, [rbp+var_18]
call my_free
mov [rbp+var_18], 0
loc_3712C:
mov rax, [rbp+var_28]
and rax, 18h
cmp rax, 0
jz short loc_3714F
mov rdx, [rbp+var_20]
mov edi, 5
mov esi, 1004h
mov al, 0
call my_error
loc_3714F:
mov [rbp+var_40], 0
jmp short loc_371B9
loc_37159:
mov rcx, [rbp+var_20]
movsx rax, [rbp+var_49]
or rcx, rax
mov rax, [rbp+var_38]
mov [rax+8], rcx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+3E8h]
mov edi, [rbp+var_C]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_38]
call rax
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax+10h], ecx
mov rax, cs:update_malloc_size
mov rdi, [rbp+var_20]
sub rdi, [rbp+var_48]
movsx esi, [rbp+var_49]
call rax ; dummy
mov rax, [rbp+var_38]
add rax, 18h
mov [rbp+var_40], rax
loc_371B9:
jmp short $+2
loc_371BB:
jmp short $+2
loc_371BD:
jmp short $+2
loc_371BF:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_371C7:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
|
long long my_realloc(unsigned int a1, long long a2, unsigned long long a3, char a4)
{
int v5; // [rsp+0h] [rbp-50h]
char v6; // [rsp+7h] [rbp-49h]
unsigned long long v7; // [rsp+8h] [rbp-48h]
long long v9; // [rsp+18h] [rbp-38h]
unsigned long long v11; // [rsp+30h] [rbp-20h]
if ( a2 || (a4 & 0x40) == 0 )
{
v7 = *(_QWORD *)(a2 - 24 + 8) & 0xFFFFFFFFFFFFFFFELL;
v6 = *(_BYTE *)(a2 - 24 + 8) & 1;
v11 = (a3 + 7) & 0xFFFFFFFFFFFFFFF8LL;
v9 = realloc(a2 - 24, v11 + 24);
if ( v9 )
{
*(_QWORD *)(v9 + 8) = v6 | v11;
*(_DWORD *)(v9 + 16) = (*((long long ( **)(_QWORD, unsigned long long, unsigned long long, long long))PSI_server
+ 125))(
a1,
v7,
v11,
v9);
update_malloc_size(v11 - v7, v6);
return v9 + 24;
}
else
{
if ( v11 < v7 )
return a2;
v5 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v5;
if ( a4 < 0 )
my_free(a2);
if ( (a4 & 0x18) != 0 )
my_error(5u, 4100LL, v11);
return 0LL;
}
}
return my_malloc(a1, a3, a4);
}
|
my_realloc:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
JMP 0x00137049
LAB_00137049:
JMP 0x0013704b
LAB_0013704b:
JMP 0x0013704d
LAB_0013704d:
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x0013707d
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x40
CMP RAX,0x0
JZ 0x0013707d
JMP 0x00137064
LAB_00137064:
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00136e60
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001371c7
LAB_0013707d:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,-0x18
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x8]
AND RAX,-0x2
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RAX + 0x8]
AND RAX,0x1
MOV byte ptr [RBP + -0x49],AL
JMP 0x001370aa
LAB_001370aa:
JMP 0x001370ac
LAB_001370ac:
JMP 0x001370ae
LAB_001370ae:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x8
SUB RAX,0x1
AND RAX,-0x8
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x20]
ADD RSI,0x18
CALL 0x001255d0
MOV qword ptr [RBP + -0x38],RAX
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x00137159
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x48]
JNC 0x001370f7
JMP 0x001370ea
LAB_001370ea:
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001371c7
LAB_001370f7:
CALL 0x00125040
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x50],EAX
CALL 0x00138f00
MOV ECX,dword ptr [RBP + -0x50]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x80
CMP RAX,0x0
JZ 0x0013712c
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x001371e0
MOV qword ptr [RBP + -0x18],0x0
LAB_0013712c:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x18
CMP RAX,0x0
JZ 0x0013714f
MOV RDX,qword ptr [RBP + -0x20]
MOV EDI,0x5
MOV ESI,0x1004
MOV AL,0x0
CALL 0x00131c20
LAB_0013714f:
MOV qword ptr [RBP + -0x40],0x0
JMP 0x001371b9
LAB_00137159:
MOV RCX,qword ptr [RBP + -0x20]
MOVSX RAX,byte ptr [RBP + -0x49]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x8],RCX
LEA RAX,[0x2e1bb8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3e8]
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x38]
CALL RAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX + 0x10],ECX
MOV RAX,qword ptr [0x002e1680]
MOV RDI,qword ptr [RBP + -0x20]
SUB RDI,qword ptr [RBP + -0x48]
MOVSX ESI,byte ptr [RBP + -0x49]
CALL RAX
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,0x18
MOV qword ptr [RBP + -0x40],RAX
LAB_001371b9:
JMP 0x001371bb
LAB_001371bb:
JMP 0x001371bd
LAB_001371bd:
JMP 0x001371bf
LAB_001371bf:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_001371c7:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
long my_realloc(int4 param_1,long param_2,long param_3,ulong param_4)
{
int iVar1;
byte bVar2;
int4 uVar3;
ulong uVar4;
ulong uVar5;
void *pvVar6;
int *piVar7;
long local_48;
long local_10;
if ((param_2 == 0) && ((param_4 & 0x40) != 0)) {
local_10 = my_malloc(param_1,param_3,param_4);
}
else {
uVar4 = *(ulong *)(param_2 + -0x10) & 0xfffffffffffffffe;
bVar2 = (byte)*(int8 *)(param_2 + -0x10) & 1;
uVar5 = param_3 + 7U & 0xfffffffffffffff8;
pvVar6 = realloc((void *)(param_2 + -0x18),uVar5 + 0x18);
if (pvVar6 == (void *)0x0) {
if (uVar5 < uVar4) {
return param_2;
}
piVar7 = __errno_location();
iVar1 = *piVar7;
piVar7 = (int *)_my_thread_var();
*piVar7 = iVar1;
if ((param_4 & 0x80) != 0) {
my_free(param_2);
}
if ((param_4 & 0x18) != 0) {
my_error(5,0x1004,uVar5);
}
local_48 = 0;
}
else {
*(ulong *)((long)pvVar6 + 8) = uVar5 | (long)(char)bVar2;
uVar3 = (**(code **)(PSI_server + 1000))(param_1,uVar4,uVar5,pvVar6);
*(int4 *)((long)pvVar6 + 0x10) = uVar3;
(*(code *)update_malloc_size)(uVar5 - uVar4,bVar2);
local_48 = (long)pvVar6 + 0x18;
}
local_10 = local_48;
}
return local_10;
}
|
|
13,397
|
inline_mysql_file_sync
|
eloqsql/include/mysql/psi/mysql_file.h
|
static inline int
inline_mysql_file_sync(
#ifdef HAVE_PSI_FILE_INTERFACE
const char *src_file, uint src_line,
#endif
File fd, myf flags)
{
int result= 0;
#ifdef HAVE_PSI_FILE_INTERFACE
struct PSI_file_locker *locker;
PSI_file_locker_state state;
locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, fd, PSI_FILE_SYNC);
if (psi_likely(locker != NULL))
{
PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line);
result= my_sync(fd, flags);
PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0);
return result;
}
#endif
result= my_sync(fd, flags);
return result;
}
|
O0
|
c
|
inline_mysql_file_sync:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
leaq 0x2179e9(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x158(%rax), %rax
movl -0x18(%rbp), %esi
leaq -0x78(%rbp), %rdi
movl $0x10, %edx
callq *%rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%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 0xb3af5
leaq 0x2179a6(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x210(%rax), %rax
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
xorl %esi, %esi
callq *%rax
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0xfc3f0
movl %eax, -0x24(%rbp)
leaq 0x217977(%rip), %rax # 0x2cb450
movq (%rax), %rax
movq 0x218(%rax), %rax
movq -0x30(%rbp), %rdi
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xb3b0a
movl -0x18(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0xfc3f0
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
inline_mysql_file_sync_7:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_20], rcx
mov [rbp+var_24], 0
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+158h]
mov esi, [rbp+var_18]
lea rdi, [rbp+var_78]
mov edx, 10h
call rax
mov [rbp+var_30], rax
cmp [rbp+var_30], 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_B3AF5
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+210h]
mov rdi, [rbp+var_30]
mov rdx, [rbp+var_10]
mov ecx, [rbp+var_14]
xor esi, esi
call rax
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_sync
mov [rbp+var_24], eax
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+218h]
mov rdi, [rbp+var_30]
xor ecx, ecx
mov esi, ecx
call rax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_B3B0A
loc_B3AF5:
mov edi, [rbp+var_18]
mov rsi, [rbp+var_20]
call my_sync
mov [rbp+var_24], eax
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
loc_B3B0A:
mov eax, [rbp+var_4]
add rsp, 80h
pop rbp
retn
|
long long inline_mysql_file_sync_7(long long a1, unsigned int a2, unsigned int a3, long long a4)
{
_BYTE v5[72]; // [rsp+8h] [rbp-78h] BYREF
long long v6; // [rsp+50h] [rbp-30h]
unsigned int v7; // [rsp+5Ch] [rbp-24h]
long long v8; // [rsp+60h] [rbp-20h]
unsigned int v9; // [rsp+68h] [rbp-18h]
unsigned int v10; // [rsp+6Ch] [rbp-14h]
long long v11; // [rsp+70h] [rbp-10h]
v11 = a1;
v10 = a2;
v9 = a3;
v8 = a4;
v7 = 0;
v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v5, a3, 16LL);
if ( v6 )
{
((void ( *)(long long, _QWORD, long long, _QWORD))PSI_server[66])(v6, 0LL, v11, v10);
v7 = my_sync(v9, v8);
((void ( *)(long long, _QWORD))PSI_server[67])(v6, 0LL);
}
else
{
return (unsigned int)my_sync(v9, v8);
}
return v7;
}
|
inline_mysql_file_sync:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV qword ptr [RBP + -0x20],RCX
MOV dword ptr [RBP + -0x24],0x0
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x158]
MOV ESI,dword ptr [RBP + -0x18]
LEA RDI,[RBP + -0x78]
MOV EDX,0x10
CALL RAX
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x001b3af5
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x210]
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
XOR ESI,ESI
CALL RAX
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001fc3f0
MOV dword ptr [RBP + -0x24],EAX
LEA RAX,[0x3cb450]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV RDI,qword ptr [RBP + -0x30]
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001b3b0a
LAB_001b3af5:
MOV EDI,dword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
CALL 0x001fc3f0
MOV dword ptr [RBP + -0x24],EAX
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
LAB_001b3b0a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x80
POP RBP
RET
|
int4
inline_mysql_file_sync(int8 param_1,int4 param_2,int4 param_3,int8 param_4)
{
int1 local_80 [72];
long local_38;
int4 local_2c;
int8 local_28;
int4 local_20;
int4 local_1c;
int8 local_18;
int4 local_c;
local_2c = 0;
local_28 = param_4;
local_20 = param_3;
local_1c = param_2;
local_18 = param_1;
local_38 = (**(code **)(PSI_server + 0x158))(local_80,param_3,0x10);
if (local_38 == 0) {
local_c = my_sync(local_20,local_28);
}
else {
(**(code **)(PSI_server + 0x210))(local_38,0,local_18,local_1c);
local_2c = my_sync(local_20,local_28);
(**(code **)(PSI_server + 0x218))(local_38,0);
local_c = local_2c;
}
return local_c;
}
|
|
13,398
|
translog_scanner_init
|
eloqsql/storage/maria/ma_loghandler.c
|
my_bool translog_scanner_init(LSN lsn,
my_bool fixed_horizon,
TRANSLOG_SCANNER_DATA *scanner,
my_bool use_direct)
{
DBUG_ENTER("translog_scanner_init");
DBUG_PRINT("enter", ("Scanner: %p LSN: " LSN_FMT,
scanner, LSN_IN_PARTS(lsn)));
DBUG_ASSERT(translog_status == TRANSLOG_OK ||
translog_status == TRANSLOG_READONLY);
scanner->page_offset= LSN_OFFSET(lsn) % TRANSLOG_PAGE_SIZE;
scanner->fixed_horizon= fixed_horizon;
scanner->use_direct_link= use_direct;
scanner->direct_link= NULL;
scanner->horizon= translog_get_horizon();
DBUG_PRINT("info", ("horizon: " LSN_FMT, LSN_IN_PARTS(scanner->horizon)));
/* lsn < horizon */
DBUG_ASSERT(lsn <= scanner->horizon);
scanner->page_addr= lsn;
scanner->page_addr-= scanner->page_offset; /*decrease offset */
if (translog_scanner_set_last_page(scanner))
DBUG_RETURN(1);
if (translog_scanner_get_page(scanner))
DBUG_RETURN(1);
DBUG_RETURN(0);
}
|
O0
|
c
|
translog_scanner_init:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movb %cl, %al
movb %sil, %cl
movq %rdi, -0x10(%rbp)
movb %cl, -0x11(%rbp)
movq %rdx, -0x20(%rbp)
movb %al, -0x21(%rbp)
jmp 0x31a7d
jmp 0x31a7f
jmp 0x31a81
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq -0x10(%rbp), %rax
andq $0x1fff, %rax # imm = 0x1FFF
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x2028(%rax)
movb -0x11(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x202c(%rax)
movb -0x21(%rbp), %cl
movq -0x20(%rbp), %rax
movb %cl, 0x202d(%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x2020(%rax)
callq 0x33910
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x2008(%rax)
jmp 0x31adf
jmp 0x31ae1
jmp 0x31ae3
movq -0x10(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x2000(%rax)
movq -0x20(%rbp), %rax
movl 0x2028(%rax), %eax
movl %eax, %edx
movq -0x20(%rbp), %rax
movq 0x2000(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x2000(%rax)
movq -0x20(%rbp), %rdi
callq 0x33960
cmpb $0x0, %al
je 0x31b28
jmp 0x31b22
movb $0x1, -0x1(%rbp)
jmp 0x31b43
movq -0x20(%rbp), %rdi
callq 0x33a30
cmpb $0x0, %al
je 0x31b3d
jmp 0x31b37
movb $0x1, -0x1(%rbp)
jmp 0x31b43
jmp 0x31b3f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
|
translog_scanner_init:
push rbp
mov rbp, rsp
sub rsp, 30h
mov al, cl
mov cl, sil
mov [rbp+var_10], rdi
mov [rbp+var_11], cl
mov [rbp+var_20], rdx
mov [rbp+var_21], al
jmp short $+2
loc_31A7D:
jmp short $+2
loc_31A7F:
jmp short $+2
loc_31A81:
mov rax, 0FFFFFFFFh
and rax, [rbp+var_10]
and rax, 1FFFh
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax+2028h], ecx
mov cl, [rbp+var_11]
mov rax, [rbp+var_20]
mov [rax+202Ch], cl
mov cl, [rbp+var_21]
mov rax, [rbp+var_20]
mov [rax+202Dh], cl
mov rax, [rbp+var_20]
mov qword ptr [rax+2020h], 0
call translog_get_horizon
mov rcx, rax
mov rax, [rbp+var_20]
mov [rax+2008h], rcx
jmp short $+2
loc_31ADF:
jmp short $+2
loc_31AE1:
jmp short $+2
loc_31AE3:
mov rcx, [rbp+var_10]
mov rax, [rbp+var_20]
mov [rax+2000h], rcx
mov rax, [rbp+var_20]
mov eax, [rax+2028h]
mov edx, eax
mov rax, [rbp+var_20]
mov rcx, [rax+2000h]
sub rcx, rdx
mov [rax+2000h], rcx
mov rdi, [rbp+var_20]
call translog_scanner_set_last_page
cmp al, 0
jz short loc_31B28
jmp short $+2
loc_31B22:
mov [rbp+var_1], 1
jmp short loc_31B43
loc_31B28:
mov rdi, [rbp+var_20]
call translog_scanner_get_page
cmp al, 0
jz short loc_31B3D
jmp short $+2
loc_31B37:
mov [rbp+var_1], 1
jmp short loc_31B43
loc_31B3D:
jmp short $+2
loc_31B3F:
mov [rbp+var_1], 0
loc_31B43:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
|
bool translog_scanner_init(long long a1, char a2, long long a3, char a4)
{
*(_DWORD *)(a3 + 8232) = a1 & 0x1FFF;
*(_BYTE *)(a3 + 8236) = a2;
*(_BYTE *)(a3 + 8237) = a4;
*(_QWORD *)(a3 + 8224) = 0LL;
*(_QWORD *)(a3 + 8200) = translog_get_horizon();
*(_QWORD *)(a3 + 0x2000) = a1;
*(_QWORD *)(a3 + 0x2000) -= *(unsigned int *)(a3 + 8232);
return (unsigned __int8)translog_scanner_set_last_page(a3) || (unsigned __int8)translog_scanner_get_page(a3) != 0;
}
|
translog_scanner_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV AL,CL
MOV CL,SIL
MOV qword ptr [RBP + -0x10],RDI
MOV byte ptr [RBP + -0x11],CL
MOV qword ptr [RBP + -0x20],RDX
MOV byte ptr [RBP + -0x21],AL
JMP 0x00131a7d
LAB_00131a7d:
JMP 0x00131a7f
LAB_00131a7f:
JMP 0x00131a81
LAB_00131a81:
MOV RAX,0xffffffff
AND RAX,qword ptr [RBP + -0x10]
AND RAX,0x1fff
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x2028],ECX
MOV CL,byte ptr [RBP + -0x11]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x202c],CL
MOV CL,byte ptr [RBP + -0x21]
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x202d],CL
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x2020],0x0
CALL 0x00133910
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x2008],RCX
JMP 0x00131adf
LAB_00131adf:
JMP 0x00131ae1
LAB_00131ae1:
JMP 0x00131ae3
LAB_00131ae3:
MOV RCX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x2000],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x2028]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x2000]
SUB RCX,RDX
MOV qword ptr [RAX + 0x2000],RCX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00133960
CMP AL,0x0
JZ 0x00131b28
JMP 0x00131b22
LAB_00131b22:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00131b43
LAB_00131b28:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00133a30
CMP AL,0x0
JZ 0x00131b3d
JMP 0x00131b37
LAB_00131b37:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00131b43
LAB_00131b3d:
JMP 0x00131b3f
LAB_00131b3f:
MOV byte ptr [RBP + -0x1],0x0
LAB_00131b43:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1
translog_scanner_init(int8 param_1,int1 param_2,long param_3,int1 param_4)
{
char cVar1;
int8 uVar2;
int1 local_9;
*(uint *)(param_3 + 0x2028) = (uint)param_1 & 0x1fff;
*(int1 *)(param_3 + 0x202c) = param_2;
*(int1 *)(param_3 + 0x202d) = param_4;
*(int8 *)(param_3 + 0x2020) = 0;
uVar2 = translog_get_horizon();
*(int8 *)(param_3 + 0x2008) = uVar2;
*(int8 *)(param_3 + 0x2000) = param_1;
*(ulong *)(param_3 + 0x2000) = *(long *)(param_3 + 0x2000) - (ulong)*(uint *)(param_3 + 0x2028);
cVar1 = translog_scanner_set_last_page(param_3);
if (cVar1 == '\0') {
cVar1 = translog_scanner_get_page(param_3);
if (cVar1 == '\0') {
local_9 = 0;
}
else {
local_9 = 1;
}
}
else {
local_9 = 1;
}
return local_9;
}
|
|
13,399
|
MyCTX_gcm::finish(unsigned char*, unsigned int*)
|
eloqsql/mysys_ssl/my_crypt.cc
|
int finish(uchar *dst, uint *dlen)
{
int fin;
if (!EVP_CipherFinal_ex(ctx, dst, &fin))
return MY_AES_BAD_DATA;
DBUG_ASSERT(fin == 0);
if (EVP_CIPHER_CTX_encrypting(ctx))
{
if(!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, MY_AES_BLOCK_SIZE, dst))
return MY_AES_OPENSSL_ERROR;
*dlen= MY_AES_BLOCK_SIZE;
}
else
*dlen= 0;
return MY_AES_OK;
}
|
O0
|
cpp
|
MyCTX_gcm::finish(unsigned char*, unsigned int*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0xc8(%rax), %rdi
movq -0x18(%rbp), %rsi
leaq -0x24(%rbp), %rdx
callq 0x2a290
cmpl $0x0, %eax
jne 0x14ffde
movl $0xffffff9c, -0x4(%rbp) # imm = 0xFFFFFF9C
jmp 0x15003d
jmp 0x14ffe0
jmp 0x14ffe2
movq -0x30(%rbp), %rax
movq 0xc8(%rax), %rdi
callq 0x2a820
cmpl $0x0, %eax
je 0x15002c
movq -0x30(%rbp), %rax
movq 0xc8(%rax), %rdi
movq -0x18(%rbp), %rcx
movl $0x10, %edx
movl %edx, %esi
callq 0x2a2d0
cmpl $0x0, %eax
jne 0x150020
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x15003d
movq -0x20(%rbp), %rax
movl $0x10, (%rax)
jmp 0x150036
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
|
_ZN9MyCTX_gcm6finishEPhPj:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov [rbp+var_30], rax
mov rdi, [rax+0C8h]
mov rsi, [rbp+var_18]
lea rdx, [rbp+var_24]
call _EVP_CipherFinal_ex
cmp eax, 0
jnz short loc_14FFDE
mov [rbp+var_4], 0FFFFFF9Ch
jmp short loc_15003D
loc_14FFDE:
jmp short $+2
loc_14FFE0:
jmp short $+2
loc_14FFE2:
mov rax, [rbp+var_30]
mov rdi, [rax+0C8h]
call _EVP_CIPHER_CTX_is_encrypting
cmp eax, 0
jz short loc_15002C
mov rax, [rbp+var_30]
mov rdi, [rax+0C8h]
mov rcx, [rbp+var_18]
mov edx, 10h
mov esi, edx
call _EVP_CIPHER_CTX_ctrl
cmp eax, 0
jnz short loc_150020
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_15003D
loc_150020:
mov rax, [rbp+var_20]
mov dword ptr [rax], 10h
jmp short loc_150036
loc_15002C:
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
loc_150036:
mov [rbp+var_4], 0
loc_15003D:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
|
long long MyCTX_gcm::finish(MyCTX_gcm *this, unsigned __int8 *a2, unsigned int *a3)
{
_BYTE v4[4]; // [rsp+Ch] [rbp-24h] BYREF
unsigned int *v5; // [rsp+10h] [rbp-20h]
unsigned __int8 *v6; // [rsp+18h] [rbp-18h]
MyCTX_gcm *v7; // [rsp+20h] [rbp-10h]
v7 = this;
v6 = a2;
v5 = a3;
if ( (unsigned int)EVP_CipherFinal_ex(*((_QWORD *)this + 25), a2, v4) )
{
if ( (unsigned int)EVP_CIPHER_CTX_is_encrypting(*((_QWORD *)this + 25)) )
{
if ( !(unsigned int)EVP_CIPHER_CTX_ctrl(*((_QWORD *)this + 25), 16LL, 16LL, v6) )
return (unsigned int)-101;
*v5 = 16;
}
else
{
*v5 = 0;
}
return 0;
}
return (unsigned int)-100;
}
|
Subsets and Splits
C++ Functions Using STL
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++ STL Function Queries
Filters C++ code examples that use standard library containers and algorithms, helping identify common programming patterns and library usage in code generation tasks.