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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
52,200 | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&) | monkey531[P]llama/common/minja.hpp | ForNode(const Location & location, std::vector<std::string> && var_names, std::shared_ptr<Expression> && iterable,
std::shared_ptr<Expression> && condition, std::shared_ptr<TemplateNode> && body, bool recursive, std::shared_ptr<TemplateNode> && else_body)
: TemplateNode(location), var_names(var_names), iterable(std::move(iterable)), condition(std::move(condition)), body(std::move(body)), recursive(recursive), else_body(std::move(else_body)) {} | O2 | cpp | minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool, std::shared_ptr<minja::TemplateNode>&&):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rdi, %rbx
callq 0x6ef5e
leaq 0x6bc28(%rip), %rax # 0xdb210
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x35ebc
andq $0x0, 0x40(%rbx)
movups (%r12), %xmm0
andq $0x0, 0x8(%r12)
movups %xmm0, 0x38(%rbx)
andq $0x0, (%r12)
movq 0x38(%rsp), %rax
andq $0x0, 0x50(%rbx)
movups (%r15), %xmm0
andq $0x0, 0x8(%r15)
movups %xmm0, 0x48(%rbx)
andq $0x0, (%r15)
movb 0x30(%rsp), %cl
andq $0x0, 0x60(%rbx)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x58(%rbx)
andq $0x0, (%r14)
movb %cl, 0x68(%rbx)
andq $0x0, 0x78(%rbx)
movups (%rax), %xmm0
andq $0x0, 0x8(%rax)
movups %xmm0, 0x70(%rbx)
andq $0x0, (%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7357c
movq %r14, %rdi
callq 0x21be0
| _ZN5minja7ForNodeC2ERKNS_8LocationEOSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EEOSt10shared_ptrINS_10ExpressionEESH_OSE_INS_12TemplateNodeEEbSK_:
push r15
push r14
push r13
push r12
push rbx
mov r14, r9
mov r15, r8
mov r12, rcx
mov r13, rdx
mov rbx, rdi
call _ZN5minja12TemplateNodeC2ERKNS_8LocationE; minja::TemplateNode::TemplateNode(minja::Location const&)
lea rax, _ZTVN5minja7ForNodeE; `vtable for'minja::ForNode
add rax, 10h
mov [rbx], rax
lea rdi, [rbx+20h]
mov rsi, r13
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
and qword ptr [rbx+40h], 0
movups xmm0, xmmword ptr [r12]
and qword ptr [r12+8], 0
movups xmmword ptr [rbx+38h], xmm0
and qword ptr [r12], 0
mov rax, [rsp+28h+arg_8]
and qword ptr [rbx+50h], 0
movups xmm0, xmmword ptr [r15]
and qword ptr [r15+8], 0
movups xmmword ptr [rbx+48h], xmm0
and qword ptr [r15], 0
mov cl, [rsp+28h+arg_0]
and qword ptr [rbx+60h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [rbx+58h], xmm0
and qword ptr [r14], 0
mov [rbx+68h], cl
and qword ptr [rbx+78h], 0
movups xmm0, xmmword ptr [rax]
and qword ptr [rax+8], 0
movups xmmword ptr [rbx+70h], xmm0
and qword ptr [rax], 0
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov r14, rax
mov rdi, rbx; this
call _ZN5minja12TemplateNodeD2Ev; minja::TemplateNode::~TemplateNode()
mov rdi, r14
call __Unwind_Resume
| long long minja::ForNode::ForNode(
long long a1,
_QWORD *a2,
_QWORD *a3,
__int128 *a4,
__int128 *a5,
__int128 *a6,
char a7,
__int128 *a8)
{
__int128 v12; // xmm0
long long result; // rax
__int128 v14; // xmm0
__int128 v15; // xmm0
__int128 v16; // xmm0
minja::TemplateNode::TemplateNode((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::ForNode + 2;
std::vector<std::string>::vector((_QWORD *)(a1 + 32), a3);
*(_QWORD *)(a1 + 64) = 0LL;
v12 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 56) = v12;
*(_QWORD *)a4 = 0LL;
result = (long long)a8;
*(_QWORD *)(a1 + 80) = 0LL;
v14 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 72) = v14;
*(_QWORD *)a5 = 0LL;
*(_QWORD *)(a1 + 96) = 0LL;
v15 = *a6;
*((_QWORD *)a6 + 1) = 0LL;
*(_OWORD *)(a1 + 88) = v15;
*(_QWORD *)a6 = 0LL;
*(_BYTE *)(a1 + 104) = a7;
*(_QWORD *)(a1 + 120) = 0LL;
v16 = *a8;
*((_QWORD *)a8 + 1) = 0LL;
*(_OWORD *)(a1 + 112) = v16;
*(_QWORD *)a8 = 0LL;
return result;
}
| ForNode:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV R14,R9
MOV R15,R8
MOV R12,RCX
MOV R13,RDX
MOV RBX,RDI
CALL 0x0016ef5e
LEA RAX,[0x1db210]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
LEA RDI,[RBX + 0x20]
LAB_0016f5f3:
MOV RSI,R13
CALL 0x00135ebc
LAB_0016f5fb:
AND qword ptr [RBX + 0x40],0x0
MOVUPS XMM0,xmmword ptr [R12]
AND qword ptr [R12 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x38],XMM0
AND qword ptr [R12],0x0
MOV RAX,qword ptr [RSP + 0x38]
AND qword ptr [RBX + 0x50],0x0
MOVUPS XMM0,xmmword ptr [R15]
AND qword ptr [R15 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x48],XMM0
AND qword ptr [R15],0x0
MOV CL,byte ptr [RSP + 0x30]
AND qword ptr [RBX + 0x60],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x58],XMM0
AND qword ptr [R14],0x0
MOV byte ptr [RBX + 0x68],CL
AND qword ptr [RBX + 0x78],0x0
MOVUPS XMM0,xmmword ptr [RAX]
AND qword ptr [RAX + 0x8],0x0
MOVUPS xmmword ptr [RBX + 0x70],XMM0
AND qword ptr [RAX],0x0
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* minja::ForNode::ForNode(minja::Location const&, std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > >&&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::TemplateNode>&&, bool,
std::shared_ptr<minja::TemplateNode>&&) */
void __thiscall
minja::ForNode::ForNode
(ForNode *this,Location *param_1,vector *param_2,shared_ptr *param_3,shared_ptr *param_4,
shared_ptr *param_5,bool param_6,shared_ptr *param_7)
{
int8 uVar1;
TemplateNode::TemplateNode((TemplateNode *)this,param_1);
*(int ***)this = &PTR_do_render_001db220;
/* try { // try from 0016f5f3 to 0016f5fa has its CatchHandler @ 0016f66b */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)(this + 0x20),
param_2);
*(int8 *)(this + 0x40) = 0;
uVar1 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x38) = *(int8 *)param_3;
*(int8 *)(this + 0x40) = uVar1;
*(int8 *)param_3 = 0;
*(int8 *)(this + 0x50) = 0;
uVar1 = *(int8 *)(param_4 + 8);
*(int8 *)(param_4 + 8) = 0;
*(int8 *)(this + 0x48) = *(int8 *)param_4;
*(int8 *)(this + 0x50) = uVar1;
*(int8 *)param_4 = 0;
*(int8 *)(this + 0x60) = 0;
uVar1 = *(int8 *)(param_5 + 8);
*(int8 *)(param_5 + 8) = 0;
*(int8 *)(this + 0x58) = *(int8 *)param_5;
*(int8 *)(this + 0x60) = uVar1;
*(int8 *)param_5 = 0;
this[0x68] = (ForNode)param_6;
*(int8 *)(this + 0x78) = 0;
uVar1 = *(int8 *)(param_7 + 8);
*(int8 *)(param_7 + 8) = 0;
*(int8 *)(this + 0x70) = *(int8 *)param_7;
*(int8 *)(this + 0x78) = uVar1;
*(int8 *)param_7 = 0;
return;
}
| |
52,201 | Server_side_cursor::operator delete(void*, unsigned long) | eloqsql/sql/sql_cursor.cc | void Server_side_cursor::operator delete(void *ptr, size_t size)
{
Server_side_cursor *cursor= (Server_side_cursor*) ptr;
MEM_ROOT own_root= *cursor->mem_root;
DBUG_ENTER("Server_side_cursor::operator delete");
TRASH_FREE(ptr, size);
/*
If this cursor has never been opened mem_root is empty. Otherwise
mem_root points to the memory the cursor object was allocated in.
In this case it's important to call free_root last, and free a copy
instead of *mem_root to avoid writing into freed memory.
*/
free_root(&own_root, MYF(0));
DBUG_VOID_RETURN;
} | O0 | cpp | Server_side_cursor::operator delete(void*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x58(%rbp), %rdi
movl $0x40, %edx
callq 0x759350
jmp 0x89ec50
jmp 0x89ec52
jmp 0x89ec54
jmp 0x89ec56
jmp 0x89ec58
xorl %eax, %eax
movl %eax, %esi
leaq -0x58(%rbp), %rdi
callq 0x12bc600
jmp 0x89ec67
jmp 0x89ec69
jmp 0x89ec6b
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x7cbf30
nopl (%rax)
| _ZN18Server_side_cursordlEPvm:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rsi, [rax+10h]
lea rdi, [rbp+var_58]
mov edx, 40h ; '@'
call _memcpy
jmp short $+2
loc_89EC50:
jmp short $+2
loc_89EC52:
jmp short $+2
loc_89EC54:
jmp short $+2
loc_89EC56:
jmp short $+2
loc_89EC58:
xor eax, eax
mov esi, eax
lea rdi, [rbp+var_58]
call free_root
jmp short $+2
loc_89EC67:
jmp short $+2
loc_89EC69:
jmp short $+2
loc_89EC6B:
add rsp, 60h
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
| void Server_side_cursor::operator delete(_QWORD *a1, long long a2)
{
_BYTE v2[64]; // [rsp+8h] [rbp-58h] BYREF
_QWORD *v3; // [rsp+48h] [rbp-18h]
long long v4; // [rsp+50h] [rbp-10h]
_QWORD *v5; // [rsp+58h] [rbp-8h]
v5 = a1;
v4 = a2;
v3 = a1;
memcpy(v2, a1[2], sizeof(v2));
free_root(v2, 0LL);
}
| __cxx_global_var_init.6:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x1e012dc]
MOV ESI,0x1000000
CALL 0x008db900
POP RBP
RET
|
void __cxx_global_var_init_6(void)
{
date_conv_mode_t::date_conv_mode_t((date_conv_mode_t *)&TIME_NO_ZERO_DATE,0x1000000);
return;
}
| |
52,202 | Server_side_cursor::operator delete(void*, unsigned long) | eloqsql/sql/sql_cursor.cc | void Server_side_cursor::operator delete(void *ptr, size_t size)
{
Server_side_cursor *cursor= (Server_side_cursor*) ptr;
MEM_ROOT own_root= *cursor->mem_root;
DBUG_ENTER("Server_side_cursor::operator delete");
TRASH_FREE(ptr, size);
/*
If this cursor has never been opened mem_root is empty. Otherwise
mem_root points to the memory the cursor object was allocated in.
In this case it's important to call free_root last, and free a copy
instead of *mem_root to avoid writing into freed memory.
*/
free_root(&own_root, MYF(0));
DBUG_VOID_RETURN;
} | O3 | cpp | Server_side_cursor::operator delete(void*, unsigned long):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq 0x10(%rdi), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups 0x30(%rax), %xmm3
leaq -0x40(%rbp), %rdi
movaps %xmm3, 0x30(%rdi)
movaps %xmm2, 0x20(%rdi)
movaps %xmm1, 0x10(%rdi)
movaps %xmm0, (%rdi)
xorl %esi, %esi
callq 0xcbde2b
addq $0x40, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x6c7e0c
nop
| _ZN18Server_side_cursordlEPvm:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, [rdi+10h]
movups xmm0, xmmword ptr [rax]
movups xmm1, xmmword ptr [rax+10h]
movups xmm2, xmmword ptr [rax+20h]
movups xmm3, xmmword ptr [rax+30h]
lea rdi, [rbp+var_40]
movaps xmmword ptr [rdi+30h], xmm3
movaps xmmword ptr [rdi+20h], xmm2
movaps xmmword ptr [rdi+10h], xmm1
movaps xmmword ptr [rdi], xmm0
xor esi, esi
call free_root
add rsp, 40h
pop rbp
retn
mov rdi, rax
call __clang_call_terminate
| void Server_side_cursor::operator delete(_QWORD *a1)
{
__int128 *v1; // rax
__int128 v2; // xmm0
__int128 v3; // xmm1
__int128 v4; // xmm2
_OWORD v5[4]; // [rsp+0h] [rbp-40h] BYREF
v1 = (__int128 *)a1[2];
v2 = *v1;
v3 = v1[1];
v4 = v1[2];
v5[3] = v1[3];
v5[2] = v4;
v5[1] = v3;
v5[0] = v2;
free_root(v5, 0LL);
}
| |||
52,203 | my_wc_mb_big5 | eloqsql/strings/ctype-big5.c | static int
my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *s, uchar *e)
{
int code;
if (s >= e)
return MY_CS_TOOSMALL;
if ((int) wc < 0x80)
{
s[0]= (uchar) wc;
return 1;
}
if (!(code=func_uni_big5_onechar(wc)))
return MY_CS_ILUNI;
if (s+2>e)
return MY_CS_TOOSMALL;
s[0]=code>>8;
s[1]=code&0xFF;
return 2;
} | O0 | c | my_wc_mb_big5:
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 -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x48d8b
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x48e04
movq -0x18(%rbp), %rax
cmpl $0x80, %eax
jge 0x48dab
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x48e04
movq -0x18(%rbp), %rax
movl %eax, %edi
callq 0x49100
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jne 0x48dc7
movl $0x0, -0x4(%rbp)
jmp 0x48e04
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x48dde
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x48e04
movl -0x2c(%rbp), %eax
sarl $0x8, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
andl $0xff, %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_wc_mb_big5:
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_20]
cmp rax, [rbp+var_28]
jb short loc_48D8B
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_48E04
loc_48D8B:
mov rax, [rbp+var_18]
cmp eax, 80h
jge short loc_48DAB
mov rax, [rbp+var_18]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov [rbp+var_4], 1
jmp short loc_48E04
loc_48DAB:
mov rax, [rbp+var_18]
mov edi, eax
call func_uni_big5_onechar
mov [rbp+var_2C], eax
cmp eax, 0
jnz short loc_48DC7
mov [rbp+var_4], 0
jmp short loc_48E04
loc_48DC7:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_48DDE
mov [rbp+var_4], 0FFFFFF9Bh
jmp short loc_48E04
loc_48DDE:
mov eax, [rbp+var_2C]
sar eax, 8
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov eax, [rbp+var_2C]
and eax, 0FFh
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov [rbp+var_4], 2
loc_48E04:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_wc_mb_big5(long long a1, int a2, _BYTE *a3, unsigned long long a4)
{
int v5; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
if ( a2 >= 128 )
{
v5 = func_uni_big5_onechar((unsigned int)a2);
if ( v5 )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = BYTE1(v5);
a3[1] = v5;
return 2;
}
else
{
return (unsigned int)-101;
}
}
else
{
return 0;
}
}
else
{
*a3 = a2;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_big5:
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 + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00148d8b
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00148e04
LAB_00148d8b:
MOV RAX,qword ptr [RBP + -0x18]
CMP EAX,0x80
JGE 0x00148dab
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00148e04
LAB_00148dab:
MOV RAX,qword ptr [RBP + -0x18]
MOV EDI,EAX
CALL 0x00149100
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JNZ 0x00148dc7
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00148e04
LAB_00148dc7:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x00148dde
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00148e04
LAB_00148dde:
MOV EAX,dword ptr [RBP + -0x2c]
SAR EAX,0x8
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x2c]
AND EAX,0xff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV dword ptr [RBP + -0x4],0x2
LAB_00148e04:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_wc_mb_big5(int8 param_1,int param_2,int1 *param_3,int1 *param_4)
{
int iVar1;
int4 local_c;
if (param_3 < param_4) {
if (param_2 < 0x80) {
*param_3 = (char)param_2;
local_c = 1;
}
else {
iVar1 = func_uni_big5_onechar(param_2);
if (iVar1 == 0) {
local_c = 0;
}
else if (param_4 < param_3 + 2) {
local_c = 0xffffff9b;
}
else {
*param_3 = (char)((uint)iVar1 >> 8);
param_3[1] = (char)iVar1;
local_c = 2;
}
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
52,204 | _cxx_global_var_init | cosmotop/src/cosmotop_plugin.cpp | void init() {
pluginHost->call<bool>("Shared::init");
} | O0 | cpp | _cxx_global_var_init:
subq $0x298, %rsp # imm = 0x298
movb $0x1, 0x44(%rsp)
leaq 0x68(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x5f(%rsp), %rdx
movq %rdx, 0x178(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x288(%rsp)
leaq 0x305499(%rip), %rsi # 0x31c713
callq 0x33160
jmp 0x17281
leaq 0x88(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x4b(%rsp), %rdx
movq %rdx, 0x180(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x280(%rsp)
leaq 0x304406(%rip), %rsi # 0x31b6b8
callq 0x33160
jmp 0x172b9
leaq 0xa8(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x4a(%rsp), %rdx
movq %rdx, 0x188(%rsp)
movq 0x188(%rsp), %rax
movq %rax, 0x278(%rsp)
leaq 0x302b56(%rip), %rsi # 0x319e40
callq 0x33160
jmp 0x172f1
leaq 0xc8(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x49(%rsp), %rdx
movq %rdx, 0x190(%rsp)
movq 0x190(%rsp), %rax
movq %rax, 0x270(%rsp)
leaq 0x302b26(%rip), %rsi # 0x319e48
callq 0x33160
jmp 0x17329
leaq 0xe8(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x48(%rsp), %rdx
movq %rdx, 0x198(%rsp)
movq 0x198(%rsp), %rax
movq %rax, 0x268(%rsp)
leaq 0x302af6(%rip), %rsi # 0x319e50
callq 0x33160
jmp 0x17361
leaq 0x108(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x47(%rsp), %rdx
movq %rdx, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rax
movq %rax, 0x260(%rsp)
leaq 0x3074fd(%rip), %rsi # 0x31e88f
callq 0x33160
jmp 0x17399
leaq 0x128(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x46(%rsp), %rdx
movq %rdx, 0x1a8(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, 0x258(%rsp)
leaq 0x302a8b(%rip), %rsi # 0x319e55
callq 0x33160
jmp 0x173d1
leaq 0x148(%rsp), %rdi
movq %rdi, 0x60(%rsp)
leaq 0x45(%rsp), %rdx
movq %rdx, 0x1b0(%rsp)
movq 0x1b0(%rsp), %rax
movq %rax, 0x250(%rsp)
leaq 0x302a5e(%rip), %rsi # 0x319e60
callq 0x33160
jmp 0x17409
movb $0x0, 0x44(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x168(%rsp)
movq $0x8, 0x170(%rsp)
leaq 0x43(%rsp), %rcx
movq %rcx, 0x1b8(%rsp)
movq 0x1b8(%rsp), %rax
movq %rax, 0x290(%rsp)
movq 0x168(%rsp), %rsi
movq 0x170(%rsp), %rdx
leaq 0x3f4a75(%rip), %rdi # 0x40bed0
callq 0x33220
jmp 0x17462
leaq 0x43(%rsp), %rax
movq %rax, 0x1c0(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
addq $0x100, %rax # imm = 0x100
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x28(%rsp)
callq 0x332b0
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x38(%rsp)
jne 0x17484
leaq 0x45(%rsp), %rax
movq %rax, 0x1d0(%rsp)
leaq 0x46(%rsp), %rax
movq %rax, 0x1e0(%rsp)
leaq 0x47(%rsp), %rax
movq %rax, 0x1f0(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x200(%rsp)
leaq 0x49(%rsp), %rax
movq %rax, 0x210(%rsp)
leaq 0x4a(%rsp), %rax
movq %rax, 0x220(%rsp)
leaq 0x4b(%rsp), %rax
movq %rax, 0x230(%rsp)
leaq 0x5f(%rsp), %rax
movq %rax, 0x240(%rsp)
leaq 0x1bdd6(%rip), %rdi # 0x332f0
leaq 0x3f49af(%rip), %rsi # 0x40bed0
leaq 0x3f43d0(%rip), %rdx # 0x40b8f8
callq 0x16d00
addq $0x298, %rsp # imm = 0x298
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x1767b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x1766e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x17661
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x17654
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x17647
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x1763a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x1762d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x17620
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x43(%rsp), %rax
movq %rax, 0x1c8(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
addq $0x100, %rax # imm = 0x100
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, 0x10(%rsp)
callq 0x332b0
movq 0x18(%rsp), %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x20(%rsp)
jne 0x175f7
jmp 0x17620
leaq 0x45(%rsp), %rax
movq %rax, 0x1d8(%rsp)
leaq 0x46(%rsp), %rax
movq %rax, 0x1e8(%rsp)
leaq 0x47(%rsp), %rax
movq %rax, 0x1f8(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0x208(%rsp)
leaq 0x49(%rsp), %rax
movq %rax, 0x218(%rsp)
leaq 0x4a(%rsp), %rax
movq %rax, 0x228(%rsp)
leaq 0x4b(%rsp), %rax
movq %rax, 0x238(%rsp)
leaq 0x5f(%rsp), %rax
movq %rax, 0x248(%rsp)
testb $0x1, 0x44(%rsp)
jne 0x17691
jmp 0x176cc
movq 0x60(%rsp), %rax
leaq 0x68(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0x8(%rsp)
je 0x176ca
movq 0x8(%rsp), %rdi
addq $-0x20, %rdi
movq %rdi, (%rsp)
callq 0x332b0
movq (%rsp), %rax
leaq 0x68(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0x8(%rsp)
jne 0x176a5
jmp 0x176cc
jmp 0x176ce
movq 0x50(%rsp), %rdi
callq 0x16950
nopl (%rax,%rax)
| __cxx_global_var_init:
sub rsp, 298h
mov [rsp+298h+var_254], 1
lea rdi, [rsp+298h+var_230]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_239]
mov [rsp+298h+var_120], rdx
mov rax, [rsp+298h+var_120]
mov [rsp+298h+var_10], rax
lea rsi, aDetailedPid+9; "pid"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_17281:
lea rdi, [rsp+298h+var_210]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_24D]
mov [rsp+298h+var_118], rdx
mov rax, [rsp+298h+var_118]
mov [rsp+298h+var_18], rax
lea rsi, aModelName+6; "name"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_172B9:
lea rdi, [rsp+298h+var_1F0]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_24E]
mov [rsp+298h+var_110], rdx
mov rax, [rsp+298h+var_110]
mov [rsp+298h+var_20], rax
lea rsi, aCommand; "command"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_172F1:
lea rdi, [rsp+298h+var_1D0]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_24F]
mov [rsp+298h+var_108], rdx
mov rax, [rsp+298h+var_108]
mov [rsp+298h+var_28], rax
lea rsi, aThreads; "threads"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_17329:
lea rdi, [rsp+298h+var_1B0]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_250]
mov [rsp+298h+var_100], rdx
mov rax, [rsp+298h+var_100]
mov [rsp+298h+var_30], rax
lea rsi, aUser; "user"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_17361:
lea rdi, [rsp+298h+var_190]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_251]
mov [rsp+298h+var_F8], rdx
mov rax, [rsp+298h+var_F8]
mov [rsp+298h+var_38], rax
lea rsi, aFailToAllocMem+0Eh; "memory"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_17399:
lea rdi, [rsp+298h+var_170]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_252]
mov [rsp+298h+var_F0], rdx
mov rax, [rsp+298h+var_F0]
mov [rsp+298h+var_40], rax
lea rsi, aCpuDirect; "cpu direct"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_173D1:
lea rdi, [rsp+298h+var_150]
mov [rsp+298h+var_238], rdi
lea rdx, [rsp+298h+var_253]
mov [rsp+298h+var_E8], rdx
mov rax, [rsp+298h+var_E8]
mov [rsp+298h+var_48], rax
lea rsi, aCpuLazy; "cpu lazy"
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_17409:
mov [rsp+298h+var_254], 0
lea rax, [rsp+298h+var_230]
mov [rsp+298h+var_130], rax
mov [rsp+298h+var_128], 8
lea rcx, [rsp+298h+var_255]
mov [rsp+298h+var_E0], rcx
mov rax, [rsp+298h+var_E0]
mov [rsp+298h+var_8], rax
mov rsi, [rsp+298h+var_130]
mov rdx, [rsp+298h+var_128]
lea rdi, _ZN4ProcL11sort_vectorB5cxx11E; Proc::sort_vector
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ESt16initializer_listIS5_ERKS6_; std::vector<std::string>::vector(std::initializer_list<std::string>,std::allocator<std::string> const&)
jmp short $+2
loc_17462:
lea rax, [rsp+298h+var_255]
mov [rsp+298h+var_D8], rax
lea rax, [rsp+298h+var_230]
mov [rsp+298h+var_268], rax
add rax, 100h
mov [rsp+298h+var_260], rax
loc_17484:
mov rdi, [rsp+298h+var_260]
add rdi, 0FFFFFFFFFFFFFFE0h; void *
mov [rsp+298h+var_270], rdi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rcx, [rsp+298h+var_268]
mov rax, [rsp+298h+var_270]
cmp rax, rcx
mov [rsp+298h+var_260], rax
jnz short loc_17484
lea rax, [rsp+298h+var_253]
mov [rsp+298h+var_C8], rax
lea rax, [rsp+298h+var_252]
mov [rsp+298h+var_B8], rax
lea rax, [rsp+298h+var_251]
mov [rsp+298h+var_A8], rax
lea rax, [rsp+298h+var_250]
mov [rsp+298h+var_98], rax
lea rax, [rsp+298h+var_24F]
mov [rsp+298h+var_88], rax
lea rax, [rsp+298h+var_24E]
mov [rsp+298h+var_78], rax
lea rax, [rsp+298h+var_24D]
mov [rsp+298h+var_68], rax
lea rax, [rsp+298h+var_239]
mov [rsp+298h+var_58], rax
lea rdi, _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; lpfunc
lea rsi, _ZN4ProcL11sort_vectorB5cxx11E; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
add rsp, 298h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_1767B
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_1766E
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_17661
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_17654
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_17647
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp loc_1763A
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp short loc_1762D
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
jmp short loc_17620
mov rcx, rax
mov eax, edx
mov [rsp+arg_48], rcx
mov [rsp+arg_44], eax
lea rax, [rsp+arg_3B]
mov [rsp+arg_1C0], rax
lea rax, [rsp+arg_60]
mov [rsp+arg_10], rax
add rax, 100h
mov [rsp+arg_18], rax
loc_175F7:
mov rdi, [rsp+arg_18]
add rdi, 0FFFFFFFFFFFFFFE0h; void *
mov [rsp+arg_8], rdi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rcx, [rsp+arg_10]
mov rax, [rsp+arg_8]
cmp rax, rcx
mov [rsp+arg_18], rax
jnz short loc_175F7
jmp short $+2
loc_17620:
lea rax, [rsp+arg_3D]
mov [rsp+arg_1D0], rax
loc_1762D:
lea rax, [rsp+arg_3E]
mov [rsp+arg_1E0], rax
loc_1763A:
lea rax, [rsp+arg_3F]
mov [rsp+arg_1F0], rax
loc_17647:
lea rax, [rsp+arg_40]
mov [rsp+arg_200], rax
loc_17654:
lea rax, [rsp+arg_41]
mov [rsp+arg_210], rax
loc_17661:
lea rax, [rsp+arg_42]
mov [rsp+arg_220], rax
loc_1766E:
lea rax, [rsp+arg_43]
mov [rsp+arg_230], rax
loc_1767B:
lea rax, [rsp+arg_57]
mov [rsp+arg_240], rax
test [rsp+arg_3C], 1
jnz short loc_17691
jmp short loc_176CC
loc_17691:
mov rax, [rsp+arg_58]
lea rcx, [rsp+arg_60]
cmp rcx, rax
mov [rsp+arg_0], rax
jz short loc_176CA
loc_176A5:
mov rdi, [rsp+arg_0]
add rdi, 0FFFFFFFFFFFFFFE0h; void *
mov [rsp+0], rdi
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, [rsp+0]
lea rcx, [rsp+arg_60]
cmp rax, rcx
mov [rsp+arg_0], rax
jnz short loc_176A5
loc_176CA:
jmp short $+2
loc_176CC:
jmp short $+2
loc_176CE:
mov rdi, [rsp+arg_48]
call __Unwind_Resume
| int _cxx_global_var_init(long long a1, long long a2, long long a3, int a4, int a5, int a6)
{
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v9; // ecx
int v10; // r8d
int v11; // r9d
int v12; // ecx
int v13; // r8d
int v14; // r9d
int v15; // ecx
int v16; // r8d
int v17; // r9d
int v18; // ecx
int v19; // r8d
int v20; // r9d
int v21; // ecx
int v22; // r8d
int v23; // r9d
int v24; // ecx
int v25; // r8d
int v26; // r9d
int v27; // r8d
int v28; // r9d
_BYTE *v30; // [rsp+38h] [rbp-260h]
_BYTE v31[2]; // [rsp+43h] [rbp-255h] BYREF
char v32; // [rsp+45h] [rbp-253h] BYREF
char v33; // [rsp+46h] [rbp-252h] BYREF
char v34; // [rsp+47h] [rbp-251h] BYREF
char v35; // [rsp+48h] [rbp-250h] BYREF
char v36; // [rsp+49h] [rbp-24Fh] BYREF
char v37; // [rsp+4Ah] [rbp-24Eh] BYREF
_BYTE v38[20]; // [rsp+4Bh] [rbp-24Dh] BYREF
char v39; // [rsp+5Fh] [rbp-239h] BYREF
_BYTE *v40; // [rsp+60h] [rbp-238h]
_BYTE v41[32]; // [rsp+68h] [rbp-230h] BYREF
_BYTE v42[32]; // [rsp+88h] [rbp-210h] BYREF
_BYTE v43[32]; // [rsp+A8h] [rbp-1F0h] BYREF
_BYTE v44[32]; // [rsp+C8h] [rbp-1D0h] BYREF
_BYTE v45[32]; // [rsp+E8h] [rbp-1B0h] BYREF
_BYTE v46[32]; // [rsp+108h] [rbp-190h] BYREF
_BYTE v47[32]; // [rsp+128h] [rbp-170h] BYREF
_BYTE v48[32]; // [rsp+148h] [rbp-150h] BYREF
_QWORD v49[38]; // [rsp+168h] [rbp-130h] BYREF
v40 = v41;
v49[2] = &v39;
v49[36] = &v39;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v41,
(unsigned int)"pid",
(unsigned int)&v39,
a4,
a5,
a6);
v40 = v42;
v49[3] = v38;
v49[35] = v38;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v42,
(unsigned int)"name",
(unsigned int)v38,
v6,
v7,
v8);
v40 = v43;
v49[4] = &v37;
v49[34] = &v37;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v43,
(unsigned int)"command",
(unsigned int)&v37,
v9,
v10,
v11);
v40 = v44;
v49[5] = &v36;
v49[33] = &v36;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v44,
(unsigned int)"threads",
(unsigned int)&v36,
v12,
v13,
v14);
v40 = v45;
v49[6] = &v35;
v49[32] = &v35;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v45,
(unsigned int)"user",
(unsigned int)&v35,
v15,
v16,
v17);
v40 = v46;
v49[7] = &v34;
v49[31] = &v34;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v46,
(unsigned int)"memory",
(unsigned int)&v34,
v18,
v19,
v20);
v40 = v47;
v49[8] = &v33;
v49[30] = &v33;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v47,
(unsigned int)"cpu direct",
(unsigned int)&v33,
v21,
v22,
v23);
v40 = v48;
v49[9] = &v32;
v49[29] = &v32;
std::string::basic_string<std::allocator<char>>(
(unsigned int)v48,
(unsigned int)"cpu lazy",
(unsigned int)&v32,
v24,
v25,
v26);
v31[1] = 0;
v49[0] = v41;
v49[1] = 8LL;
v49[10] = v31;
v49[37] = v31;
std::vector<std::string>::vector(
(unsigned int)&Proc::sort_vector[abi:cxx11],
(unsigned int)v41,
8,
(unsigned int)v31,
v27,
v28);
v49[11] = v31;
v30 = v49;
do
{
std::string::~string(v30 - 32);
v30 -= 32;
}
while ( v30 != v41 );
v49[13] = &v32;
v49[15] = &v33;
v49[17] = &v34;
v49[19] = &v35;
v49[21] = &v36;
v49[23] = &v37;
v49[25] = v38;
v49[27] = &v39;
return __cxa_atexit(std::vector<std::string>::~vector, &Proc::sort_vector[abi:cxx11], &_dso_handle);
}
| __cxx_global_var_init:
SUB RSP,0x298
MOV byte ptr [RSP + 0x44],0x1
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x5f]
MOV qword ptr [RSP + 0x178],RDX
MOV RAX,qword ptr [RSP + 0x178]
MOV qword ptr [RSP + 0x288],RAX
LAB_00117273:
LEA RSI,[0x41c713]
CALL 0x00133160
JMP 0x00117281
LAB_00117281:
LEA RDI,[RSP + 0x88]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x4b]
MOV qword ptr [RSP + 0x180],RDX
MOV RAX,qword ptr [RSP + 0x180]
MOV qword ptr [RSP + 0x280],RAX
LAB_001172ab:
LEA RSI,[0x41b6b8]
CALL 0x00133160
JMP 0x001172b9
LAB_001172b9:
LEA RDI,[RSP + 0xa8]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x4a]
MOV qword ptr [RSP + 0x188],RDX
MOV RAX,qword ptr [RSP + 0x188]
MOV qword ptr [RSP + 0x278],RAX
LAB_001172e3:
LEA RSI,[0x419e40]
CALL 0x00133160
JMP 0x001172f1
LAB_001172f1:
LEA RDI,[RSP + 0xc8]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x49]
MOV qword ptr [RSP + 0x190],RDX
MOV RAX,qword ptr [RSP + 0x190]
MOV qword ptr [RSP + 0x270],RAX
LAB_0011731b:
LEA RSI,[0x419e48]
CALL 0x00133160
JMP 0x00117329
LAB_00117329:
LEA RDI,[RSP + 0xe8]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x48]
MOV qword ptr [RSP + 0x198],RDX
MOV RAX,qword ptr [RSP + 0x198]
MOV qword ptr [RSP + 0x268],RAX
LAB_00117353:
LEA RSI,[0x419e50]
CALL 0x00133160
JMP 0x00117361
LAB_00117361:
LEA RDI,[RSP + 0x108]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x47]
MOV qword ptr [RSP + 0x1a0],RDX
MOV RAX,qword ptr [RSP + 0x1a0]
MOV qword ptr [RSP + 0x260],RAX
LAB_0011738b:
LEA RSI,[0x41e88f]
CALL 0x00133160
JMP 0x00117399
LAB_00117399:
LEA RDI,[RSP + 0x128]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x46]
MOV qword ptr [RSP + 0x1a8],RDX
MOV RAX,qword ptr [RSP + 0x1a8]
MOV qword ptr [RSP + 0x258],RAX
LAB_001173c3:
LEA RSI,[0x419e55]
CALL 0x00133160
JMP 0x001173d1
LAB_001173d1:
LEA RDI,[RSP + 0x148]
MOV qword ptr [RSP + 0x60],RDI
LEA RDX,[RSP + 0x45]
MOV qword ptr [RSP + 0x1b0],RDX
MOV RAX,qword ptr [RSP + 0x1b0]
MOV qword ptr [RSP + 0x250],RAX
LAB_001173fb:
LEA RSI,[0x419e60]
CALL 0x00133160
JMP 0x00117409
LAB_00117409:
MOV byte ptr [RSP + 0x44],0x0
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x168],RAX
MOV qword ptr [RSP + 0x170],0x8
LEA RCX,[RSP + 0x43]
MOV qword ptr [RSP + 0x1b8],RCX
MOV RAX,qword ptr [RSP + 0x1b8]
MOV qword ptr [RSP + 0x290],RAX
MOV RSI,qword ptr [RSP + 0x168]
MOV RDX,qword ptr [RSP + 0x170]
LAB_00117454:
LEA RDI,[0x50bed0]
CALL 0x00133220
LAB_00117460:
JMP 0x00117462
LAB_00117462:
LEA RAX,[RSP + 0x43]
MOV qword ptr [RSP + 0x1c0],RAX
LEA RAX,[RSP + 0x68]
MOV qword ptr [RSP + 0x30],RAX
ADD RAX,0x100
MOV qword ptr [RSP + 0x38],RAX
LAB_00117484:
MOV RDI,qword ptr [RSP + 0x38]
ADD RDI,-0x20
MOV qword ptr [RSP + 0x28],RDI
CALL 0x001332b0
MOV RCX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x28]
CMP RAX,RCX
MOV qword ptr [RSP + 0x38],RAX
JNZ 0x00117484
LEA RAX,[RSP + 0x45]
MOV qword ptr [RSP + 0x1d0],RAX
LEA RAX,[RSP + 0x46]
MOV qword ptr [RSP + 0x1e0],RAX
LEA RAX,[RSP + 0x47]
MOV qword ptr [RSP + 0x1f0],RAX
LEA RAX,[RSP + 0x48]
MOV qword ptr [RSP + 0x200],RAX
LEA RAX,[RSP + 0x49]
MOV qword ptr [RSP + 0x210],RAX
LEA RAX,[RSP + 0x4a]
MOV qword ptr [RSP + 0x220],RAX
LEA RAX,[RSP + 0x4b]
MOV qword ptr [RSP + 0x230],RAX
LEA RAX,[RSP + 0x5f]
MOV qword ptr [RSP + 0x240],RAX
LEA RDI,[0x1332f0]
LEA RSI,[0x50bed0]
LEA RDX,[0x50b8f8]
CALL 0x00116d00
ADD RSP,0x298
RET
|
void __cxx_global_var_init(void)
{
string *local_260;
int1 local_255;
int1 local_254;
allocator local_253;
allocator local_252;
allocator local_251;
allocator local_250;
allocator local_24f;
allocator local_24e;
allocator local_24d [20];
allocator local_239;
string *local_238;
string local_230 [32];
string local_210 [32];
string local_1f0 [32];
string local_1d0 [32];
string local_1b0 [32];
string local_190 [32];
string local_170 [32];
string local_150 [32];
string *local_130;
int8 local_128;
allocator *local_120;
allocator *local_118;
allocator *local_110;
allocator *local_108;
allocator *local_100;
allocator *local_f8;
allocator *local_f0;
allocator *local_e8;
int1 *local_e0;
int1 *local_d8;
allocator *local_c8;
allocator *local_b8;
allocator *local_a8;
allocator *local_98;
allocator *local_88;
allocator *local_78;
allocator *local_68;
allocator *local_58;
allocator *local_48;
allocator *local_40;
allocator *local_38;
allocator *local_30;
allocator *local_28;
allocator *local_20;
allocator *local_18;
allocator *local_10;
int1 *local_8;
local_254 = 1;
local_238 = local_230;
local_120 = &local_239;
local_10 = local_120;
/* try { // try from 00117273 to 0011727e has its CatchHandler @ 00117535 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"pid",local_120);
local_238 = local_210;
local_118 = local_24d;
local_18 = local_118;
/* try { // try from 001172ab to 001172b6 has its CatchHandler @ 00117548 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"name",local_118);
local_238 = local_1f0;
local_110 = &local_24e;
local_20 = local_110;
/* try { // try from 001172e3 to 001172ee has its CatchHandler @ 0011755b */
std::__cxx11::string::string<std::allocator<char>>(local_238,"command",local_110);
local_238 = local_1d0;
local_108 = &local_24f;
local_28 = local_108;
/* try { // try from 0011731b to 00117326 has its CatchHandler @ 0011756e */
std::__cxx11::string::string<std::allocator<char>>(local_238,"threads",local_108);
local_238 = local_1b0;
local_100 = &local_250;
local_30 = local_100;
/* try { // try from 00117353 to 0011735e has its CatchHandler @ 00117581 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"user",local_100);
local_238 = local_190;
local_f8 = &local_251;
local_38 = local_f8;
/* try { // try from 0011738b to 00117396 has its CatchHandler @ 00117594 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"memory",local_f8);
local_238 = local_170;
local_f0 = &local_252;
local_40 = local_f0;
/* try { // try from 001173c3 to 001173ce has its CatchHandler @ 001175a7 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"cpu direct",local_f0);
local_238 = local_150;
local_e8 = &local_253;
local_48 = local_e8;
/* try { // try from 001173fb to 00117406 has its CatchHandler @ 001175b7 */
std::__cxx11::string::string<std::allocator<char>>(local_238,"cpu lazy",local_e8);
local_254 = 0;
local_130 = local_230;
local_128 = 8;
local_e0 = &local_255;
local_8 = local_e0;
/* try { // try from 00117454 to 0011745f has its CatchHandler @ 001175c7 */
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(Proc::sort_vector_abi_cxx11_,local_130,8);
local_d8 = &local_255;
local_260 = (string *)&local_130;
do {
local_260 = local_260 + -0x20;
std::__cxx11::string::~string(local_260);
} while (local_260 != local_230);
local_c8 = &local_253;
local_b8 = &local_252;
local_a8 = &local_251;
local_98 = &local_250;
local_88 = &local_24f;
local_78 = &local_24e;
local_68 = local_24d;
local_58 = &local_239;
__cxa_atexit(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector,
Proc::sort_vector_abi_cxx11_,&__dso_handle);
return;
}
| |
52,205 | my_coll_parser_scan_logical_position | eloqsql/strings/ctype-uca.c | static int
my_coll_parser_scan_logical_position(MY_COLL_RULE_PARSER *p,
my_wc_t *pwc, size_t limit)
{
MY_COLL_RULES *rules= p->rules;
MY_COLL_LEXEM *lexem= my_coll_parser_curr(p);
if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first non-ignorable]")))
lexem->code= rules->uca->first_non_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last non-ignorable]")))
lexem->code= rules->uca->last_non_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first primary ignorable]")))
lexem->code= rules->uca->first_primary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last primary ignorable]")))
lexem->code= rules->uca->last_primary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first secondary ignorable]")))
lexem->code= rules->uca->first_secondary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last secondary ignorable]")))
lexem->code= rules->uca->last_secondary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first tertiary ignorable]")))
lexem->code= rules->uca->first_tertiary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last tertiary ignorable]")))
lexem->code= rules->uca->last_tertiary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first trailing]")))
lexem->code= rules->uca->first_trailing;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last trailing]")))
lexem->code= rules->uca->last_trailing;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first variable]")))
lexem->code= rules->uca->first_variable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last variable]")))
lexem->code= rules->uca->last_variable;
else
return 0; /* Don't scan the next token */
if (!my_coll_rule_expand(pwc, limit, lexem->code))
{
/*
Logical position can not be in a contraction,
so the above call should never fail.
Let's assert in debug version and print
a nice error message in production version.
*/
DBUG_ASSERT(0);
return my_coll_parser_too_long_error(p, "Logical position");
}
return my_coll_parser_scan(p);
} | O0 | c | my_coll_parser_scan_logical_position:
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 0xf0(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4ed70
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x2c25b(%rip), %rsi # 0x7bca6
movl $0x15, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fa74
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x70(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fce4
movq -0x30(%rbp), %rdi
leaq 0x2c23d(%rip), %rsi # 0x7bcbc
movl $0x14, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4faa8
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x78(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fce2
movq -0x30(%rbp), %rdi
leaq 0x2c21e(%rip), %rsi # 0x7bcd1
movl $0x19, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fadf
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x80(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fce0
movq -0x30(%rbp), %rdi
leaq 0x2c201(%rip), %rsi # 0x7bceb
movl $0x18, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fb16
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x88(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcde
movq -0x30(%rbp), %rdi
leaq 0x2c1e3(%rip), %rsi # 0x7bd04
movl $0x1b, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fb4d
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x90(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcdc
movq -0x30(%rbp), %rdi
leaq 0x2c1c8(%rip), %rsi # 0x7bd20
movl $0x1a, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fb84
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x98(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcda
movq -0x30(%rbp), %rdi
leaq 0x2c1ac(%rip), %rsi # 0x7bd3b
movl $0x1a, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fbbb
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xa0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcd8
movq -0x30(%rbp), %rdi
leaq 0x2c190(%rip), %rsi # 0x7bd56
movl $0x19, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fbf2
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xa8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcd6
movq -0x30(%rbp), %rdi
leaq 0x2c173(%rip), %rsi # 0x7bd70
movl $0x10, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fc29
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xb0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcd4
movq -0x30(%rbp), %rdi
leaq 0x2c14d(%rip), %rsi # 0x7bd81
movl $0xf, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fc5d
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xb8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcd2
movq -0x30(%rbp), %rdi
leaq 0x2c129(%rip), %rsi # 0x7bd91
movl $0x10, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fc91
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcd0
movq -0x30(%rbp), %rdi
leaq 0x2c106(%rip), %rsi # 0x7bda2
movl $0xf, %edx
callq 0x4f4f0
cmpl $0x0, %eax
jne 0x4fcc5
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x4fcce
movl $0x0, -0x4(%rbp)
jmp 0x4fd23
jmp 0x4fcd0
jmp 0x4fcd2
jmp 0x4fcd4
jmp 0x4fcd6
jmp 0x4fcd8
jmp 0x4fcda
jmp 0x4fcdc
jmp 0x4fcde
jmp 0x4fce0
jmp 0x4fce2
jmp 0x4fce4
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rax
movslq 0x24(%rax), %rdx
callq 0x4fe40
cmpl $0x0, %eax
jne 0x4fd17
jmp 0x4fd00
jmp 0x4fd02
movq -0x10(%rbp), %rdi
leaq 0x2c0a5(%rip), %rsi # 0x7bdb2
callq 0x4feb0
movl %eax, -0x4(%rbp)
jmp 0x4fd23
movq -0x10(%rbp), %rdi
callq 0x4f550
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_coll_parser_scan_logical_position:
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 rax, [rax+0F0h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_10]
call my_coll_parser_curr
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
lea rsi, aFirstNonIgnora; "[first non-ignorable]"
mov edx, 15h
call lex_cmp
cmp eax, 0
jnz short loc_4FA74
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+70h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCE4
loc_4FA74:
mov rdi, [rbp+var_30]
lea rsi, aLastNonIgnorab; "[last non-ignorable]"
mov edx, 14h
call lex_cmp
cmp eax, 0
jnz short loc_4FAA8
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+78h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCE2
loc_4FAA8:
mov rdi, [rbp+var_30]
lea rsi, aFirstPrimaryIg; "[first primary ignorable]"
mov edx, 19h
call lex_cmp
cmp eax, 0
jnz short loc_4FADF
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+80h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCE0
loc_4FADF:
mov rdi, [rbp+var_30]
lea rsi, aLastPrimaryIgn; "[last primary ignorable]"
mov edx, 18h
call lex_cmp
cmp eax, 0
jnz short loc_4FB16
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+88h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCDE
loc_4FB16:
mov rdi, [rbp+var_30]
lea rsi, aFirstSecondary; "[first secondary ignorable]"
mov edx, 1Bh
call lex_cmp
cmp eax, 0
jnz short loc_4FB4D
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+90h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCDC
loc_4FB4D:
mov rdi, [rbp+var_30]
lea rsi, aLastSecondaryI; "[last secondary ignorable]"
mov edx, 1Ah
call lex_cmp
cmp eax, 0
jnz short loc_4FB84
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+98h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCDA
loc_4FB84:
mov rdi, [rbp+var_30]
lea rsi, aFirstTertiaryI; "[first tertiary ignorable]"
mov edx, 1Ah
call lex_cmp
cmp eax, 0
jnz short loc_4FBBB
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0A0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCD8
loc_4FBBB:
mov rdi, [rbp+var_30]
lea rsi, aLastTertiaryIg; "[last tertiary ignorable]"
mov edx, 19h
call lex_cmp
cmp eax, 0
jnz short loc_4FBF2
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0A8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCD6
loc_4FBF2:
mov rdi, [rbp+var_30]
lea rsi, aFirstTrailing; "[first trailing]"
mov edx, 10h
call lex_cmp
cmp eax, 0
jnz short loc_4FC29
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0B0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_4FCD4
loc_4FC29:
mov rdi, [rbp+var_30]
lea rsi, aLastTrailing; "[last trailing]"
mov edx, 0Fh
call lex_cmp
cmp eax, 0
jnz short loc_4FC5D
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0B8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_4FCD2
loc_4FC5D:
mov rdi, [rbp+var_30]
lea rsi, aFirstVariable; "[first variable]"
mov edx, 10h
call lex_cmp
cmp eax, 0
jnz short loc_4FC91
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0C0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_4FCD0
loc_4FC91:
mov rdi, [rbp+var_30]
lea rsi, aLastVariable; "[last variable]"
mov edx, 0Fh
call lex_cmp
cmp eax, 0
jnz short loc_4FCC5
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0C8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_4FCCE
loc_4FCC5:
mov [rbp+var_4], 0
jmp short loc_4FD23
loc_4FCCE:
jmp short $+2
loc_4FCD0:
jmp short $+2
loc_4FCD2:
jmp short $+2
loc_4FCD4:
jmp short $+2
loc_4FCD6:
jmp short $+2
loc_4FCD8:
jmp short $+2
loc_4FCDA:
jmp short $+2
loc_4FCDC:
jmp short $+2
loc_4FCDE:
jmp short $+2
loc_4FCE0:
jmp short $+2
loc_4FCE2:
jmp short $+2
loc_4FCE4:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_30]
movsxd rdx, dword ptr [rax+24h]
call my_coll_rule_expand
cmp eax, 0
jnz short loc_4FD17
jmp short $+2
loc_4FD00:
jmp short $+2
loc_4FD02:
mov rdi, [rbp+var_10]
lea rsi, aLogicalPositio; "Logical position"
call my_coll_parser_too_long_error
mov [rbp+var_4], eax
jmp short loc_4FD23
loc_4FD17:
mov rdi, [rbp+var_10]
call my_coll_parser_scan
mov [rbp+var_4], eax
loc_4FD23:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_coll_parser_scan_logical_position(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+0h] [rbp-30h]
long long v5; // [rsp+8h] [rbp-28h]
v5 = *(_QWORD *)(a1 + 240);
v4 = my_coll_parser_curr(a1);
if ( (unsigned int)lex_cmp(v4, (long long)"[first non-ignorable]", 0x15uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last non-ignorable]", 0x14uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first primary ignorable]", 0x19uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last primary ignorable]", 0x18uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first secondary ignorable]", 0x1BuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last secondary ignorable]", 0x1AuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first tertiary ignorable]", 0x1AuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last tertiary ignorable]", 0x19uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first trailing]", 0x10uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last trailing]", 0xFuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first variable]", 0x10uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last variable]", 0xFuLL) )
return 0;
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 200LL);
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 192LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 184LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 176LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 168LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 160LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 152LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 144LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 136LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 128LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 120LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 112LL);
}
if ( (unsigned int)my_coll_rule_expand(a2, a3, *(int *)(v4 + 36)) )
return (unsigned int)my_coll_parser_scan(a1);
else
return (unsigned int)my_coll_parser_too_long_error(a1, "Logical position");
}
| my_coll_parser_scan_logical_position:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf0]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014ed70
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bca6]
MOV EDX,0x15
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fa74
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fce4
LAB_0014fa74:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bcbc]
MOV EDX,0x14
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014faa8
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fce2
LAB_0014faa8:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bcd1]
MOV EDX,0x19
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fadf
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fce0
LAB_0014fadf:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bceb]
MOV EDX,0x18
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fb16
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x88]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcde
LAB_0014fb16:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd04]
MOV EDX,0x1b
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fb4d
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x90]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcdc
LAB_0014fb4d:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd20]
MOV EDX,0x1a
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fb84
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcda
LAB_0014fb84:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd3b]
MOV EDX,0x1a
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fbbb
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xa0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcd8
LAB_0014fbbb:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd56]
MOV EDX,0x19
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fbf2
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xa8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcd6
LAB_0014fbf2:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd70]
MOV EDX,0x10
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fc29
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xb0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcd4
LAB_0014fc29:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd81]
MOV EDX,0xf
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fc5d
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcd2
LAB_0014fc5d:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bd91]
MOV EDX,0x10
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fc91
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcd0
LAB_0014fc91:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x17bda2]
MOV EDX,0xf
CALL 0x0014f4f0
CMP EAX,0x0
JNZ 0x0014fcc5
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xc8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0014fcce
LAB_0014fcc5:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014fd23
LAB_0014fcce:
JMP 0x0014fcd0
LAB_0014fcd0:
JMP 0x0014fcd2
LAB_0014fcd2:
JMP 0x0014fcd4
LAB_0014fcd4:
JMP 0x0014fcd6
LAB_0014fcd6:
JMP 0x0014fcd8
LAB_0014fcd8:
JMP 0x0014fcda
LAB_0014fcda:
JMP 0x0014fcdc
LAB_0014fcdc:
JMP 0x0014fcde
LAB_0014fcde:
JMP 0x0014fce0
LAB_0014fce0:
JMP 0x0014fce2
LAB_0014fce2:
JMP 0x0014fce4
LAB_0014fce4:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RDX,dword ptr [RAX + 0x24]
CALL 0x0014fe40
CMP EAX,0x0
JNZ 0x0014fd17
JMP 0x0014fd00
LAB_0014fd00:
JMP 0x0014fd02
LAB_0014fd02:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x17bdb2]
CALL 0x0014feb0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0014fd23
LAB_0014fd17:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0014f550
MOV dword ptr [RBP + -0x4],EAX
LAB_0014fd23:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_coll_parser_scan_logical_position(long param_1,int8 param_2,int8 param_3)
{
long lVar1;
int iVar2;
long lVar3;
int4 local_c;
lVar1 = *(long *)(param_1 + 0xf0);
lVar3 = my_coll_parser_curr(param_1);
iVar2 = lex_cmp(lVar3,"[first non-ignorable]",0x15);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x70);
}
else {
iVar2 = lex_cmp(lVar3,"[last non-ignorable]",0x14);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x78);
}
else {
iVar2 = lex_cmp(lVar3,"[first primary ignorable]",0x19);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x80);
}
else {
iVar2 = lex_cmp(lVar3,"[last primary ignorable]",0x18);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x88);
}
else {
iVar2 = lex_cmp(lVar3,"[first secondary ignorable]",0x1b);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x90);
}
else {
iVar2 = lex_cmp(lVar3,"[last secondary ignorable]",0x1a);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x98);
}
else {
iVar2 = lex_cmp(lVar3,"[first tertiary ignorable]",0x1a);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xa0);
}
else {
iVar2 = lex_cmp(lVar3,"[last tertiary ignorable]",0x19);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xa8);
}
else {
iVar2 = lex_cmp(lVar3,"[first trailing]",0x10);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xb0);
}
else {
iVar2 = lex_cmp(lVar3,"[last trailing]",0xf);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xb8);
}
else {
iVar2 = lex_cmp(lVar3,"[first variable]",0x10);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xc0);
}
else {
iVar2 = lex_cmp(lVar3,"[last variable]",0xf);
if (iVar2 != 0) {
return 0;
}
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 200);
}
}
}
}
}
}
}
}
}
}
}
iVar2 = my_coll_rule_expand(param_2,param_3,(long)*(int *)(lVar3 + 0x24));
if (iVar2 == 0) {
local_c = my_coll_parser_too_long_error(param_1,"Logical position");
}
else {
local_c = my_coll_parser_scan(param_1);
}
return local_c;
}
| |
52,206 | uf_endspace | eloqsql/storage/myisam/mi_packrec.c | static void uf_endspace(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to,
uchar *end)
{
uint spaces;
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
if (to+spaces != end)
decode_bytes(rec,bit_buff,to,end-spaces);
bfill((uchar*) end-spaces,spaces,' ');
} | O3 | c | uf_endspace:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rsi, %r15
movl 0x4(%rsi), %ecx
movl 0x1c(%rdi), %r13d
cmpl %r13d, %ecx
jae 0x82c4e
subl %ecx, %r13d
leaq 0x5dbc1(%rip), %rax # 0xe07d0
movl (%rax,%rcx,4), %r14d
andl (%r15), %r14d
movl %r13d, %ecx
shll %cl, %r14d
movq %rdi, -0x30(%rbp)
movq %r15, %rdi
movq %rdx, %r12
callq 0x81cfd
movq -0x30(%rbp), %rdi
movq %r12, %rdx
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r15)
movl (%r15), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %r14d, %eax
jmp 0x82c67
movl (%r15), %eax
subl %r13d, %ecx
movl %ecx, 0x4(%r15)
shrl %cl, %eax
movl 0x1c(%rdi), %ecx
leaq 0x5db6c(%rip), %rsi # 0xe07d0
andl (%rsi,%rcx,4), %eax
movl %eax, %r13d
leaq (%rdx,%r13), %rax
cmpq %rbx, %rax
jbe 0x82c8a
movl $0x1, 0x28(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %r14
negq %r14
cmpq %rbx, %rax
je 0x82ca1
leaq (%rbx,%r14), %rcx
movq %r15, %rsi
callq 0x825ee
addq %r14, %rbx
movq %rbx, %rdi
movl $0x20, %esi
movq %r13, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x292b0
| uf_endspace_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r15, rsi
mov ecx, [rsi+4]
mov r13d, [rdi+1Ch]
cmp ecx, r13d
jnb short loc_82C4E
sub r13d, ecx
lea rax, mask_0
mov r14d, [rax+rcx*4]
and r14d, [r15]
mov ecx, r13d
shl r14d, cl
mov [rbp+var_30], rdi
mov rdi, r15
mov r12, rdx
call fill_buffer_0
mov rdi, [rbp+var_30]
mov rdx, r12
mov eax, 20h ; ' '
sub eax, r13d
mov [r15+4], eax
mov eax, [r15]
neg r13d
mov ecx, r13d
shr eax, cl
add eax, r14d
jmp short loc_82C67
loc_82C4E:
mov eax, [r15]
sub ecx, r13d
mov [r15+4], ecx
shr eax, cl
mov ecx, [rdi+1Ch]
lea rsi, mask_0
and eax, [rsi+rcx*4]
loc_82C67:
mov r13d, eax
lea rax, [rdx+r13]
cmp rax, rbx
jbe short loc_82C8A
mov dword ptr [r15+28h], 1
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_82C8A:
mov r14, r13
neg r14
cmp rax, rbx
jz short loc_82CA1
lea rcx, [rbx+r14]
mov rsi, r15
call decode_bytes_0
loc_82CA1:
add rbx, r14
mov rdi, rbx
mov esi, 20h ; ' '
mov rdx, r13
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
| unsigned long long uf_endspace_0(long long a1, unsigned int *a2, _BYTE *a3, unsigned long long a4)
{
long long v5; // rcx
unsigned int v6; // r13d
int v7; // r13d
int v8; // r14d
_BYTE *v9; // r12
unsigned int v10; // eax
unsigned int v11; // eax
unsigned int v12; // ecx
long long v13; // r13
unsigned long long result; // rax
v5 = a2[1];
v6 = *(_DWORD *)(a1 + 28);
if ( (unsigned int)v5 >= v6 )
{
v11 = *a2;
v12 = v5 - v6;
a2[1] = v12;
v10 = mask_0[*(unsigned int *)(a1 + 28)] & (v11 >> v12);
}
else
{
v7 = v6 - v5;
v8 = (*a2 & mask_0[v5]) << v7;
v9 = a3;
fill_buffer_0((long long)a2);
a3 = v9;
a2[1] = 32 - v7;
v10 = v8 + (*a2 >> -(char)v7);
}
v13 = v10;
result = (unsigned long long)&a3[v10];
if ( result <= a4 )
{
if ( result != a4 )
decode_bytes_0(a1, (long long)a2, a3, (_BYTE *)(a4 - v13));
return memset(a4 - v13, 32LL, v13);
}
else
{
a2[10] = 1;
}
return result;
}
| uf_endspace:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R15,RSI
MOV ECX,dword ptr [RSI + 0x4]
MOV R13D,dword ptr [RDI + 0x1c]
CMP ECX,R13D
JNC 0x00182c4e
SUB R13D,ECX
LEA RAX,[0x1e07d0]
MOV R14D,dword ptr [RAX + RCX*0x4]
AND R14D,dword ptr [R15]
MOV ECX,R13D
SHL R14D,CL
MOV qword ptr [RBP + -0x30],RDI
MOV RDI,R15
MOV R12,RDX
CALL 0x00181cfd
MOV RDI,qword ptr [RBP + -0x30]
MOV RDX,R12
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R15 + 0x4],EAX
MOV EAX,dword ptr [R15]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD EAX,R14D
JMP 0x00182c67
LAB_00182c4e:
MOV EAX,dword ptr [R15]
SUB ECX,R13D
MOV dword ptr [R15 + 0x4],ECX
SHR EAX,CL
MOV ECX,dword ptr [RDI + 0x1c]
LEA RSI,[0x1e07d0]
AND EAX,dword ptr [RSI + RCX*0x4]
LAB_00182c67:
MOV R13D,EAX
LEA RAX,[RDX + R13*0x1]
CMP RAX,RBX
JBE 0x00182c8a
MOV dword ptr [R15 + 0x28],0x1
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00182c8a:
MOV R14,R13
NEG R14
CMP RAX,RBX
JZ 0x00182ca1
LEA RCX,[RBX + R14*0x1]
MOV RSI,R15
CALL 0x001825ee
LAB_00182ca1:
ADD RBX,R14
MOV RDI,RBX
MOV ESI,0x20
MOV RDX,R13
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001292b0
|
void uf_endspace(long param_1,uint *param_2,long param_3,ulong param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
byte bVar5;
ulong __n;
uVar4 = param_2[1];
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar4 < uVar1) {
uVar2 = (&mask)[uVar4];
uVar3 = *param_2;
bVar5 = (byte)(uVar1 - uVar4);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar4);
uVar4 = (*param_2 >> (-bVar5 & 0x1f)) + ((uVar2 & uVar3) << (bVar5 & 0x1f));
}
else {
param_2[1] = uVar4 - uVar1;
uVar4 = *param_2 >> ((byte)(uVar4 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
__n = (ulong)uVar4;
if (param_4 < param_3 + __n) {
param_2[10] = 1;
return;
}
if (param_3 + __n != param_4) {
decode_bytes(param_1,param_2,param_3,param_4 + -__n);
}
memset((void *)(param_4 + -__n),0x20,__n);
return;
}
| |
52,207 | lf_hash_insert | eloqsql/mysys/lf_hash.cc | int lf_hash_insert(LF_HASH *hash, LF_PINS *pins, const void *data)
{
int csize, bucket, hashnr;
LF_SLIST *node, **el;
node= (LF_SLIST *)lf_alloc_new(pins);
if (unlikely(!node))
return -1;
hash->initializer(hash, node + 1, data);
node->key= hash_key(hash, (uchar *)(node+1), &node->keylen);
hashnr= hash->hash_function(hash->charset, node->key, node->keylen) & INT_MAX32;
bucket= hashnr % hash->size;
el= (LF_SLIST **)lf_dynarray_lvalue(&hash->array, bucket);
if (unlikely(!el))
return -1;
if (*el == NULL && unlikely(initialize_bucket(hash, el, bucket, pins)))
return -1;
node->hashnr= my_reverse_bits(hashnr) | 1; /* normal node */
if (l_insert(el, hash->charset, node, pins, hash->flags))
{
lf_alloc_free(pins, node);
return 1;
}
csize= hash->size;
if ((my_atomic_add32(&hash->count, 1)+1.0) / csize > MAX_LOAD)
my_atomic_cas32(&hash->size, &csize, csize*2);
return 0;
} | O3 | cpp | lf_hash_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0xa58e3
pushq $-0x1
popq %rdx
testq %rax, %rax
je 0x2f574
movq %rax, %r12
movq %r14, -0x30(%rbp)
leaq 0x20(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq *0x98(%rbx)
movq %r12, %r15
addq $0x10, %r15
movq 0x90(%rbx), %rax
testq %rax, %rax
je 0x2f44d
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq *%rax
movq %rax, %r14
movq (%r15), %rdx
jmp 0x2f45f
movl 0xb4(%rbx), %edx
movq %rdx, (%r15)
movl 0xb0(%rbx), %eax
addq %rax, %r14
movq %r12, -0x38(%rbp)
movq %r14, 0x8(%r12)
movq 0xa8(%rbx), %rdi
movq %r14, %rsi
callq *0xa0(%rbx)
movl %eax, %r13d
movl %eax, %r12d
andl $0x7fffffff, %r12d # imm = 0x7FFFFFFF
movl %r12d, %eax
xorl %edx, %edx
idivl 0xc0(%rbx)
movl %edx, %r15d
movq %rbx, %rdi
movl %edx, %esi
callq 0x2f29a
testq %rax, %rax
je 0x2f5a4
movq %rax, %r14
cmpq $0x0, (%rax)
je 0x2f585
movl $0xff, %eax
movl %r13d, %ecx
andl %eax, %ecx
leaq 0xb27ac(%rip), %rdx # 0xe1c70
movzbl (%rdx,%rcx), %ecx
shll $0x18, %ecx
movl %r13d, %esi
shrl $0x8, %esi
andl %eax, %esi
movzbl (%rdx,%rsi), %esi
shll $0x10, %esi
orl %ecx, %esi
shrl $0x10, %r13d
andl %eax, %r13d
movzbl (%rdx,%r13), %eax
shll $0x8, %eax
orl %esi, %eax
shrl $0x18, %r12d
movzbl (%rdx,%r12), %ecx
orl %eax, %ecx
orl $0x1, %ecx
movq -0x38(%rbp), %r15
movl %ecx, 0x18(%r15)
movq 0xa8(%rbx), %rsi
movl 0xbc(%rbx), %r8d
movq %r14, %rdi
movq %r15, %rdx
movq -0x30(%rbp), %r14
movq %r14, %rcx
callq 0xa5d91
testq %rax, %rax
je 0x2f538
movq %r14, %rdi
movq %r15, %rsi
callq 0xa57bb
pushq $0x1
popq %rdx
jmp 0x2f574
movl 0xc0(%rbx), %eax
pushq $0x1
popq %rcx
lock
xaddl %ecx, 0xc4(%rbx)
cvtsi2sd %ecx, %xmm0
movsd 0xb1953(%rip), %xmm1 # 0xe0ea8
addsd %xmm1, %xmm0
cvtsi2sd %eax, %xmm2
divsd %xmm2, %xmm0
xorl %edx, %edx
ucomisd %xmm1, %xmm0
jbe 0x2f574
leal (%rax,%rax), %ecx
lock
cmpxchgl %ecx, 0xc0(%rbx)
movl %edx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
movq -0x30(%rbp), %rcx
callq 0x2f5a8
pushq $-0x1
popq %rdx
testl %eax, %eax
je 0x2f4b3
jmp 0x2f574
pushq $-0x1
jmp 0x2f535
| lf_hash_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
call lf_alloc_new
push 0FFFFFFFFFFFFFFFFh
pop rdx
test rax, rax
jz loc_2F574
mov r12, rax
mov [rbp+var_30], r14
lea r14, [rax+20h]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call qword ptr [rbx+98h]
mov r15, r12
add r15, 10h
mov rax, [rbx+90h]
test rax, rax
jz short loc_2F44D
mov rdi, r14
mov rsi, r15
xor edx, edx
call rax
mov r14, rax
mov rdx, [r15]
jmp short loc_2F45F
loc_2F44D:
mov edx, [rbx+0B4h]
mov [r15], rdx
mov eax, [rbx+0B0h]
add r14, rax
loc_2F45F:
mov [rbp+var_38], r12
mov [r12+8], r14
mov rdi, [rbx+0A8h]
mov rsi, r14
call qword ptr [rbx+0A0h]
mov r13d, eax
mov r12d, eax
and r12d, 7FFFFFFFh
mov eax, r12d
xor edx, edx
idiv dword ptr [rbx+0C0h]
mov r15d, edx
mov rdi, rbx
mov esi, edx
call lf_dynarray_lvalue
test rax, rax
jz loc_2F5A4
mov r14, rax
cmp qword ptr [rax], 0
jz loc_2F585
loc_2F4B3:
mov eax, 0FFh
mov ecx, r13d
and ecx, eax
lea rdx, _my_bits_reverse_table
movzx ecx, byte ptr [rdx+rcx]
shl ecx, 18h
mov esi, r13d
shr esi, 8
and esi, eax
movzx esi, byte ptr [rdx+rsi]
shl esi, 10h
or esi, ecx
shr r13d, 10h
and r13d, eax
movzx eax, byte ptr [rdx+r13]
shl eax, 8
or eax, esi
shr r12d, 18h
movzx ecx, byte ptr [rdx+r12]
or ecx, eax
or ecx, 1
mov r15, [rbp+var_38]
mov [r15+18h], ecx
mov rsi, [rbx+0A8h]
mov r8d, [rbx+0BCh]
mov rdi, r14
mov rdx, r15
mov r14, [rbp+var_30]
mov rcx, r14
call _ZL8l_insertPP8LF_SLISTPK15charset_info_stS0_P7LF_PINSj; l_insert(LF_SLIST **,charset_info_st const*,LF_SLIST *,LF_PINS *,uint)
test rax, rax
jz short loc_2F538
mov rdi, r14
mov rsi, r15
call lf_pinbox_free
push 1
loc_2F535:
pop rdx
jmp short loc_2F574
loc_2F538:
mov eax, [rbx+0C0h]
push 1
pop rcx
lock xadd [rbx+0C4h], ecx
cvtsi2sd xmm0, ecx
movsd xmm1, cs:qword_E0EA8
addsd xmm0, xmm1
cvtsi2sd xmm2, eax
divsd xmm0, xmm2
xor edx, edx
ucomisd xmm0, xmm1
jbe short loc_2F574
lea ecx, [rax+rax]
lock cmpxchg [rbx+0C0h], ecx
loc_2F574:
mov eax, edx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2F585:
mov rdi, rbx
mov rsi, r14
mov edx, r15d
mov rcx, [rbp+var_30]
call _ZL17initialize_bucketP10st_lf_hashPP8LF_SLISTjP7LF_PINS; initialize_bucket(st_lf_hash *,LF_SLIST **,uint,LF_PINS *)
push 0FFFFFFFFFFFFFFFFh
pop rdx
test eax, eax
jz loc_2F4B3
jmp short loc_2F574
loc_2F5A4:
push 0FFFFFFFFFFFFFFFFh
jmp short loc_2F535
| long long lf_hash_insert(long long a1, long long a2, long long a3)
{
long long v4; // rax
unsigned int v5; // edx
long long v6; // r12
long long v7; // r14
long long *v8; // r15
long long ( *v9)(long long, long long, _QWORD); // rax
long long v10; // r14
long long v11; // rdx
int v12; // r13d
unsigned int v13; // r15d
_QWORD *v14; // rax
_QWORD *v15; // r14
signed __int32 v16; // eax
int v18; // eax
v4 = lf_alloc_new(a2);
v5 = -1;
if ( v4 )
{
v6 = v4;
v7 = v4 + 32;
(*(void ( **)(long long, long long, long long))(a1 + 152))(a1, v4 + 32, a3);
v8 = (long long *)(v6 + 16);
v9 = *(long long ( **)(long long, long long, _QWORD))(a1 + 144);
if ( v9 )
{
v10 = v9(v7, v6 + 16, 0LL);
v11 = *v8;
}
else
{
v11 = *(unsigned int *)(a1 + 180);
*v8 = v11;
v10 = *(unsigned int *)(a1 + 176) + v7;
}
*(_QWORD *)(v6 + 8) = v10;
v12 = (*(long long ( **)(_QWORD, long long, long long))(a1 + 160))(*(_QWORD *)(a1 + 168), v10, v11);
v13 = (v12 & 0x7FFFFFFFu) % (long long)*(int *)(a1 + 192);
v14 = (_QWORD *)lf_dynarray_lvalue(a1, v13);
if ( !v14 )
return (unsigned int)-1;
v15 = v14;
if ( !*v14 )
{
v18 = initialize_bucket(a1, v14, v13, a2);
v5 = -1;
if ( v18 )
return v5;
}
*(_DWORD *)(v6 + 24) = (my_bits_reverse_table[(unsigned __int8)v12] << 24) | (my_bits_reverse_table[BYTE1(v12)] << 16) | (my_bits_reverse_table[BYTE2(v12)] << 8) | my_bits_reverse_table[(v12 & 0x7FFFFFFFu) >> 24] | 1;
if ( l_insert(v15, *(_QWORD *)(a1 + 168), v6, a2, *(unsigned int *)(a1 + 188)) )
{
lf_pinbox_free(a2, v6);
return 1;
}
v16 = *(_DWORD *)(a1 + 192);
v5 = 0;
if ( ((double)_InterlockedExchangeAdd((volatile signed __int32 *)(a1 + 196), 1u) + 1.0) / (double)v16 > 1.0 )
_InterlockedCompareExchange((volatile signed __int32 *)(a1 + 192), 2 * v16, v16);
}
return v5;
}
| lf_hash_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
CALL 0x001a58e3
PUSH -0x1
POP RDX
TEST RAX,RAX
JZ 0x0012f574
MOV R12,RAX
MOV qword ptr [RBP + -0x30],R14
LEA R14,[RAX + 0x20]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL qword ptr [RBX + 0x98]
MOV R15,R12
ADD R15,0x10
MOV RAX,qword ptr [RBX + 0x90]
TEST RAX,RAX
JZ 0x0012f44d
MOV RDI,R14
MOV RSI,R15
XOR EDX,EDX
CALL RAX
MOV R14,RAX
MOV RDX,qword ptr [R15]
JMP 0x0012f45f
LAB_0012f44d:
MOV EDX,dword ptr [RBX + 0xb4]
MOV qword ptr [R15],RDX
MOV EAX,dword ptr [RBX + 0xb0]
ADD R14,RAX
LAB_0012f45f:
MOV qword ptr [RBP + -0x38],R12
MOV qword ptr [R12 + 0x8],R14
MOV RDI,qword ptr [RBX + 0xa8]
MOV RSI,R14
CALL qword ptr [RBX + 0xa0]
MOV R13D,EAX
MOV R12D,EAX
AND R12D,0x7fffffff
MOV EAX,R12D
XOR EDX,EDX
IDIV dword ptr [RBX + 0xc0]
MOV R15D,EDX
MOV RDI,RBX
MOV ESI,EDX
CALL 0x0012f29a
TEST RAX,RAX
JZ 0x0012f5a4
MOV R14,RAX
CMP qword ptr [RAX],0x0
JZ 0x0012f585
LAB_0012f4b3:
MOV EAX,0xff
MOV ECX,R13D
AND ECX,EAX
LEA RDX,[0x1e1c70]
MOVZX ECX,byte ptr [RDX + RCX*0x1]
SHL ECX,0x18
MOV ESI,R13D
SHR ESI,0x8
AND ESI,EAX
MOVZX ESI,byte ptr [RDX + RSI*0x1]
SHL ESI,0x10
OR ESI,ECX
SHR R13D,0x10
AND R13D,EAX
MOVZX EAX,byte ptr [RDX + R13*0x1]
SHL EAX,0x8
OR EAX,ESI
SHR R12D,0x18
MOVZX ECX,byte ptr [RDX + R12*0x1]
OR ECX,EAX
OR ECX,0x1
MOV R15,qword ptr [RBP + -0x38]
MOV dword ptr [R15 + 0x18],ECX
MOV RSI,qword ptr [RBX + 0xa8]
MOV R8D,dword ptr [RBX + 0xbc]
MOV RDI,R14
MOV RDX,R15
MOV R14,qword ptr [RBP + -0x30]
MOV RCX,R14
CALL 0x001a5d91
TEST RAX,RAX
JZ 0x0012f538
MOV RDI,R14
MOV RSI,R15
CALL 0x001a57bb
PUSH 0x1
LAB_0012f535:
POP RDX
JMP 0x0012f574
LAB_0012f538:
MOV EAX,dword ptr [RBX + 0xc0]
PUSH 0x1
POP RCX
XADD.LOCK dword ptr [RBX + 0xc4],ECX
CVTSI2SD XMM0,ECX
MOVSD XMM1,qword ptr [0x001e0ea8]
ADDSD XMM0,XMM1
CVTSI2SD XMM2,EAX
DIVSD XMM0,XMM2
XOR EDX,EDX
UCOMISD XMM0,XMM1
JBE 0x0012f574
LEA ECX,[RAX + RAX*0x1]
CMPXCHG.LOCK dword ptr [RBX + 0xc0],ECX
LAB_0012f574:
MOV EAX,EDX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012f585:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R15D
MOV RCX,qword ptr [RBP + -0x30]
CALL 0x0012f5a8
PUSH -0x1
POP RDX
TEST EAX,EAX
JZ 0x0012f4b3
JMP 0x0012f574
LAB_0012f5a4:
PUSH -0x1
JMP 0x0012f535
|
int4 lf_hash_insert(st_lf_hash *param_1,LF_PINS *param_2,int8 param_3)
{
st_lf_hash *psVar1;
int iVar2;
uint uVar3;
int iVar4;
LF_SLIST *pLVar5;
LF_SLIST *pLVar6;
LF_SLIST **ppLVar7;
long lVar8;
int4 uVar9;
ulong uVar10;
LF_SLIST *pLVar11;
pLVar5 = (LF_SLIST *)lf_alloc_new(param_2);
uVar9 = 0xffffffff;
if (pLVar5 != (LF_SLIST *)0x0) {
pLVar6 = pLVar5 + 0x20;
(**(code **)(param_1 + 0x98))(param_1,pLVar6,param_3);
pLVar11 = pLVar5 + 0x10;
if (*(code **)(param_1 + 0x90) == (code *)0x0) {
uVar10 = (ulong)*(uint *)(param_1 + 0xb4);
*(ulong *)pLVar11 = uVar10;
pLVar6 = pLVar6 + *(uint *)(param_1 + 0xb0);
}
else {
pLVar6 = (LF_SLIST *)(**(code **)(param_1 + 0x90))(pLVar6,pLVar11,0);
uVar10 = *(ulong *)pLVar11;
}
*(LF_SLIST **)(pLVar5 + 8) = pLVar6;
uVar3 = (**(code **)(param_1 + 0xa0))(*(int8 *)(param_1 + 0xa8),pLVar6,uVar10);
uVar10 = (long)(ulong)(uVar3 & 0x7fffffff) % (long)*(int *)(param_1 + 0xc0);
ppLVar7 = (LF_SLIST **)lf_dynarray_lvalue(param_1,uVar10 & 0xffffffff);
if (ppLVar7 == (LF_SLIST **)0x0) {
uVar9 = 0xffffffff;
}
else {
if ((*ppLVar7 == (LF_SLIST *)0x0) &&
(iVar4 = initialize_bucket(param_1,ppLVar7,(uint)uVar10,param_2), iVar4 != 0)) {
return 0xffffffff;
}
*(uint *)(pLVar5 + 0x18) =
(uint)(byte)_my_bits_reverse_table[(uVar3 & 0x7fffffff) >> 0x18] |
(uint)(byte)_my_bits_reverse_table[uVar3 >> 0x10 & 0xff] << 8 |
(uint)(byte)_my_bits_reverse_table[uVar3 >> 8 & 0xff] << 0x10 |
(uint)(byte)_my_bits_reverse_table[uVar3 & 0xff] << 0x18 | 1;
lVar8 = l_insert(ppLVar7,*(charset_info_st **)(param_1 + 0xa8),pLVar5,param_2,
*(uint *)(param_1 + 0xbc));
if (lVar8 == 0) {
iVar2 = *(int *)(param_1 + 0xc0);
LOCK();
psVar1 = param_1 + 0xc4;
iVar4 = *(int *)psVar1;
*(int *)psVar1 = *(int *)psVar1 + 1;
UNLOCK();
uVar9 = 0;
if (DAT_001e0ea8 < ((double)iVar4 + DAT_001e0ea8) / (double)iVar2) {
LOCK();
if (iVar2 == *(int *)(param_1 + 0xc0)) {
*(int *)(param_1 + 0xc0) = iVar2 * 2;
}
UNLOCK();
uVar9 = 0;
}
}
else {
lf_pinbox_free(param_2,pLVar5);
uVar9 = 1;
}
}
}
return uVar9;
}
| |
52,208 | js__malloc_usable_size | bluesky950520[P]quickjs/cutils.h | static inline size_t js__malloc_usable_size(const void *ptr)
{
#if defined(__APPLE__)
return malloc_size(ptr);
#elif defined(_WIN32)
return _msize((void *)ptr);
#elif defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__) || defined(__FreeBSD__)
return malloc_usable_size((void *)ptr);
#else
return 0;
#endif
} | O0 | c | js__malloc_usable_size:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rdi
callq 0xe430
popq %rcx
retq
| js__malloc_usable_size:
push rax
mov [rsp+8+var_8], rdi
mov rdi, [rsp+8+var_8]
call _malloc_usable_size
pop rcx
retn
| long long js__malloc_usable_size(long long a1)
{
return malloc_usable_size(a1);
}
| js__malloc_usable_size:
PUSH RAX
MOV qword ptr [RSP],RDI
MOV RDI,qword ptr [RSP]
CALL 0x0010e430
POP RCX
RET
|
void js__malloc_usable_size(int8 param_1)
{
malloc_usable_size(param_1);
return;
}
| |
52,209 | js__malloc_usable_size | bluesky950520[P]quickjs/cutils.h | static inline size_t js__malloc_usable_size(const void *ptr)
{
#if defined(__APPLE__)
return malloc_size(ptr);
#elif defined(_WIN32)
return _msize((void *)ptr);
#elif defined(__linux__) || defined(__ANDROID__) || defined(__CYGWIN__) || defined(__FreeBSD__)
return malloc_usable_size((void *)ptr);
#else
return 0;
#endif
} | O3 | c | js__malloc_usable_size:
jmp 0xe430
| js__malloc_usable_size:
jmp _malloc_usable_size
| // attributes: thunk
long long js__malloc_usable_size()
{
return malloc_usable_size();
}
| js__malloc_usable_size:
JMP 0x0010e430
|
void js__malloc_usable_size(void)
{
(*(code *)PTR_malloc_usable_size_001d0218)();
return;
}
| |
52,210 | ulight::html::(anonymous namespace)::Highlighter::expect_comment() | ulight/src/main/cpp/html.cpp | bool expect_comment()
{
Match_Result comment = match_comment(remainder);
if (!comment) {
return false;
}
emit_and_advance(index, comment_prefix.length(), Highlight_Type::comment_delimiter);
comment.length -= comment_prefix.length();
if (comment.terminated) {
if (comment.length > comment_suffix.length()) {
emit_and_advance(
index, comment.length - comment_suffix.length(), Highlight_Type::comment
);
}
emit_and_advance(index, comment_suffix.length(), Highlight_Type::comment_delimiter);
}
else if (comment.length != 0) {
emit_and_advance(index, comment.length, Highlight_Type::comment);
}
return true;
} | O0 | cpp | ulight::html::(anonymous namespace)::Highlighter::expect_comment():
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x30(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x101e0
movq %rax, -0x20(%rbp)
movb %dl, -0x18(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x12610
testb $0x1, %al
jne 0x1111e
movb $0x0, -0x1(%rbp)
jmp 0x1121a
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
leaq 0x1846f(%rip), %rdi # 0x295a0
callq 0x6d60
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rax, %rdx
movl $0x11, %ecx
callq 0x11ab0
leaq 0x1844e(%rip), %rdi # 0x295a0
callq 0x6d60
movq %rax, %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
testb $0x1, -0x18(%rbp)
je 0x111f7
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x18432(%rip), %rdi # 0x295b0
callq 0x6d60
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jbe 0x111c8
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x18406(%rip), %rdi # 0x295b0
callq 0x6d60
movq -0x58(%rbp), %rdx
movq -0x38(%rbp), %rdi
movq -0x50(%rbp), %rsi
subq %rax, %rdx
movl $0x10, %ecx
callq 0x11ab0
movq -0x38(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x60(%rbp)
leaq 0x183d5(%rip), %rdi # 0x295b0
callq 0x6d60
movq -0x38(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
movl $0x11, %ecx
callq 0x11ab0
jmp 0x11216
cmpq $0x0, -0x20(%rbp)
je 0x11214
movq -0x38(%rbp), %rdi
movq 0x28(%rdi), %rsi
movq -0x20(%rbp), %rdx
movl $0x10, %ecx
callq 0x11ab0
jmp 0x11216
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN6ulight4html12_GLOBAL__N_111Highlighter14expect_commentEv:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rcx, [rax+8]
mov [rbp+var_30], rcx
mov rax, [rax+10h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_28]
call _ZN6ulight4html13match_commentESt17basic_string_viewIDuSt11char_traitsIDuEE; ulight::html::match_comment(std::u8string_view)
mov [rbp+var_20], rax
mov [rbp+var_18], dl
lea rdi, [rbp+var_20]
call _ZNK6ulight4html12Match_ResultcvbEv; ulight::html::Match_Result::operator bool(void)
test al, 1
jnz short loc_1111E
mov [rbp+var_1], 0
jmp loc_1121A
loc_1111E:
mov rax, [rbp+var_38]
mov rax, [rax+28h]
mov [rbp+var_40], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_prefixE; ulight::html::`anonymous namespace'::comment_prefix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_40]
mov rdx, rax
mov ecx, 11h
call _ZN6ulight4html12_GLOBAL__N_111Highlighter16emit_and_advanceEmmNS_14Highlight_TypeE; ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(ulong,ulong,ulight::Highlight_Type)
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_prefixE; ulight::html::`anonymous namespace'::comment_prefix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rcx, rax
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
test [rbp+var_18], 1
jz loc_111F7
mov rax, [rbp+var_20]
mov [rbp+var_48], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_suffixE; ulight::html::`anonymous namespace'::comment_suffix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rcx, rax
mov rax, [rbp+var_48]
cmp rax, rcx
jbe short loc_111C8
mov rax, [rbp+var_38]
mov rax, [rax+28h]
mov [rbp+var_50], rax
mov rax, [rbp+var_20]
mov [rbp+var_58], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_suffixE; ulight::html::`anonymous namespace'::comment_suffix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rdx, [rbp+var_58]
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_50]
sub rdx, rax
mov ecx, 10h
call _ZN6ulight4html12_GLOBAL__N_111Highlighter16emit_and_advanceEmmNS_14Highlight_TypeE; ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(ulong,ulong,ulight::Highlight_Type)
loc_111C8:
mov rax, [rbp+var_38]
mov rax, [rax+28h]
mov [rbp+var_60], rax
lea rdi, _ZN6ulight4html12_GLOBAL__N_114comment_suffixE; ulight::html::`anonymous namespace'::comment_suffix
call _ZNKSt17basic_string_viewIDuSt11char_traitsIDuEE6lengthEv; std::u8string_view::length(void)
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_60]
mov rdx, rax
mov ecx, 11h
call _ZN6ulight4html12_GLOBAL__N_111Highlighter16emit_and_advanceEmmNS_14Highlight_TypeE; ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(ulong,ulong,ulight::Highlight_Type)
jmp short loc_11216
loc_111F7:
cmp [rbp+var_20], 0
jz short loc_11214
mov rdi, [rbp+var_38]
mov rsi, [rdi+28h]
mov rdx, [rbp+var_20]
mov ecx, 10h
call _ZN6ulight4html12_GLOBAL__N_111Highlighter16emit_and_advanceEmmNS_14Highlight_TypeE; ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(ulong,ulong,ulight::Highlight_Type)
loc_11214:
jmp short $+2
loc_11216:
mov [rbp+var_1], 1
loc_1121A:
mov al, [rbp+var_1]
and al, 1
add rsp, 60h
pop rbp
retn
| char ulight::html::`anonymous namespace'::Highlighter::expect_comment(
ulight::html::_anonymous_namespace_::Highlighter *this)
{
char v1; // dl
long long v2; // rax
long long v3; // rax
long long v4; // rax
long long v5; // rax
long long v7; // [rsp+0h] [rbp-60h]
long long v8; // [rsp+8h] [rbp-58h]
long long v9; // [rsp+10h] [rbp-50h]
unsigned long long v10; // [rsp+18h] [rbp-48h]
long long v11; // [rsp+20h] [rbp-40h]
long long matched; // [rsp+40h] [rbp-20h] BYREF
char v13; // [rsp+48h] [rbp-18h]
ulight::html::_anonymous_namespace_::Highlighter *v14; // [rsp+50h] [rbp-10h]
v14 = this;
matched = ulight::html::match_comment(*((_QWORD *)this + 1), *((_QWORD *)this + 2));
v13 = v1;
if ( (ulight::html::Match_Result::operator bool(&matched) & 1) == 0 )
return 0;
v11 = *((_QWORD *)this + 5);
v2 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_prefix);
ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(this, v11, v2, 17LL);
v3 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_prefix);
matched -= v3;
if ( (v13 & 1) != 0 )
{
v10 = matched;
if ( v10 > std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_suffix) )
{
v9 = *((_QWORD *)this + 5);
v8 = matched;
v4 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_suffix);
ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(this, v9, v8 - v4, 16LL);
}
v7 = *((_QWORD *)this + 5);
v5 = std::u8string_view::length((long long)&ulight::html::`anonymous namespace'::comment_suffix);
ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(this, v7, v5, 17LL);
}
else if ( matched )
{
ulight::html::`anonymous namespace'::Highlighter::emit_and_advance(this, *((_QWORD *)this + 5), matched, 16LL);
}
return 1;
}
| expect_comment:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x30],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x28]
CALL 0x001101e0
MOV qword ptr [RBP + -0x20],RAX
MOV byte ptr [RBP + -0x18],DL
LEA RDI,[RBP + -0x20]
CALL 0x00112610
TEST AL,0x1
JNZ 0x0011111e
MOV byte ptr [RBP + -0x1],0x0
JMP 0x0011121a
LAB_0011111e:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x40],RAX
LEA RDI,[0x1295a0]
CALL 0x00106d60
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x40]
MOV RDX,RAX
MOV ECX,0x11
CALL 0x00111ab0
LEA RDI,[0x1295a0]
CALL 0x00106d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
TEST byte ptr [RBP + -0x18],0x1
JZ 0x001111f7
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x48],RAX
LEA RDI,[0x1295b0]
CALL 0x00106d60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x48]
CMP RAX,RCX
JBE 0x001111c8
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x58],RAX
LEA RDI,[0x1295b0]
CALL 0x00106d60
MOV RDX,qword ptr [RBP + -0x58]
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x50]
SUB RDX,RAX
MOV ECX,0x10
CALL 0x00111ab0
LAB_001111c8:
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x60],RAX
LEA RDI,[0x1295b0]
CALL 0x00106d60
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RBP + -0x60]
MOV RDX,RAX
MOV ECX,0x11
CALL 0x00111ab0
JMP 0x00111216
LAB_001111f7:
CMP qword ptr [RBP + -0x20],0x0
JZ 0x00111214
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,qword ptr [RDI + 0x28]
MOV RDX,qword ptr [RBP + -0x20]
MOV ECX,0x10
CALL 0x00111ab0
LAB_00111214:
JMP 0x00111216
LAB_00111216:
MOV byte ptr [RBP + -0x1],0x1
LAB_0011121a:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x60
POP RBP
RET
|
/* ulight::html::(anonymous namespace)::Highlighter::expect_comment() */
int1 __thiscall
ulight::html::(anonymous_namespace)::Highlighter::expect_comment(Highlighter *this)
{
int8 uVar1;
ulong uVar2;
bool bVar3;
int8 uVar4;
long lVar5;
ulong uVar6;
ulong uVar7;
byte extraout_DL;
ulong local_28;
byte local_20;
Highlighter *local_18;
int1 local_9;
local_18 = this;
local_28 = match_comment(*(html **)(this + 8),*(int8 *)(this + 0x10));
local_20 = extraout_DL;
bVar3 = Match_Result::operator_cast_to_bool((Match_Result *)&local_28);
if (bVar3) {
uVar1 = *(int8 *)(this + 0x28);
uVar4 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&comment_prefix);
emit_and_advance(this,uVar1,uVar4,0x11);
lVar5 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&comment_prefix);
uVar6 = local_28 - lVar5;
local_28 = uVar6;
if ((local_20 & 1) == 0) {
if (uVar6 != 0) {
emit_and_advance(this,*(int8 *)(this + 0x28),uVar6,0x10);
}
}
else {
uVar7 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&comment_suffix);
uVar2 = local_28;
if (uVar7 < uVar6) {
uVar1 = *(int8 *)(this + 0x28);
lVar5 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&comment_suffix);
emit_and_advance(this,uVar1,uVar2 - lVar5,0x10);
}
uVar1 = *(int8 *)(this + 0x28);
uVar4 = std::basic_string_view<char8_t,std::char_traits<char8_t>>::length
((basic_string_view<char8_t,std::char_traits<char8_t>> *)&comment_suffix);
emit_and_advance(this,uVar1,uVar4,0x11);
}
local_9 = 1;
}
else {
local_9 = 0;
}
return local_9;
}
| |
52,211 | minja::Parser::parseExpansion() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseExpansion() {
static std::regex expansion_tok(R"(\*\*?)");
auto op_str = consumeToken(expansion_tok);
auto expr = parseValueExpression();
if (op_str.empty()) return expr;
if (!expr) throw std::runtime_error("Expected expr of 'expansion' expression");
return std::make_shared<UnaryOpExpr>(get_location(), std::move(expr), op_str == "*" ? UnaryOpExpr::Op::Expansion : UnaryOpExpr::Op::ExpansionDict);
} | O3 | cpp | minja::Parser::parseExpansion():
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9e6e2(%rip), %rax # 0xe3fb0
movb (%rax), %al
testb %al, %al
je 0x45a01
leaq 0x9e6b1(%rip), %rdx # 0xe3f90
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x34de0
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x45af6
cmpq $0x0, 0x48(%rsp)
movq 0x10(%rsp), %rax
je 0x4593b
testq %rax, %rax
je 0x45a58
movq (%r14), %rax
movq %rax, 0x60(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x45950
movq 0x9d667(%rip), %rcx # 0xe2f98
cmpb $0x0, (%rcx)
je 0x4594c
incl 0x8(%rax)
jmp 0x45950
movq %rax, (%rbx)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rbx)
jmp 0x459db
lock
incl 0x8(%rax)
movq 0x20(%r14), %rax
subq 0x10(%r14), %rax
leaq 0x60(%rsp), %r14
movq %rax, 0x10(%r14)
leaq 0x70d4c(%rip), %rsi # 0xb66b4
leaq 0x40(%rsp), %rdi
callq 0x1a1a0
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
leaq 0x3c(%rsp), %r9
movl %eax, (%r9)
leaq 0x28(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x20(%rsp), %rsi
leaq 0xf(%rsp), %rdx
leaq 0x10(%rsp), %r8
movq %r14, %rcx
callq 0x5b3e0
movaps 0x20(%rsp), %xmm0
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movups %xmm0, (%rbx)
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x459cc
callq 0x348da
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x459db
callq 0x348da
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x459f6
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
retq
leaq 0x9e5a8(%rip), %rdi # 0xe3fb0
callq 0x1ad90
testl %eax, %eax
je 0x458d8
leaq 0x9e574(%rip), %rdi # 0xe3f90
leaq 0x69ff8(%rip), %rsi # 0xafa1b
movl $0x10, %edx
callq 0x3494a
leaq -0x11082(%rip), %rdi # 0x349b2
leaq 0x9e555(%rip), %rsi # 0xe3f90
leaq 0x9dd46(%rip), %rdx # 0xe3788
callq 0x1a620
leaq 0x9e562(%rip), %rdi # 0xe3fb0
callq 0x1a490
jmp 0x458d8
movl $0x10, %edi
callq 0x1a390
movq %rax, %r14
leaq 0x69fb5(%rip), %rsi # 0xafa21
movq %rax, %rdi
callq 0x1a290
movq 0x9d575(%rip), %rsi # 0xe2ff0
movq 0x9d4ee(%rip), %rdx # 0xe2f70
movq %r14, %rdi
callq 0x1acd0
movq %rax, %rbx
leaq 0x9e51c(%rip), %rdi # 0xe3fb0
callq 0x1a480
jmp 0x45aee
movq %rax, %rbx
jmp 0x45abf
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a530
jmp 0x45abf
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x45abf
callq 0x348da
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x45ad3
callq 0x348da
jmp 0x45ad3
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x45aee
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x1a740
movq %rbx, %rdi
callq 0x1ad30
| _ZN5minja6Parser14parseExpansionEv:
push r14
push rbx
sub rsp, 78h
mov r14, rsi
mov rbx, rdi
lea rax, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; `guard variable for'minja::Parser::parseExpansion(void)::expansion_tok
mov al, [rax]
test al, al
jz loc_45A01
loc_458D8:
lea rdx, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok
lea rdi, [rsp+88h+var_48]
mov rsi, r14
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rdi, [rsp+88h+var_78]; this
mov rsi, r14
call _ZN5minja6Parser20parseValueExpressionEv; minja::Parser::parseValueExpression(void)
cmp [rsp+88h+var_40], 0
mov rax, [rsp+88h+var_78]
jz short loc_4593B
test rax, rax
jz loc_45A58
mov rax, [r14]
mov [rsp+88h+var_28], rax
mov rax, [r14+8]
mov [rsp+88h+var_20], rax
test rax, rax
jz short loc_45950
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_4594C
inc dword ptr [rax+8]
jmp short loc_45950
loc_4593B:
mov [rbx], rax
mov rax, [rsp+88h+var_70]
mov [rbx+8], rax
jmp loc_459DB
loc_4594C:
lock inc dword ptr [rax+8]
loc_45950:
mov rax, [r14+20h]
sub rax, [r14+10h]
lea r14, [rsp+88h+var_28]
mov [r14+10h], rax
lea rsi, asc_B66B3+1; "*"
lea rdi, [rsp+88h+var_48]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
cmp eax, 1
mov eax, 4
sbb eax, 0
lea r9, [rsp+88h+var_4C]
mov [r9], eax
lea rdi, [rsp+88h+var_68+8]
mov qword ptr [rdi-8], 0
lea rsi, [rsp+88h+var_68]
lea rdx, [rsp+88h+var_79]
lea r8, [rsp+88h+var_78]
mov rcx, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJNS4_8LocationESt10shared_ptrINS4_10ExpressionEENS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &&)
movaps xmm0, [rsp+88h+var_68]
xor eax, eax
mov qword ptr [rsp+88h+var_68+8], rax
movups xmmword ptr [rbx], xmm0
mov qword ptr [rsp+88h+var_68], rax
mov rdi, [rsp+88h+var_20]
test rdi, rdi
jz short loc_459CC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_459CC:
mov rdi, [rsp+88h+var_70]
test rdi, rdi
jz short loc_459DB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_459DB:
lea rax, [rsp+88h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_459F6
mov rsi, [rsp+88h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_459F6:
mov rax, rbx
add rsp, 78h
pop rbx
pop r14
retn
loc_45A01:
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_458D8
lea rdi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; minja::Parser::parseExpansion(void)::expansion_tok
lea rsi, asc_AFA1B; "\\*\\*?"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_458D8
loc_45A58:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedExprOf_0; "Expected expr of 'expansion' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser14parseExpansionEvE13expansion_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_45AEE
mov rbx, rax
jmp short loc_45ABF
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_45ABF
mov rbx, rax
mov rdi, [rsp+88h+var_20]
test rdi, rdi
jz short loc_45ABF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_45ABF:
mov rdi, [rsp+88h+var_70]
test rdi, rdi
jz short loc_45AD3
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_45AD3
mov rbx, rax
loc_45AD3:
lea rax, [rsp+88h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_45AEE
mov rsi, [rsp+88h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_45AEE:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseExpansion(minja::Parser *this, long long *a2)
{
volatile signed __int32 *v2; // rax
__int128 v3; // xmm0
std::runtime_error *exception; // r14
char v6; // [rsp+Fh] [rbp-79h] BYREF
long long v7; // [rsp+10h] [rbp-78h] BYREF
volatile signed __int32 *v8; // [rsp+18h] [rbp-70h]
__int128 v9; // [rsp+20h] [rbp-68h] BYREF
int v10; // [rsp+3Ch] [rbp-4Ch]
void *v11[2]; // [rsp+40h] [rbp-48h] BYREF
long long v12; // [rsp+50h] [rbp-38h] BYREF
long long v13; // [rsp+60h] [rbp-28h] BYREF
volatile signed __int32 *v14; // [rsp+68h] [rbp-20h]
long long v15; // [rsp+70h] [rbp-18h]
if ( !(_BYTE)`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
"\\*\\*?",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)v11,
(long long)a2,
(long long)&minja::Parser::parseExpansion(void)::expansion_tok[abi:cxx11],
1u);
minja::Parser::parseValueExpression((minja::Parser *)&v7);
if ( v11[1] )
{
if ( !v7 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected expr of 'expansion' expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v13 = *a2;
v2 = (volatile signed __int32 *)a2[1];
v14 = v2;
if ( v2 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v2 + 2);
else
_InterlockedIncrement(v2 + 2);
}
v15 = a2[4] - a2[2];
v10 = 4 - ((unsigned int)std::string::compare(v11, "*") == 0);
*(_QWORD *)&v9 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(
(char *)&v9 + 8,
&v9,
&v6,
&v13,
&v7);
v3 = v9;
*((_QWORD *)&v9 + 1) = 0LL;
*(_OWORD *)this = v3;
*(_QWORD *)&v9 = 0LL;
if ( v14 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v14);
if ( v8 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8);
}
else
{
*(_QWORD *)this = v7;
*((_QWORD *)this + 1) = v8;
}
if ( v11[0] != &v12 )
operator delete(v11[0], v12 + 1);
return this;
}
| parseExpansion:
PUSH R14
PUSH RBX
SUB RSP,0x78
MOV R14,RSI
MOV RBX,RDI
LEA RAX,[0x1e3fb0]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x00145a01
LAB_001458d8:
LEA RDX,[0x1e3f90]
LEA RDI,[RSP + 0x40]
MOV RSI,R14
MOV ECX,0x1
CALL 0x00134de0
LAB_001458f1:
LEA RDI,[RSP + 0x10]
MOV RSI,R14
CALL 0x00145af6
CMP qword ptr [RSP + 0x48],0x0
MOV RAX,qword ptr [RSP + 0x10]
JZ 0x0014593b
TEST RAX,RAX
JZ 0x00145a58
MOV RAX,qword ptr [R14]
MOV qword ptr [RSP + 0x60],RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV qword ptr [RSP + 0x68],RAX
TEST RAX,RAX
JZ 0x00145950
MOV RCX,qword ptr [0x001e2f98]
CMP byte ptr [RCX],0x0
JZ 0x0014594c
INC dword ptr [RAX + 0x8]
JMP 0x00145950
LAB_0014593b:
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x8],RAX
JMP 0x001459db
LAB_0014594c:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00145950:
MOV RAX,qword ptr [R14 + 0x20]
SUB RAX,qword ptr [R14 + 0x10]
LEA R14,[RSP + 0x60]
MOV qword ptr [R14 + 0x10],RAX
LEA RSI,[0x1b66b4]
LEA RDI,[RSP + 0x40]
CALL 0x0011a1a0
CMP EAX,0x1
MOV EAX,0x4
SBB EAX,0x0
LEA R9,[RSP + 0x3c]
MOV dword ptr [R9],EAX
LEA RDI,[RSP + 0x28]
MOV qword ptr [RDI + -0x8],0x0
LAB_00145992:
LEA RSI,[RSP + 0x20]
LEA RDX,[RSP + 0xf]
LEA R8,[RSP + 0x10]
MOV RCX,R14
CALL 0x0015b3e0
MOVAPS XMM0,xmmword ptr [RSP + 0x20]
XOR EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x001459cc
CALL 0x001348da
LAB_001459cc:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x001459db
CALL 0x001348da
LAB_001459db:
LEA RAX,[RSP + 0x50]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001459f6
MOV RSI,qword ptr [RSP + 0x50]
INC RSI
CALL 0x0011a740
LAB_001459f6:
MOV RAX,RBX
ADD RSP,0x78
POP RBX
POP R14
RET
LAB_00145a01:
LEA RDI,[0x1e3fb0]
CALL 0x0011ad90
TEST EAX,EAX
JZ 0x001458d8
LAB_00145a15:
LEA RDI,[0x1e3f90]
LEA RSI,[0x1afa1b]
MOV EDX,0x10
CALL 0x0013494a
LAB_00145a2d:
LEA RDI,[0x1349b2]
LEA RSI,[0x1e3f90]
LEA RDX,[0x1e3788]
CALL 0x0011a620
LEA RDI,[0x1e3fb0]
CALL 0x0011a490
JMP 0x001458d8
LAB_00145a58:
MOV EDI,0x10
CALL 0x0011a390
MOV R14,RAX
LAB_00145a65:
LEA RSI,[0x1afa21]
MOV RDI,RAX
CALL 0x0011a290
LAB_00145a74:
MOV RSI,qword ptr [0x001e2ff0]
MOV RDX,qword ptr [0x001e2f70]
MOV RDI,R14
CALL 0x0011acd0
|
/* minja::Parser::parseExpansion() */
void minja::Parser::parseExpansion(void)
{
long lVar1;
int iVar2;
runtime_error *this;
int8 *in_RSI;
long *in_RDI;
int1 local_79;
long local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
long alStack_60 [2];
int local_4c;
long *local_48;
long local_40;
long local_38 [2];
int8 local_28;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_20;
long local_18;
if (parseExpansion()::expansion_tok_abi_cxx11_ == '\0') {
iVar2 = __cxa_guard_acquire(&parseExpansion()::expansion_tok_abi_cxx11_);
if (iVar2 != 0) {
/* try { // try from 00145a15 to 00145a2c has its CatchHandler @ 00145a8a */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseExpansion()::expansion_tok_abi_cxx11_,"\\*\\*?",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseExpansion()::expansion_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseExpansion()::expansion_tok_abi_cxx11_);
}
}
consumeToken(&local_48);
/* try { // try from 001458f1 to 001458fd has its CatchHandler @ 00145ad0 */
parseValueExpression();
if (local_40 == 0) {
*in_RDI = local_78;
in_RDI[1] = (long)local_70;
}
else {
if (local_78 == 0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00145a65 to 00145a73 has its CatchHandler @ 00145aa0 */
std::runtime_error::runtime_error(this,"Expected expr of \'expansion\' expression");
/* try { // try from 00145a74 to 00145a89 has its CatchHandler @ 00145a9b */
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_001e2ff0,PTR__runtime_error_001e2f70);
}
local_28 = *in_RSI;
local_20 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1];
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_001e2f98 == '\0') {
LOCK();
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_20 + 8) = *(int *)(local_20 + 8) + 1;
}
}
local_18 = in_RSI[4] - in_RSI[2];
iVar2 = std::__cxx11::string::compare((char *)&local_48);
local_4c = 4 - (uint)(iVar2 == 0);
local_68 = 0;
/* try { // try from 00145992 to 001459a8 has its CatchHandler @ 00145aad */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)alStack_60,&local_68,&local_79,
&local_28,&local_78);
lVar1 = alStack_60[0];
alStack_60[0] = 0;
*in_RDI = local_68;
in_RDI[1] = lVar1;
local_68 = 0;
if (local_20 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_20);
}
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
}
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
| |
52,212 | ps_fetch_int64 | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_int64(MYSQL_BIND *r_param, const MYSQL_FIELD * const field,
unsigned char **row)
{
switch(r_param->buffer_type)
{
/* case MYSQL_TYPE_TINY:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 1);
break;
case MYSQL_TYPE_YEAR:
case MYSQL_TYPE_SHORT:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 2);
break;
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_LONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 4);
break; */
case MYSQL_TYPE_LONGLONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 8);
break;
default:
{
longlong sval= (longlong)sint8korr(*row);
longlong lval= field->flags & UNSIGNED_FLAG ? (longlong)(ulonglong) sval : (longlong)sval;
convert_from_long(r_param, field, lval, field->flags & UNSIGNED_FLAG);
(*row) += 8;
}
break;
}
} | O0 | c | ps_fetch_int64:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x60(%rax), %eax
subl $0x8, %eax
jne 0x4977d
jmp 0x49762
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl $0x8, %ecx
callq 0x48310
jmp 0x49856
movq -0x18(%rbp), %rax
movq (%rax), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
addl %ecx, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x3(%rcx), %ecx
shll $0x18, %ecx
addl %ecx, %eax
movl %eax, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movzbl 0x4(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x5(%rdx), %edx
shll $0x8, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x6(%rdx), %edx
shll $0x10, %edx
addl %edx, %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movzbl 0x7(%rdx), %edx
shll $0x18, %edx
addl %edx, %ecx
movl %ecx, %ecx
shlq $0x20, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x4981a
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x49822
movq -0x20(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x10(%rbp), %rax
movl 0x64(%rax), %eax
andl $0x20, %eax
movsbl %al, %ecx
callq 0x4a020
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x8, %rcx
movq %rcx, (%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| ps_fetch_int64:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov eax, [rax+60h]
sub eax, 8
jnz short loc_4977D
jmp short $+2
loc_49762:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov ecx, 8
call ps_fetch_from_1_to_8_bytes
jmp loc_49856
loc_4977D:
mov rax, [rbp+var_18]
mov rax, [rax]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
add eax, ecx
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+3]
shl ecx, 18h
add eax, ecx
mov eax, eax
mov rcx, [rbp+var_18]
mov rcx, [rcx]
movzx ecx, byte ptr [rcx+4]
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+5]
shl edx, 8
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+6]
shl edx, 10h
add ecx, edx
mov rdx, [rbp+var_18]
mov rdx, [rdx]
movzx edx, byte ptr [rdx+7]
shl edx, 18h
add ecx, edx
mov ecx, ecx
shl rcx, 20h
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov eax, [rax+64h]
and eax, 20h
cmp eax, 0
jz short loc_4981A
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
jmp short loc_49822
loc_4981A:
mov rax, [rbp+var_20]
mov [rbp+var_30], rax
loc_49822:
mov rax, [rbp+var_30]
mov [rbp+var_28], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_28]
mov rax, [rbp+var_10]
mov eax, [rax+64h]
and eax, 20h
movsx ecx, al
call convert_from_long
mov rax, [rbp+var_18]
mov rcx, [rax]
add rcx, 8
mov [rax], rcx
loc_49856:
add rsp, 30h
pop rbp
retn
| _BYTE ** ps_fetch_int64(long long a1, long long a2, _BYTE **a3)
{
_BYTE **result; // rax
if ( *(_DWORD *)(a1 + 96) == 8 )
return ps_fetch_from_1_to_8_bytes(a1, a2, a3, 8u);
convert_from_long(
a1,
a2,
((unsigned long long)(((unsigned __int8)(*a3)[7] << 24)
+ ((unsigned __int8)(*a3)[6] << 16)
+ ((unsigned __int8)(*a3)[5] << 8)
+ (unsigned int)(unsigned __int8)(*a3)[4]) << 32)
+ ((unsigned __int8)(*a3)[3] << 24)
+ ((unsigned __int8)(*a3)[2] << 16)
+ ((unsigned __int8)(*a3)[1] << 8)
+ (unsigned int)(unsigned __int8)**a3,
*(_BYTE *)(a2 + 100) & 0x20);
result = a3;
*a3 += 8;
return result;
}
| ps_fetch_int64:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX + 0x60]
SUB EAX,0x8
JNZ 0x0014977d
JMP 0x00149762
LAB_00149762:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,0x8
CALL 0x00148310
JMP 0x00149856
LAB_0014977d:
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
ADD EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x3]
SHL ECX,0x18
ADD EAX,ECX
MOV EAX,EAX
MOV RCX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RCX]
MOVZX ECX,byte ptr [RCX + 0x4]
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x5]
SHL EDX,0x8
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x6]
SHL EDX,0x10
ADD ECX,EDX
MOV RDX,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RDX]
MOVZX EDX,byte ptr [RDX + 0x7]
SHL EDX,0x18
ADD ECX,EDX
MOV ECX,ECX
SHL RCX,0x20
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x64]
AND EAX,0x20
CMP EAX,0x0
JZ 0x0014981a
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00149822
LAB_0014981a:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x30],RAX
LAB_00149822:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x64]
AND EAX,0x20
MOVSX ECX,AL
CALL 0x0014a020
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
ADD RCX,0x8
MOV qword ptr [RAX],RCX
LAB_00149856:
ADD RSP,0x30
POP RBP
RET
|
void ps_fetch_int64(long param_1,long param_2,long *param_3)
{
if (*(int *)(param_1 + 0x60) == 8) {
ps_fetch_from_1_to_8_bytes(param_1,param_2,param_3,8);
}
else {
convert_from_long(param_1,param_2,
CONCAT44((uint)*(byte *)(*param_3 + 4) + (uint)*(byte *)(*param_3 + 5) * 0x100
+ (uint)*(byte *)(*param_3 + 6) * 0x10000 +
(uint)*(byte *)(*param_3 + 7) * 0x1000000,
(uint)*(byte *)*param_3 + (uint)*(byte *)(*param_3 + 1) * 0x100 +
(uint)*(byte *)(*param_3 + 2) * 0x10000 +
(uint)*(byte *)(*param_3 + 3) * 0x1000000),
(byte)*(int4 *)(param_2 + 100) & 0x20);
*param_3 = *param_3 + 8;
}
return;
}
| |
52,213 | mbedtls_md5_ret | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/md5.c | int mbedtls_md5_ret(const unsigned char *input,
size_t ilen,
unsigned char output[16])
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_md5_context ctx;
mbedtls_md5_init(&ctx);
if ((ret = mbedtls_md5_starts_ret(&ctx)) != 0) {
goto exit;
}
if ((ret = mbedtls_md5_update_ret(&ctx, input, ilen)) != 0) {
goto exit;
}
if ((ret = mbedtls_md5_finish_ret(&ctx, output)) != 0) {
goto exit;
}
exit:
mbedtls_md5_free(&ctx);
return ret;
} | O3 | c | mbedtls_md5_ret:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movq %rdx, %rbx
movq %rsi, %rdx
movq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movq $0x0, 0x50(%r14)
movaps 0x24ded(%rip), %xmm0 # 0xb03f0
movups %xmm0, 0x8(%r14)
movq %r14, %rdi
callq 0x8b3f6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8b4ae
movl $0x58, %esi
movq %r14, %rdi
callq 0x8db8c
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
retq
| mbedtls_md5_ret:
push r14
push rbx
sub rsp, 58h
mov rbx, rdx
mov rdx, rsi
mov rsi, rdi
xorps xmm0, xmm0
mov r14, rsp
movaps xmmword ptr [r14+10h], xmm0
movaps xmmword ptr [r14], xmm0
movaps xmmword ptr [r14+40h], xmm0
movaps xmmword ptr [r14+30h], xmm0
movaps xmmword ptr [r14+20h], xmm0
mov qword ptr [r14+50h], 0
movaps xmm0, cs:xmmword_B03F0
movups xmmword ptr [r14+8], xmm0
mov rdi, r14
call mbedtls_md5_update_ret
mov rdi, r14
mov rsi, rbx
call mbedtls_md5_finish_ret
mov esi, 58h ; 'X'
mov rdi, r14
call mbedtls_platform_zeroize
xor eax, eax
add rsp, 58h
pop rbx
pop r14
retn
| long long mbedtls_md5_ret(int *a1, unsigned long long a2, _BYTE *a3)
{
long long v5; // [rsp+0h] [rbp-68h] BYREF
_OWORD v6[6]; // [rsp+8h] [rbp-60h] BYREF
memset((char *)v6 + 8, 0, 72);
v5 = 0LL;
v6[0] = xmmword_B03F0;
mbedtls_md5_update_ret((int *)&v5, a1, a2);
mbedtls_md5_finish_ret((unsigned int *)&v5, a3);
mbedtls_platform_zeroize(&v5, 88LL);
return 0LL;
}
| mbedtls_md5_ret:
PUSH R14
PUSH RBX
SUB RSP,0x58
MOV RBX,RDX
MOV RDX,RSI
MOV RSI,RDI
XORPS XMM0,XMM0
MOV R14,RSP
MOVAPS xmmword ptr [R14 + 0x10],XMM0
MOVAPS xmmword ptr [R14],XMM0
MOVAPS xmmword ptr [R14 + 0x40],XMM0
MOVAPS xmmword ptr [R14 + 0x30],XMM0
MOVAPS xmmword ptr [R14 + 0x20],XMM0
MOV qword ptr [R14 + 0x50],0x0
MOVAPS XMM0,xmmword ptr [0x001b03f0]
MOVUPS xmmword ptr [R14 + 0x8],XMM0
MOV RDI,R14
CALL 0x0018b3f6
MOV RDI,R14
MOV RSI,RBX
CALL 0x0018b4ae
MOV ESI,0x58
MOV RDI,R14
CALL 0x0018db8c
XOR EAX,EAX
ADD RSP,0x58
POP RBX
POP R14
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
int8 mbedtls_md5_ret(int8 param_1,int8 param_2,int8 param_3)
{
int8 local_68;
int4 uStack_60;
int4 uStack_5c;
int4 local_58;
int4 uStack_54;
int8 uStack_50;
int8 local_48;
int8 uStack_40;
int8 local_38;
int8 uStack_30;
int8 local_28;
int8 uStack_20;
int8 local_18;
uStack_50 = 0;
local_68 = 0;
local_28 = 0;
uStack_20 = 0;
local_38 = 0;
uStack_30 = 0;
local_48 = 0;
uStack_40 = 0;
local_18 = 0;
_uStack_60 = CONCAT44(_UNK_001b03f4,_DAT_001b03f0);
_local_58 = CONCAT44(_UNK_001b03fc,_UNK_001b03f8);
mbedtls_md5_update_ret(&local_68,param_1,param_2);
mbedtls_md5_finish_ret(&local_68,param_3);
mbedtls_platform_zeroize(&local_68,0x58);
return 0;
}
| |
52,214 | maria_extra_keyflag | eloqsql/storage/maria/ma_extra.c | static void maria_extra_keyflag(MARIA_HA *info,
enum ha_extra_function function)
{
uint idx;
for (idx= 0; idx< info->s->base.keys; idx++)
{
switch (function) {
case HA_EXTRA_CHANGE_KEY_TO_UNIQUE:
info->s->keyinfo[idx].flag|= HA_NOSAME;
break;
case HA_EXTRA_CHANGE_KEY_TO_DUP:
info->s->keyinfo[idx].flag&= ~(HA_NOSAME);
break;
default:
break;
}
}
} | O0 | c | maria_extra_keyflag:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
cmpl 0x3e8(%rcx), %eax
jae 0x387bd
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
subl $0x1e, %eax
je 0x3874f
jmp 0x38745
movl -0x14(%rbp), %eax
subl $0x1f, %eax
je 0x3877d
jmp 0x387ab
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
orl $0x1, %ecx
movw %cx, 0xa2(%rax)
jmp 0x387ad
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x570(%rax), %rax
movl -0x10(%rbp), %ecx
imulq $0x118, %rcx, %rcx # imm = 0x118
addq %rcx, %rax
movzwl 0xa2(%rax), %ecx
andl $-0x2, %ecx
movw %cx, 0xa2(%rax)
jmp 0x387ad
jmp 0x387ad
jmp 0x387af
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x38722
popq %rbp
retq
nop
| maria_extra_keyflag:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], 0
loc_38722:
mov eax, [rbp+var_10]
mov rcx, [rbp+var_8]
mov rcx, [rcx]
cmp eax, [rcx+3E8h]
jnb loc_387BD
mov eax, [rbp+var_C]
mov [rbp+var_14], eax
sub eax, 1Eh
jz short loc_3874F
jmp short $+2
loc_38745:
mov eax, [rbp+var_14]
sub eax, 1Fh
jz short loc_3877D
jmp short loc_387AB
loc_3874F:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
or ecx, 1
mov [rax+0A2h], cx
jmp short loc_387AD
loc_3877D:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+570h]
mov ecx, [rbp+var_10]
imul rcx, 118h
add rax, rcx
movzx ecx, word ptr [rax+0A2h]
and ecx, 0FFFFFFFEh
mov [rax+0A2h], cx
jmp short loc_387AD
loc_387AB:
jmp short $+2
loc_387AD:
jmp short $+2
loc_387AF:
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp loc_38722
loc_387BD:
pop rbp
retn
| long long maria_extra_keyflag(long long a1, int a2)
{
long long result; // rax
long long v3; // rax
long long v4; // rax
unsigned int i; // [rsp+4h] [rbp-10h]
for ( i = 0; ; ++i )
{
result = i;
if ( i >= *(_DWORD *)(*(_QWORD *)a1 + 1000LL) )
break;
if ( a2 == 30 )
{
v3 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v3 + 162) |= 1u;
}
else if ( a2 == 31 )
{
v4 = 280LL * i + *(_QWORD *)(*(_QWORD *)a1 + 1392LL);
*(_WORD *)(v4 + 162) &= ~1u;
}
}
return result;
}
| maria_extra_keyflag:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],0x0
LAB_00138722:
MOV EAX,dword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX]
CMP EAX,dword ptr [RCX + 0x3e8]
JNC 0x001387bd
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x14],EAX
SUB EAX,0x1e
JZ 0x0013874f
JMP 0x00138745
LAB_00138745:
MOV EAX,dword ptr [RBP + -0x14]
SUB EAX,0x1f
JZ 0x0013877d
JMP 0x001387ab
LAB_0013874f:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
OR ECX,0x1
MOV word ptr [RAX + 0xa2],CX
JMP 0x001387ad
LAB_0013877d:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x570]
MOV ECX,dword ptr [RBP + -0x10]
IMUL RCX,RCX,0x118
ADD RAX,RCX
MOVZX ECX,word ptr [RAX + 0xa2]
AND ECX,0xfffffffe
MOV word ptr [RAX + 0xa2],CX
JMP 0x001387ad
LAB_001387ab:
JMP 0x001387ad
LAB_001387ad:
JMP 0x001387af
LAB_001387af:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x00138722
LAB_001387bd:
POP RBP
RET
|
void maria_extra_keyflag(long *param_1,int param_2)
{
long lVar1;
int4 local_18;
for (local_18 = 0; local_18 < *(uint *)(*param_1 + 1000); local_18 = local_18 + 1) {
if (param_2 == 0x1e) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) | 1;
}
else if (param_2 == 0x1f) {
lVar1 = *(long *)(*param_1 + 0x570) + (ulong)local_18 * 0x118;
*(ushort *)(lVar1 + 0xa2) = *(ushort *)(lVar1 + 0xa2) & 0xfffe;
}
}
return;
}
| |
52,215 | JS_IteratorNext | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_IteratorNext(JSContext *ctx, JSValue enum_obj,
JSValue method,
int argc, JSValue *argv, BOOL *pdone)
{
JSValue obj, value, done_val;
int done;
obj = JS_IteratorNext2(ctx, enum_obj, method, argc, argv, &done);
if (JS_IsException(obj))
goto fail;
if (done != 2) {
*pdone = done;
return obj;
} else {
done_val = JS_GetProperty(ctx, obj, JS_ATOM_done);
if (JS_IsException(done_val))
goto fail;
*pdone = JS_ToBoolFree(ctx, done_val);
value = JS_UNDEFINED;
if (!*pdone) {
value = JS_GetProperty(ctx, obj, JS_ATOM_value);
}
JS_FreeValue(ctx, obj);
return value;
}
fail:
JS_FreeValue(ctx, obj);
*pdone = FALSE;
return JS_EXCEPTION;
} | O0 | c | JS_IteratorNext:
subq $0xc8, %rsp
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %rax
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xb0(%rsp)
movq %rcx, 0x98(%rsp)
movq %r8, 0xa0(%rsp)
movq %rdi, 0x90(%rsp)
movl %r9d, 0x8c(%rsp)
movq 0x90(%rsp), %rdi
movl 0x8c(%rsp), %r9d
movq 0xd0(%rsp), %r10
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
movq 0x98(%rsp), %rcx
movq 0xa0(%rsp), %r8
leaq 0x54(%rsp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x6f130
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x6ef7f
jmp 0x6f0d4
cmpl $0x2, 0x54(%rsp)
je 0x6efb6
movl 0x54(%rsp), %ecx
movq 0xd8(%rsp), %rax
movl %ecx, (%rax)
movq 0x78(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x6f113
movq 0x90(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movl $0x6a, %ecx
callq 0x29d80
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x23cc0
cmpl $0x0, %eax
je 0x6f00c
jmp 0x6f0d4
movq 0x90(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x2e330
movl %eax, %ecx
movq 0xd8(%rsp), %rax
movl %ecx, (%rax)
movl $0x0, 0x20(%rsp)
movq $0x3, 0x28(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0xd8(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x6f09e
movq 0x90(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movl $0x41, %ecx
callq 0x29d80
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x90(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x23c90
movq 0x68(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0xc0(%rsp)
jmp 0x6f113
movq 0x90(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x23c90
movq 0xd8(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, 0xb8(%rsp)
movq $0x6, 0xc0(%rsp)
movq 0xb8(%rsp), %rax
movq 0xc0(%rsp), %rdx
addq $0xc8, %rsp
retq
nopl (%rax,%rax)
| JS_IteratorNext:
sub rsp, 0C8h
mov rax, [rsp+0C8h+arg_8]
mov rax, [rsp+0C8h+arg_0]
mov [rsp+0C8h+var_20], rsi
mov [rsp+0C8h+var_18], rdx
mov [rsp+0C8h+var_30], rcx
mov [rsp+0C8h+var_28], r8
mov [rsp+0C8h+var_38], rdi
mov [rsp+0C8h+var_3C], r9d
mov rdi, [rsp+0C8h+var_38]
mov r9d, [rsp+0C8h+var_3C]
mov r10, [rsp+0C8h+arg_0]
mov rsi, [rsp+0C8h+var_20]
mov rdx, [rsp+0C8h+var_18]
mov rcx, [rsp+0C8h+var_30]
mov r8, [rsp+0C8h+var_28]
lea rax, [rsp+0C8h+var_74]
mov [rsp+0C8h+var_C8], r10
mov [rsp+0C8h+var_C0], rax
call JS_IteratorNext2
mov [rsp+0C8h+var_88], rax
mov [rsp+0C8h+var_80], rdx
mov rax, [rsp+0C8h+var_88]
mov [rsp+0C8h+var_50], rax
mov rax, [rsp+0C8h+var_80]
mov [rsp+0C8h+var_48], rax
mov rdi, [rsp+0C8h+var_50]
mov rsi, [rsp+0C8h+var_48]
call JS_IsException_1
cmp eax, 0
jz short loc_6EF7F
jmp loc_6F0D4
loc_6EF7F:
cmp [rsp+0C8h+var_74], 2
jz short loc_6EFB6
mov ecx, [rsp+0C8h+var_74]
mov rax, [rsp+0C8h+arg_8]
mov [rax], ecx
mov rax, [rsp+0C8h+var_50]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_48]
mov [rsp+0C8h+var_8], rax
jmp loc_6F113
loc_6EFB6:
mov rdi, [rsp+0C8h+var_38]
mov rsi, [rsp+0C8h+var_50]
mov rdx, [rsp+0C8h+var_48]
mov ecx, 6Ah ; 'j'
call JS_GetProperty
mov [rsp+0C8h+var_98], rax
mov [rsp+0C8h+var_90], rdx
mov rax, [rsp+0C8h+var_98]
mov [rsp+0C8h+var_70], rax
mov rax, [rsp+0C8h+var_90]
mov [rsp+0C8h+var_68], rax
mov rdi, [rsp+0C8h+var_70]
mov rsi, [rsp+0C8h+var_68]
call JS_IsException_1
cmp eax, 0
jz short loc_6F00C
jmp loc_6F0D4
loc_6F00C:
mov rdi, [rsp+0C8h+var_38]
mov rsi, [rsp+0C8h+var_70]
mov rdx, [rsp+0C8h+var_68]
call JS_ToBoolFree
mov ecx, eax
mov rax, [rsp+0C8h+arg_8]
mov [rax], ecx
mov dword ptr [rsp+0C8h+var_A8], 0
mov [rsp+0C8h+var_A0], 3
mov rax, [rsp+0C8h+var_A8]
mov [rsp+0C8h+var_60], rax
mov rax, [rsp+0C8h+var_A0]
mov [rsp+0C8h+var_58], rax
mov rax, [rsp+0C8h+arg_8]
cmp dword ptr [rax], 0
jnz short loc_6F09E
mov rdi, [rsp+0C8h+var_38]
mov rsi, [rsp+0C8h+var_50]
mov rdx, [rsp+0C8h+var_48]
mov ecx, 41h ; 'A'
call JS_GetProperty
mov [rsp+0C8h+var_B8], rax
mov [rsp+0C8h+var_B0], rdx
mov rax, [rsp+0C8h+var_B8]
mov [rsp+0C8h+var_60], rax
mov rax, [rsp+0C8h+var_B0]
mov [rsp+0C8h+var_58], rax
loc_6F09E:
mov rdi, [rsp+0C8h+var_38]
mov rsi, [rsp+0C8h+var_50]
mov rdx, [rsp+0C8h+var_48]
call JS_FreeValue
mov rax, [rsp+0C8h+var_60]
mov [rsp+0C8h+var_10], rax
mov rax, [rsp+0C8h+var_58]
mov [rsp+0C8h+var_8], rax
jmp short loc_6F113
loc_6F0D4:
mov rdi, [rsp+0C8h+var_38]
mov rsi, [rsp+0C8h+var_50]
mov rdx, [rsp+0C8h+var_48]
call JS_FreeValue
mov rax, [rsp+0C8h+arg_8]
mov dword ptr [rax], 0
mov dword ptr [rsp+0C8h+var_10], 0
mov [rsp+0C8h+var_8], 6
loc_6F113:
mov rax, [rsp+0C8h+var_10]
mov rdx, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
| long long JS_IteratorNext(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
int a6,
long long a7,
_DWORD *a8)
{
long long v8; // rdx
long long v9; // rdx
long long v10; // rdx
long long v12; // [rsp+20h] [rbp-A8h]
int v13; // [rsp+54h] [rbp-74h] BYREF
long long Property; // [rsp+58h] [rbp-70h]
long long v15; // [rsp+60h] [rbp-68h]
long long v16; // [rsp+68h] [rbp-60h]
long long v17; // [rsp+70h] [rbp-58h]
long long v18; // [rsp+78h] [rbp-50h]
long long v19; // [rsp+80h] [rbp-48h]
int v20; // [rsp+8Ch] [rbp-3Ch]
long long v21; // [rsp+90h] [rbp-38h]
long long v22; // [rsp+98h] [rbp-30h]
long long v23; // [rsp+A0h] [rbp-28h]
long long v24; // [rsp+A8h] [rbp-20h]
long long v25; // [rsp+B0h] [rbp-18h]
long long v26; // [rsp+B8h] [rbp-10h]
long long v27; // [rsp+C0h] [rbp-8h]
v24 = a2;
v25 = a3;
v22 = a4;
v23 = a5;
v21 = a1;
v20 = a6;
v18 = JS_IteratorNext2(a1, a2, a3, a4, a5, a6, a7, (long long)&v13);
v19 = v8;
if ( JS_IsException_1(v18, v8) )
goto LABEL_8;
if ( v13 != 2 )
{
*a8 = v13;
v26 = v18;
v27 = v19;
return v26;
}
Property = JS_GetProperty(v21, v18, v19, 106);
v15 = v9;
if ( JS_IsException_1(Property, v9) )
{
LABEL_8:
JS_FreeValue(v21, v18, v19);
*a8 = 0;
LODWORD(v26) = 0;
v27 = 6LL;
return v26;
}
*a8 = JS_ToBoolFree(v21, Property, v15);
LODWORD(v12) = 0;
v16 = v12;
v17 = 3LL;
if ( !*a8 )
{
v16 = JS_GetProperty(v21, v18, v19, 65);
v17 = v10;
}
JS_FreeValue(v21, v18, v19);
v26 = v16;
v27 = v17;
return v26;
}
| JS_IteratorNext:
SUB RSP,0xc8
MOV RAX,qword ptr [RSP + 0xd8]
MOV RAX,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xb0],RDX
MOV qword ptr [RSP + 0x98],RCX
MOV qword ptr [RSP + 0xa0],R8
MOV qword ptr [RSP + 0x90],RDI
MOV dword ptr [RSP + 0x8c],R9D
MOV RDI,qword ptr [RSP + 0x90]
MOV R9D,dword ptr [RSP + 0x8c]
MOV R10,qword ptr [RSP + 0xd0]
MOV RSI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0xb0]
MOV RCX,qword ptr [RSP + 0x98]
MOV R8,qword ptr [RSP + 0xa0]
LEA RAX,[RSP + 0x54]
MOV qword ptr [RSP],R10
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0016f130
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x78],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x80],RAX
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RSP + 0x80]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0016ef7f
JMP 0x0016f0d4
LAB_0016ef7f:
CMP dword ptr [RSP + 0x54],0x2
JZ 0x0016efb6
MOV ECX,dword ptr [RSP + 0x54]
MOV RAX,qword ptr [RSP + 0xd8]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x0016f113
LAB_0016efb6:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
MOV ECX,0x6a
CALL 0x00129d80
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x60],RAX
MOV RDI,qword ptr [RSP + 0x58]
MOV RSI,qword ptr [RSP + 0x60]
CALL 0x00123cc0
CMP EAX,0x0
JZ 0x0016f00c
JMP 0x0016f0d4
LAB_0016f00c:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x0012e330
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0xd8]
MOV dword ptr [RAX],ECX
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x3
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0xd8]
CMP dword ptr [RAX],0x0
JNZ 0x0016f09e
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
MOV ECX,0x41
CALL 0x00129d80
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x70],RAX
LAB_0016f09e:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0xb8],RAX
MOV RAX,qword ptr [RSP + 0x70]
MOV qword ptr [RSP + 0xc0],RAX
JMP 0x0016f113
LAB_0016f0d4:
MOV RDI,qword ptr [RSP + 0x90]
MOV RSI,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
CALL 0x00123c90
MOV RAX,qword ptr [RSP + 0xd8]
MOV dword ptr [RAX],0x0
MOV dword ptr [RSP + 0xb8],0x0
MOV qword ptr [RSP + 0xc0],0x6
LAB_0016f113:
MOV RAX,qword ptr [RSP + 0xb8]
MOV RDX,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
int1 [16]
JS_IteratorNext(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int4 param_6,int8 param_7,int *param_8)
{
int1 auVar1 [16];
int iVar2;
int1 auVar3 [16];
uint uStack_a4;
int local_74;
int1 local_70 [16];
int1 local_60 [16];
int1 local_50 [16];
int4 local_3c;
int8 local_38;
int8 local_30;
int8 local_28;
int8 local_20;
int8 local_18;
int4 local_10;
int4 uStack_c;
int8 local_8;
local_3c = param_6;
local_38 = param_1;
local_30 = param_4;
local_28 = param_5;
local_20 = param_2;
local_18 = param_3;
local_50 = JS_IteratorNext2(param_1,param_2,param_3,param_4,param_5,param_6,param_7,&local_74);
iVar2 = JS_IsException(local_50._0_8_,local_50._8_8_);
if (iVar2 == 0) {
if (local_74 != 2) {
*param_8 = local_74;
local_10 = local_50._0_4_;
uStack_c = local_50._4_4_;
local_8 = local_50._8_8_;
goto LAB_0016f113;
}
local_70 = JS_GetProperty(local_38,local_50._0_8_,local_50._8_8_,0x6a);
iVar2 = JS_IsException(local_70._0_8_,local_70._8_8_);
if (iVar2 == 0) {
iVar2 = JS_ToBoolFree(local_38,local_70._0_8_,local_70._8_8_);
*param_8 = iVar2;
local_60._0_8_ = (ulong)uStack_a4 << 0x20;
local_60._8_8_ = 3;
auVar3._8_8_ = 3;
auVar3._0_8_ = local_60._0_8_;
if (*param_8 == 0) {
auVar3 = JS_GetProperty(local_38,local_50._0_8_,local_50._8_8_,0x41);
}
local_60 = auVar3;
JS_FreeValue(local_38,local_50._0_8_,local_50._8_8_);
local_10 = local_60._0_4_;
uStack_c = local_60._4_4_;
local_8 = local_60._8_8_;
goto LAB_0016f113;
}
}
JS_FreeValue(local_38,local_50._0_8_,local_50._8_8_);
*param_8 = 0;
local_10 = 0;
local_8 = 6;
LAB_0016f113:
auVar1._4_4_ = uStack_c;
auVar1._0_4_ = local_10;
auVar1._8_8_ = local_8;
return auVar1;
}
| |
52,216 | JS_IteratorNext | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_IteratorNext(JSContext *ctx, JSValue enum_obj,
JSValue method,
int argc, JSValue *argv, BOOL *pdone)
{
JSValue obj, value, done_val;
int done;
obj = JS_IteratorNext2(ctx, enum_obj, method, argc, argv, &done);
if (JS_IsException(obj))
goto fail;
if (done != 2) {
*pdone = done;
return obj;
} else {
done_val = JS_GetProperty(ctx, obj, JS_ATOM_done);
if (JS_IsException(done_val))
goto fail;
*pdone = JS_ToBoolFree(ctx, done_val);
value = JS_UNDEFINED;
if (!*pdone) {
value = JS_GetProperty(ctx, obj, JS_ATOM_value);
}
JS_FreeValue(ctx, obj);
return value;
}
fail:
JS_FreeValue(ctx, obj);
*pdone = FALSE;
return JS_EXCEPTION;
} | O1 | c | JS_IteratorNext:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x48(%rsp), %r12
leaq 0x4(%rsp), %rax
pushq %rax
pushq 0x48(%rsp)
callq 0x41c19
addq $0x10, %rsp
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x41b53
movq 0x18(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movl $0x0, (%r12)
movl $0x6, %ebx
xorl %r14d, %r14d
xorl %ebp, %ebp
jmp 0x41c01
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
jne 0x41ba2
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x6a, %ecx
movq %r14, %r8
movq %rbx, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
cmpl $0x6, %edx
je 0x41b2d
movq %r15, %rdi
movq %rax, %rsi
callq 0x22d0d
movl %eax, (%r12)
testl %eax, %eax
je 0x41bb8
movl $0x3, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0x41bec
movl %eax, (%r12)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rbp
andq %rax, %rbp
jmp 0x41c01
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x41, %ecx
movq %r14, %r8
movq %rbx, %r9
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
movq %rax, %r13
movq %rdx, %r12
movabsq $-0x100000000, %rbp # imm = 0xFFFFFFFF00000000
andq %rax, %rbp
movq 0x18(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1d8c6
movq %r13, %r14
movq %r12, %rbx
movl %r14d, %eax
orq %rbp, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_IteratorNext:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdi
mov r12, [rsp+38h+arg_8]
lea rax, [rsp+38h+var_34]
push rax
push [rsp+40h+arg_0]
call JS_IteratorNext2
add rsp, 10h
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_41B53
loc_41B2D:
mov rdi, [r15+18h]
mov rsi, r14
mov rdx, rbx
call JS_FreeValueRT
mov dword ptr [r12], 0
mov ebx, 6
xor r14d, r14d
xor ebp, ebp
jmp loc_41C01
loc_41B53:
mov eax, [rsp+38h+var_34]
cmp eax, 2
jnz short loc_41BA2
mov rdi, r15
mov rsi, r14
mov rdx, rbx
mov ecx, 6Ah ; 'j'
mov r8, r14
mov r9, rbx
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
cmp edx, 6
jz short loc_41B2D
mov rdi, r15
mov rsi, rax
call JS_ToBoolFree
mov [r12], eax
test eax, eax
jz short loc_41BB8
mov r12d, 3
xor r13d, r13d
xor ebp, ebp
jmp short loc_41BEC
loc_41BA2:
mov [r12], eax
mov rax, 0FFFFFFFF00000000h
mov rbp, r14
and rbp, rax
jmp short loc_41C01
loc_41BB8:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
mov ecx, 41h ; 'A'
mov r8, r14
mov r9, rbx
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r13, rax
mov r12, rdx
mov rbp, 0FFFFFFFF00000000h
and rbp, rax
loc_41BEC:
mov rdi, [r15+18h]
mov rsi, r14
mov rdx, rbx
call JS_FreeValueRT
mov r14, r13
mov rbx, r12
loc_41C01:
mov eax, r14d
or rax, rbp
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long JS_IteratorNext(long long a1, int a2, int a3, int a4, int a5, int a6, long long a7, _DWORD *a8)
{
long long v8; // rax
long long v9; // rdx
long long v10; // r14
long long v11; // rbx
unsigned long long v12; // rbp
unsigned long long PropertyInternal2; // rax
long long v14; // rdx
int v15; // eax
unsigned long long v16; // r13
_DWORD v18[13]; // [rsp+0h] [rbp-34h] BYREF
v18[0] = HIDWORD(v8);
v10 = JS_IteratorNext2(a1, a2, a3, a4, a5, a6, a7, (long long)v18);
v11 = v9;
if ( (_DWORD)v9 == 6 )
goto LABEL_2;
if ( v18[0] != 2 )
{
*a8 = v18[0];
v12 = v10 & 0xFFFFFFFF00000000LL;
return v12 | (unsigned int)v10;
}
PropertyInternal2 = JS_GetPropertyInternal2(a1, v10, v9, 0x6Au, v10, v9, 0LL, 0);
if ( (_DWORD)v14 == 6 )
{
LABEL_2:
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v10, v11);
*a8 = 0;
LODWORD(v10) = 0;
v12 = 0LL;
}
else
{
v15 = JS_ToBoolFree(a1, PropertyInternal2, v14);
*a8 = v15;
if ( v15 )
{
LODWORD(v16) = 0;
v12 = 0LL;
}
else
{
v16 = JS_GetPropertyInternal2(a1, v10, v11, 0x41u, v10, v11, 0LL, 0);
v12 = v16 & 0xFFFFFFFF00000000LL;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), (_DWORD *)v10, v11);
LODWORD(v10) = v16;
}
return v12 | (unsigned int)v10;
}
| JS_IteratorNext:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV R12,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x4]
PUSH RAX
PUSH qword ptr [RSP + 0x48]
CALL 0x00141c19
ADD RSP,0x10
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x00141b53
LAB_00141b2d:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011d8c6
MOV dword ptr [R12],0x0
MOV EBX,0x6
XOR R14D,R14D
XOR EBP,EBP
JMP 0x00141c01
LAB_00141b53:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,0x2
JNZ 0x00141ba2
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV ECX,0x6a
MOV R8,R14
MOV R9,RBX
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
CMP EDX,0x6
JZ 0x00141b2d
MOV RDI,R15
MOV RSI,RAX
CALL 0x00122d0d
MOV dword ptr [R12],EAX
TEST EAX,EAX
JZ 0x00141bb8
MOV R12D,0x3
XOR R13D,R13D
XOR EBP,EBP
JMP 0x00141bec
LAB_00141ba2:
MOV dword ptr [R12],EAX
MOV RAX,-0x100000000
MOV RBP,R14
AND RBP,RAX
JMP 0x00141c01
LAB_00141bb8:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
MOV ECX,0x41
MOV R8,R14
MOV R9,RBX
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
MOV R13,RAX
MOV R12,RDX
MOV RBP,-0x100000000
AND RBP,RAX
LAB_00141bec:
MOV RDI,qword ptr [R15 + 0x18]
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011d8c6
MOV R14,R13
MOV RBX,R12
LAB_00141c01:
MOV EAX,R14D
OR RAX,RBP
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] JS_IteratorNext(long param_1)
{
int iVar1;
int8 in_RAX;
ulong uVar2;
int8 uVar3;
ulong uVar4;
int1 auVar5 [12];
int1 auVar6 [16];
int1 auVar7 [16];
int *in_stack_00000010;
iVar1 = (int)((ulong)in_RAX >> 0x20);
auVar6 = JS_IteratorNext2();
uVar3 = auVar6._8_8_;
uVar2 = auVar6._0_8_;
if (auVar6._8_4_ != 6) {
if (iVar1 != 2) {
*in_stack_00000010 = iVar1;
uVar4 = uVar2 & 0xffffffff00000000;
goto LAB_00141c01;
}
auVar5 = JS_GetPropertyInternal2(param_1,uVar2,uVar3,0x6a,uVar2,uVar3,0,0);
if (auVar5._8_4_ != 6) {
iVar1 = JS_ToBoolFree(param_1,auVar5._0_8_);
*in_stack_00000010 = iVar1;
if (iVar1 == 0) {
auVar6 = JS_GetPropertyInternal2(param_1,uVar2,uVar3,0x41,uVar2,uVar3,0,0);
uVar4 = auVar6._0_8_ & 0xffffffff00000000;
}
else {
auVar6 = ZEXT816(3) << 0x40;
uVar4 = 0;
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar2,uVar3);
goto LAB_00141c01;
}
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),uVar2,uVar3);
*in_stack_00000010 = 0;
auVar6 = ZEXT816(6) << 0x40;
uVar4 = 0;
LAB_00141c01:
auVar7._0_8_ = auVar6._0_8_ & 0xffffffff | uVar4;
auVar7._8_8_ = auVar6._8_8_;
return auVar7;
}
| |
52,217 | JS_IteratorNext | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_IteratorNext(JSContext *ctx, JSValue enum_obj,
JSValue method,
int argc, JSValue *argv, BOOL *pdone)
{
JSValue obj, value, done_val;
int done;
obj = JS_IteratorNext2(ctx, enum_obj, method, argc, argv, &done);
if (JS_IsException(obj))
goto fail;
if (done != 2) {
*pdone = done;
return obj;
} else {
done_val = JS_GetProperty(ctx, obj, JS_ATOM_done);
if (JS_IsException(done_val))
goto fail;
*pdone = JS_ToBoolFree(ctx, done_val);
value = JS_UNDEFINED;
if (!*pdone) {
value = JS_GetProperty(ctx, obj, JS_ATOM_value);
}
JS_FreeValue(ctx, obj);
return value;
}
fail:
JS_FreeValue(ctx, obj);
*pdone = FALSE;
return JS_EXCEPTION;
} | O2 | c | JS_IteratorNext:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x48(%rsp), %r12
leaq 0x4(%rsp), %rax
pushq %rax
pushq 0x48(%rsp)
callq 0x399be
popq %rcx
popq %rsi
movq %rax, %r14
movq %rdx, %rbx
cmpl $0x6, %ebx
jne 0x3991b
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1801e
andl $0x0, (%r12)
pushq $0x6
popq %rbx
xorl %r14d, %r14d
xorl %ebp, %ebp
jmp 0x399a6
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
jne 0x39958
pushq $0x6a
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1b043
cmpl $0x6, %edx
je 0x398fb
movq %r15, %rdi
movq %rax, %rsi
callq 0x1cdfa
movl %eax, (%r12)
testl %eax, %eax
je 0x3996e
pushq $0x3
popq %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
jmp 0x39992
movl %eax, (%r12)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
movq %r14, %rbp
andq %rax, %rbp
jmp 0x399a6
pushq $0x41
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1b043
movq %rax, %r13
movq %rdx, %r12
movabsq $-0x100000000, %rbp # imm = 0xFFFFFFFF00000000
andq %rax, %rbp
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1801e
movq %r13, %r14
movq %r12, %rbx
movl %r14d, %eax
orq %rbp, %rax
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| JS_IteratorNext:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rdi
mov r12, [rsp+38h+arg_8]
lea rax, [rsp+38h+var_34]
push rax
push [rsp+40h+arg_0]
call JS_IteratorNext2
pop rcx
pop rsi
mov r14, rax
mov rbx, rdx
cmp ebx, 6
jnz short loc_3991B
loc_398FB:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
and dword ptr [r12], 0
push 6
pop rbx
xor r14d, r14d
xor ebp, ebp
jmp loc_399A6
loc_3991B:
mov eax, [rsp+38h+var_34]
cmp eax, 2
jnz short loc_39958
push 6Ah ; 'j'
pop rcx
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_GetProperty
cmp edx, 6
jz short loc_398FB
mov rdi, r15
mov rsi, rax
call JS_ToBoolFree
mov [r12], eax
test eax, eax
jz short loc_3996E
push 3
pop r12
xor r13d, r13d
xor ebp, ebp
jmp short loc_39992
loc_39958:
mov [r12], eax
mov rax, 0FFFFFFFF00000000h
mov rbp, r14
and rbp, rax
jmp short loc_399A6
loc_3996E:
push 41h ; 'A'
pop rcx
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_GetProperty
mov r13, rax
mov r12, rdx
mov rbp, 0FFFFFFFF00000000h
and rbp, rax
loc_39992:
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call JS_FreeValue
mov r14, r13
mov rbx, r12
loc_399A6:
mov eax, r14d
or rax, rbp
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long JS_IteratorNext(long long a1, int a2, int a3, int a4, int a5, int a6, long long a7, _DWORD *a8)
{
long long v8; // rax
long long v9; // rdx
long long v10; // r14
long long v11; // rbx
unsigned long long v12; // rbp
long long Property; // rax
long long v14; // rdx
int v15; // eax
long long v16; // r13
_DWORD v18[13]; // [rsp+0h] [rbp-34h] BYREF
v18[0] = HIDWORD(v8);
v10 = JS_IteratorNext2(a1, a2, a3, a4, a5, a6, a7, (long long)v18);
v11 = v9;
if ( (_DWORD)v9 == 6 )
goto LABEL_2;
if ( v18[0] != 2 )
{
*a8 = v18[0];
v12 = v10 & 0xFFFFFFFF00000000LL;
return v12 | (unsigned int)v10;
}
Property = JS_GetProperty(a1, v10, v9, 106);
if ( (_DWORD)v14 == 6 )
{
LABEL_2:
JS_FreeValue(a1, v10, v11);
*a8 = 0;
LODWORD(v10) = 0;
v12 = 0LL;
}
else
{
v15 = JS_ToBoolFree(a1, Property, v14);
*a8 = v15;
if ( v15 )
{
LODWORD(v16) = 0;
v12 = 0LL;
}
else
{
v16 = JS_GetProperty(a1, v10, v11, 65);
v12 = v16 & 0xFFFFFFFF00000000LL;
}
JS_FreeValue(a1, v10, v11);
LODWORD(v10) = v16;
}
return v12 | (unsigned int)v10;
}
| JS_IteratorNext:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDI
MOV R12,qword ptr [RSP + 0x48]
LEA RAX,[RSP + 0x4]
PUSH RAX
PUSH qword ptr [RSP + 0x48]
CALL 0x001399be
POP RCX
POP RSI
MOV R14,RAX
MOV RBX,RDX
CMP EBX,0x6
JNZ 0x0013991b
LAB_001398fb:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011801e
AND dword ptr [R12],0x0
PUSH 0x6
POP RBX
XOR R14D,R14D
XOR EBP,EBP
JMP 0x001399a6
LAB_0013991b:
MOV EAX,dword ptr [RSP + 0x4]
CMP EAX,0x2
JNZ 0x00139958
PUSH 0x6a
POP RCX
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011b043
CMP EDX,0x6
JZ 0x001398fb
MOV RDI,R15
MOV RSI,RAX
CALL 0x0011cdfa
MOV dword ptr [R12],EAX
TEST EAX,EAX
JZ 0x0013996e
PUSH 0x3
POP R12
XOR R13D,R13D
XOR EBP,EBP
JMP 0x00139992
LAB_00139958:
MOV dword ptr [R12],EAX
MOV RAX,-0x100000000
MOV RBP,R14
AND RBP,RAX
JMP 0x001399a6
LAB_0013996e:
PUSH 0x41
POP RCX
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011b043
MOV R13,RAX
MOV R12,RDX
MOV RBP,-0x100000000
AND RBP,RAX
LAB_00139992:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x0011801e
MOV R14,R13
MOV RBX,R12
LAB_001399a6:
MOV EAX,R14D
OR RAX,RBP
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] JS_IteratorNext(int8 param_1)
{
int iVar1;
int8 in_RAX;
ulong uVar2;
int8 uVar3;
ulong uVar4;
int1 auVar5 [16];
int1 auVar6 [16];
int1 auVar7 [12];
int *in_stack_00000010;
iVar1 = (int)((ulong)in_RAX >> 0x20);
auVar5 = JS_IteratorNext2();
uVar3 = auVar5._8_8_;
uVar2 = auVar5._0_8_;
if (auVar5._8_4_ != 6) {
if (iVar1 != 2) {
*in_stack_00000010 = iVar1;
uVar4 = uVar2 & 0xffffffff00000000;
goto LAB_001399a6;
}
auVar7 = JS_GetProperty(param_1,uVar2,uVar3,0x6a);
if (auVar7._8_4_ != 6) {
iVar1 = JS_ToBoolFree(param_1,auVar7._0_8_);
*in_stack_00000010 = iVar1;
if (iVar1 == 0) {
auVar5 = JS_GetProperty(param_1,uVar2,uVar3,0x41);
uVar4 = auVar5._0_8_ & 0xffffffff00000000;
}
else {
auVar5 = ZEXT816(3) << 0x40;
uVar4 = 0;
}
JS_FreeValue(param_1,uVar2,uVar3);
goto LAB_001399a6;
}
}
JS_FreeValue(param_1,uVar2,uVar3);
*in_stack_00000010 = 0;
auVar5 = ZEXT816(6) << 0x40;
uVar4 = 0;
LAB_001399a6:
auVar6._0_8_ = auVar5._0_8_ & 0xffffffff | uVar4;
auVar6._8_8_ = auVar5._8_8_;
return auVar6;
}
| |
52,218 | google::protobuf::(anonymous namespace)::AllowedExtendeeInProto3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | bool AllowedExtendeeInProto3(const std::string& name) {
static auto allowed_proto3_extendees =
internal::OnShutdownDelete(NewAllowedProto3Extendee());
return allowed_proto3_extendees->find(name) !=
allowed_proto3_extendees->end();
} | O0 | cpp | google::protobuf::(anonymous namespace)::AllowedExtendeeInProto3(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
cmpb $0x0, 0x221698(%rip) # 0x27d158
jne 0x5bb06
leaq 0x22168f(%rip), %rdi # 0x27d158
callq 0x13770
cmpl $0x0, %eax
je 0x5bb06
callq 0x672a0
movq %rax, 0x8(%rsp)
jmp 0x5badf
movq 0x8(%rsp), %rdi
callq 0x89580
movq %rax, (%rsp)
jmp 0x5baef
movq (%rsp), %rax
movq %rax, 0x221656(%rip) # 0x27d150
leaq 0x221657(%rip), %rdi # 0x27d158
callq 0x132e0
movq 0x221643(%rip), %rdi # 0x27d150
movq 0x30(%rsp), %rsi
callq 0x895d0
movq %rax, 0x18(%rsp)
movq 0x22162d(%rip), %rdi # 0x27d150
callq 0x89610
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x895b0
andb $0x1, %al
addq $0x38, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x221600(%rip), %rdi # 0x27d158
callq 0x132d0
movq 0x28(%rsp), %rdi
callq 0x13750
nopw (%rax,%rax)
| _ZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 38h
mov [rsp+38h+var_8], rdi
cmp cs:_ZGVZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11, 0; `guard variable for'google::protobuf::`anonymous namespace'::AllowedExtendeeInProto3(std::string const&)::allowed_proto3_extendees
jnz short loc_5BB06
lea rdi, _ZGVZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11; __guard *
call ___cxa_guard_acquire
cmp eax, 0
jz short loc_5BB06
call _ZN6google8protobuf12_GLOBAL__N_124NewAllowedProto3ExtendeeB5cxx11Ev; google::protobuf::`anonymous namespace'::NewAllowedProto3Extendee(void)
mov [rsp+38h+var_30], rax
jmp short $+2
loc_5BADF:
mov rdi, [rsp+38h+var_30]
call _ZN6google8protobuf8internal16OnShutdownDeleteISt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS9_ESaIS9_EEEEPT_SF_; google::protobuf::internal::OnShutdownDelete<std::set<std::string>>(std::set<std::string> *)
mov [rsp+38h+var_38], rax
jmp short $+2
loc_5BAEF:
mov rax, [rsp+38h+var_38]
mov cs:_ZZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11, rax; google::protobuf::`anonymous namespace'::AllowedExtendeeInProto3(std::string const&)::allowed_proto3_extendees
lea rdi, _ZGVZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11; __guard *
call ___cxa_guard_release
loc_5BB06:
mov rdi, cs:_ZZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11; google::protobuf::`anonymous namespace'::AllowedExtendeeInProto3(std::string const&)::allowed_proto3_extendees
mov rsi, [rsp+38h+var_8]
call _ZNSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE4findERKS5_; std::set<std::string>::find(std::string const&)
mov [rsp+38h+var_20], rax
mov rdi, cs:_ZZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11; google::protobuf::`anonymous namespace'::AllowedExtendeeInProto3(std::string const&)::allowed_proto3_extendees
call _ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE3endEv; std::set<std::string>::end(void)
mov [rsp+38h+var_28], rax
lea rdi, [rsp+38h+var_20]
lea rsi, [rsp+38h+var_28]
call _ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_; std::operator!=(std::_Rb_tree_const_iterator<std::string> const&,std::_Rb_tree_const_iterator<std::string> const&)
and al, 1
add rsp, 38h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_20], rcx
mov [rsp+arg_1C], eax
lea rdi, _ZGVZN6google8protobuf12_GLOBAL__N_123AllowedExtendeeInProto3ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE24allowed_proto3_extendeesB5cxx11; __guard *
call ___cxa_guard_abort
mov rdi, [rsp+arg_20]
call __Unwind_Resume
| AllowedExtendeeInProto3:
SUB RSP,0x38
MOV qword ptr [RSP + 0x30],RDI
CMP byte ptr [0x0037d158],0x0
JNZ 0x0015bb06
LEA RDI,[0x37d158]
CALL 0x00113770
CMP EAX,0x0
JZ 0x0015bb06
LAB_0015bad3:
CALL 0x001672a0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0015badf
LAB_0015badf:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00189580
LAB_0015bae9:
MOV qword ptr [RSP],RAX
JMP 0x0015baef
LAB_0015baef:
MOV RAX,qword ptr [RSP]
MOV qword ptr [0x0037d150],RAX
LEA RDI,[0x37d158]
CALL 0x001132e0
LAB_0015bb06:
MOV RDI,qword ptr [0x0037d150]
MOV RSI,qword ptr [RSP + 0x30]
CALL 0x001895d0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [0x0037d150]
CALL 0x00189610
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x18]
LEA RSI,[RSP + 0x10]
CALL 0x001895b0
AND AL,0x1
ADD RSP,0x38
RET
|
/* google::protobuf::(anonymous namespace)::AllowedExtendeeInProto3(std::__cxx11::string const&) */
ulong google::protobuf::(anonymous_namespace)::AllowedExtendeeInProto3(string *param_1)
{
int iVar1;
set *psVar2;
ulong uVar3;
int8 local_28;
int8 local_20 [3];
string *local_8;
local_8 = param_1;
if (AllowedExtendeeInProto3(std::__cxx11::string_const&)::allowed_proto3_extendees_abi_cxx11_ ==
'\0') {
iVar1 = __cxa_guard_acquire(&AllowedExtendeeInProto3(std::__cxx11::string_const&)::
allowed_proto3_extendees_abi_cxx11_);
if (iVar1 != 0) {
/* try { // try from 0015bad3 to 0015bae8 has its CatchHandler @ 0015bb43 */
psVar2 = (set *)NewAllowedProto3Extendee_abi_cxx11_();
AllowedExtendeeInProto3(std::__cxx11::string_const&)::allowed_proto3_extendees_abi_cxx11_ =
(set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
*)internal::
OnShutdownDelete<std::set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>>
(psVar2);
__cxa_guard_release(&AllowedExtendeeInProto3(std::__cxx11::string_const&)::
allowed_proto3_extendees_abi_cxx11_);
}
}
local_20[0] = std::
set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::find(AllowedExtendeeInProto3(std::__cxx11::string_const&)::
allowed_proto3_extendees_abi_cxx11_,local_8);
local_28 = std::
set<std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::__cxx11::string>>
::end(AllowedExtendeeInProto3(std::__cxx11::string_const&)::
allowed_proto3_extendees_abi_cxx11_);
uVar3 = std::operator!=((_Rb_tree_const_iterator *)local_20,(_Rb_tree_const_iterator *)&local_28);
return uVar3 & 0xffffffffffffff01;
}
| ||
52,219 | ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 8l>::compute_forward(ggml_compute_params*, ggml_tensor*) | monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp | bool compute_forward(struct ggml_compute_params * params, struct ggml_tensor * op) override {
switch (op->op) {
case GGML_OP_MUL_MAT:
forward_mul_mat(params, op);
return true;
case GGML_OP_MUL_MAT_ID:
forward_mul_mat_id(params, op);
return true;
default:
// GGML_ABORT("fatal error");
break;
}
return false;
} | O2 | cpp | ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 8l>::compute_forward(ggml_compute_params*, ggml_tensor*):
pushq %rax
movl 0x50(%rdx), %eax
cmpl $0x1b, %eax
je 0x29e93
cmpl $0x1a, %eax
jne 0x29e9c
callq 0x8ab0
jmp 0x29e98
callq 0x8b90
movb $0x1, %al
jmp 0x29e9e
xorl %eax, %eax
popq %rcx
retq
| _ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl8EE15compute_forwardEP19ggml_compute_paramsP11ggml_tensor:
push rax
mov eax, [rdx+50h]
cmp eax, 1Bh
jz short loc_29E93
cmp eax, 1Ah
jnz short loc_29E9C
call __ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl8EE15forward_mul_matEP19ggml_compute_paramsP11ggml_tensor; ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::forward_mul_mat(ggml_compute_params *,ggml_tensor *)
jmp short loc_29E98
loc_29E93:
call __ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl8EE18forward_mul_mat_idEP19ggml_compute_paramsP11ggml_tensor; ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::forward_mul_mat_id(ggml_compute_params *,ggml_tensor *)
loc_29E98:
mov al, 1
jmp short loc_29E9E
loc_29E9C:
xor eax, eax
loc_29E9E:
pop rcx
retn
| char ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::compute_forward(
long long a1,
long long a2,
long long a3)
{
int v3; // eax
v3 = *(_DWORD *)(a3 + 80);
if ( v3 == 27 )
{
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::forward_mul_mat_id(a1);
return 1;
}
if ( v3 == 26 )
{
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::forward_mul_mat(a1);
return 1;
}
return 0;
}
| compute_forward:
PUSH RAX
MOV EAX,dword ptr [RDX + 0x50]
CMP EAX,0x1b
JZ 0x00129e93
CMP EAX,0x1a
JNZ 0x00129e9c
CALL 0x00108ab0
JMP 0x00129e98
LAB_00129e93:
CALL 0x00108b90
LAB_00129e98:
MOV AL,0x1
JMP 0x00129e9e
LAB_00129e9c:
XOR EAX,EAX
LAB_00129e9e:
POP RCX
RET
|
/* ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 8l>::compute_forward(ggml_compute_params*,
ggml_tensor*) */
int8 __thiscall
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,8l>::compute_forward
(tensor_traits<block_q4_0,8l,8l> *this,ggml_compute_params *param_1,ggml_tensor *param_2)
{
if (*(int *)(param_2 + 0x50) == 0x1b) {
forward_mul_mat_id(this,param_1,param_2);
}
else {
if (*(int *)(param_2 + 0x50) != 0x1a) {
return 0;
}
forward_mul_mat(this,param_1,param_2);
}
return 1;
}
| |
52,220 | ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 8l>::compute_forward(ggml_compute_params*, ggml_tensor*) | monkey531[P]llama/ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp | bool compute_forward(struct ggml_compute_params * params, struct ggml_tensor * op) override {
switch (op->op) {
case GGML_OP_MUL_MAT:
forward_mul_mat(params, op);
return true;
case GGML_OP_MUL_MAT_ID:
forward_mul_mat_id(params, op);
return true;
default:
// GGML_ABORT("fatal error");
break;
}
return false;
} | O3 | cpp | ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 8l>::compute_forward(ggml_compute_params*, ggml_tensor*):
pushq %rax
movl 0x50(%rdx), %eax
cmpl $0x1b, %eax
je 0x2cc13
cmpl $0x1a, %eax
jne 0x2cc1c
callq 0x85c0
jmp 0x2cc18
callq 0x8830
movb $0x1, %al
jmp 0x2cc1e
xorl %eax, %eax
popq %rcx
retq
| _ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl4EE15compute_forwardEP19ggml_compute_paramsP11ggml_tensor:
push rax
mov eax, [rdx+50h]
cmp eax, 1Bh
jz short loc_2CC13
cmp eax, 1Ah
jnz short loc_2CC1C
call __ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl4EE15forward_mul_matEP19ggml_compute_paramsP11ggml_tensor; ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::forward_mul_mat(ggml_compute_params *,ggml_tensor *)
jmp short loc_2CC18
loc_2CC13:
call __ZN4ggml3cpu7aarch6413tensor_traitsI10block_q4_0Ll8ELl4EE18forward_mul_mat_idEP19ggml_compute_paramsP11ggml_tensor; ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::forward_mul_mat_id(ggml_compute_params *,ggml_tensor *)
loc_2CC18:
mov al, 1
jmp short loc_2CC1E
loc_2CC1C:
xor eax, eax
loc_2CC1E:
pop rcx
retn
| char ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::compute_forward(
long long a1,
long long a2,
long long a3)
{
int v3; // eax
v3 = *(_DWORD *)(a3 + 80);
if ( v3 == 27 )
{
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::forward_mul_mat_id(a1);
return 1;
}
if ( v3 == 26 )
{
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::forward_mul_mat(a1);
return 1;
}
return 0;
}
| compute_forward:
PUSH RAX
MOV EAX,dword ptr [RDX + 0x50]
CMP EAX,0x1b
JZ 0x0012cc13
CMP EAX,0x1a
JNZ 0x0012cc1c
CALL 0x001085c0
JMP 0x0012cc18
LAB_0012cc13:
CALL 0x00108830
LAB_0012cc18:
MOV AL,0x1
JMP 0x0012cc1e
LAB_0012cc1c:
XOR EAX,EAX
LAB_0012cc1e:
POP RCX
RET
|
/* ggml::cpu::aarch64::tensor_traits<block_q4_0, 8l, 4l>::compute_forward(ggml_compute_params*,
ggml_tensor*) */
int8 __thiscall
ggml::cpu::aarch64::tensor_traits<block_q4_0,8l,4l>::compute_forward
(tensor_traits<block_q4_0,8l,4l> *this,ggml_compute_params *param_1,ggml_tensor *param_2)
{
if (*(int *)(param_2 + 0x50) == 0x1b) {
forward_mul_mat_id(this,param_1,param_2);
}
else {
if (*(int *)(param_2 + 0x50) != 0x1a) {
return 0;
}
forward_mul_mat(this,param_1,param_2);
}
return 1;
}
| |
52,221 | my_wc_mb_utf8mb4 | eloqsql/strings/ctype-utf8.c | static int
my_wc_mb_utf8mb4(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
int count;
if (r >= e)
return MY_CS_TOOSMALL;
if (wc < 0x80)
count= 1;
else if (wc < 0x800)
count= 2;
else if (wc < 0x10000)
count= 3;
else if (wc < 0x200000)
count= 4;
else return MY_CS_ILUNI;
if (r + count > e)
return MY_CS_TOOSMALLN(count);
switch (count) {
case 4: r[3] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0x10000;
/* fall through */
case 3: r[2] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0x800;
/* fall through */
case 2: r[1] = (uchar) (0x80 | (wc & 0x3f)); wc = wc >> 6; wc |= 0xc0;
/* fall through */
case 1: r[0] = (uchar) wc;
}
return count;
} | O0 | c | my_wc_mb_utf8mb4:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x6b45a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x6b5a6
cmpq $0x80, -0x18(%rbp)
jae 0x6b46d
movl $0x1, -0x2c(%rbp)
jmp 0x6b4b8
cmpq $0x800, -0x18(%rbp) # imm = 0x800
jae 0x6b480
movl $0x2, -0x2c(%rbp)
jmp 0x6b4b6
cmpq $0x10000, -0x18(%rbp) # imm = 0x10000
jae 0x6b493
movl $0x3, -0x2c(%rbp)
jmp 0x6b4b4
cmpq $0x200000, -0x18(%rbp) # imm = 0x200000
jae 0x6b4a6
movl $0x4, -0x2c(%rbp)
jmp 0x6b4b2
movl $0x0, -0x4(%rbp)
jmp 0x6b5a6
jmp 0x6b4b4
jmp 0x6b4b6
jmp 0x6b4b8
movq -0x20(%rbp), %rax
movslq -0x2c(%rbp), %rcx
addq %rcx, %rax
cmpq -0x28(%rbp), %rax
jbe 0x6b4d9
movl $0xffffff9c, %eax # imm = 0xFFFFFF9C
subl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x6b5a6
movl -0x2c(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x38(%rbp)
subl $0x3, %eax
ja 0x6b5a0
movq -0x38(%rbp), %rax
leaq 0x14c978(%rip), %rcx # 0x1b7e70
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x3(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0x10000, %rax # imm = 0x10000
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x2(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0x800, %rax # imm = 0x800
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3f, %rax
orq $0x80, %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, 0x1(%rax)
movq -0x18(%rbp), %rax
shrq $0x6, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
orq $0xc0, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movl -0x2c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| my_wc_mb_utf8mb4:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_6B45A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_6B5A6
loc_6B45A:
cmp [rbp+var_18], 80h
jnb short loc_6B46D
mov [rbp+var_2C], 1
jmp short loc_6B4B8
loc_6B46D:
cmp [rbp+var_18], 800h
jnb short loc_6B480
mov [rbp+var_2C], 2
jmp short loc_6B4B6
loc_6B480:
cmp [rbp+var_18], offset stru_10000
jnb short loc_6B493
mov [rbp+var_2C], 3
jmp short loc_6B4B4
loc_6B493:
cmp [rbp+var_18], offset unk_200000
jnb short loc_6B4A6
mov [rbp+var_2C], 4
jmp short loc_6B4B2
loc_6B4A6:
mov [rbp+var_4], 0
jmp loc_6B5A6
loc_6B4B2:
jmp short $+2
loc_6B4B4:
jmp short $+2
loc_6B4B6:
jmp short $+2
loc_6B4B8:
mov rax, [rbp+var_20]
movsxd rcx, [rbp+var_2C]
add rax, rcx
cmp rax, [rbp+var_28]
jbe short loc_6B4D9
mov eax, 0FFFFFF9Ch
sub eax, [rbp+var_2C]
mov [rbp+var_4], eax
jmp loc_6B5A6
loc_6B4D9:
mov eax, [rbp+var_2C]
dec eax; switch 4 cases
mov ecx, eax
mov [rbp+var_38], rcx
sub eax, 3
ja def_6B4FF; jumptable 000000000006B4FF default case
mov rax, [rbp+var_38]
lea rcx, jpt_6B4FF
movsxd rax, ds:(jpt_6B4FF - 1B7E70h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_6B501:
mov rax, [rbp+var_18]; jumptable 000000000006B4FF case 4
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+3], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 10000h
mov [rbp+var_18], rax
loc_6B532:
mov rax, [rbp+var_18]; jumptable 000000000006B4FF case 3
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+2], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 800h
mov [rbp+var_18], rax
loc_6B563:
mov rax, [rbp+var_18]; jumptable 000000000006B4FF case 2
and rax, 3Fh
or rax, 80h
mov cl, al
mov rax, [rbp+var_20]
mov [rax+1], cl
mov rax, [rbp+var_18]
shr rax, 6
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
or rax, 0C0h
mov [rbp+var_18], rax
loc_6B594:
mov rax, [rbp+var_18]; jumptable 000000000006B4FF case 1
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
def_6B4FF:
mov eax, [rbp+var_2C]; jumptable 000000000006B4FF default case
mov [rbp+var_4], eax
loc_6B5A6:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_utf8mb4(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
int v5; // [rsp+Ch] [rbp-2Ch]
unsigned long long v6; // [rsp+20h] [rbp-18h]
v6 = a2;
if ( (unsigned long long)a3 < a4 )
{
if ( a2 >= 0x80 )
{
if ( a2 >= 0x800 )
{
if ( a2 >= (unsigned long long)&stru_10000 )
{
if ( a2 >= (unsigned long long)&unk_200000 )
return 0;
v5 = 4;
}
else
{
v5 = 3;
}
}
else
{
v5 = 2;
}
}
else
{
v5 = 1;
}
if ( (unsigned long long)&a3[v5] <= a4 )
{
switch ( v5 )
{
case 1:
goto LABEL_18;
case 2:
goto LABEL_17;
case 3:
goto LABEL_16;
case 4:
a3[3] = a2 & 0x3F | 0x80;
v6 = (a2 >> 6) | 0x10000;
LABEL_16:
a3[2] = v6 & 0x3F | 0x80;
v6 = (v6 >> 6) | 0x800;
LABEL_17:
a3[1] = v6 & 0x3F | 0x80;
v6 = (v6 >> 6) | 0xC0;
LABEL_18:
*a3 = v6;
break;
default:
break;
}
return (unsigned int)v5;
}
else
{
return (unsigned int)(-100 - v5);
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_utf8mb4:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x0016b45a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x0016b5a6
LAB_0016b45a:
CMP qword ptr [RBP + -0x18],0x80
JNC 0x0016b46d
MOV dword ptr [RBP + -0x2c],0x1
JMP 0x0016b4b8
LAB_0016b46d:
CMP qword ptr [RBP + -0x18],0x800
JNC 0x0016b480
MOV dword ptr [RBP + -0x2c],0x2
JMP 0x0016b4b6
LAB_0016b480:
CMP qword ptr [RBP + -0x18],0x10000
JNC 0x0016b493
MOV dword ptr [RBP + -0x2c],0x3
JMP 0x0016b4b4
LAB_0016b493:
CMP qword ptr [RBP + -0x18],0x200000
JNC 0x0016b4a6
MOV dword ptr [RBP + -0x2c],0x4
JMP 0x0016b4b2
LAB_0016b4a6:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0016b5a6
LAB_0016b4b2:
JMP 0x0016b4b4
LAB_0016b4b4:
JMP 0x0016b4b6
LAB_0016b4b6:
JMP 0x0016b4b8
LAB_0016b4b8:
MOV RAX,qword ptr [RBP + -0x20]
MOVSXD RCX,dword ptr [RBP + -0x2c]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x0016b4d9
MOV EAX,0xffffff9c
SUB EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0016b5a6
LAB_0016b4d9:
MOV EAX,dword ptr [RBP + -0x2c]
DEC EAX
MOV ECX,EAX
MOV qword ptr [RBP + -0x38],RCX
SUB EAX,0x3
JA 0x0016b5a0
MOV RAX,qword ptr [RBP + -0x38]
LEA RCX,[0x2b7e70]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_4:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x3],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0x10000
MOV qword ptr [RBP + -0x18],RAX
caseD_3:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x2],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0x800
MOV qword ptr [RBP + -0x18],RAX
caseD_2:
MOV RAX,qword ptr [RBP + -0x18]
AND RAX,0x3f
OR RAX,0x80
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0x1],CL
MOV RAX,qword ptr [RBP + -0x18]
SHR RAX,0x6
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
OR RAX,0xc0
MOV qword ptr [RBP + -0x18],RAX
caseD_1:
MOV RAX,qword ptr [RBP + -0x18]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
default:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x4],EAX
LAB_0016b5a6:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int my_wc_mb_utf8mb4(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4)
{
int local_34;
ulong local_20;
int local_c;
if (param_3 < param_4) {
if (param_2 < 0x80) {
local_34 = 1;
}
else if (param_2 < 0x800) {
local_34 = 2;
}
else if (param_2 < 0x10000) {
local_34 = 3;
}
else {
if (0x1fffff < param_2) {
return 0;
}
local_34 = 4;
}
if (param_4 < param_3 + local_34) {
local_c = -100 - local_34;
}
else {
local_20 = param_2;
switch(local_34) {
case 4:
param_3[3] = (byte)param_2 & 0x3f | 0x80;
local_20 = param_2 >> 6 | 0x10000;
case 3:
param_3[2] = (byte)local_20 & 0x3f | 0x80;
local_20 = local_20 >> 6 | 0x800;
case 2:
param_3[1] = (byte)local_20 & 0x3f | 0x80;
local_20 = local_20 >> 6 | 0xc0;
case 1:
*param_3 = (char)local_20;
default:
local_c = local_34;
}
}
}
else {
local_c = -0x65;
}
return local_c;
}
| |
52,222 | blst_p1_on_curve | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e1.c | int blst_p1_on_curve(const POINTonE1 *p)
{ return (int)POINTonE1_on_curve(p); } | O3 | c | blst_p1_on_curve:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r14
leaq 0x60(%rdi), %rbx
movl $0x30, %esi
movq %rbx, %rdi
callq 0x6e900
movq %rax, -0x30(%rbp)
leaq 0x332c0(%rip), %r15 # 0x8a910
leaq -0x60(%rbp), %r13
movabsq $-0x760c000300030003, %r12 # imm = 0x89F3FFFCFFFCFFFD
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x726e0
movq %r13, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x72e60
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x726e0
movl $0x2, %edx
movq %r13, %rdi
movq %r13, %rsi
movq %r15, %rcx
callq 0x6d900
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x726e0
movq %rbx, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x72e60
movq %rbx, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x6d600
addq $0x30, %r14
leaq -0x90(%rbp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x726e0
movl $0x30, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x6e940
orl -0x30(%rbp), %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| blst_p1_on_curve:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r14, rdi
lea rbx, [rdi+60h]
mov esi, 30h ; '0'
mov rdi, rbx
call vec_is_zero_16x
mov [rbp+var_30], rax
lea r15, BLS12_381_P
lea r13, [rbp+var_60]
mov r12, 89F3FFFCFFFCFFFDh
mov rdi, r13
mov rsi, rbx
mov rdx, r15
mov rcx, r12
call sqr_mont_384
mov rdi, r13
mov rsi, r13
mov rdx, rbx
mov rcx, r15
mov r8, r12
call mul_mont_384
mov rdi, r13
mov rsi, r13
mov rdx, r15
mov rcx, r12
call sqr_mont_384
mov edx, 2
mov rdi, r13
mov rsi, r13
mov rcx, r15
call lshift_mod_384
lea rbx, [rbp+var_C0]
mov rdi, rbx
mov rsi, r14
mov rdx, r15
mov rcx, r12
call sqr_mont_384
mov rdi, rbx
mov rsi, rbx
mov rdx, r14
mov rcx, r15
mov r8, r12
call mul_mont_384
mov rdi, rbx
mov rsi, rbx
mov rdx, r13
mov rcx, r15
call add_mod_384
add r14, 30h ; '0'
lea r13, [rbp+var_90]
mov rdi, r13
mov rsi, r14
mov rdx, r15
mov rcx, r12
call sqr_mont_384
mov edx, 30h ; '0'
mov rdi, rbx
mov rsi, r13
call vec_is_equal_16x
or eax, dword ptr [rbp+var_30]
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long blst_p1_on_curve(long long a1)
{
int is_equal_16x; // eax
_BYTE v3[48]; // [rsp+0h] [rbp-C0h] BYREF
_BYTE v4[48]; // [rsp+30h] [rbp-90h] BYREF
_BYTE v5[48]; // [rsp+60h] [rbp-60h] BYREF
long long is_zero_16x; // [rsp+90h] [rbp-30h]
is_zero_16x = vec_is_zero_16x(a1 + 96, 48LL);
sqr_mont_384(v5, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v5, v5, a1 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
sqr_mont_384(v5, v5, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
lshift_mod_384(v5, v5, 2LL, &BLS12_381_P);
sqr_mont_384(v3, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
mul_mont_384(v3, v3, a1, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
add_mod_384(v3, v3, v5, &BLS12_381_P);
sqr_mont_384(v4, a1 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
is_equal_16x = vec_is_equal_16x(v3, v4, 48LL);
return (unsigned int)is_zero_16x | is_equal_16x;
}
| blst_p1_on_curve:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R14,RDI
LEA RBX,[RDI + 0x60]
MOV ESI,0x30
MOV RDI,RBX
CALL 0x0016e900
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[0x18a910]
LEA R13,[RBP + -0x60]
MOV R12,-0x760c000300030003
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R12
CALL 0x001726e0
MOV RDI,R13
MOV RSI,R13
MOV RDX,RBX
MOV RCX,R15
MOV R8,R12
CALL 0x00172e60
MOV RDI,R13
MOV RSI,R13
MOV RDX,R15
MOV RCX,R12
CALL 0x001726e0
MOV EDX,0x2
MOV RDI,R13
MOV RSI,R13
MOV RCX,R15
CALL 0x0016d900
LEA RBX,[RBP + -0xc0]
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
MOV RCX,R12
CALL 0x001726e0
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R14
MOV RCX,R15
MOV R8,R12
CALL 0x00172e60
MOV RDI,RBX
MOV RSI,RBX
MOV RDX,R13
MOV RCX,R15
CALL 0x0016d600
ADD R14,0x30
LEA R13,[RBP + -0x90]
MOV RDI,R13
MOV RSI,R14
MOV RDX,R15
MOV RCX,R12
CALL 0x001726e0
MOV EDX,0x30
MOV RDI,RBX
MOV RSI,R13
CALL 0x0016e940
OR EAX,dword ptr [RBP + -0x30]
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint blst_p1_on_curve(long param_1)
{
long lVar1;
uint uVar2;
int1 local_c8 [48];
int1 local_98 [48];
int1 local_68 [48];
int8 local_38;
lVar1 = param_1 + 0x60;
local_38 = vec_is_zero_16x(lVar1,0x30);
sqr_mont_384(local_68,lVar1,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_68,local_68,lVar1,BLS12_381_P,0x89f3fffcfffcfffd);
sqr_mont_384(local_68,local_68,BLS12_381_P,0x89f3fffcfffcfffd);
lshift_mod_384(local_68,local_68,2,BLS12_381_P);
sqr_mont_384(local_c8,param_1,BLS12_381_P,0x89f3fffcfffcfffd);
mul_mont_384(local_c8,local_c8,param_1,BLS12_381_P,0x89f3fffcfffcfffd);
add_mod_384(local_c8,local_c8,local_68,BLS12_381_P);
sqr_mont_384(local_98,param_1 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd);
uVar2 = vec_is_equal_16x(local_c8,local_98,0x30);
return uVar2 | (uint)local_38;
}
| |
52,223 | 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>::size() const | monkey531[P]llama/common/json.hpp | size_type size() const noexcept
{
switch (m_data.m_type)
{
case value_t::null:
{
// null values are empty
return 0;
}
case value_t::array:
{
// delegate call to array_t::size()
return m_data.m_value.array->size();
}
case value_t::object:
{
// delegate call to object_t::size()
return m_data.m_value.object->size();
}
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:
{
// all other types have size 1
return 1;
}
}
} | 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>::size() const:
movzbl (%rdi), %eax
testl %eax, %eax
je 0x5e022
cmpl $0x1, %eax
je 0x5dfff
cmpl $0x2, %eax
jne 0x5e01d
movq 0x8(%rdi), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
sarq $0x4, %rax
retq
movq 0x8(%rdi), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
sarq $0x4, %rcx
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
retq
movl $0x1, %eax
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv:
movzx eax, byte ptr [rdi]
test eax, eax
jz short locret_5E022
cmp eax, 1
jz short loc_5DFFF
cmp eax, 2
jnz short loc_5E01D
mov rcx, [rdi+8]
mov rax, [rcx+8]
sub rax, [rcx]
sar rax, 4
retn
loc_5DFFF:
mov rax, [rdi+8]
mov rcx, [rax+8]
sub rcx, [rax]
sar rcx, 4
mov rax, 0AAAAAAAAAAAAAAABh
imul rax, rcx
retn
loc_5E01D:
mov eax, 1
locret_5E022:
retn
| 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>::size(
unsigned __int8 *a1)
{
long long result; // rax
result = *a1;
if ( *a1 )
{
if ( (_DWORD)result == 1 )
{
return 0xAAAAAAAAAAAAAAABLL * ((long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4);
}
else if ( (_DWORD)result == 2 )
{
return (long long)(*(_QWORD *)(*((_QWORD *)a1 + 1) + 8LL) - **((_QWORD **)a1 + 1)) >> 4;
}
else
{
return 1LL;
}
}
return result;
}
| size:
MOVZX EAX,byte ptr [RDI]
TEST EAX,EAX
JZ 0x0015e022
CMP EAX,0x1
JZ 0x0015dfff
CMP EAX,0x2
JNZ 0x0015e01d
MOV RCX,qword ptr [RDI + 0x8]
MOV RAX,qword ptr [RCX + 0x8]
SUB RAX,qword ptr [RCX]
SAR RAX,0x4
RET
LAB_0015dfff:
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x8]
SUB RCX,qword ptr [RAX]
SAR RCX,0x4
MOV RAX,-0x5555555555555555
IMUL RAX,RCX
RET
LAB_0015e01d:
MOV EAX,0x1
LAB_0015e022:
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>::size() const */
ulong __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::size(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this)
{
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
bVar1;
ulong uVar2;
bVar1 = *this;
uVar2 = (ulong)(byte)bVar1;
if (bVar1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0) {
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
return ((*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4) * -0x5555555555555555;
}
if (bVar1 == (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) {
return (*(long **)(this + 8))[1] - **(long **)(this + 8) >> 4;
}
uVar2 = 1;
}
return uVar2;
}
| |
52,224 | my_b_safe_write | eloqsql/mysys/mf_iocache.c | int my_b_safe_write(IO_CACHE *info, const uchar *Buffer, size_t Count)
{
/*
Sasha: We are not writing this with the ? operator to avoid hitting
a possible compiler bug. At least gcc 2.95 cannot deal with
several layers of ternary operators that evaluated comma(,) operator
expressions inside - I do have a test case if somebody wants it
*/
if (info->type == SEQ_READ_APPEND)
return my_b_append(info, Buffer, Count);
return my_b_write(info, Buffer, Count);
} | O3 | c | my_b_safe_write:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
cmpl $0x3, 0xb0(%rdi)
jne 0x2bc6e
movq %r14, %rdi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x2ba16
movq 0x40(%r14), %rdi
leaq (%rdi,%rbx), %rax
cmpq 0x48(%r14), %rax
jbe 0x2bc8b
movq %r14, %rdi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x2b20f
testq %rbx, %rbx
je 0x2bc9c
movq %rbx, %rdx
callq 0x24290
addq %rbx, 0x40(%r14)
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
| my_b_safe_write:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdx
mov r14, rdi
cmp dword ptr [rdi+0B0h], 3
jnz short loc_2BC6E
mov rdi, r14
mov rdx, rbx
pop rbx
pop r14
pop rbp
jmp my_b_append
loc_2BC6E:
mov rdi, [r14+40h]
lea rax, [rdi+rbx]
cmp rax, [r14+48h]
jbe short loc_2BC8B
mov rdi, r14
mov rdx, rbx
pop rbx
pop r14
pop rbp
jmp _my_b_write
loc_2BC8B:
test rbx, rbx
jz short loc_2BC9C
mov rdx, rbx
call _memcpy
add [r14+40h], rbx
loc_2BC9C:
xor eax, eax
pop rbx
pop r14
pop rbp
retn
| long long my_b_safe_write(long long a1, long long a2, unsigned long long a3)
{
long long v6; // rdi
if ( *(_DWORD *)(a1 + 176) == 3 )
return my_b_append(a1, a2, a3);
v6 = *(_QWORD *)(a1 + 64);
if ( v6 + a3 > *(_QWORD *)(a1 + 72) )
return my_b_write(a1, a2, a3);
if ( a3 )
{
memcpy(v6, a2);
*(_QWORD *)(a1 + 64) += a3;
}
return 0LL;
}
| my_b_safe_write:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RDI
CMP dword ptr [RDI + 0xb0],0x3
JNZ 0x0012bc6e
MOV RDI,R14
MOV RDX,RBX
POP RBX
POP R14
POP RBP
JMP 0x0012ba16
LAB_0012bc6e:
MOV RDI,qword ptr [R14 + 0x40]
LEA RAX,[RDI + RBX*0x1]
CMP RAX,qword ptr [R14 + 0x48]
JBE 0x0012bc8b
MOV RDI,R14
MOV RDX,RBX
POP RBX
POP R14
POP RBP
JMP 0x0012b20f
LAB_0012bc8b:
TEST RBX,RBX
JZ 0x0012bc9c
MOV RDX,RBX
CALL 0x00124290
ADD qword ptr [R14 + 0x40],RBX
LAB_0012bc9c:
XOR EAX,EAX
POP RBX
POP R14
POP RBP
RET
|
int8 my_b_safe_write(long param_1,void *param_2,size_t param_3)
{
int8 uVar1;
if (*(int *)(param_1 + 0xb0) == 3) {
uVar1 = my_b_append(param_1,param_2,param_3);
return uVar1;
}
if (*(ulong *)(param_1 + 0x48) < (long)*(void **)(param_1 + 0x40) + param_3) {
uVar1 = _my_b_write(param_1,param_2,param_3);
return uVar1;
}
if (param_3 != 0) {
memcpy(*(void **)(param_1 + 0x40),param_2,param_3);
*(long *)(param_1 + 0x40) = *(long *)(param_1 + 0x40) + param_3;
}
return 0;
}
| |
52,225 | u64toa | bluesky950520[P]quickjs/cutils.c | size_t u64toa(char buf[minimum_length(21)], uint64_t n)
{
if (likely(n < 0x100000000))
return u32toa(buf, n);
size_t len;
if (n >= TEN_POW_7) {
uint64_t n1 = n / TEN_POW_7;
n %= TEN_POW_7;
if (n1 >= TEN_POW_7) {
uint32_t quo = n1 / TEN_POW_7;
n1 %= TEN_POW_7;
len = u7toa_shift(buf, quo);
len = u07toa_shift(buf, n1, len);
} else {
len = u7toa_shift(buf, n1);
}
return u07toa_shift(buf, n, len);
}
return u7toa_shift(buf, n);
} | O0 | c | u64toa:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movabsq $0x100000000, %rax # imm = 0x100000000
cmpq %rax, 0x20(%rsp)
setb %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x1f9ac
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movl %eax, %esi
callq 0x1f710
movq %rax, 0x30(%rsp)
jmp 0x1fa8e
cmpq $0x989680, 0x20(%rsp) # imm = 0x989680
jb 0x1fa78
movq 0x20(%rsp), %rax
movl $0x989680, %ecx # imm = 0x989680
xorl %edx, %edx
divq %rcx
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movl $0x989680, %ecx # imm = 0x989680
xorl %edx, %edx
divq %rcx
movq %rdx, 0x20(%rsp)
cmpq $0x989680, 0x10(%rsp) # imm = 0x989680
jb 0x1fa45
movq 0x10(%rsp), %rax
movl $0x989680, %ecx # imm = 0x989680
xorl %edx, %edx
divq %rcx
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rax
movl $0x989680, %ecx # imm = 0x989680
xorl %edx, %edx
divq %rcx
movq %rdx, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x1f7c0
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rax
movl %eax, %esi
movq 0x18(%rsp), %rdx
callq 0x1f8c0
movq %rax, 0x18(%rsp)
jmp 0x1fa5b
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rax
movl %eax, %esi
callq 0x1f7c0
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movl %eax, %esi
movq 0x18(%rsp), %rdx
callq 0x1f8c0
movq %rax, 0x30(%rsp)
jmp 0x1fa8e
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rax
movl %eax, %esi
callq 0x1f7c0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax,%rax)
| u64toa:
sub rsp, 38h
mov [rsp+38h+var_10], rdi
mov [rsp+38h+var_18], rsi
mov rax, 100000000h
cmp [rsp+38h+var_18], rax
setb al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_1F9AC
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_18]
mov esi, eax
call u32toa
mov [rsp+38h+var_8], rax
jmp loc_1FA8E
loc_1F9AC:
cmp [rsp+38h+var_18], 989680h
jb loc_1FA78
mov rax, [rsp+38h+var_18]
mov ecx, 989680h
xor edx, edx
div rcx
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_18]
mov ecx, 989680h
xor edx, edx
div rcx
mov [rsp+38h+var_18], rdx
cmp [rsp+38h+var_28], 989680h
jb short loc_1FA45
mov rax, [rsp+38h+var_28]
mov ecx, 989680h
xor edx, edx
div rcx
mov [rsp+38h+var_2C], eax
mov rax, [rsp+38h+var_28]
mov ecx, 989680h
xor edx, edx
div rcx
mov [rsp+38h+var_28], rdx
mov rdi, [rsp+38h+var_10]
mov esi, [rsp+38h+var_2C]
call u7toa_shift
mov [rsp+38h+var_20], rax
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_28]
mov esi, eax
mov rdx, [rsp+38h+var_20]
call u07toa_shift
mov [rsp+38h+var_20], rax
jmp short loc_1FA5B
loc_1FA45:
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_28]
mov esi, eax
call u7toa_shift
mov [rsp+38h+var_20], rax
loc_1FA5B:
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_18]
mov esi, eax
mov rdx, [rsp+38h+var_20]
call u07toa_shift
mov [rsp+38h+var_8], rax
jmp short loc_1FA8E
loc_1FA78:
mov rdi, [rsp+38h+var_10]
mov rax, [rsp+38h+var_18]
mov esi, eax
call u7toa_shift
mov [rsp+38h+var_8], rax
loc_1FA8E:
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long u64toa(unsigned long long *a1, unsigned long long a2)
{
long long v2; // rax
unsigned long long v4; // [rsp+10h] [rbp-28h]
long long v5; // [rsp+18h] [rbp-20h]
if ( a2 < 0x100000000LL )
return u32toa(a1, a2);
v4 = a2 / 0x989680;
if ( a2 / 0x989680 < 0x989680 )
{
v5 = u7toa_shift(a1, (unsigned int)v4);
}
else
{
v2 = u7toa_shift(a1, (unsigned int)(v4 / 0x989680));
v5 = u07toa_shift((long long)a1, v4 % 0x989680, v2);
}
return u07toa_shift((long long)a1, a2 % 0x989680, v5);
}
| u64toa:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RDI
MOV qword ptr [RSP + 0x20],RSI
MOV RAX,0x100000000
CMP qword ptr [RSP + 0x20],RAX
SETC AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0011f9ac
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x20]
MOV ESI,EAX
CALL 0x0011f710
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0011fa8e
LAB_0011f9ac:
CMP qword ptr [RSP + 0x20],0x989680
JC 0x0011fa78
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,0x989680
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x20]
MOV ECX,0x989680
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x20],RDX
CMP qword ptr [RSP + 0x10],0x989680
JC 0x0011fa45
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,0x989680
XOR EDX,EDX
DIV RCX
MOV dword ptr [RSP + 0xc],EAX
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,0x989680
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x10],RDX
MOV RDI,qword ptr [RSP + 0x28]
MOV ESI,dword ptr [RSP + 0xc]
CALL 0x0011f7c0
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,EAX
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011f8c0
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0011fa5b
LAB_0011fa45:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,EAX
CALL 0x0011f7c0
MOV qword ptr [RSP + 0x18],RAX
LAB_0011fa5b:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x20]
MOV ESI,EAX
MOV RDX,qword ptr [RSP + 0x18]
CALL 0x0011f8c0
MOV qword ptr [RSP + 0x30],RAX
JMP 0x0011fa8e
LAB_0011fa78:
MOV RDI,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x20]
MOV ESI,EAX
CALL 0x0011f7c0
MOV qword ptr [RSP + 0x30],RAX
LAB_0011fa8e:
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
int8 u64toa(int8 param_1,ulong param_2)
{
int1 auVar1 [16];
ulong uVar2;
int8 uVar3;
int8 local_20;
int8 local_8;
if (param_2 < 0x100000000) {
local_8 = u32toa(param_1,param_2 & 0xffffffff);
}
else if (param_2 < 10000000) {
local_8 = u7toa_shift(param_1,param_2 & 0xffffffff);
}
else {
uVar2 = param_2 / 10000000;
if (uVar2 < 10000000) {
local_20 = u7toa_shift(param_1,uVar2 & 0xffffffff);
}
else {
auVar1._8_8_ = 0;
auVar1._0_8_ = uVar2;
uVar3 = u7toa_shift(param_1,SUB164(auVar1 / ZEXT816(10000000),0));
local_20 = u07toa_shift(param_1,uVar2 % 10000000,uVar3);
}
local_8 = u07toa_shift(param_1,param_2 % 10000000,local_20);
}
return local_8;
}
| |
52,226 | u64toa | bluesky950520[P]quickjs/cutils.c | size_t u64toa(char buf[minimum_length(21)], uint64_t n)
{
if (likely(n < 0x100000000))
return u32toa(buf, n);
size_t len;
if (n >= TEN_POW_7) {
uint64_t n1 = n / TEN_POW_7;
n %= TEN_POW_7;
if (n1 >= TEN_POW_7) {
uint32_t quo = n1 / TEN_POW_7;
n1 %= TEN_POW_7;
len = u7toa_shift(buf, quo);
len = u07toa_shift(buf, n1, len);
} else {
len = u7toa_shift(buf, n1);
}
return u07toa_shift(buf, n, len);
}
return u7toa_shift(buf, n);
} | O2 | c | u64toa:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rax
shrq $0x20, %rax
jne 0x16566
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x16482
movl $0x989680, %edi # imm = 0x989680
movq %rsi, %rax
xorl %edx, %edx
divq %rdi
movq %rax, %rcx
movq %rdx, %r14
movabsq $0x5af3107a4000, %r8 # imm = 0x5AF3107A4000
cmpq %r8, %rsi
jb 0x165b6
movq %rsi, %rax
xorl %edx, %edx
divq %r8
movq %rax, %rsi
movq %rcx, %rax
xorl %edx, %edx
divq %rdi
movq %rdx, %r15
movq %rbx, %rdi
callq 0x164dc
movq %rbx, %rdi
movl %r15d, %esi
movq %rax, %rdx
callq 0x16515
jmp 0x165c0
movq %rbx, %rdi
movl %ecx, %esi
callq 0x164dc
movq %rbx, %rdi
movl %r14d, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x16515
| u64toa:
push r15
push r14
push rbx
mov rbx, rdi
mov rax, rsi
shr rax, 20h
jnz short loc_16566
mov rdi, rbx
pop rbx
pop r14
pop r15
jmp u32toa
loc_16566:
mov edi, 989680h
mov rax, rsi
xor edx, edx
div rdi
mov rcx, rax
mov r14, rdx
mov r8, 5AF3107A4000h
cmp rsi, r8
jb short loc_165B6
mov rax, rsi
xor edx, edx
div r8
mov rsi, rax
mov rax, rcx
xor edx, edx
div rdi
mov r15, rdx
mov rdi, rbx
call u7toa_shift
mov rdi, rbx
mov esi, r15d
mov rdx, rax
call u07toa_shift
jmp short loc_165C0
loc_165B6:
mov rdi, rbx
mov esi, ecx
call u7toa_shift
loc_165C0:
mov rdi, rbx
mov esi, r14d
mov rdx, rax
pop rbx
pop r14
pop r15
jmp u07toa_shift
| long long u64toa(_BYTE *a1, unsigned long long a2)
{
unsigned long long v3; // rcx
unsigned long long v4; // r15
long long v5; // rax
long long v6; // rax
if ( !HIDWORD(a2) )
return u32toa(a1, a2);
v3 = a2 / 0x989680;
if ( a2 < 0x5AF3107A4000LL )
{
v6 = u7toa_shift(a1, v3);
}
else
{
v4 = v3 % 0x989680;
v5 = u7toa_shift(a1, a2 / 0x5AF3107A4000LL);
v6 = u07toa_shift((long long)a1, v4, v5);
}
return u07toa_shift((long long)a1, a2 % 0x989680, v6);
}
| u64toa:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV RAX,RSI
SHR RAX,0x20
JNZ 0x00116566
MOV RDI,RBX
POP RBX
POP R14
POP R15
JMP 0x00116482
LAB_00116566:
MOV EDI,0x989680
MOV RAX,RSI
XOR EDX,EDX
DIV RDI
MOV RCX,RAX
MOV R14,RDX
MOV R8,0x5af3107a4000
CMP RSI,R8
JC 0x001165b6
MOV RAX,RSI
XOR EDX,EDX
DIV R8
MOV RSI,RAX
MOV RAX,RCX
XOR EDX,EDX
DIV RDI
MOV R15,RDX
MOV RDI,RBX
CALL 0x001164dc
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,RAX
CALL 0x00116515
JMP 0x001165c0
LAB_001165b6:
MOV RDI,RBX
MOV ESI,ECX
CALL 0x001164dc
LAB_001165c0:
MOV RDI,RBX
MOV ESI,R14D
MOV RDX,RAX
POP RBX
POP R14
POP R15
JMP 0x00116515
|
void u64toa(int8 param_1,ulong param_2)
{
int8 uVar1;
if (param_2 >> 0x20 == 0) {
u32toa(param_1);
return;
}
if (param_2 < 100000000000000) {
uVar1 = u7toa_shift(param_1,param_2 / 10000000 & 0xffffffff);
}
else {
uVar1 = u7toa_shift(param_1,param_2 / 100000000000000);
uVar1 = u07toa_shift(param_1,(param_2 / 10000000) % 10000000,uVar1);
}
u07toa_shift(param_1,param_2 % 10000000,uVar1);
return;
}
| |
52,227 | nglog::RUN_ALL_TESTS() | ng-log[P]ng-log/src/googletest.h | static inline int RUN_ALL_TESTS() {
vector<void (*)()>::const_iterator it;
for (it = g_testlist.begin(); it != g_testlist.end(); ++it) {
(*it)();
}
fprintf(stderr, "Passed %d tests\n\nPASS\n",
static_cast<int>(g_testlist.size()));
return 0;
} | O0 | c | nglog::RUN_ALL_TESTS():
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq -0x8(%rbp), %rdi
callq 0x28120
leaq 0x8ac50(%rip), %rdi # 0x9bd48
callq 0x28140
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x28170
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
leaq 0x8ac2b(%rip), %rdi # 0x9bd48
callq 0x281f0
movq %rax, -0x20(%rbp)
leaq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x281b0
testb $0x1, %al
jne 0x11139
jmp 0x1114f
leaq -0x8(%rbp), %rdi
callq 0x28220
callq *(%rax)
leaq -0x8(%rbp), %rdi
callq 0x28240
jmp 0x11116
movq 0x89e42(%rip), %rax # 0x9af98
movq (%rax), %rax
movq %rax, -0x28(%rbp)
leaq 0x8abe4(%rip), %rdi # 0x9bd48
callq 0x28260
movq -0x28(%rbp), %rdi
movl %eax, %edx
leaq 0x5d274(%rip), %rsi # 0x6e3ea
movb $0x0, %al
callq 0xac60
xorl %eax, %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZN5nglogL13RUN_ALL_TESTSEv:
push rbp
mov rbp, rsp
sub rsp, 30h
lea rdi, [rbp+var_8]
call _ZN9__gnu_cxx17__normal_iteratorIPKPFvvESt6vectorIS2_SaIS2_EEEC2Ev; __gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::__normal_iterator(void)
lea rdi, _ZN5nglog10g_testlistE; nglog::g_testlist
call _ZNSt6vectorIPFvvESaIS1_EE5beginEv; std::vector<void (*)(void)>::begin(void)
mov [rbp+var_18], rax
lea rdi, [rbp+var_10]
lea rsi, [rbp+var_18]
call _ZN9__gnu_cxx17__normal_iteratorIPKPFvvESt6vectorIS2_SaIS2_EEEC2IPS2_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISB_SA_EE7__valueES7_E6__typeEEE
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_11116:
lea rdi, _ZN5nglog10g_testlistE; nglog::g_testlist
call _ZNSt6vectorIPFvvESaIS1_EE3endEv; std::vector<void (*)(void)>::end(void)
mov [rbp+var_20], rax
lea rdi, [rbp+var_8]
lea rsi, [rbp+var_20]
call _ZN9__gnu_cxxneIPKPFvvEPS2_St6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T1_EERKNS9_IT0_SB_EE; __gnu_cxx::operator!=<void (* const*)(void),void (**)(void),std::vector<void (*)(void)>>(__gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>> const&,__gnu_cxx::__normal_iterator<void (**)(void),std::vector<void (*)(void)>> const&)
test al, 1
jnz short loc_11139
jmp short loc_1114F
loc_11139:
lea rdi, [rbp+var_8]
call _ZNK9__gnu_cxx17__normal_iteratorIPKPFvvESt6vectorIS2_SaIS2_EEEdeEv; __gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::operator*(void)
call qword ptr [rax]
lea rdi, [rbp+var_8]
call _ZN9__gnu_cxx17__normal_iteratorIPKPFvvESt6vectorIS2_SaIS2_EEEppEv; __gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::operator++(void)
jmp short loc_11116
loc_1114F:
mov rax, cs:stderr_ptr
mov rax, [rax]
mov [rbp+var_28], rax
lea rdi, _ZN5nglog10g_testlistE; nglog::g_testlist
call _ZNKSt6vectorIPFvvESaIS1_EE4sizeEv; std::vector<void (*)(void)>::size(void)
mov rdi, [rbp+var_28]
mov edx, eax
lea rsi, aPassedDTestsPa; "Passed %d tests\n\nPASS\n"
mov al, 0
call _fprintf
xor eax, eax
add rsp, 30h
pop rbp
retn
| long long nglog::RUN_ALL_TESTS(nglog *this)
{
void (**v1)(void); // rax
int v2; // eax
long long v4; // [rsp+8h] [rbp-28h]
long long v5; // [rsp+10h] [rbp-20h] BYREF
long long v6; // [rsp+18h] [rbp-18h] BYREF
long long v7; // [rsp+20h] [rbp-10h] BYREF
long long i; // [rsp+28h] [rbp-8h] BYREF
__gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::__normal_iterator(&i);
v6 = std::vector<void (*)(void)>::begin(&nglog::g_testlist);
__gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::__normal_iterator<void (**)(void)>(
&v7,
&v6);
for ( i = v7; ; __gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::operator++(&i) )
{
v5 = std::vector<void (*)(void)>::end(&nglog::g_testlist);
if ( (__gnu_cxx::operator!=<void (* const*)(void),void (**)(void),std::vector<void (*)(void)>>(&i, &v5) & 1) == 0 )
break;
v1 = (void (**)(void))__gnu_cxx::__normal_iterator<void (* const*)(void),std::vector<void (*)(void)>>::operator*(&i);
(*v1)();
}
v4 = stderr;
v2 = std::vector<void (*)(void)>::size(&nglog::g_testlist);
fprintf(v4, "Passed %d tests\n\nPASS\n", v2);
return 0LL;
}
| RUN_ALL_TESTS:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
LEA RDI,[RBP + -0x8]
CALL 0x00128120
LEA RDI,[0x19bd48]
CALL 0x00128140
MOV qword ptr [RBP + -0x18],RAX
LEA RDI,[RBP + -0x10]
LEA RSI,[RBP + -0x18]
CALL 0x00128170
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_00111116:
LEA RDI,[0x19bd48]
CALL 0x001281f0
MOV qword ptr [RBP + -0x20],RAX
LEA RDI,[RBP + -0x8]
LEA RSI,[RBP + -0x20]
CALL 0x001281b0
TEST AL,0x1
JNZ 0x00111139
JMP 0x0011114f
LAB_00111139:
LEA RDI,[RBP + -0x8]
CALL 0x00128220
CALL qword ptr [RAX]
LEA RDI,[RBP + -0x8]
CALL 0x00128240
JMP 0x00111116
LAB_0011114f:
MOV RAX,qword ptr [0x0019af98]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
LEA RDI,[0x19bd48]
CALL 0x00128260
MOV RDI,qword ptr [RBP + -0x28]
MOV EDX,EAX
LEA RSI,[0x16e3ea]
MOV AL,0x0
CALL 0x0010ac60
XOR EAX,EAX
ADD RSP,0x30
POP RBP
RET
|
/* nglog::RUN_ALL_TESTS() */
int8 nglog::RUN_ALL_TESTS(void)
{
FILE *__stream;
bool bVar1;
uint uVar2;
int8 *puVar3;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
__gnu_cxx::__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>::
__normal_iterator((__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>
*)&local_10);
local_20 = std::vector<void(*)(),std::allocator<void(*)()>>::begin
((vector<void(*)(),std::allocator<void(*)()>> *)g_testlist);
__gnu_cxx::__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>::
__normal_iterator<void(**)()>
((__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>> *)
&local_18,(__normal_iterator *)&local_20);
local_10 = local_18;
while( true ) {
local_28 = std::vector<void(*)(),std::allocator<void(*)()>>::end
((vector<void(*)(),std::allocator<void(*)()>> *)g_testlist);
bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_10,(__normal_iterator *)&local_28);
if (!bVar1) break;
puVar3 = (int8 *)
__gnu_cxx::
__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>::
operator*((__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>
*)&local_10);
(*(code *)*puVar3)();
__gnu_cxx::__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>::
operator++((__normal_iterator<void(*const*)(),std::vector<void(*)(),std::allocator<void(*)()>>>
*)&local_10);
}
__stream = *(FILE **)PTR_stderr_0019af98;
uVar2 = std::vector<void(*)(),std::allocator<void(*)()>>::size
((vector<void(*)(),std::allocator<void(*)()>> *)g_testlist);
fprintf(__stream,"Passed %d tests\n\nPASS\n",(ulong)uVar2);
return 0;
}
| |
52,228 | mi_ft_segiterator | eloqsql/storage/myisam/ft_update.c | uint _mi_ft_segiterator(register FT_SEG_ITERATOR *ftsi)
{
DBUG_ENTER("_mi_ft_segiterator");
if (!ftsi->num)
DBUG_RETURN(0);
ftsi->num--;
if (!ftsi->seg)
DBUG_RETURN(1);
ftsi->seg--;
if (ftsi->seg->null_bit &&
(ftsi->rec[ftsi->seg->null_pos] & ftsi->seg->null_bit))
{
ftsi->pos=0;
DBUG_RETURN(1);
}
ftsi->pos= ftsi->rec+ftsi->seg->start;
if (ftsi->seg->flag & HA_VAR_LENGTH_PART)
{
uint pack_length= (ftsi->seg->bit_start);
ftsi->len= (pack_length == 1 ? (uint) *(uchar*) ftsi->pos :
uint2korr(ftsi->pos));
ftsi->pos+= pack_length; /* Skip VARCHAR length */
DBUG_RETURN(1);
}
if (ftsi->seg->flag & HA_BLOB_PART)
{
ftsi->len=_mi_calc_blob_length(ftsi->seg->bit_start,ftsi->pos);
memcpy((char**) &ftsi->pos, ftsi->pos+ftsi->seg->bit_start, sizeof(char*));
DBUG_RETURN(1);
}
ftsi->len=ftsi->seg->length;
DBUG_RETURN(1);
} | O3 | c | mi_ft_segiterator:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl (%rdi), %eax
testl %eax, %eax
je 0x74105
movq %rdi, %r14
decl %eax
movl %eax, (%rdi)
movq 0x8(%rdi), %rax
movl $0x1, %ebx
testq %rax, %rax
je 0x7416b
leaq -0x20(%rax), %rcx
movq %rcx, 0x8(%r14)
movb -0x7(%rax), %cl
movq 0x10(%r14), %rsi
testb %cl, %cl
je 0x74109
movl -0x14(%rax), %edx
testb %cl, (%rsi,%rdx)
je 0x74109
movq $0x0, 0x18(%r14)
jmp 0x7416b
xorl %ebx, %ebx
jmp 0x7416b
movl -0x18(%rax), %ecx
addq %rcx, %rsi
movq %rsi, 0x18(%r14)
movzwl -0xe(%rax), %ecx
testb $0x8, %cl
jne 0x7412b
testb $0x20, %cl
jne 0x7413a
movzwl -0xc(%rax), %eax
movl %eax, 0x4(%r14)
jmp 0x7416b
movzbl -0x6(%rax), %eax
cmpq $0x1, %rax
jne 0x7415d
movzbl (%rsi), %ecx
jmp 0x74160
movzbl -0x6(%rax), %edi
callq 0x78c69
movl %eax, 0x4(%r14)
movq 0x8(%r14), %rax
movq 0x18(%r14), %rcx
movzbl 0x1a(%rax), %eax
movq (%rcx,%rax), %rax
movq %rax, 0x18(%r14)
jmp 0x7416b
movzwl (%rsi), %ecx
movl %ecx, 0x4(%r14)
addq %rax, %rsi
movq %rsi, 0x18(%r14)
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
| _mi_ft_segiterator:
push rbp
mov rbp, rsp
push r14
push rbx
mov eax, [rdi]
test eax, eax
jz short loc_74105
mov r14, rdi
dec eax
mov [rdi], eax
mov rax, [rdi+8]
mov ebx, 1
test rax, rax
jz loc_7416B
lea rcx, [rax-20h]
mov [r14+8], rcx
mov cl, [rax-7]
mov rsi, [r14+10h]
test cl, cl
jz short loc_74109
mov edx, [rax-14h]
test [rsi+rdx], cl
jz short loc_74109
mov qword ptr [r14+18h], 0
jmp short loc_7416B
loc_74105:
xor ebx, ebx
jmp short loc_7416B
loc_74109:
mov ecx, [rax-18h]
add rsi, rcx
mov [r14+18h], rsi
movzx ecx, word ptr [rax-0Eh]
test cl, 8
jnz short loc_7412B
test cl, 20h
jnz short loc_7413A
movzx eax, word ptr [rax-0Ch]
mov [r14+4], eax
jmp short loc_7416B
loc_7412B:
movzx eax, byte ptr [rax-6]
cmp rax, 1
jnz short loc_7415D
movzx ecx, byte ptr [rsi]
jmp short loc_74160
loc_7413A:
movzx edi, byte ptr [rax-6]
call _mi_calc_blob_length
mov [r14+4], eax
mov rax, [r14+8]
mov rcx, [r14+18h]
movzx eax, byte ptr [rax+1Ah]
mov rax, [rcx+rax]
mov [r14+18h], rax
jmp short loc_7416B
loc_7415D:
movzx ecx, word ptr [rsi]
loc_74160:
mov [r14+4], ecx
add rsi, rax
mov [r14+18h], rsi
loc_7416B:
mov eax, ebx
pop rbx
pop r14
pop rbp
retn
| long long mi_ft_segiterator(long long a1)
{
long long v1; // rax
unsigned int v2; // ebx
unsigned __int8 v3; // cl
long long v4; // rsi
unsigned __int8 *v5; // rsi
__int16 v6; // cx
long long v7; // rax
int v8; // ecx
if ( *(_DWORD *)a1 )
{
--*(_DWORD *)a1;
v1 = *(_QWORD *)(a1 + 8);
v2 = 1;
if ( v1 )
{
*(_QWORD *)(a1 + 8) = v1 - 32;
v3 = *(_BYTE *)(v1 - 7);
v4 = *(_QWORD *)(a1 + 16);
if ( v3 && (v3 & *(_BYTE *)(v4 + *(unsigned int *)(v1 - 20))) != 0 )
{
*(_QWORD *)(a1 + 24) = 0LL;
}
else
{
v5 = (unsigned __int8 *)(*(unsigned int *)(v1 - 24) + v4);
*(_QWORD *)(a1 + 24) = v5;
v6 = *(_WORD *)(v1 - 14);
if ( (v6 & 8) != 0 )
{
v7 = *(unsigned __int8 *)(v1 - 6);
if ( v7 == 1 )
v8 = *v5;
else
v8 = *(unsigned __int16 *)v5;
*(_DWORD *)(a1 + 4) = v8;
*(_QWORD *)(a1 + 24) = &v5[v7];
}
else if ( (v6 & 0x20) != 0 )
{
*(_DWORD *)(a1 + 4) = mi_calc_blob_length(*(unsigned __int8 *)(v1 - 6));
*(_QWORD *)(a1 + 24) = *(_QWORD *)(*(_QWORD *)(a1 + 24) + *(unsigned __int8 *)(*(_QWORD *)(a1 + 8) + 26LL));
}
else
{
*(_DWORD *)(a1 + 4) = *(unsigned __int16 *)(v1 - 12);
}
}
}
}
else
{
return 0;
}
return v2;
}
| _mi_ft_segiterator:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV EAX,dword ptr [RDI]
TEST EAX,EAX
JZ 0x00174105
MOV R14,RDI
DEC EAX
MOV dword ptr [RDI],EAX
MOV RAX,qword ptr [RDI + 0x8]
MOV EBX,0x1
TEST RAX,RAX
JZ 0x0017416b
LEA RCX,[RAX + -0x20]
MOV qword ptr [R14 + 0x8],RCX
MOV CL,byte ptr [RAX + -0x7]
MOV RSI,qword ptr [R14 + 0x10]
TEST CL,CL
JZ 0x00174109
MOV EDX,dword ptr [RAX + -0x14]
TEST byte ptr [RSI + RDX*0x1],CL
JZ 0x00174109
MOV qword ptr [R14 + 0x18],0x0
JMP 0x0017416b
LAB_00174105:
XOR EBX,EBX
JMP 0x0017416b
LAB_00174109:
MOV ECX,dword ptr [RAX + -0x18]
ADD RSI,RCX
MOV qword ptr [R14 + 0x18],RSI
MOVZX ECX,word ptr [RAX + -0xe]
TEST CL,0x8
JNZ 0x0017412b
TEST CL,0x20
JNZ 0x0017413a
MOVZX EAX,word ptr [RAX + -0xc]
MOV dword ptr [R14 + 0x4],EAX
JMP 0x0017416b
LAB_0017412b:
MOVZX EAX,byte ptr [RAX + -0x6]
CMP RAX,0x1
JNZ 0x0017415d
MOVZX ECX,byte ptr [RSI]
JMP 0x00174160
LAB_0017413a:
MOVZX EDI,byte ptr [RAX + -0x6]
CALL 0x00178c69
MOV dword ptr [R14 + 0x4],EAX
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,qword ptr [R14 + 0x18]
MOVZX EAX,byte ptr [RAX + 0x1a]
MOV RAX,qword ptr [RCX + RAX*0x1]
MOV qword ptr [R14 + 0x18],RAX
JMP 0x0017416b
LAB_0017415d:
MOVZX ECX,word ptr [RSI]
LAB_00174160:
MOV dword ptr [R14 + 0x4],ECX
ADD RSI,RAX
MOV qword ptr [R14 + 0x18],RSI
LAB_0017416b:
MOV EAX,EBX
POP RBX
POP R14
POP RBP
RET
|
int8 _mi_ft_segiterator(int *param_1)
{
byte bVar1;
long lVar2;
int iVar3;
uint uVar4;
int8 uVar5;
ushort *puVar6;
if (*param_1 == 0) {
uVar5 = 0;
}
else {
*param_1 = *param_1 + -1;
lVar2 = *(long *)(param_1 + 2);
uVar5 = 1;
if (lVar2 != 0) {
*(long *)(param_1 + 2) = lVar2 + -0x20;
if ((*(byte *)(lVar2 + -7) == 0) ||
((*(byte *)(*(long *)(param_1 + 4) + (ulong)*(uint *)(lVar2 + -0x14)) &
*(byte *)(lVar2 + -7)) == 0)) {
puVar6 = (ushort *)(*(long *)(param_1 + 4) + (ulong)*(uint *)(lVar2 + -0x18));
*(ushort **)(param_1 + 6) = puVar6;
if ((*(ushort *)(lVar2 + -0xe) & 8) == 0) {
if ((*(ushort *)(lVar2 + -0xe) & 0x20) == 0) {
param_1[1] = (uint)*(ushort *)(lVar2 + -0xc);
}
else {
iVar3 = _mi_calc_blob_length(*(int1 *)(lVar2 + -6));
param_1[1] = iVar3;
*(int8 *)(param_1 + 6) =
*(int8 *)
(*(long *)(param_1 + 6) + (ulong)*(byte *)(*(long *)(param_1 + 2) + 0x1a));
}
}
else {
bVar1 = *(byte *)(lVar2 + -6);
if ((ulong)bVar1 == 1) {
uVar4 = (uint)(byte)*puVar6;
}
else {
uVar4 = (uint)*puVar6;
}
param_1[1] = uVar4;
*(byte **)(param_1 + 6) = (byte *)((long)puVar6 + (ulong)bVar1);
}
}
else {
param_1[6] = 0;
param_1[7] = 0;
}
}
}
return uVar5;
}
| |
52,229 | nglog::LogDestination::SetLogDestination(nglog::LogSeverity, char const*) | ng-log[P]ng-log/src/logging.cc | inline void LogDestination::SetLogDestination(LogSeverity severity,
const char* base_filename) {
// Prevent any subtle race conditions by wrapping a mutex lock around
// all this stuff.
std::lock_guard<std::mutex> l{log_mutex};
log_destination(severity)->fileobject_.SetBasename(base_filename);
} | O1 | cpp | nglog::LogDestination::SetLogDestination(nglog::LogSeverity, char const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x2dd20(%rip), %rdi # 0x3ede8
callq 0x77e0
testl %eax, %eax
jne 0x111be
movl %ebp, %eax
leaq 0x1ec52(%rip), %rcx # 0x2fd30
leaq (%rcx,%rax,8), %r14
cmpq $0x0, (%r14)
jne 0x11121
movl $0xd0, %edi
callq 0x8f80
movq %rax, %r15
movq %rax, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x9a64
leaq 0x8(%rsp), %r12
movq $0x0, (%r12)
movq %r14, %rdi
movq %r15, %rsi
callq 0x11e68
movq %r12, %rdi
callq 0x10a94
movq (%r14), %r12
leaq 0x8(%r12), %r14
movq %r14, %rdi
callq 0x77e0
testl %eax, %eax
jne 0x111c5
movb $0x1, 0x30(%r12)
leaq 0x38(%r12), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x70f0
testl %eax, %eax
je 0x1119d
movq 0x98(%r12), %rdi
testq %rdi, %rdi
je 0x1117d
movq $0x0, 0x98(%r12)
callq 0x7500
movl $0x1f, 0xb0(%r12)
movq 0x40(%r12), %r12
movq %rbx, %rdi
callq 0x71f0
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
movq %rax, %r8
callq 0x7830
movq %r14, %rdi
callq 0x73d0
leaq 0x2dc3c(%rip), %rdi # 0x3ede8
callq 0x73d0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x7340
movl %eax, %edi
callq 0x7340
movq %rax, %rbx
movl $0xd0, %esi
movq %r15, %rdi
callq 0x8fcc
jmp 0x111ee
movq %rax, %rbx
movq %r14, %rdi
callq 0x73d0
jmp 0x111ee
movq %rax, %rbx
leaq 0x2dbf3(%rip), %rdi # 0x3ede8
callq 0x73d0
movq %rbx, %rdi
callq 0x7930
| _ZN5nglog14LogDestination17SetLogDestinationENS_11LogSeverityEPKc:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov rbx, rsi
mov ebp, edi
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_lock
test eax, eax
jnz loc_111BE
mov eax, ebp
lea rcx, _ZN5nglog14LogDestination17log_destinations_E; nglog::LogDestination::log_destinations_
lea r14, [rcx+rax*8]
cmp qword ptr [r14], 0
jnz short loc_11121
mov edi, 0D0h; unsigned __int64
call _Znwm; operator new(ulong)
mov r15, rax
mov rdi, rax
mov esi, ebp
xor edx, edx
call _ZN5nglog14LogDestinationC2ENS_11LogSeverityEPKc; nglog::LogDestination::LogDestination(nglog::LogSeverity,char const*)
lea r12, [rsp+38h+var_30]
mov qword ptr [r12], 0
mov rdi, r14
mov rsi, r15
call _ZNSt15__uniq_ptr_implIN5nglog14LogDestinationESt14default_deleteIS1_EE5resetEPS1_; std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(nglog::LogDestination*)
mov rdi, r12
call _ZNSt10unique_ptrIN5nglog14LogDestinationESt14default_deleteIS1_EED2Ev; std::unique_ptr<nglog::LogDestination>::~unique_ptr()
loc_11121:
mov r12, [r14]
lea r14, [r12+8]
mov rdi, r14
call _pthread_mutex_lock
test eax, eax
jnz loc_111C5
mov byte ptr [r12+30h], 1
lea r15, [r12+38h]
mov rdi, r15
mov rsi, rbx
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_1119D
mov rdi, [r12+98h]
test rdi, rdi
jz short loc_1117D
mov qword ptr [r12+98h], 0
call _fclose
mov dword ptr [r12+0B0h], 1Fh
loc_1117D:
mov r12, [r12+40h]
mov rdi, rbx
call _strlen
mov rdi, r15
xor esi, esi
mov rdx, r12
mov rcx, rbx
mov r8, rax
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong)
loc_1119D:
mov rdi, r14
call _pthread_mutex_unlock
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_111BE:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
loc_111C5:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov rbx, rax
mov esi, 0D0h; unsigned __int64
mov rdi, r15; void *
call _ZdlPvm; operator delete(void *,ulong)
jmp short loc_111EE
mov rbx, rax
mov rdi, r14
call _pthread_mutex_unlock
jmp short loc_111EE
mov rbx, rax
loc_111EE:
lea rdi, _ZN5nglogL9log_mutexE; nglog::log_mutex
call _pthread_mutex_unlock
mov rdi, rbx
call __Unwind_Resume
| long long nglog::LogDestination::SetLogDestination(unsigned int a1, long long a2)
{
int v2; // eax
long long *v3; // r14
long long v4; // r15
long long v5; // r12
long long v6; // r14
int v7; // eax
long long v8; // r15
long long v9; // r12
long long v10; // rax
nglog::LogDestination *v12; // [rsp+8h] [rbp-30h] BYREF
v2 = pthread_mutex_lock(&nglog::log_mutex);
if ( v2 )
std::__throw_system_error(v2);
v3 = (long long *)((char *)&nglog::LogDestination::log_destinations_ + 8 * a1);
if ( !*v3 )
{
v4 = operator new(208LL);
nglog::LogDestination::LogDestination(v4, a1, 0LL);
v12 = 0LL;
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset(
(char *)&nglog::LogDestination::log_destinations_ + 8 * a1,
v4);
std::unique_ptr<nglog::LogDestination>::~unique_ptr(&v12);
}
v5 = *v3;
v6 = *v3 + 8;
v7 = pthread_mutex_lock(v6);
if ( v7 )
std::__throw_system_error(v7);
*(_BYTE *)(v5 + 48) = 1;
v8 = v5 + 56;
if ( (unsigned int)std::string::compare(v5 + 56, a2) )
{
if ( *(_QWORD *)(v5 + 152) )
{
*(_QWORD *)(v5 + 152) = 0LL;
fclose();
*(_DWORD *)(v5 + 176) = 31;
}
v9 = *(_QWORD *)(v5 + 64);
v10 = strlen(a2);
std::string::_M_replace(v8, 0LL, v9, a2, v10);
}
pthread_mutex_unlock(v6);
return pthread_mutex_unlock(&nglog::log_mutex);
}
| SetLogDestination:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOV EBP,EDI
LEA RDI,[0x13ede8]
CALL 0x001077e0
TEST EAX,EAX
JNZ 0x001111be
MOV EAX,EBP
LEA RCX,[0x12fd30]
LEA R14,[RCX + RAX*0x8]
CMP qword ptr [R14],0x0
JNZ 0x00111121
LAB_001110e8:
MOV EDI,0xd0
CALL 0x00108f80
LAB_001110f2:
MOV R15,RAX
MOV RDI,RAX
MOV ESI,EBP
XOR EDX,EDX
CALL 0x00109a64
LEA R12,[RSP + 0x8]
MOV qword ptr [R12],0x0
MOV RDI,R14
MOV RSI,R15
CALL 0x00111e68
MOV RDI,R12
CALL 0x00110a94
LAB_00111121:
MOV R12,qword ptr [R14]
LEA R14,[R12 + 0x8]
MOV RDI,R14
CALL 0x001077e0
TEST EAX,EAX
JNZ 0x001111c5
MOV byte ptr [R12 + 0x30],0x1
LEA R15,[R12 + 0x38]
MOV RDI,R15
MOV RSI,RBX
CALL 0x001070f0
TEST EAX,EAX
JZ 0x0011119d
MOV RDI,qword ptr [R12 + 0x98]
TEST RDI,RDI
JZ 0x0011117d
MOV qword ptr [R12 + 0x98],0x0
CALL 0x00107500
MOV dword ptr [R12 + 0xb0],0x1f
LAB_0011117d:
MOV R12,qword ptr [R12 + 0x40]
MOV RDI,RBX
CALL 0x001071f0
LAB_0011118a:
MOV RDI,R15
XOR ESI,ESI
MOV RDX,R12
MOV RCX,RBX
MOV R8,RAX
CALL 0x00107830
LAB_0011119d:
MOV RDI,R14
CALL 0x001073d0
LEA RDI,[0x13ede8]
CALL 0x001073d0
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001111be:
MOV EDI,EAX
CALL 0x00107340
LAB_001111c5:
MOV EDI,EAX
CALL 0x00107340
|
/* nglog::LogDestination::SetLogDestination(nglog::LogSeverity, char const*) */
void nglog::LogDestination::SetLogDestination(uint param_1,char *param_2)
{
__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *this;
long lVar1;
FILE *__stream;
char *pcVar2;
int iVar3;
LogDestination *pLVar4;
int8 local_30;
iVar3 = pthread_mutex_lock((pthread_mutex_t *)log_mutex);
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
this = (__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
(&log_destinations_ + param_1);
if (*(long *)this == 0) {
/* try { // try from 001110e8 to 001110f1 has its CatchHandler @ 001111eb */
pLVar4 = (LogDestination *)operator_new(0xd0);
/* try { // try from 001110f2 to 00111100 has its CatchHandler @ 001111cc */
LogDestination(pLVar4,param_1,0);
local_30 = 0;
std::__uniq_ptr_impl<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::reset
(this,pLVar4);
std::unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>>::~unique_ptr
((unique_ptr<nglog::LogDestination,std::default_delete<nglog::LogDestination>> *)
&local_30);
}
lVar1 = *(long *)this;
iVar3 = pthread_mutex_lock((pthread_mutex_t *)(lVar1 + 8));
if (iVar3 == 0) {
*(int1 *)(lVar1 + 0x30) = 1;
iVar3 = std::__cxx11::string::compare((char *)(lVar1 + 0x38));
if (iVar3 != 0) {
__stream = *(FILE **)(lVar1 + 0x98);
if (__stream != (FILE *)0x0) {
*(int8 *)(lVar1 + 0x98) = 0;
fclose(__stream);
*(int4 *)(lVar1 + 0xb0) = 0x1f;
}
pcVar2 = *(char **)(lVar1 + 0x40);
strlen(param_2);
/* try { // try from 0011118a to 0011119c has its CatchHandler @ 001111de */
std::__cxx11::string::_M_replace((ulong)(lVar1 + 0x38),0,pcVar2,(ulong)param_2);
}
pthread_mutex_unlock((pthread_mutex_t *)(lVar1 + 8));
pthread_mutex_unlock((pthread_mutex_t *)log_mutex);
return;
}
/* try { // try from 001111c5 to 001111cb has its CatchHandler @ 001111eb */
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
| |
52,230 | translog_buffer_next | eloqsql/storage/maria/ma_loghandler.c | static my_bool translog_buffer_next(TRANSLOG_ADDRESS *horizon,
struct st_buffer_cursor *cursor,
my_bool new_file)
{
uint old_buffer_no= cursor->buffer_no;
uint new_buffer_no= (old_buffer_no + 1) % TRANSLOG_BUFFERS_NO;
struct st_translog_buffer *new_buffer= log_descriptor.buffers + new_buffer_no;
my_bool chasing= cursor->chaser;
DBUG_ENTER("translog_buffer_next");
DBUG_PRINT("info", ("horizon: " LSN_FMT " chasing: %d",
LSN_IN_PARTS(log_descriptor.horizon), chasing));
DBUG_ASSERT(cmp_translog_addr(log_descriptor.horizon, *horizon) >= 0);
translog_finish_page(horizon, cursor);
if (!chasing)
{
translog_buffer_lock(new_buffer);
#ifndef DBUG_OFF
{
TRANSLOG_ADDRESS offset= new_buffer->offset;
TRANSLOG_FILE *file= new_buffer->file;
uint8 ver= new_buffer->ver;
translog_lock_assert_owner();
#endif
translog_wait_for_buffer_free(new_buffer);
#ifndef DBUG_OFF
/* We keep the handler locked so nobody can start this new buffer */
DBUG_ASSERT(offset == new_buffer->offset && new_buffer->file == NULL &&
(file == NULL ? ver : (uint8)(ver + 1)) == new_buffer->ver);
}
#endif
}
else
DBUG_ASSERT(new_buffer->file != NULL);
if (new_file)
{
/* move the horizon to the next file and its header page */
(*horizon)+= LSN_ONE_FILE;
(*horizon)= LSN_REPLACE_OFFSET(*horizon, TRANSLOG_PAGE_SIZE);
if (!chasing && translog_create_new_file())
{
DBUG_RETURN(1);
}
}
/* prepare next page */
if (chasing)
translog_cursor_init(cursor, new_buffer, new_buffer_no);
else
{
translog_lock_assert_owner();
translog_start_buffer(new_buffer, cursor, new_buffer_no);
new_buffer->prev_buffer_offset=
log_descriptor.buffers[old_buffer_no].offset;
new_buffer->prev_last_lsn=
BUFFER_MAX_LSN(log_descriptor.buffers + old_buffer_no);
}
log_descriptor.buffers[old_buffer_no].next_buffer_offset= new_buffer->offset;
DBUG_PRINT("info", ("prev_last_lsn set to " LSN_FMT " buffer:%p",
LSN_IN_PARTS(new_buffer->prev_last_lsn),
new_buffer));
translog_new_page_header(horizon, cursor);
DBUG_RETURN(0);
} | O3 | c | translog_buffer_next:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, -0x2c(%rbp)
movq %rsi, %rbx
movzbl 0x36(%rsi), %eax
movq %rax, -0x38(%rbp)
leal 0x1(%rax), %r12d
andb $0x7, %r12b
movzbl %r12b, %r13d
imulq $0x100120, %r13, %r15 # imm = 0x100120
movb 0x37(%rsi), %r14b
movq %rdi, -0x40(%rbp)
callq 0x46eb2
leaq 0x3b3d4b(%rip), %rsi # 0x3fd160
addq %rsi, %r15
addq $0x2f8, %r15 # imm = 0x2F8
testb %r14b, %r14b
je 0x49486
cmpb $0x0, -0x2c(%rbp)
movq -0x40(%rbp), %r14
je 0x49452
movabsq $0x100000000, %rax # imm = 0x100000000
addq (%r14), %rax
movabsq $0xffffff00000000, %rcx # imm = 0xFFFFFF00000000
andq %rax, %rcx
orq $0x2000, %rcx # imm = 0x2000
movq %rcx, (%r14)
movq %r15, 0x20(%rbx)
movq %r15, 0x28(%rbx)
movb %r12b, 0x36(%rbx)
movw $0x0, 0x30(%rbx)
leaq 0xbb4945(%rip), %rax # 0xbfddb0
cmpq %rax, %rbx
setne 0x37(%rbx)
movl $0x0, 0x32(%rbx)
movb $0x0, 0x38(%rbx)
movq -0x38(%rbp), %rdx
jmp 0x49524
movq %r15, %rdi
callq 0x4435b
movq %r15, %rdi
callq 0x4b1d1
cmpb $0x0, -0x2c(%rbp)
movq -0x40(%rbp), %r14
je 0x494d1
movabsq $0x100000000, %rax # imm = 0x100000000
addq (%r14), %rax
movabsq $0xffffff00000000, %rcx # imm = 0xFFFFFF00000000
andq %rax, %rcx
orq $0x2000, %rcx # imm = 0x2000
movq %rcx, (%r14)
callq 0x4a4cd
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x49547
movq %r15, %rdi
movq %rbx, %rsi
movl %r13d, %edx
callq 0x45330
movq -0x38(%rbp), %rdx
imulq $0x100120, %rdx, %rax # imm = 0x100120
leaq 0x3b3c6f(%rip), %rsi # 0x3fd160
movq 0x100308(%rax,%rsi), %rcx
movq %rcx, 0x100020(%r15)
movq 0x1002f8(%rax,%rsi), %rcx
testq %rcx, %rcx
jne 0x4951d
addq %rsi, %rax
addq $0x2f8, %rax # imm = 0x2F8
movq 0x100008(%rax), %rcx
movq %rcx, 0x100008(%r15)
movq 0x100010(%r15), %rax
imulq $0x100120, %rdx, %rcx # imm = 0x100120
movq %rax, 0x100310(%rcx,%rsi)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x45e80
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| translog_buffer_next:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_2C], edx
mov rbx, rsi
movzx eax, byte ptr [rsi+36h]
mov [rbp+var_38], rax
lea r12d, [rax+1]
and r12b, 7
movzx r13d, r12b
imul r15, r13, 100120h
mov r14b, [rsi+37h]
mov [rbp+var_40], rdi
call translog_finish_page
lea rsi, log_descriptor
add r15, rsi
add r15, 2F8h
test r14b, r14b
jz short loc_49486
cmp byte ptr [rbp+var_2C], 0
mov r14, [rbp+var_40]
jz short loc_49452
mov rax, 100000000h
add rax, [r14]
mov rcx, 0FFFFFF00000000h
and rcx, rax
or rcx, 2000h
mov [r14], rcx
loc_49452:
mov [rbx+20h], r15
mov [rbx+28h], r15
mov [rbx+36h], r12b
mov word ptr [rbx+30h], 0
lea rax, xmmword_BFDDB0
cmp rbx, rax
setnz byte ptr [rbx+37h]
mov dword ptr [rbx+32h], 0
mov byte ptr [rbx+38h], 0
mov rdx, [rbp+var_38]
jmp loc_49524
loc_49486:
mov rdi, r15
call translog_buffer_lock
mov rdi, r15
call translog_wait_for_buffer_free
cmp byte ptr [rbp+var_2C], 0
mov r14, [rbp+var_40]
jz short loc_494D1
mov rax, 100000000h
add rax, [r14]
mov rcx, 0FFFFFF00000000h
and rcx, rax
or rcx, 2000h
mov [r14], rcx
call translog_create_new_file
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_49547
loc_494D1:
mov rdi, r15
mov rsi, rbx
mov edx, r13d
call translog_start_buffer
mov rdx, [rbp+var_38]
imul rax, rdx, 100120h
lea rsi, log_descriptor
mov rcx, ds:qword_100308[rax+rsi]
mov ds:qword_100020[r15], rcx
mov rcx, ds:qword_1002F8[rax+rsi]
test rcx, rcx
jnz short loc_4951D
add rax, rsi
add rax, 2F8h
mov rcx, [rax+100008h]
loc_4951D:
mov [r15+100008h], rcx
loc_49524:
mov rax, ds:qword_100010[r15]
imul rcx, rdx, 100120h
mov ds:qword_100310[rcx+rsi], rax
mov rdi, r14
mov rsi, rbx
call translog_new_page_header
xor eax, eax
loc_49547:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char translog_buffer_next(long long *a1, __int128 *a2, char a3)
{
unsigned __int8 v3; // r12
char v4; // r14
long long *v5; // r15
long long v6; // r14
long long v7; // rdx
char new_file; // cl
char result; // al
long long v10; // rcx
long long v11; // [rsp+8h] [rbp-38h]
v11 = *((unsigned __int8 *)a2 + 54);
v3 = (v11 + 1) & 7;
v4 = *((_BYTE *)a2 + 55);
translog_finish_page(a1, (long long)a2);
v5 = &log_descriptor[131108 * v3 + 95];
if ( v4 )
{
v6 = (long long)a1;
if ( a3 )
*a1 = (*a1 + 0x100000000LL) & 0xFFFFFF00000000LL | 0x2000;
*((_QWORD *)a2 + 4) = v5;
*((_QWORD *)a2 + 5) = v5;
*((_BYTE *)a2 + 54) = v3;
*((_WORD *)a2 + 24) = 0;
*((_BYTE *)a2 + 55) = a2 != &xmmword_BFDDB0;
*(_DWORD *)((char *)a2 + 50) = 0;
*((_BYTE *)a2 + 56) = 0;
v7 = v11;
LABEL_10:
*(long long *)((char *)&qword_100310 + (_QWORD)&log_descriptor[131108 * v7]) = *(long long *)((char *)&qword_100010
+ (_QWORD)v5);
translog_new_page_header(v6, (long long)a2);
return 0;
}
translog_buffer_lock((long long)v5);
translog_wait_for_buffer_free(v5);
v6 = (long long)a1;
if ( !a3
|| (*a1 = (*a1 + 0x100000000LL) & 0xFFFFFF00000000LL | 0x2000,
new_file = translog_create_new_file(),
result = 1,
!new_file) )
{
translog_start_buffer((long long)v5, a2, v3);
v7 = v11;
*(long long *)((char *)&qword_100020 + (_QWORD)v5) = *(long long *)((char *)&qword_100308
+ (_QWORD)&log_descriptor[131108 * v11]);
v10 = *(long long *)((char *)&qword_1002F8 + (_QWORD)&log_descriptor[131108 * v11]);
if ( !v10 )
v10 = log_descriptor[131108 * v11 + 131168];
log_descriptor[131108 * v3 + 131168] = v10;
goto LABEL_10;
}
return result;
}
| translog_buffer_next:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x2c],EDX
MOV RBX,RSI
MOVZX EAX,byte ptr [RSI + 0x36]
MOV qword ptr [RBP + -0x38],RAX
LEA R12D,[RAX + 0x1]
AND R12B,0x7
MOVZX R13D,R12B
IMUL R15,R13,0x100120
MOV R14B,byte ptr [RSI + 0x37]
MOV qword ptr [RBP + -0x40],RDI
CALL 0x00146eb2
LEA RSI,[0x4fd160]
ADD R15,RSI
ADD R15,0x2f8
TEST R14B,R14B
JZ 0x00149486
CMP byte ptr [RBP + -0x2c],0x0
MOV R14,qword ptr [RBP + -0x40]
JZ 0x00149452
MOV RAX,0x100000000
ADD RAX,qword ptr [R14]
MOV RCX,0xffffff00000000
AND RCX,RAX
OR RCX,0x2000
MOV qword ptr [R14],RCX
LAB_00149452:
MOV qword ptr [RBX + 0x20],R15
MOV qword ptr [RBX + 0x28],R15
MOV byte ptr [RBX + 0x36],R12B
MOV word ptr [RBX + 0x30],0x0
LEA RAX,[0xcfddb0]
CMP RBX,RAX
SETNZ byte ptr [RBX + 0x37]
MOV dword ptr [RBX + 0x32],0x0
MOV byte ptr [RBX + 0x38],0x0
MOV RDX,qword ptr [RBP + -0x38]
JMP 0x00149524
LAB_00149486:
MOV RDI,R15
CALL 0x0014435b
MOV RDI,R15
CALL 0x0014b1d1
CMP byte ptr [RBP + -0x2c],0x0
MOV R14,qword ptr [RBP + -0x40]
JZ 0x001494d1
MOV RAX,0x100000000
ADD RAX,qword ptr [R14]
MOV RCX,0xffffff00000000
AND RCX,RAX
OR RCX,0x2000
MOV qword ptr [R14],RCX
CALL 0x0014a4cd
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00149547
LAB_001494d1:
MOV RDI,R15
MOV RSI,RBX
MOV EDX,R13D
CALL 0x00145330
MOV RDX,qword ptr [RBP + -0x38]
IMUL RAX,RDX,0x100120
LEA RSI,[0x4fd160]
MOV RCX,qword ptr [RAX + RSI*0x1 + 0x100308]
MOV qword ptr [R15 + 0x100020],RCX
MOV RCX,qword ptr [RAX + RSI*0x1 + 0x1002f8]
TEST RCX,RCX
JNZ 0x0014951d
ADD RAX,RSI
ADD RAX,0x2f8
MOV RCX,qword ptr [RAX + 0x100008]
LAB_0014951d:
MOV qword ptr [R15 + 0x100008],RCX
LAB_00149524:
MOV RAX,qword ptr [R15 + 0x100010]
IMUL RCX,RDX,0x100120
MOV qword ptr [RCX + RSI*0x1 + 0x100310],RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x00145e80
XOR EAX,EAX
LAB_00149547:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 translog_buffer_next(ulong *param_1,int *param_2,char param_3)
{
byte bVar1;
char cVar2;
long lVar3;
long lVar4;
byte bVar5;
long lVar6;
int *puVar7;
bVar1 = param_2[0x36];
bVar5 = bVar1 + 1 & 7;
lVar6 = (ulong)bVar5 * 0x100120;
cVar2 = param_2[0x37];
translog_finish_page();
puVar7 = &DAT_004fd458 + lVar6;
if (cVar2 == '\0') {
translog_buffer_lock(puVar7);
translog_wait_for_buffer_free(puVar7);
if (param_3 != '\0') {
*param_1 = *param_1 + 0x100000000 & 0xffffff00000000 | 0x2000;
cVar2 = translog_create_new_file();
if (cVar2 != '\0') {
return 1;
}
}
translog_start_buffer(puVar7,param_2,(ulong)bVar5);
lVar3 = (ulong)bVar1 * 0x100120;
*(int8 *)(&DAT_005fd478 + lVar6) = *(int8 *)(&DAT_005fd468 + lVar3);
lVar4 = *(long *)(&DAT_005fd458 + lVar3);
if (lVar4 == 0) {
lVar4 = *(long *)(&DAT_005fd460 + lVar3);
}
*(long *)(&DAT_005fd460 + lVar6) = lVar4;
}
else {
if (param_3 != '\0') {
*param_1 = *param_1 + 0x100000000 & 0xffffff00000000 | 0x2000;
}
*(int **)(param_2 + 0x20) = puVar7;
*(int **)(param_2 + 0x28) = puVar7;
param_2[0x36] = bVar5;
*(int2 *)(param_2 + 0x30) = 0;
param_2[0x37] = param_2 != &DAT_00cfddb0;
*(int4 *)(param_2 + 0x32) = 0;
param_2[0x38] = 0;
}
*(int8 *)(&DAT_005fd470 + (ulong)bVar1 * 0x100120) = *(int8 *)(&DAT_005fd468 + lVar6);
translog_new_page_header(param_1,param_2);
return 0;
}
| |
52,231 | maria_rtree_insert | eloqsql/storage/maria/ma_rt_index.c | my_bool maria_rtree_insert(MARIA_HA *info, MARIA_KEY *key)
{
int res;
MARIA_SHARE *share= info->s;
my_off_t *root, new_root;
LSN lsn= LSN_IMPOSSIBLE;
DBUG_ENTER("maria_rtree_insert");
if (!key)
DBUG_RETURN(1); /* _ma_sp_make_key failed */
root= &share->state.key_root[key->keyinfo->key_nr];
new_root= *root;
if ((res= (maria_rtree_insert_level(info, key, -1, &new_root) == -1)))
goto err;
if (share->now_transactional)
res= _ma_write_undo_key_insert(info, key, root, new_root, &lsn);
else
{
*root= new_root;
_ma_fast_unlock_key_del(info);
}
_ma_unpin_all_pages_and_finalize_row(info, lsn);
err:
DBUG_RETURN(res != 0);
} | O3 | c | maria_rtree_insert:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq (%rdi), %r12
movq $0x0, -0x30(%rbp)
movb $0x1, %al
testq %rsi, %rsi
je 0x6c12f
movq %rsi, %r15
movq %rdi, %rbx
movq 0x118(%r12), %r13
movq 0x8(%rsi), %rax
movzbl 0xa5(%rax), %r14d
movq (%r13,%r14,8), %rax
leaq -0x38(%rbp), %rcx
movq %rax, (%rcx)
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
callq 0x6b7a2
cmpl $-0x1, %eax
movb $0x1, %al
je 0x6c12f
leaq (,%r14,8), %rdx
addq %r13, %rdx
cmpb $0x0, 0x7e7(%r12)
movq -0x38(%rbp), %rcx
je 0x6c0fc
leaq -0x30(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %r8
callq 0x66f65
testl %eax, %eax
setne %r14b
movq (%r12), %rsi
jmp 0x6c115
movq %rcx, (%rdx)
cmpb $0x0, 0x67e(%rbx)
je 0x6c110
movq %rbx, %rdi
callq 0x5aeb2
xorl %esi, %esi
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x597f8
movq 0x8(%rbx), %rax
movq $0x0, 0x90(%rax)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| maria_rtree_insert:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, [rdi]
mov [rbp+var_30], 0
mov al, 1
test rsi, rsi
jz loc_6C12F
mov r15, rsi
mov rbx, rdi
mov r13, [r12+118h]
mov rax, [rsi+8]
movzx r14d, byte ptr [rax+0A5h]
mov rax, [r13+r14*8+0]
lea rcx, [rbp+var_38]
mov [rcx], rax
mov edx, 0FFFFFFFFh
call maria_rtree_insert_level
cmp eax, 0FFFFFFFFh
mov al, 1
jz short loc_6C12F
lea rdx, ds:0[r14*8]
add rdx, r13
cmp byte ptr [r12+7E7h], 0
mov rcx, [rbp+var_38]
jz short loc_6C0FC
lea r12, [rbp+var_30]
mov rdi, rbx
mov rsi, r15
mov r8, r12
call _ma_write_undo_key_insert
test eax, eax
setnz r14b
mov rsi, [r12]
jmp short loc_6C115
loc_6C0FC:
mov [rdx], rcx
cmp byte ptr [rbx+67Eh], 0
jz short loc_6C110
mov rdi, rbx
call _ma_unlock_key_del
loc_6C110:
xor esi, esi
xor r14d, r14d
loc_6C115:
mov rdi, rbx
call _ma_unpin_all_pages
mov rax, [rbx+8]
mov qword ptr [rax+90h], 0
mov rax, r14
loc_6C12F:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char maria_rtree_insert(long long a1, long long a2)
{
long long v2; // r12
char result; // al
long long v4; // r13
long long v5; // r14
bool v6; // zf
_QWORD *v7; // rdx
bool v8; // r14
signed long long v9; // rsi
long long v10; // [rsp+8h] [rbp-38h] BYREF
signed long long v11[6]; // [rsp+10h] [rbp-30h] BYREF
v2 = *(_QWORD *)a1;
v11[0] = 0LL;
result = 1;
if ( a2 )
{
v4 = *(_QWORD *)(v2 + 280);
v5 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL);
v10 = *(_QWORD *)(v4 + 8 * v5);
v6 = (unsigned int)maria_rtree_insert_level((long long *)a1, a2, 0xFFFFFFFF, &v10) == -1;
result = 1;
if ( !v6 )
{
v7 = (_QWORD *)(v4 + 8 * v5);
if ( *(_BYTE *)(v2 + 2023) )
{
v8 = (unsigned int)ma_write_undo_key_insert((long long *)a1, a2, (long long)v7, v10, (unsigned long long)v11) != 0;
v9 = v11[0];
}
else
{
*v7 = v10;
if ( *(_BYTE *)(a1 + 1662) )
ma_unlock_key_del((_BYTE *)a1);
v9 = 0LL;
v8 = 0;
}
ma_unpin_all_pages(a1, v9);
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 144LL) = 0LL;
return v8;
}
}
return result;
}
| maria_rtree_insert:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,qword ptr [RDI]
MOV qword ptr [RBP + -0x30],0x0
MOV AL,0x1
TEST RSI,RSI
JZ 0x0016c12f
MOV R15,RSI
MOV RBX,RDI
MOV R13,qword ptr [R12 + 0x118]
MOV RAX,qword ptr [RSI + 0x8]
MOVZX R14D,byte ptr [RAX + 0xa5]
MOV RAX,qword ptr [R13 + R14*0x8]
LEA RCX,[RBP + -0x38]
MOV qword ptr [RCX],RAX
MOV EDX,0xffffffff
CALL 0x0016b7a2
CMP EAX,-0x1
MOV AL,0x1
JZ 0x0016c12f
LEA RDX,[R14*0x8]
ADD RDX,R13
CMP byte ptr [R12 + 0x7e7],0x0
MOV RCX,qword ptr [RBP + -0x38]
JZ 0x0016c0fc
LEA R12,[RBP + -0x30]
MOV RDI,RBX
MOV RSI,R15
MOV R8,R12
CALL 0x00166f65
TEST EAX,EAX
SETNZ R14B
MOV RSI,qword ptr [R12]
JMP 0x0016c115
LAB_0016c0fc:
MOV qword ptr [RDX],RCX
CMP byte ptr [RBX + 0x67e],0x0
JZ 0x0016c110
MOV RDI,RBX
CALL 0x0015aeb2
LAB_0016c110:
XOR ESI,ESI
XOR R14D,R14D
LAB_0016c115:
MOV RDI,RBX
CALL 0x001597f8
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x90],0x0
MOV RAX,R14
LAB_0016c12f:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
bool maria_rtree_insert(long *param_1,long param_2)
{
long lVar1;
long lVar2;
int iVar3;
int8 *puVar4;
int8 uVar5;
ulong uVar6;
bool bVar7;
int8 local_38;
lVar1 = *param_1;
local_38 = 0;
bVar7 = true;
if (param_2 != 0) {
lVar2 = *(long *)(lVar1 + 0x118);
uVar6 = (ulong)*(byte *)(*(long *)(param_2 + 8) + 0xa5);
uVar5 = *(int8 *)(lVar2 + uVar6 * 8);
iVar3 = maria_rtree_insert_level(param_1,param_2,0xffffffff);
bVar7 = true;
if (iVar3 != -1) {
puVar4 = (int8 *)(uVar6 * 8 + lVar2);
if (*(char *)(lVar1 + 0x7e7) == '\0') {
*puVar4 = uVar5;
if (*(char *)((long)param_1 + 0x67e) != '\0') {
_ma_unlock_key_del(param_1);
}
uVar5 = 0;
bVar7 = false;
}
else {
iVar3 = _ma_write_undo_key_insert(param_1,param_2,puVar4,uVar5,&local_38);
bVar7 = iVar3 != 0;
uVar5 = local_38;
}
_ma_unpin_all_pages(param_1,uVar5);
*(int8 *)(param_1[1] + 0x90) = 0;
}
}
return bVar7;
}
| |
52,232 | void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**) | giladroyz[P]FindPeaks/build_O0/_deps/googletest-src/googletest/src/gtest.cc | void ParseGoogleTestFlagsOnlyImpl(int* argc, CharType** argv) {
std::string flagfile_value;
for (int i = 1; i < *argc; i++) {
const std::string arg_string = StreamableToString(argv[i]);
const char* const arg = arg_string.c_str();
using internal::ParseFlag;
bool remove_flag = false;
if (ParseGoogleTestFlag(arg)) {
remove_flag = true;
#if GTEST_USE_OWN_FLAGFILE_FLAG_ && GTEST_HAS_FILE_SYSTEM
} else if (ParseFlag(arg, "flagfile", &flagfile_value)) {
GTEST_FLAG_SET(flagfile, flagfile_value);
LoadFlagsFromFile(flagfile_value);
remove_flag = true;
#endif // GTEST_USE_OWN_FLAGFILE_FLAG_ && GTEST_HAS_FILE_SYSTEM
} else if (arg_string == "--help" || HasGoogleTestFlagPrefix(arg)) {
// Both help flag and unrecognized Google Test flags (excluding
// internal ones) trigger help display.
g_help_flag = true;
}
if (remove_flag) {
// Shift the remainder of the argv list left by one.
for (int j = i + 1; j < *argc; ++j) {
argv[j - 1] = argv[j];
}
// Decrements the argument count.
(*argc)--;
// Terminate the array with nullptr.
argv[*argc] = nullptr;
// We also need to decrement the iterator as we just removed
// an element.
i--;
}
}
if (g_help_flag) {
// We print the help here instead of in RUN_ALL_TESTS(), as the
// latter may not be called at all if the user is using Google
// Test with another testing framework.
PrintColorEncoded(kColorEncodedHelpMessage);
}
} | O0 | cpp | void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**):
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rdi
callq 0xa9d0
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x4e010
movq -0x10(%rbp), %rax
movslq -0x34(%rbp), %rcx
leaq (%rax,%rcx,8), %rsi
leaq -0x58(%rbp), %rdi
callq 0x6bf80
jmp 0x4deb9
leaq -0x58(%rbp), %rdi
callq 0xa260
movq %rax, -0x70(%rbp)
movb $0x0, -0x71(%rbp)
movq -0x70(%rbp), %rdi
callq 0x43af0
movb %al, -0x79(%rbp)
jmp 0x4ded8
movb -0x79(%rbp), %al
testb $0x1, %al
jne 0x4dee1
jmp 0x4df15
movb $0x1, -0x71(%rbp)
jmp 0x4df90
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4e03b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xad98
jmp 0x4e03b
movq -0x70(%rbp), %rdi
leaq 0x2ce14(%rip), %rsi # 0x7ad34
leaq -0x30(%rbp), %rdx
callq 0x442d0
movb %al, -0x7a(%rbp)
jmp 0x4df2e
movb -0x7a(%rbp), %al
testb $0x1, %al
jne 0x4df37
jmp 0x4df5a
leaq 0x60972(%rip), %rdi # 0xae8b0
leaq -0x30(%rbp), %rsi
callq 0xa070
jmp 0x4df49
leaq -0x30(%rbp), %rdi
callq 0x44320
jmp 0x4df54
movb $0x1, -0x71(%rbp)
jmp 0x4df8e
leaq -0x58(%rbp), %rdi
leaq 0x2f03e(%rip), %rsi # 0x7cfa3
callq 0x448f0
testb $0x1, %al
jne 0x4df85
movq -0x70(%rbp), %rdi
callq 0x44510
movb %al, -0x7b(%rbp)
jmp 0x4df7c
movb -0x7b(%rbp), %al
testb $0x1, %al
jne 0x4df85
jmp 0x4df8c
movb $0x1, 0x60875(%rip) # 0xae801
jmp 0x4df8e
jmp 0x4df90
testb $0x1, -0x71(%rbp)
je 0x4dff9
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
movl -0x78(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x4dfd2
movq -0x10(%rbp), %rax
movslq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x10(%rbp), %rax
movl -0x78(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x78(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x78(%rbp)
jmp 0x4df9f
movq -0x8(%rbp), %rax
movl (%rax), %ecx
addl $-0x1, %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq (%rcx), %rcx
movq $0x0, (%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xad98
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x4de93
testb $0x1, 0x607ea(%rip) # 0xae801
je 0x4e029
leaq 0x2ba00(%rip), %rdi # 0x79a20
callq 0x445c0
jmp 0x4e027
jmp 0x4e029
leaq -0x30(%rbp), %rdi
callq 0xad98
addq $0x80, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0xad98
movq -0x60(%rbp), %rdi
callq 0xac00
nopl (%rax)
| _ZN7testing8internal28ParseGoogleTestFlagsOnlyImplIcEEvPiPPT_:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
lea rdi, [rbp+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov [rbp+var_34], 1
loc_4DE93:
mov eax, [rbp+var_34]
mov rcx, [rbp+var_8]
cmp eax, [rcx]
jge loc_4E010
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_34]
lea rsi, [rax+rcx*8]; char *
lea rdi, [rbp+var_58]
call _ZN7testing8internal18StreamableToStringIPcEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<char *>(char * const&)
jmp short $+2
loc_4DEB9:
lea rdi, [rbp+var_58]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void)
mov [rbp+var_70], rax
mov [rbp+var_71], 0
mov rdi, [rbp+var_70]; this
call _ZN7testing8internalL19ParseGoogleTestFlagEPKc; testing::internal::ParseGoogleTestFlag(char const*)
mov [rbp+var_79], al
jmp short $+2
loc_4DED8:
mov al, [rbp+var_79]
test al, 1
jnz short loc_4DEE1
jmp short loc_4DF15
loc_4DEE1:
mov [rbp+var_71], 1
jmp loc_4DF90
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp loc_4E03B
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_4E03B
loc_4DF15:
mov rdi, [rbp+var_70]
lea rsi, aFlagfile; "flagfile"
lea rdx, [rbp+var_30]
call _ZN7testing8internalL9ParseFlagINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcS9_PT_; testing::internal::ParseFlag<std::string>(char const*,char const*,std::string *)
mov [rbp+var_7A], al
jmp short $+2
loc_4DF2E:
mov al, [rbp+var_7A]
test al, 1
jnz short loc_4DF37
jmp short loc_4DF5A
loc_4DF37:
lea rdi, _ZN7testing20FLAGS_gtest_flagfileB5cxx11E; testing::FLAGS_gtest_flagfile
lea rsi, [rbp+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_4DF49:
lea rdi, [rbp+var_30]
call _ZN7testing8internalL17LoadFlagsFromFileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::LoadFlagsFromFile(std::string const&)
jmp short $+2
loc_4DF54:
mov [rbp+var_71], 1
jmp short loc_4DF8E
loc_4DF5A:
lea rdi, [rbp+var_58]
lea rsi, aHelp; "--help"
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, 1
jnz short loc_4DF85
mov rdi, [rbp+var_70]; this
call _ZN7testing8internalL23HasGoogleTestFlagPrefixEPKc; testing::internal::HasGoogleTestFlagPrefix(char const*)
mov [rbp+var_7B], al
jmp short $+2
loc_4DF7C:
mov al, [rbp+var_7B]
test al, 1
jnz short loc_4DF85
jmp short loc_4DF8C
loc_4DF85:
mov cs:_ZN7testing8internal11g_help_flagE, 1; testing::internal::g_help_flag
loc_4DF8C:
jmp short $+2
loc_4DF8E:
jmp short $+2
loc_4DF90:
test [rbp+var_71], 1
jz short loc_4DFF9
mov eax, [rbp+var_34]
add eax, 1
mov [rbp+var_78], eax
loc_4DF9F:
mov eax, [rbp+var_78]
mov rcx, [rbp+var_8]
cmp eax, [rcx]
jge short loc_4DFD2
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_78]
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_10]
mov ecx, [rbp+var_78]
sub ecx, 1
movsxd rcx, ecx
mov [rax+rcx*8], rdx
mov eax, [rbp+var_78]
add eax, 1
mov [rbp+var_78], eax
jmp short loc_4DF9F
loc_4DFD2:
mov rax, [rbp+var_8]
mov ecx, [rax]
add ecx, 0FFFFFFFFh
mov [rax], ecx
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
movsxd rcx, dword ptr [rcx]
mov qword ptr [rax+rcx*8], 0
mov eax, [rbp+var_34]
add eax, 0FFFFFFFFh
mov [rbp+var_34], eax
loc_4DFF9:
lea rdi, [rbp+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov eax, [rbp+var_34]
add eax, 1
mov [rbp+var_34], eax
jmp loc_4DE93
loc_4E010:
test cs:_ZN7testing8internal11g_help_flagE, 1; testing::internal::g_help_flag
jz short loc_4E029
lea rdi, _ZN7testing8internalL24kColorEncodedHelpMessageE; "This program contains tests written usi"...
call _ZN7testing8internalL17PrintColorEncodedEPKc; testing::internal::PrintColorEncoded(char const*)
jmp short $+2
loc_4E027:
jmp short $+2
loc_4E029:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
add rsp, 80h
pop rbp
retn
loc_4E03B:
lea rdi, [rbp+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rbp+var_60]
call __Unwind_Resume
| void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int *a1, const char *a2)
{
long long v2; // rdx
bool *v3; // rcx
const char **v4; // rdx
int j; // [rsp+8h] [rbp-78h]
char v6; // [rsp+Fh] [rbp-71h]
testing::internal *v7; // [rsp+10h] [rbp-70h]
_BYTE v8[36]; // [rsp+28h] [rbp-58h] BYREF
int i; // [rsp+4Ch] [rbp-34h]
_BYTE v10[32]; // [rsp+50h] [rbp-30h] BYREF
const char *v11; // [rsp+70h] [rbp-10h]
int *v12; // [rsp+78h] [rbp-8h]
v12 = a1;
v11 = a2;
std::string::basic_string(v10);
for ( i = 1; i < *v12; ++i )
{
a2 = &v11[8 * i];
testing::internal::StreamableToString<char *>(v8, a2);
v7 = (testing::internal *)std::string::c_str(v8);
v6 = 0;
if ( (testing::internal::ParseGoogleTestFlag(v7, a2, v2, v3) & 1) != 0 )
{
v6 = 1;
}
else if ( (testing::internal::ParseFlag<std::string>(v7, "flagfile", (long long)v10) & 1) != 0 )
{
a2 = v10;
std::string::operator=(&testing::FLAGS_gtest_flagfile[abi:cxx11], v10);
testing::internal::LoadFlagsFromFile((long long)v10);
v6 = 1;
}
else
{
a2 = "--help";
if ( std::operator==<char>((long long)v8, (long long)"--help")
|| (testing::internal::HasGoogleTestFlagPrefix(v7, "--help", v4) & 1) != 0 )
{
testing::internal::g_help_flag = 1;
}
}
if ( (v6 & 1) != 0 )
{
for ( j = i + 1; j < *v12; ++j )
*(_QWORD *)&v11[8 * j - 8] = *(_QWORD *)&v11[8 * j];
*(_QWORD *)&v11[8 * --*v12] = 0LL;
--i;
}
std::string::~string(v8);
}
if ( (testing::internal::g_help_flag & 1) != 0 )
testing::internal::PrintColorEncoded(
(testing::internal *)"This program contains tests written using Google Test. You can use the\n"
"following command line flags to control its behavior:\n"
"\n"
"Test Selection:\n"
" @G--gtest_list_tests@D\n"
" List the names of all tests instead of running them. The name of\n"
" TEST(Foo, Bar) is \"Foo.Bar\".\n"
" @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n"
" Run only the tests whose name matches one of the positive patterns but\n"
" none of the negative patterns. '?' matches any single character; '*'\n"
" matches any substring; ':' separates two patterns.\n"
" @G--gtest_also_run_disabled_tests@D\n"
" Run all disabled tests too.\n"
"\n"
"Test Execution:\n"
" @G--gtest_repeat=@Y[COUNT]@D\n"
" Run the tests repeatedly; use a negative count to repeat forever.\n"
" @G--gtest_shuffle@D\n"
" Randomize tests' orders on every iteration.\n"
" @G--gtest_random_seed=@Y[NUMBER]@D\n"
" Random number seed to use for shuffling test orders (between 1 and\n"
" 99999, or 0 to use a seed based on the current time).\n"
" @G--gtest_recreate_environments_when_repeating@D\n"
" Sets up and tears down the global test environment on each repeat\n"
" of the test.\n"
"\n"
"Test Output:\n"
" @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n"
" Enable/disable colored output. The default is @Gauto@D.\n"
" @G--gtest_brief=1@D\n"
" Only print test failures.\n"
" @G--gtest_print_time=0@D\n"
" Don't print the elapsed time of each test.\n"
" @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n"
" Generate a JSON or XML report in the given directory or with the given\n"
" file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n"
" @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n"
" Stream test results to the given server.\n"
"\n"
"Assertion Behavior:\n"
" @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n"
" Set the default death test style.\n"
" @G--gtest_break_on_failure@D\n"
" Turn assertion failures into debugger break-points.\n"
" @G--gtest_throw_on_failure@D\n"
" Turn assertion failures into C++ exceptions for use by an external\n"
" test framework.\n"
" @G--gtest_catch_exceptions=0@D\n"
" Do not report exceptions as test failures. Instead, allow them\n"
" to crash the program or throw a pop-up (on Windows).\n"
"\n"
"Except for @G--gtest_list_tests@D, you can alternatively set the corresponding\n"
"environment variable of a flag (all letters in upper-case). For example, to\n"
"disable colored text output, you can either specify @G--gtest_color=no@D or set\n"
"the @GGTEST_COLOR@D environment variable to @Gno@D.\n"
"\n"
"For more information, please read the Google Test documentation at\n"
"@Ghttps://github.com/google/googletest/@D. If you find a bug in Google Test\n"
"(not one in your own code or tests), please report it to\n"
"@G<googletestframework@@googlegroups.com>@D.\n",
a2);
std::string::~string(v10);
}
| ParseGoogleTestFlagsOnlyImpl<char>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
LEA RDI,[RBP + -0x30]
CALL 0x0010a9d0
MOV dword ptr [RBP + -0x34],0x1
LAB_0014de93:
MOV EAX,dword ptr [RBP + -0x34]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX]
JGE 0x0014e010
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x34]
LEA RSI,[RAX + RCX*0x8]
LAB_0014deae:
LEA RDI,[RBP + -0x58]
CALL 0x0016bf80
JMP 0x0014deb9
LAB_0014deb9:
LEA RDI,[RBP + -0x58]
CALL 0x0010a260
MOV qword ptr [RBP + -0x70],RAX
MOV byte ptr [RBP + -0x71],0x0
MOV RDI,qword ptr [RBP + -0x70]
LAB_0014dece:
CALL 0x00143af0
MOV byte ptr [RBP + -0x79],AL
JMP 0x0014ded8
LAB_0014ded8:
MOV AL,byte ptr [RBP + -0x79]
TEST AL,0x1
JNZ 0x0014dee1
JMP 0x0014df15
LAB_0014dee1:
MOV byte ptr [RBP + -0x71],0x1
JMP 0x0014df90
LAB_0014df15:
MOV RDI,qword ptr [RBP + -0x70]
LEA RSI,[0x17ad34]
LEA RDX,[RBP + -0x30]
CALL 0x001442d0
MOV byte ptr [RBP + -0x7a],AL
JMP 0x0014df2e
LAB_0014df2e:
MOV AL,byte ptr [RBP + -0x7a]
TEST AL,0x1
JNZ 0x0014df37
JMP 0x0014df5a
LAB_0014df37:
LEA RDI,[0x1ae8b0]
LEA RSI,[RBP + -0x30]
CALL 0x0010a070
JMP 0x0014df49
LAB_0014df49:
LEA RDI,[RBP + -0x30]
CALL 0x00144320
JMP 0x0014df54
LAB_0014df54:
MOV byte ptr [RBP + -0x71],0x1
JMP 0x0014df8e
LAB_0014df5a:
LEA RDI,[RBP + -0x58]
LEA RSI,[0x17cfa3]
CALL 0x001448f0
TEST AL,0x1
JNZ 0x0014df85
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x00144510
MOV byte ptr [RBP + -0x7b],AL
JMP 0x0014df7c
LAB_0014df7c:
MOV AL,byte ptr [RBP + -0x7b]
TEST AL,0x1
JNZ 0x0014df85
JMP 0x0014df8c
LAB_0014df85:
MOV byte ptr [0x001ae801],0x1
LAB_0014df8c:
JMP 0x0014df8e
LAB_0014df8e:
JMP 0x0014df90
LAB_0014df90:
TEST byte ptr [RBP + -0x71],0x1
JZ 0x0014dff9
MOV EAX,dword ptr [RBP + -0x34]
ADD EAX,0x1
MOV dword ptr [RBP + -0x78],EAX
LAB_0014df9f:
MOV EAX,dword ptr [RBP + -0x78]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX]
JGE 0x0014dfd2
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x78]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x78]
SUB ECX,0x1
MOVSXD RCX,ECX
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EAX,dword ptr [RBP + -0x78]
ADD EAX,0x1
MOV dword ptr [RBP + -0x78],EAX
JMP 0x0014df9f
LAB_0014dfd2:
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RAX]
ADD ECX,-0x1
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x8]
MOVSXD RCX,dword ptr [RCX]
MOV qword ptr [RAX + RCX*0x8],0x0
MOV EAX,dword ptr [RBP + -0x34]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x34],EAX
LAB_0014dff9:
LEA RDI,[RBP + -0x58]
CALL 0x0010ad98
MOV EAX,dword ptr [RBP + -0x34]
ADD EAX,0x1
MOV dword ptr [RBP + -0x34],EAX
JMP 0x0014de93
LAB_0014e010:
TEST byte ptr [0x001ae801],0x1
JZ 0x0014e029
LAB_0014e019:
LEA RDI,[0x179a20]
CALL 0x001445c0
LAB_0014e025:
JMP 0x0014e027
LAB_0014e027:
JMP 0x0014e029
LAB_0014e029:
LEA RDI,[RBP + -0x30]
CALL 0x0010ad98
ADD RSP,0x80
POP RBP
RET
|
/* void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**) */
void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int *param_1,char **param_2)
{
int iVar1;
bool bVar2;
byte bVar3;
bool bVar4;
char *pcVar5;
int local_80;
internal local_60 [36];
int local_3c;
string local_38 [32];
char **local_18;
int *local_10;
local_18 = param_2;
local_10 = param_1;
std::__cxx11::string::string(local_38);
for (local_3c = 1; local_3c < *local_10; local_3c = local_3c + 1) {
/* try { // try from 0014deae to 0014deb6 has its CatchHandler @ 0014deea */
StreamableToString<char*>(local_60,local_18 + local_3c);
pcVar5 = (char *)std::__cxx11::string::c_str();
bVar2 = false;
/* try { // try from 0014dece to 0014df76 has its CatchHandler @ 0014defb */
bVar3 = ParseGoogleTestFlag(pcVar5);
if ((bVar3 & 1) == 0) {
bVar4 = ParseFlag<std::__cxx11::string>(pcVar5,"flagfile",local_38);
if (bVar4) {
std::__cxx11::string::operator=((string *)FLAGS_gtest_flagfile_abi_cxx11_,local_38);
LoadFlagsFromFile(local_38);
bVar2 = true;
}
else {
bVar4 = std::operator==((string *)local_60,"--help");
if ((bVar4) || (bVar3 = HasGoogleTestFlagPrefix(pcVar5), (bVar3 & 1) != 0)) {
g_help_flag = 1;
}
}
}
else {
bVar2 = true;
}
iVar1 = local_3c;
if (bVar2) {
while (local_80 = iVar1 + 1, local_80 < *local_10) {
local_18[iVar1] = local_18[local_80];
iVar1 = local_80;
}
*local_10 = *local_10 + -1;
local_18[*local_10] = (char *)0x0;
local_3c = local_3c + -1;
}
std::__cxx11::string::~string((string *)local_60);
}
if ((g_help_flag & 1) != 0) {
/* try { // try from 0014e019 to 0014e024 has its CatchHandler @ 0014deea */
PrintColorEncoded(
"This program contains tests written using Google Test. You can use the\nfollowing command line flags to control its behavior:\n\nTest Selection:\n @G--gtest_list_tests@D\n List the names of all tests instead of running them. The name of\n TEST(Foo, Bar) is \"Foo.Bar\".\n @G--gtest_filter=@YPOSITIVE_PATTERNS[@G-@YNEGATIVE_PATTERNS]@D\n Run only the tests whose name matches one of the positive patterns but\n none of the negative patterns. \'?\' matches any single character; \'*\'\n matches any substring; \':\' separates two patterns.\n @G--gtest_also_run_disabled_tests@D\n Run all disabled tests too.\n\nTest Execution:\n @G--gtest_repeat=@Y[COUNT]@D\n Run the tests repeatedly; use a negative count to repeat forever.\n @G--gtest_shuffle@D\n Randomize tests\' orders on every iteration.\n @G--gtest_random_seed=@Y[NUMBER]@D\n Random number seed to use for shuffling test orders (between 1 and\n 99999, or 0 to use a seed based on the current time).\n @G--gtest_recreate_environments_when_repeating@D\n Sets up and tears down the global test environment on each repeat\n of the test.\n\nTest Output:\n @G--gtest_color=@Y(@Gyes@Y|@Gno@Y|@Gauto@Y)@D\n Enable/disable colored output. The default is @Gauto@D.\n @G--gtest_brief=1@D\n Only print test failures.\n @G--gtest_print_time=0@D\n Don\'t print the elapsed time of each test.\n @G--gtest_output=@Y(@Gjson@Y|@Gxml@Y)[@G:@YDIRECTORY_PATH@G/@Y|@G:@YFILE_PATH]@D\n Generate a JSON or XML report in the given directory or with the given\n file name. @YFILE_PATH@D defaults to @Gtest_detail.xml@D.\n @G--gtest_stream_result_to=@YHOST@G:@YPORT@D\n Stream test results to the given server.\n\nAssertion Behavior:\n @G--gtest_death_test_style=@Y(@Gfast@Y|@Gthreadsafe@Y)@D\n Set the default death test style.\n @G--gtest_break_on_failure@D\n Turn assertion failures into debugger break-points.\n @G--gtest_throw_on_failure@D\n Turn assertion failures into C++ exceptions for use by an external\n test framework.\n @G--gtest_catch_..." /* TRUNCATED STRING LITERAL */
);
}
std::__cxx11::string::~string(local_38);
return;
}
| |
52,233 | minja::ElifTemplateToken::ElifTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/minja.hpp | ElifTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && c) : TemplateToken(Type::Elif, location, pre, post), condition(std::move(c)) {} | O2 | cpp | minja::ElifTemplateToken::ElifTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&):
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %ecx, %r8d
movl %edx, %ecx
movq %rsi, %rdx
movq %rdi, %r14
pushq $0x4
popq %rsi
callq 0x62416
leaq 0x8da87(%rip), %rax # 0xffb68
addq $0x10, %rax
movq %rax, (%r14)
andq $0x0, 0x38(%r14)
movups (%rbx), %xmm0
andq $0x0, 0x8(%rbx)
movups %xmm0, 0x30(%r14)
andq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN5minja17ElifTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE:
push r14
push rbx
push rax
mov rbx, r8
mov r8d, ecx
mov ecx, edx
mov rdx, rsi
mov r14, rdi
push 4
pop rsi
call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling)
lea rax, _ZTVN5minja17ElifTemplateTokenE; `vtable for'minja::ElifTemplateToken
add rax, 10h
mov [r14], rax
and qword ptr [r14+38h], 0
movups xmm0, xmmword ptr [rbx]
and qword ptr [rbx+8], 0
movups xmmword ptr [r14+30h], xmm0
and qword ptr [rbx], 0
add rsp, 8
pop rbx
pop r14
retn
| long long * minja::ElifTemplateToken::ElifTemplateToken(long long a1, long long a2, int a3, int a4, __int128 *a5)
{
long long *result; // rax
__int128 v7; // xmm0
minja::TemplateToken::TemplateToken(a1, 4, a2, a3, a4);
result = &`vtable for'minja::ElifTemplateToken + 2;
*(_QWORD *)a1 = &`vtable for'minja::ElifTemplateToken + 2;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a5;
*((_QWORD *)a5 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a5 = 0LL;
return result;
}
| ElifTemplateToken:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,R8
MOV R8D,ECX
MOV ECX,EDX
MOV RDX,RSI
MOV R14,RDI
PUSH 0x4
POP RSI
CALL 0x00162416
LEA RAX,[0x1ffb68]
ADD RAX,0x10
MOV qword ptr [R14],RAX
AND qword ptr [R14 + 0x38],0x0
MOVUPS XMM0,xmmword ptr [RBX]
AND qword ptr [RBX + 0x8],0x0
MOVUPS xmmword ptr [R14 + 0x30],XMM0
AND qword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::ElifTemplateToken::ElifTemplateToken(minja::Location const&, minja::SpaceHandling,
minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::ElifTemplateToken::ElifTemplateToken
(ElifTemplateToken *this,int8 param_1,int4 param_3,int4 param_4,
int8 *param_5)
{
int8 uVar1;
TemplateToken::TemplateToken((TemplateToken *)this,4,param_1,param_3,param_4);
*(int ***)this = &PTR__ElifTemplateToken_001ffb78;
*(int8 *)(this + 0x38) = 0;
uVar1 = param_5[1];
param_5[1] = 0;
*(int8 *)(this + 0x30) = *param_5;
*(int8 *)(this + 0x38) = uVar1;
*param_5 = 0;
return;
}
| |
52,234 | minja::ElifTemplateToken::ElifTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/minja.hpp | ElifTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && c) : TemplateToken(Type::Elif, location, pre, post), condition(std::move(c)) {} | O3 | cpp | minja::ElifTemplateToken::ElifTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&):
pushq %rbx
movq %rdi, %rbx
leaq 0x943f1(%rip), %rax # 0x12cb58
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x9877c
callq 0x6dfc6
leaq 0x93b55(%rip), %rax # 0x12c2d8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x98798
callq 0x6dfc6
movl $0x40, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x1b8c0
| _ZN5minja17ElifTemplateTokenD0Ev:
push rbx
mov rbx, rdi
lea rax, _ZTVN5minja17ElifTemplateTokenE; `vtable for'minja::ElifTemplateToken
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+38h]
test rdi, rdi
jz short loc_9877C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9877C:
lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken
add rax, 10h
mov [rbx], rax
mov rdi, [rbx+18h]
test rdi, rdi
jz short loc_98798
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_98798:
mov esi, 40h ; '@'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void minja::ElifTemplateToken::~ElifTemplateToken(minja::ElifTemplateToken *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &`vtable for'minja::ElifTemplateToken + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 7);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &`vtable for'minja::TemplateToken + 2;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 3);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
operator delete(this, 0x40uLL);
}
| ~ElifTemplateToken:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x22cb58]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x38]
TEST RDI,RDI
JZ 0x0019877c
CALL 0x0016dfc6
LAB_0019877c:
LEA RAX,[0x22c2d8]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x18]
TEST RDI,RDI
JZ 0x00198798
CALL 0x0016dfc6
LAB_00198798:
MOV ESI,0x40
MOV RDI,RBX
POP RBX
JMP 0x0011b8c0
|
/* minja::ElifTemplateToken::~ElifTemplateToken() */
void __thiscall minja::ElifTemplateToken::~ElifTemplateToken(ElifTemplateToken *this)
{
*(int ***)this = &PTR__ElifTemplateToken_0022cb68;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38));
}
*(int ***)this = &PTR__TemplateToken_0022c2e8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18));
}
operator_delete(this,0x40);
return;
}
| |
52,235 | std::shared_ptr<metrics::Histogram> metrics::Registry::create<metrics::Histogram, char const (&) [24], std::vector<double, std::allocator<double>>, char const (&) [29]>(char const (&) [24], std::vector<double, std::allocator<double>>&&, char const (&) [29]) | nickolajgrishuk[P]metricz-cpp/examples/../include/metrics.hpp | std::shared_ptr<T> create(Args&&... args) {
std::lock_guard<std::mutex> lock(mutex_);
auto metric = std::make_shared<T>(std::forward<Args>(args)...);
metrics_[metric->name()] = metric;
return metric;
} | O1 | cpp | std::shared_ptr<metrics::Histogram> metrics::Registry::create<metrics::Histogram, char const (&) [24], std::vector<double, std::allocator<double>>, char const (&) [29]>(char const (&) [24], std::vector<double, std::allocator<double>>&&, char const (&) [29]):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3250
testl %eax, %eax
jne 0x3f1f
movq $0x0, (%r14)
leaq 0x8(%r14), %r15
leaq 0x7(%rsp), %rdx
movq %r15, %rdi
movq %r14, %rsi
movq %rbp, %rcx
movq %r13, %r8
movq %r12, %r9
callq 0x56f4
leaq 0x28(%rbx), %rdi
movq (%r14), %rsi
addq $0x8, %rsi
callq 0x429c
movq (%r14), %rcx
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, %rdi
movq %r15, %rsi
callq 0x4ab4
movq %rbx, %rdi
callq 0x3160
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x3110
movq %rax, %r14
movq (%r15), %rdi
testq %rdi, %rdi
je 0x3f3b
callq 0x4158
jmp 0x3f3b
movq %rax, %r14
movq %rbx, %rdi
callq 0x3160
movq %r14, %rdi
callq 0x32c0
nop
| _ZN7metrics8Registry6createINS_4InfoEJRA9_KcSt6vectorINS_5LabelESaIS7_EERA32_S3_EEESt10shared_ptrIT_EDpOT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r8
mov r13, rcx
mov rbp, rdx
mov rbx, rsi
mov r14, rdi
mov rdi, rsi
call _pthread_mutex_lock
test eax, eax
jnz short loc_3F1F
mov qword ptr [r14], 0
lea r15, [r14+8]
lea rdx, [rsp+38h+var_31]
mov rdi, r15
mov rsi, r14
mov rcx, rbp
mov r8, r13
mov r9, r12
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN7metrics4InfoESaIS5_EJRA9_KcSt6vectorINS4_5LabelESaISB_EERA32_S7_EEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<metrics::Info,std::allocator<metrics::Info>,char const(&)[9],std::vector<metrics::Label>,char const(&)[32]>(metrics::Info *&,std::_Sp_alloc_shared_tag<std::allocator<metrics::Info>>,char const(&)[9],std::vector<metrics::Label>,char const(&)[32] &&)
lea rdi, [rbx+28h]
mov rsi, [r14]
add rsi, 8
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIN7metrics6MetricEESt4lessIS5_ESaISt4pairIKS5_S9_EEEixERSD_; std::map<std::string,std::shared_ptr<metrics::Metric>>::operator[](std::string const&)
mov rcx, [r14]
mov [rax], rcx
add rax, 8
mov rdi, rax
mov rsi, r15
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEaSERKS2_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_count<(__gnu_cxx::_Lock_policy)2> const&)
mov rdi, rbx
call _pthread_mutex_unlock
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3F1F:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov r14, rax
mov rdi, [r15]
test rdi, rdi
jz short loc_3F3B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
jmp short loc_3F3B
mov r14, rax
loc_3F3B:
mov rdi, rbx
call _pthread_mutex_unlock
mov rdi, r14
call __Unwind_Resume
| _QWORD * metrics::Registry::create<metrics::Info,char const(&)[9],std::vector<metrics::Label>,char const(&)[32]>(
_QWORD *a1,
long long a2,
long long a3,
long long a4,
long long a5)
{
long long v5; // rax
int v9; // eax
_QWORD *v10; // rax
long long v12; // [rsp-6h] [rbp-38h] BYREF
v12 = v5;
v9 = pthread_mutex_lock(a2);
if ( v9 )
std::__throw_system_error(v9);
*a1 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<metrics::Info,std::allocator<metrics::Info>,char const(&)[9],std::vector<metrics::Label>,char const(&)[32]>(
a1 + 1,
a1,
(char *)&v12 + 7,
a3,
a4,
a5,
v12);
v10 = (_QWORD *)std::map<std::string,std::shared_ptr<metrics::Metric>>::operator[](a2 + 40, *a1 + 8LL);
*v10 = *a1;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=(v10 + 1, a1 + 1);
pthread_mutex_unlock(a2);
return a1;
}
| create<metrics::Info,char_const(&)[9],std::vector<metrics::Label,std::allocator<metrics::Label>>,char_const(&)[32]>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,R8
MOV R13,RCX
MOV RBP,RDX
MOV RBX,RSI
MOV R14,RDI
MOV RDI,RSI
CALL 0x00103250
TEST EAX,EAX
JNZ 0x00103f1f
MOV qword ptr [R14],0x0
LEA R15,[R14 + 0x8]
LAB_00103ec7:
LEA RDX,[RSP + 0x7]
MOV RDI,R15
MOV RSI,R14
MOV RCX,RBP
MOV R8,R13
MOV R9,R12
CALL 0x001056f4
LEA RDI,[RBX + 0x28]
MOV RSI,qword ptr [R14]
ADD RSI,0x8
LAB_00103eeb:
CALL 0x0010429c
LAB_00103ef0:
MOV RCX,qword ptr [R14]
MOV qword ptr [RAX],RCX
ADD RAX,0x8
MOV RDI,RAX
MOV RSI,R15
CALL 0x00104ab4
MOV RDI,RBX
CALL 0x00103160
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00103f1f:
MOV EDI,EAX
CALL 0x00103110
|
/* std::shared_ptr<metrics::Info> metrics::Registry::create<metrics::Info, char const (&) [9],
std::vector<metrics::Label, std::allocator<metrics::Label> >, char const (&) [32]>(char const (&)
[9], std::vector<metrics::Label, std::allocator<metrics::Label> >&&, char const (&) [32]) */
char * metrics::Registry::
create<metrics::Info,char_const(&)[9],std::vector<metrics::Label,std::allocator<metrics::Label>>,char_const(&)[32]>
(char *param_1,vector *param_2,char *param_3)
{
int iVar1;
int8 *puVar2;
int1 local_31;
iVar1 = pthread_mutex_lock((pthread_mutex_t *)param_2);
if (iVar1 == 0) {
param_1[0] = '\0';
param_1[1] = '\0';
param_1[2] = '\0';
param_1[3] = '\0';
param_1[4] = '\0';
param_1[5] = '\0';
param_1[6] = '\0';
param_1[7] = '\0';
/* try { // try from 00103ec7 to 00103edf has its CatchHandler @ 00103f38 */
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<metrics::Info,std::allocator<metrics::Info>,char_const(&)[9],std::vector<metrics::Label,std::allocator<metrics::Label>>,char_const(&)[32]>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(param_1 + 8),param_1,&local_31,param_3
);
/* try { // try from 00103eeb to 00103eef has its CatchHandler @ 00103f26 */
puVar2 = (int8 *)
std::
map<std::__cxx11::string,std::shared_ptr<metrics::Metric>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<metrics::Metric>>>>
::operator[]((map<std::__cxx11::string,std::shared_ptr<metrics::Metric>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::shared_ptr<metrics::Metric>>>>
*)(param_2 + 0x28),(string *)(*(long *)param_1 + 8));
*puVar2 = *(int8 *)param_1;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::operator=
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)(puVar2 + 1),
(__shared_count *)(param_1 + 8));
pthread_mutex_unlock((pthread_mutex_t *)param_2);
return param_1;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar1);
}
| |
52,236 | evmone::(anonymous namespace)::InstructionTracer::on_execution_start(evmc_revision, evmc_message const&, std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>) | corpus-core[P]colibri-stateless/build_O3/_deps/evmone_external-src/lib/evmone/tracing.cpp | void on_execution_start(
evmc_revision /*rev*/, const evmc_message& msg, bytes_view code) noexcept override
{
m_contexts.emplace(msg.depth, code.data(), msg.gas);
} | O3 | cpp | evmone::(anonymous namespace)::InstructionTracer::on_execution_start(evmc_revision, evmc_message const&, std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char>>):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r14
movq %rdx, %r15
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x50(%rdi), %rcx
addq $-0x18, %rcx
cmpq %rcx, %rax
je 0x4a16b
movl 0x8(%r15), %ecx
movq 0x10(%r15), %rdx
movl %ecx, (%rax)
movq %r14, 0x8(%rax)
movq %rdx, 0x10(%rax)
addq $0x18, %rax
jmp 0x4a332
movq 0x58(%rbx), %rdx
movq 0x38(%rbx), %rsi
movq %rdx, %r12
subq %rsi, %r12
sarq $0x3, %r12
cmpq $0x1, %rdx
movq %r12, %rcx
adcq $-0x1, %rcx
movq 0x30(%rbx), %rdi
leaq (%rcx,%rcx,4), %r8
subq 0x48(%rbx), %rax
leaq (%rcx,%r8,4), %rcx
sarq $0x3, %rax
movabsq $-0x5555555555555555, %r8 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r8, %rax
subq 0x20(%rbx), %rdi
sarq $0x3, %rdi
imulq %r8, %rdi
addq %rax, %rdi
addq %rcx, %rdi
movabsq $0xaaaaaaaaaaaaaaa, %rax # imm = 0xAAAAAAAAAAAAAAA
cmpq %rax, %rdi
je 0x4a355
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %r13
movq %rdx, %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movq %r13, %rdi
subq %rcx, %rdi
cmpq $0x1, %rdi
ja 0x4a2eb
leaq 0x1(%r12), %rbp
leaq 0x4(,%r12,2), %rcx
cmpq %rcx, %r13
jbe 0x4a230
addq $0x2, %r12
subq %r12, %r13
andq $-0x2, %r13
leaq (%rax,%r13,4), %r12
addq $0x8, %rdx
cmpq %rsi, %r12
jae 0x4a2a8
subq %rsi, %rdx
je 0x4a2b9
movq %r12, %rdi
jmp 0x4a2b4
movq %rbp, 0x10(%rsp)
cmpq $0x1, %r13
adcq %r13, %r13
leaq 0x2(%r13), %rbp
movq %rbp, %rax
shrq $0x3c, %rax
jne 0x4a345
leaq (,%rbp,8), %rdi
callq 0x211f0
subq %r12, %r13
andq $-0x2, %r13
movq %rax, 0x8(%rsp)
leaq (%rax,%r13,4), %r12
movq 0x38(%rbx), %rsi
movq 0x58(%rbx), %rdx
addq $0x8, %rdx
subq %rsi, %rdx
je 0x4a283
movq %r12, %rdi
callq 0x21360
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rsi
shlq $0x3, %rsi
callq 0x21200
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %rbp, 0x18(%rbx)
movq 0x10(%rsp), %rbp
jmp 0x4a2b9
subq %rsi, %rdx
je 0x4a2b9
leaq (%r12,%rbp,8), %rdi
subq %rdx, %rdi
callq 0x21360
movq %r12, 0x38(%rbx)
movq (%r12), %rax
movq %rax, 0x28(%rbx)
movl $0x1f8, %ecx # imm = 0x1F8
addq %rcx, %rax
movq %rax, 0x30(%rbx)
leaq (%r12,%rbp,8), %rax
addq $-0x8, %rax
movq %rax, 0x58(%rbx)
movq (%rax), %rax
movq %rax, 0x48(%rbx)
addq %rcx, %rax
movq %rax, 0x50(%rbx)
movl $0x1f8, %edi # imm = 0x1F8
callq 0x211f0
movq 0x58(%rbx), %rcx
movq %rax, 0x8(%rcx)
movq 0x40(%rbx), %rax
movl 0x8(%r15), %ecx
movq 0x10(%r15), %rdx
movl %ecx, (%rax)
movq %r14, 0x8(%rax)
movq %rdx, 0x10(%rax)
movq 0x58(%rbx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x58(%rbx)
movq 0x8(%rax), %rax
movq %rax, 0x48(%rbx)
leaq 0x1f8(%rax), %rcx
movq %rcx, 0x50(%rbx)
movq %rax, 0x40(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
shrq $0x3d, %rbp
je 0x4a350
callq 0x21190
callq 0x210b0
leaq 0x3c4e4(%rip), %rdi # 0x86840
callq 0x21110
movq %rax, %rdi
callq 0x2e015
nop
| _ZN6evmone12_GLOBAL__N_117InstructionTracer18on_execution_startE13evmc_revisionRK12evmc_messageSt17basic_string_viewIhN4evmc11byte_traitsIhEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, r8
mov r15, rdx
mov rbx, rdi
mov rax, [rdi+40h]
mov rcx, [rdi+50h]
add rcx, 0FFFFFFFFFFFFFFE8h
cmp rax, rcx
jz short loc_4A16B
mov ecx, [r15+8]
mov rdx, [r15+10h]
mov [rax], ecx
mov [rax+8], r14
mov [rax+10h], rdx
add rax, 18h
jmp loc_4A332
loc_4A16B:
mov rdx, [rbx+58h]
mov rsi, [rbx+38h]
mov r12, rdx
sub r12, rsi
sar r12, 3
cmp rdx, 1
mov rcx, r12
adc rcx, 0FFFFFFFFFFFFFFFFh
mov rdi, [rbx+30h]
lea r8, [rcx+rcx*4]
sub rax, [rbx+48h]
lea rcx, [rcx+r8*4]
sar rax, 3
mov r8, 0AAAAAAAAAAAAAAABh
imul rax, r8
sub rdi, [rbx+20h]
sar rdi, 3
imul rdi, r8
add rdi, rax
add rdi, rcx
mov rax, 0AAAAAAAAAAAAAAAh
cmp rdi, rax
jz loc_4A355
mov rax, [rbx+10h]
mov r13, [rbx+18h]
mov rcx, rdx
sub rcx, rax
sar rcx, 3
mov rdi, r13
sub rdi, rcx
cmp rdi, 1
ja loc_4A2EB
lea rbp, [r12+1]
lea rcx, ds:4[r12*2]
cmp r13, rcx
jbe short loc_4A230
add r12, 2
sub r13, r12
and r13, 0FFFFFFFFFFFFFFFEh
lea r12, [rax+r13*4]
add rdx, 8
cmp r12, rsi
jnb loc_4A2A8
sub rdx, rsi
jz loc_4A2B9
mov rdi, r12
jmp loc_4A2B4
loc_4A230:
mov [rsp+48h+var_38], rbp
cmp r13, 1
adc r13, r13
lea rbp, [r13+2]
mov rax, rbp
shr rax, 3Ch
jnz loc_4A345
lea rdi, ds:0[rbp*8]; unsigned __int64
call __Znwm; operator new(ulong)
sub r13, r12
and r13, 0FFFFFFFFFFFFFFFEh
mov [rsp+48h+var_40], rax
lea r12, [rax+r13*4]
mov rsi, [rbx+38h]
mov rdx, [rbx+58h]
add rdx, 8
sub rdx, rsi
jz short loc_4A283
mov rdi, r12
call _memmove
loc_4A283:
mov rdi, [rbx+10h]; void *
mov rsi, [rbx+18h]
shl rsi, 3; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rax, [rsp+48h+var_40]
mov [rbx+10h], rax
mov [rbx+18h], rbp
mov rbp, [rsp+48h+var_38]
jmp short loc_4A2B9
loc_4A2A8:
sub rdx, rsi
jz short loc_4A2B9
lea rdi, [r12+rbp*8]
sub rdi, rdx
loc_4A2B4:
call _memmove
loc_4A2B9:
mov [rbx+38h], r12
mov rax, [r12]
mov [rbx+28h], rax
mov ecx, 1F8h
add rax, rcx
mov [rbx+30h], rax
lea rax, [r12+rbp*8]
add rax, 0FFFFFFFFFFFFFFF8h
mov [rbx+58h], rax
mov rax, [rax]
mov [rbx+48h], rax
add rax, rcx
mov [rbx+50h], rax
loc_4A2EB:
mov edi, 1F8h; unsigned __int64
call __Znwm; operator new(ulong)
mov rcx, [rbx+58h]
mov [rcx+8], rax
mov rax, [rbx+40h]
mov ecx, [r15+8]
mov rdx, [r15+10h]
mov [rax], ecx
mov [rax+8], r14
mov [rax+10h], rdx
mov rax, [rbx+58h]
lea rcx, [rax+8]
mov [rbx+58h], rcx
mov rax, [rax+8]
mov [rbx+48h], rax
lea rcx, [rax+1F8h]
mov [rbx+50h], rcx
loc_4A332:
mov [rbx+40h], rax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_4A345:
shr rbp, 3Dh
jz short loc_4A350
call __ZSt28__throw_bad_array_new_lengthv; std::__throw_bad_array_new_length(void)
loc_4A350:
call __ZSt17__throw_bad_allocv; std::__throw_bad_alloc(void)
loc_4A355:
lea rdi, aCannotCreateSt_0; "cannot create std::deque larger than ma"...
call __ZSt20__throw_length_errorPKc; std::__throw_length_error(char const*)
mov rdi, rax
call __clang_call_terminate
| long long evmone::`anonymous namespace'::InstructionTracer::on_execution_start(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5)
{
long long v8; // rax
int v9; // ecx
long long v10; // rdx
long long result; // rax
long long v12; // rdx
unsigned long long v13; // rsi
long long v14; // r12
long long v15; // rax
unsigned long long v16; // r13
long long v17; // rbp
unsigned long long v18; // r13
long long *v19; // r12
long long v20; // rdx
char *v21; // rdi
unsigned long long v22; // r13
unsigned long long v23; // rbp
long long v24; // rax
unsigned long long v25; // r13
long long v26; // rdx
long long v27; // rax
long long *v28; // rax
long long v29; // rax
long long v30; // rax
long long v31; // rdx
long long *v32; // rcx
long long v33; // [rsp+8h] [rbp-40h]
long long v34; // [rsp+10h] [rbp-38h]
v8 = *(_QWORD *)(a1 + 64);
if ( v8 == *(_QWORD *)(a1 + 80) - 24LL )
{
v12 = *(_QWORD *)(a1 + 88);
v13 = *(_QWORD *)(a1 + 56);
v14 = (long long)(v12 - v13) >> 3;
if ( 21 * ((v12 == 0) + v14 - 1)
+ 0xAAAAAAAAAAAAAAABLL * ((v8 - *(_QWORD *)(a1 + 72)) >> 3)
- 0x5555555555555555LL * ((long long)(*(_QWORD *)(a1 + 48) - *(_QWORD *)(a1 + 32)) >> 3) == 0xAAAAAAAAAAAAAAALL )
std::__throw_length_error("cannot create std::deque larger than max_size()");
v15 = *(_QWORD *)(a1 + 16);
v16 = *(_QWORD *)(a1 + 24);
if ( v16 - ((v12 - v15) >> 3) > 1 )
goto LABEL_17;
v17 = v14 + 1;
if ( v16 <= 2 * v14 + 4 )
{
v34 = v14 + 1;
v22 = v16 + (v16 == 0) + v16;
v23 = v22 + 2;
if ( (v22 + 2) >> 60 )
{
if ( v23 >> 61 )
std::__throw_bad_array_new_length();
std::__throw_bad_alloc();
}
v24 = operator new(8 * v23);
v25 = (v22 - v14) & 0xFFFFFFFFFFFFFFFELL;
v33 = v24;
v19 = (long long *)(v24 + 4 * v25);
if ( *(_QWORD *)(a1 + 88) + 8LL != *(_QWORD *)(a1 + 56) )
memmove(v24 + 4 * v25);
operator delete(*(void **)(a1 + 16), 8LL * *(_QWORD *)(a1 + 24));
*(_QWORD *)(a1 + 16) = v33;
*(_QWORD *)(a1 + 24) = v23;
v17 = v34;
goto LABEL_16;
}
v18 = (v16 - (v14 + 2)) & 0xFFFFFFFFFFFFFFFELL;
v19 = (long long *)(v15 + 4 * v18);
v20 = v12 + 8;
if ( (unsigned long long)v19 >= v13 )
{
v26 = v20 - v13;
if ( v26 )
{
v21 = (char *)&v19[v17] - v26;
goto LABEL_15;
}
}
else if ( v20 != v13 )
{
v21 = (char *)(v15 + 4 * v18);
LABEL_15:
memmove(v21);
}
LABEL_16:
*(_QWORD *)(a1 + 56) = v19;
v27 = *v19;
*(_QWORD *)(a1 + 40) = *v19;
*(_QWORD *)(a1 + 48) = v27 + 504;
v28 = &v19[v17 - 1];
*(_QWORD *)(a1 + 88) = v28;
v29 = *v28;
*(_QWORD *)(a1 + 72) = v29;
*(_QWORD *)(a1 + 80) = v29 + 504;
LABEL_17:
*(_QWORD *)(*(_QWORD *)(a1 + 88) + 8LL) = operator new(0x1F8uLL);
v30 = *(_QWORD *)(a1 + 64);
v31 = *(_QWORD *)(a3 + 16);
*(_DWORD *)v30 = *(_DWORD *)(a3 + 8);
*(_QWORD *)(v30 + 8) = a5;
*(_QWORD *)(v30 + 16) = v31;
v32 = (long long *)(*(_QWORD *)(a1 + 88) + 8LL);
*(_QWORD *)(a1 + 88) = v32;
result = *v32;
*(_QWORD *)(a1 + 72) = *v32;
*(_QWORD *)(a1 + 80) = result + 504;
goto LABEL_18;
}
v9 = *(_DWORD *)(a3 + 8);
v10 = *(_QWORD *)(a3 + 16);
*(_DWORD *)v8 = v9;
*(_QWORD *)(v8 + 8) = a5;
*(_QWORD *)(v8 + 16) = v10;
result = v8 + 24;
LABEL_18:
*(_QWORD *)(a1 + 64) = result;
return result;
}
| on_execution_start:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,R8
MOV R15,RDX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x40]
MOV RCX,qword ptr [RDI + 0x50]
ADD RCX,-0x18
CMP RAX,RCX
JZ 0x0014a16b
MOV ECX,dword ptr [R15 + 0x8]
MOV RDX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],ECX
MOV qword ptr [RAX + 0x8],R14
MOV qword ptr [RAX + 0x10],RDX
ADD RAX,0x18
JMP 0x0014a332
LAB_0014a16b:
MOV RDX,qword ptr [RBX + 0x58]
MOV RSI,qword ptr [RBX + 0x38]
MOV R12,RDX
SUB R12,RSI
SAR R12,0x3
CMP RDX,0x1
MOV RCX,R12
ADC RCX,-0x1
MOV RDI,qword ptr [RBX + 0x30]
LEA R8,[RCX + RCX*0x4]
SUB RAX,qword ptr [RBX + 0x48]
LEA RCX,[RCX + R8*0x4]
SAR RAX,0x3
MOV R8,-0x5555555555555555
IMUL RAX,R8
SUB RDI,qword ptr [RBX + 0x20]
SAR RDI,0x3
IMUL RDI,R8
ADD RDI,RAX
ADD RDI,RCX
MOV RAX,0xaaaaaaaaaaaaaaa
CMP RDI,RAX
JZ 0x0014a355
MOV RAX,qword ptr [RBX + 0x10]
MOV R13,qword ptr [RBX + 0x18]
MOV RCX,RDX
SUB RCX,RAX
SAR RCX,0x3
MOV RDI,R13
SUB RDI,RCX
CMP RDI,0x1
JA 0x0014a2eb
LEA RBP,[R12 + 0x1]
LEA RCX,[0x4 + R12*0x2]
CMP R13,RCX
JBE 0x0014a230
ADD R12,0x2
SUB R13,R12
AND R13,-0x2
LEA R12,[RAX + R13*0x4]
ADD RDX,0x8
CMP R12,RSI
JNC 0x0014a2a8
SUB RDX,RSI
JZ 0x0014a2b9
MOV RDI,R12
JMP 0x0014a2b4
LAB_0014a230:
MOV qword ptr [RSP + 0x10],RBP
CMP R13,0x1
ADC R13,R13
LEA RBP,[R13 + 0x2]
MOV RAX,RBP
SHR RAX,0x3c
JNZ 0x0014a345
LEA RDI,[RBP*0x8]
LAB_0014a255:
CALL 0x001211f0
LAB_0014a25a:
SUB R13,R12
AND R13,-0x2
MOV qword ptr [RSP + 0x8],RAX
LEA R12,[RAX + R13*0x4]
MOV RSI,qword ptr [RBX + 0x38]
MOV RDX,qword ptr [RBX + 0x58]
ADD RDX,0x8
SUB RDX,RSI
JZ 0x0014a283
MOV RDI,R12
CALL 0x00121360
LAB_0014a283:
MOV RDI,qword ptr [RBX + 0x10]
MOV RSI,qword ptr [RBX + 0x18]
SHL RSI,0x3
CALL 0x00121200
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],RBP
MOV RBP,qword ptr [RSP + 0x10]
JMP 0x0014a2b9
LAB_0014a2a8:
SUB RDX,RSI
JZ 0x0014a2b9
LEA RDI,[R12 + RBP*0x8]
SUB RDI,RDX
LAB_0014a2b4:
CALL 0x00121360
LAB_0014a2b9:
MOV qword ptr [RBX + 0x38],R12
MOV RAX,qword ptr [R12]
MOV qword ptr [RBX + 0x28],RAX
MOV ECX,0x1f8
ADD RAX,RCX
MOV qword ptr [RBX + 0x30],RAX
LEA RAX,[R12 + RBP*0x8]
ADD RAX,-0x8
MOV qword ptr [RBX + 0x58],RAX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBX + 0x48],RAX
ADD RAX,RCX
MOV qword ptr [RBX + 0x50],RAX
LAB_0014a2eb:
MOV EDI,0x1f8
CALL 0x001211f0
MOV RCX,qword ptr [RBX + 0x58]
MOV qword ptr [RCX + 0x8],RAX
MOV RAX,qword ptr [RBX + 0x40]
MOV ECX,dword ptr [R15 + 0x8]
MOV RDX,qword ptr [R15 + 0x10]
MOV dword ptr [RAX],ECX
MOV qword ptr [RAX + 0x8],R14
MOV qword ptr [RAX + 0x10],RDX
MOV RAX,qword ptr [RBX + 0x58]
LEA RCX,[RAX + 0x8]
MOV qword ptr [RBX + 0x58],RCX
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x48],RAX
LEA RCX,[RAX + 0x1f8]
MOV qword ptr [RBX + 0x50],RCX
LAB_0014a332:
MOV qword ptr [RBX + 0x40],RAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0014a345:
SHR RBP,0x3d
JZ 0x0014a350
CALL 0x00121190
LAB_0014a350:
CALL 0x001210b0
LAB_0014a355:
LEA RDI,[0x186840]
CALL 0x00121110
|
/* evmone::(anonymous namespace)::InstructionTracer::on_execution_start(evmc_revision, evmc_message
const&, std::basic_string_view<unsigned char, evmc::byte_traits<unsigned char> >) */
void evmone::(anonymous_namespace)::InstructionTracer::on_execution_start
(long param_1,int8 param_2,long param_3,int8 param_4,int8 param_5)
{
int8 uVar1;
long *__src;
ulong uVar2;
void *pvVar3;
int4 *puVar4;
size_t sVar5;
long *__dest;
long lVar6;
long *__dest_00;
long lVar7;
puVar4 = *(int4 **)(param_1 + 0x40);
if (puVar4 != (int4 *)(*(long *)(param_1 + 0x50) + -0x18)) {
uVar1 = *(int8 *)(param_3 + 0x10);
*puVar4 = *(int4 *)(param_3 + 8);
*(int8 *)(puVar4 + 2) = param_5;
*(int8 *)(puVar4 + 4) = uVar1;
puVar4 = puVar4 + 6;
goto LAB_0014a332;
}
lVar7 = *(long *)(param_1 + 0x58);
__src = *(long **)(param_1 + 0x38);
lVar6 = lVar7 - (long)__src >> 3;
if ((*(long *)(param_1 + 0x30) - *(long *)(param_1 + 0x20) >> 3) * -0x5555555555555555 +
((long)puVar4 - *(long *)(param_1 + 0x48) >> 3) * -0x5555555555555555 +
(lVar6 + -1 + (ulong)(lVar7 == 0)) * 0x15 == 0xaaaaaaaaaaaaaaa) {
/* WARNING: Subroutine does not return */
std::__throw_length_error("cannot create std::deque larger than max_size()");
}
uVar2 = *(ulong *)(param_1 + 0x18);
if (uVar2 - (lVar7 - *(long *)(param_1 + 0x10) >> 3) < 2) {
if (lVar6 * 2 + 4U < uVar2) {
__dest_00 = (long *)(*(long *)(param_1 + 0x10) +
(uVar2 - (lVar6 + 2) & 0xfffffffffffffffe) * 4);
if (__dest_00 < __src) {
sVar5 = (lVar7 + 8) - (long)__src;
__dest = __dest_00;
if (sVar5 != 0) {
LAB_0014a2b4:
memmove(__dest,__src,sVar5);
}
}
else {
sVar5 = (lVar7 + 8) - (long)__src;
if (sVar5 != 0) {
__dest = (long *)((long)__dest_00 + ((lVar6 + 1) * 8 - sVar5));
goto LAB_0014a2b4;
}
}
}
else {
lVar7 = uVar2 * 2 + (ulong)(uVar2 == 0);
uVar2 = lVar7 + 2;
if (uVar2 >> 0x3c != 0) {
if (uVar2 >> 0x3d != 0) {
std::__throw_bad_array_new_length();
}
/* WARNING: Subroutine does not return */
std::__throw_bad_alloc();
}
/* try { // try from 0014a255 to 0014a259 has its CatchHandler @ 0014a361 */
pvVar3 = operator_new(uVar2 * 8);
__dest_00 = (long *)((long)pvVar3 + (lVar7 - lVar6 & 0xfffffffffffffffeU) * 4);
sVar5 = (*(long *)(param_1 + 0x58) + 8) - (long)*(void **)(param_1 + 0x38);
if (sVar5 != 0) {
memmove(__dest_00,*(void **)(param_1 + 0x38),sVar5);
}
operator_delete(*(void **)(param_1 + 0x10),*(long *)(param_1 + 0x18) << 3);
*(void **)(param_1 + 0x10) = pvVar3;
*(ulong *)(param_1 + 0x18) = uVar2;
}
*(long **)(param_1 + 0x38) = __dest_00;
lVar7 = *__dest_00;
*(long *)(param_1 + 0x28) = lVar7;
*(long *)(param_1 + 0x30) = lVar7 + 0x1f8;
*(long **)(param_1 + 0x58) = __dest_00 + lVar6;
lVar7 = __dest_00[lVar6];
*(long *)(param_1 + 0x48) = lVar7;
*(long *)(param_1 + 0x50) = lVar7 + 0x1f8;
}
/* try { // try from 0014a2eb to 0014a360 has its CatchHandler @ 0014a361 */
pvVar3 = operator_new(0x1f8);
*(void **)(*(long *)(param_1 + 0x58) + 8) = pvVar3;
puVar4 = *(int4 **)(param_1 + 0x40);
uVar1 = *(int8 *)(param_3 + 0x10);
*puVar4 = *(int4 *)(param_3 + 8);
*(int8 *)(puVar4 + 2) = param_5;
*(int8 *)(puVar4 + 4) = uVar1;
lVar7 = *(long *)(param_1 + 0x58);
*(long *)(param_1 + 0x58) = lVar7 + 8;
puVar4 = *(int4 **)(lVar7 + 8);
*(int4 **)(param_1 + 0x48) = puVar4;
*(int4 **)(param_1 + 0x50) = puVar4 + 0x7e;
LAB_0014a332:
*(int4 **)(param_1 + 0x40) = puVar4;
return;
}
| |
52,237 | my_free | eloqsql/mysys/my_malloc.c | void my_free(void *ptr)
{
my_memory_header *mh;
size_t old_size;
my_bool old_flags;
DBUG_ENTER("my_free");
DBUG_PRINT("my",("ptr: %p", ptr));
if (ptr == NULL)
DBUG_VOID_RETURN;
mh= USER_TO_HEADER(ptr);
old_size= mh->m_size & ~1;
old_flags= mh->m_size & 1;
PSI_CALL_memory_free(mh->m_key, old_size, mh->m_owner);
update_malloc_size(- (longlong) old_size - HEADER_SIZE, old_flags);
#ifndef SAFEMALLOC
/*
Trash memory if not safemalloc. We don't have to do this if safemalloc
is used as safemalloc will also do trashing
*/
TRASH_FREE(ptr, old_size);
#endif
sf_free(mh);
DBUG_VOID_RETURN;
} | O3 | c | my_free:
testq %rdi, %rdi
je 0x2b91f
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq -0x18(%rdi), %rbx
movq -0x18(%rdi), %rdx
movq -0x10(%rdi), %r14
movq %r14, %r15
andq $-0x2, %r15
leaq 0x2c3f39(%rip), %rax # 0x2ef820
movq (%rax), %rax
movl -0x8(%rdi), %edi
movq %r15, %rsi
callq *0x3f8(%rax)
movq $-0x18, %rdi
subq %r15, %rdi
andl $0x1, %r14d
movl %r14d, %esi
callq *0x2c408b(%rip) # 0x2ef998
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x24400
retq
| my_free:
test rdi, rdi
jz short locret_2B91F
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
lea rbx, [rdi-18h]
mov rdx, [rdi-18h]
mov r14, [rdi-10h]
mov r15, r14
and r15, 0FFFFFFFFFFFFFFFEh
lea rax, PSI_server
mov rax, [rax]
mov edi, [rdi-8]
mov rsi, r15
call qword ptr [rax+3F8h]
mov rdi, 0FFFFFFFFFFFFFFE8h
sub rdi, r15
and r14d, 1
mov esi, r14d
call cs:update_malloc_size
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _free
locret_2B91F:
retn
| long long my_free(long long a1)
{
long long result; // rax
if ( a1 )
{
(*((void ( **)(_QWORD, unsigned long long, _QWORD))PSI_server[0] + 127))(
*(unsigned int *)(a1 - 8),
*(_QWORD *)(a1 - 16) & 0xFFFFFFFFFFFFFFFELL,
*(_QWORD *)(a1 - 24));
update_malloc_size[0]();
return free(a1 - 24);
}
return result;
}
| my_free:
TEST RDI,RDI
JZ 0x0012b91f
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
LEA RBX,[RDI + -0x18]
MOV RDX,qword ptr [RDI + -0x18]
MOV R14,qword ptr [RDI + -0x10]
MOV R15,R14
AND R15,-0x2
LEA RAX,[0x3ef820]
MOV RAX,qword ptr [RAX]
MOV EDI,dword ptr [RDI + -0x8]
MOV RSI,R15
CALL qword ptr [RAX + 0x3f8]
MOV RDI,-0x18
SUB RDI,R15
AND R14D,0x1
MOV ESI,R14D
CALL qword ptr [0x003ef998]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00124400
LAB_0012b91f:
RET
|
void my_free(long param_1)
{
ulong uVar1;
ulong uVar2;
if (param_1 != 0) {
uVar1 = *(ulong *)(param_1 + -0x10);
uVar2 = uVar1 & 0xfffffffffffffffe;
(**(code **)(PSI_server + 0x3f8))
(*(int4 *)(param_1 + -8),uVar2,*(int8 *)(param_1 + -0x18));
(*(code *)update_malloc_size)(-0x18 - uVar2,(uint)uVar1 & 1);
free((void *)(param_1 + -0x18));
return;
}
return;
}
| |
52,238 | ma_check_bitmap_data | eloqsql/storage/maria/ma_bitmap.c | my_bool _ma_check_bitmap_data(MARIA_HA *info, enum en_page_type page_type,
uint empty_space, uint bitmap_pattern)
{
uint bits;
switch (page_type) {
case UNALLOCATED_PAGE:
case MAX_PAGE_TYPE:
bits= 0;
break;
case HEAD_PAGE:
bits= _ma_free_size_to_head_pattern(&info->s->bitmap, empty_space);
break;
case TAIL_PAGE:
bits= free_size_to_tail_pattern(&info->s->bitmap, empty_space);
break;
case BLOB_PAGE:
bits= FULL_TAIL_PAGE;
break;
default:
bits= 0; /* to satisfy compiler */
DBUG_ASSERT(0);
}
return (bitmap_pattern != bits);
} | O3 | c | ma_check_bitmap_data:
pushq %rbp
movq %rsp, %rbp
cmpl $0x3, %esi
je 0x57846
xorl %eax, %eax
cmpl $0x2, %esi
je 0x57821
cmpl $0x1, %esi
jne 0x5784b
movq (%rdi), %rsi
movl $0x4, %eax
cmpl %edx, 0xb24(%rsi)
ja 0x5784b
movl $0x3, %eax
cmpl %edx, 0xb20(%rsi)
ja 0x5784b
movl $0x2, %eax
cmpl %edx, 0xb1c(%rsi)
ja 0x5784b
xorl %eax, %eax
cmpl %edx, 0xb18(%rsi)
seta %al
jmp 0x5784b
movq (%rdi), %rsi
cmpl %edx, 0xb18(%rsi)
jbe 0x5784b
movl $0x7, %eax
cmpl %edx, 0xb30(%rsi)
ja 0x5784b
xorl %eax, %eax
cmpl 0xb2c(%rsi), %edx
adcl $0x5, %eax
jmp 0x5784b
movl $0x7, %eax
cmpl %ecx, %eax
setne %al
popq %rbp
retq
| _ma_check_bitmap_data:
push rbp
mov rbp, rsp
cmp esi, 3
jz short loc_57846
xor eax, eax
cmp esi, 2
jz short loc_57821
cmp esi, 1
jnz short loc_5784B
mov rsi, [rdi]
mov eax, 4
cmp [rsi+0B24h], edx
ja short loc_5784B
mov eax, 3
cmp [rsi+0B20h], edx
ja short loc_5784B
mov eax, 2
cmp [rsi+0B1Ch], edx
ja short loc_5784B
xor eax, eax
cmp [rsi+0B18h], edx
setnbe al
jmp short loc_5784B
loc_57821:
mov rsi, [rdi]
cmp [rsi+0B18h], edx
jbe short loc_5784B
mov eax, 7
cmp [rsi+0B30h], edx
ja short loc_5784B
xor eax, eax
cmp edx, [rsi+0B2Ch]
adc eax, 5
jmp short loc_5784B
loc_57846:
mov eax, 7
loc_5784B:
cmp eax, ecx
setnz al
pop rbp
retn
| bool ma_check_bitmap_data(long long *a1, int a2, unsigned int a3, int a4)
{
int v4; // eax
_DWORD *v5; // rsi
long long v6; // rsi
if ( a2 == 3 )
{
v4 = 7;
}
else
{
v4 = 0;
if ( a2 == 2 )
{
v6 = *a1;
if ( *(_DWORD *)(*a1 + 2840) > a3 )
{
v4 = 7;
if ( *(_DWORD *)(v6 + 2864) <= a3 )
v4 = (a3 < *(_DWORD *)(v6 + 2860)) + 5;
}
}
else if ( a2 == 1 )
{
v5 = (_DWORD *)*a1;
v4 = 4;
if ( *(_DWORD *)(*a1 + 2852) <= a3 )
{
v4 = 3;
if ( v5[712] <= a3 )
{
v4 = 2;
if ( v5[711] <= a3 )
v4 = v5[710] > a3;
}
}
}
}
return v4 != a4;
}
| _ma_check_bitmap_data:
PUSH RBP
MOV RBP,RSP
CMP ESI,0x3
JZ 0x00157846
XOR EAX,EAX
CMP ESI,0x2
JZ 0x00157821
CMP ESI,0x1
JNZ 0x0015784b
MOV RSI,qword ptr [RDI]
MOV EAX,0x4
CMP dword ptr [RSI + 0xb24],EDX
JA 0x0015784b
MOV EAX,0x3
CMP dword ptr [RSI + 0xb20],EDX
JA 0x0015784b
MOV EAX,0x2
CMP dword ptr [RSI + 0xb1c],EDX
JA 0x0015784b
XOR EAX,EAX
CMP dword ptr [RSI + 0xb18],EDX
SETA AL
JMP 0x0015784b
LAB_00157821:
MOV RSI,qword ptr [RDI]
CMP dword ptr [RSI + 0xb18],EDX
JBE 0x0015784b
MOV EAX,0x7
CMP dword ptr [RSI + 0xb30],EDX
JA 0x0015784b
XOR EAX,EAX
CMP EDX,dword ptr [RSI + 0xb2c]
ADC EAX,0x5
JMP 0x0015784b
LAB_00157846:
MOV EAX,0x7
LAB_0015784b:
CMP EAX,ECX
SETNZ AL
POP RBP
RET
|
bool _ma_check_bitmap_data(long *param_1,int param_2,uint param_3,uint param_4)
{
long lVar1;
uint uVar2;
if (param_2 == 3) {
uVar2 = 7;
}
else {
uVar2 = 0;
if (param_2 == 2) {
lVar1 = *param_1;
if ((param_3 < *(uint *)(lVar1 + 0xb18)) && (uVar2 = 7, *(uint *)(lVar1 + 0xb30) <= param_3))
{
uVar2 = (param_3 < *(uint *)(lVar1 + 0xb2c)) + 5;
}
}
else if (param_2 == 1) {
lVar1 = *param_1;
uVar2 = 4;
if (((*(uint *)(lVar1 + 0xb24) <= param_3) && (uVar2 = 3, *(uint *)(lVar1 + 0xb20) <= param_3)
) && (uVar2 = 2, *(uint *)(lVar1 + 0xb1c) <= param_3)) {
uVar2 = (uint)(param_3 < *(uint *)(lVar1 + 0xb18));
}
}
}
return uVar2 != param_4;
}
| |
52,239 | testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::~Matcher() | AlayaLite/build_O3/_deps/googletest-src/googletest/include/gtest/gtest-matchers.h | class GTEST_API_ Matcher<internal::StringView>
: public internal::MatcherBase<internal::StringView> {
public:
Matcher() = default;
explicit Matcher(const MatcherInterface<const internal::StringView&>* impl)
: internal::MatcherBase<internal::StringView>(impl) {}
explicit Matcher(const MatcherInterface<internal::StringView>* impl)
: internal::MatcherBase<internal::StringView>(impl) {}
template <typename M, typename = typename std::remove_reference<
M>::type::is_gtest_matcher>
Matcher(M&& m) // NOLINT
: internal::MatcherBase<internal::StringView>(std::forward<M>(m)) {}
// Allows the user to write str instead of Eq(str) sometimes, where
// str is a std::string object.
Matcher(const std::string& s); // NOLINT
// Allows the user to write "foo" instead of Eq("foo") sometimes.
Matcher(const char* s); // NOLINT
// Allows the user to pass absl::string_views or std::string_views directly.
Matcher(internal::StringView s); // NOLINT
} | O3 | c | testing::Matcher<std::basic_string_view<char, std::char_traits<char>>>::~Matcher():
pushq %rbx
movq %rdi, %rbx
callq 0x7b444
movl $0x18, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x11120
nop
| _ZN7testing7MatcherISt17basic_string_viewIcSt11char_traitsIcEEED0Ev:
push rbx
mov rbx, rdi
call _ZN7testing8internal11MatcherBaseISt17basic_string_viewIcSt11char_traitsIcEEED2Ev; testing::internal::MatcherBase<std::string_view>::~MatcherBase()
mov esi, 18h; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
| void testing::Matcher<std::string_view>::~Matcher(void *a1)
{
testing::internal::MatcherBase<std::string_view>::~MatcherBase(a1);
operator delete(a1, 0x18uLL);
}
| ~Matcher:
PUSH RBX
MOV RBX,RDI
CALL 0x0017b444
MOV ESI,0x18
MOV RDI,RBX
POP RBX
JMP 0x00111120
|
/* testing::Matcher<std::basic_string_view<char, std::char_traits<char> > >::~Matcher() */
void __thiscall
testing::Matcher<std::basic_string_view<char,std::char_traits<char>>>::~Matcher
(Matcher<std::basic_string_view<char,std::char_traits<char>>> *this)
{
internal::MatcherBase<std::basic_string_view<char,std::char_traits<char>>>::~MatcherBase
((MatcherBase<std::basic_string_view<char,std::char_traits<char>>> *)this);
operator_delete(this,0x18);
return;
}
| |
52,240 | void ImPlot::PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<signed char>>>(char const*, ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<signed char>> const&, int) | zkingston[P]unknot/build_O1/_deps/implot-src/implot_items.cpp | void PlotScatterEx(const char* label_id, const Getter& getter, ImPlotScatterFlags flags) {
if (BeginItemEx(label_id, Fitter1<Getter>(getter), flags, ImPlotCol_MarkerOutline)) {
const ImPlotNextItemData& s = GetItemData();
ImPlotMarker marker = s.Marker == ImPlotMarker_None ? ImPlotMarker_Circle: s.Marker;
if (marker != ImPlotMarker_None) {
if (ImHasFlag(flags,ImPlotScatterFlags_NoClip)) {
PopPlotClipRect();
PushPlotClipRect(s.MarkerSize);
}
const ImU32 col_line = ImGui::GetColorU32(s.Colors[ImPlotCol_MarkerOutline]);
const ImU32 col_fill = ImGui::GetColorU32(s.Colors[ImPlotCol_MarkerFill]);
RenderMarkers<Getter>(getter, marker, s.MarkerSize, s.RenderMarkerFill, col_fill, s.RenderMarkerLine, col_line, s.MarkerWeight);
}
EndItem();
}
} | O1 | cpp | void ImPlot::PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<signed char>>>(char const*, ImPlot::GetterXY<ImPlot::IndexerLin, ImPlot::IndexerIdx<signed char>> const&, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movq %rsi, %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
movl $0x2, %ecx
callq 0x1549a2
testb %al, %al
je 0xd0d15
leaq 0x26602f(%rip), %r15 # 0x336ca0
movq (%r15), %r12
movl 0x58c(%r12), %eax
xorl %ebp, %ebp
cmpl $-0x1, %eax
cmovnel %eax, %ebp
btl $0xa, %r14d
jae 0xd0c9f
callq 0xbd912
movss 0x590(%r12), %xmm0
callq 0xbd878
leaq 0x558(%r12), %rdi
callq 0x215ebe
movl %eax, %r14d
leaq 0x568(%r12), %rdi
callq 0x215ebe
movzbl 0x5af(%r12), %edx
movzbl 0x5ae(%r12), %r8d
movss 0x590(%r12), %xmm0
movss 0x594(%r12), %xmm1
movq %rbx, %rdi
movl %ebp, %esi
movl %eax, %ecx
movl %r14d, %r9d
callq 0x154c6a
movq (%r15), %rbx
callq 0xbd912
leaq 0x538(%rbx), %rdi
callq 0xc7cc2
movq 0x68(%rbx), %rax
movq %rax, 0x70(%rbx)
movq $0x0, 0x68(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _ZN6ImPlot13PlotScatterExINS_8GetterXYINS_10IndexerIdxIdEES3_EEEEvPKcRKT_i:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r14d, edx
mov rbx, rsi
lea rsi, [rsp+38h+var_30]
mov [rsi], rbx
mov ecx, 2
call _ZN6ImPlot11BeginItemExINS_7Fitter1INS_8GetterXYINS_10IndexerIdxIdEES4_EEEEEEbPKcRKT_ii; ImPlot::BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>>(char const*,ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>> const&,int,int)
test al, al
jz loc_D0D15
lea r15, GImPlot
mov r12, [r15]
mov eax, [r12+58Ch]
xor ebp, ebp
cmp eax, 0FFFFFFFFh
cmovnz ebp, eax
bt r14d, 0Ah
jnb short loc_D0C9F
call _ZN6ImPlot15PopPlotClipRectEv; ImPlot::PopPlotClipRect(void)
movss xmm0, dword ptr [r12+590h]; float
call _ZN6ImPlot16PushPlotClipRectEf; ImPlot::PushPlotClipRect(float)
loc_D0C9F:
lea rdi, [r12+558h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
mov r14d, eax
lea rdi, [r12+568h]
call _ZN5ImGui11GetColorU32ERK6ImVec4; ImGui::GetColorU32(ImVec4 const&)
movzx edx, byte ptr [r12+5AFh]
movzx r8d, byte ptr [r12+5AEh]
movss xmm0, dword ptr [r12+590h]
movss xmm1, dword ptr [r12+594h]
mov rdi, rbx; this
mov esi, ebp
mov ecx, eax
mov r9d, r14d
call _ZN6ImPlot13RenderMarkersINS_8GetterXYINS_10IndexerIdxIdEES3_EEEEvRKT_ifbjbjf; ImPlot::RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>(ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>> const&,int,float,bool,uint,bool,uint,float)
mov rbx, [r15]
call _ZN6ImPlot15PopPlotClipRectEv; ImPlot::PopPlotClipRect(void)
lea rdi, [rbx+538h]; this
call _ZN18ImPlotNextItemData5ResetEv; ImPlotNextItemData::Reset(void)
mov rax, [rbx+68h]
mov [rbx+70h], rax
mov qword ptr [rbx+68h], 0
loc_D0D15:
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long ImPlot::PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>(
ImPlot *a1,
ImPlot *a2,
long long a3)
{
__int16 v3; // r14
long long result; // rax
ImGui *v5; // r12
unsigned int v6; // ebp
unsigned int ColorU32; // r14d
unsigned int v8; // eax
ImGui *v9; // rbx
_QWORD v10[6]; // [rsp+8h] [rbp-30h] BYREF
v3 = a3;
v10[0] = a2;
result = ImPlot::BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>>(
a1,
v10,
a3,
2LL);
if ( (_BYTE)result )
{
v5 = GImPlot;
v6 = 0;
if ( *((_DWORD *)GImPlot + 355) != -1 )
v6 = *((_DWORD *)GImPlot + 355);
if ( (v3 & 0x400) != 0 )
{
ImPlot::PopPlotClipRect(a1, (const char *)v10);
ImPlot::PushPlotClipRect(a1, (__m128)*((unsigned int *)v5 + 356), (const char *)v10);
}
ColorU32 = ImGui::GetColorU32((char *)v5 + 1368);
v8 = ImGui::GetColorU32((char *)v5 + 1384);
ImPlot::RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>(
a2,
v6,
*((unsigned __int8 *)v5 + 1455),
v8,
*((unsigned __int8 *)v5 + 1454),
ColorU32,
*((float *)v5 + 356),
*((float *)v5 + 357));
v9 = GImPlot;
ImPlot::PopPlotClipRect(a2, (const char *)v6);
ImPlotNextItemData::Reset((ImGui *)((char *)v9 + 1336));
result = *((_QWORD *)v9 + 13);
*((_QWORD *)v9 + 14) = result;
*((_QWORD *)v9 + 13) = 0LL;
}
return result;
}
| PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14D,EDX
MOV RBX,RSI
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RBX
MOV ECX,0x2
CALL 0x002549a2
TEST AL,AL
JZ 0x001d0d15
LEA R15,[0x436ca0]
MOV R12,qword ptr [R15]
MOV EAX,dword ptr [R12 + 0x58c]
XOR EBP,EBP
CMP EAX,-0x1
CMOVNZ EBP,EAX
BT R14D,0xa
JNC 0x001d0c9f
CALL 0x001bd912
MOVSS XMM0,dword ptr [R12 + 0x590]
CALL 0x001bd878
LAB_001d0c9f:
LEA RDI,[R12 + 0x558]
CALL 0x00315ebe
MOV R14D,EAX
LEA RDI,[R12 + 0x568]
CALL 0x00315ebe
MOVZX EDX,byte ptr [R12 + 0x5af]
MOVZX R8D,byte ptr [R12 + 0x5ae]
MOVSS XMM0,dword ptr [R12 + 0x590]
MOVSS XMM1,dword ptr [R12 + 0x594]
MOV RDI,RBX
MOV ESI,EBP
MOV ECX,EAX
MOV R9D,R14D
CALL 0x00254c6a
MOV RBX,qword ptr [R15]
CALL 0x001bd912
LEA RDI,[RBX + 0x538]
CALL 0x001c7cc2
MOV RAX,qword ptr [RBX + 0x68]
MOV qword ptr [RBX + 0x70],RAX
MOV qword ptr [RBX + 0x68],0x0
LAB_001d0d15:
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* void ImPlot::PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,
ImPlot::IndexerIdx<double> > >(char const*, ImPlot::GetterXY<ImPlot::IndexerIdx<double>,
ImPlot::IndexerIdx<double> > const&, int) */
void ImPlot::PlotScatterEx<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>
(char *param_1,GetterXY *param_2,int param_3)
{
long lVar1;
bool bVar2;
uint uVar3;
uint uVar4;
int iVar5;
GetterXY *local_30;
local_30 = param_2;
bVar2 = BeginItemEx<ImPlot::Fitter1<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>>
(param_1,(Fitter1 *)&local_30,param_3,2);
lVar1 = GImPlot;
if (bVar2) {
iVar5 = 0;
if (*(int *)(GImPlot + 0x58c) != -1) {
iVar5 = *(int *)(GImPlot + 0x58c);
}
if (((uint)param_3 >> 10 & 1) != 0) {
PopPlotClipRect();
PushPlotClipRect(*(float *)(lVar1 + 0x590));
}
uVar3 = ImGui::GetColorU32((ImVec4 *)(lVar1 + 0x558));
uVar4 = ImGui::GetColorU32((ImVec4 *)(lVar1 + 0x568));
RenderMarkers<ImPlot::GetterXY<ImPlot::IndexerIdx<double>,ImPlot::IndexerIdx<double>>>
(param_2,iVar5,*(float *)(lVar1 + 0x590),*(bool *)(lVar1 + 0x5af),uVar4,
*(bool *)(lVar1 + 0x5ae),uVar3,*(float *)(lVar1 + 0x594));
lVar1 = GImPlot;
PopPlotClipRect();
ImPlotNextItemData::Reset((ImPlotNextItemData *)(lVar1 + 0x538));
*(int8 *)(lVar1 + 0x70) = *(int8 *)(lVar1 + 0x68);
*(int8 *)(lVar1 + 0x68) = 0;
}
return;
}
| |
52,241 | stbi__gif_test(stbi__context*) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__gif_test(stbi__context *s)
{
int r = stbi__gif_test_raw(s);
stbi__rewind(s);
return r;
} | O1 | c | stbi__gif_test(stbi__context*):
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc0(%rdi), %rax
cmpq 0xc8(%rdi), %rax
jb 0x388f0
cmpl $0x0, 0x30(%rbx)
je 0x38a32
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
xorl %ebp, %ebp
cmpb $0x47, (%rax)
jne 0x38a34
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x3892f
cmpl $0x0, 0x30(%rbx)
je 0x38a34
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
cmpb $0x49, (%rax)
jne 0x38a34
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x3896c
cmpl $0x0, 0x30(%rbx)
je 0x38a34
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
cmpb $0x46, (%rax)
jne 0x38a34
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x389a9
cmpl $0x0, 0x30(%rbx)
je 0x38a34
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
cmpb $0x38, (%rax)
jne 0x38a34
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x389de
cmpl $0x0, 0x30(%rbx)
je 0x38a4b
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
movb (%rax), %al
cmpb $0x39, %al
je 0x389f7
movzbl %al, %eax
cmpl $0x37, %eax
jne 0x38a34
movq 0xc0(%rbx), %rax
cmpq 0xc8(%rbx), %rax
jb 0x38a1c
cmpl $0x0, 0x30(%rbx)
je 0x38a34
movq %rbx, %rdi
callq 0x3c9f9
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
xorl %ebp, %ebp
cmpb $0x61, (%rax)
sete %bpl
jmp 0x38a34
xorl %ebp, %ebp
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %eax, %eax
jmp 0x389eb
| _ZL14stbi__gif_testP13stbi__context:
push rbp
push rbx
push rax
mov rbx, rdi
mov rax, [rdi+0C0h]
cmp rax, [rdi+0C8h]
jb short loc_388F0
cmp dword ptr [rbx+30h], 0
jz loc_38A32
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_388F0:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
xor ebp, ebp
cmp byte ptr [rax], 47h ; 'G'
jnz loc_38A34
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_3892F
cmp dword ptr [rbx+30h], 0
jz loc_38A34
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3892F:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
cmp byte ptr [rax], 49h ; 'I'
jnz loc_38A34
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_3896C
cmp dword ptr [rbx+30h], 0
jz loc_38A34
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_3896C:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
cmp byte ptr [rax], 46h ; 'F'
jnz loc_38A34
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_389A9
cmp dword ptr [rbx+30h], 0
jz loc_38A34
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_389A9:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
cmp byte ptr [rax], 38h ; '8'
jnz short loc_38A34
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_389DE
cmp dword ptr [rbx+30h], 0
jz short loc_38A4B
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_389DE:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
mov al, [rax]
loc_389EB:
cmp al, 39h ; '9'
jz short loc_389F7
movzx eax, al
cmp eax, 37h ; '7'
jnz short loc_38A34
loc_389F7:
mov rax, [rbx+0C0h]
cmp rax, [rbx+0C8h]
jb short loc_38A1C
cmp dword ptr [rbx+30h], 0
jz short loc_38A34
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_38A1C:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
xor ebp, ebp
cmp byte ptr [rax], 61h ; 'a'
setz bpl
jmp short loc_38A34
loc_38A32:
xor ebp, ebp
loc_38A34:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
mov eax, ebp
add rsp, 8
pop rbx
pop rbp
retn
loc_38A4B:
xor eax, eax
jmp short loc_389EB
| _BOOL8 stbi__gif_test(long long a1)
{
_BYTE *v1; // rax
BOOL v2; // ebp
_BYTE *v3; // rax
_BYTE *v4; // rax
_BYTE *v5; // rax
char *v6; // rax
char v7; // al
_BYTE *v8; // rax
v1 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v1 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v2 = 0;
goto LABEL_28;
}
stbi__refill_buffer(a1);
v1 = *(_BYTE **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v1 + 1;
v2 = 0;
if ( *v1 != 71 )
goto LABEL_28;
v3 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v3 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_28;
stbi__refill_buffer(a1);
v3 = *(_BYTE **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v3 + 1;
if ( *v3 != 73 )
goto LABEL_28;
v4 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v4 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_28;
stbi__refill_buffer(a1);
v4 = *(_BYTE **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v4 + 1;
if ( *v4 != 70 )
goto LABEL_28;
v5 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v5 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_28;
stbi__refill_buffer(a1);
v5 = *(_BYTE **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v5 + 1;
if ( *v5 != 56 )
goto LABEL_28;
v6 = *(char **)(a1 + 192);
if ( (unsigned long long)v6 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v7 = 0;
goto LABEL_21;
}
stbi__refill_buffer(a1);
v6 = *(char **)(a1 + 192);
}
*(_QWORD *)(a1 + 192) = v6 + 1;
v7 = *v6;
LABEL_21:
if ( v7 == 57 || v7 == 55 )
{
v8 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v8 < *(_QWORD *)(a1 + 200) )
{
LABEL_26:
*(_QWORD *)(a1 + 192) = v8 + 1;
v2 = *v8 == 97;
goto LABEL_28;
}
if ( *(_DWORD *)(a1 + 48) )
{
stbi__refill_buffer(a1);
v8 = *(_BYTE **)(a1 + 192);
goto LABEL_26;
}
}
LABEL_28:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return v2;
}
| stbi__gif_test:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0xc0]
CMP RAX,qword ptr [RDI + 0xc8]
JC 0x001388f0
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a32
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_001388f0:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
XOR EBP,EBP
CMP byte ptr [RAX],0x47
JNZ 0x00138a34
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x0013892f
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a34
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013892f:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
CMP byte ptr [RAX],0x49
JNZ 0x00138a34
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x0013896c
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a34
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_0013896c:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
CMP byte ptr [RAX],0x46
JNZ 0x00138a34
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x001389a9
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a34
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_001389a9:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
CMP byte ptr [RAX],0x38
JNZ 0x00138a34
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x001389de
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a4b
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_001389de:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
MOV AL,byte ptr [RAX]
LAB_001389eb:
CMP AL,0x39
JZ 0x001389f7
MOVZX EAX,AL
CMP EAX,0x37
JNZ 0x00138a34
LAB_001389f7:
MOV RAX,qword ptr [RBX + 0xc0]
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x00138a1c
CMP dword ptr [RBX + 0x30],0x0
JZ 0x00138a34
MOV RDI,RBX
CALL 0x0013c9f9
MOV RAX,qword ptr [RBX + 0xc0]
LAB_00138a1c:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
XOR EBP,EBP
CMP byte ptr [RAX],0x61
SETZ BPL
JMP 0x00138a34
LAB_00138a32:
XOR EBP,EBP
LAB_00138a34:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP RBP
RET
LAB_00138a4b:
XOR EAX,EAX
JMP 0x001389eb
|
/* stbi__gif_test(stbi__context*) */
bool stbi__gif_test(stbi__context *param_1)
{
char cVar1;
char *pcVar2;
bool bVar3;
bool bVar4;
pcVar2 = *(char **)(param_1 + 0xc0);
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) {
bVar4 = false;
goto LAB_00138a34;
}
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
bVar4 = false;
bVar3 = false;
if (*pcVar2 != 'G') goto LAB_00138a34;
pcVar2 = *(char **)(param_1 + 0xc0);
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_00138a34;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
if (*pcVar2 != 'I') goto LAB_00138a34;
pcVar2 = *(char **)(param_1 + 0xc0);
bVar4 = bVar3;
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_00138a34;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
if (*pcVar2 != 'F') goto LAB_00138a34;
pcVar2 = *(char **)(param_1 + 0xc0);
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_00138a34;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
if (*pcVar2 != '8') goto LAB_00138a34;
pcVar2 = *(char **)(param_1 + 0xc0);
if (pcVar2 < *(char **)(param_1 + 200)) {
LAB_001389de:
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
cVar1 = *pcVar2;
}
else {
if (*(int *)(param_1 + 0x30) != 0) {
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
goto LAB_001389de;
}
cVar1 = '\0';
}
if ((cVar1 == '9') || (cVar1 == '7')) {
pcVar2 = *(char **)(param_1 + 0xc0);
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_00138a34;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar2 + 1;
bVar4 = *pcVar2 == 'a';
}
LAB_00138a34:
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return bVar4;
}
| |
52,242 | stbi__gif_test(stbi__context*) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static int stbi__gif_test(stbi__context *s)
{
int r = stbi__gif_test_raw(s);
stbi__rewind(s);
return r;
} | O3 | c | stbi__gif_test(stbi__context*):
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc0(%rdi), %rcx
cmpq 0xc8(%rdi), %rcx
jb 0x386fe
cmpl $0x0, 0x30(%rbx)
je 0x3881c
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xc0(%rbx)
xorl %ebp, %ebp
cmpb $0x47, (%rcx)
jne 0x3881e
cmpq 0xc8(%rbx), %rax
jb 0x38736
cmpl $0x0, 0x30(%rbx)
je 0x3881e
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
cmpb $0x49, (%rax)
jne 0x3881e
cmpq 0xc8(%rbx), %rcx
jb 0x3876c
cmpl $0x0, 0x30(%rbx)
je 0x3881e
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xc0(%rbx)
cmpb $0x46, (%rcx)
jne 0x3881e
cmpq 0xc8(%rbx), %rax
jb 0x387a2
cmpl $0x0, 0x30(%rbx)
je 0x3881e
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
cmpb $0x38, (%rax)
jne 0x3881e
cmpq 0xc8(%rbx), %rcx
jb 0x387d0
cmpl $0x0, 0x30(%rbx)
je 0x3881e
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0xc0(%rbx)
movzbl (%rcx), %ecx
cmpl $0x39, %ecx
je 0x387e8
cmpl $0x37, %ecx
jne 0x3881e
cmpq 0xc8(%rbx), %rax
jb 0x38806
cmpl $0x0, 0x30(%rbx)
je 0x3881e
movq %rbx, %rdi
callq 0x3c5ff
movq 0xc0(%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rbx)
xorl %ebp, %ebp
cmpb $0x61, (%rax)
sete %bpl
jmp 0x3881e
xorl %ebp, %ebp
movups 0xd0(%rbx), %xmm0
movups %xmm0, 0xc0(%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| _ZL14stbi__gif_testP13stbi__context:
push rbp
push rbx
push rax
mov rbx, rdi
mov rcx, [rdi+0C0h]
cmp rcx, [rdi+0C8h]
jb short loc_386FE
cmp dword ptr [rbx+30h], 0
jz loc_3881C
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rcx, [rbx+0C0h]
loc_386FE:
lea rax, [rcx+1]
mov [rbx+0C0h], rax
xor ebp, ebp
cmp byte ptr [rcx], 47h ; 'G'
jnz loc_3881E
cmp rax, [rbx+0C8h]
jb short loc_38736
cmp dword ptr [rbx+30h], 0
jz loc_3881E
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_38736:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
cmp byte ptr [rax], 49h ; 'I'
jnz loc_3881E
cmp rcx, [rbx+0C8h]
jb short loc_3876C
cmp dword ptr [rbx+30h], 0
jz loc_3881E
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rcx, [rbx+0C0h]
loc_3876C:
lea rax, [rcx+1]
mov [rbx+0C0h], rax
cmp byte ptr [rcx], 46h ; 'F'
jnz loc_3881E
cmp rax, [rbx+0C8h]
jb short loc_387A2
cmp dword ptr [rbx+30h], 0
jz loc_3881E
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_387A2:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
cmp byte ptr [rax], 38h ; '8'
jnz short loc_3881E
cmp rcx, [rbx+0C8h]
jb short loc_387D0
cmp dword ptr [rbx+30h], 0
jz short loc_3881E
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rcx, [rbx+0C0h]
loc_387D0:
lea rax, [rcx+1]
mov [rbx+0C0h], rax
movzx ecx, byte ptr [rcx]
cmp ecx, 39h ; '9'
jz short loc_387E8
cmp ecx, 37h ; '7'
jnz short loc_3881E
loc_387E8:
cmp rax, [rbx+0C8h]
jb short loc_38806
cmp dword ptr [rbx+30h], 0
jz short loc_3881E
mov rdi, rbx
call _ZL19stbi__refill_bufferP13stbi__context; stbi__refill_buffer(stbi__context *)
mov rax, [rbx+0C0h]
loc_38806:
lea rcx, [rax+1]
mov [rbx+0C0h], rcx
xor ebp, ebp
cmp byte ptr [rax], 61h ; 'a'
setz bpl
jmp short loc_3881E
loc_3881C:
xor ebp, ebp
loc_3881E:
movups xmm0, xmmword ptr [rbx+0D0h]
movups xmmword ptr [rbx+0C0h], xmm0
mov eax, ebp
add rsp, 8
pop rbx
pop rbp
retn
| _BOOL8 stbi__gif_test(long long a1)
{
_BYTE *v1; // rcx
_BYTE *v2; // rax
BOOL v3; // ebp
_BYTE *v4; // rcx
_BYTE *v5; // rax
unsigned __int8 *v6; // rcx
_BYTE *v7; // rax
int v8; // ecx
v1 = *(_BYTE **)(a1 + 192);
if ( (unsigned long long)v1 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
{
v3 = 0;
goto LABEL_27;
}
stbi__refill_buffer(a1);
v1 = *(_BYTE **)(a1 + 192);
}
v2 = v1 + 1;
*(_QWORD *)(a1 + 192) = v1 + 1;
v3 = 0;
if ( *v1 == 71 )
{
if ( (unsigned long long)v2 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_27;
stbi__refill_buffer(a1);
v2 = *(_BYTE **)(a1 + 192);
}
v4 = v2 + 1;
*(_QWORD *)(a1 + 192) = v2 + 1;
if ( *v2 == 73 )
{
if ( (unsigned long long)v4 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_27;
stbi__refill_buffer(a1);
v4 = *(_BYTE **)(a1 + 192);
}
v5 = v4 + 1;
*(_QWORD *)(a1 + 192) = v4 + 1;
if ( *v4 == 70 )
{
if ( (unsigned long long)v5 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_27;
stbi__refill_buffer(a1);
v5 = *(_BYTE **)(a1 + 192);
}
v6 = v5 + 1;
*(_QWORD *)(a1 + 192) = v5 + 1;
if ( *v5 == 56 )
{
if ( (unsigned long long)v6 >= *(_QWORD *)(a1 + 200) )
{
if ( !*(_DWORD *)(a1 + 48) )
goto LABEL_27;
stbi__refill_buffer(a1);
v6 = *(unsigned __int8 **)(a1 + 192);
}
v7 = v6 + 1;
*(_QWORD *)(a1 + 192) = v6 + 1;
v8 = *v6;
if ( v8 == 57 || v8 == 55 )
{
if ( (unsigned long long)v7 < *(_QWORD *)(a1 + 200) )
{
LABEL_25:
*(_QWORD *)(a1 + 192) = v7 + 1;
v3 = *v7 == 97;
goto LABEL_27;
}
if ( *(_DWORD *)(a1 + 48) )
{
stbi__refill_buffer(a1);
v7 = *(_BYTE **)(a1 + 192);
goto LABEL_25;
}
}
}
}
}
}
LABEL_27:
*(_OWORD *)(a1 + 192) = *(_OWORD *)(a1 + 208);
return v3;
}
| stbi__gif_test:
PUSH RBP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RCX,qword ptr [RDI + 0xc0]
CMP RCX,qword ptr [RDI + 0xc8]
JC 0x001386fe
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881c
MOV RDI,RBX
CALL 0x0013c5ff
MOV RCX,qword ptr [RBX + 0xc0]
LAB_001386fe:
LEA RAX,[RCX + 0x1]
MOV qword ptr [RBX + 0xc0],RAX
XOR EBP,EBP
CMP byte ptr [RCX],0x47
JNZ 0x0013881e
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x00138736
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881e
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_00138736:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
CMP byte ptr [RAX],0x49
JNZ 0x0013881e
CMP RCX,qword ptr [RBX + 0xc8]
JC 0x0013876c
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881e
MOV RDI,RBX
CALL 0x0013c5ff
MOV RCX,qword ptr [RBX + 0xc0]
LAB_0013876c:
LEA RAX,[RCX + 0x1]
MOV qword ptr [RBX + 0xc0],RAX
CMP byte ptr [RCX],0x46
JNZ 0x0013881e
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x001387a2
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881e
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_001387a2:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
CMP byte ptr [RAX],0x38
JNZ 0x0013881e
CMP RCX,qword ptr [RBX + 0xc8]
JC 0x001387d0
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881e
MOV RDI,RBX
CALL 0x0013c5ff
MOV RCX,qword ptr [RBX + 0xc0]
LAB_001387d0:
LEA RAX,[RCX + 0x1]
MOV qword ptr [RBX + 0xc0],RAX
MOVZX ECX,byte ptr [RCX]
CMP ECX,0x39
JZ 0x001387e8
CMP ECX,0x37
JNZ 0x0013881e
LAB_001387e8:
CMP RAX,qword ptr [RBX + 0xc8]
JC 0x00138806
CMP dword ptr [RBX + 0x30],0x0
JZ 0x0013881e
MOV RDI,RBX
CALL 0x0013c5ff
MOV RAX,qword ptr [RBX + 0xc0]
LAB_00138806:
LEA RCX,[RAX + 0x1]
MOV qword ptr [RBX + 0xc0],RCX
XOR EBP,EBP
CMP byte ptr [RAX],0x61
SETZ BPL
JMP 0x0013881e
LAB_0013881c:
XOR EBP,EBP
LAB_0013881e:
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVUPS xmmword ptr [RBX + 0xc0],XMM0
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP RBP
RET
|
/* stbi__gif_test(stbi__context*) */
bool stbi__gif_test(stbi__context *param_1)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
bool bVar4;
pcVar2 = *(char **)(param_1 + 0xc0);
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) {
bVar4 = false;
goto LAB_0013881e;
}
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
pcVar1 = pcVar2 + 1;
*(char **)(param_1 + 0xc0) = pcVar1;
bVar4 = false;
bVar3 = false;
if (*pcVar2 == 'G') {
if (*(char **)(param_1 + 200) <= pcVar1) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013881e;
stbi__refill_buffer(param_1);
pcVar1 = *(char **)(param_1 + 0xc0);
}
pcVar2 = pcVar1 + 1;
*(char **)(param_1 + 0xc0) = pcVar2;
if (*pcVar1 == 'I') {
bVar4 = bVar3;
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013881e;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
pcVar1 = pcVar2 + 1;
*(char **)(param_1 + 0xc0) = pcVar1;
if (*pcVar2 == 'F') {
if (*(char **)(param_1 + 200) <= pcVar1) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013881e;
stbi__refill_buffer(param_1);
pcVar1 = *(char **)(param_1 + 0xc0);
}
pcVar2 = pcVar1 + 1;
*(char **)(param_1 + 0xc0) = pcVar2;
if (*pcVar1 == '8') {
if (*(char **)(param_1 + 200) <= pcVar2) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013881e;
stbi__refill_buffer(param_1);
pcVar2 = *(char **)(param_1 + 0xc0);
}
pcVar1 = pcVar2 + 1;
*(char **)(param_1 + 0xc0) = pcVar1;
if ((*pcVar2 == '9') || (*pcVar2 == '7')) {
if (*(char **)(param_1 + 200) <= pcVar1) {
if (*(int *)(param_1 + 0x30) == 0) goto LAB_0013881e;
stbi__refill_buffer(param_1);
pcVar1 = *(char **)(param_1 + 0xc0);
}
*(char **)(param_1 + 0xc0) = pcVar1 + 1;
bVar4 = *pcVar1 == 'a';
}
}
}
}
}
LAB_0013881e:
*(int8 *)(param_1 + 0xc0) = *(int8 *)(param_1 + 0xd0);
*(int8 *)(param_1 + 200) = *(int8 *)(param_1 + 0xd8);
return bVar4;
}
| |
52,243 | mcp::sse_client::read_resource(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | json sse_client::read_resource(const std::string& resource_uri) {
return send_request("resources/read", {
{"uri", resource_uri}
}).result;
} | O0 | cpp | mcp::sse_client::read_resource(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
subq $0x1d8, %rsp # imm = 0x1D8
movq %rdi, 0x88(%rsp)
movq %rdi, %rax
movq %rax, 0x90(%rsp)
movq %rdi, 0x1d0(%rsp)
movq %rsi, 0x1c8(%rsp)
movq %rdx, 0x1c0(%rsp)
movq 0x1c8(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x14f(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
callq 0xbe20
movq 0xa0(%rsp), %rdx
leaq 0x503f2(%rip), %rsi # 0xd3178
leaq 0x150(%rsp), %rdi
callq 0xf160
jmp 0x82d95
movb $0x1, 0xaf(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0xf8(%rsp)
leaq 0xb8(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
leaq 0x503c3(%rip), %rsi # 0xd3187
callq 0xfd60
jmp 0x82dcb
leaq 0xd0(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
movq 0x1c0(%rsp), %rsi
callq 0x861b0
jmp 0x82dea
leaq 0xb8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq $0x2, 0xf0(%rsp)
movq 0xe8(%rsp), %rsi
movq 0xf0(%rsp), %rdx
leaq 0x100(%rsp), %rdi
callq 0xf2f0
jmp 0x82e25
movb $0x0, 0xaf(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x118(%rsp)
movq $0x1, 0x120(%rsp)
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %rdx
leaq 0x128(%rsp), %rdi
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xf350
jmp 0x82e73
movq 0x98(%rsp), %rsi
movq (%rsi), %rax
movq 0x28(%rax), %rax
leaq 0x170(%rsp), %rdi
leaq 0x150(%rsp), %rdx
leaq 0x128(%rsp), %rcx
callq *%rax
jmp 0x82e9e
movq 0x88(%rsp), %rdi
leaq 0x170(%rsp), %rsi
addq $0x30, %rsi
callq 0x6b720
leaq 0x170(%rsp), %rdi
callq 0x86960
leaq 0x128(%rsp), %rdi
callq 0xfa40
leaq 0x100(%rsp), %rax
movq %rax, 0x78(%rsp)
addq $0x18, %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x70(%rsp)
callq 0xf2e0
movq 0x78(%rsp), %rcx
movq 0x70(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x80(%rsp)
jne 0x82eea
leaq 0xb8(%rsp), %rax
movq %rax, 0x60(%rsp)
addq $0x30, %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x58(%rsp)
callq 0xf2e0
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x68(%rsp)
jne 0x82f2d
leaq 0x150(%rsp), %rdi
callq 0xbfb0
leaq 0x14f(%rsp), %rdi
callq 0xb8e0
movq 0x90(%rsp), %rax
addq $0x1d8, %rsp # imm = 0x1D8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x8311e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
movq 0xb0(%rsp), %rax
leaq 0xb8(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0x50(%rsp)
je 0x82fef
movq 0x50(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x48(%rsp)
callq 0xf2e0
movq 0x48(%rsp), %rax
leaq 0xb8(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0x50(%rsp)
jne 0x82fc5
jmp 0x830bf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x83080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
jmp 0x83041
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x140(%rsp)
movl %eax, 0x13c(%rsp)
leaq 0x128(%rsp), %rdi
callq 0xfa40
leaq 0x100(%rsp), %rax
movq %rax, 0x38(%rsp)
addq $0x18, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x30(%rsp)
callq 0xf2e0
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x40(%rsp)
jne 0x83057
jmp 0x83080
leaq 0xb8(%rsp), %rax
movq %rax, 0x20(%rsp)
addq $0x30, %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x18(%rsp)
callq 0xf2e0
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
movq %rax, 0x28(%rsp)
jne 0x83096
jmp 0x830bf
testb $0x1, 0xaf(%rsp)
jne 0x830cb
jmp 0x83111
movq 0xf8(%rsp), %rax
leaq 0x100(%rsp), %rcx
cmpq %rax, %rcx
movq %rax, 0x10(%rsp)
je 0x8310f
movq 0x10(%rsp), %rdi
addq $-0x18, %rdi
movq %rdi, 0x8(%rsp)
callq 0xf2e0
movq 0x8(%rsp), %rax
leaq 0x100(%rsp), %rcx
cmpq %rcx, %rax
movq %rax, 0x10(%rsp)
jne 0x830e5
jmp 0x83111
leaq 0x150(%rsp), %rdi
callq 0xbfb0
leaq 0x14f(%rsp), %rdi
callq 0xb8e0
movq 0x140(%rsp), %rdi
callq 0xbe10
nopl (%rax,%rax)
| _ZN3mcp10sse_client13read_resourceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
sub rsp, 1D8h
mov qword ptr [rsp+1D8h+var_150], rdi; int
mov rax, rdi
mov qword ptr [rsp+1D8h+var_148], rax; char
mov [rsp+1D8h+var_8], rdi
mov qword ptr [rsp+1D8h+var_10], rsi
mov [rsp+1D8h+var_18], rdx
mov rax, qword ptr [rsp+1D8h+var_10]
mov qword ptr [rsp+1D8h+var_140], rax; int
lea rdi, [rsp+1D8h+var_89]
mov qword ptr [rsp+1D8h+var_138], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+1D8h+var_138]
lea rsi, aResourcesRead; "resources/read"
lea rdi, [rsp+1D8h+var_89+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_82D95:
mov [rsp+1D8h+var_129], 1
lea rax, [rsp+1D8h+var_D8]
mov [rsp+1D8h+var_E0], rax; __int64
lea rdi, [rsp+1D8h+var_120]
mov qword ptr [rsp+1D8h+var_128], rdi
lea rsi, aUri; "uri"
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA4_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
jmp short $+2
loc_82DCB:
lea rdi, [rsp+1D8h+var_108]
mov qword ptr [rsp+1D8h+var_128], rdi; int
mov rsi, [rsp+1D8h+var_18]
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
jmp short $+2
loc_82DEA:
lea rax, [rsp+1D8h+var_120]
mov qword ptr [rsp+1D8h+var_F0], rax; int
mov qword ptr [rsp+1D8h+var_E8], 2; int
mov rsi, qword ptr [rsp+1D8h+var_F0]
mov rdx, qword ptr [rsp+1D8h+var_E8]
lea rdi, [rsp+1D8h+var_D8]
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ESt16initializer_listISG_E; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_ref(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>)
jmp short $+2
loc_82E25:
mov [rsp+1D8h+var_129], 0
lea rax, [rsp+1D8h+var_D8]
mov qword ptr [rsp+1D8h+var_C0], rax
mov qword ptr [rsp+1D8h+var_B8], 1
mov rsi, qword ptr [rsp+1D8h+var_C0]; int
mov rdx, qword ptr [rsp+1D8h+var_B8]; int
lea rdi, [rsp+1D8h+var_B0]; int
mov ecx, 1; int
mov r8d, 2; int
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)
jmp short $+2
loc_82E73:
mov rsi, qword ptr [rsp+1D8h+var_140]
mov rax, [rsi]
mov rax, [rax+28h]
lea rdi, [rsp+1D8h+var_68]
lea rdx, [rsp+1D8h+var_89+1]
lea rcx, [rsp+1D8h+var_B0]
call rax
jmp short $+2
loc_82E9E:
mov rdi, qword ptr [rsp+1D8h+var_150]
lea rsi, [rsp+1D8h+var_68]
add rsi, 30h ; '0'
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&)
lea rdi, [rsp+1D8h+var_68]; this
call _ZN3mcp8responseD2Ev; mcp::response::~response()
lea rdi, [rsp+1D8h+var_B0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
lea rax, [rsp+1D8h+var_D8]
mov [rsp+1D8h+var_160], rax
add rax, 18h
mov [rsp+1D8h+var_158], rax
loc_82EEA:
mov rdi, [rsp+1D8h+var_158]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+1D8h+var_168], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rcx, [rsp+1D8h+var_160]
mov rax, [rsp+1D8h+var_168]
cmp rax, rcx
mov [rsp+1D8h+var_158], rax
jnz short loc_82EEA
lea rax, [rsp+1D8h+var_120]
mov [rsp+1D8h+var_178], rax
add rax, 30h ; '0'
mov [rsp+1D8h+var_170], rax
loc_82F2D:
mov rdi, [rsp+1D8h+var_170]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+1D8h+var_180], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rcx, [rsp+1D8h+var_178]
mov rax, [rsp+1D8h+var_180]
cmp rax, rcx
mov [rsp+1D8h+var_170], rax
jnz short loc_82F2D
lea rdi, [rsp+1D8h+var_89+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+1D8h+var_89]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rax, qword ptr [rsp+1D8h+var_148]
add rsp, 1D8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_138], rcx
mov [rsp+arg_134], eax
jmp loc_8311E
mov rcx, rax
mov eax, edx
mov [rsp+arg_138], rcx
mov [rsp+arg_134], eax
mov rax, [rsp+arg_A8]
lea rcx, [rsp+arg_B0]
cmp rcx, rax
mov [rsp+arg_48], rax
jz short loc_82FEF
loc_82FC5:
mov rdi, [rsp+arg_48]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+arg_40], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rax, [rsp+arg_40]
lea rcx, [rsp+arg_B0]
cmp rax, rcx
mov [rsp+arg_48], rax
jnz short loc_82FC5
loc_82FEF:
jmp loc_830BF
mov rcx, rax
mov eax, edx
mov [rsp+arg_138], rcx
mov [rsp+arg_134], eax
jmp short loc_83080
mov rcx, rax
mov eax, edx
mov [rsp+arg_138], rcx
mov [rsp+arg_134], eax
jmp short loc_83041
mov rcx, rax
mov eax, edx
mov [rsp+arg_138], rcx
mov [rsp+arg_134], eax
lea rdi, [rsp+arg_120]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json()
loc_83041:
lea rax, [rsp+arg_F8]
mov [rsp+arg_30], rax
add rax, 18h
mov [rsp+arg_38], rax
loc_83057:
mov rdi, [rsp+arg_38]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+arg_28], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rcx, [rsp+arg_30]
mov rax, [rsp+arg_28]
cmp rax, rcx
mov [rsp+arg_38], rax
jnz short loc_83057
jmp short $+2
loc_83080:
lea rax, [rsp+arg_B0]
mov [rsp+arg_18], rax
add rax, 30h ; '0'
mov [rsp+arg_20], rax
loc_83096:
mov rdi, [rsp+arg_20]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+arg_10], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rcx, [rsp+arg_18]
mov rax, [rsp+arg_10]
cmp rax, rcx
mov [rsp+arg_20], rax
jnz short loc_83096
jmp short $+2
loc_830BF:
test [rsp+arg_A7], 1
jnz short loc_830CB
jmp short loc_83111
loc_830CB:
mov rax, [rsp+arg_F0]
lea rcx, [rsp+arg_F8]
cmp rcx, rax
mov [rsp+arg_8], rax
jz short loc_8310F
loc_830E5:
mov rdi, [rsp+arg_8]
add rdi, 0FFFFFFFFFFFFFFE8h
mov [rsp+arg_0], rdi
call _ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~json_ref()
mov rax, [rsp+arg_0]
lea rcx, [rsp+arg_F8]
cmp rax, rcx
mov [rsp+arg_8], rax
jnz short loc_830E5
loc_8310F:
jmp short $+2
loc_83111:
lea rdi, [rsp+arg_148]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_8311E:
lea rdi, [rsp+arg_147]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov rdi, [rsp+arg_138]
call __Unwind_Resume
| _OWORD * mcp::sse_client::read_resource(_OWORD *a1, long long a2, long long a3)
{
int *v4; // [rsp+68h] [rbp-170h]
long long *v5; // [rsp+80h] [rbp-158h]
int v6[6]; // [rsp+B8h] [rbp-120h] BYREF
int v7[6]; // [rsp+D0h] [rbp-108h] BYREF
int v8[2]; // [rsp+E8h] [rbp-F0h] BYREF
int v9[2]; // [rsp+F0h] [rbp-E8h]
long long v10; // [rsp+F8h] [rbp-E0h]
long long v11[3]; // [rsp+100h] [rbp-D8h] BYREF
int v12[2]; // [rsp+118h] [rbp-C0h] BYREF
int v13[2]; // [rsp+120h] [rbp-B8h]
int v14[9]; // [rsp+128h] [rbp-B0h] BYREF
char v15[33]; // [rsp+14Fh] [rbp-89h] BYREF
_BYTE v16[48]; // [rsp+170h] [rbp-68h] BYREF
long long v17; // [rsp+1A0h] [rbp-38h] BYREF
long long v18; // [rsp+1C0h] [rbp-18h]
int v19[2]; // [rsp+1C8h] [rbp-10h]
_OWORD *v20; // [rsp+1D0h] [rbp-8h]
v20 = a1;
*(_QWORD *)v19 = a2;
v18 = a3;
std::allocator<char>::allocator(v15, a2, a3);
std::string::basic_string<std::allocator<char>>((long long)&v15[1], (long long)"resources/read", (long long)v15);
v10 = (long long)v11;
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA4_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_(
v6,
"uri");
ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_(
v7,
v18);
*(_QWORD *)v8 = v6;
*(_QWORD *)v9 = 2LL;
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_ref(
(unsigned int)v11,
(unsigned int)v6,
(char *)&dword_0 + 2);
*(_QWORD *)v12 = v11;
*(_QWORD *)v13 = 1LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(long long)v14,
(long long)v11,
1LL,
1,
2);
(*(void ( **)(_BYTE *, long long, char *, int *))(*(_QWORD *)a2 + 40LL))(v16, a2, &v15[1], 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>::basic_json(
a1,
(long long)&v17);
mcp::response::~response((mcp::response *)v16);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v14);
v5 = (long long *)v12;
do
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_ref((long long)(v5 - 3));
v5 -= 3;
}
while ( v5 != v11 );
v4 = v8;
do
{
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~json_ref((long long)(v4 - 6));
v4 -= 6;
}
while ( v4 != v6 );
std::string::~string(&v15[1]);
std::allocator<char>::~allocator(v15);
return a1;
}
| read_resource:
SUB RSP,0x1d8
MOV qword ptr [RSP + 0x88],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x90],RAX
MOV qword ptr [RSP + 0x1d0],RDI
MOV qword ptr [RSP + 0x1c8],RSI
MOV qword ptr [RSP + 0x1c0],RDX
MOV RAX,qword ptr [RSP + 0x1c8]
MOV qword ptr [RSP + 0x98],RAX
LEA RDI,[RSP + 0x14f]
MOV qword ptr [RSP + 0xa0],RDI
CALL 0x0010be20
MOV RDX,qword ptr [RSP + 0xa0]
LAB_00182d7f:
LEA RSI,[0x1d3178]
LEA RDI,[RSP + 0x150]
CALL 0x0010f160
JMP 0x00182d95
LAB_00182d95:
MOV byte ptr [RSP + 0xaf],0x1
LEA RAX,[RSP + 0x100]
MOV qword ptr [RSP + 0xf8],RAX
LEA RDI,[RSP + 0xb8]
MOV qword ptr [RSP + 0xb0],RDI
LAB_00182dbd:
LEA RSI,[0x1d3187]
CALL 0x0010fd60
JMP 0x00182dcb
LAB_00182dcb:
LEA RDI,[RSP + 0xd0]
MOV qword ptr [RSP + 0xb0],RDI
MOV RSI,qword ptr [RSP + 0x1c0]
CALL 0x001861b0
JMP 0x00182dea
LAB_00182dea:
LEA RAX,[RSP + 0xb8]
MOV qword ptr [RSP + 0xe8],RAX
MOV qword ptr [RSP + 0xf0],0x2
MOV RSI,qword ptr [RSP + 0xe8]
MOV RDX,qword ptr [RSP + 0xf0]
LAB_00182e16:
LEA RDI,[RSP + 0x100]
CALL 0x0010f2f0
JMP 0x00182e25
LAB_00182e25:
MOV byte ptr [RSP + 0xaf],0x0
LEA RAX,[RSP + 0x100]
MOV qword ptr [RSP + 0x118],RAX
MOV qword ptr [RSP + 0x120],0x1
MOV RSI,qword ptr [RSP + 0x118]
MOV RDX,qword ptr [RSP + 0x120]
LAB_00182e59:
LEA RDI,[RSP + 0x128]
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010f350
JMP 0x00182e73
LAB_00182e73:
MOV RSI,qword ptr [RSP + 0x98]
MOV RAX,qword ptr [RSI]
MOV RAX,qword ptr [RAX + 0x28]
LAB_00182e82:
LEA RDI,[RSP + 0x170]
LEA RDX,[RSP + 0x150]
LEA RCX,[RSP + 0x128]
CALL RAX
LAB_00182e9c:
JMP 0x00182e9e
LAB_00182e9e:
MOV RDI,qword ptr [RSP + 0x88]
LEA RSI,[RSP + 0x170]
ADD RSI,0x30
CALL 0x0016b720
LEA RDI,[RSP + 0x170]
CALL 0x00186960
LEA RDI,[RSP + 0x128]
CALL 0x0010fa40
LEA RAX,[RSP + 0x100]
MOV qword ptr [RSP + 0x78],RAX
ADD RAX,0x18
MOV qword ptr [RSP + 0x80],RAX
LAB_00182eea:
MOV RDI,qword ptr [RSP + 0x80]
ADD RDI,-0x18
MOV qword ptr [RSP + 0x70],RDI
CALL 0x0010f2e0
MOV RCX,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RSP + 0x70]
CMP RAX,RCX
MOV qword ptr [RSP + 0x80],RAX
JNZ 0x00182eea
LEA RAX,[RSP + 0xb8]
MOV qword ptr [RSP + 0x60],RAX
ADD RAX,0x30
MOV qword ptr [RSP + 0x68],RAX
LAB_00182f2d:
MOV RDI,qword ptr [RSP + 0x68]
ADD RDI,-0x18
MOV qword ptr [RSP + 0x58],RDI
CALL 0x0010f2e0
MOV RCX,qword ptr [RSP + 0x60]
MOV RAX,qword ptr [RSP + 0x58]
CMP RAX,RCX
MOV qword ptr [RSP + 0x68],RAX
JNZ 0x00182f2d
LEA RDI,[RSP + 0x150]
CALL 0x0010bfb0
LEA RDI,[RSP + 0x14f]
CALL 0x0010b8e0
MOV RAX,qword ptr [RSP + 0x90]
ADD RSP,0x1d8
RET
|
/* mcp::sse_client::read_resource(std::__cxx11::string const&) */
string * mcp::sse_client::read_resource(string *param_1)
{
int8 in_RDX;
long *in_RSI;
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_170;
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_158;
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
local_120 [24];
int1 local_108 [24];
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_f0;
int8 local_e8;
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_e0;
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
local_d8 [24];
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_c0;
int8 local_b8;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_b0 [39];
allocator local_89;
string local_88 [32];
response local_68 [48];
basic_json abStack_38 [32];
int8 local_18;
string *local_8;
local_18 = in_RDX;
local_8 = param_1;
std::allocator<char>::allocator();
/* try { // try from 00182d7f to 00182d92 has its CatchHandler @ 00182f7e */
std::__cxx11::string::string<std::allocator<char>>(local_88,"resources/read",&local_89);
local_e0 = local_d8;
/* try { // try from 00182dbd to 00182de7 has its CatchHandler @ 00182f97 */
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRA4_KcETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSM_
(local_120,&DAT_001d3187);
_ZN8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2IJRKSB_ETnNSt9enable_ifIXsr3std16is_constructibleISF_DpT_EE5valueEiE4typeELi0EEEDpOSL_
(local_108,local_18);
local_f0 = local_120;
local_e8 = 2;
/* try { // try from 00182e16 to 00182e22 has its CatchHandler @ 00182ff4 */
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::json_ref(local_d8,local_f0,2);
local_c0 = local_d8;
local_b8 = 1;
/* try { // try from 00182e59 to 00182e70 has its CatchHandler @ 0018300a */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_b0,local_c0,1,1,2);
/* try { // try from 00182e82 to 00182e9b has its CatchHandler @ 00183020 */
(**(code **)(*in_RSI + 0x28))(local_68,in_RSI,local_88,local_b0);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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,abStack_38);
response::~response(local_68);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_b0);
local_158 = (json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_c0;
do {
local_158 = local_158 + -0x18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~json_ref(local_158);
} while (local_158 != local_d8);
local_170 = (json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*)&local_f0;
do {
local_170 = local_170 + -0x18;
nlohmann::json_abi_v3_11_3::detail::
json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::~json_ref(local_170);
} while (local_170 != local_120);
std::__cxx11::string::~string(local_88);
std::allocator<char>::~allocator((allocator<char> *)&local_89);
return param_1;
}
| |
52,244 | mcp::sse_client::read_resource(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | hkr04[P]cpp-mcp/src/mcp_sse_client.cpp | json sse_client::read_resource(const std::string& resource_uri) {
return send_request("resources/read", {
{"uri", resource_uri}
}).result;
} | O1 | cpp | mcp::sse_client::read_resource(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 $0xc8, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x30723(%rip), %rsi # 0x43bd9
leaq 0x3072a(%rip), %rdx # 0x43be7
leaq 0x10(%rsp), %rdi
callq 0xba4e
leaq 0x48(%rsp), %r13
leaq 0x30715(%rip), %rsi # 0x43be8
movq %r13, %r15
movq %r13, %rdi
callq 0xf5aa
leaq 0x60(%rsp), %r15
movq $0x0, -0x8(%r15)
movq %r15, %rdi
movq %r12, %rsi
callq 0x157fe
leaq 0x48(%rsp), %rsi
movq $0x0, 0x28(%rsi)
leaq 0x30(%rsp), %rdi
movl $0x2, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xae76
leaq 0x30(%rsp), %rsi
movq $0x0, 0x10(%rsi)
movq %rsp, %rdi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x2, %r8d
callq 0xae76
movq (%r14), %rax
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rsp, %rcx
movq %r14, %rsi
callq *0x28(%rax)
leaq 0xa8(%rsp), %r14
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movb $0x0, (%r14)
movq $0x0, 0x8(%r14)
leaq 0xb8(%rsp), %rdi
callq 0xbc82
movq %r14, %rdi
callq 0xbc82
leaq 0x98(%rsp), %r14
movq %r14, %rdi
callq 0xbc82
movq -0x20(%r14), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x135b9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8580
movq %rsp, %rdi
callq 0xbc82
leaq 0x30(%rsp), %rdi
callq 0xbc82
movl $0x18, %r14d
leaq (%rsp,%r14), %rdi
addq $0x48, %rdi
callq 0xbc82
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x135d1
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x135ff
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8580
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xbc82
jmp 0x13624
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xbc82
jmp 0x13633
movq %rax, %rbx
movl $0x18, %r14d
leaq (%rsp,%r14), %rdi
addq $0x48, %rdi
callq 0xbc82
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x13639
jmp 0x13670
movq %rax, %rbx
cmpq %r15, %r13
je 0x13670
leaq 0x48(%rsp), %r14
addq $-0x18, %r15
movq %r15, %rdi
callq 0xbc82
cmpq %r14, %r15
jne 0x1365f
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x13687
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8580
movq %rbx, %rdi
callq 0x8960
nop
| _ZN3mcp10sse_client13read_resourceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov r12, rdx
mov r14, rsi
mov rbx, rdi
lea rbp, [rsp+0F8h+var_D8]
mov [rbp-10h], rbp
lea rsi, aResourcesRead; "resources/read"
lea rdx, aResourcesRead+0Eh; ""
lea rdi, [rsp+0F8h+var_E8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea r13, [rsp+0F8h+var_B0]
lea rsi, aUri; "uri"
mov r15, r13
mov rdi, r13
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA4_KcA4_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
lea r15, [rsp+0F8h+var_98]
mov qword ptr [r15-8], 0
mov rdi, r15
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
lea rsi, [rsp+0F8h+var_B0]
mov qword ptr [rsi+28h], 0
lea rdi, [rsp+0F8h+var_C8]
mov edx, 2
mov ecx, 1
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
lea rsi, [rsp+0F8h+var_C8]
mov qword ptr [rsi+10h], 0
mov rdi, rsp
mov edx, 1
mov ecx, 1
mov r8d, 2
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]
lea rdi, [rsp+0F8h+var_80]
lea rdx, [rsp+0F8h+var_E8]
mov rcx, rsp
mov rsi, r14
call qword ptr [rax+28h]
lea r14, [rsp+0F8h+var_50]
movups xmm0, xmmword ptr [r14]
movups xmmword ptr [rbx], xmm0
mov byte ptr [r14], 0
mov qword ptr [r14+8], 0
lea rdi, [rsp+0F8h+var_40]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea r14, [rsp+0F8h+var_60]
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [r14-20h]; void *
lea rax, [rsp+0F8h+var_70]
cmp rdi, rax
jz short loc_135B9
mov rsi, [rsp+0F8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_135B9:
mov rdi, rsp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+0F8h+var_C8]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov r14d, 18h
loc_135D1:
lea rdi, [rsp+r14+0F8h+var_F8]
add rdi, 48h ; 'H'
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, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_135D1
mov rdi, [rsp+0F8h+var_E8]; void *
cmp rdi, rbp
jz short loc_135FF
mov rsi, [rsp+0F8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_135FF:
mov rax, rbx
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, rsp
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_13624
mov rbx, rax
loc_13624:
lea rdi, [rsp+arg_28]
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_13633
mov rbx, rax
loc_13633:
mov r14d, 18h
loc_13639:
lea rdi, [rsp+r14+0]
add rdi, 48h ; 'H'
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, 0FFFFFFFFFFFFFFE8h
cmp r14, 0FFFFFFFFFFFFFFE8h
jnz short loc_13639
jmp short loc_13670
mov rbx, rax
cmp r13, r15
jz short loc_13670
lea r14, [rsp+arg_40]
loc_1365F:
add r15, 0FFFFFFFFFFFFFFE8h
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()
cmp r15, r14
jnz short loc_1365F
loc_13670:
mov rdi, [rsp+arg_8]; void *
cmp rdi, rbp
jz short loc_13687
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_13687:
mov rdi, rbx
call __Unwind_Resume
| _OWORD * mcp::sse_client::read_resource(_OWORD *a1, long long a2, long long a3)
{
long long i; // r14
_BYTE v6[16]; // [rsp+0h] [rbp-F8h] BYREF
void *v7[2]; // [rsp+10h] [rbp-E8h] BYREF
_QWORD v8[2]; // [rsp+20h] [rbp-D8h] BYREF
_BYTE v9[16]; // [rsp+30h] [rbp-C8h] BYREF
long long v10; // [rsp+40h] [rbp-B8h]
_BYTE v11[16]; // [rsp+48h] [rbp-B0h] BYREF
long long v12; // [rsp+58h] [rbp-A0h]
_BYTE v13[16]; // [rsp+60h] [rbp-98h] BYREF
long long v14; // [rsp+70h] [rbp-88h]
long long *v15; // [rsp+78h] [rbp-80h] BYREF
long long v16; // [rsp+88h] [rbp-70h] BYREF
_BYTE v17[16]; // [rsp+98h] [rbp-60h] BYREF
__int128 v18; // [rsp+A8h] [rbp-50h] BYREF
_BYTE v19[64]; // [rsp+B8h] [rbp-40h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>(v7, "resources/read", (long long)"");
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA4_KcA4_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_(
(long long)v11,
(long long)"uri");
v12 = 0LL;
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_(
v13,
a3);
v14 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v9,
v11,
2LL,
1LL,
2LL);
v10 = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v6,
v9,
1LL,
1LL,
2LL);
(*(void ( **)(long long **, long long, void **, _BYTE *))(*(_QWORD *)a2 + 40LL))(&v15, a2, v7, v6);
*a1 = v18;
LOBYTE(v18) = 0;
*((_QWORD *)&v18 + 1) = 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>::data::~data(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>::data::~data(&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>::data::~data(v17);
if ( v15 != &v16 )
operator delete(v15, v16 + 1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v6);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v9);
for ( i = 24LL; i != -24; i -= 24LL )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v11[i]);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
return a1;
}
| read_resource:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RBP,[RSP + 0x20]
MOV qword ptr [RBP + -0x10],RBP
LEA RSI,[0x143bd9]
LEA RDX,[0x143be7]
LEA RDI,[RSP + 0x10]
CALL 0x0010ba4e
LEA R13,[RSP + 0x48]
LAB_001134cc:
LEA RSI,[0x143be8]
MOV R15,R13
MOV RDI,R13
CALL 0x0010f5aa
LEA R15,[RSP + 0x60]
MOV qword ptr [R15 + -0x8],0x0
MOV RDI,R15
MOV RSI,R12
CALL 0x001157fe
LEA RSI,[RSP + 0x48]
MOV qword ptr [RSI + 0x28],0x0
LAB_00113503:
LEA RDI,[RSP + 0x30]
MOV EDX,0x2
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010ae76
LEA RSI,[RSP + 0x30]
MOV qword ptr [RSI + 0x10],0x0
LAB_0011352a:
MOV RDI,RSP
MOV EDX,0x1
MOV ECX,0x1
MOV R8D,0x2
CALL 0x0010ae76
MOV RAX,qword ptr [R14]
LAB_00113545:
LEA RDI,[RSP + 0x78]
LEA RDX,[RSP + 0x10]
MOV RCX,RSP
MOV RSI,R14
CALL qword ptr [RAX + 0x28]
LAB_00113558:
LEA R14,[RSP + 0xa8]
MOVUPS XMM0,xmmword ptr [R14]
MOVUPS xmmword ptr [RBX],XMM0
MOV byte ptr [R14],0x0
MOV qword ptr [R14 + 0x8],0x0
LEA RDI,[RSP + 0xb8]
CALL 0x0010bc82
MOV RDI,R14
CALL 0x0010bc82
LEA R14,[RSP + 0x98]
MOV RDI,R14
CALL 0x0010bc82
MOV RDI,qword ptr [R14 + -0x20]
LEA RAX,[RSP + 0x88]
CMP RDI,RAX
JZ 0x001135b9
MOV RSI,qword ptr [RSP + 0x88]
INC RSI
CALL 0x00108580
LAB_001135b9:
MOV RDI,RSP
CALL 0x0010bc82
LEA RDI,[RSP + 0x30]
CALL 0x0010bc82
MOV R14D,0x18
LAB_001135d1:
LEA RDI,[RSP + R14*0x1]
ADD RDI,0x48
CALL 0x0010bc82
ADD R14,-0x18
CMP R14,-0x18
JNZ 0x001135d1
MOV RDI,qword ptr [RSP + 0x10]
CMP RDI,RBP
JZ 0x001135ff
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00108580
LAB_001135ff:
MOV RAX,RBX
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* mcp::sse_client::read_resource(std::__cxx11::string const&) */
string * mcp::sse_client::read_resource(string *param_1)
{
long *in_RSI;
long lVar1;
data adStack_f8 [16];
long *local_e8 [2];
long local_d8 [2];
data local_c8 [16];
int8 local_b8;
data local_b0 [16];
int8 local_a0;
int1 local_98 [16];
int8 local_88;
long *local_80 [2];
long local_70 [2];
data local_60 [16];
data local_50;
int7 uStack_4f;
int8 uStack_48;
data local_40 [16];
local_e8[0] = local_d8;
std::__cxx11::string::_M_construct<char_const*>(local_e8,"resources/read","");
/* try { // try from 001134cc to 001134f5 has its CatchHandler @ 00113652 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA4_KcA4_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_
(local_b0,&DAT_00143be8);
local_a0 = 0;
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
(local_98);
local_88 = 0;
/* try { // try from 00113503 to 0011351c has its CatchHandler @ 00113630 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_c8,local_b0,2,1,2);
local_b8 = 0;
/* try { // try from 0011352a to 00113541 has its CatchHandler @ 00113621 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(adStack_f8,local_c8,1,1,2);
/* try { // try from 00113545 to 00113557 has its CatchHandler @ 00113614 */
(**(code **)(*in_RSI + 0x28))(local_80);
*(ulong *)param_1 = CONCAT71(uStack_4f,local_50);
*(int8 *)(param_1 + 8) = uStack_48;
local_50 = (data)0x0;
uStack_48 = 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_40);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_50);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_60);
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 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>
::data::~data(adStack_f8);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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);
lVar1 = 0x18;
do {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_b0 + lVar1);
lVar1 = lVar1 + -0x18;
} while (lVar1 != -0x18);
if (local_e8[0] != local_d8) {
operator_delete(local_e8[0],local_d8[0] + 1);
}
return param_1;
}
| |
52,245 | void tbb::detail::r1::arena::advertise_new_work<(tbb::detail::r1::arena::new_work_type)0>() | aimrt_mujoco_sim/_deps/tbb-src/src/tbb/arena.h | void arena::advertise_new_work() {
bool is_mandatory_needed = false;
bool are_workers_needed = false;
if (work_type != work_spawned) {
// Local memory fence here and below is required to avoid missed wakeups; see the comment below.
// Starvation resistant tasks require concurrency, so missed wakeups are unacceptable.
atomic_fence_seq_cst();
}
if (work_type == work_enqueued && my_num_slots > my_num_reserved_slots) {
is_mandatory_needed = my_mandatory_concurrency.test_and_set();
}
// Double-check idiom that, in case of spawning, is deliberately sloppy about memory fences.
// Technically, to avoid missed wakeups, there should be a full memory fence between the point we
// released the task pool (i.e. spawned task) and read the arena's state. However, adding such a
// fence might hurt overall performance more than it helps, because the fence would be executed
// on every task pool release, even when stealing does not occur. Since TBB allows parallelism,
// but never promises parallelism, the missed wakeup is not a correctness problem.
are_workers_needed = my_pool_state.test_and_set();
if (is_mandatory_needed || are_workers_needed) {
int mandatory_delta = is_mandatory_needed ? 1 : 0;
int workers_delta = are_workers_needed ? my_max_num_workers : 0;
if (is_mandatory_needed && is_arena_workerless()) {
// Set workers_delta to 1 to keep arena invariants consistent
workers_delta = 1;
}
request_workers(mandatory_delta, workers_delta, /* wakeup_threads = */ true);
}
} | O0 | c | void tbb::detail::r1::arena::advertise_new_work<(tbb::detail::r1::arena::new_work_type)0>():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movb $0x0, 0x1f(%rsp)
movb $0x0, 0x1e(%rsp)
addq $0xe8, %rdi
callq 0x6e5a80
andb $0x1, %al
movb %al, 0x1e(%rsp)
testb $0x1, 0x1f(%rsp)
jne 0x6fe73d
testb $0x1, 0x1e(%rsp)
je 0x6fe7b0
movb 0x1f(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x18(%rsp)
testb $0x1, 0x1e(%rsp)
je 0x6fe76a
movq 0x8(%rsp), %rax
movl 0x17c(%rax), %eax
movl %eax, 0x4(%rsp)
jmp 0x6fe772
xorl %eax, %eax
movl %eax, 0x4(%rsp)
jmp 0x6fe772
movl 0x4(%rsp), %eax
movl %eax, 0x14(%rsp)
testb $0x1, 0x1f(%rsp)
je 0x6fe799
movq 0x8(%rsp), %rdi
callq 0x6debb0
testb $0x1, %al
jne 0x6fe791
jmp 0x6fe799
movl $0x1, 0x14(%rsp)
movq 0x8(%rsp), %rdi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
movl $0x1, %ecx
callq 0x6d8e70
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nop
| _ZN3tbb6detail2r15arena18advertise_new_workILNS2_13new_work_typeE0EEEvv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rdi, [rsp+28h+var_8]
mov [rsp+28h+var_20], rdi
mov [rsp+28h+var_9], 0
mov [rsp+28h+var_A], 0
add rdi, 0E8h; this
call _ZN3tbb6detail2r111atomic_flag12test_and_setEv; tbb::detail::r1::atomic_flag::test_and_set(void)
and al, 1
mov [rsp+28h+var_A], al
test [rsp+28h+var_9], 1
jnz short loc_6FE73D
test [rsp+28h+var_A], 1
jz short loc_6FE7B0
loc_6FE73D:
mov dl, [rsp+28h+var_9]
xor eax, eax
mov ecx, 1
test dl, 1
cmovnz eax, ecx
mov [rsp+28h+var_10], eax
test [rsp+28h+var_A], 1
jz short loc_6FE76A
mov rax, [rsp+28h+var_20]
mov eax, [rax+17Ch]
mov [rsp+28h+var_24], eax
jmp short loc_6FE772
loc_6FE76A:
xor eax, eax
mov [rsp+28h+var_24], eax
jmp short $+2
loc_6FE772:
mov eax, [rsp+28h+var_24]
mov [rsp+28h+var_14], eax
test [rsp+28h+var_9], 1
jz short loc_6FE799
mov rdi, [rsp+28h+var_20]; this
call _ZNK3tbb6detail2r15arena19is_arena_workerlessEv; tbb::detail::r1::arena::is_arena_workerless(void)
test al, 1
jnz short loc_6FE791
jmp short loc_6FE799
loc_6FE791:
mov [rsp+28h+var_14], 1
loc_6FE799:
mov rdi, [rsp+28h+var_20]; this
mov esi, [rsp+28h+var_10]; int
mov edx, [rsp+28h+var_14]; int
mov ecx, 1; bool
call _ZN3tbb6detail2r15arena15request_workersEiib; tbb::detail::r1::arena::request_workers(int,int,bool)
loc_6FE7B0:
add rsp, 28h
retn
| char tbb::detail::r1::arena::advertise_new_work<(tbb::detail::r1::arena::new_work_type)0>(unsigned int *a1)
{
char result; // al
result = tbb::detail::r1::atomic_flag::test_and_set((tbb::detail::r1::atomic_flag *)(a1 + 58));
if ( (result & 1) != 0 )
return tbb::detail::r1::arena::request_workers((tbb::detail::r1::arena *)a1, 0, a1[95], 1);
return result;
}
| find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>,YAML::detail::node_data::get<char[8]>(char_const(&)[8],std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)#1}>:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x38],RCX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x20],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x8]
CALL 0x006fe8b0
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x18]
CALL 0x006fe830
MOV qword ptr [RSP + 0x50],RAX
MOV RAX,qword ptr [RSP + 0x50]
ADD RSP,0x58
RET
|
/* __gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*, YAML::detail::node*>*,
std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > > >
std::find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*, YAML::detail::node*>*,
std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > > >,
YAML::detail::node_data::get<char [8]>(char const (&) [8],
std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node*,
YAML::detail::node*>)#1}>(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,
YAML::detail::node*>*, std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > > >,
__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*, YAML::detail::node*>*,
std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > > >,
YAML::detail::node_data::get<char [8]>(char const (&) [8],
std::shared_ptr<YAML::detail::memory_holder>)::{lambda(std::pair<YAML::detail::node*,
YAML::detail::node*>)#1}) */
int8
std::
find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>,YAML::detail::node_data::get<char[8]>(char_const(&)[8],std::shared_ptr<YAML::detail::memory_holder>)::_lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)_1_>
(int8 param_1,int8 param_2,__ops *param_3,int8 param_4)
{
int8 uVar1;
int1 auVar2 [16];
auVar2 = __gnu_cxx::__ops::
__pred_iter<YAML::detail::node_data::get<char[8]>(char_const(&)[8],std::shared_ptr<YAML::detail::memory_holder>)::_lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)_1_>
(param_3,param_4);
uVar1 = __find_if<__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>,__gnu_cxx::__ops::_Iter_pred<YAML::detail::node_data::get<char[8]>(char_const(&)[8],std::shared_ptr<YAML::detail::memory_holder>)::_lambda(std::pair<YAML::detail::node*,YAML::detail::node*>)_1_>>
(param_1,param_2,auVar2._0_8_,auVar2._8_8_);
return uVar1;
}
| |
52,246 | set_max_sort_char | eloqsql/strings/ctype-simple.c | static void set_max_sort_char(struct charset_info_st *cs)
{
uchar max_char;
uint i;
if (!cs->sort_order)
return;
max_char=cs->sort_order[(uchar) cs->max_sort_char];
for (i= 0; i < 256; i++)
{
if ((uchar) cs->sort_order[i] > max_char)
{
max_char=(uchar) cs->sort_order[i];
cs->max_sort_char= i;
}
}
} | O0 | c | set_max_sort_char:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x58(%rax)
jne 0xb0915
jmp 0xb0986
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0xa8(%rcx), %rcx
movzbl %cl, %ecx
movb (%rax,%rcx), %al
movb %al, -0x9(%rbp)
movl $0x0, -0x10(%rbp)
cmpl $0x100, -0x10(%rbp) # imm = 0x100
jae 0xb0986
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x10(%rbp), %ecx
movzbl (%rax,%rcx), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jle 0xb0979
movq -0x8(%rbp), %rax
movq 0x58(%rax), %rax
movl -0x10(%rbp), %ecx
movb (%rax,%rcx), %al
movb %al, -0x9(%rbp)
movl -0x10(%rbp), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0xa8(%rax)
jmp 0xb097b
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xb0938
popq %rbp
retq
nopl (%rax,%rax)
| set_max_sort_char:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
cmp qword ptr [rax+58h], 0
jnz short loc_B0915
jmp short loc_B0986
loc_B0915:
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov rcx, [rbp+var_8]
mov rcx, [rcx+0A8h]
movzx ecx, cl
mov al, [rax+rcx]
mov [rbp+var_9], al
mov [rbp+var_10], 0
loc_B0938:
cmp [rbp+var_10], 100h
jnb short loc_B0986
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov ecx, [rbp+var_10]
movzx eax, byte ptr [rax+rcx]
movzx ecx, [rbp+var_9]
cmp eax, ecx
jle short loc_B0979
mov rax, [rbp+var_8]
mov rax, [rax+58h]
mov ecx, [rbp+var_10]
mov al, [rax+rcx]
mov [rbp+var_9], al
mov eax, [rbp+var_10]
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+0A8h], rcx
loc_B0979:
jmp short $+2
loc_B097B:
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp short loc_B0938
loc_B0986:
pop rbp
retn
| unsigned __int8 set_max_sort_char(long long a1)
{
unsigned __int8 result; // al
unsigned int i; // [rsp+0h] [rbp-10h]
unsigned __int8 v3; // [rsp+7h] [rbp-9h]
result = a1;
if ( *(_QWORD *)(a1 + 88) )
{
result = *(_BYTE *)(*(_QWORD *)(a1 + 88) + (unsigned __int8)*(_QWORD *)(a1 + 168));
v3 = result;
for ( i = 0; i < 0x100; ++i )
{
if ( *(unsigned __int8 *)(*(_QWORD *)(a1 + 88) + i) > (int)v3 )
{
v3 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + i);
*(_QWORD *)(a1 + 168) = i;
}
result = i + 1;
}
}
return result;
}
| set_max_sort_char:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x58],0x0
JNZ 0x001b0915
JMP 0x001b0986
LAB_001b0915:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV RCX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RCX + 0xa8]
MOVZX ECX,CL
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x9],AL
MOV dword ptr [RBP + -0x10],0x0
LAB_001b0938:
CMP dword ptr [RBP + -0x10],0x100
JNC 0x001b0986
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOVZX ECX,byte ptr [RBP + -0x9]
CMP EAX,ECX
JLE 0x001b0979
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x58]
MOV ECX,dword ptr [RBP + -0x10]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x9],AL
MOV EAX,dword ptr [RBP + -0x10]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0xa8],RCX
LAB_001b0979:
JMP 0x001b097b
LAB_001b097b:
MOV EAX,dword ptr [RBP + -0x10]
ADD EAX,0x1
MOV dword ptr [RBP + -0x10],EAX
JMP 0x001b0938
LAB_001b0986:
POP RBP
RET
|
void set_max_sort_char(long param_1)
{
int4 local_18;
int1 local_11;
if (*(long *)(param_1 + 0x58) != 0) {
local_11 = *(byte *)(*(long *)(param_1 + 0x58) + (*(ulong *)(param_1 + 0xa8) & 0xff));
for (local_18 = 0; local_18 < 0x100; local_18 = local_18 + 1) {
if (local_11 < *(byte *)(*(long *)(param_1 + 0x58) + (ulong)local_18)) {
local_11 = *(byte *)(*(long *)(param_1 + 0x58) + (ulong)local_18);
*(ulong *)(param_1 + 0xa8) = (ulong)local_18;
}
}
}
return;
}
| |
52,247 | JS_CreateProperty | bluesky950520[P]quickjs/quickjs.c | static int JS_CreateProperty(JSContext *ctx, JSObject *p,
JSAtom prop, JSValue val,
JSValue getter, JSValue setter,
int flags)
{
JSProperty *pr;
int ret, prop_flags;
/* add a new property or modify an existing exotic one */
if (p->is_exotic) {
if (p->class_id == JS_CLASS_ARRAY) {
uint32_t idx, len;
if (p->fast_array) {
if (__JS_AtomIsTaggedInt(prop)) {
idx = __JS_AtomToUInt32(prop);
if (idx == p->u.array.count) {
if (!p->extensible)
goto not_extensible;
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET))
goto convert_to_array;
prop_flags = get_prop_flags(flags, 0);
if (prop_flags != JS_PROP_C_W_E)
goto convert_to_array;
return add_fast_array_element(ctx, p,
js_dup(val), flags);
} else {
goto convert_to_array;
}
} else if (JS_AtomIsArrayIndex(ctx, &idx, prop)) {
/* convert the fast array to normal array */
convert_to_array:
if (convert_fast_array_to_array(ctx, p))
return -1;
goto generic_array;
}
} else if (JS_AtomIsArrayIndex(ctx, &idx, prop)) {
JSProperty *plen;
JSShapeProperty *pslen;
generic_array:
/* update the length field */
plen = &p->prop[0];
JS_ToUint32(ctx, &len, plen->u.value);
if ((idx + 1) > len) {
pslen = get_shape_prop(p->shape);
if (unlikely(!(pslen->flags & JS_PROP_WRITABLE)))
return JS_ThrowTypeErrorReadOnly(ctx, flags, JS_ATOM_length);
/* XXX: should update the length after defining
the property */
len = idx + 1;
set_value(ctx, &plen->u.value, js_uint32(len));
}
}
} else if (p->class_id >= JS_CLASS_UINT8C_ARRAY &&
p->class_id <= JS_CLASS_FLOAT64_ARRAY) {
ret = JS_AtomIsNumericIndex(ctx, prop);
if (ret != 0) {
if (ret < 0)
return -1;
return JS_ThrowTypeErrorOrFalse(ctx, flags, "cannot create numeric index in typed array");
}
} else if (!(flags & JS_PROP_NO_EXOTIC)) {
const JSClassExoticMethods *em = ctx->rt->class_array[p->class_id].exotic;
if (em) {
if (em->define_own_property) {
return em->define_own_property(ctx, JS_MKPTR(JS_TAG_OBJECT, p),
prop, val, getter, setter, flags);
}
ret = JS_IsExtensible(ctx, JS_MKPTR(JS_TAG_OBJECT, p));
if (ret < 0)
return -1;
if (!ret)
goto not_extensible;
}
}
}
if (!p->extensible) {
not_extensible:
return JS_ThrowTypeErrorOrFalse(ctx, flags, "object is not extensible");
}
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET)) {
prop_flags = (flags & (JS_PROP_CONFIGURABLE | JS_PROP_ENUMERABLE)) |
JS_PROP_GETSET;
} else {
prop_flags = flags & JS_PROP_C_W_E;
}
pr = add_property(ctx, p, prop, prop_flags);
if (unlikely(!pr))
return -1;
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET)) {
pr->u.getset.getter = NULL;
if ((flags & JS_PROP_HAS_GET) && JS_IsFunction(ctx, getter)) {
pr->u.getset.getter =
JS_VALUE_GET_OBJ(js_dup(getter));
}
pr->u.getset.setter = NULL;
if ((flags & JS_PROP_HAS_SET) && JS_IsFunction(ctx, setter)) {
pr->u.getset.setter =
JS_VALUE_GET_OBJ(js_dup(setter));
}
} else {
if (flags & JS_PROP_HAS_VALUE) {
pr->u.value = js_dup(val);
} else {
pr->u.value = JS_UNDEFINED;
}
}
return TRUE;
} | O1 | c | JS_CreateProperty:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %ebx
movq %r8, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, %r14
movb 0x5(%rsi), %al
testb $0x4, %al
jne 0xfde1
testb $0x1, 0x5(%r13)
jne 0xfe14
leaq 0x93422(%rip), %rdx # 0xa31e9
movq %r14, %rdi
movl %ebx, %esi
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a23e
movzwl 0x6(%r13), %ecx
cmpq $0x2, %rcx
jne 0xfee2
testb $0x8, %al
jne 0xff2b
leaq 0x34(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x41849
testl %eax, %eax
jne 0x10078
jmp 0x100f7
movl %ebx, %eax
andl $0x5, %eax
orl $0x10, %eax
movl %ebx, %ecx
andl $0x7, %ecx
testw $0x1800, %bx # imm = 0x1800
cmovnel %eax, %ecx
movq %r14, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x3ffa1
testq %rax, %rax
je 0x10016
movq %rax, %r13
testw $0x1800, %bx # imm = 0x1800
je 0xff0f
andq $0x0, (%r13)
btl $0xb, %ebx
jae 0xfe8f
leaq 0x80(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x26e1a
testl %eax, %eax
je 0xfe8f
movq %r15, 0x28(%rsp)
cmpl $-0x9, %r12d
jb 0xfe8b
movq 0x28(%rsp), %rax
incl (%rax)
movq %r15, (%r13)
andq $0x0, 0x8(%r13)
pushq $0x1
popq %r15
btl $0xc, %ebx
jae 0x1010d
leaq 0x90(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r12
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x26e1a
testl %eax, %eax
je 0x1010d
movq %rbx, 0x28(%rsp)
cmpl $-0x9, %r12d
jb 0xfed9
movq 0x28(%rsp), %rax
incl (%rax)
movq %rbx, 0x8(%r13)
jmp 0x1010d
leal -0x15(%rcx), %eax
cmpw $0xb, %ax
ja 0xff4f
movq %r14, %rdi
movl %ebp, %esi
callq 0x280bc
testl %eax, %eax
je 0xfdb9
js 0x10016
leaq 0x934ce(%rip), %rdx # 0xa33d8
jmp 0xfdc7
btl $0xd, %ebx
jb 0xffcb
andl $0x0, (%r13)
movq $0x3, 0x8(%r13)
jmp 0xffee
testl %ebp, %ebp
js 0xfff7
leaq 0x34(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x41849
testl %eax, %eax
jne 0x1005c
jmp 0x100f7
btl $0x11, %ebx
jb 0xfdb9
movq 0x18(%r14), %rax
movq 0x80(%rax), %rax
imulq $0x28, %rcx, %rcx
movq 0x20(%rax,%rcx), %rax
testq %rax, %rax
je 0x10133
pushq $0x1
popq %r12
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x1011f
leaq 0x90(%rsp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x80(%rsp), %rcx
movupd (%rcx), %xmm0
movupd %xmm0, (%rsp)
movl %ebx, 0x20(%rsp)
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movq 0x38(%rsp), %r8
movq 0x40(%rsp), %r9
callq *%rax
movl %eax, %r15d
jmp 0x10136
movq 0x38(%rsp), %rdx
movq %rdx, 0x28(%rsp)
movq 0x40(%rsp), %rcx
cmpl $-0x9, %ecx
jb 0xffe6
movq 0x28(%rsp), %rax
incl (%rax)
movq %rdx, (%r13)
movq %rcx, 0x8(%r13)
pushq $0x1
popq %r15
jmp 0x1010d
movl %ebp, %ecx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
movl %ecx, 0x34(%rsp)
cmpl 0x40(%r13), %ecx
jne 0x1005c
testb $0x1, %al
jne 0x1001a
pushq $0x2
popq %r12
jmp 0x100fa
pushq $-0x1
jmp 0xfff0
testw $0x1800, %bx # imm = 0x1800
jne 0x1005c
movl %ebx, %eax
shrl $0x8, %eax
andl %ebx, %eax
notl %eax
testb $0x7, %al
jne 0x1005c
movq 0x38(%rsp), %rdx
movq %rdx, 0x28(%rsp)
movq 0x40(%rsp), %rcx
cmpl $-0x9, %ecx
jb 0x10049
movq 0x28(%rsp), %rax
incl (%rax)
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %r8d
callq 0x41af3
movl %eax, %r15d
jmp 0x1006f
movq %r14, %rdi
movq %r13, %rsi
callq 0x2a80c
testl %eax, %eax
je 0x10078
pushq $-0x1
popq %r15
pushq $0x1
popq %r12
jmp 0x100fa
movq 0x20(%r13), %r15
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %rdx, 0x28(%rsp)
cmpl $-0x9, %ecx
jb 0x10094
movq 0x28(%rsp), %rax
incl (%rax)
leaq 0x28(%rsp), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x2ba1f
movl 0x34(%rsp), %eax
incl %eax
cmpl (%r12), %eax
jbe 0x100f7
movq 0x18(%r13), %rcx
testb $0x8, 0x43(%rcx)
je 0x10157
movl %eax, 0x28(%rsp)
xorl %r12d, %r12d
movl %eax, %ecx
cvtsi2sd %rcx, %xmm0
testl %eax, %eax
movq %xmm0, %rax
cmovnsq %rcx, %rax
pushq $0x7
popq %rcx
cmovnsq %r12, %rcx
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rax, (%r15)
movq %rcx, 0x8(%r15)
movq 0x18(%r14), %rdi
callq 0x21922
jmp 0x100fa
xorl %r12d, %r12d
testl %r12d, %r12d
je 0xfdb9
cmpl $0x2, %r12d
je 0xfdc0
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0xf997
testl %eax, %eax
js 0x1014b
je 0x10151
xorl %r12d, %r12d
cmpl $0x2, %r12d
je 0xfdc0
testl %r12d, %r12d
je 0xfdb9
jmp 0x1010d
pushq $-0x1
popq %r15
jmp 0x10136
pushq $0x2
popq %r12
jmp 0x10136
pushq $0x32
popq %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x41bbe
jmp 0x10057
| JS_CreateProperty:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebx, r9d
mov [rsp+78h+var_38], r8
mov [rsp+78h+var_40], rcx
mov ebp, edx
mov r13, rsi
mov r14, rdi
mov al, [rsi+5]
test al, 4
jnz short loc_FDE1
loc_FDB9:
test byte ptr [r13+5], 1
jnz short loc_FE14
loc_FDC0:
lea rdx, aObjectIsNotExt; "object is not extensible"
loc_FDC7:
mov rdi, r14
mov esi, ebx
xor eax, eax
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp JS_ThrowTypeErrorOrFalse
loc_FDE1:
movzx ecx, word ptr [r13+6]
cmp rcx, 2
jnz loc_FEE2
test al, 8
jnz loc_FF2B
lea rsi, [rsp+78h+var_44]
mov rdi, r14
mov edx, ebp
call JS_AtomIsArrayIndex
test eax, eax
jnz loc_10078
jmp loc_100F7
loc_FE14:
mov eax, ebx
and eax, 5
or eax, 10h
mov ecx, ebx
and ecx, 7
test bx, 1800h
cmovnz ecx, eax
mov rdi, r14
mov rsi, r13
mov edx, ebp
call add_property
test rax, rax
jz loc_10016
mov r13, rax
test bx, 1800h
jz loc_FF0F
and qword ptr [r13+0], 0
bt ebx, 0Bh
jnb short loc_FE8F
lea rax, [rsp+78h+arg_0]
mov r15, [rax]
mov r12, [rax+8]
mov rdi, r14
mov rsi, r15
mov rdx, r12
call JS_IsFunction
test eax, eax
jz short loc_FE8F
mov [rsp+78h+var_50], r15
cmp r12d, 0FFFFFFF7h
jb short loc_FE8B
mov rax, [rsp+78h+var_50]
inc dword ptr [rax]
loc_FE8B:
mov [r13+0], r15
loc_FE8F:
and qword ptr [r13+8], 0
push 1
pop r15
bt ebx, 0Ch
jnb loc_1010D
lea rax, [rsp+78h+arg_10]
mov rbx, [rax]
mov r12, [rax+8]
mov rdi, r14
mov rsi, rbx
mov rdx, r12
call JS_IsFunction
test eax, eax
jz loc_1010D
mov [rsp+78h+var_50], rbx
cmp r12d, 0FFFFFFF7h
jb short loc_FED9
mov rax, [rsp+78h+var_50]
inc dword ptr [rax]
loc_FED9:
mov [r13+8], rbx
jmp loc_1010D
loc_FEE2:
lea eax, [rcx-15h]
cmp ax, 0Bh
ja short loc_FF4F
mov rdi, r14
mov esi, ebp
call JS_AtomIsNumericIndex
test eax, eax
jz loc_FDB9
js loc_10016
lea rdx, aCannotCreateNu; "cannot create numeric index in typed ar"...
jmp loc_FDC7
loc_FF0F:
bt ebx, 0Dh
jb loc_FFCB
and dword ptr [r13+0], 0
mov qword ptr [r13+8], 3
jmp loc_FFEE
loc_FF2B:
test ebp, ebp
js loc_FFF7
lea rsi, [rsp+78h+var_44]
mov rdi, r14
mov edx, ebp
call JS_AtomIsArrayIndex
test eax, eax
jnz loc_1005C
jmp loc_100F7
loc_FF4F:
bt ebx, 11h
jb loc_FDB9
mov rax, [r14+18h]
mov rax, [rax+80h]
imul rcx, 28h ; '('
mov rax, [rax+rcx+20h]
test rax, rax
jz loc_10133
push 1
pop r12
mov rax, [rax+18h]
test rax, rax
jz loc_1011F
lea rcx, [rsp+78h+arg_10]
movups xmm0, xmmword ptr [rcx]
movups [rsp+78h+var_68], xmm0
lea rcx, [rsp+78h+arg_0]
movupd xmm0, xmmword ptr [rcx]
movupd [rsp+78h+var_78], xmm0
mov [rsp+78h+var_58], ebx
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
mov rsi, r13
mov ecx, ebp
mov r8, [rsp+78h+var_40]
mov r9, [rsp+78h+var_38]
call rax
mov r15d, eax
jmp loc_10136
loc_FFCB:
mov rdx, [rsp+78h+var_40]
mov [rsp+78h+var_50], rdx
mov rcx, [rsp+78h+var_38]
cmp ecx, 0FFFFFFF7h
jb short loc_FFE6
mov rax, [rsp+78h+var_50]
inc dword ptr [rax]
loc_FFE6:
mov [r13+0], rdx
mov [r13+8], rcx
loc_FFEE:
push 1
loc_FFF0:
pop r15
jmp loc_1010D
loc_FFF7:
mov ecx, ebp
and ecx, 7FFFFFFFh
mov [rsp+78h+var_44], ecx
loc_10003:
cmp ecx, [r13+40h]
jnz short loc_1005C
test al, 1
jnz short loc_1001A
push 2
pop r12
jmp loc_100FA
loc_10016:
push 0FFFFFFFFFFFFFFFFh
jmp short loc_FFF0
loc_1001A:
test bx, 1800h
jnz short loc_1005C
mov eax, ebx
shr eax, 8
and eax, ebx
not eax
test al, 7
jnz short loc_1005C
mov rdx, [rsp+78h+var_40]
mov [rsp+78h+var_50], rdx
mov rcx, [rsp+78h+var_38]
cmp ecx, 0FFFFFFF7h
jb short loc_10049
mov rax, [rsp+78h+var_50]
inc dword ptr [rax]
loc_10049:
mov rdi, r14
mov rsi, r13
mov r8d, ebx
call add_fast_array_element
loc_10057:
mov r15d, eax
jmp short loc_1006F
loc_1005C:
mov rdi, r14
mov rsi, r13
call convert_fast_array_to_array
test eax, eax
jz short loc_10078
push 0FFFFFFFFFFFFFFFFh
pop r15
loc_1006F:
push 1
pop r12
jmp loc_100FA
loc_10078:
mov r15, [r13+20h]
mov rdx, [r15]
mov rcx, [r15+8]
mov [rsp+78h+var_50], rdx
cmp ecx, 0FFFFFFF7h
jb short loc_10094
mov rax, [rsp+78h+var_50]
inc dword ptr [rax]
loc_10094:
lea r12, [rsp+78h+var_50]
mov rdi, r14
mov rsi, r12
call JS_ToInt32Free
mov eax, [rsp+78h+var_44]
inc eax
cmp eax, [r12]
jbe short loc_100F7
mov rcx, [r13+18h]
test byte ptr [rcx+43h], 8
jz loc_10157
mov dword ptr [rsp+78h+var_50], eax
xor r12d, r12d
mov ecx, eax
cvtsi2sd xmm0, rcx
test eax, eax
movq rax, xmm0
cmovns rax, rcx
push 7
pop rcx
cmovns rcx, r12
mov rsi, [r15]
mov rdx, [r15+8]
mov [r15], rax
mov [r15+8], rcx
mov rdi, [r14+18h]
call JS_FreeValueRT
jmp short loc_100FA
loc_100F7:
xor r12d, r12d
loc_100FA:
test r12d, r12d
jz loc_FDB9
cmp r12d, 2
jz loc_FDC0
loc_1010D:
mov eax, r15d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_1011F:
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
mov rsi, r13
call JS_IsExtensible
test eax, eax
js short loc_1014B
jz short loc_10151
loc_10133:
xor r12d, r12d
loc_10136:
cmp r12d, 2
jz loc_FDC0
test r12d, r12d
jz loc_FDB9
jmp short loc_1010D
loc_1014B:
push 0FFFFFFFFFFFFFFFFh
pop r15
jmp short loc_10136
loc_10151:
push 2
pop r12
jmp short loc_10136
loc_10157:
push 32h ; '2'
pop rdx
mov rdi, r14
mov esi, ebx
call JS_ThrowTypeErrorReadOnly
jmp loc_10057
| long long JS_CreateProperty(
long long a1,
long long a2,
unsigned int a3,
long long a4,
long long a5,
unsigned int a6,
_DWORD *a7,
long long a8,
_DWORD *a9,
long long a10)
{
long long v10; // r15
char v14; // al
const char *v15; // rdx
long long v17; // rcx
_QWORD *v18; // rax
_QWORD *v19; // r13
int IsNumericIndex; // eax
long long v21; // rax
int v22; // r12d
long long ( *v23)(long long, long long, long long, _QWORD, _DWORD *, long long, _DWORD *, long long, _DWORD *, long long, unsigned int); // rax
_DWORD *v24; // rdx
long long v25; // rcx
int v26; // r12d
_DWORD *v27; // rdx
long long v28; // rcx
int Only; // eax
long long v30; // rcx
int v31; // eax
double v32; // rcx
bool v33; // sf
double v34; // rax
long long v35; // rcx
_DWORD *v36; // rsi
int IsExtensible; // eax
int v38; // [rsp-8h] [rbp-80h]
_DWORD *v39; // [rsp+28h] [rbp-50h] BYREF
int v40; // [rsp+34h] [rbp-44h] BYREF
_DWORD *v41; // [rsp+38h] [rbp-40h]
long long v42; // [rsp+40h] [rbp-38h]
v42 = a5;
v41 = (_DWORD *)a4;
v14 = *(_BYTE *)(a2 + 5);
if ( (v14 & 4) == 0 )
goto LABEL_2;
a4 = *(unsigned __int16 *)(a2 + 6);
if ( a4 != 2 )
{
if ( (unsigned __int16)(a4 - 21) <= 0xBu )
{
IsNumericIndex = JS_AtomIsNumericIndex(a1, a3);
if ( IsNumericIndex )
{
if ( IsNumericIndex >= 0 )
{
v15 = "cannot create numeric index in typed array";
return JS_ThrowTypeErrorOrFalse(a1, a6, (_DWORD)v15, a4, a5, a6, (char)a7);
}
goto LABEL_44;
}
goto LABEL_2;
}
if ( (a6 & 0x20000) != 0 )
goto LABEL_2;
a4 *= 40LL;
v21 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + a4 + 32);
if ( !v21 )
goto LABEL_69;
v22 = 1;
v23 = *(long long ( **)(long long, long long, long long, _QWORD, _DWORD *, long long, _DWORD *, long long, _DWORD *, long long, unsigned int))(v21 + 24);
if ( v23 )
{
LODWORD(v10) = v23(a1, a2, -1LL, a3, v41, v42, a7, a8, a9, a10, a6);
goto LABEL_70;
}
IsExtensible = JS_IsExtensible(a1, a2, -1);
if ( IsExtensible < 0 )
{
LODWORD(v10) = -1;
}
else
{
if ( IsExtensible )
{
LABEL_69:
v22 = 0;
goto LABEL_70;
}
v22 = 2;
}
LABEL_70:
if ( v22 == 2 )
goto LABEL_3;
if ( v22 )
return (unsigned int)v10;
LABEL_2:
if ( (*(_BYTE *)(a2 + 5) & 1) == 0 )
{
LABEL_3:
v15 = "object is not extensible";
return JS_ThrowTypeErrorOrFalse(a1, a6, (_DWORD)v15, a4, a5, a6, (char)a7);
}
v17 = a6 & 7;
if ( (a6 & 0x1800) != 0 )
v17 = a6 & 5 | 0x10;
v18 = (_QWORD *)add_property(a1, a2, a3, v17);
if ( v18 )
{
v19 = v18;
if ( (a6 & 0x1800) != 0 )
{
*v18 = 0LL;
if ( (a6 & 0x800) != 0 && (unsigned int)JS_IsFunction(a1, a7, a8) )
{
v39 = a7;
if ( (unsigned int)a8 >= 0xFFFFFFF7 )
++*v39;
*v19 = a7;
}
v19[1] = 0LL;
LODWORD(v10) = 1;
if ( (a6 & 0x1000) != 0 && (unsigned int)JS_IsFunction(a1, a9, a10) )
{
v39 = a9;
if ( (unsigned int)a10 >= 0xFFFFFFF7 )
++*v39;
v19[1] = a9;
}
return (unsigned int)v10;
}
if ( (a6 & 0x2000) != 0 )
{
v24 = v41;
v39 = v41;
v25 = v42;
if ( (unsigned int)v42 >= 0xFFFFFFF7 )
++*v39;
*v18 = v24;
v18[1] = v25;
}
else
{
*(_DWORD *)v18 = 0;
v18[1] = 3LL;
}
v38 = 1;
goto LABEL_40;
}
LABEL_44:
v38 = -1;
LABEL_40:
LODWORD(v10) = v38;
return (unsigned int)v10;
}
if ( (v14 & 8) == 0 )
{
if ( !(unsigned int)JS_AtomIsArrayIndex(a1, &v40, a3) )
{
LABEL_63:
v26 = 0;
goto LABEL_64;
}
LABEL_54:
v10 = *(_QWORD *)(a2 + 32);
v30 = *(_QWORD *)(v10 + 8);
v39 = *(_DWORD **)v10;
if ( (unsigned int)v30 >= 0xFFFFFFF7 )
++*v39;
JS_ToInt32Free(a1, &v39);
v31 = v40 + 1;
if ( v40 + 1 <= (unsigned int)v39 )
goto LABEL_63;
if ( (*(_BYTE *)(*(_QWORD *)(a2 + 24) + 67LL) & 8) != 0 )
{
LODWORD(v39) = v40 + 1;
v26 = 0;
*(_QWORD *)&v32 = (unsigned int)v31;
v33 = v31 < 0;
v34 = (double)v31;
if ( !v33 )
v34 = v32;
v35 = 7LL;
if ( !v33 )
v35 = 0LL;
v36 = *(_DWORD **)v10;
*(double *)v10 = v34;
*(_QWORD *)(v10 + 8) = v35;
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v36);
goto LABEL_64;
}
Only = JS_ThrowTypeErrorReadOnly(a1, a6, 50LL);
goto LABEL_50;
}
if ( (a3 & 0x80000000) == 0 )
{
if ( !(unsigned int)JS_AtomIsArrayIndex(a1, &v40, a3) )
goto LABEL_63;
LABEL_51:
if ( (unsigned int)convert_fast_array_to_array(a1, a2) )
{
LODWORD(v10) = -1;
goto LABEL_53;
}
goto LABEL_54;
}
LODWORD(a4) = a3 & 0x7FFFFFFF;
v40 = a3 & 0x7FFFFFFF;
if ( (a3 & 0x7FFFFFFF) != *(_DWORD *)(a2 + 64) )
goto LABEL_51;
if ( (v14 & 1) != 0 )
{
if ( (a6 & 0x1800) == 0 && (~(a6 & (a6 >> 8)) & 7) == 0 )
{
v27 = v41;
v39 = v41;
v28 = v42;
if ( (unsigned int)v42 >= 0xFFFFFFF7 )
++*v39;
Only = add_fast_array_element(a1, a2, v27, v28, a6);
LABEL_50:
LODWORD(v10) = Only;
LABEL_53:
v26 = 1;
goto LABEL_64;
}
goto LABEL_51;
}
v26 = 2;
LABEL_64:
if ( !v26 )
goto LABEL_2;
if ( v26 == 2 )
goto LABEL_3;
return (unsigned int)v10;
}
| JS_CreateProperty:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBX,R9D
MOV qword ptr [RSP + 0x40],R8
MOV qword ptr [RSP + 0x38],RCX
MOV EBP,EDX
MOV R13,RSI
MOV R14,RDI
MOV AL,byte ptr [RSI + 0x5]
TEST AL,0x4
JNZ 0x0010fde1
LAB_0010fdb9:
TEST byte ptr [R13 + 0x5],0x1
JNZ 0x0010fe14
LAB_0010fdc0:
LEA RDX,[0x1a31e9]
LAB_0010fdc7:
MOV RDI,R14
MOV ESI,EBX
XOR EAX,EAX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012a23e
LAB_0010fde1:
MOVZX ECX,word ptr [R13 + 0x6]
CMP RCX,0x2
JNZ 0x0010fee2
TEST AL,0x8
JNZ 0x0010ff2b
LEA RSI,[RSP + 0x34]
MOV RDI,R14
MOV EDX,EBP
CALL 0x00141849
TEST EAX,EAX
JNZ 0x00110078
JMP 0x001100f7
LAB_0010fe14:
MOV EAX,EBX
AND EAX,0x5
OR EAX,0x10
MOV ECX,EBX
AND ECX,0x7
TEST BX,0x1800
CMOVNZ ECX,EAX
MOV RDI,R14
MOV RSI,R13
MOV EDX,EBP
CALL 0x0013ffa1
TEST RAX,RAX
JZ 0x00110016
MOV R13,RAX
TEST BX,0x1800
JZ 0x0010ff0f
AND qword ptr [R13],0x0
BT EBX,0xb
JNC 0x0010fe8f
LEA RAX,[RSP + 0x80]
MOV R15,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
CALL 0x00126e1a
TEST EAX,EAX
JZ 0x0010fe8f
MOV qword ptr [RSP + 0x28],R15
CMP R12D,-0x9
JC 0x0010fe8b
MOV RAX,qword ptr [RSP + 0x28]
INC dword ptr [RAX]
LAB_0010fe8b:
MOV qword ptr [R13],R15
LAB_0010fe8f:
AND qword ptr [R13 + 0x8],0x0
PUSH 0x1
POP R15
BT EBX,0xc
JNC 0x0011010d
LEA RAX,[RSP + 0x90]
MOV RBX,qword ptr [RAX]
MOV R12,qword ptr [RAX + 0x8]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R12
CALL 0x00126e1a
TEST EAX,EAX
JZ 0x0011010d
MOV qword ptr [RSP + 0x28],RBX
CMP R12D,-0x9
JC 0x0010fed9
MOV RAX,qword ptr [RSP + 0x28]
INC dword ptr [RAX]
LAB_0010fed9:
MOV qword ptr [R13 + 0x8],RBX
JMP 0x0011010d
LAB_0010fee2:
LEA EAX,[RCX + -0x15]
CMP AX,0xb
JA 0x0010ff4f
MOV RDI,R14
MOV ESI,EBP
CALL 0x001280bc
TEST EAX,EAX
JZ 0x0010fdb9
JS 0x00110016
LEA RDX,[0x1a33d8]
JMP 0x0010fdc7
LAB_0010ff0f:
BT EBX,0xd
JC 0x0010ffcb
AND dword ptr [R13],0x0
MOV qword ptr [R13 + 0x8],0x3
JMP 0x0010ffee
LAB_0010ff2b:
TEST EBP,EBP
JS 0x0010fff7
LEA RSI,[RSP + 0x34]
MOV RDI,R14
MOV EDX,EBP
CALL 0x00141849
TEST EAX,EAX
JNZ 0x0011005c
JMP 0x001100f7
LAB_0010ff4f:
BT EBX,0x11
JC 0x0010fdb9
MOV RAX,qword ptr [R14 + 0x18]
MOV RAX,qword ptr [RAX + 0x80]
IMUL RCX,RCX,0x28
MOV RAX,qword ptr [RAX + RCX*0x1 + 0x20]
TEST RAX,RAX
JZ 0x00110133
PUSH 0x1
POP R12
MOV RAX,qword ptr [RAX + 0x18]
TEST RAX,RAX
JZ 0x0011011f
LEA RCX,[RSP + 0x90]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
LEA RCX,[RSP + 0x80]
MOVUPD XMM0,xmmword ptr [RCX]
MOVUPD xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x20],EBX
PUSH -0x1
POP RDX
MOV RDI,R14
MOV RSI,R13
MOV ECX,EBP
MOV R8,qword ptr [RSP + 0x38]
MOV R9,qword ptr [RSP + 0x40]
CALL RAX
MOV R15D,EAX
JMP 0x00110136
LAB_0010ffcb:
MOV RDX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x28],RDX
MOV RCX,qword ptr [RSP + 0x40]
CMP ECX,-0x9
JC 0x0010ffe6
MOV RAX,qword ptr [RSP + 0x28]
INC dword ptr [RAX]
LAB_0010ffe6:
MOV qword ptr [R13],RDX
MOV qword ptr [R13 + 0x8],RCX
LAB_0010ffee:
PUSH 0x1
LAB_0010fff0:
POP R15
JMP 0x0011010d
LAB_0010fff7:
MOV ECX,EBP
AND ECX,0x7fffffff
MOV dword ptr [RSP + 0x34],ECX
CMP ECX,dword ptr [R13 + 0x40]
JNZ 0x0011005c
TEST AL,0x1
JNZ 0x0011001a
PUSH 0x2
POP R12
JMP 0x001100fa
LAB_00110016:
PUSH -0x1
JMP 0x0010fff0
LAB_0011001a:
TEST BX,0x1800
JNZ 0x0011005c
MOV EAX,EBX
SHR EAX,0x8
AND EAX,EBX
NOT EAX
TEST AL,0x7
JNZ 0x0011005c
MOV RDX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x28],RDX
MOV RCX,qword ptr [RSP + 0x40]
CMP ECX,-0x9
JC 0x00110049
MOV RAX,qword ptr [RSP + 0x28]
INC dword ptr [RAX]
LAB_00110049:
MOV RDI,R14
MOV RSI,R13
MOV R8D,EBX
CALL 0x00141af3
LAB_00110057:
MOV R15D,EAX
JMP 0x0011006f
LAB_0011005c:
MOV RDI,R14
MOV RSI,R13
CALL 0x0012a80c
TEST EAX,EAX
JZ 0x00110078
PUSH -0x1
POP R15
LAB_0011006f:
PUSH 0x1
POP R12
JMP 0x001100fa
LAB_00110078:
MOV R15,qword ptr [R13 + 0x20]
MOV RDX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
MOV qword ptr [RSP + 0x28],RDX
CMP ECX,-0x9
JC 0x00110094
MOV RAX,qword ptr [RSP + 0x28]
INC dword ptr [RAX]
LAB_00110094:
LEA R12,[RSP + 0x28]
MOV RDI,R14
MOV RSI,R12
CALL 0x0012ba1f
MOV EAX,dword ptr [RSP + 0x34]
INC EAX
CMP EAX,dword ptr [R12]
JBE 0x001100f7
MOV RCX,qword ptr [R13 + 0x18]
TEST byte ptr [RCX + 0x43],0x8
JZ 0x00110157
MOV dword ptr [RSP + 0x28],EAX
XOR R12D,R12D
MOV ECX,EAX
CVTSI2SD XMM0,RCX
TEST EAX,EAX
MOVQ RAX,XMM0
CMOVNS RAX,RCX
PUSH 0x7
POP RCX
CMOVNS RCX,R12
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
MOV qword ptr [R15],RAX
MOV qword ptr [R15 + 0x8],RCX
MOV RDI,qword ptr [R14 + 0x18]
CALL 0x00121922
JMP 0x001100fa
LAB_001100f7:
XOR R12D,R12D
LAB_001100fa:
TEST R12D,R12D
JZ 0x0010fdb9
CMP R12D,0x2
JZ 0x0010fdc0
LAB_0011010d:
MOV EAX,R15D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0011011f:
PUSH -0x1
POP RDX
MOV RDI,R14
MOV RSI,R13
CALL 0x0010f997
TEST EAX,EAX
JS 0x0011014b
JZ 0x00110151
LAB_00110133:
XOR R12D,R12D
LAB_00110136:
CMP R12D,0x2
JZ 0x0010fdc0
TEST R12D,R12D
JZ 0x0010fdb9
JMP 0x0011010d
LAB_0011014b:
PUSH -0x1
POP R15
JMP 0x00110136
LAB_00110151:
PUSH 0x2
POP R12
JMP 0x00110136
LAB_00110157:
PUSH 0x32
POP RDX
MOV RDI,R14
MOV ESI,EBX
CALL 0x00141bbe
JMP 0x00110057
|
ulong JS_CreateProperty(long param_1,long param_2,uint param_3,int *param_4,int8 param_5,
ulong param_6,int *param_7,int8 param_8,int *param_9,
int8 param_10)
{
byte bVar1;
ushort uVar2;
long lVar3;
code *pcVar4;
double dVar5;
double dVar6;
int iVar7;
uint uVar8;
int iVar9;
ulong uVar10;
int8 *puVar11;
double dVar12;
double dVar13;
char *pcVar14;
uint uVar15;
double *unaff_R15;
double *pdStackY_80;
int *local_50;
uint local_44;
int *local_40;
int8 local_38;
uVar10 = param_6 & 0xffffffff;
bVar1 = *(byte *)(param_2 + 5);
uVar15 = (uint)param_6;
local_40 = param_4;
local_38 = param_5;
if ((bVar1 & 4) == 0) goto LAB_0010fdb9;
uVar2 = *(ushort *)(param_2 + 6);
if ((ulong)uVar2 != 2) {
if ((ushort)(uVar2 - 0x15) < 0xc) {
iVar7 = JS_AtomIsNumericIndex(param_1,param_3);
if (iVar7 == 0) goto LAB_0010fdb9;
if (-1 < iVar7) {
pcVar14 = "cannot create numeric index in typed array";
goto LAB_0010fdc7;
}
}
else {
if ((uVar15 >> 0x11 & 1) == 0) {
lVar3 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 0x20 + (ulong)uVar2 * 0x28);
if (lVar3 == 0) {
LAB_00110133:
iVar7 = 0;
}
else {
iVar7 = 1;
pcVar4 = *(code **)(lVar3 + 0x18);
if (pcVar4 == (code *)0x0) {
iVar9 = JS_IsExtensible(param_1,param_2,0xffffffffffffffff);
if (iVar9 < 0) {
pdStackY_80 = (double *)0xffffffffffffffff;
unaff_R15 = pdStackY_80;
}
else {
if (iVar9 != 0) goto LAB_00110133;
iVar7 = 2;
}
}
else {
uVar8 = (*pcVar4)(param_1,param_2,0xffffffffffffffff,param_3,param_4,param_5,
param_7._0_4_,(uint)param_8,param_9,param_10,uVar15);
unaff_R15 = (double *)(ulong)uVar8;
}
}
if (iVar7 == 2) goto LAB_0010fdc0;
if (iVar7 != 0) goto LAB_0011010d;
}
LAB_0010fdb9:
if ((*(byte *)(param_2 + 5) & 1) == 0) goto LAB_0010fdc0;
uVar8 = uVar15 & 7;
if ((param_6 & 0x1800) != 0) {
uVar8 = uVar15 & 5 | 0x10;
}
puVar11 = (int8 *)add_property(param_1,param_2,param_3,uVar8);
if (puVar11 != (int8 *)0x0) {
if ((param_6 & 0x1800) == 0) {
if ((uVar15 >> 0xd & 1) == 0) {
*(int4 *)puVar11 = 0;
puVar11[1] = 3;
}
else {
if (0xfffffff6 < (uint)local_38) {
*local_40 = *local_40 + 1;
}
*puVar11 = local_40;
puVar11[1] = local_38;
}
pdStackY_80 = (double *)0x1;
unaff_R15 = pdStackY_80;
}
else {
*puVar11 = 0;
if ((uVar15 >> 0xb & 1) != 0) {
iVar7 = JS_IsFunction(param_1,param_7,param_8);
if (iVar7 != 0) {
if (0xfffffff6 < (uint)param_8) {
*param_7 = *param_7 + 1;
}
*puVar11 = param_7;
local_50 = param_7;
}
}
puVar11[1] = 0;
unaff_R15 = (double *)0x1;
if (((uVar15 >> 0xc & 1) != 0) &&
(iVar7 = JS_IsFunction(param_1,param_9,param_10), iVar7 != 0)) {
if (0xfffffff6 < (uint)param_10) {
*param_9 = *param_9 + 1;
}
puVar11[1] = param_9;
}
}
goto LAB_0011010d;
}
}
pdStackY_80 = (double *)0xffffffffffffffff;
unaff_R15 = pdStackY_80;
LAB_0011010d:
return (ulong)unaff_R15 & 0xffffffff;
}
if ((bVar1 & 8) == 0) {
iVar7 = JS_AtomIsArrayIndex(param_1,&local_44,param_3);
if (iVar7 != 0) {
LAB_00110078:
unaff_R15 = *(double **)(param_2 + 0x20);
local_50 = (int *)*unaff_R15;
if (0xfffffff6 < SUB84(unaff_R15[1],0)) {
*local_50 = *local_50 + 1;
}
JS_ToInt32Free(param_1,&local_50);
uVar8 = local_44 + 1;
if ((uint)local_50 < uVar8) {
if ((*(byte *)(*(long *)(param_2 + 0x18) + 0x43) & 8) == 0) {
uVar8 = JS_ThrowTypeErrorReadOnly(param_1,uVar10,0x32);
LAB_00110057:
unaff_R15 = (double *)(ulong)uVar8;
goto LAB_0011006f;
}
local_50 = (int *)CONCAT44(local_50._4_4_,uVar8);
iVar7 = 0;
dVar12 = (double)uVar8;
if (-1 < (int)uVar8) {
dVar12 = (double)(ulong)uVar8;
}
dVar13 = 3.45845952088873e-323;
if (-1 < (int)uVar8) {
dVar13 = 0.0;
}
dVar5 = *unaff_R15;
dVar6 = unaff_R15[1];
*unaff_R15 = dVar12;
unaff_R15[1] = dVar13;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),dVar5,dVar6);
goto LAB_001100fa;
}
}
LAB_001100f7:
iVar7 = 0;
}
else if ((int)param_3 < 0) {
local_44 = param_3 & 0x7fffffff;
if (local_44 != *(uint *)(param_2 + 0x40)) goto LAB_0011005c;
if ((bVar1 & 1) != 0) {
if (((param_6 & 0x1800) != 0) || ((~((uint)(uVar10 >> 8) & uVar15) & 7) != 0))
goto LAB_0011005c;
if (0xfffffff6 < (uint)param_5) {
*param_4 = *param_4 + 1;
}
local_50 = param_4;
uVar8 = add_fast_array_element(param_1,param_2,param_4,param_5,uVar10);
goto LAB_00110057;
}
iVar7 = 2;
}
else {
iVar7 = JS_AtomIsArrayIndex(param_1,&local_44,param_3);
if (iVar7 == 0) goto LAB_001100f7;
LAB_0011005c:
iVar7 = convert_fast_array_to_array(param_1,param_2);
if (iVar7 == 0) goto LAB_00110078;
unaff_R15 = (double *)0xffffffffffffffff;
LAB_0011006f:
iVar7 = 1;
}
LAB_001100fa:
if (iVar7 == 0) goto LAB_0010fdb9;
if (iVar7 != 2) goto LAB_0011010d;
LAB_0010fdc0:
pcVar14 = "object is not extensible";
LAB_0010fdc7:
uVar10 = JS_ThrowTypeErrorOrFalse(param_1,uVar10,pcVar14);
return uVar10;
}
| |
52,248 | JS_CreateProperty | bluesky950520[P]quickjs/quickjs.c | static int JS_CreateProperty(JSContext *ctx, JSObject *p,
JSAtom prop, JSValue val,
JSValue getter, JSValue setter,
int flags)
{
JSProperty *pr;
int ret, prop_flags;
/* add a new property or modify an existing exotic one */
if (p->is_exotic) {
if (p->class_id == JS_CLASS_ARRAY) {
uint32_t idx, len;
if (p->fast_array) {
if (__JS_AtomIsTaggedInt(prop)) {
idx = __JS_AtomToUInt32(prop);
if (idx == p->u.array.count) {
if (!p->extensible)
goto not_extensible;
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET))
goto convert_to_array;
prop_flags = get_prop_flags(flags, 0);
if (prop_flags != JS_PROP_C_W_E)
goto convert_to_array;
return add_fast_array_element(ctx, p,
js_dup(val), flags);
} else {
goto convert_to_array;
}
} else if (JS_AtomIsArrayIndex(ctx, &idx, prop)) {
/* convert the fast array to normal array */
convert_to_array:
if (convert_fast_array_to_array(ctx, p))
return -1;
goto generic_array;
}
} else if (JS_AtomIsArrayIndex(ctx, &idx, prop)) {
JSProperty *plen;
JSShapeProperty *pslen;
generic_array:
/* update the length field */
plen = &p->prop[0];
JS_ToUint32(ctx, &len, plen->u.value);
if ((idx + 1) > len) {
pslen = get_shape_prop(p->shape);
if (unlikely(!(pslen->flags & JS_PROP_WRITABLE)))
return JS_ThrowTypeErrorReadOnly(ctx, flags, JS_ATOM_length);
/* XXX: should update the length after defining
the property */
len = idx + 1;
set_value(ctx, &plen->u.value, js_uint32(len));
}
}
} else if (p->class_id >= JS_CLASS_UINT8C_ARRAY &&
p->class_id <= JS_CLASS_FLOAT64_ARRAY) {
ret = JS_AtomIsNumericIndex(ctx, prop);
if (ret != 0) {
if (ret < 0)
return -1;
return JS_ThrowTypeErrorOrFalse(ctx, flags, "cannot create numeric index in typed array");
}
} else if (!(flags & JS_PROP_NO_EXOTIC)) {
const JSClassExoticMethods *em = ctx->rt->class_array[p->class_id].exotic;
if (em) {
if (em->define_own_property) {
return em->define_own_property(ctx, JS_MKPTR(JS_TAG_OBJECT, p),
prop, val, getter, setter, flags);
}
ret = JS_IsExtensible(ctx, JS_MKPTR(JS_TAG_OBJECT, p));
if (ret < 0)
return -1;
if (!ret)
goto not_extensible;
}
}
}
if (!p->extensible) {
not_extensible:
return JS_ThrowTypeErrorOrFalse(ctx, flags, "object is not extensible");
}
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET)) {
prop_flags = (flags & (JS_PROP_CONFIGURABLE | JS_PROP_ENUMERABLE)) |
JS_PROP_GETSET;
} else {
prop_flags = flags & JS_PROP_C_W_E;
}
pr = add_property(ctx, p, prop, prop_flags);
if (unlikely(!pr))
return -1;
if (flags & (JS_PROP_HAS_GET | JS_PROP_HAS_SET)) {
pr->u.getset.getter = NULL;
if ((flags & JS_PROP_HAS_GET) && JS_IsFunction(ctx, getter)) {
pr->u.getset.getter =
JS_VALUE_GET_OBJ(js_dup(getter));
}
pr->u.getset.setter = NULL;
if ((flags & JS_PROP_HAS_SET) && JS_IsFunction(ctx, setter)) {
pr->u.getset.setter =
JS_VALUE_GET_OBJ(js_dup(setter));
}
} else {
if (flags & JS_PROP_HAS_VALUE) {
pr->u.value = js_dup(val);
} else {
pr->u.value = JS_UNDEFINED;
}
}
return TRUE;
} | O2 | c | JS_CreateProperty:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, %ebx
movq %r8, %r15
movq %rcx, 0x38(%rsp)
movl %edx, %r12d
movq %rsi, %r13
movq %rdi, %r14
movb 0x5(%rsi), %al
pushq $-0x1
popq %rbp
testb $0x4, %al
je 0x242dd
movzwl 0x6(%r13), %ecx
cmpq $0x2, %rcx
jne 0x24146
movq %r15, 0x40(%rsp)
testb $0x8, %al
jne 0x24174
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
movl %r12d, %edx
callq 0x39c38
testl %eax, %eax
jne 0x24279
jmp 0x242d8
leal -0x15(%rcx), %eax
cmpw $0xb, %ax
ja 0x2419a
movq %r14, %rdi
movl %r12d, %esi
callq 0x21c3f
testl %eax, %eax
je 0x242dd
js 0x243e2
leaq 0x651b9(%rip), %rdx # 0x89328
jmp 0x242eb
testl %r12d, %r12d
js 0x2420e
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
movl %r12d, %edx
callq 0x39c38
testl %eax, %eax
jne 0x24263
jmp 0x242d8
btl $0x11, %ebx
jb 0x242dd
movq 0x18(%r14), %rax
movq 0x80(%rax), %rax
imulq $0x28, %rcx, %rcx
movq 0x20(%rax,%rcx), %rax
testq %rax, %rax
je 0x242dd
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x243f3
leaq 0x90(%rsp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x10(%rsp)
leaq 0x80(%rsp), %rcx
movupd (%rcx), %xmm0
movupd %xmm0, (%rsp)
movl %ebx, 0x20(%rsp)
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r13, %rsi
movl %r12d, %ecx
movq 0x38(%rsp), %r8
movq %r15, %r9
callq *%rax
jmp 0x243e4
movl %r12d, %ecx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
movl %ecx, 0x30(%rsp)
cmpl 0x40(%r13), %ecx
jne 0x24263
testb $0x1, %al
je 0x242e4
testw $0x1800, %bx # imm = 0x1800
jne 0x24263
movl %ebx, %eax
shrl $0x8, %eax
andl %ebx, %eax
notl %eax
testb $0x7, %al
jne 0x24263
movq 0x40(%rsp), %rcx
cmpl $-0x9, %ecx
movq 0x38(%rsp), %rdx
jb 0x2424e
incl (%rdx)
movq %r14, %rdi
movq %r13, %rsi
movl %ebx, %r8d
callq 0x39e5b
movl %eax, %ebp
jmp 0x243e2
movq %r14, %rdi
movq %r13, %rsi
callq 0x23de7
testl %eax, %eax
je 0x24279
pushq $-0x1
jmp 0x243e1
movq 0x20(%r13), %r15
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x34(%rsp), %rsi
movq %r14, %rdi
callq 0x25187
movl 0x30(%rsp), %eax
incl %eax
leaq 0x34(%rsp), %rcx
cmpl (%rcx), %eax
jbe 0x242d8
movq 0x18(%r13), %rcx
testb $0x8, 0x43(%rcx)
je 0x24410
xorl %esi, %esi
movl %eax, %ecx
cvtsi2sd %rcx, %xmm0
testl %eax, %eax
movq %xmm0, %rdx
cmovnsq %rcx, %rdx
movl %eax, 0x34(%rsp)
pushq $0x7
popq %rcx
cmovnsq %rsi, %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1da9c
movq 0x40(%rsp), %r15
testb $0x1, 0x5(%r13)
jne 0x24305
leaq 0x64e4e(%rip), %rdx # 0x89139
movq %r14, %rdi
movl %ebx, %esi
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x238b6
movl %ebx, %eax
andl $0x5, %eax
orl $0x10, %eax
movl %ebx, %ecx
andl $0x7, %ecx
testw $0x1800, %bx # imm = 0x1800
cmovnel %eax, %ecx
movq %r14, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x388ca
testq %rax, %rax
je 0x243e2
movq %rax, %r12
testw $0x1800, %bx # imm = 0x1800
je 0x243b3
andq $0x0, (%r12)
btl $0xb, %ebx
jae 0x24374
leaq 0x80(%rsp), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
movq %r14, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x20a2d
testl %eax, %eax
je 0x24374
cmpl $-0x9, %r13d
jb 0x24370
incl (%r15)
movq %r15, (%r12)
andq $0x0, 0x8(%r12)
pushq $0x1
popq %rbp
btl $0xc, %ebx
jae 0x243e2
leaq 0x90(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rax), %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x20a2d
testl %eax, %eax
je 0x243e2
cmpl $-0x9, %r15d
jb 0x243ac
incl (%rbx)
movq %rbx, 0x8(%r12)
jmp 0x243e2
btl $0xd, %ebx
jb 0x243c9
andl $0x0, (%r12)
movq $0x3, 0x8(%r12)
jmp 0x243df
cmpl $-0x9, %r15d
movq 0x38(%rsp), %rax
jb 0x243d6
incl (%rax)
movq %rax, (%r12)
movq %r15, 0x8(%r12)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x219ba
testl %eax, %eax
js 0x243e2
jne 0x242dd
jmp 0x242e4
pushq $0x32
popq %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x39f17
jmp 0x2425c
| JS_CreateProperty:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebx, r9d
mov r15, r8
mov [rsp+78h+var_40], rcx
mov r12d, edx
mov r13, rsi
mov r14, rdi
mov al, [rsi+5]
push 0FFFFFFFFFFFFFFFFh
pop rbp
test al, 4
jz loc_242DD
movzx ecx, word ptr [r13+6]
cmp rcx, 2
jnz short loc_24146
mov [rsp+78h+var_38], r15
test al, 8
jnz short loc_24174
lea rsi, [rsp+78h+var_48]
mov rdi, r14
mov edx, r12d
call JS_AtomIsArrayIndex
test eax, eax
jnz loc_24279
jmp loc_242D8
loc_24146:
lea eax, [rcx-15h]
cmp ax, 0Bh
ja short loc_2419A
mov rdi, r14
mov esi, r12d
call JS_AtomIsNumericIndex
test eax, eax
jz loc_242DD
js loc_243E2
lea rdx, aCannotCreateNu; "cannot create numeric index in typed ar"...
jmp loc_242EB
loc_24174:
test r12d, r12d
js loc_2420E
lea rsi, [rsp+78h+var_48]
mov rdi, r14
mov edx, r12d
call JS_AtomIsArrayIndex
test eax, eax
jnz loc_24263
jmp loc_242D8
loc_2419A:
bt ebx, 11h
jb loc_242DD
mov rax, [r14+18h]
mov rax, [rax+80h]
imul rcx, 28h ; '('
mov rax, [rax+rcx+20h]
test rax, rax
jz loc_242DD
mov rax, [rax+18h]
test rax, rax
jz loc_243F3
lea rcx, [rsp+78h+arg_10]
movups xmm0, xmmword ptr [rcx]
movups [rsp+78h+var_68], xmm0
lea rcx, [rsp+78h+arg_0]
movupd xmm0, xmmword ptr [rcx]
movupd [rsp+78h+var_78], xmm0
mov [rsp+78h+var_58], ebx
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
mov rsi, r13
mov ecx, r12d
mov r8, [rsp+78h+var_40]
mov r9, r15
call rax
jmp loc_243E4
loc_2420E:
mov ecx, r12d
and ecx, 7FFFFFFFh
mov [rsp+78h+var_48], ecx
cmp ecx, [r13+40h]
jnz short loc_24263
test al, 1
jz loc_242E4
test bx, 1800h
jnz short loc_24263
mov eax, ebx
shr eax, 8
and eax, ebx
not eax
test al, 7
jnz short loc_24263
mov rcx, [rsp+78h+var_38]
cmp ecx, 0FFFFFFF7h
mov rdx, [rsp+78h+var_40]
jb short loc_2424E
inc dword ptr [rdx]
loc_2424E:
mov rdi, r14
mov rsi, r13
mov r8d, ebx
call add_fast_array_element
loc_2425C:
mov ebp, eax
jmp loc_243E2
loc_24263:
mov rdi, r14
mov rsi, r13
call convert_fast_array_to_array
test eax, eax
jz short loc_24279
push 0FFFFFFFFFFFFFFFFh
jmp loc_243E1
loc_24279:
mov r15, [r13+20h]
mov rdx, [r15]
mov rcx, [r15+8]
lea rsi, [rsp+78h+var_44]
mov rdi, r14
call JS_ToInt32
mov eax, [rsp+78h+var_48]
inc eax
lea rcx, [rsp+78h+var_44]
cmp eax, [rcx]
jbe short loc_242D8
mov rcx, [r13+18h]
test byte ptr [rcx+43h], 8
jz loc_24410
xor esi, esi
mov ecx, eax
cvtsi2sd xmm0, rcx
test eax, eax
movq rdx, xmm0
cmovns rdx, rcx
mov [rsp+78h+var_44], eax
push 7
pop rcx
cmovns rcx, rsi
mov rdi, r14
mov rsi, r15
call set_value
loc_242D8:
mov r15, [rsp+78h+var_38]
loc_242DD:
test byte ptr [r13+5], 1
jnz short loc_24305
loc_242E4:
lea rdx, aObjectIsNotExt; "object is not extensible"
loc_242EB:
mov rdi, r14
mov esi, ebx
xor eax, eax
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp JS_ThrowTypeErrorOrFalse
loc_24305:
mov eax, ebx
and eax, 5
or eax, 10h
mov ecx, ebx
and ecx, 7
test bx, 1800h
cmovnz ecx, eax
mov rdi, r14
mov rsi, r13
mov edx, r12d
call add_property
test rax, rax
jz loc_243E2
mov r12, rax
test bx, 1800h
jz short loc_243B3
and qword ptr [r12], 0
bt ebx, 0Bh
jnb short loc_24374
lea rax, [rsp+78h+arg_0]
mov r15, [rax]
mov r13, [rax+8]
mov rdi, r14
mov rsi, r15
mov rdx, r13
call JS_IsFunction
test eax, eax
jz short loc_24374
cmp r13d, 0FFFFFFF7h
jb short loc_24370
inc dword ptr [r15]
loc_24370:
mov [r12], r15
loc_24374:
and qword ptr [r12+8], 0
push 1
pop rbp
bt ebx, 0Ch
jnb short loc_243E2
lea rax, [rsp+78h+arg_10]
mov rbx, [rax]
mov r15, [rax+8]
mov rdi, r14
mov rsi, rbx
mov rdx, r15
call JS_IsFunction
test eax, eax
jz short loc_243E2
cmp r15d, 0FFFFFFF7h
jb short loc_243AC
inc dword ptr [rbx]
loc_243AC:
mov [r12+8], rbx
jmp short loc_243E2
loc_243B3:
bt ebx, 0Dh
jb short loc_243C9
and dword ptr [r12], 0
mov qword ptr [r12+8], 3
jmp short loc_243DF
loc_243C9:
cmp r15d, 0FFFFFFF7h
mov rax, [rsp+78h+var_40]
jb short loc_243D6
inc dword ptr [rax]
loc_243D6:
mov [r12], rax
mov [r12+8], r15
loc_243DF:
push 1
loc_243E1:
pop rbp
loc_243E2:
mov eax, ebp
loc_243E4:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_243F3:
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rdi, r14
mov rsi, r13
call JS_IsExtensible
test eax, eax
js short loc_243E2
jnz loc_242DD
jmp loc_242E4
loc_24410:
push 32h ; '2'
pop rdx
mov rdi, r14
mov esi, ebx
call JS_ThrowTypeErrorReadOnly
jmp loc_2425C
| long long JS_CreateProperty(
long long a1,
long long a2,
unsigned int a3,
_DWORD *a4,
long long a5,
unsigned int a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
_DWORD *a15,
long long a16,
_DWORD *a17,
long long a18)
{
long long v19; // r15
char v21; // al
unsigned int v22; // ebp
long long v23; // rcx
int IsNumericIndex; // eax
long long v26; // rax
long long ( *v27)(long long, long long, long long, _QWORD, _DWORD *, long long, _DWORD *, long long, _DWORD *, long long, unsigned int); // rax
long long v28; // rcx
_DWORD *v29; // rdx
long long *v31; // r15
int v32; // eax
double v33; // rdx
long long v34; // rcx
long long v35; // rcx
_QWORD *v36; // rax
_QWORD *v37; // r12
_DWORD *v38; // rax
int IsExtensible; // eax
int v41; // [rsp+30h] [rbp-48h] BYREF
unsigned int v42; // [rsp+34h] [rbp-44h] BYREF
_DWORD *v43; // [rsp+38h] [rbp-40h]
long long v44; // [rsp+40h] [rbp-38h]
v19 = a5;
v43 = a4;
v21 = *(_BYTE *)(a2 + 5);
v22 = -1;
if ( (v21 & 4) != 0 )
{
v23 = *(unsigned __int16 *)(a2 + 6);
if ( v23 == 2 )
{
v44 = a5;
if ( (v21 & 8) != 0 )
{
if ( (a3 & 0x80000000) != 0 )
{
v41 = a3 & 0x7FFFFFFF;
if ( (a3 & 0x7FFFFFFF) == *(_DWORD *)(a2 + 64) )
{
if ( (v21 & 1) == 0 )
return JS_ThrowTypeErrorOrFalse(a1, a6, (long long)"object is not extensible");
if ( (a6 & 0x1800) == 0 && (~(a6 & (a6 >> 8)) & 7) == 0 )
{
v28 = v44;
v29 = v43;
if ( (unsigned int)v44 >= 0xFFFFFFF7 )
++*v43;
return (unsigned int)add_fast_array_element(a1, a2, v29, v28, a6);
}
}
}
else if ( !(unsigned int)JS_AtomIsArrayIndex(a1, &v41, a3) )
{
goto LABEL_34;
}
if ( (unsigned int)convert_fast_array_to_array(a1, a2) )
return (unsigned int)-1;
}
else if ( !(unsigned int)JS_AtomIsArrayIndex(a1, &v41, a3) )
{
goto LABEL_34;
}
v31 = *(long long **)(a2 + 32);
JS_ToInt32(a1, &v42, *v31, v31[1]);
v32 = v41 + 1;
if ( v41 + 1 <= v42 )
{
LABEL_34:
v19 = v44;
goto LABEL_35;
}
if ( (*(_BYTE *)(*(_QWORD *)(a2 + 24) + 67LL) & 8) != 0 )
{
v33 = (double)v32;
if ( v32 >= 0 )
*(_QWORD *)&v33 = (unsigned int)v32;
v42 = v41 + 1;
v34 = 7LL;
if ( v32 >= 0 )
v34 = 0LL;
set_value(a1, v31, *(long long *)&v33, v34);
goto LABEL_34;
}
return (unsigned int)JS_ThrowTypeErrorReadOnly(a1, a6, 50LL);
}
if ( (unsigned __int16)(v23 - 21) > 0xBu )
{
if ( (a6 & 0x20000) == 0 )
{
v26 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 128LL) + 40 * v23 + 32);
if ( v26 )
{
v27 = *(long long ( **)(long long, long long, long long, _QWORD, _DWORD *, long long, _DWORD *, long long, _DWORD *, long long, unsigned int))(v26 + 24);
if ( v27 )
return v27(a1, a2, -1LL, a3, v43, a5, a15, a16, a17, a18, a6);
IsExtensible = JS_IsExtensible(a1, a2, -1LL, a7, a8, a9, a10, a11, a12, a13, a14);
if ( IsExtensible < 0 )
return v22;
if ( !IsExtensible )
return JS_ThrowTypeErrorOrFalse(a1, a6, (long long)"object is not extensible");
}
}
}
else
{
IsNumericIndex = JS_AtomIsNumericIndex(a1);
if ( IsNumericIndex )
{
if ( IsNumericIndex >= 0 )
return JS_ThrowTypeErrorOrFalse(a1, a6, (long long)"cannot create numeric index in typed array");
return v22;
}
}
}
LABEL_35:
if ( (*(_BYTE *)(a2 + 5) & 1) == 0 )
return JS_ThrowTypeErrorOrFalse(a1, a6, (long long)"object is not extensible");
v35 = a6 & 7;
if ( (a6 & 0x1800) != 0 )
v35 = a6 & 5 | 0x10;
v36 = (_QWORD *)add_property(a1, a2, a3, v35);
if ( v36 )
{
v37 = v36;
if ( (a6 & 0x1800) != 0 )
{
*v36 = 0LL;
if ( (a6 & 0x800) != 0 && (unsigned int)JS_IsFunction(a1, (long long)a15, a16) )
{
if ( (unsigned int)a16 >= 0xFFFFFFF7 )
++*a15;
*v37 = a15;
}
v37[1] = 0LL;
v22 = 1;
if ( (a6 & 0x1000) != 0 && (unsigned int)JS_IsFunction(a1, (long long)a17, a18) )
{
if ( (unsigned int)a18 >= 0xFFFFFFF7 )
++*a17;
v37[1] = a17;
}
return v22;
}
if ( (a6 & 0x2000) != 0 )
{
v38 = v43;
if ( (unsigned int)v19 >= 0xFFFFFFF7 )
++*v43;
*v37 = v38;
v37[1] = v19;
}
else
{
*(_DWORD *)v36 = 0;
v36[1] = 3LL;
}
return 1;
}
return v22;
}
| JS_CreateProperty:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBX,R9D
MOV R15,R8
MOV qword ptr [RSP + 0x38],RCX
MOV R12D,EDX
MOV R13,RSI
MOV R14,RDI
MOV AL,byte ptr [RSI + 0x5]
PUSH -0x1
POP RBP
TEST AL,0x4
JZ 0x001242dd
MOVZX ECX,word ptr [R13 + 0x6]
CMP RCX,0x2
JNZ 0x00124146
MOV qword ptr [RSP + 0x40],R15
TEST AL,0x8
JNZ 0x00124174
LEA RSI,[RSP + 0x30]
MOV RDI,R14
MOV EDX,R12D
CALL 0x00139c38
TEST EAX,EAX
JNZ 0x00124279
JMP 0x001242d8
LAB_00124146:
LEA EAX,[RCX + -0x15]
CMP AX,0xb
JA 0x0012419a
MOV RDI,R14
MOV ESI,R12D
CALL 0x00121c3f
TEST EAX,EAX
JZ 0x001242dd
JS 0x001243e2
LEA RDX,[0x189328]
JMP 0x001242eb
LAB_00124174:
TEST R12D,R12D
JS 0x0012420e
LEA RSI,[RSP + 0x30]
MOV RDI,R14
MOV EDX,R12D
CALL 0x00139c38
TEST EAX,EAX
JNZ 0x00124263
JMP 0x001242d8
LAB_0012419a:
BT EBX,0x11
JC 0x001242dd
MOV RAX,qword ptr [R14 + 0x18]
MOV RAX,qword ptr [RAX + 0x80]
IMUL RCX,RCX,0x28
MOV RAX,qword ptr [RAX + RCX*0x1 + 0x20]
TEST RAX,RAX
JZ 0x001242dd
MOV RAX,qword ptr [RAX + 0x18]
TEST RAX,RAX
JZ 0x001243f3
LEA RCX,[RSP + 0x90]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSP + 0x10],XMM0
LEA RCX,[RSP + 0x80]
MOVUPD XMM0,xmmword ptr [RCX]
MOVUPD xmmword ptr [RSP],XMM0
MOV dword ptr [RSP + 0x20],EBX
PUSH -0x1
POP RDX
MOV RDI,R14
MOV RSI,R13
MOV ECX,R12D
MOV R8,qword ptr [RSP + 0x38]
MOV R9,R15
CALL RAX
JMP 0x001243e4
LAB_0012420e:
MOV ECX,R12D
AND ECX,0x7fffffff
MOV dword ptr [RSP + 0x30],ECX
CMP ECX,dword ptr [R13 + 0x40]
JNZ 0x00124263
TEST AL,0x1
JZ 0x001242e4
TEST BX,0x1800
JNZ 0x00124263
MOV EAX,EBX
SHR EAX,0x8
AND EAX,EBX
NOT EAX
TEST AL,0x7
JNZ 0x00124263
MOV RCX,qword ptr [RSP + 0x40]
CMP ECX,-0x9
MOV RDX,qword ptr [RSP + 0x38]
JC 0x0012424e
INC dword ptr [RDX]
LAB_0012424e:
MOV RDI,R14
MOV RSI,R13
MOV R8D,EBX
CALL 0x00139e5b
LAB_0012425c:
MOV EBP,EAX
JMP 0x001243e2
LAB_00124263:
MOV RDI,R14
MOV RSI,R13
CALL 0x00123de7
TEST EAX,EAX
JZ 0x00124279
PUSH -0x1
JMP 0x001243e1
LAB_00124279:
MOV R15,qword ptr [R13 + 0x20]
MOV RDX,qword ptr [R15]
MOV RCX,qword ptr [R15 + 0x8]
LEA RSI,[RSP + 0x34]
MOV RDI,R14
CALL 0x00125187
MOV EAX,dword ptr [RSP + 0x30]
INC EAX
LEA RCX,[RSP + 0x34]
CMP EAX,dword ptr [RCX]
JBE 0x001242d8
MOV RCX,qword ptr [R13 + 0x18]
TEST byte ptr [RCX + 0x43],0x8
JZ 0x00124410
XOR ESI,ESI
MOV ECX,EAX
CVTSI2SD XMM0,RCX
TEST EAX,EAX
MOVQ RDX,XMM0
CMOVNS RDX,RCX
MOV dword ptr [RSP + 0x34],EAX
PUSH 0x7
POP RCX
CMOVNS RCX,RSI
MOV RDI,R14
MOV RSI,R15
CALL 0x0011da9c
LAB_001242d8:
MOV R15,qword ptr [RSP + 0x40]
LAB_001242dd:
TEST byte ptr [R13 + 0x5],0x1
JNZ 0x00124305
LAB_001242e4:
LEA RDX,[0x189139]
LAB_001242eb:
MOV RDI,R14
MOV ESI,EBX
XOR EAX,EAX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001238b6
LAB_00124305:
MOV EAX,EBX
AND EAX,0x5
OR EAX,0x10
MOV ECX,EBX
AND ECX,0x7
TEST BX,0x1800
CMOVNZ ECX,EAX
MOV RDI,R14
MOV RSI,R13
MOV EDX,R12D
CALL 0x001388ca
TEST RAX,RAX
JZ 0x001243e2
MOV R12,RAX
TEST BX,0x1800
JZ 0x001243b3
AND qword ptr [R12],0x0
BT EBX,0xb
JNC 0x00124374
LEA RAX,[RSP + 0x80]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
MOV RDI,R14
MOV RSI,R15
MOV RDX,R13
CALL 0x00120a2d
TEST EAX,EAX
JZ 0x00124374
CMP R13D,-0x9
JC 0x00124370
INC dword ptr [R15]
LAB_00124370:
MOV qword ptr [R12],R15
LAB_00124374:
AND qword ptr [R12 + 0x8],0x0
PUSH 0x1
POP RBP
BT EBX,0xc
JNC 0x001243e2
LEA RAX,[RSP + 0x90]
MOV RBX,qword ptr [RAX]
MOV R15,qword ptr [RAX + 0x8]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
CALL 0x00120a2d
TEST EAX,EAX
JZ 0x001243e2
CMP R15D,-0x9
JC 0x001243ac
INC dword ptr [RBX]
LAB_001243ac:
MOV qword ptr [R12 + 0x8],RBX
JMP 0x001243e2
LAB_001243b3:
BT EBX,0xd
JC 0x001243c9
AND dword ptr [R12],0x0
MOV qword ptr [R12 + 0x8],0x3
JMP 0x001243df
LAB_001243c9:
CMP R15D,-0x9
MOV RAX,qword ptr [RSP + 0x38]
JC 0x001243d6
INC dword ptr [RAX]
LAB_001243d6:
MOV qword ptr [R12],RAX
MOV qword ptr [R12 + 0x8],R15
LAB_001243df:
PUSH 0x1
LAB_001243e1:
POP RBP
LAB_001243e2:
MOV EAX,EBP
LAB_001243e4:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001243f3:
PUSH -0x1
POP RDX
MOV RDI,R14
MOV RSI,R13
CALL 0x001219ba
TEST EAX,EAX
JS 0x001243e2
JNZ 0x001242dd
JMP 0x001242e4
LAB_00124410:
PUSH 0x32
POP RDX
MOV RDI,R14
MOV ESI,EBX
CALL 0x00139f17
JMP 0x0012425c
|
ulong JS_CreateProperty(long param_1,long param_2,uint param_3,int *param_4,int8 param_5,
ulong param_6,int *param_7,int8 param_8,int *param_9,
int8 param_10)
{
byte bVar1;
ushort uVar2;
long lVar3;
code *pcVar4;
int iVar5;
uint uVar6;
uint uVar7;
ulong uVar8;
int8 *puVar9;
int8 uVar10;
double dVar11;
char *pcVar12;
ulong uStackY_80;
uint local_48;
uint local_44;
int *local_40;
int8 local_38;
uVar8 = param_6 & 0xffffffff;
bVar1 = *(byte *)(param_2 + 5);
uStackY_80 = 0xffffffffffffffff;
uVar7 = (uint)param_6;
local_40 = param_4;
if ((bVar1 & 4) == 0) goto LAB_001242dd;
uVar2 = *(ushort *)(param_2 + 6);
if ((ulong)uVar2 == 2) {
local_38 = param_5;
if ((bVar1 & 8) != 0) {
if (-1 < (int)param_3) {
iVar5 = JS_AtomIsArrayIndex(param_1,&local_48,param_3);
param_5 = local_38;
if (iVar5 == 0) goto LAB_001242dd;
LAB_00124263:
iVar5 = convert_fast_array_to_array(param_1,param_2);
if (iVar5 != 0) {
uStackY_80 = 0xffffffffffffffff;
goto LAB_001243e2;
}
goto LAB_00124279;
}
local_48 = param_3 & 0x7fffffff;
if (local_48 != *(uint *)(param_2 + 0x40)) goto LAB_00124263;
if ((bVar1 & 1) == 0) goto LAB_001242e4;
if (((param_6 & 0x1800) != 0) || ((~((uint)(uVar8 >> 8) & uVar7) & 7) != 0))
goto LAB_00124263;
if (0xfffffff6 < (uint)param_5) {
*param_4 = *param_4 + 1;
}
uVar7 = add_fast_array_element(param_1,param_2,param_4,param_5,uVar8);
LAB_0012425c:
uStackY_80 = (ulong)uVar7;
goto LAB_001243e2;
}
iVar5 = JS_AtomIsArrayIndex(param_1,&local_48,param_3);
param_5 = local_38;
if (iVar5 == 0) goto LAB_001242dd;
LAB_00124279:
puVar9 = *(int8 **)(param_2 + 0x20);
JS_ToInt32(param_1,&local_44,*puVar9,puVar9[1]);
uVar6 = local_48 + 1;
param_5 = local_38;
if (local_44 < uVar6) {
if ((*(byte *)(*(long *)(param_2 + 0x18) + 0x43) & 8) == 0) {
uVar7 = JS_ThrowTypeErrorReadOnly(param_1,uVar8,0x32);
goto LAB_0012425c;
}
dVar11 = (double)uVar6;
if (-1 < (int)uVar6) {
dVar11 = (double)(ulong)uVar6;
}
uVar10 = 7;
if (-1 < (int)uVar6) {
uVar10 = 0;
}
local_44 = uVar6;
set_value(param_1,puVar9,dVar11,uVar10);
param_5 = local_38;
}
LAB_001242dd:
if ((*(byte *)(param_2 + 5) & 1) != 0) {
uVar6 = uVar7 & 7;
if ((param_6 & 0x1800) != 0) {
uVar6 = uVar7 & 5 | 0x10;
}
puVar9 = (int8 *)add_property(param_1,param_2,param_3,uVar6);
if (puVar9 != (int8 *)0x0) {
if ((param_6 & 0x1800) == 0) {
if ((uVar7 >> 0xd & 1) == 0) {
*(int4 *)puVar9 = 0;
puVar9[1] = 3;
}
else {
if (0xfffffff6 < (uint)param_5) {
*local_40 = *local_40 + 1;
}
*puVar9 = local_40;
puVar9[1] = param_5;
}
uStackY_80 = 1;
}
else {
*puVar9 = 0;
if (((uVar7 >> 0xb & 1) != 0) &&
(iVar5 = JS_IsFunction(param_1,param_7,param_8), iVar5 != 0)) {
if (0xfffffff6 < (uint)param_8) {
*param_7 = *param_7 + 1;
}
*puVar9 = param_7;
}
puVar9[1] = 0;
uStackY_80 = 1;
if (((uVar7 >> 0xc & 1) != 0) &&
(iVar5 = JS_IsFunction(param_1,param_9,param_10), iVar5 != 0)) {
if (0xfffffff6 < (uint)param_10) {
*param_9 = *param_9 + 1;
}
puVar9[1] = param_9;
}
}
}
LAB_001243e2:
return uStackY_80 & 0xffffffff;
}
}
else {
if ((ushort)(uVar2 - 0x15) < 0xc) {
iVar5 = JS_AtomIsNumericIndex(param_1,param_3);
if (iVar5 != 0) {
if (-1 < iVar5) {
pcVar12 = "cannot create numeric index in typed array";
goto LAB_001242eb;
}
goto LAB_001243e2;
}
goto LAB_001242dd;
}
if (((uVar7 >> 0x11 & 1) != 0) ||
(lVar3 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 0x80) + 0x20 + (ulong)uVar2 * 0x28),
lVar3 == 0)) goto LAB_001242dd;
pcVar4 = *(code **)(lVar3 + 0x18);
if (pcVar4 != (code *)0x0) {
uVar8 = (*pcVar4)(param_1,param_2,0xffffffffffffffff,param_3,param_4,param_5,param_7._0_4_,
(uint)param_8,param_9,param_10,uVar7);
return uVar8;
}
iVar5 = JS_IsExtensible(param_1,param_2,0xffffffffffffffff);
if (iVar5 < 0) goto LAB_001243e2;
if (iVar5 != 0) goto LAB_001242dd;
}
LAB_001242e4:
pcVar12 = "object is not extensible";
LAB_001242eb:
uVar8 = JS_ThrowTypeErrorOrFalse(param_1,uVar8,pcVar12);
return uVar8;
}
| |
52,249 | set_user_key(PFS_user_key*, char const*, unsigned int) | eloqsql/storage/perfschema/pfs_user.cc | static void set_user_key(PFS_user_key *key,
const char *user, uint user_length)
{
assert(user_length <= USERNAME_LENGTH);
char *ptr= &key->m_hash_key[0];
if (user_length > 0)
{
memcpy(ptr, user, user_length);
ptr+= user_length;
}
ptr[0]= 0;
ptr++;
key->m_key_length= (uint)(ptr - &key->m_hash_key[0]);
} | O0 | cpp | set_user_key(PFS_user_key*, char const*, unsigned int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x14(%rbp)
jbe 0x433e3
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %eax
movl %eax, %edx
callq 0x26280
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x184(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL12set_user_keyP12PFS_user_keyPKcj:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rax, [rbp+var_8]
mov [rbp+var_20], rax
cmp [rbp+var_14], 0
jbe short loc_433E3
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_10]
mov eax, [rbp+var_14]
mov edx, eax
call _memcpy
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
loc_433E3:
mov rax, [rbp+var_20]
mov byte ptr [rax], 0
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
sub rax, rcx
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+184h], ecx
add rsp, 20h
pop rbp
retn
| long long set_user_key(long long a1, long long a2, unsigned int a3)
{
long long result; // rax
_BYTE *v4; // [rsp+0h] [rbp-20h]
v4 = (_BYTE *)a1;
if ( a3 )
{
memcpy(a1, a2, a3);
v4 = (_BYTE *)(a3 + a1);
}
*v4 = 0;
result = a1;
*(_DWORD *)(a1 + 388) = (_DWORD)v4 + 1 - a1;
return result;
}
| set_user_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
CMP dword ptr [RBP + -0x14],0x0
JBE 0x001433e3
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x14]
MOV EDX,EAX
CALL 0x00126280
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001433e3:
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
SUB RAX,RCX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV dword ptr [RAX + 0x184],ECX
ADD RSP,0x20
POP RBP
RET
|
/* set_user_key(PFS_user_key*, char const*, unsigned int) */
void set_user_key(PFS_user_key *param_1,char *param_2,uint param_3)
{
PFS_user_key *local_28;
local_28 = param_1;
if (param_3 != 0) {
memcpy(param_1,param_2,(ulong)param_3);
local_28 = param_1 + param_3;
}
*local_28 = (PFS_user_key)0x0;
*(int *)(param_1 + 0x184) = ((int)local_28 + 1) - (int)param_1;
return;
}
| |
52,250 | evmone::advanced::(anonymous namespace)::op_jumpi(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&) | corpus-core[P]colibri-stateless/build_O0/_deps/evmone_external-src/lib/evmone/advanced_instructions.cpp | const Instruction* op_jumpi(const Instruction* instr, AdvancedExecutionState& state) noexcept
{
if (state.stack[1] != 0)
{
instr = op_jump(instr, state); // target
(void)state.stack.pop(); // condition
}
else
{
(void)state.stack.pop(); // target
(void)state.stack.pop(); // condition
instr = opx_beginblock(instr, state); // follow-by block
}
return instr;
} | O0 | cpp | evmone::advanced::(anonymous namespace)::op_jumpi(evmone::advanced::Instruction const*, evmone::advanced::AdvancedExecutionState&):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
addq $0x228, %rdi # imm = 0x228
movl $0x1, %esi
callq 0x61a10
movq %rax, %rdi
movl $0x0, -0x14(%rbp)
leaq -0x14(%rbp), %rsi
callq 0x61c20
testb $0x1, %al
jne 0x93c3e
jmp 0x93c61
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x93b20
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rdi
addq $0x228, %rdi # imm = 0x228
callq 0x611b0
jmp 0x93c92
movq -0x10(%rbp), %rdi
addq $0x228, %rdi # imm = 0x228
callq 0x611b0
movq -0x10(%rbp), %rdi
addq $0x228, %rdi # imm = 0x228
callq 0x611b0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x93da0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| _ZN6evmone8advanced12_GLOBAL__N_18op_jumpiEPKNS0_11InstructionERNS0_22AdvancedExecutionStateE:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_10]
add rdi, 228h
mov esi, 1
call _ZN6evmone8StackTopixEi; evmone::StackTop::operator[](int)
mov rdi, rax
mov [rbp+var_14], 0
lea rsi, [rbp+var_14]
call _ZN4intxneILj256EivEEbRKNS_4uintIXT_EEERKT0_; intx::operator!=<256u,int,void>(intx::uint<256u> const&,int const&)
test al, 1
jnz short loc_93C3E
jmp short loc_93C61
loc_93C3E:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ZN6evmone8advanced12_GLOBAL__N_17op_jumpEPKNS0_11InstructionERNS0_22AdvancedExecutionStateE; evmone::advanced::`anonymous namespace'::op_jump(evmone::advanced::Instruction const*,evmone::advanced::AdvancedExecutionState &)
mov [rbp+var_8], rax
mov rdi, [rbp+var_10]
add rdi, 228h; this
call _ZN6evmone8StackTop3popEv; evmone::StackTop::pop(void)
jmp short loc_93C92
loc_93C61:
mov rdi, [rbp+var_10]
add rdi, 228h; this
call _ZN6evmone8StackTop3popEv; evmone::StackTop::pop(void)
mov rdi, [rbp+var_10]
add rdi, 228h; this
call _ZN6evmone8StackTop3popEv; evmone::StackTop::pop(void)
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
call _ZN6evmone8advanced12_GLOBAL__N_114opx_beginblockEPKNS0_11InstructionERNS0_22AdvancedExecutionStateE; evmone::advanced::`anonymous namespace'::opx_beginblock(evmone::advanced::Instruction const*,evmone::advanced::AdvancedExecutionState &)
mov [rbp+var_8], rax
loc_93C92:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long evmone::advanced::`anonymous namespace'::op_jumpi(long long a1, long long a2)
{
long long v2; // rax
unsigned int v4; // [rsp+Ch] [rbp-14h] BYREF
long long v5; // [rsp+10h] [rbp-10h]
long long v6; // [rsp+18h] [rbp-8h]
v6 = a1;
v5 = a2;
v2 = evmone::StackTop::operator[]((_QWORD *)(a2 + 552), 1);
v4 = 0;
if ( (intx::operator!=<256u,int,void>(v2, &v4) & 1) != 0 )
{
v6 = evmone::advanced::`anonymous namespace'::op_jump(v6, v5);
evmone::StackTop::pop((evmone::StackTop *)(v5 + 552));
}
else
{
evmone::StackTop::pop((evmone::StackTop *)(v5 + 552));
evmone::StackTop::pop((evmone::StackTop *)(v5 + 552));
return evmone::advanced::`anonymous namespace'::opx_beginblock(v6, v5);
}
return v6;
}
| op_jumpi:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x228
MOV ESI,0x1
CALL 0x00161a10
MOV RDI,RAX
MOV dword ptr [RBP + -0x14],0x0
LEA RSI,[RBP + -0x14]
CALL 0x00161c20
TEST AL,0x1
JNZ 0x00193c3e
JMP 0x00193c61
LAB_00193c3e:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00193b20
MOV qword ptr [RBP + -0x8],RAX
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x228
CALL 0x001611b0
JMP 0x00193c92
LAB_00193c61:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x228
CALL 0x001611b0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x228
CALL 0x001611b0
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x00193da0
MOV qword ptr [RBP + -0x8],RAX
LAB_00193c92:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
/* evmone::advanced::(anonymous namespace)::op_jumpi(evmone::advanced::Instruction const*,
evmone::advanced::AdvancedExecutionState&) */
int8
evmone::advanced::(anonymous_namespace)::op_jumpi
(Instruction *param_1,AdvancedExecutionState *param_2)
{
bool bVar1;
uint *puVar2;
int local_1c;
AdvancedExecutionState *local_18;
Instruction *local_10;
local_18 = param_2;
local_10 = param_1;
puVar2 = (uint *)StackTop::operator[]((StackTop *)(param_2 + 0x228),1);
local_1c = 0;
bVar1 = intx::operator!=(puVar2,&local_1c);
if (bVar1) {
local_10 = (Instruction *)op_jump(local_10,local_18);
StackTop::pop((StackTop *)(local_18 + 0x228));
}
else {
StackTop::pop((StackTop *)(local_18 + 0x228));
StackTop::pop((StackTop *)(local_18 + 0x228));
local_10 = (Instruction *)opx_beginblock(local_10,local_18);
}
return local_10;
}
| |
52,251 | SDL::OpenGL1Render::OpenGL1Render(SDL::Result&, SDL_Window*) | SDL3Lite/source/Renders/OpenGL1/OpenGL1Render.cpp | OpenGL1Render::OpenGL1Render(Result& result, SDL_Window* window) :
_result(result),
_window(window)
{
OpenGL_Compatibility_Init(1, 2);
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
} | O0 | cpp | SDL::OpenGL1Render::OpenGL1Render(SDL::Result&, SDL_Window*):
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0x22400
movq -0x30(%rbp), %rdi
movq 0x18d74(%rip), %rax # 0x43f50
addq $0x10, %rax
movq %rax, (%rdi)
movq -0x10(%rbp), %rax
movq %rax, 0x8(%rdi)
movq -0x18(%rbp), %rax
movq %rax, 0x10(%rdi)
addq $0x18, %rdi
callq 0x21eb0
jmp 0x2b1fe
movq -0x30(%rbp), %rdi
addq $0x1c, %rdi
callq 0x21bc0
jmp 0x2b20d
movq -0x30(%rbp), %rdi
addq $0x5c, %rdi
callq 0x21bc0
jmp 0x2b21c
movl $0x1, %edi
movl $0x2, %esi
callq 0x21bd0
jmp 0x2b22d
movq 0x183fc(%rip), %rax # 0x43630
movq (%rax), %rax
movl $0xcf5, %edi # imm = 0xCF5
movl $0x1, %esi
callq *%rax
jmp 0x2b245
movq 0x1891c(%rip), %rax # 0x43b68
movq (%rax), %rax
movl $0x302, %edi # imm = 0x302
movl $0x303, %esi # imm = 0x303
callq *%rax
jmp 0x2b25d
movq 0x18c3c(%rip), %rax # 0x43ea0
movq (%rax), %rax
movl $0xbe2, %edi # imm = 0xBE2
callq *%rax
jmp 0x2b270
addq $0x30, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x21410
movq -0x20(%rbp), %rdi
callq 0x22300
nopw %cs:(%rax,%rax)
| _ZN3SDL13OpenGL1RenderC2ERNS_6ResultEP10SDL_Window:
push rbp; Alternative name is 'SDL::OpenGL1Render::OpenGL1Render(SDL::Result &, SDL_Window *)'
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]; this
mov [rbp+var_30], rdi
call __ZN12SDL_RendererC2Ev; SDL_Renderer::SDL_Renderer(void)
mov rdi, [rbp+var_30]
mov rax, cs:_ZTVN3SDL13OpenGL1RenderE_ptr
add rax, 10h
mov [rdi], rax
mov rax, [rbp+var_10]
mov [rdi+8], rax
mov rax, [rbp+var_18]
mov [rdi+10h], rax
add rdi, 18h; this
call __ZN3SDL5ColorC2Ev; SDL::Color::Color(void)
jmp short $+2
loc_2B1FE:
mov rdi, [rbp+var_30]
add rdi, 1Ch
call __ZN3SDL4Mat4IfEC2Ev; SDL::Mat4<float>::Mat4(void)
jmp short $+2
loc_2B20D:
mov rdi, [rbp+var_30]
add rdi, 5Ch ; '\'
call __ZN3SDL4Mat4IfEC2Ev; SDL::Mat4<float>::Mat4(void)
jmp short $+2
loc_2B21C:
mov edi, 1
mov esi, 2
call _OpenGL_Compatibility_Init
jmp short $+2
loc_2B22D:
mov rax, cs:glPixelStorei_ptr
mov rax, [rax]
mov edi, 0CF5h
mov esi, 1
call rax
jmp short $+2
loc_2B245:
mov rax, cs:glBlendFunc_ptr
mov rax, [rax]
mov edi, 302h
mov esi, 303h
call rax
jmp short $+2
loc_2B25D:
mov rax, cs:glEnable_ptr
mov rax, [rax]
mov edi, 0BE2h
call rax
jmp short $+2
loc_2B270:
add rsp, 30h
pop rbp
retn
mov rdi, [rbp+var_30]; this
mov rcx, rax
mov eax, edx
mov [rbp+var_20], rcx
mov [rbp+var_24], eax
call __ZN12SDL_RendererD2Ev; SDL_Renderer::~SDL_Renderer()
mov rdi, [rbp+var_20]
call __Unwind_Resume
| long long SDL::OpenGL1Render::OpenGL1Render(SDL::OpenGL1Render *this, SDL::Result *a2, SDL_Window *a3)
{
SDL_Renderer::SDL_Renderer(this);
*(_QWORD *)this = &`vtable for'SDL::OpenGL1Render + 2;
*((_QWORD *)this + 1) = a2;
*((_QWORD *)this + 2) = a3;
SDL::Color::Color((SDL::OpenGL1Render *)((char *)this + 24));
SDL::Mat4<float>::Mat4((char *)this + 28);
SDL::Mat4<float>::Mat4((char *)this + 92);
OpenGL_Compatibility_Init(1, 2);
glPixelStorei(3317LL, 1LL);
glBlendFunc(770LL, 771LL);
return glEnable(3042LL);
}
| OpenGL1Render:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RDI
CALL 0x00122400
MOV RDI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [0x00143f50]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RDI + 0x10],RAX
ADD RDI,0x18
LAB_0012b1f7:
CALL 0x00121eb0
JMP 0x0012b1fe
LAB_0012b1fe:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x1c
CALL 0x00121bc0
JMP 0x0012b20d
LAB_0012b20d:
MOV RDI,qword ptr [RBP + -0x30]
ADD RDI,0x5c
CALL 0x00121bc0
JMP 0x0012b21c
LAB_0012b21c:
MOV EDI,0x1
MOV ESI,0x2
CALL 0x00121bd0
JMP 0x0012b22d
LAB_0012b22d:
MOV RAX,qword ptr [0x00143630]
MOV RAX,qword ptr [RAX]
MOV EDI,0xcf5
MOV ESI,0x1
CALL RAX
JMP 0x0012b245
LAB_0012b245:
MOV RAX,qword ptr [0x00143b68]
MOV RAX,qword ptr [RAX]
MOV EDI,0x302
MOV ESI,0x303
CALL RAX
JMP 0x0012b25d
LAB_0012b25d:
MOV RAX,qword ptr [0x00143ea0]
MOV RAX,qword ptr [RAX]
MOV EDI,0xbe2
CALL RAX
LAB_0012b26e:
JMP 0x0012b270
LAB_0012b270:
ADD RSP,0x30
POP RBP
RET
|
/* SDL::OpenGL1Render::OpenGL1Render(SDL::Result&, SDL_Window*) */
void __thiscall
SDL::OpenGL1Render::OpenGL1Render(OpenGL1Render *this,Result *param_1,SDL_Window *param_2)
{
SDL_Renderer::SDL_Renderer((SDL_Renderer *)this);
*(int **)this = PTR_vtable_00143f50 + 0x10;
*(Result **)(this + 8) = param_1;
*(SDL_Window **)(this + 0x10) = param_2;
/* try { // try from 0012b1f7 to 0012b26d has its CatchHandler @ 0012b276 */
Color::Color((Color *)(this + 0x18));
Mat4<float>::Mat4((Mat4<float> *)(this + 0x1c));
Mat4<float>::Mat4((Mat4<float> *)(this + 0x5c));
OpenGL_Compatibility_Init(1,2);
(**(code **)PTR_glPixelStorei_00143630)(0xcf5,1);
(**(code **)PTR_glBlendFunc_00143b68)(0x302,0x303);
(**(code **)PTR_glEnable_00143ea0)(0xbe2);
return;
}
| |
52,252 | my_strnxfrm_tis620_nopad | eloqsql/strings/ctype-tis620.c | static size_t
my_strnxfrm_tis620_nopad(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
size_t len, dstlen0= dstlen;
len= MY_MIN(dstlen, srclen);
memcpy(dst, src, len);
len= thai2sortable(dst, len);
set_if_smaller(dstlen, nweights);
set_if_smaller(len, dstlen);
len= my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + len, dst + dstlen,
(uint)(dstlen - len), flags, 0);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0)
{
size_t fill_length= dstlen0 - len;
memset(dst + len, 0x00, fill_length);
len= dstlen0;
}
return len;
} | O3 | c | my_strnxfrm_tis620_nopad:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r12
movl %ecx, %r15d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r13
cmpq %r9, %rdx
cmovbq %rdx, %r12
movq %rsi, %rdi
movq %r8, %rsi
movq %r12, %rdx
callq 0x282f0
movq %r14, %rdi
movq %r12, %rsi
callq 0x77013
movl %r15d, %r8d
cmpq %rbx, %r8
cmovaeq %rbx, %r8
cmpq %r8, %r12
cmovaeq %r8, %r12
leaq (%r14,%r12), %rdx
leaq (%r14,%r8), %rcx
subl %r12d, %r8d
movl $0x0, (%rsp)
movq %r13, %rdi
movq %r14, %rsi
movl 0x10(%rbp), %r15d
movl %r15d, %r9d
callq 0x73ea6
testb %r15b, %r15b
jns 0x771ab
movq %rbx, %rdx
subq %rax, %rdx
jbe 0x771ab
addq %rax, %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x281f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| my_strnxfrm_tis620_nopad:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12, r9
mov r15d, ecx
mov rbx, rdx
mov r14, rsi
mov r13, rdi
cmp rdx, r9
cmovb r12, rdx
mov rdi, rsi
mov rsi, r8
mov rdx, r12
call _memcpy
mov rdi, r14
mov rsi, r12
call thai2sortable
mov r8d, r15d
cmp r8, rbx
cmovnb r8, rbx
cmp r12, r8
cmovnb r12, r8
lea rdx, [r14+r12]
lea rcx, [r14+r8]
sub r8d, r12d
mov [rsp+30h+var_30], 0
mov rdi, r13
mov rsi, r14
mov r15d, [rbp+arg_0]
mov r9d, r15d
call my_strxfrm_pad_desc_and_reverse_nopad
test r15b, r15b
jns short loc_771AB
mov rdx, rbx
sub rdx, rax
jbe short loc_771AB
add r14, rax
mov rdi, r14
xor esi, esi
call _memset
mov rax, rbx
loc_771AB:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| unsigned long long my_strnxfrm_tis620_nopad(
long long a1,
unsigned __int8 *a2,
unsigned long long a3,
long long a4,
long long a5,
unsigned long long a6,
unsigned int a7)
{
unsigned long long v7; // r12
unsigned int v8; // r15d
unsigned long long v10; // r8
unsigned long long result; // rax
v7 = a6;
v8 = a4;
if ( a3 < a6 )
v7 = a3;
memcpy(a2, a5, v7, a4);
thai2sortable(a2, v7);
v10 = v8;
if ( v8 >= a3 )
v10 = a3;
if ( v7 >= v10 )
v7 = v10;
result = my_strxfrm_pad_desc_and_reverse_nopad(
a1,
(long long)a2,
(unsigned long long)&a2[v7],
(unsigned long long)&a2[v10],
(int)v10 - (int)v7,
a7,
0);
if ( (a7 & 0x80u) != 0 && a3 > result )
{
memset(&a2[result], 0LL, a3 - result);
return a3;
}
return result;
}
| my_strnxfrm_tis620_nopad:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12,R9
MOV R15D,ECX
MOV RBX,RDX
MOV R14,RSI
MOV R13,RDI
CMP RDX,R9
CMOVC R12,RDX
MOV RDI,RSI
MOV RSI,R8
MOV RDX,R12
CALL 0x001282f0
MOV RDI,R14
MOV RSI,R12
CALL 0x00177013
MOV R8D,R15D
CMP R8,RBX
CMOVNC R8,RBX
CMP R12,R8
CMOVNC R12,R8
LEA RDX,[R14 + R12*0x1]
LEA RCX,[R14 + R8*0x1]
SUB R8D,R12D
MOV dword ptr [RSP],0x0
MOV RDI,R13
MOV RSI,R14
MOV R15D,dword ptr [RBP + 0x10]
MOV R9D,R15D
CALL 0x00173ea6
TEST R15B,R15B
JNS 0x001771ab
MOV RDX,RBX
SUB RDX,RAX
JBE 0x001771ab
ADD R14,RAX
MOV RDI,R14
XOR ESI,ESI
CALL 0x001281f0
MOV RAX,RBX
LAB_001771ab:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strnxfrm_tis620_nopad
(int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,int4 param_7)
{
int8 in_RAX;
ulong uVar1;
uint uVar2;
uVar2 = (uint)((ulong)in_RAX >> 0x20);
if (param_3 < param_6) {
param_6 = param_3;
}
memcpy(param_2,param_5,param_6);
thai2sortable(param_2,param_6);
uVar1 = (ulong)param_4;
if (param_3 <= param_4) {
uVar1 = param_3;
}
if (uVar1 <= param_6) {
param_6 = uVar1;
}
uVar1 = my_strxfrm_pad_desc_and_reverse_nopad
(param_1,param_2,(long)param_2 + param_6,(long)param_2 + uVar1,
(int)uVar1 - (int)param_6,param_7,(ulong)uVar2 << 0x20);
if (((char)param_7 < '\0') && (uVar1 <= param_3 && param_3 - uVar1 != 0)) {
memset((void *)((long)param_2 + uVar1),0,param_3 - uVar1);
uVar1 = param_3;
}
return uVar1;
}
| |
52,253 | js_module_ns_has | bluesky950520[P]quickjs/quickjs.c | static int js_module_ns_has(JSContext *ctx, JSValue obj, JSAtom atom)
{
return (find_own_property1(JS_VALUE_GET_OBJ(obj), atom) != NULL);
} | O0 | c | js_module_ns_has:
subq $0x58, %rsp
movq %rsi, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x10(%rsp), %rcx
movl 0x4(%rsp), %eax
movq %rcx, 0x48(%rsp)
movl %eax, 0x44(%rsp)
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
movl 0x44(%rsp), %eax
movq 0x38(%rsp), %rcx
movl 0x20(%rcx), %ecx
andq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x5d8b0
xorl %ecx, %ecx
subq 0x20(%rsp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
callq 0x2c280
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x7333f
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movl 0x4(%rax), %eax
cmpl 0x44(%rsp), %eax
sete %al
testb $0x1, %al
jne 0x7331e
jmp 0x7332a
movq 0x30(%rsp), %rax
movq %rax, 0x50(%rsp)
jmp 0x73348
movq 0x30(%rsp), %rax
movl (%rax), %eax
andl $0x3ffffff, %eax # imm = 0x3FFFFFF
movl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x732e7
movq $0x0, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)
| js_module_ns_has:
sub rsp, 58h
mov [rsp+58h+var_48], rsi
mov [rsp+58h+var_40], rdx
mov [rsp+58h+var_50], rdi
mov [rsp+58h+var_54], ecx
mov rcx, [rsp+58h+var_48]
mov eax, [rsp+58h+var_54]
mov [rsp+58h+var_10], rcx
mov [rsp+58h+var_14], eax
mov rax, [rsp+58h+var_10]
mov rax, [rax+18h]
mov [rsp+58h+var_20], rax
mov eax, [rsp+58h+var_14]
mov rcx, [rsp+58h+var_20]
mov ecx, [rcx+20h]
and rax, rcx
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call prop_hash_end
xor ecx, ecx
sub rcx, [rsp+58h+var_38]
sub rcx, 1
mov eax, [rax+rcx*4]
mov [rsp+58h+var_38], rax
mov rdi, [rsp+58h+var_20]
call get_shape_prop
mov [rsp+58h+var_30], rax
loc_732E7:
cmp [rsp+58h+var_38], 0
jz short loc_7333F
mov rax, [rsp+58h+var_30]
mov rcx, [rsp+58h+var_38]
sub rcx, 1
shl rcx, 3
add rax, rcx
mov [rsp+58h+var_28], rax
mov rax, [rsp+58h+var_28]
mov eax, [rax+4]
cmp eax, [rsp+58h+var_14]
setz al
test al, 1
jnz short loc_7331E
jmp short loc_7332A
loc_7331E:
mov rax, [rsp+58h+var_28]
mov [rsp+58h+var_8], rax
jmp short loc_73348
loc_7332A:
mov rax, [rsp+58h+var_28]
mov eax, [rax]
and eax, 3FFFFFFh
mov eax, eax
mov [rsp+58h+var_38], rax
jmp short loc_732E7
loc_7333F:
mov [rsp+58h+var_8], 0
loc_73348:
cmp [rsp+58h+var_8], 0
setnz al
and al, 1
movzx eax, al
add rsp, 58h
retn
| _BOOL8 js_module_ns_has(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v5; // [rsp+20h] [rbp-38h]
long long v6; // [rsp+20h] [rbp-38h]
long long shape_prop; // [rsp+28h] [rbp-30h]
_DWORD *v8; // [rsp+30h] [rbp-28h]
long long v9; // [rsp+38h] [rbp-20h]
long long v11; // [rsp+50h] [rbp-8h]
v9 = *(_QWORD *)(a2 + 24);
v5 = *(_DWORD *)(v9 + 32) & a4;
v6 = *(unsigned int *)(prop_hash_end(v9) + 4 * (-v5 - 1));
shape_prop = get_shape_prop(v9);
while ( v6 )
{
v8 = (_DWORD *)(8 * (v6 - 1) + shape_prop);
if ( v8[1] == a4 )
{
v11 = 8 * (v6 - 1) + shape_prop;
return v11 != 0;
}
v6 = *v8 & 0x3FFFFFF;
}
v11 = 0LL;
return v11 != 0;
}
| js_module_ns_has:
SUB RSP,0x58
MOV qword ptr [RSP + 0x10],RSI
MOV qword ptr [RSP + 0x18],RDX
MOV qword ptr [RSP + 0x8],RDI
MOV dword ptr [RSP + 0x4],ECX
MOV RCX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RSP + 0x4]
MOV qword ptr [RSP + 0x48],RCX
MOV dword ptr [RSP + 0x44],EAX
MOV RAX,qword ptr [RSP + 0x48]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x38],RAX
MOV EAX,dword ptr [RSP + 0x44]
MOV RCX,qword ptr [RSP + 0x38]
MOV ECX,dword ptr [RCX + 0x20]
AND RAX,RCX
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0015d8b0
XOR ECX,ECX
SUB RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x38]
CALL 0x0012c280
MOV qword ptr [RSP + 0x28],RAX
LAB_001732e7:
CMP qword ptr [RSP + 0x20],0x0
JZ 0x0017333f
MOV RAX,qword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
SUB RCX,0x1
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX + 0x4]
CMP EAX,dword ptr [RSP + 0x44]
SETZ AL
TEST AL,0x1
JNZ 0x0017331e
JMP 0x0017332a
LAB_0017331e:
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x50],RAX
JMP 0x00173348
LAB_0017332a:
MOV RAX,qword ptr [RSP + 0x30]
MOV EAX,dword ptr [RAX]
AND EAX,0x3ffffff
MOV EAX,EAX
MOV qword ptr [RSP + 0x20],RAX
JMP 0x001732e7
LAB_0017333f:
MOV qword ptr [RSP + 0x50],0x0
LAB_00173348:
CMP qword ptr [RSP + 0x50],0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x58
RET
|
bool js_module_ns_has(int8 param_1,long param_2,int8 param_3,uint param_4)
{
uint uVar1;
long lVar2;
long lVar3;
ulong local_38;
uint *local_8;
lVar3 = *(long *)(param_2 + 0x18);
uVar1 = *(uint *)(lVar3 + 0x20);
lVar2 = prop_hash_end(lVar3);
uVar1 = *(uint *)(lVar2 + (-1 - (ulong)(param_4 & uVar1)) * 4);
lVar3 = get_shape_prop(lVar3);
while (local_38 = (ulong)uVar1, local_38 != 0) {
local_8 = (uint *)(lVar3 + (local_38 - 1) * 8);
if (local_8[1] == param_4) goto LAB_00173348;
uVar1 = *local_8 & 0x3ffffff;
}
local_8 = (uint *)0x0;
LAB_00173348:
return local_8 != (uint *)0x0;
}
| |
52,254 | my_strxfrm_desc_and_reverse | eloqsql/strings/ctype-simple.c | void
my_strxfrm_desc_and_reverse(uchar *str, uchar *strend,
uint flags, uint level)
{
if (flags & (MY_STRXFRM_DESC_LEVEL1 << level))
{
if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str <= strend;)
{
uchar tmp= *str;
*str++= ~*strend;
*strend--= ~tmp;
}
}
else
{
for (; str < strend; str++)
*str= ~*str;
}
}
else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level))
{
for (strend--; str < strend;)
{
uchar tmp= *str;
*str++= *strend;
*strend--= tmp;
}
}
} | O0 | c | my_strxfrm_desc_and_reverse:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x100, %edx # imm = 0x100
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x5195c
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x10000, %edx # imm = 0x10000
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x5192c
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
ja 0x5192a
movq -0x8(%rbp), %rax
movb (%rax), %al
movb %al, -0x19(%rbp)
movq -0x10(%rbp), %rax
movzbl (%rax), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movzbl -0x19(%rbp), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x518de
jmp 0x5195a
jmp 0x5192e
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x51958
movq -0x8(%rbp), %rax
movzbl (%rax), %eax
xorl $-0x1, %eax
movb %al, %cl
movq -0x8(%rbp), %rax
movb %cl, (%rax)
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
jmp 0x5192e
jmp 0x5195a
jmp 0x519c2
movl -0x14(%rbp), %eax
movl -0x18(%rbp), %ecx
movl $0x10000, %edx # imm = 0x10000
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x519c0
movq -0x10(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jae 0x519be
movq -0x8(%rbp), %rax
movb (%rax), %al
movb %al, -0x1a(%rbp)
movq -0x10(%rbp), %rax
movb (%rax), %cl
movq -0x8(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x8(%rbp)
movb %cl, (%rax)
movb -0x1a(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x5197e
jmp 0x519c0
jmp 0x519c2
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_strxfrm_desc_and_reverse:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_18], ecx
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 100h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz loc_5195C
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 10000h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz short loc_5192C
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
loc_518DE:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
ja short loc_5192A
mov rax, [rbp+var_8]
mov al, [rax]
mov [rbp+var_19], al
mov rax, [rbp+var_10]
movzx eax, byte ptr [rax]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
movzx eax, [rbp+var_19]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_518DE
loc_5192A:
jmp short loc_5195A
loc_5192C:
jmp short $+2
loc_5192E:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_51958
mov rax, [rbp+var_8]
movzx eax, byte ptr [rax]
xor eax, 0FFFFFFFFh
mov cl, al
mov rax, [rbp+var_8]
mov [rax], cl
mov rax, [rbp+var_8]
add rax, 1
mov [rbp+var_8], rax
jmp short loc_5192E
loc_51958:
jmp short $+2
loc_5195A:
jmp short loc_519C2
loc_5195C:
mov eax, [rbp+var_14]
mov ecx, [rbp+var_18]
mov edx, 10000h
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jz short loc_519C0
mov rax, [rbp+var_10]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rax
loc_5197E:
mov rax, [rbp+var_8]
cmp rax, [rbp+var_10]
jnb short loc_519BE
mov rax, [rbp+var_8]
mov al, [rax]
mov [rbp+var_1A], al
mov rax, [rbp+var_10]
mov cl, [rax]
mov rax, [rbp+var_8]
mov rdx, rax
add rdx, 1
mov [rbp+var_8], rdx
mov [rax], cl
mov cl, [rbp+var_1A]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_5197E
loc_519BE:
jmp short $+2
loc_519C0:
jmp short $+2
loc_519C2:
pop rbp
retn
| _BYTE * my_strxfrm_desc_and_reverse(_BYTE *a1, unsigned long long a2, unsigned int a3, char a4)
{
_BYTE *result; // rax
_BYTE *v5; // rax
_BYTE *v6; // rax
_BYTE *v7; // rax
_BYTE *v8; // rax
char v9; // [rsp+0h] [rbp-1Ah]
char v10; // [rsp+1h] [rbp-19h]
_BYTE *i; // [rsp+Ah] [rbp-10h]
_BYTE *j; // [rsp+Ah] [rbp-10h]
if ( ((256 << a4) & a3) != 0 )
{
if ( ((0x10000 << a4) & a3) != 0 )
{
for ( i = (_BYTE *)(a2 - 1); ; --i )
{
result = a1;
if ( a1 > i )
break;
v10 = *a1;
v5 = a1++;
*v5 = ~*i;
v6 = i;
*v6 = ~v10;
}
}
else
{
while ( 1 )
{
result = a1;
if ( (unsigned long long)a1 >= a2 )
break;
*a1 = ~*a1;
++a1;
}
}
}
else
{
result = (_BYTE *)((0x10000 << a4) & a3);
if ( (_DWORD)result )
{
for ( j = (_BYTE *)(a2 - 1); ; --j )
{
result = a1;
if ( a1 >= j )
break;
v9 = *a1;
v7 = a1++;
*v7 = *j;
v8 = j;
*v8 = v9;
}
}
}
return result;
}
| my_strxfrm_desc_and_reverse:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV dword ptr [RBP + -0x18],ECX
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x100
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x0015195c
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x10000
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x0015192c
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_001518de:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JA 0x0015192a
MOV RAX,qword ptr [RBP + -0x8]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x19],AL
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOVZX EAX,byte ptr [RBP + -0x19]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x001518de
LAB_0015192a:
JMP 0x0015195a
LAB_0015192c:
JMP 0x0015192e
LAB_0015192e:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x00151958
MOV RAX,qword ptr [RBP + -0x8]
MOVZX EAX,byte ptr [RAX]
XOR EAX,0xffffffff
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x8]
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,0x1
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015192e
LAB_00151958:
JMP 0x0015195a
LAB_0015195a:
JMP 0x001519c2
LAB_0015195c:
MOV EAX,dword ptr [RBP + -0x14]
MOV ECX,dword ptr [RBP + -0x18]
MOV EDX,0x10000
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JZ 0x001519c0
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x10],RAX
LAB_0015197e:
MOV RAX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RBP + -0x10]
JNC 0x001519be
MOV RAX,qword ptr [RBP + -0x8]
MOV AL,byte ptr [RAX]
MOV byte ptr [RBP + -0x1a],AL
MOV RAX,qword ptr [RBP + -0x10]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x8],RDX
MOV byte ptr [RAX],CL
MOV CL,byte ptr [RBP + -0x1a]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x0015197e
LAB_001519be:
JMP 0x001519c0
LAB_001519c0:
JMP 0x001519c2
LAB_001519c2:
POP RBP
RET
|
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4)
{
byte bVar1;
byte *local_18;
byte *local_10;
if ((param_3 & 0x100 << (param_4 & 0x1f)) == 0) {
if ((param_3 & 0x10000 << (param_4 & 0x1f)) != 0) {
local_18 = param_2 + -1;
local_10 = param_1;
while (local_10 < local_18) {
bVar1 = *local_10;
*local_10 = *local_18;
*local_18 = bVar1;
local_18 = local_18 + -1;
local_10 = local_10 + 1;
}
}
}
else {
local_10 = param_1;
if ((param_3 & 0x10000 << (param_4 & 0x1f)) == 0) {
for (; local_10 < param_2; local_10 = local_10 + 1) {
*local_10 = *local_10 ^ 0xff;
}
}
else {
local_18 = param_2 + -1;
local_10 = param_1;
while (local_10 <= local_18) {
bVar1 = *local_10;
*local_10 = *local_18 ^ 0xff;
*local_18 = bVar1 ^ 0xff;
local_18 = local_18 + -1;
local_10 = local_10 + 1;
}
}
}
return;
}
| |
52,255 | 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;
} | O3 | 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 0x5a2b2
movl 0x14(%rbx), %eax
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jae 0x59f06
leaq 0x50(%rbx), %r14
movl $0x5, %ebp
movsbl %al, %esi
movq %r14, %rdi
callq 0x1b750
leaq 0x50(%rbx), %r14
movq %rbx, %rdi
callq 0x1c2d2
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jae 0x59e16
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
jmp 0x59df8
cmpl $0x2e, %eax
je 0x59f78
cmpl $0x45, %eax
je 0x59fd4
cmpl $0x65, %eax
je 0x59fd4
movq %rbx, %rdi
callq 0x5a128
movq $0x0, (%rsp)
callq 0x1b060
movq %rax, %r14
movl $0x0, (%rax)
movq 0x50(%rbx), %rdi
movq %rsp, %r15
movq %r15, %rsi
movl $0xa, %edx
cmpl $0x5, %ebp
jne 0x59e8b
callq 0x1bb50
movq 0x50(%rbx), %rcx
addq 0x58(%rbx), %rcx
cmpq %rcx, (%r15)
jne 0x5a0ce
cmpl $0x0, (%r14)
jne 0x59ea7
movl $0x5, %ecx
movl $0x80, %edx
jmp 0x59efd
callq 0x1b120
movq 0x50(%rbx), %rcx
addq 0x58(%rbx), %rcx
cmpq %rcx, (%r15)
jne 0x5a0ea
cmpl $0x0, (%r14)
je 0x59ef3
movq 0x50(%rbx), %rdi
movq %rsp, %r14
movq %r14, %rsi
callq 0x1b6c0
movsd %xmm0, 0x88(%rbx)
movq 0x50(%rbx), %rax
addq 0x58(%rbx), %rax
movl $0x7, %ecx
cmpq %rax, (%r14)
je 0x5a00e
leaq 0x93d5e(%rip), %rdi # 0xedc39
leaq 0x93da1(%rip), %rdx # 0xedc83
leaq 0x94bb8(%rip), %rcx # 0xeeaa1
movl $0x21d6, %esi # imm = 0x21D6
jmp 0x5a120
movl $0x6, %ecx
movl $0x78, %edx
movq %rax, (%rbx,%rdx)
jmp 0x5a00e
cmpl $0x30, %eax
je 0x59f46
cmpl $0x2d, %eax
jne 0x5a106
leaq 0x50(%rbx), %r14
movq %r14, %rdi
movl $0x2d, %esi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
leal -0x31(%rax), %ecx
cmpl $0x9, %ecx
jae 0x5a0a7
movl 0x14(%rbx), %eax
movl $0x6, %ebp
jmp 0x59de9
leaq 0x50(%rbx), %rdi
movl $0x30, %esi
callq 0x1b750
movl $0x5, %ebp
movq %rbx, %rdi
callq 0x1c2d2
cmpl $0x65, %eax
je 0x59fd0
cmpl $0x45, %eax
je 0x59fd0
cmpl $0x2e, %eax
jne 0x59e31
leaq 0x50(%rbx), %r14
movsbl 0x90(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x59fc7
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x59f9b
cmpl $0x65, %eax
je 0x59fd4
cmpl $0x45, %eax
jne 0x5a05b
jmp 0x59fd4
leaq 0x94a3c(%rip), %rax # 0xeea0a
jmp 0x5a005
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
jb 0x5a01b
cmpl $0x2d, %eax
je 0x5a07b
cmpl $0x2b, %eax
je 0x5a07b
leaq 0x94a2e(%rip), %rax # 0xeea33
movq %rax, 0x70(%rbx)
movl $0xe, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x5a05b
leaq 0x50(%rbx), %r14
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x5a03f
movq %rbx, %rdi
callq 0x5a128
movq $0x0, (%rsp)
callq 0x1b060
movl $0x0, (%rax)
jmp 0x59ea7
movsbl 0x14(%rbx), %esi
leaq 0x50(%rbx), %r14
movq %r14, %rdi
callq 0x1b750
movq %rbx, %rdi
callq 0x1c2d2
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x5a01f
leaq 0x949cc(%rip), %rax # 0xeea6e
jmp 0x5a005
cmpl $0x30, %eax
je 0x5a0b8
leaq 0x9492e(%rip), %rax # 0xee9e1
jmp 0x5a005
movsbl 0x14(%rbx), %esi
movq %r14, %rdi
callq 0x1b750
movl $0x6, %ebp
jmp 0x59f59
leaq 0x93b64(%rip), %rdi # 0xedc39
leaq 0x93ba7(%rip), %rdx # 0xedc83
leaq 0x949be(%rip), %rcx # 0xeeaa1
movl $0x21b5, %esi # imm = 0x21B5
jmp 0x5a120
leaq 0x93b48(%rip), %rdi # 0xedc39
leaq 0x93b8b(%rip), %rdx # 0xedc83
leaq 0x949a2(%rip), %rcx # 0xeeaa1
movl $0x21c5, %esi # imm = 0x21C5
jmp 0x5a120
leaq 0x93b2c(%rip), %rdi # 0xedc39
leaq 0x93b6f(%rip), %rdx # 0xedc83
leaq 0x91618(%rip), %rcx # 0xeb733
movl $0x20be, %esi # imm = 0x20BE
xorl %eax, %eax
callq 0x1be90
nop
| _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_59F06
lea r14, [rbx+50h]
mov ebp, 5
loc_59DE9:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
lea r14, [rbx+50h]
loc_59DF8:
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_59E16
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_59DF8
loc_59E16:
cmp eax, 2Eh ; '.'
jz loc_59F78
cmp eax, 45h ; 'E'
jz loc_59FD4
cmp eax, 65h ; 'e'
jz loc_59FD4
loc_59E31:
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)
mov [rsp+28h+var_28], 0
call ___errno_location
mov r14, rax
mov dword ptr [rax], 0
mov rdi, [rbx+50h]
mov r15, rsp
mov rsi, r15
mov edx, 0Ah
cmp ebp, 5
jnz short loc_59E8B
call _strtoull
mov rcx, [rbx+50h]
add rcx, [rbx+58h]
cmp [r15], rcx
jnz loc_5A0CE
cmp dword ptr [r14], 0
jnz short loc_59EA7
mov ecx, 5
mov edx, 80h
jmp short loc_59EFD
loc_59E8B:
call _strtoll
mov rcx, [rbx+50h]
add rcx, [rbx+58h]
cmp [r15], rcx
jnz loc_5A0EA
cmp dword ptr [r14], 0
jz short loc_59EF3
loc_59EA7:
mov rdi, [rbx+50h]
mov r14, rsp
mov rsi, r14
call _strtod
movsd qword ptr [rbx+88h], xmm0
mov rax, [rbx+50h]
add rax, [rbx+58h]
mov ecx, 7
cmp [r14], rax
jz loc_5A00E
lea rdi, aWorkspaceLlm4b_0; "/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 loc_5A120
loc_59EF3:
mov ecx, 6
mov edx, 78h ; 'x'
loc_59EFD:
mov [rbx+rdx], rax
jmp loc_5A00E
loc_59F06:
cmp eax, 30h ; '0'
jz short loc_59F46
cmp eax, 2Dh ; '-'
jnz loc_5A106
lea r14, [rbx+50h]
mov rdi, r14
mov esi, 2Dh ; '-'
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_5A0A7
mov eax, [rbx+14h]
mov ebp, 6
jmp loc_59DE9
loc_59F46:
lea rdi, [rbx+50h]
mov esi, 30h ; '0'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov ebp, 5
loc_59F59:
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 short loc_59FD0
cmp eax, 45h ; 'E'
jz short loc_59FD0
cmp eax, 2Eh ; '.'
jnz loc_59E31
lea r14, [rbx+50h]
loc_59F78:
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 short loc_59FC7
lea r14, [rbx+50h]
loc_59F9B:
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_59F9B
cmp eax, 65h ; 'e'
jz short loc_59FD4
cmp eax, 45h ; 'E'
jnz loc_5A05B
jmp short loc_59FD4
loc_59FC7:
lea rax, aInvalidNumberE; "invalid number; expected digit after '."...
jmp short loc_5A005
loc_59FD0:
lea r14, [rbx+50h]
loc_59FD4:
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_5A01B
cmp eax, 2Dh ; '-'
jz loc_5A07B
cmp eax, 2Bh ; '+'
jz short loc_5A07B
lea rax, aInvalidNumberE_0; "invalid number; expected '+', '-', or d"...
loc_5A005:
mov [rbx+70h], rax
mov ecx, 0Eh
loc_5A00E:
mov eax, ecx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_5A01B:
lea r14, [rbx+50h]
loc_5A01F:
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)
add eax, 0FFFFFFD0h
cmp eax, 9
ja short loc_5A05B
lea r14, [rbx+50h]
loc_5A03F:
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)
add eax, 0FFFFFFD0h
cmp eax, 0Ah
jb short loc_5A03F
loc_5A05B:
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)
mov [rsp+28h+var_28], 0
call ___errno_location
mov dword ptr [rax], 0
jmp loc_59EA7
loc_5A07B:
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 short loc_5A01F
lea rax, aInvalidNumberE_1; "invalid number; expected digit after ex"...
jmp loc_5A005
loc_5A0A7:
cmp eax, 30h ; '0'
jz short loc_5A0B8
lea rax, aInvalidNumberE_2; "invalid number; expected digit after '-"...
jmp loc_5A005
loc_5A0B8:
movsx esi, byte ptr [rbx+14h]
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov ebp, 6
jmp loc_59F59
loc_5A0CE:
lea rdi, aWorkspaceLlm4b_0; "/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_5A120
loc_5A0EA:
lea rdi, aWorkspaceLlm4b_0; "/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_5A120
loc_5A106:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAdvancedOption+0ABh; "false"
mov esi, 20BEh
loc_5A120:
xor eax, eax
call _ggml_abort
nop
| 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,
double a2)
{
long long v2; // rax
int v4; // eax
long long v5; // r14
int v6; // ebp
long long v7; // r14
int v8; // eax
_DWORD *v9; // r14
long long v10; // rdi
long long v11; // rax
unsigned int v12; // ecx
long long v13; // rdx
int v14; // eax
int v15; // eax
int v16; // eax
const char *v17; // rax
int v18; // eax
long long v20; // r14
_QWORD v21[5]; // [rsp+0h] [rbp-28h] BYREF
v21[0] = v2;
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);
v4 = *(_DWORD *)(a1 + 20);
if ( (unsigned int)(v4 - 49) >= 9 )
{
if ( v4 == 48 )
{
std::string::push_back(a1 + 80, 48LL);
v6 = 5;
}
else
{
if ( v4 != 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>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
v5 = a1 + 80;
std::string::push_back(a1 + 80, 45LL);
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((__m128i *)a1);
if ( (unsigned int)(v14 - 49) < 9 )
{
v4 = *(_DWORD *)(a1 + 20);
v6 = 6;
goto LABEL_3;
}
if ( v14 != 48 )
{
v17 = "invalid number; expected digit after '-'";
goto LABEL_40;
}
std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20));
v6 = 6;
}
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((__m128i *)a1);
if ( v15 == 101 || v15 == 69 )
{
v7 = a1 + 80;
goto LABEL_36;
}
if ( v15 != 46 )
goto LABEL_9;
v7 = a1 + 80;
LABEL_28:
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((__m128i *)a1)
- 48 > 9 )
{
v17 = "invalid number; expected digit after '.'";
LABEL_40:
*(_QWORD *)(a1 + 112) = v17;
return 14;
}
v7 = a1 + 80;
do
{
std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20));
v16 = 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((__m128i *)a1);
}
while ( (unsigned int)(v16 - 48) < 0xA );
if ( v16 != 101 && v16 != 69 )
{
LABEL_45:
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);
v21[0] = 0LL;
*(_DWORD *)__errno_location(a2) = 0;
goto LABEL_15;
}
LABEL_36:
std::string::push_back(v7, (unsigned int)*(char *)(a1 + 20));
v18 = 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((__m128i *)a1);
if ( (unsigned int)(v18 - 48) < 0xA )
{
v20 = a1 + 80;
}
else
{
if ( v18 != 45 && v18 != 43 )
{
v17 = "invalid number; expected '+', '-', or digit after exponent";
goto LABEL_40;
}
v20 = 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((__m128i *)a1)
- 48 >= 0xA )
{
v17 = "invalid number; expected digit after exponent sign";
goto LABEL_40;
}
}
std::string::push_back(v20, (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((__m128i *)a1)
- 48 <= 9 )
{
do
std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20));
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((__m128i *)a1)
- 48 < 0xA );
}
goto LABEL_45;
}
v5 = a1 + 80;
v6 = 5;
LABEL_3:
std::string::push_back(v5, (unsigned int)(char)v4);
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((__m128i *)a1);
if ( (unsigned int)(v8 - 48) >= 0xA )
break;
std::string::push_back(a1 + 80, (unsigned int)*(char *)(a1 + 20));
}
if ( v8 == 46 )
goto LABEL_28;
if ( v8 == 69 || v8 == 101 )
goto LABEL_36;
LABEL_9:
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);
v21[0] = 0LL;
v9 = (_DWORD *)__errno_location(a2);
*v9 = 0;
v10 = *(_QWORD *)(a1 + 80);
if ( v6 == 5 )
{
v11 = strtoull(v10, v21, 10LL);
if ( v21[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) )
{
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>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
if ( !*v9 )
{
v12 = 5;
v13 = 128LL;
LABEL_18:
*(_QWORD *)(a1 + v13) = v11;
return v12;
}
}
else
{
v11 = strtoll(v10, v21, 10LL);
if ( v21[0] != *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) )
{
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>>>::unget("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp");
}
if ( !*v9 )
{
v12 = 6;
v13 = 120LL;
goto LABEL_18;
}
}
LABEL_15:
*(double *)(a1 + 136) = strtod(*(_QWORD *)(a1 + 80), v21);
v12 = 7;
if ( v21[0] == *(_QWORD *)(a1 + 88) + *(_QWORD *)(a1 + 80) )
return v12;
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>>>::unget("/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 0x0015a2b2
MOV EAX,dword ptr [RBX + 0x14]
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JNC 0x00159f06
LEA R14,[RBX + 0x50]
MOV EBP,0x5
LAB_00159de9:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x0011b750
LEA R14,[RBX + 0x50]
LAB_00159df8:
MOV RDI,RBX
CALL 0x0011c2d2
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JNC 0x00159e16
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
JMP 0x00159df8
LAB_00159e16:
CMP EAX,0x2e
JZ 0x00159f78
CMP EAX,0x45
JZ 0x00159fd4
CMP EAX,0x65
JZ 0x00159fd4
LAB_00159e31:
MOV RDI,RBX
CALL 0x0015a128
MOV qword ptr [RSP],0x0
CALL 0x0011b060
MOV R14,RAX
MOV dword ptr [RAX],0x0
MOV RDI,qword ptr [RBX + 0x50]
MOV R15,RSP
MOV RSI,R15
MOV EDX,0xa
CMP EBP,0x5
JNZ 0x00159e8b
CALL 0x0011bb50
MOV RCX,qword ptr [RBX + 0x50]
ADD RCX,qword ptr [RBX + 0x58]
CMP qword ptr [R15],RCX
JNZ 0x0015a0ce
CMP dword ptr [R14],0x0
JNZ 0x00159ea7
MOV ECX,0x5
MOV EDX,0x80
JMP 0x00159efd
LAB_00159e8b:
CALL 0x0011b120
MOV RCX,qword ptr [RBX + 0x50]
ADD RCX,qword ptr [RBX + 0x58]
CMP qword ptr [R15],RCX
JNZ 0x0015a0ea
CMP dword ptr [R14],0x0
JZ 0x00159ef3
LAB_00159ea7:
MOV RDI,qword ptr [RBX + 0x50]
MOV R14,RSP
MOV RSI,R14
CALL 0x0011b6c0
MOVSD qword ptr [RBX + 0x88],XMM0
MOV RAX,qword ptr [RBX + 0x50]
ADD RAX,qword ptr [RBX + 0x58]
MOV ECX,0x7
CMP qword ptr [R14],RAX
JZ 0x0015a00e
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eeaa1]
MOV ESI,0x21d6
JMP 0x0015a120
LAB_00159ef3:
MOV ECX,0x6
MOV EDX,0x78
LAB_00159efd:
MOV qword ptr [RBX + RDX*0x1],RAX
JMP 0x0015a00e
LAB_00159f06:
CMP EAX,0x30
JZ 0x00159f46
CMP EAX,0x2d
JNZ 0x0015a106
LEA R14,[RBX + 0x50]
MOV RDI,R14
MOV ESI,0x2d
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
LEA ECX,[RAX + -0x31]
CMP ECX,0x9
JNC 0x0015a0a7
MOV EAX,dword ptr [RBX + 0x14]
MOV EBP,0x6
JMP 0x00159de9
LAB_00159f46:
LEA RDI,[RBX + 0x50]
MOV ESI,0x30
CALL 0x0011b750
MOV EBP,0x5
LAB_00159f59:
MOV RDI,RBX
CALL 0x0011c2d2
CMP EAX,0x65
JZ 0x00159fd0
CMP EAX,0x45
JZ 0x00159fd0
CMP EAX,0x2e
JNZ 0x00159e31
LEA R14,[RBX + 0x50]
LAB_00159f78:
MOVSX ESI,byte ptr [RBX + 0x90]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
ADD EAX,-0x30
CMP EAX,0x9
JA 0x00159fc7
LEA R14,[RBX + 0x50]
LAB_00159f9b:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x00159f9b
CMP EAX,0x65
JZ 0x00159fd4
CMP EAX,0x45
JNZ 0x0015a05b
JMP 0x00159fd4
LAB_00159fc7:
LEA RAX,[0x1eea0a]
JMP 0x0015a005
LAB_00159fd0:
LEA R14,[RBX + 0x50]
LAB_00159fd4:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
LEA ECX,[RAX + -0x30]
CMP ECX,0xa
JC 0x0015a01b
CMP EAX,0x2d
JZ 0x0015a07b
CMP EAX,0x2b
JZ 0x0015a07b
LEA RAX,[0x1eea33]
LAB_0015a005:
MOV qword ptr [RBX + 0x70],RAX
MOV ECX,0xe
LAB_0015a00e:
MOV EAX,ECX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0015a01b:
LEA R14,[RBX + 0x50]
LAB_0015a01f:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
ADD EAX,-0x30
CMP EAX,0x9
JA 0x0015a05b
LEA R14,[RBX + 0x50]
LAB_0015a03f:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
ADD EAX,-0x30
CMP EAX,0xa
JC 0x0015a03f
LAB_0015a05b:
MOV RDI,RBX
CALL 0x0015a128
MOV qword ptr [RSP],0x0
CALL 0x0011b060
MOV dword ptr [RAX],0x0
JMP 0x00159ea7
LAB_0015a07b:
MOVSX ESI,byte ptr [RBX + 0x14]
LEA R14,[RBX + 0x50]
MOV RDI,R14
CALL 0x0011b750
MOV RDI,RBX
CALL 0x0011c2d2
ADD EAX,-0x30
CMP EAX,0xa
JC 0x0015a01f
LEA RAX,[0x1eea6e]
JMP 0x0015a005
LAB_0015a0a7:
CMP EAX,0x30
JZ 0x0015a0b8
LEA RAX,[0x1ee9e1]
JMP 0x0015a005
LAB_0015a0b8:
MOVSX ESI,byte ptr [RBX + 0x14]
MOV RDI,R14
CALL 0x0011b750
MOV EBP,0x6
JMP 0x00159f59
LAB_0015a0ce:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eeaa1]
MOV ESI,0x21b5
JMP 0x0015a120
LAB_0015a0ea:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eeaa1]
MOV ESI,0x21c5
JMP 0x0015a120
LAB_0015a106:
LEA RDI,[0x1edc39]
LEA RDX,[0x1edc83]
LEA RCX,[0x1eb733]
MOV ESI,0x20be
LAB_0015a120:
XOR EAX,EAX
CALL 0x0011be90
|
/* 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() */
int8 __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;
int8 uVar6;
char *pcVar7;
long lVar8;
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_00159de9:
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_00159f78:
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (9 < iVar3 - 0x30U) {
pcVar7 = "invalid number; expected digit after \'.\'";
goto LAB_0015a005;
}
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
} while (iVar3 - 0x30U < 10);
if ((iVar3 == 0x65) || (iVar3 == 0x45)) goto LAB_00159fd4;
goto LAB_0015a05b;
}
if ((iVar2 == 0x45) || (iVar2 == 0x65)) goto LAB_00159fd4;
LAB_00159e31:
unget(this);
local_28 = (char *)0x0;
piVar4 = __errno_location();
*piVar4 = 0;
if (iVar3 == 5) {
uVar5 = strtoull(*(char **)(this + 0x50),&local_28,10);
if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) {
pcVar7 = "endptr == token_buffer.data() + token_buffer.size()";
uVar6 = 0x21b5;
goto LAB_0015a120;
}
if (*piVar4 == 0) {
uVar6 = 5;
lVar8 = 0x80;
LAB_00159efd:
*(ulonglong *)(this + lVar8) = uVar5;
return uVar6;
}
}
else {
uVar5 = strtoll(*(char **)(this + 0x50),&local_28,10);
if (local_28 != (char *)(*(long *)(this + 0x50) + *(long *)(this + 0x58))) {
pcVar7 = "endptr == token_buffer.data() + token_buffer.size()";
uVar6 = 0x21c5;
goto LAB_0015a120;
}
if (*piVar4 == 0) {
uVar6 = 6;
lVar8 = 0x78;
goto LAB_00159efd;
}
}
}
else {
if (iVar3 == 0x30) {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = 5;
}
else {
if (iVar3 != 0x2d) {
pcVar7 = "false";
uVar6 = 0x20be;
goto LAB_0015a120;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (iVar3 - 0x31U < 9) {
iVar3 = 6;
goto LAB_00159de9;
}
if (iVar3 != 0x30) {
pcVar7 = "invalid number; expected digit after \'-\'";
goto LAB_0015a005;
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = 6;
}
iVar2 = get(this);
if ((iVar2 != 0x65) && (iVar2 != 0x45)) {
if (iVar2 != 0x2e) goto LAB_00159e31;
goto LAB_00159f78;
}
LAB_00159fd4:
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_0015a005:
*(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_0015a005;
}
}
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
if (iVar3 - 0x30U < 10) {
do {
std::__cxx11::string::push_back(cVar1 + 'P');
iVar3 = get(this);
} while (iVar3 - 0x30U < 10);
}
LAB_0015a05b:
unget(this);
local_28 = (char *)0x0;
piVar4 = __errno_location();
*piVar4 = 0;
}
dVar9 = strtod(*(char **)(this + 0x50),&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()";
uVar6 = 0x21d6;
LAB_0015a120:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",uVar6,
"GGML_ASSERT(%s) failed",pcVar7);
}
| |
52,256 | int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<float>(float*) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp | int
Tessellation::GetBoundaryCoords(REAL coordBuffer[]) const {
Coord2Array<REAL> coords(coordBuffer, _coordStride);
switch (_param.GetType()) {
case Parameterization::QUAD:
return quad::GetBoundaryCoords(_outerRates, coords);
case Parameterization::TRI:
return tri::GetBoundaryCoords(_outerRates, coords);
case Parameterization::QUAD_SUBFACES:
return qsub::GetBoundaryCoords(_param, _outerRates, coords);
default:
assert(0);
}
return -1;
} | O1 | cpp | int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<float>(float*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r11
movl 0xc(%rdi), %ebx
movzbl (%rdi), %ecx
cmpl $0x2, %ecx
je 0xa1f14
movslq %ebx, %rax
cmpl $0x1, %ecx
je 0xa1e27
testl %ecx, %ecx
jne 0xa1fa4
movq 0x28(%rdi), %rcx
movslq (%rcx), %rdx
movsd 0x127f9(%rip), %xmm0 # 0xb44e8
testq %rdx, %rdx
jle 0xa1d2b
cvtsi2sd %edx, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11), %rsi
leaq (,%rax,8), %rdi
xorpd %xmm2, %xmm2
movq %rdx, %r8
movsd %xmm2, -0x8(%rsi)
movq $0x0, (%rsi)
addsd %xmm1, %xmm2
addq %rdi, %rsi
decq %r8
jne 0xa1d13
movslq 0x4(%rcx), %rsi
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
testq %rsi, %rsi
jle 0xa1d83
movl %edx, %r8d
imull %ebx, %r8d
movslq %r8d, %r8
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%r8,8), %r8
addq $0x8, %r8
leaq (,%rax,8), %r9
xorpd %xmm2, %xmm2
movq %rsi, %r10
movq %rdi, -0x8(%r8)
movsd %xmm2, (%r8)
addsd %xmm1, %xmm2
addq %r9, %r8
decq %r10
jne 0xa1d6e
addl %esi, %edx
movslq 0x8(%rcx), %rsi
testq %rsi, %rsi
jle 0xa1dd7
movl %edx, %r8d
imull %ebx, %r8d
movslq %r8d, %r8
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%r8,8), %r8
addq $0x8, %r8
leaq (,%rax,8), %r9
movsd 0x12729(%rip), %xmm2 # 0xb44e8
movq %rsi, %r10
movsd %xmm2, -0x8(%r8)
movq %rdi, (%r8)
subsd %xmm1, %xmm2
addq %r9, %r8
decq %r10
jne 0xa1dc2
addl %edx, %esi
movslq 0xc(%rcx), %r14
testq %r14, %r14
jle 0xa1e1f
imull %esi, %ebx
movslq %ebx, %rcx
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%rcx,8), %rcx
addq $0x8, %rcx
shlq $0x3, %rax
movq %r14, %rdx
movq $0x0, -0x8(%rcx)
movsd %xmm0, (%rcx)
subsd %xmm1, %xmm0
addq %rax, %rcx
decq %rdx
jne 0xa1e07
addl %esi, %r14d
jmp 0xa1f92
movq 0x28(%rdi), %rdx
movslq (%rdx), %rcx
movsd 0x126b2(%rip), %xmm0 # 0xb44e8
testq %rcx, %rcx
jle 0xa1e72
cvtsi2sd %ecx, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11), %rsi
leaq (,%rax,8), %rdi
xorpd %xmm2, %xmm2
movq %rcx, %r8
movsd %xmm2, -0x8(%rsi)
movq $0x0, (%rsi)
addsd %xmm1, %xmm2
addq %rdi, %rsi
decq %r8
jne 0xa1e5a
movslq 0x4(%rdx), %rsi
testq %rsi, %rsi
jle 0xa1ec7
movl %ecx, %edi
imull %ebx, %edi
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movslq %edi, %rdi
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11,%rdi,8), %rdi
leaq (,%rax,8), %r8
xorpd %xmm2, %xmm2
movsd 0x1263d(%rip), %xmm3 # 0xb44e8
movq %rsi, %r9
movsd %xmm3, -0x8(%rdi)
movsd %xmm2, (%rdi)
subsd %xmm1, %xmm3
addsd %xmm1, %xmm2
addq %r8, %rdi
decq %r9
jne 0xa1eae
addl %esi, %ecx
movslq 0x8(%rdx), %r14
testq %r14, %r14
jle 0xa1f0f
imull %ecx, %ebx
movslq %ebx, %rdx
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%rdx,8), %rdx
addq $0x8, %rdx
shlq $0x3, %rax
movq %r14, %rsi
movq $0x0, -0x8(%rdx)
movsd %xmm0, (%rdx)
subsd %xmm1, %xmm0
addq %rax, %rdx
decq %rsi
jne 0xa1ef7
addl %ecx, %r14d
jmp 0xa1f92
movl (%rdi), %r13d
xorl %r14d, %r14d
cmpq $0x10000, %r13 # imm = 0x10000
jb 0xa1f92
movq 0x28(%rdi), %rax
movq %rax, (%rsp)
movl %r13d, %r15d
shrl $0x10, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movq (%rsp), %rax
movl (%rax,%r12,4), %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd 0x12599(%rip), %xmm1 # 0xb44e8
divsd %xmm0, %xmm1
movl %r14d, %eax
imull %ebx, %eax
cltq
leaq (%r11,%rax,8), %rax
movq %rax, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
xorpd %xmm0, %xmm0
movl %r13d, %edi
movl %r12d, %esi
movl $0x1, %ecx
leaq 0x8(%rsp), %r8
movq %r11, %rbp
callq 0xa17f6
movq %rbp, %r11
addl %eax, %r14d
incq %r12
cmpq %r12, %r15
jne 0xa1f38
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1008e(%rip), %rdi # 0xb2039
leaq 0x1fcde(%rip), %rsi # 0xc1c90
leaq 0x1fd8f(%rip), %rcx # 0xc1d48
movl $0x922, %edx # imm = 0x922
callq 0x39560
nop
| _ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation17GetBoundaryCoordsIdEEiPT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r11, rsi
mov ebx, [rdi+0Ch]
movzx ecx, byte ptr [rdi]
cmp ecx, 2
jz loc_A1F14
movsxd rax, ebx
cmp ecx, 1
jz loc_A1E27
test ecx, ecx
jnz loc_A1FA4
mov rcx, [rdi+28h]
movsxd rdx, dword ptr [rcx]
movsd xmm0, cs:qword_B44E8
test rdx, rdx
jle short loc_A1D2B
cvtsi2sd xmm2, edx
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rsi, [r11+8]
lea rdi, ds:0[rax*8]
xorpd xmm2, xmm2
mov r8, rdx
loc_A1D13:
movsd qword ptr [rsi-8], xmm2
mov qword ptr [rsi], 0
addsd xmm2, xmm1
add rsi, rdi
dec r8
jnz short loc_A1D13
loc_A1D2B:
movsxd rsi, dword ptr [rcx+4]
mov rdi, 3FF0000000000000h
test rsi, rsi
jle short loc_A1D83
mov r8d, edx
imul r8d, ebx
movsxd r8, r8d
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea r8, [r11+r8*8]
add r8, 8
lea r9, ds:0[rax*8]
xorpd xmm2, xmm2
mov r10, rsi
loc_A1D6E:
mov [r8-8], rdi
movsd qword ptr [r8], xmm2
addsd xmm2, xmm1
add r8, r9
dec r10
jnz short loc_A1D6E
loc_A1D83:
add edx, esi
movsxd rsi, dword ptr [rcx+8]
test rsi, rsi
jle short loc_A1DD7
mov r8d, edx
imul r8d, ebx
movsxd r8, r8d
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea r8, [r11+r8*8]
add r8, 8
lea r9, ds:0[rax*8]
movsd xmm2, cs:qword_B44E8
mov r10, rsi
loc_A1DC2:
movsd qword ptr [r8-8], xmm2
mov [r8], rdi
subsd xmm2, xmm1
add r8, r9
dec r10
jnz short loc_A1DC2
loc_A1DD7:
add esi, edx
movsxd r14, dword ptr [rcx+0Ch]
test r14, r14
jle short loc_A1E1F
imul ebx, esi
movsxd rcx, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, r14d
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rcx, [r11+rcx*8]
add rcx, 8
shl rax, 3
mov rdx, r14
loc_A1E07:
mov qword ptr [rcx-8], 0
movsd qword ptr [rcx], xmm0
subsd xmm0, xmm1
add rcx, rax
dec rdx
jnz short loc_A1E07
loc_A1E1F:
add r14d, esi
jmp loc_A1F92
loc_A1E27:
mov rdx, [rdi+28h]
movsxd rcx, dword ptr [rdx]
movsd xmm0, cs:qword_B44E8
test rcx, rcx
jle short loc_A1E72
cvtsi2sd xmm2, ecx
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rsi, [r11+8]
lea rdi, ds:0[rax*8]
xorpd xmm2, xmm2
mov r8, rcx
loc_A1E5A:
movsd qword ptr [rsi-8], xmm2
mov qword ptr [rsi], 0
addsd xmm2, xmm1
add rsi, rdi
dec r8
jnz short loc_A1E5A
loc_A1E72:
movsxd rsi, dword ptr [rdx+4]
test rsi, rsi
jle short loc_A1EC7
mov edi, ecx
imul edi, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movsxd rdi, edi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rdi, [r11+rdi*8+8]
lea r8, ds:0[rax*8]
xorpd xmm2, xmm2
movsd xmm3, cs:qword_B44E8
mov r9, rsi
loc_A1EAE:
movsd qword ptr [rdi-8], xmm3
movsd qword ptr [rdi], xmm2
subsd xmm3, xmm1
addsd xmm2, xmm1
add rdi, r8
dec r9
jnz short loc_A1EAE
loc_A1EC7:
add ecx, esi
movsxd r14, dword ptr [rdx+8]
test r14, r14
jle short loc_A1F0F
imul ebx, ecx
movsxd rdx, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, r14d
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rdx, [r11+rdx*8]
add rdx, 8
shl rax, 3
mov rsi, r14
loc_A1EF7:
mov qword ptr [rdx-8], 0
movsd qword ptr [rdx], xmm0
subsd xmm0, xmm1
add rdx, rax
dec rsi
jnz short loc_A1EF7
loc_A1F0F:
add r14d, ecx
jmp short loc_A1F92
loc_A1F14:
mov r13d, [rdi]
xor r14d, r14d
cmp r13, 10000h
jb short loc_A1F92
mov rax, [rdi+28h]
mov [rsp+48h+var_48], rax
mov r15d, r13d
shr r15d, 10h
xor r12d, r12d
xor r14d, r14d
loc_A1F38:
mov rax, [rsp+48h+var_48]
mov edx, [rax+r12*4]
xorps xmm0, xmm0
cvtsi2sd xmm0, edx
movsd xmm1, cs:qword_B44E8
divsd xmm1, xmm0
mov eax, r14d
imul eax, ebx
cdqe
lea rax, [r11+rax*8]
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_38], ebx
xorpd xmm0, xmm0
mov edi, r13d
mov esi, r12d
mov ecx, 1
lea r8, [rsp+48h+var_40]
mov rbp, r11
call _ZN10OpenSubdiv6v3_6_03Bfr4qsub17getRingEdgeCoordsIdEEiNS1_16ParameterizationEiibbT_S5_NS1_12_GLOBAL__N_111Coord2ArrayIS5_EE; OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,bool,bool,double,double,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>)
mov r11, rbp
add r14d, eax
inc r12
cmp r15, r12
jnz short loc_A1F38
loc_A1F92:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A1FA4:
lea rdi, aVspanSize0+0Fh; "0"
lea rsi, aWorkspaceLlm4b_47; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntOpensubdivV_39; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"...
mov edx, 922h
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(unsigned __int8 *a1, long long a2)
{
long long v2; // r11
int v3; // ebx
int v4; // ecx
int *v5; // rcx
long long v6; // rdx
double v7; // xmm0_8
double *v8; // rsi
double v9; // xmm2_8
long long v10; // r8
long long v11; // rsi
double *v12; // r8
double v13; // xmm2_8
long long v14; // r10
int v15; // edx
long long v16; // rsi
double *v17; // r8
double v18; // xmm2_8
long long v19; // r10
int v20; // esi
long long v21; // r14
double *v22; // rcx
long long v23; // rdx
unsigned int v24; // r14d
int *v25; // rdx
long long v26; // rcx
double v27; // xmm0_8
double *v28; // rsi
double v29; // xmm2_8
long long v30; // r8
long long v31; // rsi
double v32; // xmm1_8
double *v33; // rdi
double v34; // xmm2_8
double v35; // xmm3_8
long long v36; // r9
int v37; // ecx
long long v38; // r14
double *v39; // rdx
long long v40; // rsi
unsigned long long v41; // r13
long long v42; // r12
int v43; // edx
long long v44; // rbp
int RingEdge; // eax
long long v47; // [rsp+0h] [rbp-48h]
long long v48; // [rsp+8h] [rbp-40h] BYREF
int v49; // [rsp+10h] [rbp-38h]
v2 = a2;
v3 = *((_DWORD *)a1 + 3);
v4 = *a1;
if ( v4 == 2 )
{
v41 = *(unsigned int *)a1;
v24 = 0;
if ( v41 >= 0x10000 )
{
v47 = *((_QWORD *)a1 + 5);
v42 = 0LL;
v24 = 0;
do
{
v43 = *(_DWORD *)(v47 + 4 * v42);
v48 = v2 + 8LL * (int)(v3 * v24);
v49 = v3;
v44 = v2;
RingEdge = OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(
v41,
v42,
v43,
1u,
(long long)&v48,
0.0,
1.0 / (double)v43);
v2 = v44;
v24 += RingEdge;
++v42;
}
while ( WORD1(v41) != v42 );
}
}
else if ( v4 == 1 )
{
v25 = (int *)*((_QWORD *)a1 + 5);
v26 = *v25;
v27 = 1.0;
if ( v26 > 0 )
{
v28 = (double *)(a2 + 8);
v29 = 0.0;
v30 = *v25;
do
{
*(v28 - 1) = v29;
*v28 = 0.0;
v29 = v29 + 1.0 / (double)(int)v26;
v28 += v3;
--v30;
}
while ( v30 );
}
v31 = v25[1];
if ( v31 > 0 )
{
v32 = 1.0 / (double)(int)v31;
v33 = (double *)(v2 + 8LL * v3 * (int)v26 + 8);
v34 = 0.0;
v35 = 1.0;
v36 = v25[1];
do
{
*(v33 - 1) = v35;
*v33 = v34;
v35 = v35 - v32;
v34 = v34 + v32;
v33 += v3;
--v36;
}
while ( v36 );
}
v37 = v31 + v26;
v38 = v25[2];
if ( v38 > 0 )
{
v39 = (double *)(v2 + 8LL * v37 * v3 + 8);
v40 = v38;
do
{
*(v39 - 1) = 0.0;
*v39 = v27;
v27 = v27 - 1.0 / (double)(int)v38;
v39 += v3;
--v40;
}
while ( v40 );
}
return (unsigned int)(v37 + v38);
}
else
{
if ( *a1 )
__assert_fail(
"0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp",
2338LL,
"int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords(REAL *) const [REAL = double]");
v5 = (int *)*((_QWORD *)a1 + 5);
v6 = *v5;
v7 = 1.0;
if ( v6 > 0 )
{
v8 = (double *)(a2 + 8);
v9 = 0.0;
v10 = *v5;
do
{
*(v8 - 1) = v9;
*v8 = 0.0;
v9 = v9 + 1.0 / (double)(int)v6;
v8 += v3;
--v10;
}
while ( v10 );
}
v11 = v5[1];
if ( v11 > 0 )
{
v12 = (double *)(v2 + 8LL * v3 * (int)v6 + 8);
v13 = 0.0;
v14 = v5[1];
do
{
*(v12 - 1) = 1.0;
*v12 = v13;
v13 = v13 + 1.0 / (double)(int)v11;
v12 += v3;
--v14;
}
while ( v14 );
}
v15 = v11 + v6;
v16 = v5[2];
if ( v16 > 0 )
{
v17 = (double *)(v2 + 8LL * v3 * v15 + 8);
v18 = 1.0;
v19 = v5[2];
do
{
*(v17 - 1) = v18;
*v17 = 1.0;
v18 = v18 - 1.0 / (double)(int)v16;
v17 += v3;
--v19;
}
while ( v19 );
}
v20 = v15 + v16;
v21 = v5[3];
if ( v21 > 0 )
{
v22 = (double *)(v2 + 8LL * v20 * v3 + 8);
v23 = v21;
do
{
*(v22 - 1) = 0.0;
*v22 = v7;
v7 = v7 - 1.0 / (double)(int)v21;
v22 += v3;
--v23;
}
while ( v23 );
}
return (unsigned int)(v20 + v21);
}
return v24;
}
| GetBoundaryCoords<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R11,RSI
MOV EBX,dword ptr [RDI + 0xc]
MOVZX ECX,byte ptr [RDI]
CMP ECX,0x2
JZ 0x001a1f14
MOVSXD RAX,EBX
CMP ECX,0x1
JZ 0x001a1e27
TEST ECX,ECX
JNZ 0x001a1fa4
MOV RCX,qword ptr [RDI + 0x28]
MOVSXD RDX,dword ptr [RCX]
MOVSD XMM0,qword ptr [0x001b44e8]
TEST RDX,RDX
JLE 0x001a1d2b
CVTSI2SD XMM2,EDX
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RSI,[R11 + 0x8]
LEA RDI,[RAX*0x8]
XORPD XMM2,XMM2
MOV R8,RDX
LAB_001a1d13:
MOVSD qword ptr [RSI + -0x8],XMM2
MOV qword ptr [RSI],0x0
ADDSD XMM2,XMM1
ADD RSI,RDI
DEC R8
JNZ 0x001a1d13
LAB_001a1d2b:
MOVSXD RSI,dword ptr [RCX + 0x4]
MOV RDI,0x3ff0000000000000
TEST RSI,RSI
JLE 0x001a1d83
MOV R8D,EDX
IMUL R8D,EBX
MOVSXD R8,R8D
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA R8,[R11 + R8*0x8]
ADD R8,0x8
LEA R9,[RAX*0x8]
XORPD XMM2,XMM2
MOV R10,RSI
LAB_001a1d6e:
MOV qword ptr [R8 + -0x8],RDI
MOVSD qword ptr [R8],XMM2
ADDSD XMM2,XMM1
ADD R8,R9
DEC R10
JNZ 0x001a1d6e
LAB_001a1d83:
ADD EDX,ESI
MOVSXD RSI,dword ptr [RCX + 0x8]
TEST RSI,RSI
JLE 0x001a1dd7
MOV R8D,EDX
IMUL R8D,EBX
MOVSXD R8,R8D
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA R8,[R11 + R8*0x8]
ADD R8,0x8
LEA R9,[RAX*0x8]
MOVSD XMM2,qword ptr [0x001b44e8]
MOV R10,RSI
LAB_001a1dc2:
MOVSD qword ptr [R8 + -0x8],XMM2
MOV qword ptr [R8],RDI
SUBSD XMM2,XMM1
ADD R8,R9
DEC R10
JNZ 0x001a1dc2
LAB_001a1dd7:
ADD ESI,EDX
MOVSXD R14,dword ptr [RCX + 0xc]
TEST R14,R14
JLE 0x001a1e1f
IMUL EBX,ESI
MOVSXD RCX,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,R14D
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RCX,[R11 + RCX*0x8]
ADD RCX,0x8
SHL RAX,0x3
MOV RDX,R14
LAB_001a1e07:
MOV qword ptr [RCX + -0x8],0x0
MOVSD qword ptr [RCX],XMM0
SUBSD XMM0,XMM1
ADD RCX,RAX
DEC RDX
JNZ 0x001a1e07
LAB_001a1e1f:
ADD R14D,ESI
JMP 0x001a1f92
LAB_001a1e27:
MOV RDX,qword ptr [RDI + 0x28]
MOVSXD RCX,dword ptr [RDX]
MOVSD XMM0,qword ptr [0x001b44e8]
TEST RCX,RCX
JLE 0x001a1e72
CVTSI2SD XMM2,ECX
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RSI,[R11 + 0x8]
LEA RDI,[RAX*0x8]
XORPD XMM2,XMM2
MOV R8,RCX
LAB_001a1e5a:
MOVSD qword ptr [RSI + -0x8],XMM2
MOV qword ptr [RSI],0x0
ADDSD XMM2,XMM1
ADD RSI,RDI
DEC R8
JNZ 0x001a1e5a
LAB_001a1e72:
MOVSXD RSI,dword ptr [RDX + 0x4]
TEST RSI,RSI
JLE 0x001a1ec7
MOV EDI,ECX
IMUL EDI,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVSXD RDI,EDI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RDI,[R11 + RDI*0x8 + 0x8]
LEA R8,[RAX*0x8]
XORPD XMM2,XMM2
MOVSD XMM3,qword ptr [0x001b44e8]
MOV R9,RSI
LAB_001a1eae:
MOVSD qword ptr [RDI + -0x8],XMM3
MOVSD qword ptr [RDI],XMM2
SUBSD XMM3,XMM1
ADDSD XMM2,XMM1
ADD RDI,R8
DEC R9
JNZ 0x001a1eae
LAB_001a1ec7:
ADD ECX,ESI
MOVSXD R14,dword ptr [RDX + 0x8]
TEST R14,R14
JLE 0x001a1f0f
IMUL EBX,ECX
MOVSXD RDX,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,R14D
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RDX,[R11 + RDX*0x8]
ADD RDX,0x8
SHL RAX,0x3
MOV RSI,R14
LAB_001a1ef7:
MOV qword ptr [RDX + -0x8],0x0
MOVSD qword ptr [RDX],XMM0
SUBSD XMM0,XMM1
ADD RDX,RAX
DEC RSI
JNZ 0x001a1ef7
LAB_001a1f0f:
ADD R14D,ECX
JMP 0x001a1f92
LAB_001a1f14:
MOV R13D,dword ptr [RDI]
XOR R14D,R14D
CMP R13,0x10000
JC 0x001a1f92
MOV RAX,qword ptr [RDI + 0x28]
MOV qword ptr [RSP],RAX
MOV R15D,R13D
SHR R15D,0x10
XOR R12D,R12D
XOR R14D,R14D
LAB_001a1f38:
MOV RAX,qword ptr [RSP]
MOV EDX,dword ptr [RAX + R12*0x4]
XORPS XMM0,XMM0
CVTSI2SD XMM0,EDX
MOVSD XMM1,qword ptr [0x001b44e8]
DIVSD XMM1,XMM0
MOV EAX,R14D
IMUL EAX,EBX
CDQE
LEA RAX,[R11 + RAX*0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x10],EBX
XORPD XMM0,XMM0
MOV EDI,R13D
MOV ESI,R12D
MOV ECX,0x1
LEA R8,[RSP + 0x8]
MOV RBP,R11
CALL 0x001a17f6
MOV R11,RBP
ADD R14D,EAX
INC R12
CMP R15,R12
JNZ 0x001a1f38
LAB_001a1f92:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a1fa4:
LEA RDI,[0x1b2039]
LEA RSI,[0x1c1c90]
LEA RCX,[0x1c1d48]
MOV EDX,0x922
CALL 0x00139560
|
/* int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(double*) const */
int __thiscall
OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(Tessellation *this,double *param_1)
{
Tessellation TVar1;
int iVar2;
uint uVar3;
int *piVar4;
int iVar5;
double *pdVar6;
long lVar7;
int iVar8;
ulong uVar9;
int iVar10;
double dVar11;
double dVar12;
double dVar13;
double *local_40;
int local_38;
dVar11 = DAT_001b44e8;
iVar2 = *(int *)(this + 0xc);
TVar1 = *this;
if (TVar1 == (Tessellation)0x2) {
uVar3 = *(uint *)this;
iVar10 = 0;
if (0xffff < uVar3) {
lVar7 = *(long *)(this + 0x28);
uVar9 = 0;
iVar10 = 0;
do {
iVar5 = *(int *)(lVar7 + uVar9 * 4);
local_40 = param_1 + iVar10 * iVar2;
local_38 = iVar2;
iVar5 = qsub::getRingEdgeCoords<double>
(0,DAT_001b44e8 / (double)iVar5,uVar3,uVar9 & 0xffffffff,iVar5,1,&local_40
);
iVar10 = iVar10 + iVar5;
uVar9 = uVar9 + 1;
} while (uVar3 >> 0x10 != uVar9);
}
}
else if (TVar1 == (Tessellation)0x1) {
piVar4 = *(int **)(this + 0x28);
iVar5 = *piVar4;
lVar7 = (long)iVar5;
if (0 < lVar7) {
dVar12 = DAT_001b44e8 / (double)iVar5;
pdVar6 = param_1 + 1;
dVar13 = 0.0;
do {
pdVar6[-1] = dVar13;
*pdVar6 = 0.0;
dVar13 = dVar13 + dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = piVar4[1];
lVar7 = (long)iVar8;
if (0 < lVar7) {
pdVar6 = param_1 + (long)(iVar5 * iVar2) + 1;
dVar13 = 0.0;
dVar12 = DAT_001b44e8;
do {
pdVar6[-1] = dVar12;
*pdVar6 = dVar13;
dVar12 = dVar12 - dVar11 / (double)iVar8;
dVar13 = dVar13 + dVar11 / (double)iVar8;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = piVar4[2];
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = dVar11 / (double)iVar10;
pdVar6 = param_1 + (long)(iVar2 * (iVar5 + iVar8)) + 1;
do {
pdVar6[-1] = 0.0;
*pdVar6 = dVar11;
dVar11 = dVar11 - dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = iVar10 + iVar5 + iVar8;
}
else {
if (TVar1 != (Tessellation)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp"
,0x922,
"int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords(REAL *) const [REAL = double]"
);
}
piVar4 = *(int **)(this + 0x28);
iVar10 = *piVar4;
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = DAT_001b44e8 / (double)iVar10;
pdVar6 = param_1 + 1;
dVar13 = 0.0;
do {
pdVar6[-1] = dVar13;
*pdVar6 = 0.0;
dVar13 = dVar13 + dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar5 = piVar4[1];
lVar7 = (long)iVar5;
if (0 < lVar7) {
pdVar6 = param_1 + (long)(iVar10 * iVar2) + 1;
dVar12 = 0.0;
do {
pdVar6[-1] = 1.0;
*pdVar6 = dVar12;
dVar12 = dVar12 + dVar11 / (double)iVar5;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = piVar4[2];
lVar7 = (long)iVar8;
if (0 < lVar7) {
pdVar6 = param_1 + (long)((iVar10 + iVar5) * iVar2) + 1;
dVar12 = DAT_001b44e8;
do {
pdVar6[-1] = dVar12;
*pdVar6 = 1.0;
dVar12 = dVar12 - dVar11 / (double)iVar8;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = iVar8 + iVar10 + iVar5;
iVar10 = piVar4[3];
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = dVar11 / (double)iVar10;
pdVar6 = param_1 + (long)(iVar2 * iVar8) + 1;
do {
pdVar6[-1] = 0.0;
*pdVar6 = dVar11;
dVar11 = dVar11 - dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = iVar10 + iVar8;
}
return iVar10;
}
| |
52,257 | int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<float>(float*) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp | int
Tessellation::GetBoundaryCoords(REAL coordBuffer[]) const {
Coord2Array<REAL> coords(coordBuffer, _coordStride);
switch (_param.GetType()) {
case Parameterization::QUAD:
return quad::GetBoundaryCoords(_outerRates, coords);
case Parameterization::TRI:
return tri::GetBoundaryCoords(_outerRates, coords);
case Parameterization::QUAD_SUBFACES:
return qsub::GetBoundaryCoords(_param, _outerRates, coords);
default:
assert(0);
}
return -1;
} | O3 | cpp | int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<float>(float*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r11
movl 0xc(%rdi), %ebx
movzbl (%rdi), %ecx
cmpl $0x2, %ecx
je 0xa4930
movslq %ebx, %rax
cmpl $0x1, %ecx
je 0xa4843
testl %ecx, %ecx
jne 0xa49c0
movq 0x28(%rdi), %rcx
movslq (%rcx), %rdx
movsd 0x12e8d(%rip), %xmm0 # 0xb7598
testq %rdx, %rdx
jle 0xa4747
cvtsi2sd %edx, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11), %rsi
leaq (,%rax,8), %rdi
xorpd %xmm2, %xmm2
movq %rdx, %r8
movsd %xmm2, -0x8(%rsi)
movq $0x0, (%rsi)
addsd %xmm1, %xmm2
addq %rdi, %rsi
decq %r8
jne 0xa472f
movslq 0x4(%rcx), %rsi
movabsq $0x3ff0000000000000, %rdi # imm = 0x3FF0000000000000
testq %rsi, %rsi
jle 0xa479f
movl %edx, %r8d
imull %ebx, %r8d
movslq %r8d, %r8
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%r8,8), %r8
addq $0x8, %r8
leaq (,%rax,8), %r9
xorpd %xmm2, %xmm2
movq %rsi, %r10
movq %rdi, -0x8(%r8)
movsd %xmm2, (%r8)
addsd %xmm1, %xmm2
addq %r9, %r8
decq %r10
jne 0xa478a
addl %esi, %edx
movslq 0x8(%rcx), %rsi
testq %rsi, %rsi
jle 0xa47f3
movl %edx, %r8d
imull %ebx, %r8d
movslq %r8d, %r8
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%r8,8), %r8
addq $0x8, %r8
leaq (,%rax,8), %r9
movsd 0x12dbd(%rip), %xmm2 # 0xb7598
movq %rsi, %r10
movsd %xmm2, -0x8(%r8)
movq %rdi, (%r8)
subsd %xmm1, %xmm2
addq %r9, %r8
decq %r10
jne 0xa47de
addl %edx, %esi
movslq 0xc(%rcx), %r14
testq %r14, %r14
jle 0xa483b
imull %esi, %ebx
movslq %ebx, %rcx
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%rcx,8), %rcx
addq $0x8, %rcx
shlq $0x3, %rax
movq %r14, %rdx
movq $0x0, -0x8(%rcx)
movsd %xmm0, (%rcx)
subsd %xmm1, %xmm0
addq %rax, %rcx
decq %rdx
jne 0xa4823
addl %esi, %r14d
jmp 0xa49ae
movq 0x28(%rdi), %rdx
movslq (%rdx), %rcx
movsd 0x12d46(%rip), %xmm0 # 0xb7598
testq %rcx, %rcx
jle 0xa488e
cvtsi2sd %ecx, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11), %rsi
leaq (,%rax,8), %rdi
xorpd %xmm2, %xmm2
movq %rcx, %r8
movsd %xmm2, -0x8(%rsi)
movq $0x0, (%rsi)
addsd %xmm1, %xmm2
addq %rdi, %rsi
decq %r8
jne 0xa4876
movslq 0x4(%rdx), %rsi
testq %rsi, %rsi
jle 0xa48e3
movl %ecx, %edi
imull %ebx, %edi
xorps %xmm2, %xmm2
cvtsi2sd %esi, %xmm2
movslq %edi, %rdi
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq 0x8(%r11,%rdi,8), %rdi
leaq (,%rax,8), %r8
xorpd %xmm2, %xmm2
movsd 0x12cd1(%rip), %xmm3 # 0xb7598
movq %rsi, %r9
movsd %xmm3, -0x8(%rdi)
movsd %xmm2, (%rdi)
subsd %xmm1, %xmm3
addsd %xmm1, %xmm2
addq %r8, %rdi
decq %r9
jne 0xa48ca
addl %esi, %ecx
movslq 0x8(%rdx), %r14
testq %r14, %r14
jle 0xa492b
imull %ecx, %ebx
movslq %ebx, %rdx
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
movapd %xmm0, %xmm1
divsd %xmm2, %xmm1
leaq (%r11,%rdx,8), %rdx
addq $0x8, %rdx
shlq $0x3, %rax
movq %r14, %rsi
movq $0x0, -0x8(%rdx)
movsd %xmm0, (%rdx)
subsd %xmm1, %xmm0
addq %rax, %rdx
decq %rsi
jne 0xa4913
addl %ecx, %r14d
jmp 0xa49ae
movl (%rdi), %r13d
xorl %r14d, %r14d
cmpq $0x10000, %r13 # imm = 0x10000
jb 0xa49ae
movq 0x28(%rdi), %rax
movq %rax, (%rsp)
movl %r13d, %r15d
shrl $0x10, %r15d
xorl %r12d, %r12d
xorl %r14d, %r14d
movq (%rsp), %rax
movl (%rax,%r12,4), %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd 0x12c2d(%rip), %xmm1 # 0xb7598
divsd %xmm0, %xmm1
movl %r14d, %eax
imull %ebx, %eax
cltq
leaq (%r11,%rax,8), %rax
movq %rax, 0x8(%rsp)
movl %ebx, 0x10(%rsp)
xorpd %xmm0, %xmm0
movl %r13d, %edi
movl %r12d, %esi
movl $0x1, %ecx
leaq 0x8(%rsp), %r8
movq %r11, %rbp
callq 0xa421e
movq %rbp, %r11
addl %eax, %r14d
incq %r12
cmpq %r12, %r15
jne 0xa4954
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x106c8(%rip), %rdi # 0xb508f
leaq 0x20b32(%rip), %rsi # 0xc5500
leaq 0x20be3(%rip), %rcx # 0xc55b8
movl $0x922, %edx # imm = 0x922
callq 0x39540
nop
| _ZNK10OpenSubdiv6v3_6_03Bfr12Tessellation17GetBoundaryCoordsIdEEiPT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r11, rsi
mov ebx, [rdi+0Ch]
movzx ecx, byte ptr [rdi]
cmp ecx, 2
jz loc_A4930
movsxd rax, ebx
cmp ecx, 1
jz loc_A4843
test ecx, ecx
jnz loc_A49C0
mov rcx, [rdi+28h]
movsxd rdx, dword ptr [rcx]
movsd xmm0, cs:qword_B7598
test rdx, rdx
jle short loc_A4747
cvtsi2sd xmm2, edx
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rsi, [r11+8]
lea rdi, ds:0[rax*8]
xorpd xmm2, xmm2
mov r8, rdx
loc_A472F:
movsd qword ptr [rsi-8], xmm2
mov qword ptr [rsi], 0
addsd xmm2, xmm1
add rsi, rdi
dec r8
jnz short loc_A472F
loc_A4747:
movsxd rsi, dword ptr [rcx+4]
mov rdi, 3FF0000000000000h
test rsi, rsi
jle short loc_A479F
mov r8d, edx
imul r8d, ebx
movsxd r8, r8d
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea r8, [r11+r8*8]
add r8, 8
lea r9, ds:0[rax*8]
xorpd xmm2, xmm2
mov r10, rsi
loc_A478A:
mov [r8-8], rdi
movsd qword ptr [r8], xmm2
addsd xmm2, xmm1
add r8, r9
dec r10
jnz short loc_A478A
loc_A479F:
add edx, esi
movsxd rsi, dword ptr [rcx+8]
test rsi, rsi
jle short loc_A47F3
mov r8d, edx
imul r8d, ebx
movsxd r8, r8d
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea r8, [r11+r8*8]
add r8, 8
lea r9, ds:0[rax*8]
movsd xmm2, cs:qword_B7598
mov r10, rsi
loc_A47DE:
movsd qword ptr [r8-8], xmm2
mov [r8], rdi
subsd xmm2, xmm1
add r8, r9
dec r10
jnz short loc_A47DE
loc_A47F3:
add esi, edx
movsxd r14, dword ptr [rcx+0Ch]
test r14, r14
jle short loc_A483B
imul ebx, esi
movsxd rcx, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, r14d
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rcx, [r11+rcx*8]
add rcx, 8
shl rax, 3
mov rdx, r14
loc_A4823:
mov qword ptr [rcx-8], 0
movsd qword ptr [rcx], xmm0
subsd xmm0, xmm1
add rcx, rax
dec rdx
jnz short loc_A4823
loc_A483B:
add r14d, esi
jmp loc_A49AE
loc_A4843:
mov rdx, [rdi+28h]
movsxd rcx, dword ptr [rdx]
movsd xmm0, cs:qword_B7598
test rcx, rcx
jle short loc_A488E
cvtsi2sd xmm2, ecx
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rsi, [r11+8]
lea rdi, ds:0[rax*8]
xorpd xmm2, xmm2
mov r8, rcx
loc_A4876:
movsd qword ptr [rsi-8], xmm2
mov qword ptr [rsi], 0
addsd xmm2, xmm1
add rsi, rdi
dec r8
jnz short loc_A4876
loc_A488E:
movsxd rsi, dword ptr [rdx+4]
test rsi, rsi
jle short loc_A48E3
mov edi, ecx
imul edi, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, esi
movsxd rdi, edi
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rdi, [r11+rdi*8+8]
lea r8, ds:0[rax*8]
xorpd xmm2, xmm2
movsd xmm3, cs:qword_B7598
mov r9, rsi
loc_A48CA:
movsd qword ptr [rdi-8], xmm3
movsd qword ptr [rdi], xmm2
subsd xmm3, xmm1
addsd xmm2, xmm1
add rdi, r8
dec r9
jnz short loc_A48CA
loc_A48E3:
add ecx, esi
movsxd r14, dword ptr [rdx+8]
test r14, r14
jle short loc_A492B
imul ebx, ecx
movsxd rdx, ebx
xorps xmm2, xmm2
cvtsi2sd xmm2, r14d
movapd xmm1, xmm0
divsd xmm1, xmm2
lea rdx, [r11+rdx*8]
add rdx, 8
shl rax, 3
mov rsi, r14
loc_A4913:
mov qword ptr [rdx-8], 0
movsd qword ptr [rdx], xmm0
subsd xmm0, xmm1
add rdx, rax
dec rsi
jnz short loc_A4913
loc_A492B:
add r14d, ecx
jmp short loc_A49AE
loc_A4930:
mov r13d, [rdi]
xor r14d, r14d
cmp r13, 10000h
jb short loc_A49AE
mov rax, [rdi+28h]
mov [rsp+48h+var_48], rax
mov r15d, r13d
shr r15d, 10h
xor r12d, r12d
xor r14d, r14d
loc_A4954:
mov rax, [rsp+48h+var_48]
mov edx, [rax+r12*4]
xorps xmm0, xmm0
cvtsi2sd xmm0, edx
movsd xmm1, cs:qword_B7598
divsd xmm1, xmm0
mov eax, r14d
imul eax, ebx
cdqe
lea rax, [r11+rax*8]
mov [rsp+48h+var_40], rax
mov [rsp+48h+var_38], ebx
xorpd xmm0, xmm0
mov edi, r13d
mov esi, r12d
mov ecx, 1
lea r8, [rsp+48h+var_40]
mov rbp, r11
call _ZN10OpenSubdiv6v3_6_03Bfr4qsub17getRingEdgeCoordsIdEEiNS1_16ParameterizationEiibbT_S5_NS1_12_GLOBAL__N_111Coord2ArrayIS5_EE; OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(OpenSubdiv::v3_6_0::Bfr::Parameterization,int,int,bool,bool,double,double,OpenSubdiv::v3_6_0::Bfr::`anonymous namespace'::Coord2Array<double>)
mov r11, rbp
add r14d, eax
inc r12
cmp r15, r12
jnz short loc_A4954
loc_A49AE:
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A49C0:
lea rdi, aVspanSize0+0Fh; "0"
lea rsi, aWorkspaceLlm4b_47; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntOpensubdivV_39; "int OpenSubdiv::v3_6_0::Bfr::Tessellati"...
mov edx, 922h
call ___assert_fail
| long long OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(unsigned __int8 *a1, long long a2)
{
long long v2; // r11
int v3; // ebx
int v4; // ecx
int *v5; // rcx
long long v6; // rdx
double v7; // xmm0_8
double *v8; // rsi
double v9; // xmm2_8
long long v10; // r8
long long v11; // rsi
double *v12; // r8
double v13; // xmm2_8
long long v14; // r10
int v15; // edx
long long v16; // rsi
double *v17; // r8
double v18; // xmm2_8
long long v19; // r10
int v20; // esi
long long v21; // r14
double *v22; // rcx
long long v23; // rdx
unsigned int v24; // r14d
int *v25; // rdx
long long v26; // rcx
double v27; // xmm0_8
double *v28; // rsi
double v29; // xmm2_8
long long v30; // r8
long long v31; // rsi
double v32; // xmm1_8
double *v33; // rdi
double v34; // xmm2_8
double v35; // xmm3_8
long long v36; // r9
int v37; // ecx
long long v38; // r14
double *v39; // rdx
long long v40; // rsi
unsigned long long v41; // r13
long long v42; // r12
int v43; // edx
long long v44; // rbp
int RingEdge; // eax
long long v47; // [rsp+0h] [rbp-48h]
long long v48; // [rsp+8h] [rbp-40h] BYREF
int v49; // [rsp+10h] [rbp-38h]
v2 = a2;
v3 = *((_DWORD *)a1 + 3);
v4 = *a1;
if ( v4 == 2 )
{
v41 = *(unsigned int *)a1;
v24 = 0;
if ( v41 >= 0x10000 )
{
v47 = *((_QWORD *)a1 + 5);
v42 = 0LL;
v24 = 0;
do
{
v43 = *(_DWORD *)(v47 + 4 * v42);
v48 = v2 + 8LL * (int)(v3 * v24);
v49 = v3;
v44 = v2;
RingEdge = OpenSubdiv::v3_6_0::Bfr::qsub::getRingEdgeCoords<double>(
v41,
v42,
v43,
1u,
(long long)&v48,
(__m128d)0LL,
1.0 / (double)v43);
v2 = v44;
v24 += RingEdge;
++v42;
}
while ( WORD1(v41) != v42 );
}
}
else if ( v4 == 1 )
{
v25 = (int *)*((_QWORD *)a1 + 5);
v26 = *v25;
v27 = 1.0;
if ( v26 > 0 )
{
v28 = (double *)(a2 + 8);
v29 = 0.0;
v30 = *v25;
do
{
*(v28 - 1) = v29;
*v28 = 0.0;
v29 = v29 + 1.0 / (double)(int)v26;
v28 += v3;
--v30;
}
while ( v30 );
}
v31 = v25[1];
if ( v31 > 0 )
{
v32 = 1.0 / (double)(int)v31;
v33 = (double *)(v2 + 8LL * v3 * (int)v26 + 8);
v34 = 0.0;
v35 = 1.0;
v36 = v25[1];
do
{
*(v33 - 1) = v35;
*v33 = v34;
v35 = v35 - v32;
v34 = v34 + v32;
v33 += v3;
--v36;
}
while ( v36 );
}
v37 = v31 + v26;
v38 = v25[2];
if ( v38 > 0 )
{
v39 = (double *)(v2 + 8LL * v37 * v3 + 8);
v40 = v38;
do
{
*(v39 - 1) = 0.0;
*v39 = v27;
v27 = v27 - 1.0 / (double)(int)v38;
v39 += v3;
--v40;
}
while ( v40 );
}
return (unsigned int)(v37 + v38);
}
else
{
if ( *a1 )
__assert_fail(
"0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp",
2338LL,
"int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords(REAL *) const [REAL = double]");
v5 = (int *)*((_QWORD *)a1 + 5);
v6 = *v5;
v7 = 1.0;
if ( v6 > 0 )
{
v8 = (double *)(a2 + 8);
v9 = 0.0;
v10 = *v5;
do
{
*(v8 - 1) = v9;
*v8 = 0.0;
v9 = v9 + 1.0 / (double)(int)v6;
v8 += v3;
--v10;
}
while ( v10 );
}
v11 = v5[1];
if ( v11 > 0 )
{
v12 = (double *)(v2 + 8LL * v3 * (int)v6 + 8);
v13 = 0.0;
v14 = v5[1];
do
{
*(v12 - 1) = 1.0;
*v12 = v13;
v13 = v13 + 1.0 / (double)(int)v11;
v12 += v3;
--v14;
}
while ( v14 );
}
v15 = v11 + v6;
v16 = v5[2];
if ( v16 > 0 )
{
v17 = (double *)(v2 + 8LL * v3 * v15 + 8);
v18 = 1.0;
v19 = v5[2];
do
{
*(v17 - 1) = v18;
*v17 = 1.0;
v18 = v18 - 1.0 / (double)(int)v16;
v17 += v3;
--v19;
}
while ( v19 );
}
v20 = v15 + v16;
v21 = v5[3];
if ( v21 > 0 )
{
v22 = (double *)(v2 + 8LL * v20 * v3 + 8);
v23 = v21;
do
{
*(v22 - 1) = 0.0;
*v22 = v7;
v7 = v7 - 1.0 / (double)(int)v21;
v22 += v3;
--v23;
}
while ( v23 );
}
return (unsigned int)(v20 + v21);
}
return v24;
}
| GetBoundaryCoords<double>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R11,RSI
MOV EBX,dword ptr [RDI + 0xc]
MOVZX ECX,byte ptr [RDI]
CMP ECX,0x2
JZ 0x001a4930
MOVSXD RAX,EBX
CMP ECX,0x1
JZ 0x001a4843
TEST ECX,ECX
JNZ 0x001a49c0
MOV RCX,qword ptr [RDI + 0x28]
MOVSXD RDX,dword ptr [RCX]
MOVSD XMM0,qword ptr [0x001b7598]
TEST RDX,RDX
JLE 0x001a4747
CVTSI2SD XMM2,EDX
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RSI,[R11 + 0x8]
LEA RDI,[RAX*0x8]
XORPD XMM2,XMM2
MOV R8,RDX
LAB_001a472f:
MOVSD qword ptr [RSI + -0x8],XMM2
MOV qword ptr [RSI],0x0
ADDSD XMM2,XMM1
ADD RSI,RDI
DEC R8
JNZ 0x001a472f
LAB_001a4747:
MOVSXD RSI,dword ptr [RCX + 0x4]
MOV RDI,0x3ff0000000000000
TEST RSI,RSI
JLE 0x001a479f
MOV R8D,EDX
IMUL R8D,EBX
MOVSXD R8,R8D
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA R8,[R11 + R8*0x8]
ADD R8,0x8
LEA R9,[RAX*0x8]
XORPD XMM2,XMM2
MOV R10,RSI
LAB_001a478a:
MOV qword ptr [R8 + -0x8],RDI
MOVSD qword ptr [R8],XMM2
ADDSD XMM2,XMM1
ADD R8,R9
DEC R10
JNZ 0x001a478a
LAB_001a479f:
ADD EDX,ESI
MOVSXD RSI,dword ptr [RCX + 0x8]
TEST RSI,RSI
JLE 0x001a47f3
MOV R8D,EDX
IMUL R8D,EBX
MOVSXD R8,R8D
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA R8,[R11 + R8*0x8]
ADD R8,0x8
LEA R9,[RAX*0x8]
MOVSD XMM2,qword ptr [0x001b7598]
MOV R10,RSI
LAB_001a47de:
MOVSD qword ptr [R8 + -0x8],XMM2
MOV qword ptr [R8],RDI
SUBSD XMM2,XMM1
ADD R8,R9
DEC R10
JNZ 0x001a47de
LAB_001a47f3:
ADD ESI,EDX
MOVSXD R14,dword ptr [RCX + 0xc]
TEST R14,R14
JLE 0x001a483b
IMUL EBX,ESI
MOVSXD RCX,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,R14D
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RCX,[R11 + RCX*0x8]
ADD RCX,0x8
SHL RAX,0x3
MOV RDX,R14
LAB_001a4823:
MOV qword ptr [RCX + -0x8],0x0
MOVSD qword ptr [RCX],XMM0
SUBSD XMM0,XMM1
ADD RCX,RAX
DEC RDX
JNZ 0x001a4823
LAB_001a483b:
ADD R14D,ESI
JMP 0x001a49ae
LAB_001a4843:
MOV RDX,qword ptr [RDI + 0x28]
MOVSXD RCX,dword ptr [RDX]
MOVSD XMM0,qword ptr [0x001b7598]
TEST RCX,RCX
JLE 0x001a488e
CVTSI2SD XMM2,ECX
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RSI,[R11 + 0x8]
LEA RDI,[RAX*0x8]
XORPD XMM2,XMM2
MOV R8,RCX
LAB_001a4876:
MOVSD qword ptr [RSI + -0x8],XMM2
MOV qword ptr [RSI],0x0
ADDSD XMM2,XMM1
ADD RSI,RDI
DEC R8
JNZ 0x001a4876
LAB_001a488e:
MOVSXD RSI,dword ptr [RDX + 0x4]
TEST RSI,RSI
JLE 0x001a48e3
MOV EDI,ECX
IMUL EDI,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,ESI
MOVSXD RDI,EDI
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RDI,[R11 + RDI*0x8 + 0x8]
LEA R8,[RAX*0x8]
XORPD XMM2,XMM2
MOVSD XMM3,qword ptr [0x001b7598]
MOV R9,RSI
LAB_001a48ca:
MOVSD qword ptr [RDI + -0x8],XMM3
MOVSD qword ptr [RDI],XMM2
SUBSD XMM3,XMM1
ADDSD XMM2,XMM1
ADD RDI,R8
DEC R9
JNZ 0x001a48ca
LAB_001a48e3:
ADD ECX,ESI
MOVSXD R14,dword ptr [RDX + 0x8]
TEST R14,R14
JLE 0x001a492b
IMUL EBX,ECX
MOVSXD RDX,EBX
XORPS XMM2,XMM2
CVTSI2SD XMM2,R14D
MOVAPD XMM1,XMM0
DIVSD XMM1,XMM2
LEA RDX,[R11 + RDX*0x8]
ADD RDX,0x8
SHL RAX,0x3
MOV RSI,R14
LAB_001a4913:
MOV qword ptr [RDX + -0x8],0x0
MOVSD qword ptr [RDX],XMM0
SUBSD XMM0,XMM1
ADD RDX,RAX
DEC RSI
JNZ 0x001a4913
LAB_001a492b:
ADD R14D,ECX
JMP 0x001a49ae
LAB_001a4930:
MOV R13D,dword ptr [RDI]
XOR R14D,R14D
CMP R13,0x10000
JC 0x001a49ae
MOV RAX,qword ptr [RDI + 0x28]
MOV qword ptr [RSP],RAX
MOV R15D,R13D
SHR R15D,0x10
XOR R12D,R12D
XOR R14D,R14D
LAB_001a4954:
MOV RAX,qword ptr [RSP]
MOV EDX,dword ptr [RAX + R12*0x4]
XORPS XMM0,XMM0
CVTSI2SD XMM0,EDX
MOVSD XMM1,qword ptr [0x001b7598]
DIVSD XMM1,XMM0
MOV EAX,R14D
IMUL EAX,EBX
CDQE
LEA RAX,[R11 + RAX*0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV dword ptr [RSP + 0x10],EBX
XORPD XMM0,XMM0
MOV EDI,R13D
MOV ESI,R12D
MOV ECX,0x1
LEA R8,[RSP + 0x8]
MOV RBP,R11
CALL 0x001a421e
MOV R11,RBP
ADD R14D,EAX
INC R12
CMP R15,R12
JNZ 0x001a4954
LAB_001a49ae:
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a49c0:
LEA RDI,[0x1b508f]
LEA RSI,[0x1c5500]
LEA RCX,[0x1c55b8]
MOV EDX,0x922
CALL 0x00139540
|
/* int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(double*) const */
int __thiscall
OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords<double>(Tessellation *this,double *param_1)
{
Tessellation TVar1;
int iVar2;
uint uVar3;
int *piVar4;
int iVar5;
double *pdVar6;
long lVar7;
int iVar8;
ulong uVar9;
int iVar10;
double dVar11;
double dVar12;
double dVar13;
double *local_40;
int local_38;
dVar11 = DAT_001b7598;
iVar2 = *(int *)(this + 0xc);
TVar1 = *this;
if (TVar1 == (Tessellation)0x2) {
uVar3 = *(uint *)this;
iVar10 = 0;
if (0xffff < uVar3) {
lVar7 = *(long *)(this + 0x28);
uVar9 = 0;
iVar10 = 0;
do {
iVar5 = *(int *)(lVar7 + uVar9 * 4);
local_40 = param_1 + iVar10 * iVar2;
local_38 = iVar2;
iVar5 = qsub::getRingEdgeCoords<double>
(0,DAT_001b7598 / (double)iVar5,uVar3,uVar9 & 0xffffffff,iVar5,1,&local_40
);
iVar10 = iVar10 + iVar5;
uVar9 = uVar9 + 1;
} while (uVar3 >> 0x10 != uVar9);
}
}
else if (TVar1 == (Tessellation)0x1) {
piVar4 = *(int **)(this + 0x28);
iVar5 = *piVar4;
lVar7 = (long)iVar5;
if (0 < lVar7) {
dVar12 = DAT_001b7598 / (double)iVar5;
pdVar6 = param_1 + 1;
dVar13 = 0.0;
do {
pdVar6[-1] = dVar13;
*pdVar6 = 0.0;
dVar13 = dVar13 + dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = piVar4[1];
lVar7 = (long)iVar8;
if (0 < lVar7) {
pdVar6 = param_1 + (long)(iVar5 * iVar2) + 1;
dVar13 = 0.0;
dVar12 = DAT_001b7598;
do {
pdVar6[-1] = dVar12;
*pdVar6 = dVar13;
dVar12 = dVar12 - dVar11 / (double)iVar8;
dVar13 = dVar13 + dVar11 / (double)iVar8;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = piVar4[2];
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = dVar11 / (double)iVar10;
pdVar6 = param_1 + (long)(iVar2 * (iVar5 + iVar8)) + 1;
do {
pdVar6[-1] = 0.0;
*pdVar6 = dVar11;
dVar11 = dVar11 - dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = iVar10 + iVar5 + iVar8;
}
else {
if (TVar1 != (Tessellation)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("0",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/tessellation.cpp"
,0x922,
"int OpenSubdiv::v3_6_0::Bfr::Tessellation::GetBoundaryCoords(REAL *) const [REAL = double]"
);
}
piVar4 = *(int **)(this + 0x28);
iVar10 = *piVar4;
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = DAT_001b7598 / (double)iVar10;
pdVar6 = param_1 + 1;
dVar13 = 0.0;
do {
pdVar6[-1] = dVar13;
*pdVar6 = 0.0;
dVar13 = dVar13 + dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar5 = piVar4[1];
lVar7 = (long)iVar5;
if (0 < lVar7) {
pdVar6 = param_1 + (long)(iVar10 * iVar2) + 1;
dVar12 = 0.0;
do {
pdVar6[-1] = 1.0;
*pdVar6 = dVar12;
dVar12 = dVar12 + dVar11 / (double)iVar5;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = piVar4[2];
lVar7 = (long)iVar8;
if (0 < lVar7) {
pdVar6 = param_1 + (long)((iVar10 + iVar5) * iVar2) + 1;
dVar12 = DAT_001b7598;
do {
pdVar6[-1] = dVar12;
*pdVar6 = 1.0;
dVar12 = dVar12 - dVar11 / (double)iVar8;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar8 = iVar8 + iVar10 + iVar5;
iVar10 = piVar4[3];
lVar7 = (long)iVar10;
if (0 < lVar7) {
dVar12 = dVar11 / (double)iVar10;
pdVar6 = param_1 + (long)(iVar2 * iVar8) + 1;
do {
pdVar6[-1] = 0.0;
*pdVar6 = dVar11;
dVar11 = dVar11 - dVar12;
pdVar6 = pdVar6 + iVar2;
lVar7 = lVar7 + -1;
} while (lVar7 != 0);
}
iVar10 = iVar10 + iVar8;
}
return iVar10;
}
| |
52,258 | 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>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/./json.hpp | std::string exception_message(const token_type expected, const std::string& context)
{
std::string error_msg = "syntax error ";
if (!context.empty())
{
error_msg += concat("while parsing ", context, ' ');
}
error_msg += "- ";
if (last_token == token_type::parse_error)
{
error_msg += concat(m_lexer.get_error_message(), "; last read: '",
m_lexer.get_token_string(), '\'');
}
else
{
error_msg += concat("unexpected ", lexer_t::token_type_name(last_token));
}
if (expected != token_type::uninitialized)
{
error_msg += concat("; expected ", lexer_t::token_type_name(expected));
}
return error_msg;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__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>>::token_type, 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 $0x58, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
leaq 0x82e4e(%rip), %rsi # 0xb6301
leaq 0x82e54(%rip), %rdx # 0xb630e
callq 0x22878
movq 0x8(%r15), %rsi
testq %rsi, %rsi
je 0x33546
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
addq $0xf, %rsi
leaq 0x8(%rsp), %rdi
callq 0x19a90
leaq 0x82e1c(%rip), %rsi # 0xb630f
leaq 0x8(%rsp), %rdi
callq 0x19d30
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x191f0
leaq 0x8(%rsp), %rdi
movl $0x20, %esi
callq 0x195d0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x191f0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x33546
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
leaq 0x82dd1(%rip), %rsi # 0xb631e
movq %rbx, %rdi
callq 0x19d30
movl 0x20(%r14), %edi
cmpl $0xe, %edi
jne 0x335e9
movq 0x98(%r14), %rax
addq $0x28, %r14
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x331d4
leaq 0x2f(%rsp), %r8
movb $0x27, (%r8)
leaq 0x82d92(%rip), %rdx # 0xb6321
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x38(%rsp), %rcx
callq 0x39796
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x191f0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x335d0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33663
movq 0x48(%rsp), %rsi
jmp 0x3365b
callq 0x39858
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x19320
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x19a90
leaq 0x82d0d(%rip), %rsi # 0xb6330
leaq 0x8(%rsp), %rdi
callq 0x19d30
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x19d30
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x191f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x33663
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
testl %ebp, %ebp
je 0x336e3
movl %ebp, %edi
callq 0x39858
movq %rax, %r14
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movq %rax, %rdi
callq 0x19320
leaq 0xb(%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x19a90
leaq 0x82c99(%rip), %rsi # 0xb633c
leaq 0x8(%rsp), %rdi
callq 0x19d30
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x19d30
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x191f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x336e3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3373c
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3371a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
jmp 0x3371a
movq %rax, %r14
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x33765
movq 0x48(%rsp), %rsi
jmp 0x3375d
jmp 0x33735
jmp 0x3373c
jmp 0x3374b
movq %rax, %r14
jmp 0x33765
jmp 0x3373c
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x33758
jmp 0x33765
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x33765
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x196d0
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x33779
movq (%r12), %rsi
incq %rsi
callq 0x196d0
movq %r14, %rdi
callq 0x19c00
nop
| _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r15, rcx
mov ebp, edx
mov r14, rsi
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
lea rsi, aSyntaxError; "syntax error "
lea rdx, aSyntaxError+0Dh; ""
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 rsi, [r15+8]
test rsi, rsi
jz short loc_33546
lea r13, [rsp+88h+var_70]
mov [r13-10h], r13
mov qword ptr [r13-8], 0
mov byte ptr [r13+0], 0
add rsi, 0Fh
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aWhileParsing; "while parsing "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rdi, [rsp+88h+var_80]
mov esi, 20h ; ' '
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r13
jz short loc_33546
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_33546:
lea rsi, asc_B631E; "- "
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov edi, [r14+20h]
cmp edi, 0Eh
jnz loc_335E9
mov rax, [r14+98h]
add r14, 28h ; '('
mov [rsp+88h+var_58], rax
lea rdi, [rsp+88h+var_50]
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void)
lea r8, [rsp+88h+var_59]
mov byte ptr [r8], 27h ; '''
lea rdx, aLastRead; "; last read: '"
lea rdi, [rsp+88h+var_80]
lea rsi, [rsp+88h+var_58]
lea rcx, [rsp+88h+var_50]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
lea rax, [rsp+88h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_335D0
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_335D0:
lea rax, [rsp+88h+var_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz loc_33663
mov rsi, [rsp+88h+var_40]
jmp short loc_3365B
loc_335E9:
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aUnexpected; "unexpected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_33663
mov rsi, [rsp+88h+var_70]
loc_3365B:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_33663:
test ebp, ebp
jz short loc_336E3
mov edi, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type)
mov r14, rax
lea r15, [rsp+88h+var_70]
mov [r15-10h], r15
mov qword ptr [r15-8], 0
mov byte ptr [r15], 0
mov rdi, rax
call _strlen
lea rsi, [rax+0Bh]
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
lea rsi, aExpected; "; expected "
lea rdi, [rsp+88h+var_80]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
lea rdi, [rsp+88h+var_80]
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov rsi, [rsp+88h+var_80]
mov rdx, [rsp+88h+var_78]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+88h+var_80]; void *
cmp rdi, r15
jz short loc_336E3
mov rsi, [rsp+88h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_336E3:
mov rax, rbx
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_3373C
mov r14, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3371A
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3371A
mov r14, rax
loc_3371A:
lea rax, [rsp+arg_40]
mov rdi, [rax-10h]
cmp rdi, rax
jz short loc_33765
mov rsi, [rsp+arg_40]
jmp short loc_3375D
jmp short loc_33735
jmp short loc_3373C
jmp short loc_3374B
loc_33735:
mov r14, rax
jmp short loc_33765
jmp short $+2
loc_3373C:
mov r14, rax
mov rdi, [rsp+arg_0]
cmp rdi, r15
jnz short loc_33758
jmp short loc_33765
loc_3374B:
mov r14, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r13
jz short loc_33765
loc_33758:
mov rsi, [rsp+arg_10]
loc_3375D:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_33765:
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_33779
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_33779:
mov rdi, r14
call __Unwind_Resume
| _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>>>::exception_message(
_QWORD *a1,
long long a2,
unsigned int a3,
_QWORD *a4)
{
long long v8; // rsi
void *v9; // rdi
long long v10; // rsi
long long v11; // r14
long long v12; // rax
long long v13; // r14
long long v14; // rax
void *v16; // [rsp+8h] [rbp-80h] BYREF
long long v17; // [rsp+10h] [rbp-78h]
_QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF
char v19; // [rsp+2Fh] [rbp-59h] BYREF
long long v20; // [rsp+30h] [rbp-58h] BYREF
_QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF
long long v22; // [rsp+48h] [rbp-40h] BYREF
*a1 = a1 + 2;
std::string::_M_construct<char const*>((long long)a1, "syntax error ", (long long)"");
v8 = a4[1];
if ( v8 )
{
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
std::string::reserve(&v16, v8 + 15);
std::string::append(&v16, "while parsing ");
std::string::_M_append(&v16, *a4, a4[1]);
std::string::push_back(&v16, 32LL);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
std::string::append(a1, "- ");
if ( *(_DWORD *)(a2 + 32) == 14 )
{
v20 = *(_QWORD *)(a2 + 152);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(
(long long)v21,
a2 + 40);
v19 = 39;
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(
&v16,
&v20,
"; last read: '",
v21,
&v19);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
v9 = (void *)v21[0];
if ( (long long *)v21[0] != &v22 )
{
v10 = v22;
LABEL_11:
operator delete(v9, v10 + 1);
}
}
else
{
v11 = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)();
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v12 = strlen(v11);
std::string::reserve(&v16, v12 + 11);
std::string::append(&v16, "unexpected ");
std::string::append(&v16, v11);
std::string::_M_append(a1, v16, v17);
v9 = v16;
if ( v16 != v18 )
{
v10 = v18[0];
goto LABEL_11;
}
}
if ( a3 )
{
v13 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(a3);
v16 = v18;
v17 = 0LL;
LOBYTE(v18[0]) = 0;
v14 = strlen(v13);
std::string::reserve(&v16, v14 + 11);
std::string::append(&v16, "; expected ");
std::string::append(&v16, v13);
std::string::_M_append(a1, v16, v17);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
}
return a1;
}
| exception_message:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R15,RCX
MOV EBP,EDX
MOV R14,RSI
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
LEA RSI,[0x1b6301]
LEA RDX,[0x1b630e]
CALL 0x00122878
MOV RSI,qword ptr [R15 + 0x8]
TEST RSI,RSI
JZ 0x00133546
LEA R13,[RSP + 0x18]
MOV qword ptr [R13 + -0x10],R13
MOV qword ptr [R13 + -0x8],0x0
MOV byte ptr [R13],0x0
ADD RSI,0xf
LAB_001334e2:
LEA RDI,[RSP + 0x8]
CALL 0x00119a90
LEA RSI,[0x1b630f]
LEA RDI,[RSP + 0x8]
CALL 0x00119d30
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x001191f0
LEA RDI,[RSP + 0x8]
MOV ESI,0x20
CALL 0x001195d0
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_00133527:
MOV RDI,RBX
CALL 0x001191f0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x00133546
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001196d0
LAB_00133546:
LEA RSI,[0x1b631e]
MOV RDI,RBX
CALL 0x00119d30
MOV EDI,dword ptr [R14 + 0x20]
CMP EDI,0xe
JNZ 0x001335e9
MOV RAX,qword ptr [R14 + 0x98]
ADD R14,0x28
MOV qword ptr [RSP + 0x30],RAX
LAB_00133572:
LEA RDI,[RSP + 0x38]
MOV RSI,R14
CALL 0x001331d4
LEA R8,[RSP + 0x2f]
MOV byte ptr [R8],0x27
LAB_00133588:
LEA RDX,[0x1b6321]
LEA RDI,[RSP + 0x8]
LEA RSI,[RSP + 0x30]
LEA RCX,[RSP + 0x38]
CALL 0x00139796
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001335ad:
MOV RDI,RBX
CALL 0x001191f0
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001335d0
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001196d0
LAB_001335d0:
LEA RAX,[RSP + 0x48]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00133663
MOV RSI,qword ptr [RSP + 0x48]
JMP 0x0013365b
LAB_001335e9:
CALL 0x00139858
MOV R14,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
MOV RDI,RAX
CALL 0x00119320
LEA RSI,[RAX + 0xb]
LAB_00133612:
LEA RDI,[RSP + 0x8]
CALL 0x00119a90
LEA RSI,[0x1b6330]
LEA RDI,[RSP + 0x8]
CALL 0x00119d30
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00119d30
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_00133644:
MOV RDI,RBX
CALL 0x001191f0
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x00133663
MOV RSI,qword ptr [RSP + 0x18]
LAB_0013365b:
INC RSI
CALL 0x001196d0
LAB_00133663:
TEST EBP,EBP
JZ 0x001336e3
MOV EDI,EBP
CALL 0x00139858
MOV R14,RAX
LEA R15,[RSP + 0x18]
MOV qword ptr [R15 + -0x10],R15
MOV qword ptr [R15 + -0x8],0x0
MOV byte ptr [R15],0x0
MOV RDI,RAX
CALL 0x00119320
LEA RSI,[RAX + 0xb]
LAB_00133692:
LEA RDI,[RSP + 0x8]
CALL 0x00119a90
LEA RSI,[0x1b633c]
LEA RDI,[RSP + 0x8]
CALL 0x00119d30
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x00119d30
MOV RSI,qword ptr [RSP + 0x8]
MOV RDX,qword ptr [RSP + 0x10]
LAB_001336c4:
MOV RDI,RBX
CALL 0x001191f0
LAB_001336cc:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R15
JZ 0x001336e3
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x001196d0
LAB_001336e3:
MOV RAX,RBX
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > >
>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::token_type, std::__cxx11::string const&) */
long * nlohmann::json_abi_v3_11_3::detail::
parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>>
::exception_message(long *param_1,long param_2,int param_3,ulong *param_4)
{
char *pcVar1;
long *local_80;
int8 local_78;
int1 local_70;
int7 uStack_6f;
int1 local_59;
int8 local_58;
long *local_50 [2];
long local_40 [2];
*param_1 = (long)(param_1 + 2);
std::__cxx11::string::_M_construct<char_const*>(param_1,"syntax error ","");
if (param_4[1] != 0) {
local_78 = 0;
local_70 = 0;
/* try { // try from 001334e2 to 0013351c has its CatchHandler @ 0013374b */
local_80 = (long *)&local_70;
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::_M_append((char *)&local_80,*param_4);
std::__cxx11::string::push_back((char)&local_80);
/* try { // try from 00133527 to 0013352e has its CatchHandler @ 00133733 */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
}
/* try { // try from 00133546 to 00133554 has its CatchHandler @ 00133735 */
std::__cxx11::string::append((char *)param_1);
if (*(int *)(param_2 + 0x20) == 0xe) {
local_58 = *(int8 *)(param_2 + 0x98);
/* try { // try from 00133572 to 0013357e has its CatchHandler @ 0013372f */
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get_token_string();
local_59 = 0x27;
/* try { // try from 00133588 to 001335a2 has its CatchHandler @ 00133717 */
concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char>
((char **)&local_80,(char *)&local_58,(string *)"; last read: \'",(char *)local_50);
/* try { // try from 001335ad to 001335b4 has its CatchHandler @ 001336f7 */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
if (local_50[0] == local_40) goto LAB_00133663;
}
else {
pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name();
local_78 = 0;
local_70 = 0;
local_80 = (long *)&local_70;
strlen(pcVar1);
/* try { // try from 00133612 to 00133639 has its CatchHandler @ 0013373a */
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::append((char *)&local_80);
/* try { // try from 00133644 to 0013364b has its CatchHandler @ 001336f5 */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 == (long *)&local_70) goto LAB_00133663;
local_40[0] = CONCAT71(uStack_6f,local_70);
local_50[0] = local_80;
}
operator_delete(local_50[0],local_40[0] + 1);
LAB_00133663:
if (param_3 != 0) {
pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::token_type_name(param_3);
local_78 = 0;
local_70 = 0;
local_80 = (long *)&local_70;
strlen(pcVar1);
/* try { // try from 00133692 to 001336b9 has its CatchHandler @ 0013373c */
std::__cxx11::string::reserve((ulong)&local_80);
std::__cxx11::string::append((char *)&local_80);
std::__cxx11::string::append((char *)&local_80);
/* try { // try from 001336c4 to 001336cb has its CatchHandler @ 00133731 */
std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80);
if (local_80 != (long *)&local_70) {
operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1);
}
}
return param_1;
}
| |
52,259 | test_prepare_resultset | eloqsql/tests/mysql_client_test.c | static void test_prepare_resultset()
{
MYSQL_STMT *stmt;
int rc;
MYSQL_RES *result;
myheader("test_prepare_resultset");
rc= mysql_autocommit(mysql, TRUE);
myquery(rc);
rc= mysql_query(mysql, "DROP TABLE IF EXISTS test_prepare_resultset");
myquery(rc);
rc= mysql_query(mysql, "CREATE TABLE test_prepare_resultset(id int, \
name varchar(50), extra double)");
myquery(rc);
stmt= mysql_simple_prepare(mysql, "SELECT * FROM test_prepare_resultset");
check_stmt(stmt);
verify_param_count(stmt, 0);
result= mysql_stmt_result_metadata(stmt);
mytest(result);
my_print_result_metadata(result);
mysql_free_result(result);
mysql_stmt_close(stmt);
} | O0 | c | test_prepare_resultset:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
jmp 0x507da
movsbl 0x419cf0(%rip), %eax # 0x46a4d1
cmpl $0x2, %eax
jge 0x50862
movq 0x25e7eb(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xddb2d(%rip), %rsi # 0x12e324
movb $0x0, %al
callq 0x3a1c0
movq 0x25e7d3(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
movl 0x419f0e(%rip), %edx # 0x46a71c
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x419f03(%rip) # 0x46a71c
movl 0x419ef9(%rip), %ecx # 0x46a718
movl 0x419cd6(%rip), %r8d # 0x46a4fc
leaq 0xdedff(%rip), %rsi # 0x12f62c
leaq 0xe395a(%rip), %r9 # 0x13418e
movb $0x0, %al
callq 0x3a1c0
movq 0x25e796(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
leaq 0xddb10(%rip), %rsi # 0x12e35c
movb $0x0, %al
callq 0x3a1c0
movq 0x25e77e(%rip), %rax # 0x2aefd8
movq (%rax), %rdi
callq 0x3a4a0
movq 0x419c6f(%rip), %rdi # 0x46a4d8
movl $0x1, %esi
callq 0x3bcc0
movsbl %al, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x5088e
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpl $0x0, -0x1c(%rbp)
jne 0x50896
jmp 0x508ae
leaq 0xdd36f(%rip), %rdi # 0x12dc0c
movl $0x1288, %esi # imm = 0x1288
leaq 0xf36c6(%rip), %rdx # 0x143f6f
callq 0x3c010
movq 0x419c23(%rip), %rdi # 0x46a4d8
leaq 0xe382c(%rip), %rsi # 0x1340e8
callq 0x3b3d0
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x20(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x508d9
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpl $0x0, -0x20(%rbp)
jne 0x508e1
jmp 0x508f9
leaq 0xdd324(%rip), %rdi # 0x12dc0c
movl $0x128b, %esi # imm = 0x128B
leaq 0xf367b(%rip), %rdx # 0x143f6f
callq 0x3c010
movq 0x419bd8(%rip), %rdi # 0x46a4d8
leaq 0xe380d(%rip), %rsi # 0x134114
callq 0x3b3d0
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x50924
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpl $0x0, -0x24(%rbp)
jne 0x5092c
jmp 0x50944
leaq 0xdd2d9(%rip), %rdi # 0x12dc0c
movl $0x128f, %esi # imm = 0x128F
leaq 0xf3630(%rip), %rdx # 0x143f6f
callq 0x3c010
movq 0x419b8d(%rip), %rdi # 0x46a4d8
leaq 0xe382e(%rip), %rsi # 0x134180
callq 0x3be90
movq %rax, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x5096b
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
cmpq $0x0, -0x8(%rbp)
je 0x50974
jmp 0x5098c
leaq 0xdd291(%rip), %rdi # 0x12dc0c
movl $0x1292, %esi # imm = 0x1292
leaq 0xdcfe3(%rip), %rdx # 0x12d96a
callq 0x3c010
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x41790
movq -0x8(%rbp), %rdi
callq 0xb48d0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x509ce
xorl %eax, %eax
movl %eax, %edi
callq 0x3bf10
leaq 0xdd24f(%rip), %rdi # 0x12dc0c
movl $0x1297, %esi # imm = 0x1297
leaq 0xdd013(%rip), %rdx # 0x12d9dc
callq 0x3c010
movq -0x18(%rbp), %rdi
callq 0x3e0d0
movq -0x18(%rbp), %rdi
callq 0x3b280
movq -0x8(%rbp), %rdi
callq 0x3b9f0
addq $0x30, %rsp
popq %rbp
retq
nop
| test_prepare_resultset:
push rbp
mov rbp, rsp
sub rsp, 30h
jmp short $+2
loc_507DA:
movsx eax, cs:opt_silent
cmp eax, 2
jge short loc_50862
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E324; "\n\n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
mov edx, cs:test_count
mov eax, edx
add eax, 1
mov cs:test_count, eax
mov ecx, cs:iter_count
mov r8d, cs:opt_count
lea rsi, aUOfUUS; "%u of (%u/%u): %s"
lea r9, aSelectFromTest_16+0Eh; "test_prepare_resultset"
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
lea rsi, asc_12E35C; " \n###################################"...
mov al, 0
call _fprintf
mov rax, cs:stdout_ptr
mov rdi, [rax]
call _fflush
loc_50862:
mov rdi, cs:mysql
mov esi, 1
call wrap_mysql_autocommit
movsx eax, al
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
cmp [rbp+var_1C], 0
jz short loc_5088E
xor eax, eax
mov edi, eax
call print_error
loc_5088E:
cmp [rbp+var_1C], 0
jnz short loc_50896
jmp short loc_508AE
loc_50896:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 1288h
lea rdx, aTmIYear0+9; "r == 0"
call die
loc_508AE:
mov rdi, cs:mysql
lea rsi, aDropTableIfExi_29; "DROP TABLE IF EXISTS test_prepare_resul"...
call wrap_mysql_query
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
mov [rbp+var_20], eax
cmp [rbp+var_20], 0
jz short loc_508D9
xor eax, eax
mov edi, eax
call print_error
loc_508D9:
cmp [rbp+var_20], 0
jnz short loc_508E1
jmp short loc_508F9
loc_508E1:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 128Bh
lea rdx, aTmIYear0+9; "r == 0"
call die
loc_508F9:
mov rdi, cs:mysql
lea rsi, aCreateTableTes_35; "CREATE TABLE test_prepare_resultset(id "...
call wrap_mysql_query
mov [rbp+var_C], eax
mov eax, [rbp+var_C]
mov [rbp+var_24], eax
cmp [rbp+var_24], 0
jz short loc_50924
xor eax, eax
mov edi, eax
call print_error
loc_50924:
cmp [rbp+var_24], 0
jnz short loc_5092C
jmp short loc_50944
loc_5092C:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 128Fh
lea rdx, aTmIYear0+9; "r == 0"
call die
loc_50944:
mov rdi, cs:mysql
lea rsi, aSelectFromTest_16; "SELECT * FROM test_prepare_resultset"
call mysql_simple_prepare
mov [rbp+var_8], rax
cmp [rbp+var_8], 0
jnz short loc_5096B
xor eax, eax
mov edi, eax
call print_error
loc_5096B:
cmp [rbp+var_8], 0
jz short loc_50974
jmp short loc_5098C
loc_50974:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 1292h
lea rdx, aStmt0; "stmt != 0"
call die
loc_5098C:
mov rdi, [rbp+var_8]
xor eax, eax
mov esi, eax
call verify_param_count
mov rdi, [rbp+var_8]
call mysql_stmt_result_metadata
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
jnz short loc_509CE
xor eax, eax
mov edi, eax
call print_error
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov esi, 1297h
lea rdx, aFalse; "FALSE"
call die
loc_509CE:
mov rdi, [rbp+var_18]
call my_print_result_metadata
mov rdi, [rbp+var_18]
call wrap_mysql_free_result
mov rdi, [rbp+var_8]
call wrap_mysql_stmt_close
add rsp, 30h
pop rbp
retn
| char test_prepare_resultset()
{
int v0; // edx
char v1; // al
int v3; // [rsp+14h] [rbp-1Ch]
long long v4; // [rsp+18h] [rbp-18h]
long long v5; // [rsp+28h] [rbp-8h]
if ( opt_silent < 2 )
{
fprintf(stdout, "\n\n#####################################\n");
v0 = test_count++;
fprintf(stdout, "%u of (%u/%u): %s", v0, iter_count, opt_count, "test_prepare_resultset");
fprintf(stdout, " \n#####################################\n");
fflush(stdout);
}
v1 = wrap_mysql_autocommit(mysql, 1);
v3 = v1;
if ( v1 )
print_error(0LL);
if ( v3 )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 4744, "r == 0");
if ( (unsigned int)wrap_mysql_query(mysql, (long long)"DROP TABLE IF EXISTS test_prepare_resultset") )
{
print_error(0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 4747, "r == 0");
}
if ( (unsigned int)wrap_mysql_query(
mysql,
(long long)"CREATE TABLE test_prepare_resultset(id int, name varchar"
"(50), extra double)") )
{
print_error(0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 4751, "r == 0");
}
v5 = mysql_simple_prepare(mysql, (long long)"SELECT * FROM test_prepare_resultset");
if ( !v5 )
{
print_error(0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 4754, "stmt != 0");
}
verify_param_count(v5, 0LL);
v4 = mysql_stmt_result_metadata(v5);
if ( !v4 )
{
print_error(0LL);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 4759, "FALSE");
}
my_print_result_metadata(v4);
wrap_mysql_free_result(v4);
return wrap_mysql_stmt_close(v5);
}
| test_prepare_resultset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
JMP 0x001507da
LAB_001507da:
MOVSX EAX,byte ptr [0x0056a4d1]
CMP EAX,0x2
JGE 0x00150862
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e324]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
MOV EDX,dword ptr [0x0056a71c]
MOV EAX,EDX
ADD EAX,0x1
MOV dword ptr [0x0056a71c],EAX
MOV ECX,dword ptr [0x0056a718]
MOV R8D,dword ptr [0x0056a4fc]
LEA RSI,[0x22f62c]
LEA R9,[0x23418e]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x22e35c]
MOV AL,0x0
CALL 0x0013a1c0
MOV RAX,qword ptr [0x003aefd8]
MOV RDI,qword ptr [RAX]
CALL 0x0013a4a0
LAB_00150862:
MOV RDI,qword ptr [0x0056a4d8]
MOV ESI,0x1
CALL 0x0013bcc0
MOVSX EAX,AL
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x1c],EAX
CMP dword ptr [RBP + -0x1c],0x0
JZ 0x0015088e
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_0015088e:
CMP dword ptr [RBP + -0x1c],0x0
JNZ 0x00150896
JMP 0x001508ae
LAB_00150896:
LEA RDI,[0x22dc0c]
MOV ESI,0x1288
LEA RDX,[0x243f6f]
CALL 0x0013c010
LAB_001508ae:
MOV RDI,qword ptr [0x0056a4d8]
LEA RSI,[0x2340e8]
CALL 0x0013b3d0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x20],EAX
CMP dword ptr [RBP + -0x20],0x0
JZ 0x001508d9
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_001508d9:
CMP dword ptr [RBP + -0x20],0x0
JNZ 0x001508e1
JMP 0x001508f9
LAB_001508e1:
LEA RDI,[0x22dc0c]
MOV ESI,0x128b
LEA RDX,[0x243f6f]
CALL 0x0013c010
LAB_001508f9:
MOV RDI,qword ptr [0x0056a4d8]
LEA RSI,[0x234114]
CALL 0x0013b3d0
MOV dword ptr [RBP + -0xc],EAX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x24],EAX
CMP dword ptr [RBP + -0x24],0x0
JZ 0x00150924
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_00150924:
CMP dword ptr [RBP + -0x24],0x0
JNZ 0x0015092c
JMP 0x00150944
LAB_0015092c:
LEA RDI,[0x22dc0c]
MOV ESI,0x128f
LEA RDX,[0x243f6f]
CALL 0x0013c010
LAB_00150944:
MOV RDI,qword ptr [0x0056a4d8]
LEA RSI,[0x234180]
CALL 0x0013be90
MOV qword ptr [RBP + -0x8],RAX
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x0015096b
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LAB_0015096b:
CMP qword ptr [RBP + -0x8],0x0
JZ 0x00150974
JMP 0x0015098c
LAB_00150974:
LEA RDI,[0x22dc0c]
MOV ESI,0x1292
LEA RDX,[0x22d96a]
CALL 0x0013c010
LAB_0015098c:
MOV RDI,qword ptr [RBP + -0x8]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00141790
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001b48d0
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x001509ce
XOR EAX,EAX
MOV EDI,EAX
CALL 0x0013bf10
LEA RDI,[0x22dc0c]
MOV ESI,0x1297
LEA RDX,[0x22d9dc]
CALL 0x0013c010
LAB_001509ce:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013e0d0
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0013b280
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0013b9f0
ADD RSP,0x30
POP RBP
RET
|
void test_prepare_resultset(void)
{
char cVar1;
int iVar2;
long lVar3;
long lVar4;
ulong uVar5;
if (opt_silent < '\x02') {
fprintf(*(FILE **)PTR_stdout_003aefd8,"\n\n#####################################\n");
uVar5 = (ulong)test_count;
test_count = test_count + 1;
fprintf(*(FILE **)PTR_stdout_003aefd8,"%u of (%u/%u): %s",uVar5,(ulong)iter_count,
(ulong)opt_count,"test_prepare_resultset");
fprintf(*(FILE **)PTR_stdout_003aefd8," \n#####################################\n");
fflush(*(FILE **)PTR_stdout_003aefd8);
}
cVar1 = wrap_mysql_autocommit(mysql,1);
if (cVar1 != '\0') {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x1288,"r == 0");
}
iVar2 = wrap_mysql_query(mysql,"DROP TABLE IF EXISTS test_prepare_resultset");
if (iVar2 != 0) {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x128b,"r == 0");
}
iVar2 = wrap_mysql_query(mysql,
"CREATE TABLE test_prepare_resultset(id int, name varchar(50), extra double)"
);
if (iVar2 != 0) {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x128f,"r == 0");
}
lVar3 = mysql_simple_prepare(mysql,"SELECT * FROM test_prepare_resultset");
if (lVar3 == 0) {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x1292,"stmt != 0");
}
verify_param_count(lVar3,0);
lVar4 = mysql_stmt_result_metadata(lVar3);
if (lVar4 == 0) {
print_error(0);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x1297,"FALSE");
}
my_print_result_metadata(lVar4);
wrap_mysql_free_result(lVar4);
wrap_mysql_stmt_close(lVar3);
return;
}
| |
52,260 | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [10], 0>(char const (&) [10]) const | monkey531[P]llama/common/./json.hpp | constexpr bool is_object() const noexcept
{
return m_data.m_type == value_t::object;
} | O3 | cpp | bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::contains<char const (&) [10], 0>(char const (&) [10]) const:
cmpb $0x1, (%rdi)
jne 0x956f7
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %r12
movq (%r12), %rbx
cmpq 0x8(%r12), %rbx
je 0x956fa
movq %rsi, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x18190
testl %eax, %eax
je 0x956ea
addq $0x30, %rbx
cmpq 0x8(%r12), %rbx
jne 0x956d0
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
jmp 0x956fd
xorl %eax, %eax
retq
movq %rbx, %rax
cmpq %rbx, %rax
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
cmp byte ptr [rdi], 1
jnz short loc_956F7
push r15
push r14
push r12
push rbx
push rax
mov r14, rdi
mov r12, [rdi+8]
mov rbx, [r12]
cmp rbx, [r12+8]
jz short loc_956FA
mov r15, rsi
loc_956D0:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_956EA
add rbx, 30h ; '0'
cmp rbx, [r12+8]
jnz short loc_956D0
loc_956EA:
mov rax, rbx
mov rcx, [r14+8]
mov rbx, [rcx+8]
jmp short loc_956FD
loc_956F7:
xor eax, eax
retn
loc_956FA:
mov rax, rbx
loc_956FD:
cmp rax, rbx
setnz al
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| bool ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_(
long long a1,
long long a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
if ( *(_BYTE *)a1 != 1 )
return 0;
v2 = *(long long **)(a1 + 8);
v3 = *v2;
if ( *v2 == v2[1] )
{
v4 = *v2;
}
else
{
do
{
if ( !(unsigned int)std::string::compare(v3, a2) )
break;
v3 += 48LL;
}
while ( v3 != v2[1] );
v4 = v3;
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
return v4 != v3;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_:
CMP byte ptr [RDI],0x1
JNZ 0x001956f7
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RDI
MOV R12,qword ptr [RDI + 0x8]
MOV RBX,qword ptr [R12]
CMP RBX,qword ptr [R12 + 0x8]
JZ 0x001956fa
MOV R15,RSI
LAB_001956d0:
MOV RDI,RBX
MOV RSI,R15
CALL 0x00118190
TEST EAX,EAX
JZ 0x001956ea
ADD RBX,0x30
CMP RBX,qword ptr [R12 + 0x8]
JNZ 0x001956d0
LAB_001956ea:
MOV RAX,RBX
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
JMP 0x001956fd
LAB_001956f7:
XOR EAX,EAX
RET
LAB_001956fa:
MOV RAX,RBX
LAB_001956fd:
CMP RAX,RBX
SETNZ AL
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
int8
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8containsIRA10_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEEbOSJ_
(char *param_1)
{
long *plVar1;
int iVar2;
char *pcVar3;
char *pcVar4;
if (*param_1 != '\x01') {
return 0;
}
plVar1 = *(long **)(param_1 + 8);
pcVar3 = (char *)*plVar1;
pcVar4 = pcVar3;
if (pcVar3 != (char *)plVar1[1]) {
do {
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar3 = pcVar3 + 0x30;
} while (pcVar3 != (char *)plVar1[1]);
pcVar4 = *(char **)(*(long *)(param_1 + 8) + 8);
}
return CONCAT71((int7)((ulong)pcVar3 >> 8),pcVar3 != pcVar4);
}
| |
52,261 | testing::internal::FilePath::DirectoryExists() const | AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest-filepath.cc | bool FilePath::DirectoryExists() const {
bool result = false;
#ifdef GTEST_OS_WINDOWS
// Don't strip off trailing separator if path is a root directory on
// Windows (like "C:\\").
const FilePath& path(IsRootDirectory() ? *this
: RemoveTrailingPathSeparator());
#else
const FilePath& path(*this);
#endif
#ifdef GTEST_OS_WINDOWS_MOBILE
LPCWSTR unicode = String::AnsiToUtf16(path.c_str());
const DWORD attributes = GetFileAttributes(unicode);
delete[] unicode;
if ((attributes != kInvalidFileAttributes) &&
(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
result = true;
}
#else
posix::StatStruct file_stat{};
result =
posix::Stat(path.c_str(), &file_stat) == 0 && posix::IsDir(file_stat);
#endif // GTEST_OS_WINDOWS_MOBILE
return result;
} | O0 | cpp | testing::internal::FilePath::DirectoryExists() const:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movb $0x0, 0xaf(%rsp)
movq %rax, 0xa0(%rsp)
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
movl $0x90, %edx
callq 0x15400
movq 0xa0(%rsp), %rdi
callq 0x124360
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x124500
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0xf(%rsp)
jne 0xf81cd
leaq 0x10(%rsp), %rdi
callq 0x124530
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0xaf(%rsp)
movb 0xaf(%rsp), %al
andb $0x1, %al
addq $0xb8, %rsp
retq
nopl (%rax,%rax)
| _ZNK7testing8internal8FilePath15DirectoryExistsEv:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov rax, [rsp+0B8h+var_8]
mov [rsp+0B8h+var_9], 0
mov [rsp+0B8h+var_18], rax
lea rdi, [rsp+0B8h+var_A8]
xor esi, esi
mov edx, 90h
call _memset
mov rdi, [rsp+0B8h+var_18]; this
call _ZNK7testing8internal8FilePath5c_strEv; testing::internal::FilePath::c_str(void)
mov rdi, rax
lea rsi, [rsp+0B8h+var_A8]
call _ZN7testing8internal5posix4StatEPKcP4stat; testing::internal::posix::Stat(char const*,stat *)
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov [rsp+0B8h+var_A9], al
jnz short loc_F81CD
lea rdi, [rsp+0B8h+var_A8]
call _ZN7testing8internal5posix5IsDirERK4stat; testing::internal::posix::IsDir(stat const&)
mov [rsp+0B8h+var_A9], al
loc_F81CD:
mov al, [rsp+0B8h+var_A9]
and al, 1
mov [rsp+0B8h+var_9], al
mov al, [rsp+0B8h+var_9]
and al, 1
add rsp, 0B8h
retn
| char testing::internal::FilePath::DirectoryExists(testing::internal::FilePath *this)
{
long long v1; // rax
char IsDir; // [rsp+Fh] [rbp-A9h]
_BYTE v4[144]; // [rsp+10h] [rbp-A8h] BYREF
testing::internal::FilePath *v5; // [rsp+A0h] [rbp-18h]
char v6; // [rsp+AFh] [rbp-9h]
testing::internal::FilePath *v7; // [rsp+B0h] [rbp-8h]
v7 = this;
v6 = 0;
v5 = this;
memset(v4, 0LL, sizeof(v4));
v1 = testing::internal::FilePath::c_str(v5);
IsDir = 0;
if ( !(unsigned int)testing::internal::posix::Stat(v1, v4) )
IsDir = testing::internal::posix::IsDir(v4);
return IsDir & 1;
}
| DirectoryExists:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV RAX,qword ptr [RSP + 0xb0]
MOV byte ptr [RSP + 0xaf],0x0
MOV qword ptr [RSP + 0xa0],RAX
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
MOV EDX,0x90
CALL 0x00115400
MOV RDI,qword ptr [RSP + 0xa0]
CALL 0x00224360
MOV RDI,RAX
LEA RSI,[RSP + 0x10]
CALL 0x00224500
MOV ECX,EAX
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RSP + 0xf],AL
JNZ 0x001f81cd
LEA RDI,[RSP + 0x10]
CALL 0x00224530
MOV byte ptr [RSP + 0xf],AL
LAB_001f81cd:
MOV AL,byte ptr [RSP + 0xf]
AND AL,0x1
MOV byte ptr [RSP + 0xaf],AL
MOV AL,byte ptr [RSP + 0xaf]
AND AL,0x1
ADD RSP,0xb8
RET
|
/* testing::internal::FilePath::DirectoryExists() const */
ulong __thiscall testing::internal::FilePath::DirectoryExists(FilePath *this)
{
int iVar1;
char *pcVar2;
int8 uVar3;
int1 local_a9;
stat local_a8;
FilePath *local_18;
int1 local_9;
FilePath *local_8;
local_9 = 0;
local_18 = this;
local_8 = this;
memset(&local_a8,0,0x90);
pcVar2 = (char *)c_str(local_18);
iVar1 = posix::Stat(pcVar2,&local_a8);
uVar3 = 0;
local_a9 = 0;
if (iVar1 == 0) {
uVar3 = posix::IsDir(&local_a8);
local_a9 = (int1)uVar3;
}
return CONCAT71((int7)((ulong)uVar3 >> 8),local_a9) & 0xffffffffffffff01;
}
| |
52,262 | string_join(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | std::string string_join(const std::vector<std::string> & values, const std::string & separator) {
std::ostringstream result;
for (size_t i = 0; i < values.size(); ++i) {
if (i > 0) {
result << separator;
}
result << values[i];
}
return result.str();
} | O2 | cpp | string_join(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__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 $0x178, %rsp # imm = 0x178
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsp, %r12
movq %r12, %rdi
callq 0x23ba0
xorl %r13d, %r13d
xorl %ebp, %ebp
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %rbp
jae 0x539ee
testq %rbp, %rbp
je 0x539da
movq %r12, %rdi
movq %r14, %rsi
callq 0x237c0
movq (%r15), %rsi
addq %r13, %rsi
movq %r12, %rdi
callq 0x237c0
incq %rbp
addq $0x20, %r13
jmp 0x539b4
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x23da0
movq %rsp, %rdi
callq 0x231e0
movq %rbx, %rax
addq $0x178, %rsp # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x53a1a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x231e0
movq %rbx, %rdi
callq 0x23f80
| _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 178h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov r12, rsp
mov rdi, r12
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
xor r13d, r13d
xor ebp, ebp
loc_539B4:
mov rsi, [r15]
mov rax, [r15+8]
sub rax, rsi
sar rax, 5
cmp rbp, rax
jnb short loc_539EE
test rbp, rbp
jz short loc_539DA
mov rdi, r12
mov rsi, r14
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
mov rsi, [r15]
loc_539DA:
add rsi, r13
mov rdi, r12
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
inc rbp
add r13, 20h ; ' '
jmp short loc_539B4
loc_539EE:
lea rsi, [rsp+1A8h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rdi, rsp
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rax, rbx
add rsp, 178h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_53A1A:
mov rbx, rax
mov rdi, rsp
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rdi, rbx
call __Unwind_Resume
| long long string_join(long long a1, long long *a2, long long a3)
{
long long v5; // r13
unsigned long long i; // rbp
long long v7; // rsi
long long v9; // [rsp+0h] [rbp-1A8h] BYREF
_BYTE v10[416]; // [rsp+8h] [rbp-1A0h] BYREF
std::ostringstream::basic_ostringstream(&v9);
v5 = 0LL;
for ( i = 0LL; ; ++i )
{
v7 = *a2;
if ( i >= (a2[1] - *a2) >> 5 )
break;
if ( i )
{
std::operator<<<char>(&v9, a3);
v7 = *a2;
}
std::operator<<<char>(&v9, v5 + v7);
v5 += 32LL;
}
std::stringbuf::str(a1, v10);
std::ostringstream::~ostringstream(&v9);
return a1;
}
| string_join:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x178
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV R12,RSP
MOV RDI,R12
CALL 0x00123ba0
XOR R13D,R13D
XOR EBP,EBP
LAB_001539b4:
MOV RSI,qword ptr [R15]
MOV RAX,qword ptr [R15 + 0x8]
SUB RAX,RSI
SAR RAX,0x5
CMP RBP,RAX
JNC 0x001539ee
TEST RBP,RBP
JZ 0x001539da
LAB_001539cc:
MOV RDI,R12
MOV RSI,R14
CALL 0x001237c0
MOV RSI,qword ptr [R15]
LAB_001539da:
ADD RSI,R13
MOV RDI,R12
CALL 0x001237c0
INC RBP
ADD R13,0x20
JMP 0x001539b4
LAB_001539ee:
LEA RSI,[RSP + 0x8]
LAB_001539f3:
MOV RDI,RBX
CALL 0x00123da0
LAB_001539fb:
MOV RDI,RSP
CALL 0x001231e0
MOV RAX,RBX
ADD RSP,0x178
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* string_join(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&,
std::__cxx11::string const&) */
vector * string_join(vector *param_1,string *param_2)
{
string *in_RDX;
ulong uVar1;
long lVar2;
long lVar3;
ostringstream aoStack_1a8 [376];
std::__cxx11::ostringstream::ostringstream(aoStack_1a8);
lVar3 = 0;
for (uVar1 = 0; lVar2 = *(long *)param_2, uVar1 < (ulong)(*(long *)(param_2 + 8) - lVar2 >> 5);
uVar1 = uVar1 + 1) {
if (uVar1 != 0) {
/* try { // try from 001539cc to 001539e4 has its CatchHandler @ 00153a1a */
std::operator<<((ostream *)aoStack_1a8,in_RDX);
lVar2 = *(long *)param_2;
}
std::operator<<((ostream *)aoStack_1a8,(string *)(lVar2 + lVar3));
lVar3 = lVar3 + 0x20;
}
/* try { // try from 001539f3 to 001539fa has its CatchHandler @ 00153a18 */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream(aoStack_1a8);
return param_1;
}
| |
52,263 | background::init() | untodesu[P]voxelius/game/client/background.cc | void background::init(void)
{
texture = resource::load<TextureGUI>("textures/gui/background.png", TEXTURE_GUI_LOAD_VFLIP);
if(texture == nullptr) {
spdlog::critical("background: texture load failed");
std::terminate();
}
} | O3 | cpp | background::init():
pushq %rbx
subq $0x10, %rsp
leaq 0x162080(%rip), %rsi # 0x191008
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x6fb80
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq %rax, 0x22a524(%rip) # 0x2594d0
movq 0x22a525(%rip), %rdi # 0x2594d8
movq %rcx, 0x22a51e(%rip) # 0x2594d8
testq %rdi, %rdi
je 0x2efda
callq 0x2f116
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2efd3
callq 0x2f116
movq 0x22a4f6(%rip), %rax # 0x2594d0
testq %rax, %rax
je 0x2efe5
addq $0x10, %rsp
popq %rbx
retq
leaq 0x162038(%rip), %rdi # 0x191024
callq 0x2f0bd
callq 0x261e0
| _ZN10background4initEv:
push rbx
sub rsp, 10h
lea rsi, aTexturesGuiBac; "textures/gui/background.png"
mov rbx, rsp
mov rdi, rbx
mov edx, 10h
call _ZN8resource4loadI10TextureGUIEESt10shared_ptrIKT_EPKcj; resource::load<TextureGUI>(char const*,uint)
mov rax, [rbx]
mov rcx, [rbx+8]
xorps xmm0, xmm0
movaps xmmword ptr [rbx], xmm0
mov qword ptr cs:_ZL7texture_0, rax; texture
mov rdi, qword ptr cs:_ZL7texture_0+8; texture
mov qword ptr cs:_ZL7texture_0+8, rcx; texture
test rdi, rdi
jz short loc_2EFDA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
mov rdi, [rsp+18h+var_10]
test rdi, rdi
jz short loc_2EFD3
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_2EFD3:
mov rax, qword ptr cs:_ZL7texture_0; texture
loc_2EFDA:
test rax, rax
jz short loc_2EFE5
add rsp, 10h
pop rbx
retn
loc_2EFE5:
lea rdi, aBackgroundText; "background: texture load failed"
call _ZN6spdlog8criticalIA32_cEEvRKT_; spdlog::critical<char [32]>(char [32] const&)
call __ZSt9terminatev; std::terminate(void)
| long long background::init(background *this, long long a2, long long a3, int a4, int a5, int a6)
{
long long result; // rax
long long v7; // rcx
long long v8; // rdi
__int128 v9; // [rsp+0h] [rbp-18h] BYREF
resource::load<TextureGUI>(
(unsigned int)&v9,
(unsigned int)"textures/gui/background.png",
16,
a4,
a5,
a6,
v9,
*((long long *)&v9 + 1));
v7 = *((_QWORD *)&v9 + 1);
result = v9;
v9 = 0LL;
*(_QWORD *)&texture = result;
v8 = *((_QWORD *)&texture + 1);
*((_QWORD *)&texture + 1) = v7;
if ( v8 )
{
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8);
if ( *((_QWORD *)&v9 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((_QWORD *)&v9 + 1));
result = texture;
}
if ( !result )
{
spdlog::critical<char [32]>("background: texture load failed");
std::terminate();
}
return result;
}
| init:
PUSH RBX
SUB RSP,0x10
LEA RSI,[0x291008]
MOV RBX,RSP
MOV RDI,RBX
MOV EDX,0x10
CALL 0x0016fb80
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x8]
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RBX],XMM0
MOV qword ptr [0x003594d0],RAX
MOV RDI,qword ptr [0x003594d8]
MOV qword ptr [0x003594d8],RCX
TEST RDI,RDI
JZ 0x0012efda
CALL 0x0012f116
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x0012efd3
CALL 0x0012f116
LAB_0012efd3:
MOV RAX,qword ptr [0x003594d0]
LAB_0012efda:
TEST RAX,RAX
JZ 0x0012efe5
ADD RSP,0x10
POP RBX
RET
LAB_0012efe5:
LEA RDI,[0x291024]
CALL 0x0012f0bd
CALL 0x001261e0
|
/* background::init() */
void background::init(void)
{
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var1;
long local_18;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_10;
resource::load<TextureGUI>((resource *)&local_18,"textures/gui/background.png",0x10);
p_Var1 = p_Stack_10;
texture = local_18;
this = DAT_003594d8;
local_18 = 0;
p_Stack_10 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
DAT_003594d8 = p_Var1;
if ((this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) &&
(std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this),
p_Stack_10 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0)) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_10);
}
if (texture == 0) {
spdlog::critical<char[32]>("background: texture load failed");
/* WARNING: Subroutine does not return */
std::terminate();
}
return;
}
| |
52,264 | memset | seiftnesse[P]memoryallocator/src/custom_alloc_util.c | void *_memset(void *dest, int value, size_t count) {
// Validate parameters
if (!dest || count == 0) {
return dest;
}
// Safety check for size
if (count > HEAP_SIZE) {
HEAP_LOG("WARNING: Attempted to set unreasonably large block: %zu bytes\n", count);
return dest;
}
// Cast to byte pointer
uint8_t *d = (uint8_t *) dest;
uint8_t v = (uint8_t) value;
// If setting to zero, we can potentially use a faster method
if (v == 0 && count >= 8) {
// Check if pointer is 8-byte aligned
if (!((uintptr_t) dest & 7)) {
// Fast path: 64-bit aligned zero-fill
uint64_t *d64 = (uint64_t *) dest;
// Set 8 bytes at a time with zero
size_t qwords = count / 8;
for (size_t i = 0; i < qwords; i++) {
*d64++ = 0;
}
// Set remaining bytes
size_t offset = qwords * 8;
for (size_t i = offset; i < count; i++) {
d[i] = 0;
}
return dest;
}
}
// For non-zero values or small sizes, use byte-by-byte approach
// Fill the first few bytes until we reach 8-byte alignment
size_t i = 0;
while (i < count && ((uintptr_t) &d[i] & 7)) {
d[i++] = v;
}
// If the value is the same for each byte, use 64-bit optimization
if (count - i >= 8) {
// Create a 64-bit pattern from the byte
uint64_t pattern = 0;
for (int j = 0; j < 8; j++) {
pattern = (pattern << 8) | v;
}
// Set 8 bytes at a time with the pattern
uint64_t *d64 = (uint64_t *) &d[i];
size_t qwords = (count - i) / 8;
for (size_t j = 0; j < qwords; j++) {
*d64++ = pattern;
}
// Update index
i += qwords * 8;
}
// Set any remaining bytes
while (i < count) {
d[i++] = v;
}
return dest;
} | O0 | c | memset:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x4811
cmpq $0x0, -0x20(%rbp)
jne 0x481e
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4a3a
cmpq $0x4000000, -0x20(%rbp) # imm = 0x4000000
jbe 0x4835
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4a3a
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
movb %al, -0x29(%rbp)
movzbl -0x29(%rbp), %eax
cmpl $0x0, %eax
jne 0x48fe
cmpq $0x8, -0x20(%rbp)
jb 0x48fe
movq -0x10(%rbp), %rax
andq $0x7, %rax
cmpq $0x0, %rax
jne 0x48fc
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x48b7
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, -0x38(%rbp)
movq $0x0, (%rax)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x4889
movq -0x40(%rbp), %rax
shlq $0x3, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x48ef
movq -0x28(%rbp), %rax
movq -0x58(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x48cb
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4a3a
jmp 0x48fe
movq $0x0, -0x60(%rbp)
movq -0x60(%rbp), %rcx
xorl %eax, %eax
cmpq -0x20(%rbp), %rcx
movb %al, -0x89(%rbp)
jae 0x4931
movq -0x28(%rbp), %rax
addq -0x60(%rbp), %rax
andq $0x7, %rax
cmpq $0x0, %rax
setne %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
testb $0x1, %al
jne 0x493d
jmp 0x4958
movb -0x29(%rbp), %dl
movq -0x28(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x60(%rbp)
movb %dl, (%rax,%rcx)
jmp 0x4906
movq -0x20(%rbp), %rax
subq -0x60(%rbp), %rax
cmpq $0x8, %rax
jb 0x4a0b
movq $0x0, -0x68(%rbp)
movl $0x0, -0x6c(%rbp)
cmpl $0x8, -0x6c(%rbp)
jge 0x499d
movq -0x68(%rbp), %rax
shlq $0x8, %rax
movzbl -0x29(%rbp), %ecx
orq %rcx, %rax
movq %rax, -0x68(%rbp)
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
jmp 0x4979
movq -0x28(%rbp), %rax
addq -0x60(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x20(%rbp), %rax
subq -0x60(%rbp), %rax
shrq $0x3, %rax
movq %rax, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x80(%rbp), %rax
jae 0x49fb
movq -0x68(%rbp), %rcx
movq -0x78(%rbp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x49c4
movq -0x80(%rbp), %rax
shlq $0x3, %rax
addq -0x60(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x4a0d
movq -0x60(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0x4a32
movb -0x29(%rbp), %dl
movq -0x28(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x60(%rbp)
movb %dl, (%rax,%rcx)
jmp 0x4a0d
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
| _memset:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
cmp [rbp+var_10], 0
jz short loc_4811
cmp [rbp+var_20], 0
jnz short loc_481E
loc_4811:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_4A3A
loc_481E:
cmp [rbp+var_20], offset unk_4000000
jbe short loc_4835
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_4A3A
loc_4835:
mov rax, [rbp+var_10]
mov [rbp+var_28], rax
mov eax, [rbp+var_14]
mov [rbp+var_29], al
movzx eax, [rbp+var_29]
cmp eax, 0
jnz loc_48FE
cmp [rbp+var_20], 8
jb loc_48FE
mov rax, [rbp+var_10]
and rax, 7
cmp rax, 0
jnz loc_48FC
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_20]
shr rax, 3
mov [rbp+var_40], rax
mov [rbp+var_48], 0
loc_4889:
mov rax, [rbp+var_48]
cmp rax, [rbp+var_40]
jnb short loc_48B7
mov rax, [rbp+var_38]
mov rcx, rax
add rcx, 8
mov [rbp+var_38], rcx
mov qword ptr [rax], 0
mov rax, [rbp+var_48]
add rax, 1
mov [rbp+var_48], rax
jmp short loc_4889
loc_48B7:
mov rax, [rbp+var_40]
shl rax, 3
mov [rbp+var_50], rax
mov rax, [rbp+var_50]
mov [rbp+var_58], rax
loc_48CB:
mov rax, [rbp+var_58]
cmp rax, [rbp+var_20]
jnb short loc_48EF
mov rax, [rbp+var_28]
mov rcx, [rbp+var_58]
mov byte ptr [rax+rcx], 0
mov rax, [rbp+var_58]
add rax, 1
mov [rbp+var_58], rax
jmp short loc_48CB
loc_48EF:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
jmp loc_4A3A
loc_48FC:
jmp short $+2
loc_48FE:
mov [rbp+var_60], 0
loc_4906:
mov rcx, [rbp+var_60]
xor eax, eax
cmp rcx, [rbp+var_20]
mov [rbp+var_89], al
jnb short loc_4931
mov rax, [rbp+var_28]
add rax, [rbp+var_60]
and rax, 7
cmp rax, 0
setnz al
mov [rbp+var_89], al
loc_4931:
mov al, [rbp+var_89]
test al, 1
jnz short loc_493D
jmp short loc_4958
loc_493D:
mov dl, [rbp+var_29]
mov rax, [rbp+var_28]
mov rcx, [rbp+var_60]
mov rsi, rcx
add rsi, 1
mov [rbp+var_60], rsi
mov [rax+rcx], dl
jmp short loc_4906
loc_4958:
mov rax, [rbp+var_20]
sub rax, [rbp+var_60]
cmp rax, 8
jb loc_4A0B
mov [rbp+var_68], 0
mov [rbp+var_6C], 0
loc_4979:
cmp [rbp+var_6C], 8
jge short loc_499D
mov rax, [rbp+var_68]
shl rax, 8
movzx ecx, [rbp+var_29]
or rax, rcx
mov [rbp+var_68], rax
mov eax, [rbp+var_6C]
add eax, 1
mov [rbp+var_6C], eax
jmp short loc_4979
loc_499D:
mov rax, [rbp+var_28]
add rax, [rbp+var_60]
mov [rbp+var_78], rax
mov rax, [rbp+var_20]
sub rax, [rbp+var_60]
shr rax, 3
mov [rbp+var_80], rax
mov [rbp+var_88], 0
loc_49C4:
mov rax, [rbp+var_88]
cmp rax, [rbp+var_80]
jnb short loc_49FB
mov rcx, [rbp+var_68]
mov rax, [rbp+var_78]
mov rdx, rax
add rdx, 8
mov [rbp+var_78], rdx
mov [rax], rcx
mov rax, [rbp+var_88]
add rax, 1
mov [rbp+var_88], rax
jmp short loc_49C4
loc_49FB:
mov rax, [rbp+var_80]
shl rax, 3
add rax, [rbp+var_60]
mov [rbp+var_60], rax
loc_4A0B:
jmp short $+2
loc_4A0D:
mov rax, [rbp+var_60]
cmp rax, [rbp+var_20]
jnb short loc_4A32
mov dl, [rbp+var_29]
mov rax, [rbp+var_28]
mov rcx, [rbp+var_60]
mov rsi, rcx
add rsi, 1
mov [rbp+var_60], rsi
mov [rax+rcx], dl
jmp short loc_4A0D
loc_4A32:
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_4A3A:
mov rax, [rbp+var_8]
add rsp, 10h
pop rbp
retn
| _QWORD * memset(_QWORD *a1, unsigned __int8 a2, unsigned long long a3)
{
_QWORD *v3; // rax
unsigned long long v4; // rcx
unsigned long long *v5; // rax
unsigned long long v6; // rcx
bool v8; // [rsp+1h] [rbp-89h]
unsigned long long k; // [rsp+2h] [rbp-88h]
unsigned long long v10; // [rsp+Ah] [rbp-80h]
unsigned long long *v11; // [rsp+12h] [rbp-78h]
int j; // [rsp+1Eh] [rbp-6Ch]
unsigned long long v13; // [rsp+22h] [rbp-68h]
unsigned long long i; // [rsp+2Ah] [rbp-60h]
unsigned long long n; // [rsp+32h] [rbp-58h]
unsigned long long m; // [rsp+42h] [rbp-48h]
unsigned long long v17; // [rsp+4Ah] [rbp-40h]
_QWORD *v18; // [rsp+52h] [rbp-38h]
if ( !a1 || !a3 )
return a1;
if ( a3 > (unsigned long long)&unk_4000000 )
return a1;
if ( a2 || a3 < 8 || ((unsigned __int8)a1 & 7) != 0 )
{
for ( i = 0LL; ; ++i )
{
v8 = 0;
if ( i < a3 )
v8 = (((_BYTE)i + (_BYTE)a1) & 7) != 0LL;
if ( !v8 )
break;
v4 = i;
*((_BYTE *)a1 + v4) = a2;
}
if ( a3 - i >= 8 )
{
v13 = 0LL;
for ( j = 0; j < 8; ++j )
v13 = a2 | (v13 << 8);
v11 = (_QWORD *)((char *)a1 + i);
v10 = (a3 - i) >> 3;
for ( k = 0LL; k < v10; ++k )
{
v5 = v11++;
*v5 = v13;
}
i += 8 * v10;
}
while ( i < a3 )
{
v6 = i++;
*((_BYTE *)a1 + v6) = a2;
}
return a1;
}
else
{
v18 = a1;
v17 = a3 >> 3;
for ( m = 0LL; m < v17; ++m )
{
v3 = v18++;
*v3 = 0LL;
}
for ( n = 8 * v17; n < a3; ++n )
*((_BYTE *)a1 + n) = 0;
return a1;
}
}
| _memset:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00104811
CMP qword ptr [RBP + -0x20],0x0
JNZ 0x0010481e
LAB_00104811:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00104a3a
LAB_0010481e:
CMP qword ptr [RBP + -0x20],0x4000000
JBE 0x00104835
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00104a3a
LAB_00104835:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x14]
MOV byte ptr [RBP + -0x29],AL
MOVZX EAX,byte ptr [RBP + -0x29]
CMP EAX,0x0
JNZ 0x001048fe
CMP qword ptr [RBP + -0x20],0x8
JC 0x001048fe
MOV RAX,qword ptr [RBP + -0x10]
AND RAX,0x7
CMP RAX,0x0
JNZ 0x001048fc
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x20]
SHR RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
MOV qword ptr [RBP + -0x48],0x0
LAB_00104889:
MOV RAX,qword ptr [RBP + -0x48]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x001048b7
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,RAX
ADD RCX,0x8
MOV qword ptr [RBP + -0x38],RCX
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x1
MOV qword ptr [RBP + -0x48],RAX
JMP 0x00104889
LAB_001048b7:
MOV RAX,qword ptr [RBP + -0x40]
SHL RAX,0x3
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x58],RAX
LAB_001048cb:
MOV RAX,qword ptr [RBP + -0x58]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001048ef
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x58]
MOV byte ptr [RAX + RCX*0x1],0x0
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,0x1
MOV qword ptr [RBP + -0x58],RAX
JMP 0x001048cb
LAB_001048ef:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00104a3a
LAB_001048fc:
JMP 0x001048fe
LAB_001048fe:
MOV qword ptr [RBP + -0x60],0x0
LAB_00104906:
MOV RCX,qword ptr [RBP + -0x60]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x20]
MOV byte ptr [RBP + -0x89],AL
JNC 0x00104931
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x60]
AND RAX,0x7
CMP RAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x89],AL
LAB_00104931:
MOV AL,byte ptr [RBP + -0x89]
TEST AL,0x1
JNZ 0x0010493d
JMP 0x00104958
LAB_0010493d:
MOV DL,byte ptr [RBP + -0x29]
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x60]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RBP + -0x60],RSI
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x00104906
LAB_00104958:
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,qword ptr [RBP + -0x60]
CMP RAX,0x8
JC 0x00104a0b
MOV qword ptr [RBP + -0x68],0x0
MOV dword ptr [RBP + -0x6c],0x0
LAB_00104979:
CMP dword ptr [RBP + -0x6c],0x8
JGE 0x0010499d
MOV RAX,qword ptr [RBP + -0x68]
SHL RAX,0x8
MOVZX ECX,byte ptr [RBP + -0x29]
OR RAX,RCX
MOV qword ptr [RBP + -0x68],RAX
MOV EAX,dword ptr [RBP + -0x6c]
ADD EAX,0x1
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x00104979
LAB_0010499d:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x78],RAX
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,qword ptr [RBP + -0x60]
SHR RAX,0x3
MOV qword ptr [RBP + -0x80],RAX
MOV qword ptr [RBP + -0x88],0x0
LAB_001049c4:
MOV RAX,qword ptr [RBP + -0x88]
CMP RAX,qword ptr [RBP + -0x80]
JNC 0x001049fb
MOV RCX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x78]
MOV RDX,RAX
ADD RDX,0x8
MOV qword ptr [RBP + -0x78],RDX
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x88]
ADD RAX,0x1
MOV qword ptr [RBP + -0x88],RAX
JMP 0x001049c4
LAB_001049fb:
MOV RAX,qword ptr [RBP + -0x80]
SHL RAX,0x3
ADD RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x60],RAX
LAB_00104a0b:
JMP 0x00104a0d
LAB_00104a0d:
MOV RAX,qword ptr [RBP + -0x60]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x00104a32
MOV DL,byte ptr [RBP + -0x29]
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x60]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RBP + -0x60],RSI
MOV byte ptr [RAX + RCX*0x1],DL
JMP 0x00104a0d
LAB_00104a32:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_00104a3a:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x10
POP RBP
RET
|
int8 * _memset(int8 *param_1,byte param_2,ulong param_3)
{
ulong uVar1;
ulong local_90;
ulong *local_80;
int local_74;
ulong local_70;
ulong local_68;
ulong local_60;
ulong local_50;
int8 *local_40;
if (((param_1 != (int8 *)0x0) && (param_3 != 0)) && (param_3 < 0x4000001)) {
if (((param_2 == 0) && (7 < param_3)) && (((ulong)param_1 & 7) == 0)) {
local_40 = param_1;
for (local_50 = 0; local_50 < param_3 >> 3; local_50 = local_50 + 1) {
*local_40 = 0;
local_40 = local_40 + 1;
}
for (local_60 = (param_3 >> 3) << 3; local_60 < param_3; local_60 = local_60 + 1) {
*(int1 *)((long)param_1 + local_60) = 0;
}
}
else {
local_68 = 0;
while (local_68 < param_3 && ((long)param_1 + local_68 & 7) != 0) {
*(byte *)((long)param_1 + local_68) = param_2;
local_68 = local_68 + 1;
}
if (7 < param_3 - local_68) {
local_70 = 0;
for (local_74 = 0; local_74 < 8; local_74 = local_74 + 1) {
local_70 = local_70 << 8 | (ulong)param_2;
}
uVar1 = param_3 - local_68 >> 3;
local_80 = (ulong *)((long)param_1 + local_68);
for (local_90 = 0; local_90 < uVar1; local_90 = local_90 + 1) {
*local_80 = local_70;
local_80 = local_80 + 1;
}
local_68 = uVar1 * 8 + local_68;
}
while (local_68 < param_3) {
*(byte *)((long)param_1 + local_68) = param_2;
local_68 = local_68 + 1;
}
}
}
return param_1;
}
| |
52,265 | my_casedn_str_utf8mb3 | eloqsql/strings/ctype-utf8.c | static size_t my_casedn_str_utf8mb3(CHARSET_INFO *cs, char *src)
{
my_wc_t wc;
int srcres, dstres;
char *dst= src, *dst0= src;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(cs->casedn_multiply == 1);
while (*src &&
(srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_tolower_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
/*
In rare cases lower string can be shorter than
the original string, for example:
"U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE"
(which is 0xC4B0 in utf8mb3, i.e. two bytes)
is converted into
"U+0069 LATIN SMALL LETTER I"
(which is 0x69 in utf8mb3, i.e. one byte)
So, we need to put '\0' terminator after converting.
*/
*dst= '\0';
return (size_t) (dst - dst0);
} | O3 | c | my_casedn_str_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %r14
je 0x4f042
movq 0x78(%rdi), %r13
leaq -0x30(%rbp), %r15
movq %rbx, %r12
movq %rbx, %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0x4f830
testl %eax, %eax
je 0x4f042
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rcx
movzbl %ch, %esi
movq (%rdx,%rsi,8), %rdx
testq %rdx, %rdx
je 0x4efd1
movzbl %cl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rdx,%rcx,4), %ecx
movq %rcx, -0x30(%rbp)
movl $0x1, %edx
cmpq $0x80, %rcx
jb 0x4f02b
movl $0x2, %edx
cmpq $0x800, %rcx # imm = 0x800
jb 0x4f012
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x4f042
movl %ecx, %edx
andb $0x3f, %dl
orb $-0x80, %dl
movb %dl, 0x2(%r14)
shrq $0x6, %rcx
orq $0x800, %rcx # imm = 0x800
movl $0x3, %edx
movl %ecx, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%r14)
shrq $0x6, %rcx
orq $0xc0, %rcx
movb %cl, (%r14)
movl %eax, %eax
addq %rdx, %r14
cmpb $0x0, (%r12,%rax)
leaq (%r12,%rax), %r12
jne 0x4ef9b
movb $0x0, (%r14)
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casedn_str_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp byte ptr [rsi], 0
mov r14, rsi
jz loc_4F042
mov r13, [rdi+78h]
lea r15, [rbp+var_30]
mov r12, rbx
mov r14, rbx
loc_4EF9B:
mov rdi, r15
mov rsi, r12
call my_utf8mb3_uni_no_range
test eax, eax
jz loc_4F042
mov rdx, [r13+8]
mov rcx, [rbp+var_30]
movzx esi, ch
mov rdx, [rdx+rsi*8]
test rdx, rdx
jz short loc_4EFD1
movzx ecx, cl
lea rcx, [rcx+rcx*2]
mov ecx, [rdx+rcx*4+4]
mov [rbp+var_30], rcx
loc_4EFD1:
mov edx, 1
cmp rcx, 80h
jb short loc_4F02B
mov edx, 2
cmp rcx, 800h
jb short loc_4F012
cmp rcx, 0FFFFh
ja short loc_4F042
mov edx, ecx
and dl, 3Fh
or dl, 80h
mov [r14+2], dl
shr rcx, 6
or rcx, 800h
mov edx, 3
loc_4F012:
mov esi, ecx
and sil, 3Fh
or sil, 80h
mov [r14+1], sil
shr rcx, 6
or rcx, 0C0h
loc_4F02B:
mov [r14], cl
mov eax, eax
add r14, rdx
cmp byte ptr [r12+rax], 0
lea r12, [r12+rax]
jnz loc_4EF9B
loc_4F042:
mov byte ptr [r14], 0
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_casedn_str_utf8mb3(long long a1, _BYTE *a2)
{
unsigned long long v2; // rax
_BYTE *v3; // r14
long long v4; // r13
_BYTE *v5; // r12
unsigned int v6; // eax
unsigned long long v7; // rcx
long long v8; // rdx
long long v9; // rdx
bool v10; // zf
unsigned long long v12; // [rsp+0h] [rbp-30h] BYREF
v12 = v2;
v3 = a2;
if ( *a2 )
{
v4 = *(_QWORD *)(a1 + 120);
v5 = a2;
v3 = a2;
do
{
v6 = my_utf8mb3_uni_no_range(&v12, v5);
if ( !v6 )
break;
v7 = v12;
v8 = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * BYTE1(v12));
if ( v8 )
{
v7 = *(unsigned int *)(v8 + 12LL * (unsigned __int8)v12 + 4);
v12 = v7;
}
v9 = 1LL;
if ( v7 >= 0x80 )
{
v9 = 2LL;
if ( v7 >= 0x800 )
{
if ( v7 > 0xFFFF )
break;
v3[2] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0x800;
v9 = 3LL;
}
v3[1] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0xC0;
}
*v3 = v7;
v3 += v9;
v10 = v5[v6] == 0;
v5 += v6;
}
while ( !v10 );
}
*v3 = 0;
return v3 - a2;
}
| my_casedn_str_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV R14,RSI
JZ 0x0014f042
MOV R13,qword ptr [RDI + 0x78]
LEA R15,[RBP + -0x30]
MOV R12,RBX
MOV R14,RBX
LAB_0014ef9b:
MOV RDI,R15
MOV RSI,R12
CALL 0x0014f830
TEST EAX,EAX
JZ 0x0014f042
MOV RDX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ESI,CH
MOV RDX,qword ptr [RDX + RSI*0x8]
TEST RDX,RDX
JZ 0x0014efd1
MOVZX ECX,CL
LEA RCX,[RCX + RCX*0x2]
MOV ECX,dword ptr [RDX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x30],RCX
LAB_0014efd1:
MOV EDX,0x1
CMP RCX,0x80
JC 0x0014f02b
MOV EDX,0x2
CMP RCX,0x800
JC 0x0014f012
CMP RCX,0xffff
JA 0x0014f042
MOV EDX,ECX
AND DL,0x3f
OR DL,0x80
MOV byte ptr [R14 + 0x2],DL
SHR RCX,0x6
OR RCX,0x800
MOV EDX,0x3
LAB_0014f012:
MOV ESI,ECX
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [R14 + 0x1],SIL
SHR RCX,0x6
OR RCX,0xc0
LAB_0014f02b:
MOV byte ptr [R14],CL
MOV EAX,EAX
ADD R14,RDX
CMP byte ptr [R12 + RAX*0x1],0x0
LEA R12,[R12 + RAX*0x1]
JNZ 0x0014ef9b
LAB_0014f042:
MOV byte ptr [R14],0x0
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_str_utf8mb3(long param_1,char *param_2)
{
char *pcVar1;
long lVar2;
uint uVar3;
ulong in_RAX;
ulong uVar4;
long lVar5;
char *pcVar6;
char *pcVar7;
ulong local_38;
pcVar7 = param_2;
if (*param_2 != '\0') {
lVar2 = *(long *)(param_1 + 0x78);
pcVar6 = param_2;
local_38 = in_RAX;
do {
uVar3 = my_utf8mb3_uni_no_range(&local_38,pcVar6);
if (uVar3 == 0) break;
lVar5 = *(long *)(*(long *)(lVar2 + 8) + (local_38 >> 8 & 0xff) * 8);
if (lVar5 != 0) {
local_38 = (ulong)*(uint *)(lVar5 + 4 + (local_38 & 0xff) * 0xc);
}
lVar5 = 1;
uVar4 = local_38;
if (0x7f < local_38) {
lVar5 = 2;
if (0x7ff < local_38) {
if (0xffff < local_38) break;
pcVar7[2] = (byte)local_38 & 0x3f | 0x80;
uVar4 = local_38 >> 6 | 0x800;
lVar5 = 3;
}
pcVar7[1] = (byte)uVar4 & 0x3f | 0x80;
uVar4 = uVar4 >> 6 | 0xc0;
}
*pcVar7 = (char)uVar4;
pcVar7 = pcVar7 + lVar5;
pcVar1 = pcVar6 + uVar3;
pcVar6 = pcVar6 + uVar3;
} while (*pcVar1 != '\0');
}
*pcVar7 = '\0';
return (long)pcVar7 - (long)param_2;
}
| |
52,266 | key_cache_write | eloqsql/mysys/mf_keycache.c | int key_cache_write(KEY_CACHE *keycache,
File file, void *file_extra,
my_off_t filepos, int level,
uchar *buff, uint length,
uint block_length, int force_write)
{
if (keycache->can_be_used)
return keycache->interface_funcs->write(keycache->keycache_cb,
file, file_extra,
filepos, level,
buff, length,
block_length, force_write);
/* We can't use mutex here as the key cache may not be initialized */
if (my_pwrite(file, buff, length, filepos, MYF(MY_NABP | MY_WAIT_IF_FULL)))
return 1;
return 0;
} | O3 | c | key_cache_write:
cmpb $0x0, 0x49(%rdi)
je 0x9b3ca
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rdi
movq 0x28(%rdi), %r11
movq %rax, %rdi
jmpq *%r11
pushq %rbp
movq %rsp, %rbp
movl 0x10(%rbp), %edx
movl $0x24, %r8d
movl %esi, %edi
movq %r9, %rsi
callq 0xa3466
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, %eax
popq %rbp
retq
| key_cache_write:
cmp byte ptr [rdi+49h], 0
jz short loc_9B3CA
mov rax, [rdi+8]
mov rdi, [rdi+10h]
mov r11, [rdi+28h]
mov rdi, rax
jmp r11
loc_9B3CA:
push rbp
mov rbp, rsp
mov edx, [rbp+10h]
mov r8d, 24h ; '$'
mov edi, esi
mov rsi, r9
call my_pwrite
xor ecx, ecx
test rax, rax
setnz cl
mov eax, ecx
pop rbp
retn
| long long key_cache_write(
long long a1,
unsigned int a2,
long long a3,
long long a4,
long long a5,
long long a6,
unsigned int a7)
{
if ( *(_BYTE *)(a1 + 73) )
return (*(long long ( **)(_QWORD))(*(_QWORD *)(a1 + 16) + 40LL))(*(_QWORD *)(a1 + 8));
else
return my_pwrite(a2, a6, a7, a4, 36LL) != 0;
}
| key_cache_write:
CMP byte ptr [RDI + 0x49],0x0
JZ 0x0019b3ca
MOV RAX,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RDI + 0x10]
MOV R11,qword ptr [RDI + 0x28]
MOV RDI,RAX
JMP R11
LAB_0019b3ca:
PUSH RBP
MOV RBP,RSP
MOV EDX,dword ptr [RBP + 0x10]
MOV R8D,0x24
MOV EDI,ESI
MOV RSI,R9
CALL 0x001a3466
XOR ECX,ECX
TEST RAX,RAX
SETNZ CL
MOV EAX,ECX
POP RBP
RET
|
ulong key_cache_write(long param_1,int4 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int4 param_7)
{
ulong uVar1;
long lVar2;
if (*(char *)(param_1 + 0x49) != '\0') {
/* WARNING: Could not recover jumptable at 0x0019b3c7. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar1 = (**(code **)(*(long *)(param_1 + 0x10) + 0x28))(*(int8 *)(param_1 + 8));
return uVar1;
}
lVar2 = my_pwrite(param_2,param_6,param_7,param_4,0x24);
return (ulong)(lVar2 != 0);
}
| |
52,267 | stbi__psd_is16(stbi__context*) | 7CodeWizard[P]stablediffusion/thirdparty/stb_image.h | static int stbi__psd_is16(stbi__context *s)
{
int channelCount, depth;
if (stbi__get32be(s) != 0x38425053) {
stbi__rewind( s );
return 0;
}
if (stbi__get16be(s) != 1) {
stbi__rewind( s );
return 0;
}
stbi__skip(s, 6);
channelCount = stbi__get16be(s);
if (channelCount < 0 || channelCount > 16) {
stbi__rewind( s );
return 0;
}
STBI_NOTUSED(stbi__get32be(s));
STBI_NOTUSED(stbi__get32be(s));
depth = stbi__get16be(s);
if (depth != 16) {
stbi__rewind( s );
return 0;
}
return 1;
} | O0 | c | stbi__psd_is16(stbi__context*):
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
callq 0x19ea0
cmpl $0x38425053, %eax # imm = 0x38425053
je 0x2dbf1
movq 0x8(%rsp), %rdi
callq 0x17f10
movl $0x0, 0x14(%rsp)
jmp 0x2dc82
movq 0x8(%rsp), %rdi
callq 0x19ee0
cmpl $0x1, %eax
je 0x2dc14
movq 0x8(%rsp), %rdi
callq 0x17f10
movl $0x0, 0x14(%rsp)
jmp 0x2dc82
movq 0x8(%rsp), %rdi
movl $0x6, %esi
callq 0x19dd0
movq 0x8(%rsp), %rdi
callq 0x19ee0
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jl 0x2dc3f
cmpl $0x10, 0x4(%rsp)
jle 0x2dc53
movq 0x8(%rsp), %rdi
callq 0x17f10
movl $0x0, 0x14(%rsp)
jmp 0x2dc82
movq 0x8(%rsp), %rdi
callq 0x19ee0
movl %eax, (%rsp)
cmpl $0x10, (%rsp)
je 0x2dc7a
movq 0x8(%rsp), %rdi
callq 0x17f10
movl $0x0, 0x14(%rsp)
jmp 0x2dc82
movl $0x1, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
| _ZL14stbi__psd_is16P13stbi__context:
sub rsp, 18h
mov [rsp+18h+var_10], rdi
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get32beP13stbi__context; stbi__get32be(stbi__context *)
cmp eax, 38425053h
jz short loc_2DBF1
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp loc_2DC82
loc_2DBF1:
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
cmp eax, 1
jz short loc_2DC14
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_2DC82
loc_2DC14:
mov rdi, [rsp+18h+var_10]
mov esi, 6
call _ZL10stbi__skipP13stbi__contexti; stbi__skip(stbi__context *,int)
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+18h+var_14], eax
cmp [rsp+18h+var_14], 0
jl short loc_2DC3F
cmp [rsp+18h+var_14], 10h
jle short loc_2DC53
loc_2DC3F:
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_2DC82
loc_2DC53:
mov rdi, [rsp+18h+var_10]
call _ZL13stbi__get16beP13stbi__context; stbi__get16be(stbi__context *)
mov [rsp+18h+var_18], eax
cmp [rsp+18h+var_18], 10h
jz short loc_2DC7A
mov rdi, [rsp+18h+var_10]
call _ZL12stbi__rewindP13stbi__context; stbi__rewind(stbi__context *)
mov [rsp+18h+var_4], 0
jmp short loc_2DC82
loc_2DC7A:
mov [rsp+18h+var_4], 1
loc_2DC82:
mov eax, [rsp+18h+var_4]
add rsp, 18h
retn
| long long stbi__psd_is16(_QWORD *a1)
{
if ( (unsigned int)stbi__get32be((long long)a1) == 943870035
&& (unsigned int)stbi__get16be((long long)a1) == 1
&& (stbi__skip((long long)a1, 6), (unsigned int)stbi__get16be((long long)a1) <= 0x10)
&& (unsigned int)stbi__get16be((long long)a1) == 16 )
{
return 1;
}
else
{
stbi__rewind(a1);
return 0;
}
}
| stbi__psd_is16:
SUB RSP,0x18
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00119ea0
CMP EAX,0x38425053
JZ 0x0012dbf1
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00117f10
MOV dword ptr [RSP + 0x14],0x0
JMP 0x0012dc82
LAB_0012dbf1:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00119ee0
CMP EAX,0x1
JZ 0x0012dc14
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00117f10
MOV dword ptr [RSP + 0x14],0x0
JMP 0x0012dc82
LAB_0012dc14:
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x6
CALL 0x00119dd0
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00119ee0
MOV dword ptr [RSP + 0x4],EAX
CMP dword ptr [RSP + 0x4],0x0
JL 0x0012dc3f
CMP dword ptr [RSP + 0x4],0x10
JLE 0x0012dc53
LAB_0012dc3f:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00117f10
MOV dword ptr [RSP + 0x14],0x0
JMP 0x0012dc82
LAB_0012dc53:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00119ee0
MOV dword ptr [RSP],EAX
CMP dword ptr [RSP],0x10
JZ 0x0012dc7a
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x00117f10
MOV dword ptr [RSP + 0x14],0x0
JMP 0x0012dc82
LAB_0012dc7a:
MOV dword ptr [RSP + 0x14],0x1
LAB_0012dc82:
MOV EAX,dword ptr [RSP + 0x14]
ADD RSP,0x18
RET
|
/* stbi__psd_is16(stbi__context*) */
int4 stbi__psd_is16(stbi__context *param_1)
{
int iVar1;
int4 local_4;
iVar1 = stbi__get32be(param_1);
if (iVar1 == 0x38425053) {
iVar1 = stbi__get16be(param_1);
if (iVar1 == 1) {
stbi__skip(param_1,6);
iVar1 = stbi__get16be(param_1);
if ((iVar1 < 0) || (0x10 < iVar1)) {
stbi__rewind(param_1);
local_4 = 0;
}
else {
iVar1 = stbi__get16be(param_1);
if (iVar1 == 0x10) {
local_4 = 1;
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
}
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
}
else {
stbi__rewind(param_1);
local_4 = 0;
}
return local_4;
}
| |
52,268 | my_strnxfrm_unicode_full_bin | eloqsql/strings/ctype-utf8.c | size_t
my_strnxfrm_unicode_full_bin(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
uchar *dst0= dst;
uchar *de= dst + dstlen;
dst+= my_strnxfrm_unicode_full_bin_internal(cs, dst, de, &nweights,
src, src + srclen);
DBUG_ASSERT(dst <= de); /* Safety */
if (flags & MY_STRXFRM_PAD_WITH_SPACE)
{
for ( ; dst < de && nweights; nweights--)
{
*dst++= 0x00;
if (dst < de)
{
*dst++= 0x00;
if (dst < de)
*dst++= 0x20;
}
}
}
my_strxfrm_desc_and_reverse(dst0, dst, flags, 0);
if (flags & MY_STRXFRM_PAD_TO_MAXLEN)
{
while (dst < de)
{
*dst++= 0x00;
if (dst < de)
{
*dst++= 0x00;
if (dst < de)
*dst++= 0x20;
}
}
}
return dst - dst0;
} | O3 | c | my_strnxfrm_unicode_full_bin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movl 0x10(%rbp), %r15d
leaq -0x24(%rbp), %rax
movl %ecx, (%rax)
leaq (%rsi,%rdx), %r14
addq %r8, %r9
movq %r14, %rdx
movq %rax, %rcx
callq 0x5767f
leaq (%rbx,%rax), %rcx
testb $0x40, %r15b
jne 0x577c8
movq %rcx, %r12
movq %rbx, %rdi
movq %r12, %rsi
movl %r15d, %edx
xorl %ecx, %ecx
callq 0x42626
testb %r15b, %r15b
setns %al
cmpq %r14, %r12
setae %cl
orb %al, %cl
jne 0x57814
leaq 0x1(%r12), %rax
movb $0x0, (%r12)
cmpq %r14, %rax
jae 0x577be
leaq 0x2(%r12), %rax
movb $0x0, 0x1(%r12)
cmpq %r14, %rax
jae 0x577be
movb $0x20, 0x2(%r12)
addq $0x3, %r12
movq %r12, %rax
movq %rax, %r12
cmpq %r14, %rax
jb 0x57792
jmp 0x57817
cmpq %r12, %rax
jge 0x5776b
cmpl $0x0, -0x24(%rbp)
je 0x5776b
leaq 0x1(%rcx), %r12
movb $0x0, (%rcx)
cmpq %r14, %r12
jae 0x577f7
leaq 0x2(%rcx), %r12
movb $0x0, 0x1(%rcx)
cmpq %r14, %r12
jae 0x577f7
movb $0x20, 0x2(%rcx)
addq $0x3, %rcx
movq %rcx, %r12
movl -0x24(%rbp), %eax
decl %eax
movl %eax, -0x24(%rbp)
cmpq %r14, %r12
jae 0x5776e
movq %r12, %rcx
testl %eax, %eax
jne 0x577d3
jmp 0x5776e
movq %r12, %rax
subq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_unicode_full_bin:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r12, rdx
mov rbx, rsi
mov r15d, [rbp+arg_0]
lea rax, [rbp+var_24]
mov [rax], ecx
lea r14, [rsi+rdx]
add r9, r8
mov rdx, r14
mov rcx, rax
call my_strnxfrm_unicode_full_bin_internal
lea rcx, [rbx+rax]
test r15b, 40h
jnz short loc_577C8
loc_5776B:
mov r12, rcx
loc_5776E:
mov rdi, rbx
mov rsi, r12
mov edx, r15d
xor ecx, ecx
call my_strxfrm_desc_and_reverse
test r15b, r15b
setns al
cmp r12, r14
setnb cl
or cl, al
jnz loc_57814
loc_57792:
lea rax, [r12+1]
mov byte ptr [r12], 0
cmp rax, r14
jnb short loc_577BE
lea rax, [r12+2]
mov byte ptr [r12+1], 0
cmp rax, r14
jnb short loc_577BE
mov byte ptr [r12+2], 20h ; ' '
add r12, 3
mov rax, r12
loc_577BE:
mov r12, rax
cmp rax, r14
jb short loc_57792
jmp short loc_57817
loc_577C8:
cmp rax, r12
jge short loc_5776B
cmp [rbp+var_24], 0
jz short loc_5776B
loc_577D3:
lea r12, [rcx+1]
mov byte ptr [rcx], 0
cmp r12, r14
jnb short loc_577F7
lea r12, [rcx+2]
mov byte ptr [rcx+1], 0
cmp r12, r14
jnb short loc_577F7
mov byte ptr [rcx+2], 20h ; ' '
add rcx, 3
mov r12, rcx
loc_577F7:
mov eax, [rbp+var_24]
dec eax
mov [rbp+var_24], eax
cmp r12, r14
jnb loc_5776E
mov rcx, r12
test eax, eax
jnz short loc_577D3
jmp loc_5776E
loc_57814:
mov rax, r12
loc_57817:
sub rax, rbx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_unicode_full_bin(
long long a1,
_BYTE *a2,
long long a3,
int a4,
long long a5,
long long a6,
unsigned int a7)
{
unsigned long long v8; // r14
long long v9; // rax
_BYTE *v10; // rcx
_BYTE *v11; // r12
_BYTE *v12; // rax
int v13; // eax
int v15[9]; // [rsp+Ch] [rbp-24h] BYREF
v15[0] = a4;
v8 = (unsigned long long)&a2[a3];
v9 = my_strnxfrm_unicode_full_bin_internal(a1, a2, (unsigned long long)&a2[a3], v15, a5, a5 + a6);
v10 = &a2[v9];
if ( (a7 & 0x40) != 0 && v9 < a3 && v15[0] )
{
do
{
v11 = v10 + 1;
*v10 = 0;
if ( (unsigned long long)(v10 + 1) < v8 )
{
v11 = v10 + 2;
v10[1] = 0;
if ( (unsigned long long)(v10 + 2) < v8 )
{
v10[2] = 32;
v11 = v10 + 3;
}
}
v13 = --v15[0];
if ( (unsigned long long)v11 >= v8 )
break;
v10 = v11;
}
while ( v13 );
}
else
{
v11 = &a2[v9];
}
my_strxfrm_desc_and_reverse(a2, v11, a7, 0);
if ( (a7 & 0x80u) == 0 || (unsigned long long)v11 >= v8 )
{
v12 = v11;
}
else
{
do
{
v12 = v11 + 1;
*v11 = 0;
if ( (unsigned long long)(v11 + 1) < v8 )
{
v12 = v11 + 2;
v11[1] = 0;
if ( (unsigned long long)(v11 + 2) < v8 )
{
v11[2] = 32;
v12 = v11 + 3;
}
}
v11 = v12;
}
while ( (unsigned long long)v12 < v8 );
}
return v12 - a2;
}
| my_strnxfrm_unicode_full_bin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R12,RDX
MOV RBX,RSI
MOV R15D,dword ptr [RBP + 0x10]
LEA RAX,[RBP + -0x24]
MOV dword ptr [RAX],ECX
LEA R14,[RSI + RDX*0x1]
ADD R9,R8
MOV RDX,R14
MOV RCX,RAX
CALL 0x0015767f
LEA RCX,[RBX + RAX*0x1]
TEST R15B,0x40
JNZ 0x001577c8
LAB_0015776b:
MOV R12,RCX
LAB_0015776e:
MOV RDI,RBX
MOV RSI,R12
MOV EDX,R15D
XOR ECX,ECX
CALL 0x00142626
TEST R15B,R15B
SETNS AL
CMP R12,R14
SETNC CL
OR CL,AL
JNZ 0x00157814
LAB_00157792:
LEA RAX,[R12 + 0x1]
MOV byte ptr [R12],0x0
CMP RAX,R14
JNC 0x001577be
LEA RAX,[R12 + 0x2]
MOV byte ptr [R12 + 0x1],0x0
CMP RAX,R14
JNC 0x001577be
MOV byte ptr [R12 + 0x2],0x20
ADD R12,0x3
MOV RAX,R12
LAB_001577be:
MOV R12,RAX
CMP RAX,R14
JC 0x00157792
JMP 0x00157817
LAB_001577c8:
CMP RAX,R12
JGE 0x0015776b
CMP dword ptr [RBP + -0x24],0x0
JZ 0x0015776b
LAB_001577d3:
LEA R12,[RCX + 0x1]
MOV byte ptr [RCX],0x0
CMP R12,R14
JNC 0x001577f7
LEA R12,[RCX + 0x2]
MOV byte ptr [RCX + 0x1],0x0
CMP R12,R14
JNC 0x001577f7
MOV byte ptr [RCX + 0x2],0x20
ADD RCX,0x3
MOV R12,RCX
LAB_001577f7:
MOV EAX,dword ptr [RBP + -0x24]
DEC EAX
MOV dword ptr [RBP + -0x24],EAX
CMP R12,R14
JNC 0x0015776e
MOV RCX,R12
TEST EAX,EAX
JNZ 0x001577d3
JMP 0x0015776e
LAB_00157814:
MOV RAX,R12
LAB_00157817:
SUB RAX,RBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
long my_strnxfrm_unicode_full_bin
(int8 param_1,long param_2,long param_3,int param_4,long param_5,long param_6,
uint param_7)
{
int1 *puVar1;
long lVar2;
int1 *puVar3;
int1 *puVar4;
int local_2c;
puVar1 = (int1 *)(param_2 + param_3);
local_2c = param_4;
lVar2 = my_strnxfrm_unicode_full_bin_internal
(param_1,param_2,puVar1,&local_2c,param_5,param_6 + param_5);
puVar4 = (int1 *)(param_2 + lVar2);
if (((param_7 & 0x40) != 0) && (lVar2 < param_3)) {
do {
if (local_2c == 0) break;
puVar3 = puVar4 + 1;
*puVar4 = 0;
if (puVar3 < puVar1) {
puVar3 = puVar4 + 2;
puVar4[1] = 0;
if (puVar3 < puVar1) {
puVar4[2] = 0x20;
puVar3 = puVar4 + 3;
}
}
local_2c = local_2c + -1;
puVar4 = puVar3;
} while (puVar3 < puVar1);
}
my_strxfrm_desc_and_reverse(param_2,puVar4,param_7,0);
puVar3 = puVar4;
if (puVar4 < puVar1 && (char)param_7 < '\0') {
do {
puVar4 = puVar3 + 1;
*puVar3 = 0;
if (puVar4 < puVar1) {
puVar4 = puVar3 + 2;
puVar3[1] = 0;
if (puVar4 < puVar1) {
puVar3[2] = 0x20;
puVar4 = puVar3 + 3;
}
}
puVar3 = puVar4;
} while (puVar4 < puVar1);
}
return (long)puVar4 - param_2;
}
| |
52,269 | 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 "";
} | O0 | cpp | minja::Parser::consumeToken(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, minja::SpaceHandling):
subq $0xb8, %rsp
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movl %ecx, 0x9c(%rsp)
movq 0xa8(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0x90(%rsp)
movl 0x9c(%rsp), %esi
callq 0x9b0b0
leaq 0x70(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x76d30
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
movq 0x20(%rax), %rcx
movq %rcx, 0x68(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0xa0(%rsp), %rcx
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
xorl %r8d, %r8d
callq 0x7a3f0
movb %al, 0x4e(%rsp)
jmp 0x77943
movb 0x4e(%rsp), %al
testb $0x1, %al
jne 0x77950
jmp 0x779e0
xorl %eax, %eax
movl %eax, %esi
leaq 0x70(%rsp), %rdi
callq 0x7a490
movq %rax, 0x20(%rsp)
jmp 0x77965
movq 0x20(%rsp), %rax
cmpq $0x0, %rax
jne 0x779e0
xorl %eax, %eax
movl %eax, %esi
leaq 0x70(%rsp), %rdi
callq 0x9b140
movq %rax, 0x18(%rsp)
jmp 0x77985
movq 0x18(%rsp), %rdi
callq 0x9b1b0
movq 0x38(%rsp), %rdi
movq %rax, %rsi
addq $0x20, %rdi
callq 0x9b220
xorl %eax, %eax
movl %eax, %esi
leaq 0x70(%rsp), %rdi
callq 0x9b140
movq %rax, 0x10(%rsp)
jmp 0x779b5
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdi
callq 0x9b2c0
jmp 0x779c6
movl $0x1, 0x50(%rsp)
jmp 0x77a46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x77a5d
movq 0x38(%rsp), %rax
movq 0x90(%rsp), %rcx
movq %rcx, 0x20(%rax)
leaq 0x4f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x50d60
movq 0x28(%rsp), %rdi
movq 0x8(%rsp), %rdx
leaq 0x15363f(%rip), %rsi # 0x1cb050
callq 0x61bd0
jmp 0x77a18
leaq 0x4f(%rsp), %rdi
callq 0x510a0
movl $0x1, 0x50(%rsp)
jmp 0x77a46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x4f(%rsp), %rdi
callq 0x510a0
jmp 0x77a5d
leaq 0x70(%rsp), %rdi
callq 0x7a7a0
movq 0x30(%rsp), %rax
addq $0xb8, %rsp
retq
leaq 0x70(%rsp), %rdi
callq 0x7a7a0
movq 0x58(%rsp), %rdi
callq 0x50940
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE:
sub rsp, 0B8h
mov [rsp+0B8h+var_90], rdi
mov rax, rdi
mov [rsp+0B8h+var_88], rax
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov [rsp+0B8h+var_18], rdx
mov [rsp+0B8h+var_1C], ecx
mov rdi, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_80], rdi
mov rax, [rdi+20h]
mov [rsp+0B8h+var_28], rax
mov esi, [rsp+0B8h+var_1C]
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
lea rdi, [rsp+0B8h+var_48]
mov [rsp+0B8h+var_78], rdi
call _ZNSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEEC2Ev; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::match_results(void)
mov rax, [rsp+0B8h+var_80]
mov rdx, [rsp+0B8h+var_78]
mov rcx, [rax+20h]
mov [rsp+0B8h+var_50], rcx
mov rax, [rax+18h]
mov [rsp+0B8h+var_58], rax
mov rcx, [rsp+0B8h+var_18]
mov rdi, [rsp+0B8h+var_50]
mov rsi, [rsp+0B8h+var_58]
xor r8d, r8d
call _ZSt12regex_searchIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS4_9sub_matchISA_EEEcNS4_12regex_traitsIcEEEbT_SG_RNS4_13match_resultsISG_T0_EERKNS4_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::regex_search<__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>>(__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)
mov [rsp+0B8h+var_6A], al
jmp short $+2
loc_77943:
mov al, [rsp+0B8h+var_6A]
test al, 1
jnz short loc_77950
jmp loc_779E0
loc_77950:
xor eax, eax
mov esi, eax
lea rdi, [rsp+0B8h+var_48]
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)
mov [rsp+0B8h+var_98], rax
jmp short $+2
loc_77965:
mov rax, [rsp+0B8h+var_98]
cmp rax, 0
jnz short loc_779E0
xor eax, eax
mov esi, eax
lea rdi, [rsp+0B8h+var_48]
call _ZNKSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEEixEm; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::operator[](ulong)
mov [rsp+0B8h+var_A0], rax
jmp short $+2
loc_77985:
mov rdi, [rsp+0B8h+var_A0]
call _ZNKSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEE6lengthEv; std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::length(void)
mov rdi, [rsp+0B8h+var_80]
mov rsi, rax
add rdi, 20h ; ' '
call _ZN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEpLEl; __gnu_cxx::__normal_iterator<char const*,std::string>::operator+=(long)
xor eax, eax
mov esi, eax
lea rdi, [rsp+0B8h+var_48]
call _ZNKSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEEixEm; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::operator[](ulong)
mov [rsp+0B8h+var_A8], rax
jmp short $+2
loc_779B5:
mov rsi, [rsp+0B8h+var_A8]
mov rdi, [rsp+0B8h+var_90]
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 $+2
loc_779C6:
mov [rsp+0B8h+var_68], 1
jmp short loc_77A46
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_77A5D
loc_779E0:
mov rax, [rsp+0B8h+var_80]
mov rcx, [rsp+0B8h+var_28]
mov [rax+20h], rcx
lea rdi, [rsp+0B8h+var_69]
mov [rsp+0B8h+var_B0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdi, [rsp+0B8h+var_90]
mov rdx, [rsp+0B8h+var_B0]
lea rsi, aSJinja+16h; ""
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_77A18:
lea rdi, [rsp+0B8h+var_69]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
mov [rsp+0B8h+var_68], 1
jmp short loc_77A46
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_47]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_77A5D
loc_77A46:
lea rdi, [rsp+0B8h+var_48]
call _ZNSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEED2Ev; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::~match_results()
mov rax, [rsp+0B8h+var_88]
add rsp, 0B8h
retn
loc_77A5D:
lea rdi, [rsp+arg_68]
call _ZNSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEED2Ev; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::~match_results()
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| long long minja::Parser::consumeToken(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v4; // rax
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
int v10; // [rsp+10h] [rbp-A8h]
long long v11; // [rsp+18h] [rbp-A0h]
char v12; // [rsp+4Fh] [rbp-69h] BYREF
int v13; // [rsp+50h] [rbp-68h]
long long v14; // [rsp+60h] [rbp-58h]
long long v15; // [rsp+68h] [rbp-50h]
_BYTE v16[32]; // [rsp+70h] [rbp-48h] BYREF
long long v17; // [rsp+90h] [rbp-28h]
unsigned int v18; // [rsp+9Ch] [rbp-1Ch]
long long v19; // [rsp+A0h] [rbp-18h]
long long v20; // [rsp+A8h] [rbp-10h]
long long v21; // [rsp+B0h] [rbp-8h]
v21 = a1;
v20 = a2;
v19 = a3;
v18 = a4;
v17 = *(_QWORD *)(a2 + 32);
minja::Parser::consumeSpaces(a2, a4);
std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::match_results((long long)v16);
v15 = *(_QWORD *)(a2 + 32);
v14 = *(_QWORD *)(a2 + 24);
if ( (std::regex_search<__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>>(
v15,
v14,
v16,
v19,
0LL) & 1) == 0
|| std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::position(v16, 0LL) )
{
*(_QWORD *)(a2 + 32) = v17;
std::allocator<char>::allocator();
std::string::basic_string<std::allocator<char>>(a1, (long long)"", (long long)&v12);
std::allocator<char>::~allocator(&v12);
v13 = 1;
}
else
{
v11 = std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::operator[](v16, 0LL);
v4 = std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::length(v11);
__gnu_cxx::__normal_iterator<char const*,std::string>::operator+=(a2 + 32, v4);
v10 = std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::operator[](v16, 0LL);
std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::str(a1, v10, v5, v6, v7, v8);
v13 = 1;
}
std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::~match_results(v16);
return a1;
}
| consumeToken:
SUB RSP,0xb8
MOV qword ptr [RSP + 0x28],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV dword ptr [RSP + 0x9c],ECX
MOV RDI,qword ptr [RSP + 0xa8]
MOV qword ptr [RSP + 0x38],RDI
MOV RAX,qword ptr [RDI + 0x20]
MOV qword ptr [RSP + 0x90],RAX
MOV ESI,dword ptr [RSP + 0x9c]
CALL 0x0019b0b0
LEA RDI,[RSP + 0x70]
MOV qword ptr [RSP + 0x40],RDI
CALL 0x00176d30
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RAX + 0x20]
MOV qword ptr [RSP + 0x68],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP + 0x60],RAX
MOV RCX,qword ptr [RSP + 0xa0]
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x60]
LAB_00177935:
XOR R8D,R8D
CALL 0x0017a3f0
MOV byte ptr [RSP + 0x4e],AL
JMP 0x00177943
LAB_00177943:
MOV AL,byte ptr [RSP + 0x4e]
TEST AL,0x1
JNZ 0x00177950
JMP 0x001779e0
LAB_00177950:
XOR EAX,EAX
MOV ESI,EAX
LEA RDI,[RSP + 0x70]
CALL 0x0017a490
MOV qword ptr [RSP + 0x20],RAX
JMP 0x00177965
LAB_00177965:
MOV RAX,qword ptr [RSP + 0x20]
CMP RAX,0x0
JNZ 0x001779e0
XOR EAX,EAX
MOV ESI,EAX
LEA RDI,[RSP + 0x70]
CALL 0x0019b140
MOV qword ptr [RSP + 0x18],RAX
JMP 0x00177985
LAB_00177985:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0019b1b0
MOV RDI,qword ptr [RSP + 0x38]
MOV RSI,RAX
ADD RDI,0x20
CALL 0x0019b220
XOR EAX,EAX
MOV ESI,EAX
LEA RDI,[RSP + 0x70]
CALL 0x0019b140
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001779b5
LAB_001779b5:
MOV RSI,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0019b2c0
JMP 0x001779c6
LAB_001779c6:
MOV dword ptr [RSP + 0x50],0x1
JMP 0x00177a46
LAB_001779e0:
MOV RAX,qword ptr [RSP + 0x38]
MOV RCX,qword ptr [RSP + 0x90]
MOV qword ptr [RAX + 0x20],RCX
LEA RDI,[RSP + 0x4f]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00150d60
MOV RDI,qword ptr [RSP + 0x28]
MOV RDX,qword ptr [RSP + 0x8]
LAB_00177a0a:
LEA RSI,[0x2cb050]
CALL 0x00161bd0
LAB_00177a16:
JMP 0x00177a18
LAB_00177a18:
LEA RDI,[RSP + 0x4f]
CALL 0x001510a0
MOV dword ptr [RSP + 0x50],0x1
JMP 0x00177a46
LAB_00177a46:
LEA RDI,[RSP + 0x70]
CALL 0x0017a7a0
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0xb8
RET
|
/* 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)
{
bool bVar1;
long lVar2;
sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> *this;
allocator local_69;
int4 local_68;
int8 local_58;
int8 local_50;
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 [32];
int8 local_28;
int4 local_1c;
int8 local_18;
Parser *local_10;
string *local_8;
local_28 = *(int8 *)(param_2 + 0x20);
local_1c = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
consumeSpaces(param_2,param_4);
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>>>>
::match_results(local_48);
local_50 = *(int8 *)(param_2 + 0x20);
local_58 = *(int8 *)(param_2 + 0x18);
/* try { // try from 00177935 to 001779c3 has its CatchHandler @ 001779d0 */
bVar1 = std::
regex_search<__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>>
(local_50,local_58,local_48,local_18,0);
if ((bVar1) &&
(lVar2 = 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(local_48,0), lVar2 == 0)) {
this = (sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> *)
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>>>>
::operator[](local_48,0);
lVar2 = std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
::length(this);
__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>::operator+=
((__normal_iterator<char_const*,std::__cxx11::string> *)(param_2 + 0x20),lVar2);
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>>>>
::operator[](local_48,0);
std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>::str();
}
else {
*(int8 *)(param_2 + 0x20) = local_28;
std::allocator<char>::allocator();
/* try { // try from 00177a0a to 00177a15 has its CatchHandler @ 00177a2c */
std::__cxx11::string::string<std::allocator<char>>(param_1,"",&local_69);
std::allocator<char>::~allocator((allocator<char> *)&local_69);
}
local_68 = 1;
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>>>>
::~match_results(local_48);
return param_1;
}
| |
52,270 | 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 "";
} | O3 | 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 $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %r12
movq %rsi, %rdi
movl %ecx, %esi
callq 0x3bcc2
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rdi
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x5a370
testb %al, %al
je 0x2fdef
movq 0x18(%rsp), %rsi
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
je 0x2fdd6
movq (%rax), %r8
cmpq $0x48, %rdx
jne 0x2fde7
cmpq %rsi, %r8
jne 0x2fdef
jmp 0x2fddd
cmpq %rsi, -0x48(%rax,%rdx)
jne 0x2fdef
leaq (%rax,%rdx), %rdi
addq $-0x48, %rdi
jmp 0x2fe31
movq %rax, %rdi
cmpq %rsi, %r8
je 0x2fe31
movq %r12, 0x20(%r14)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x8563a(%rip), %rdx # 0xb543b
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x590a2
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2fe22
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x186a0
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x8(%rdi), %r8
subq %rsi, %r8
xorl %esi, %esi
cmpb $0x0, 0x10(%rdi)
cmovneq %r8, %rsi
addq %rsi, 0x20(%r14)
cmpq $0x48, %rdx
leaq -0x48(%rax,%rdx), %rsi
movq %rax, %rdx
cmoveq %rsi, %rdx
cmpq %rcx, %rax
cmoveq %rsi, %rdx
cmpb $0x1, 0x10(%rdx)
jne 0x2fe7b
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq %rbx, %rdi
callq 0x5c3c6
jmp 0x2fe0c
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
jmp 0x2fe0c
jmp 0x2fe95
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x2feae
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x186a0
movq %rbx, %rdi
callq 0x18b90
| _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE:
push r15
push r14
push r12
push rbx
sub rsp, 28h
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
mov rdx, rsp
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_2FDEF
mov rsi, [rsp+48h+var_30]
mov rax, [rsp+48h+var_48]
mov rcx, [rsp+48h+var_40]
mov rdx, rcx
sub rdx, rax
jz short loc_2FDD6
mov r8, [rax]
cmp rdx, 48h ; 'H'
jnz short loc_2FDE7
cmp r8, rsi
jnz short loc_2FDEF
jmp short loc_2FDDD
loc_2FDD6:
cmp [rax+rdx-48h], rsi
jnz short loc_2FDEF
loc_2FDDD:
lea rdi, [rax+rdx]
add rdi, 0FFFFFFFFFFFFFFB8h
jmp short loc_2FE31
loc_2FDE7:
mov rdi, rax
cmp r8, rsi
jz short loc_2FE31
loc_2FDEF:
mov [r14+20h], r12
lea rax, [rbx+10h]
mov [rbx], rax
lea rdx, aSJinja+16h; ""
mov rdi, rbx
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_2FE0C:
mov rdi, [rsp+48h+var_48]; void *
test rdi, rdi
jz short loc_2FE22
mov rsi, [rsp+48h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2FE22:
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
loc_2FE31:
mov r8, [rdi+8]
sub r8, rsi
xor esi, esi
cmp byte ptr [rdi+10h], 0
cmovnz rsi, r8
add [r14+20h], rsi
cmp rdx, 48h ; 'H'
lea rsi, [rax+rdx-48h]
mov rdx, rax
cmovz rdx, rsi
cmp rax, rcx
cmovz rdx, rsi
cmp byte ptr [rdx+10h], 1
jnz short loc_2FE7B
mov rsi, [rdx]
mov rdx, [rdx+8]
lea rax, [rbx+10h]
mov [rbx], rax
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag)
jmp short loc_2FE0C
loc_2FE7B:
lea rax, [rbx+10h]
mov [rbx], rax
mov qword ptr [rbx+8], 0
mov byte ptr [rbx+10h], 0
jmp loc_2FE0C
jmp short $+2
loc_2FE95:
mov rbx, rax
mov rdi, [rsp+0]; void *
test rdi, rdi
jz short loc_2FEAE
mov rsi, [rsp+arg_8]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2FEAE:
mov rdi, rbx
call __Unwind_Resume
| long long minja::Parser::consumeToken(long long a1, long long a2, long long a3, unsigned int a4)
{
long long v7; // r12
__int128 v8; // kr00_16
long long v9; // rdx
long long v10; // r8
long long v11; // rdi
long long v13; // rsi
bool v14; // zf
long long v15; // rsi
long long v16; // rdx
long long v17; // rsi
long long v18; // rdx
__int128 v19; // [rsp+0h] [rbp-48h] BYREF
__int128 v20; // [rsp+10h] [rbp-38h]
v7 = *(_QWORD *)(a2 + 32);
minja::Parser::consumeSpaces(a2, a4);
v20 = 0LL;
v19 = 0LL;
if ( !(unsigned __int8)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>(
*(_QWORD *)(a2 + 32),
*(_QWORD *)(a2 + 24),
&v19,
a3,
0LL) )
goto LABEL_9;
v8 = v19;
v9 = *((_QWORD *)&v19 + 1) - v19;
if ( *((_QWORD *)&v19 + 1) != (_QWORD)v19 )
{
v10 = *(_QWORD *)v19;
if ( v9 == 72 )
{
if ( v10 == *((_QWORD *)&v20 + 1) )
goto LABEL_7;
}
else
{
v11 = v19;
if ( v10 == *((_QWORD *)&v20 + 1) )
goto LABEL_13;
}
LABEL_9:
*(_QWORD *)(a2 + 32) = v7;
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<char const*>(a1, "", "");
goto LABEL_10;
}
if ( *(_QWORD *)(*((_QWORD *)&v19 + 1) - 72LL) != *((_QWORD *)&v20 + 1) )
goto LABEL_9;
LABEL_7:
v11 = *((_QWORD *)&v19 + 1) - 72LL;
LABEL_13:
v13 = 0LL;
if ( *(_BYTE *)(v11 + 16) )
v13 = *(_QWORD *)(v11 + 8) - *((_QWORD *)&v20 + 1);
*(_QWORD *)(a2 + 32) += v13;
v14 = v9 == 72;
v15 = v8 + v9 - 72;
v16 = v8;
if ( v14 )
v16 = v15;
if ( (_QWORD)v8 == *((_QWORD *)&v8 + 1) )
v16 = v15;
if ( *(_BYTE *)(v16 + 16) == 1 )
{
v17 = *(_QWORD *)v16;
v18 = *(_QWORD *)(v16 + 8);
*(_QWORD *)a1 = a1 + 16;
std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(a1, v17, v18);
}
else
{
*(_QWORD *)a1 = a1 + 16;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
}
LABEL_10:
if ( (_QWORD)v19 )
operator delete((void *)v19, v20 - v19);
return a1;
}
| consumeToken:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RSI + 0x20]
MOV RDI,RSI
MOV ESI,ECX
CALL 0x0013bcc2
XORPS XMM0,XMM0
MOV RDX,RSP
MOVAPS xmmword ptr [RDX + 0x10],XMM0
MOVAPS xmmword ptr [RDX],XMM0
MOV RSI,qword ptr [R14 + 0x18]
MOV RDI,qword ptr [R14 + 0x20]
LAB_0012fda1:
MOV RCX,R15
XOR R8D,R8D
CALL 0x0015a370
TEST AL,AL
JZ 0x0012fdef
MOV RSI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
MOV RDX,RCX
SUB RDX,RAX
JZ 0x0012fdd6
MOV R8,qword ptr [RAX]
CMP RDX,0x48
JNZ 0x0012fde7
CMP R8,RSI
JNZ 0x0012fdef
JMP 0x0012fddd
LAB_0012fdd6:
CMP qword ptr [RAX + RDX*0x1 + -0x48],RSI
JNZ 0x0012fdef
LAB_0012fddd:
LEA RDI,[RAX + RDX*0x1]
ADD RDI,-0x48
JMP 0x0012fe31
LAB_0012fde7:
MOV RDI,RAX
CMP R8,RSI
JZ 0x0012fe31
LAB_0012fdef:
MOV qword ptr [R14 + 0x20],R12
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LAB_0012fdfa:
LEA RDX,[0x1b543b]
MOV RDI,RBX
MOV RSI,RDX
CALL 0x001590a2
LAB_0012fe0c:
MOV RDI,qword ptr [RSP]
TEST RDI,RDI
JZ 0x0012fe22
MOV RSI,qword ptr [RSP + 0x10]
SUB RSI,RDI
CALL 0x001186a0
LAB_0012fe22:
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0012fe31:
MOV R8,qword ptr [RDI + 0x8]
SUB R8,RSI
XOR ESI,ESI
CMP byte ptr [RDI + 0x10],0x0
CMOVNZ RSI,R8
ADD qword ptr [R14 + 0x20],RSI
CMP RDX,0x48
LEA RSI,[RAX + RDX*0x1 + -0x48]
MOV RDX,RAX
CMOVZ RDX,RSI
CMP RAX,RCX
CMOVZ RDX,RSI
CMP byte ptr [RDX + 0x10],0x1
JNZ 0x0012fe7b
MOV RSI,qword ptr [RDX]
MOV RDX,qword ptr [RDX + 0x8]
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
LAB_0012fe71:
MOV RDI,RBX
CALL 0x0015c3c6
LAB_0012fe79:
JMP 0x0012fe0c
LAB_0012fe7b:
LEA RAX,[RBX + 0x10]
MOV qword ptr [RBX],RAX
MOV qword ptr [RBX + 0x8],0x0
MOV byte ptr [RBX + 0x10],0x0
JMP 0x0012fe0c
|
/* minja::Parser::consumeToken(std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> >
const&, minja::SpaceHandling) */
long * minja::Parser::consumeToken
(long *param_1,Parser *param_2,int8 param_3,int4 param_4)
{
int8 uVar1;
bool bVar2;
long lVar3;
long *plVar4;
long lVar5;
long *plVar6;
long *local_48;
long *plStack_40;
long local_38;
long lStack_30;
uVar1 = *(int8 *)(param_2 + 0x20);
consumeSpaces(param_2,param_4);
local_38 = 0;
lStack_30 = 0;
local_48 = (long *)0x0;
plStack_40 = (long *)0x0;
/* try { // try from 0012fda1 to 0012fdab has its CatchHandler @ 0012fe95 */
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 = (long)plStack_40 - (long)local_48;
if (lVar3 == 0) {
lVar5 = local_48[-9];
joined_r0x0012fddb:
if (lVar5 != lStack_30) goto LAB_0012fdef;
plVar6 = (long *)((long)local_48 + lVar3 + -0x48);
}
else {
lVar5 = *local_48;
if (lVar3 == 0x48) goto joined_r0x0012fddb;
plVar6 = local_48;
if (lVar5 != lStack_30) goto LAB_0012fdef;
}
lVar5 = 0;
if ((char)plVar6[2] != '\0') {
lVar5 = plVar6[1] - lStack_30;
}
*(long *)(param_2 + 0x20) = *(long *)(param_2 + 0x20) + lVar5;
plVar6 = (long *)((long)local_48 + lVar3 + -0x48);
plVar4 = local_48;
if (lVar3 == 0x48) {
plVar4 = plVar6;
}
if (local_48 == plStack_40) {
plVar4 = plVar6;
}
if ((char)plVar4[2] == '\x01') {
lVar3 = *plVar4;
lVar5 = plVar4[1];
*param_1 = (long)(param_1 + 2);
/* try { // try from 0012fe71 to 0012fe78 has its CatchHandler @ 0012fe95 */
std::__cxx11::string::
_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
(param_1,lVar3,lVar5);
}
else {
*param_1 = (long)(param_1 + 2);
param_1[1] = 0;
*(int1 *)(param_1 + 2) = 0;
}
}
else {
LAB_0012fdef:
*(int8 *)(param_2 + 0x20) = uVar1;
*param_1 = (long)(param_1 + 2);
/* try { // try from 0012fdfa to 0012fe0b has its CatchHandler @ 0012fe93 */
std::__cxx11::string::_M_construct<char_const*>(param_1,"");
}
if (local_48 != (long *)0x0) {
operator_delete(local_48,local_38 - (long)local_48);
}
return param_1;
}
| |
52,271 | ft_init_boolean_search | eloqsql/storage/myisam/ft_boolean_search.c | FT_INFO * ft_init_boolean_search(MI_INFO *info, uint keynr, uchar *query,
uint query_len, CHARSET_INFO *cs)
{
FTB *ftb;
FTB_EXPR *ftbe;
FTB_WORD *ftbw;
if (!(ftb=(FTB *)my_malloc(mi_key_memory_FTB, sizeof(FTB), MYF(MY_WME))))
return 0;
ftb->please= (struct _ft_vft *) & _ft_vft_boolean;
ftb->state=UNINITIALIZED;
ftb->info=info;
ftb->keynr=keynr;
ftb->charset=cs;
DBUG_ASSERT(keynr==NO_SUCH_KEY || cs == info->s->keyinfo[keynr].seg->charset);
ftb->with_scan=0;
ftb->lastpos=HA_OFFSET_ERROR;
bzero(& ftb->no_dupes, sizeof(TREE));
ftb->last_word= 0;
init_alloc_root(mi_key_memory_FTB, &ftb->mem_root, 1024, 1024, MYF(0));
ftb->queue.max_elements= 0;
if (!(ftbe=(FTB_EXPR *)alloc_root(&ftb->mem_root, sizeof(FTB_EXPR))))
goto err;
ftbe->weight=1;
ftbe->flags=FTB_FLAG_YES;
ftbe->nos=1;
ftbe->up=0;
ftbe->max_docid= ftbe->ythresh= ftbe->yweaks= 0;
ftbe->docid[0]=ftbe->docid[1]=HA_OFFSET_ERROR;
ftbe->phrase= NULL;
ftbe->document= 0;
ftb->root=ftbe;
if (unlikely(_ftb_parse_query(ftb, query, query_len,
keynr == NO_SUCH_KEY ? &ft_default_parser :
info->s->keyinfo[keynr].parser)))
goto err;
/*
Hack: instead of init_queue, we'll use reinit queue to be able
to alloc queue with alloc_root()
*/
if (! (ftb->queue.root= (uchar **)alloc_root(&ftb->mem_root,
(ftb->queue.max_elements + 1) *
sizeof(void *))))
goto err;
reinit_queue(&ftb->queue, ftb->queue.max_elements, 0, 0,
(int (*)(void*, uchar*, uchar*))FTB_WORD_cmp, 0, 0, 0);
for (ftbw= ftb->last_word; ftbw; ftbw= ftbw->prev)
queue_insert(&ftb->queue, (uchar *)ftbw);
ftb->list=(FTB_WORD **)alloc_root(&ftb->mem_root,
sizeof(FTB_WORD *)*ftb->queue.elements);
memcpy(ftb->list, &queue_top(&ftb->queue), sizeof(FTB_WORD *)*ftb->queue.elements);
my_qsort2(ftb->list, ftb->queue.elements, sizeof(FTB_WORD *),
(qsort2_cmp)FTB_WORD_cmp_list, (void*)ftb->charset);
if (ftb->queue.elements<2) ftb->with_scan &= ~FTB_FLAG_TRUNC;
ftb->state=READY;
return ftb;
err:
free_root(& ftb->mem_root, MYF(0));
my_free(ftb);
return 0;
} | O3 | c | ft_init_boolean_search:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movl %ecx, -0x2c(%rbp)
movq %rdx, -0x38(%rbp)
movl %esi, %r13d
movq %rdi, %r15
leaq 0x35b600(%rip), %r12 # 0x3a670c
movl (%r12), %edi
movl $0x350, %esi # imm = 0x350
movl $0x10, %edx
callq 0x5a3c5
xorl %ecx, %ecx
testq %rax, %rax
je 0x4b313
movq %rax, %rbx
leaq 0x2da634(%rip), %rax # 0x325768
movq %rax, (%rbx)
movl %ecx, 0x348(%rbx)
movq %r15, 0x8(%rbx)
movl %r13d, 0x340(%rbx)
movq %r14, 0x10(%rbx)
movb $0x0, 0x344(%rbx)
movq $-0x1, 0x338(%rbx)
leaq 0xa0(%rbx), %rdi
movl $0x298, %edx # imm = 0x298
xorl %esi, %esi
callq 0x281b0
movq $0x0, 0x28(%rbx)
movl (%r12), %edi
leaq 0x30(%rbx), %r14
movl $0x400, %edx # imm = 0x400
movl $0x400, %ecx # imm = 0x400
movq %r14, %rsi
xorl %r8d, %r8d
callq 0x57eb8
xorl %eax, %eax
movl %eax, 0x84(%rbx)
movl $0x50, %esi
movq %r14, %rdi
callq 0x5800f
testq %rax, %rax
je 0x4b301
movl $0x3f800000, 0x28(%rax) # imm = 0x3F800000
movl $0x2, 0x8(%rax)
movl $0x1, 0x44(%rax)
xorl %ecx, %ecx
movq %rcx, (%rax)
movq %rcx, 0x48(%rax)
movq %rcx, 0x20(%rax)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x10(%rax)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x30(%rax)
movq %rax, 0x18(%rbx)
cmpl $-0x1, %r13d
je 0x4b20a
movq (%r15), %rax
movq 0x218(%rax), %rax
movl %r13d, %ecx
imulq $0x70, %rcx, %rcx
movq 0x38(%rax,%rcx), %r15
jmp 0x4b211
leaq 0x2e47ff(%rip), %r15 # 0x32fa10
cmpl $0x0, 0x348(%rbx)
jne 0x4b29e
movq 0x8(%rbx), %rdi
movl 0x340(%rbx), %esi
xorl %edx, %edx
callq 0x491d9
testq %rax, %rax
je 0x4b301
leaq -0x58(%rbp), %rcx
movq %rbx, (%rcx)
movl $0x0, 0x18(%rcx)
movq 0x18(%rbx), %rdx
movq %rdx, 0x8(%rcx)
movq $0x0, 0x10(%rcx)
leaq 0xc93(%rip), %rdx # 0x4bef0
movq %rdx, (%rax)
leaq 0xd1e(%rip), %rdx # 0x4bf85
movq %rdx, 0x8(%rax)
movq %rcx, 0x18(%rax)
movq 0x10(%rbx), %rcx
movq %rcx, 0x20(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x28(%rax)
movl -0x2c(%rbp), %ecx
movl %ecx, 0x30(%rax)
movabsq $0x200000000, %rcx # imm = 0x200000000
movq %rcx, 0x34(%rax)
movq %rax, %rdi
callq *0x8(%r15)
testl %eax, %eax
jne 0x4b301
movl 0x84(%rbx), %esi
incl %esi
shlq $0x3, %rsi
movq %r14, %rdi
callq 0x5800f
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0x4b301
movq %rbx, %r15
addq $0x70, %r15
movl 0x84(%rbx), %esi
xorl %eax, %eax
leaq 0xc1(%rip), %r8 # 0x4b392
movq %r15, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x5c647
addq $0x10, %rsp
movq 0x28(%rbx), %r12
testq %r12, %r12
je 0x4b317
movq %r15, %rdi
movq %r12, %rsi
callq 0x5c6fb
movq 0x38(%r12), %r12
jmp 0x4b2ea
movq %r14, %rdi
xorl %esi, %esi
callq 0x58287
movq %rbx, %rdi
callq 0x5a5f2
xorl %ebx, %ebx
jmp 0x4b380
movl 0x80(%rbx), %esi
shlq $0x3, %rsi
movq %r14, %rdi
callq 0x5800f
movq %rax, 0x20(%rbx)
movq 0x70(%rbx), %rsi
addq $0x8, %rsi
movl 0x80(%rbx), %edx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x282a0
movq 0x10(%rbx), %r8
movq 0x20(%rbx), %rdi
movl 0x80(%rbx), %esi
leaq 0x72(%rip), %rcx # 0x4b3ce
movl $0x8, %edx
callq 0x572a4
cmpl $0x1, 0x80(%rbx)
ja 0x4b376
andb $-0x2, 0x344(%rbx)
movl $0x1, 0x348(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| ft_init_boolean_search:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r8
mov [rbp+var_2C], ecx
mov [rbp+var_38], rdx
mov r13d, esi
mov r15, rdi
lea r12, mi_key_memory_FTB
mov edi, [r12]
mov esi, 350h
mov edx, 10h
call my_malloc
xor ecx, ecx
test rax, rax
jz loc_4B313
mov rbx, rax
lea rax, _ft_vft_boolean
mov [rbx], rax
mov [rbx+348h], ecx
mov [rbx+8], r15
mov [rbx+340h], r13d
mov [rbx+10h], r14
mov byte ptr [rbx+344h], 0
mov qword ptr [rbx+338h], 0FFFFFFFFFFFFFFFFh
lea rdi, [rbx+0A0h]
mov edx, 298h
xor esi, esi
call _memset
mov qword ptr [rbx+28h], 0
mov edi, [r12]
lea r14, [rbx+30h]
mov edx, 400h
mov ecx, 400h
mov rsi, r14
xor r8d, r8d
call init_alloc_root
xor eax, eax
mov [rbx+84h], eax
mov esi, 50h ; 'P'
mov rdi, r14
call alloc_root
test rax, rax
jz loc_4B301
mov dword ptr [rax+28h], 3F800000h
mov dword ptr [rax+8], 2
mov dword ptr [rax+44h], 1
xor ecx, ecx
mov [rax], rcx
mov [rax+48h], rcx
mov [rax+20h], rcx
pcmpeqd xmm0, xmm0
movdqu xmmword ptr [rax+10h], xmm0
pxor xmm0, xmm0
movdqu xmmword ptr [rax+30h], xmm0
mov [rbx+18h], rax
cmp r13d, 0FFFFFFFFh
jz short loc_4B20A
mov rax, [r15]
mov rax, [rax+218h]
mov ecx, r13d
imul rcx, 70h ; 'p'
mov r15, [rax+rcx+38h]
jmp short loc_4B211
loc_4B20A:
lea r15, ft_default_parser
loc_4B211:
cmp dword ptr [rbx+348h], 0
jnz loc_4B29E
mov rdi, [rbx+8]
mov esi, [rbx+340h]
xor edx, edx
call ftparser_call_initializer
test rax, rax
jz loc_4B301
lea rcx, [rbp+var_58]
mov [rcx], rbx
mov dword ptr [rcx+18h], 0
mov rdx, [rbx+18h]
mov [rcx+8], rdx
mov qword ptr [rcx+10h], 0
lea rdx, ftb_parse_query_internal
mov [rax], rdx
lea rdx, ftb_query_add_word
mov [rax+8], rdx
mov [rax+18h], rcx
mov rcx, [rbx+10h]
mov [rax+20h], rcx
mov rcx, [rbp+var_38]
mov [rax+28h], rcx
mov ecx, [rbp+var_2C]
mov [rax+30h], ecx
mov rcx, 200000000h
mov [rax+34h], rcx
mov rdi, rax
call qword ptr [r15+8]
test eax, eax
jnz short loc_4B301
loc_4B29E:
mov esi, [rbx+84h]
inc esi
shl rsi, 3
mov rdi, r14
call alloc_root
mov [rbx+70h], rax
test rax, rax
jz short loc_4B301
mov r15, rbx
add r15, 70h ; 'p'
mov esi, [rbx+84h]
xor eax, eax
lea r8, FTB_WORD_cmp
mov rdi, r15
xor edx, edx
xor ecx, ecx
xor r9d, r9d
push rax
push rax
call reinit_queue
add rsp, 10h
mov r12, [rbx+28h]
loc_4B2EA:
test r12, r12
jz short loc_4B317
mov rdi, r15
mov rsi, r12
call queue_insert
mov r12, [r12+38h]
jmp short loc_4B2EA
loc_4B301:
mov rdi, r14
xor esi, esi
call free_root
mov rdi, rbx
call my_free
loc_4B313:
xor ebx, ebx
jmp short loc_4B380
loc_4B317:
mov esi, [rbx+80h]
shl rsi, 3
mov rdi, r14
call alloc_root
mov [rbx+20h], rax
mov rsi, [rbx+70h]
add rsi, 8
mov edx, [rbx+80h]
shl rdx, 3
mov rdi, rax
call _memcpy
mov r8, [rbx+10h]
mov rdi, [rbx+20h]
mov esi, [rbx+80h]
lea rcx, FTB_WORD_cmp_list
mov edx, 8
call my_qsort2
cmp dword ptr [rbx+80h], 1
ja short loc_4B376
and byte ptr [rbx+344h], 0FEh
loc_4B376:
mov dword ptr [rbx+348h], 1
loc_4B380:
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long ft_init_boolean_search(long long a1, unsigned int a2, long long a3, long long a4, long long a5)
{
long long v6; // rax
long long v7; // rbx
long long v8; // rax
long long v9; // rcx
unsigned int ( **v10)(long long); // r15
long long v11; // rax
long long v12; // rax
long long i; // r12
long long v14; // rax
_QWORD v16[3]; // [rsp+8h] [rbp-58h] BYREF
int v17; // [rsp+20h] [rbp-40h]
long long v18; // [rsp+28h] [rbp-38h]
int v19; // [rsp+34h] [rbp-2Ch]
v19 = a4;
v18 = a3;
v6 = my_malloc(mi_key_memory_FTB, 848LL, 16LL, a4);
if ( !v6 )
return 0LL;
v7 = v6;
*(_QWORD *)v6 = ft_vft_boolean;
*(_DWORD *)(v6 + 840) = 0;
*(_QWORD *)(v6 + 8) = a1;
*(_DWORD *)(v6 + 832) = a2;
*(_QWORD *)(v6 + 16) = a5;
*(_BYTE *)(v6 + 836) = 0;
*(_QWORD *)(v6 + 824) = -1LL;
memset(v6 + 160, 0LL, 664LL);
*(_QWORD *)(v7 + 40) = 0LL;
init_alloc_root(mi_key_memory_FTB, v7 + 48, 1024LL, 1024LL, 0LL);
*(_DWORD *)(v7 + 132) = 0;
v8 = alloc_root(v7 + 48, 80LL);
if ( !v8 )
goto LABEL_13;
*(_DWORD *)(v8 + 40) = 1065353216;
*(_DWORD *)(v8 + 8) = 2;
*(_DWORD *)(v8 + 68) = 1;
v9 = 0LL;
*(_QWORD *)v8 = 0LL;
*(_QWORD *)(v8 + 72) = 0LL;
*(_QWORD *)(v8 + 32) = 0LL;
*(_OWORD *)(v8 + 16) = -1LL;
*(_OWORD *)(v8 + 48) = 0LL;
*(_QWORD *)(v7 + 24) = v8;
if ( a2 == -1 )
{
v10 = (unsigned int ( **)(long long))&ft_default_parser;
}
else
{
v9 = 112LL * a2;
v10 = *(unsigned int ( ***)(long long))(*(_QWORD *)(*(_QWORD *)a1 + 536LL) + v9 + 56);
}
if ( !*(_DWORD *)(v7 + 840) )
{
v11 = ftparser_call_initializer(*(_QWORD **)(v7 + 8), *(unsigned int *)(v7 + 832), 0LL, v9);
if ( !v11 )
goto LABEL_13;
v16[0] = v7;
v17 = 0;
v16[1] = *(_QWORD *)(v7 + 24);
v16[2] = 0LL;
*(_QWORD *)v11 = ftb_parse_query_internal;
*(_QWORD *)(v11 + 8) = ftb_query_add_word;
*(_QWORD *)(v11 + 24) = v16;
*(_QWORD *)(v11 + 32) = *(_QWORD *)(v7 + 16);
*(_QWORD *)(v11 + 40) = v18;
*(_DWORD *)(v11 + 48) = v19;
*(_QWORD *)(v11 + 52) = 0x200000000LL;
if ( v10[1](v11) )
goto LABEL_13;
}
v12 = alloc_root(v7 + 48, 8LL * (unsigned int)(*(_DWORD *)(v7 + 132) + 1));
*(_QWORD *)(v7 + 112) = v12;
if ( !v12 )
{
LABEL_13:
free_root(v7 + 48, 0LL);
my_free(v7);
return 0LL;
}
reinit_queue(v7 + 112, *(_DWORD *)(v7 + 132), 0, 0, (unsigned int)FTB_WORD_cmp, 0, 0, 0);
for ( i = *(_QWORD *)(v7 + 40); i; i = *(_QWORD *)(i + 56) )
queue_insert(v7 + 112, i);
v14 = alloc_root(v7 + 48, 8LL * *(unsigned int *)(v7 + 128));
*(_QWORD *)(v7 + 32) = v14;
memcpy(v14, *(_QWORD *)(v7 + 112) + 8LL, 8LL * *(unsigned int *)(v7 + 128));
my_qsort2(*(_QWORD *)(v7 + 32), *(unsigned int *)(v7 + 128), 8LL, FTB_WORD_cmp_list, *(_QWORD *)(v7 + 16));
if ( *(_DWORD *)(v7 + 128) <= 1u )
*(_BYTE *)(v7 + 836) &= ~1u;
*(_DWORD *)(v7 + 840) = 1;
return v7;
}
| ft_init_boolean_search:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R8
MOV dword ptr [RBP + -0x2c],ECX
MOV qword ptr [RBP + -0x38],RDX
MOV R13D,ESI
MOV R15,RDI
LEA R12,[0x4a670c]
MOV EDI,dword ptr [R12]
MOV ESI,0x350
MOV EDX,0x10
CALL 0x0015a3c5
XOR ECX,ECX
TEST RAX,RAX
JZ 0x0014b313
MOV RBX,RAX
LEA RAX,[0x425768]
MOV qword ptr [RBX],RAX
MOV dword ptr [RBX + 0x348],ECX
MOV qword ptr [RBX + 0x8],R15
MOV dword ptr [RBX + 0x340],R13D
MOV qword ptr [RBX + 0x10],R14
MOV byte ptr [RBX + 0x344],0x0
MOV qword ptr [RBX + 0x338],-0x1
LEA RDI,[RBX + 0xa0]
MOV EDX,0x298
XOR ESI,ESI
CALL 0x001281b0
MOV qword ptr [RBX + 0x28],0x0
MOV EDI,dword ptr [R12]
LEA R14,[RBX + 0x30]
MOV EDX,0x400
MOV ECX,0x400
MOV RSI,R14
XOR R8D,R8D
CALL 0x00157eb8
XOR EAX,EAX
MOV dword ptr [RBX + 0x84],EAX
MOV ESI,0x50
MOV RDI,R14
CALL 0x0015800f
TEST RAX,RAX
JZ 0x0014b301
MOV dword ptr [RAX + 0x28],0x3f800000
MOV dword ptr [RAX + 0x8],0x2
MOV dword ptr [RAX + 0x44],0x1
XOR ECX,ECX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x48],RCX
MOV qword ptr [RAX + 0x20],RCX
PCMPEQD XMM0,XMM0
MOVDQU xmmword ptr [RAX + 0x10],XMM0
PXOR XMM0,XMM0
MOVDQU xmmword ptr [RAX + 0x30],XMM0
MOV qword ptr [RBX + 0x18],RAX
CMP R13D,-0x1
JZ 0x0014b20a
MOV RAX,qword ptr [R15]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,R13D
IMUL RCX,RCX,0x70
MOV R15,qword ptr [RAX + RCX*0x1 + 0x38]
JMP 0x0014b211
LAB_0014b20a:
LEA R15,[0x42fa10]
LAB_0014b211:
CMP dword ptr [RBX + 0x348],0x0
JNZ 0x0014b29e
MOV RDI,qword ptr [RBX + 0x8]
MOV ESI,dword ptr [RBX + 0x340]
XOR EDX,EDX
CALL 0x001491d9
TEST RAX,RAX
JZ 0x0014b301
LEA RCX,[RBP + -0x58]
MOV qword ptr [RCX],RBX
MOV dword ptr [RCX + 0x18],0x0
MOV RDX,qword ptr [RBX + 0x18]
MOV qword ptr [RCX + 0x8],RDX
MOV qword ptr [RCX + 0x10],0x0
LEA RDX,[0x14bef0]
MOV qword ptr [RAX],RDX
LEA RDX,[0x14bf85]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RAX + 0x18],RCX
MOV RCX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RAX + 0x28],RCX
MOV ECX,dword ptr [RBP + -0x2c]
MOV dword ptr [RAX + 0x30],ECX
MOV RCX,0x200000000
MOV qword ptr [RAX + 0x34],RCX
MOV RDI,RAX
CALL qword ptr [R15 + 0x8]
TEST EAX,EAX
JNZ 0x0014b301
LAB_0014b29e:
MOV ESI,dword ptr [RBX + 0x84]
INC ESI
SHL RSI,0x3
MOV RDI,R14
CALL 0x0015800f
MOV qword ptr [RBX + 0x70],RAX
TEST RAX,RAX
JZ 0x0014b301
MOV R15,RBX
ADD R15,0x70
MOV ESI,dword ptr [RBX + 0x84]
XOR EAX,EAX
LEA R8,[0x14b392]
MOV RDI,R15
XOR EDX,EDX
XOR ECX,ECX
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x0015c647
ADD RSP,0x10
MOV R12,qword ptr [RBX + 0x28]
LAB_0014b2ea:
TEST R12,R12
JZ 0x0014b317
MOV RDI,R15
MOV RSI,R12
CALL 0x0015c6fb
MOV R12,qword ptr [R12 + 0x38]
JMP 0x0014b2ea
LAB_0014b301:
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158287
MOV RDI,RBX
CALL 0x0015a5f2
LAB_0014b313:
XOR EBX,EBX
JMP 0x0014b380
LAB_0014b317:
MOV ESI,dword ptr [RBX + 0x80]
SHL RSI,0x3
MOV RDI,R14
CALL 0x0015800f
MOV qword ptr [RBX + 0x20],RAX
MOV RSI,qword ptr [RBX + 0x70]
ADD RSI,0x8
MOV EDX,dword ptr [RBX + 0x80]
SHL RDX,0x3
MOV RDI,RAX
CALL 0x001282a0
MOV R8,qword ptr [RBX + 0x10]
MOV RDI,qword ptr [RBX + 0x20]
MOV ESI,dword ptr [RBX + 0x80]
LEA RCX,[0x14b3ce]
MOV EDX,0x8
CALL 0x001572a4
CMP dword ptr [RBX + 0x80],0x1
JA 0x0014b376
AND byte ptr [RBX + 0x344],0xfe
LAB_0014b376:
MOV dword ptr [RBX + 0x348],0x1
LAB_0014b380:
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 *
ft_init_boolean_search
(long *param_1,uint param_2,int8 param_3,int4 param_4,int8 param_5)
{
int8 *puVar1;
int iVar2;
int8 *puVar3;
int8 *puVar4;
long lVar5;
void *__dest;
int1 *puVar6;
int8 *local_60;
int8 local_58;
int8 local_50;
int4 local_48;
int8 local_40;
int4 local_34;
local_40 = param_3;
local_34 = param_4;
puVar3 = (int8 *)my_malloc(mi_key_memory_FTB,0x350,0x10);
if (puVar3 == (int8 *)0x0) {
return (int8 *)0x0;
}
*puVar3 = _ft_vft_boolean;
*(int4 *)(puVar3 + 0x69) = 0;
puVar3[1] = param_1;
*(uint *)(puVar3 + 0x68) = param_2;
puVar3[2] = param_5;
*(int1 *)((long)puVar3 + 0x344) = 0;
puVar3[0x67] = 0xffffffffffffffff;
memset(puVar3 + 0x14,0,0x298);
puVar3[5] = 0;
puVar1 = puVar3 + 6;
init_alloc_root(mi_key_memory_FTB,puVar1,0x400,0x400,0);
*(int4 *)((long)puVar3 + 0x84) = 0;
puVar4 = (int8 *)alloc_root(puVar1,0x50);
if (puVar4 == (int8 *)0x0) goto LAB_0014b301;
*(int4 *)(puVar4 + 5) = 0x3f800000;
*(int4 *)(puVar4 + 1) = 2;
*(int4 *)((long)puVar4 + 0x44) = 1;
*puVar4 = 0;
puVar4[9] = 0;
puVar4[4] = 0;
*(int4 *)(puVar4 + 2) = 0xffffffff;
*(int4 *)((long)puVar4 + 0x14) = 0xffffffff;
*(int4 *)(puVar4 + 3) = 0xffffffff;
*(int4 *)((long)puVar4 + 0x1c) = 0xffffffff;
*(int1 (*) [16])(puVar4 + 6) = (int1 [16])0x0;
puVar3[3] = puVar4;
if (param_2 == 0xffffffff) {
puVar6 = ft_default_parser;
}
else {
puVar6 = *(int1 **)(*(long *)(*param_1 + 0x218) + 0x38 + (ulong)param_2 * 0x70);
}
if (*(int *)(puVar3 + 0x69) == 0) {
puVar4 = (int8 *)ftparser_call_initializer(puVar3[1],*(int4 *)(puVar3 + 0x68),0);
if (puVar4 == (int8 *)0x0) goto LAB_0014b301;
local_48 = 0;
local_58 = puVar3[3];
local_50 = 0;
*puVar4 = ftb_parse_query_internal;
puVar4[1] = ftb_query_add_word;
puVar4[3] = &local_60;
puVar4[4] = puVar3[2];
puVar4[5] = local_40;
*(int4 *)(puVar4 + 6) = local_34;
*(int8 *)((long)puVar4 + 0x34) = 0x200000000;
local_60 = puVar3;
iVar2 = (**(code **)(puVar6 + 8))(puVar4);
if (iVar2 != 0) goto LAB_0014b301;
}
lVar5 = alloc_root(puVar1,(ulong)(*(int *)((long)puVar3 + 0x84) + 1) << 3);
puVar3[0xe] = lVar5;
if (lVar5 != 0) {
reinit_queue(puVar3 + 0xe,*(int4 *)((long)puVar3 + 0x84),0,0,FTB_WORD_cmp,0,0,0);
for (lVar5 = puVar3[5]; lVar5 != 0; lVar5 = *(long *)(lVar5 + 0x38)) {
queue_insert(puVar3 + 0xe,lVar5);
}
__dest = (void *)alloc_root(puVar1,(ulong)*(uint *)(puVar3 + 0x10) << 3);
puVar3[4] = __dest;
memcpy(__dest,(void *)(puVar3[0xe] + 8),(ulong)*(uint *)(puVar3 + 0x10) << 3);
my_qsort2(puVar3[4],*(int4 *)(puVar3 + 0x10),8,FTB_WORD_cmp_list,puVar3[2]);
if (*(uint *)(puVar3 + 0x10) < 2) {
*(byte *)((long)puVar3 + 0x344) = *(byte *)((long)puVar3 + 0x344) & 0xfe;
}
*(int4 *)(puVar3 + 0x69) = 1;
return puVar3;
}
LAB_0014b301:
free_root(puVar1,0);
my_free(puVar3);
return (int8 *)0x0;
}
| |
52,272 | my_search_option_files | eloqsql/mysys/my_default.c | static int my_search_option_files(const char *conf_file,
struct handle_option_ctx *ctx,
const char **default_directories)
{
const char **dirs;
int error= 0;
DBUG_ENTER("my_search_option_files");
if (my_defaults_group_suffix)
{
/* Handle --defaults-group-suffix= */
uint i;
const char **extra_groups;
const size_t instance_len= strlen(my_defaults_group_suffix);
char *ptr;
TYPELIB *group= ctx->group;
if (!(extra_groups=
(const char**)alloc_root(ctx->alloc,
(2*group->count+1)*sizeof(char*))))
DBUG_RETURN(2);
for (i= 0; i < group->count; i++)
{
size_t len;
extra_groups[i]= group->type_names[i]; /** copy group */
len= strlen(extra_groups[i]);
if (!(ptr= alloc_root(ctx->alloc, (uint) (len+instance_len+1))))
DBUG_RETURN(2);
extra_groups[i+group->count]= ptr;
/** Construct new group */
memcpy(ptr, extra_groups[i], len);
memcpy(ptr+len, my_defaults_group_suffix, instance_len+1);
}
group->count*= 2;
group->type_names= extra_groups;
group->type_names[group->count]= 0;
}
if (my_defaults_file)
{
if ((error= search_default_file_with_ext(ctx, "", "",
my_defaults_file, 0)) < 0)
goto err;
if (error > 0)
{
fprintf(stderr, "Could not open required defaults file: %s\n",
my_defaults_file);
goto err;
}
}
else if (dirname_length(conf_file))
{
if ((error= search_default_file(ctx, NullS, conf_file)) < 0)
goto err;
}
else
{
for (dirs= default_directories ; *dirs; dirs++)
{
if (**dirs)
{
if (search_default_file(ctx, *dirs, conf_file) < 0)
goto err;
}
else if (my_defaults_extra_file)
{
if ((error= search_default_file_with_ext(ctx, "", "",
my_defaults_extra_file, 0)) < 0)
goto err; /* Fatal error */
if (error > 0)
{
fprintf(stderr, "Could not open required defaults file: %s\n",
my_defaults_extra_file);
goto err;
}
}
}
}
DBUG_RETURN(0);
err:
fprintf(stderr,"Fatal error in defaults handling. Program aborted\n");
DBUG_RETURN(1);
} | O0 | c | my_search_option_files:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl $0x0, -0x2c(%rbp)
leaq 0x363fae(%rip), %rax # 0x399ea0
cmpq $0x0, (%rax)
je 0x36052
leaq 0x363f9d(%rip), %rax # 0x399ea0
movq (%rax), %rdi
callq 0x25150
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x50(%rbp), %rax
movl (%rax), %eax
shll %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x3b410
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
jne 0x35f52
jmp 0x35f46
movl $0x2, -0x4(%rbp)
jmp 0x361d8
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x50(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x36026
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x30(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
movq (%rax,%rcx,8), %rdi
callq 0x25150
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x58(%rbp), %rax
addq -0x40(%rbp), %rax
addq $0x1, %rax
movl %eax, %eax
movl %eax, %esi
callq 0x3b410
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x35fca
jmp 0x35fbe
movl $0x2, -0x4(%rbp)
jmp 0x361d8
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
movq -0x50(%rbp), %rsi
addl (%rsi), %ecx
movl %ecx, %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x48(%rbp), %rdi
movq -0x38(%rbp), %rax
movl -0x30(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
movq -0x58(%rbp), %rdx
callq 0x25270
movq -0x48(%rbp), %rdi
addq -0x58(%rbp), %rdi
leaq 0x363e98(%rip), %rax # 0x399ea0
movq (%rax), %rsi
movq -0x40(%rbp), %rdx
addq $0x1, %rdx
callq 0x25270
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x35f59
movq -0x50(%rbp), %rax
movl (%rax), %ecx
shll %ecx
movl %ecx, (%rax)
movq -0x38(%rbp), %rcx
movq -0x50(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x50(%rbp), %rcx
movl (%rcx), %ecx
movq $0x0, (%rax,%rcx,8)
leaq 0x363e3f(%rip), %rax # 0x399e98
cmpq $0x0, (%rax)
je 0x360be
movq -0x18(%rbp), %rdi
leaq 0x363e2e(%rip), %rax # 0x399e98
movq (%rax), %rcx
leaq 0x51366(%rip), %rdx # 0x873da
xorl %r8d, %r8d
movq %rdx, %rsi
callq 0x36610
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jge 0x3608c
jmp 0x361b9
cmpl $0x0, -0x2c(%rbp)
jle 0x360b9
movq 0x1a2f3f(%rip), %rax # 0x1d8fd8
movq (%rax), %rdi
leaq 0x363df5(%rip), %rax # 0x399e98
movq (%rax), %rdx
leaq 0x4de8d(%rip), %rsi # 0x83f3a
movb $0x0, %al
callq 0x254d0
jmp 0x361b9
jmp 0x361ae
movq -0x10(%rbp), %rdi
callq 0x39220
cmpq $0x0, %rax
je 0x360f0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x37320
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jge 0x360eb
jmp 0x361b9
jmp 0x361ac
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
cmpq $0x0, (%rax)
je 0x361aa
movq -0x28(%rbp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x36132
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rdx
callq 0x37320
cmpl $0x0, %eax
jge 0x36130
jmp 0x361b9
jmp 0x36197
leaq 0x363d6f(%rip), %rax # 0x399ea8
cmpq $0x0, (%rax)
je 0x36195
movq -0x18(%rbp), %rdi
leaq 0x363d5e(%rip), %rax # 0x399ea8
movq (%rax), %rcx
leaq 0x51286(%rip), %rdx # 0x873da
xorl %r8d, %r8d
movq %rdx, %rsi
callq 0x36610
movl %eax, -0x2c(%rbp)
cmpl $0x0, %eax
jge 0x36169
jmp 0x361b9
cmpl $0x0, -0x2c(%rbp)
jle 0x36193
movq 0x1a2e62(%rip), %rax # 0x1d8fd8
movq (%rax), %rdi
leaq 0x363d28(%rip), %rax # 0x399ea8
movq (%rax), %rdx
leaq 0x4ddb0(%rip), %rsi # 0x83f3a
movb $0x0, %al
callq 0x254d0
jmp 0x361b9
jmp 0x36195
jmp 0x36197
jmp 0x36199
movq -0x28(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x28(%rbp)
jmp 0x360f8
jmp 0x361ac
jmp 0x361ae
jmp 0x361b0
movl $0x0, -0x4(%rbp)
jmp 0x361d8
movq 0x1a2e18(%rip), %rax # 0x1d8fd8
movq (%rax), %rdi
leaq 0x4da79(%rip), %rsi # 0x83c43
movb $0x0, %al
callq 0x254d0
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_search_option_files:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_2C], 0
lea rax, my_defaults_group_suffix
cmp qword ptr [rax], 0
jz loc_36052
lea rax, my_defaults_group_suffix
mov rdi, [rax]
call _strlen
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
mov rax, [rax+10h]
mov [rbp+var_50], rax
mov rax, [rbp+var_18]
mov rdi, [rax]
mov rax, [rbp+var_50]
mov eax, [rax]
shl eax, 1
add eax, 1
mov eax, eax
mov esi, eax
shl rsi, 3
call alloc_root
mov [rbp+var_38], rax
cmp rax, 0
jnz short loc_35F52
jmp short $+2
loc_35F46:
mov [rbp+var_4], 2
jmp loc_361D8
loc_35F52:
mov [rbp+var_30], 0
loc_35F59:
mov eax, [rbp+var_30]
mov rcx, [rbp+var_50]
cmp eax, [rcx]
jnb loc_36026
mov rax, [rbp+var_50]
mov rax, [rax+10h]
mov ecx, [rbp+var_30]
mov rdx, [rax+rcx*8]
mov rax, [rbp+var_38]
mov ecx, [rbp+var_30]
mov [rax+rcx*8], rdx
mov rax, [rbp+var_38]
mov ecx, [rbp+var_30]
mov rdi, [rax+rcx*8]
call _strlen
mov [rbp+var_58], rax
mov rax, [rbp+var_18]
mov rdi, [rax]
mov rax, [rbp+var_58]
add rax, [rbp+var_40]
add rax, 1
mov eax, eax
mov esi, eax
call alloc_root
mov [rbp+var_48], rax
cmp rax, 0
jnz short loc_35FCA
jmp short $+2
loc_35FBE:
mov [rbp+var_4], 2
jmp loc_361D8
loc_35FCA:
mov rdx, [rbp+var_48]
mov rax, [rbp+var_38]
mov ecx, [rbp+var_30]
mov rsi, [rbp+var_50]
add ecx, [rsi]
mov ecx, ecx
mov [rax+rcx*8], rdx
mov rdi, [rbp+var_48]
mov rax, [rbp+var_38]
mov ecx, [rbp+var_30]
mov rsi, [rax+rcx*8]
mov rdx, [rbp+var_58]
call _memcpy
mov rdi, [rbp+var_48]
add rdi, [rbp+var_58]
lea rax, my_defaults_group_suffix
mov rsi, [rax]
mov rdx, [rbp+var_40]
add rdx, 1
call _memcpy
mov eax, [rbp+var_30]
add eax, 1
mov [rbp+var_30], eax
jmp loc_35F59
loc_36026:
mov rax, [rbp+var_50]
mov ecx, [rax]
shl ecx, 1
mov [rax], ecx
mov rcx, [rbp+var_38]
mov rax, [rbp+var_50]
mov [rax+10h], rcx
mov rax, [rbp+var_50]
mov rax, [rax+10h]
mov rcx, [rbp+var_50]
mov ecx, [rcx]
mov qword ptr [rax+rcx*8], 0
loc_36052:
lea rax, my_defaults_file
cmp qword ptr [rax], 0
jz short loc_360BE
mov rdi, [rbp+var_18]
lea rax, my_defaults_file
mov rcx, [rax]
lea rdx, asc_873D6+4; ""
xor r8d, r8d
mov rsi, rdx
call search_default_file_with_ext
mov [rbp+var_2C], eax
cmp eax, 0
jge short loc_3608C
jmp loc_361B9
loc_3608C:
cmp [rbp+var_2C], 0
jle short loc_360B9
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rax, my_defaults_file
mov rdx, [rax]
lea rsi, aCouldNotOpenRe; "Could not open required defaults file: "...
mov al, 0
call _fprintf
jmp loc_361B9
loc_360B9:
jmp loc_361AE
loc_360BE:
mov rdi, [rbp+var_10]
call dirname_length
cmp rax, 0
jz short loc_360F0
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_10]
xor eax, eax
mov esi, eax
call search_default_file
mov [rbp+var_2C], eax
cmp eax, 0
jge short loc_360EB
jmp loc_361B9
loc_360EB:
jmp loc_361AC
loc_360F0:
mov rax, [rbp+var_20]
mov [rbp+var_28], rax
loc_360F8:
mov rax, [rbp+var_28]
cmp qword ptr [rax], 0
jz loc_361AA
mov rax, [rbp+var_28]
mov rax, [rax]
cmp byte ptr [rax], 0
jz short loc_36132
mov rdi, [rbp+var_18]
mov rax, [rbp+var_28]
mov rsi, [rax]
mov rdx, [rbp+var_10]
call search_default_file
cmp eax, 0
jge short loc_36130
jmp loc_361B9
loc_36130:
jmp short loc_36197
loc_36132:
lea rax, my_defaults_extra_file
cmp qword ptr [rax], 0
jz short loc_36195
mov rdi, [rbp+var_18]
lea rax, my_defaults_extra_file
mov rcx, [rax]
lea rdx, asc_873D6+4; ""
xor r8d, r8d
mov rsi, rdx
call search_default_file_with_ext
mov [rbp+var_2C], eax
cmp eax, 0
jge short loc_36169
jmp short loc_361B9
loc_36169:
cmp [rbp+var_2C], 0
jle short loc_36193
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rax, my_defaults_extra_file
mov rdx, [rax]
lea rsi, aCouldNotOpenRe; "Could not open required defaults file: "...
mov al, 0
call _fprintf
jmp short loc_361B9
loc_36193:
jmp short $+2
loc_36195:
jmp short $+2
loc_36197:
jmp short $+2
loc_36199:
mov rax, [rbp+var_28]
add rax, 8
mov [rbp+var_28], rax
jmp loc_360F8
loc_361AA:
jmp short $+2
loc_361AC:
jmp short $+2
loc_361AE:
jmp short $+2
loc_361B0:
mov [rbp+var_4], 0
jmp short loc_361D8
loc_361B9:
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rsi, aFatalErrorInDe; "Fatal error in defaults handling. Progr"...
mov al, 0
call _fprintf
mov [rbp+var_4], 1
loc_361D8:
mov eax, [rbp+var_4]
add rsp, 60h
pop rbp
retn
| long long my_search_option_files(long long a1, _QWORD *a2, _QWORD *a3)
{
long long v4; // [rsp+8h] [rbp-58h]
unsigned int *v5; // [rsp+10h] [rbp-50h]
long long v6; // [rsp+18h] [rbp-48h]
long long v7; // [rsp+20h] [rbp-40h]
long long v8; // [rsp+28h] [rbp-38h]
unsigned int i; // [rsp+30h] [rbp-30h]
int v10; // [rsp+34h] [rbp-2Ch]
int v11; // [rsp+34h] [rbp-2Ch]
_QWORD *j; // [rsp+38h] [rbp-28h]
if ( !my_defaults_group_suffix )
goto LABEL_10;
v7 = strlen(my_defaults_group_suffix);
v5 = (unsigned int *)a2[2];
v8 = alloc_root(*a2, 8LL * (2 * *v5 + 1));
if ( v8 )
{
for ( i = 0; i < *v5; ++i )
{
*(_QWORD *)(v8 + 8LL * i) = *(_QWORD *)(*((_QWORD *)v5 + 2) + 8LL * i);
v4 = strlen(*(_QWORD *)(v8 + 8LL * i));
v6 = alloc_root(*a2, (unsigned int)(v7 + v4 + 1));
if ( !v6 )
return 2;
*(_QWORD *)(v8 + 8LL * (*v5 + i)) = v6;
memcpy(v6, *(_QWORD *)(v8 + 8LL * i), v4);
memcpy(v4 + v6, my_defaults_group_suffix, v7 + 1);
}
*v5 *= 2;
*((_QWORD *)v5 + 2) = v8;
*(_QWORD *)(*((_QWORD *)v5 + 2) + 8LL * *v5) = 0LL;
LABEL_10:
if ( my_defaults_file )
{
v10 = search_default_file_with_ext(a2, "", "", my_defaults_file, 0LL);
if ( v10 < 0 )
{
LABEL_29:
fprintf(stderr, "Fatal error in defaults handling. Program aborted\n");
return 1;
}
if ( v10 > 0 )
{
fprintf(stderr, "Could not open required defaults file: %s\n", (const char *)my_defaults_file);
goto LABEL_29;
}
}
else if ( dirname_length(a1) )
{
if ( (int)search_default_file(a2, 0LL, a1) < 0 )
goto LABEL_29;
}
else
{
for ( j = a3; *j; ++j )
{
if ( *(_BYTE *)*j )
{
if ( (int)search_default_file(a2, *j, a1) < 0 )
goto LABEL_29;
}
else if ( my_defaults_extra_file )
{
v11 = search_default_file_with_ext(a2, "", "", my_defaults_extra_file, 0LL);
if ( v11 < 0 )
goto LABEL_29;
if ( v11 > 0 )
{
fprintf(stderr, "Could not open required defaults file: %s\n", (const char *)my_defaults_extra_file);
goto LABEL_29;
}
}
}
}
return 0;
}
return 2;
}
| my_search_option_files:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x2c],0x0
LEA RAX,[0x499ea0]
CMP qword ptr [RAX],0x0
JZ 0x00136052
LEA RAX,[0x499ea0]
MOV RDI,qword ptr [RAX]
CALL 0x00125150
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x50],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RAX]
SHL EAX,0x1
ADD EAX,0x1
MOV EAX,EAX
MOV ESI,EAX
SHL RSI,0x3
CALL 0x0013b410
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JNZ 0x00135f52
JMP 0x00135f46
LAB_00135f46:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001361d8
LAB_00135f52:
MOV dword ptr [RBP + -0x30],0x0
LAB_00135f59:
MOV EAX,dword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x50]
CMP EAX,dword ptr [RCX]
JNC 0x00136026
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RBP + -0x30]
MOV RDX,qword ptr [RAX + RCX*0x8]
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x30]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x30]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x00125150
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x58]
ADD RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV EAX,EAX
MOV ESI,EAX
CALL 0x0013b410
MOV qword ptr [RBP + -0x48],RAX
CMP RAX,0x0
JNZ 0x00135fca
JMP 0x00135fbe
LAB_00135fbe:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x001361d8
LAB_00135fca:
MOV RDX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x50]
ADD ECX,dword ptr [RSI]
MOV ECX,ECX
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RDI,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RBP + -0x30]
MOV RSI,qword ptr [RAX + RCX*0x8]
MOV RDX,qword ptr [RBP + -0x58]
CALL 0x00125270
MOV RDI,qword ptr [RBP + -0x48]
ADD RDI,qword ptr [RBP + -0x58]
LEA RAX,[0x499ea0]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x40]
ADD RDX,0x1
CALL 0x00125270
MOV EAX,dword ptr [RBP + -0x30]
ADD EAX,0x1
MOV dword ptr [RBP + -0x30],EAX
JMP 0x00135f59
LAB_00136026:
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RAX]
SHL ECX,0x1
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x50]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RBP + -0x50]
MOV ECX,dword ptr [RCX]
MOV qword ptr [RAX + RCX*0x8],0x0
LAB_00136052:
LEA RAX,[0x499e98]
CMP qword ptr [RAX],0x0
JZ 0x001360be
MOV RDI,qword ptr [RBP + -0x18]
LEA RAX,[0x499e98]
MOV RCX,qword ptr [RAX]
LEA RDX,[0x1873da]
XOR R8D,R8D
MOV RSI,RDX
CALL 0x00136610
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JGE 0x0013608c
JMP 0x001361b9
LAB_0013608c:
CMP dword ptr [RBP + -0x2c],0x0
JLE 0x001360b9
MOV RAX,qword ptr [0x002d8fd8]
MOV RDI,qword ptr [RAX]
LEA RAX,[0x499e98]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x183f3a]
MOV AL,0x0
CALL 0x001254d0
JMP 0x001361b9
LAB_001360b9:
JMP 0x001361ae
LAB_001360be:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00139220
CMP RAX,0x0
JZ 0x001360f0
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x10]
XOR EAX,EAX
MOV ESI,EAX
CALL 0x00137320
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JGE 0x001360eb
JMP 0x001361b9
LAB_001360eb:
JMP 0x001361ac
LAB_001360f0:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x28],RAX
LAB_001360f8:
MOV RAX,qword ptr [RBP + -0x28]
CMP qword ptr [RAX],0x0
JZ 0x001361aa
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
CMP byte ptr [RAX],0x0
JZ 0x00136132
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
CALL 0x00137320
CMP EAX,0x0
JGE 0x00136130
JMP 0x001361b9
LAB_00136130:
JMP 0x00136197
LAB_00136132:
LEA RAX,[0x499ea8]
CMP qword ptr [RAX],0x0
JZ 0x00136195
MOV RDI,qword ptr [RBP + -0x18]
LEA RAX,[0x499ea8]
MOV RCX,qword ptr [RAX]
LEA RDX,[0x1873da]
XOR R8D,R8D
MOV RSI,RDX
CALL 0x00136610
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x0
JGE 0x00136169
JMP 0x001361b9
LAB_00136169:
CMP dword ptr [RBP + -0x2c],0x0
JLE 0x00136193
MOV RAX,qword ptr [0x002d8fd8]
MOV RDI,qword ptr [RAX]
LEA RAX,[0x499ea8]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x183f3a]
MOV AL,0x0
CALL 0x001254d0
JMP 0x001361b9
LAB_00136193:
JMP 0x00136195
LAB_00136195:
JMP 0x00136197
LAB_00136197:
JMP 0x00136199
LAB_00136199:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x8
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001360f8
LAB_001361aa:
JMP 0x001361ac
LAB_001361ac:
JMP 0x001361ae
LAB_001361ae:
JMP 0x001361b0
LAB_001361b0:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x001361d8
LAB_001361b9:
MOV RAX,qword ptr [0x002d8fd8]
MOV RDI,qword ptr [RAX]
LEA RSI,[0x183c43]
MOV AL,0x0
CALL 0x001254d0
MOV dword ptr [RBP + -0x4],0x1
LAB_001361d8:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x60
POP RBP
RET
|
int4 my_search_option_files(int8 param_1,int8 *param_2,long *param_3)
{
uint *puVar1;
int iVar2;
size_t sVar3;
long lVar4;
size_t __n;
void *__dest;
uint local_38;
long *local_30;
int4 local_c;
if (my_defaults_group_suffix != (char *)0x0) {
sVar3 = strlen(my_defaults_group_suffix);
puVar1 = (uint *)param_2[2];
lVar4 = alloc_root(*param_2,(ulong)(*puVar1 * 2 + 1) << 3);
if (lVar4 == 0) {
return 2;
}
for (local_38 = 0; local_38 < *puVar1; local_38 = local_38 + 1) {
*(int8 *)(lVar4 + (ulong)local_38 * 8) =
*(int8 *)(*(long *)(puVar1 + 4) + (ulong)local_38 * 8);
__n = strlen(*(char **)(lVar4 + (ulong)local_38 * 8));
__dest = (void *)alloc_root(*param_2,(int)__n + (int)sVar3 + 1);
if (__dest == (void *)0x0) {
return 2;
}
*(void **)(lVar4 + (ulong)(local_38 + *puVar1) * 8) = __dest;
memcpy(__dest,*(void **)(lVar4 + (ulong)local_38 * 8),__n);
memcpy((void *)((long)__dest + __n),my_defaults_group_suffix,sVar3 + 1);
}
*puVar1 = *puVar1 << 1;
*(long *)(puVar1 + 4) = lVar4;
*(int8 *)(*(long *)(puVar1 + 4) + (ulong)*puVar1 * 8) = 0;
}
if (my_defaults_file == 0) {
lVar4 = dirname_length(param_1);
local_30 = param_3;
if (lVar4 == 0) {
for (; *local_30 != 0; local_30 = local_30 + 1) {
if (*(char *)*local_30 == '\0') {
if (my_defaults_extra_file != 0) {
iVar2 = search_default_file_with_ext
(param_2,&DAT_001873da,&DAT_001873da,my_defaults_extra_file,0);
if (iVar2 < 0) goto LAB_001361b9;
if (0 < iVar2) {
fprintf(*(FILE **)PTR_stderr_002d8fd8,"Could not open required defaults file: %s\n",
my_defaults_extra_file);
goto LAB_001361b9;
}
}
}
else {
iVar2 = search_default_file(param_2,*local_30,param_1);
if (iVar2 < 0) goto LAB_001361b9;
}
}
}
else {
iVar2 = search_default_file(param_2,0,param_1);
if (iVar2 < 0) goto LAB_001361b9;
}
LAB_001361ae:
local_c = 0;
}
else {
iVar2 = search_default_file_with_ext(param_2,&DAT_001873da,&DAT_001873da,my_defaults_file,0);
if (-1 < iVar2) {
if (iVar2 < 1) goto LAB_001361ae;
fprintf(*(FILE **)PTR_stderr_002d8fd8,"Could not open required defaults file: %s\n",
my_defaults_file);
}
LAB_001361b9:
fprintf(*(FILE **)PTR_stderr_002d8fd8,"Fatal error in defaults handling. Program aborted\n");
local_c = 1;
}
return local_c;
}
| |
52,273 | get_charset_number | eloqsql/mysys/charset.c | uint get_charset_number(const char *charset_name, uint cs_flags, myf flags)
{
uint id;
const char *new_charset_name= flags & MY_UTF8_IS_UTF8MB3 ? "utf8mb3" :
"utf8mb4";
my_pthread_once(&charsets_initialized, init_available_charsets);
if ((id= get_charset_number_internal(charset_name, cs_flags)))
return id;
if ((charset_name= !my_strcasecmp(&my_charset_latin1, charset_name, "utf8") ?
new_charset_name : NULL))
return get_charset_number_internal(charset_name, cs_flags);
return 0;
} | O3 | c | get_charset_number:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
leaq 0x363a59(%rip), %rdi # 0x3be2e0
leaq -0x20b(%rip), %rsi # 0x5a683
callq 0x36290
movq %r15, %rdi
movl %ebx, %esi
callq 0x5a8f4
testl %eax, %eax
jne 0x5a8c4
leaq 0x309508(%rip), %rdi # 0x363db0
movq 0xc0(%rdi), %rax
leaq 0x3d860(%rip), %rdx # 0x98116
movq %r15, %rsi
callq *0x40(%rax)
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x5a8cf
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
btl $0xa, %r14d
leaq 0x3b4cd(%rip), %rax # 0x95da8
leaq 0x3bddd(%rip), %rdi # 0x966bf
cmovaeq %rax, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5a8f4
| get_charset_number:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov ebx, esi
mov r15, rdi
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, r15
mov esi, ebx
call get_charset_number_internal
test eax, eax
jnz short loc_5A8C4
lea rdi, my_charset_latin1
mov rax, [rdi+0C0h]
lea rdx, aUtf8; "utf8"
mov rsi, r15
call qword ptr [rax+40h]
mov ecx, eax
xor eax, eax
test ecx, ecx
jz short loc_5A8CF
loc_5A8C4:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_5A8CF:
bt r14d, 0Ah
lea rax, aUtf8mb4; "utf8mb4"
lea rdi, aUtf8mb3; "utf8mb3"
cmovnb rdi, rax
mov esi, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp short $+2
| long long get_charset_number(long long a1, unsigned int a2, __int16 a3)
{
long long result; // rax
int v5; // ecx
const char *v6; // rdi
pthread_once(&charsets_initialized, init_available_charsets);
result = get_charset_number_internal(a1, a2);
if ( !(_DWORD)result )
{
v5 = (*(long long ( **)(void *, long long, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a1,
"utf8");
result = 0LL;
if ( !v5 )
{
v6 = "utf8mb3";
if ( (a3 & 0x400) == 0 )
v6 = "utf8mb4";
return get_charset_number_internal(v6, a2);
}
}
return result;
}
| get_charset_number:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBX,ESI
MOV R15,RDI
LEA RDI,[0x4be2e0]
LEA RSI,[0x15a683]
CALL 0x00136290
MOV RDI,R15
MOV ESI,EBX
CALL 0x0015a8f4
TEST EAX,EAX
JNZ 0x0015a8c4
LEA RDI,[0x463db0]
MOV RAX,qword ptr [RDI + 0xc0]
LEA RDX,[0x198116]
MOV RSI,R15
CALL qword ptr [RAX + 0x40]
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
JZ 0x0015a8cf
LAB_0015a8c4:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_0015a8cf:
BT R14D,0xa
LEA RAX,[0x195da8]
LEA RDI,[0x1966bf]
CMOVNC RDI,RAX
MOV ESI,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0015a8f4
|
int8 get_charset_number(int8 param_1,int4 param_2,uint param_3)
{
int iVar1;
int8 uVar2;
char *pcVar3;
pthread_once(&charsets_initialized,init_available_charsets);
uVar2 = get_charset_number_internal(param_1,param_2);
if ((int)uVar2 == 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00463e70 + 0x40))
(&my_charset_latin1,param_1,&DAT_00198116);
uVar2 = 0;
if (iVar1 == 0) {
pcVar3 = "utf8mb3";
if ((param_3 >> 10 & 1) == 0) {
pcVar3 = "utf8mb4";
}
uVar2 = get_charset_number_internal(pcVar3,param_2);
return uVar2;
}
}
return uVar2;
}
| |
52,274 | bf_get_uint64 | bluesky950520[P]quickjs/libbf.c | int bf_get_uint64(uint64_t *pres, const bf_t *a)
{
uint64_t v;
int ret;
if (a->expn == BF_EXP_NAN) {
goto overflow;
} else if (a->expn <= 0) {
v = 0;
ret = 0;
} else if (a->sign) {
v = 0;
ret = BF_ST_INVALID_OP;
} else if (a->expn <= 64) {
#if LIMB_BITS == 32
if (a->expn <= 32)
v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn);
else
v = (((uint64_t)a->tab[a->len - 1] << 32) |
get_limbz(a, a->len - 2)) >> (64 - a->expn);
#else
v = a->tab[a->len - 1] >> (LIMB_BITS - a->expn);
#endif
ret = 0;
} else {
overflow:
v = UINT64_MAX;
ret = BF_ST_INVALID_OP;
}
*pres = v;
return ret;
} | O1 | c | bf_get_uint64:
movq 0x10(%rsi), %rcx
movl $0x1, %eax
movq $-0x1, %rdx
movabsq $0x7fffffffffffffff, %r8 # imm = 0x7FFFFFFFFFFFFFFF
cmpq %r8, %rcx
je 0x88a30
testq %rcx, %rcx
jle 0x88a12
cmpl $0x0, 0x8(%rsi)
je 0x88a16
xorl %edx, %edx
jmp 0x88a30
xorl %edx, %edx
jmp 0x88a2e
cmpq $0x40, %rcx
jg 0x88a30
movq 0x18(%rsi), %rax
movq 0x20(%rsi), %rdx
movq -0x8(%rdx,%rax,8), %rdx
negb %cl
shrq %cl, %rdx
xorl %eax, %eax
movq %rdx, (%rdi)
retq
| bf_get_uint64:
mov rcx, [rsi+10h]
mov eax, 1
mov rdx, 0FFFFFFFFFFFFFFFFh
mov r8, 7FFFFFFFFFFFFFFFh
cmp rcx, r8
jz short loc_88A30
test rcx, rcx
jle short loc_88A12
cmp dword ptr [rsi+8], 0
jz short loc_88A16
xor edx, edx
jmp short loc_88A30
loc_88A12:
xor edx, edx
jmp short loc_88A2E
loc_88A16:
cmp rcx, 40h ; '@'
jg short loc_88A30
mov rax, [rsi+18h]
mov rdx, [rsi+20h]
mov rdx, [rdx+rax*8-8]
neg cl
shr rdx, cl
loc_88A2E:
xor eax, eax
loc_88A30:
mov [rdi], rdx
retn
| long long bf_get_uint64(long long *a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // rdx
v2 = *(_QWORD *)(a2 + 16);
result = 1LL;
v4 = -1LL;
if ( v2 != 0x7FFFFFFFFFFFFFFFLL )
{
if ( v2 <= 0 )
{
v4 = 0LL;
}
else
{
if ( *(_DWORD *)(a2 + 8) )
{
v4 = 0LL;
goto LABEL_9;
}
if ( v2 > 64 )
goto LABEL_9;
v4 = *(_QWORD *)(*(_QWORD *)(a2 + 32) + 8LL * *(_QWORD *)(a2 + 24) - 8) >> -(char)v2;
}
result = 0LL;
}
LABEL_9:
*a1 = v4;
return result;
}
| bf_get_uint64:
MOV RCX,qword ptr [RSI + 0x10]
MOV EAX,0x1
MOV RDX,-0x1
MOV R8,0x7fffffffffffffff
CMP RCX,R8
JZ 0x00188a30
TEST RCX,RCX
JLE 0x00188a12
CMP dword ptr [RSI + 0x8],0x0
JZ 0x00188a16
XOR EDX,EDX
JMP 0x00188a30
LAB_00188a12:
XOR EDX,EDX
JMP 0x00188a2e
LAB_00188a16:
CMP RCX,0x40
JG 0x00188a30
MOV RAX,qword ptr [RSI + 0x18]
MOV RDX,qword ptr [RSI + 0x20]
MOV RDX,qword ptr [RDX + RAX*0x8 + -0x8]
NEG CL
SHR RDX,CL
LAB_00188a2e:
XOR EAX,EAX
LAB_00188a30:
MOV qword ptr [RDI],RDX
RET
|
int8 bf_get_uint64(ulong *param_1,long param_2)
{
long lVar1;
int8 uVar2;
ulong uVar3;
lVar1 = *(long *)(param_2 + 0x10);
uVar2 = 1;
uVar3 = 0xffffffffffffffff;
if (lVar1 == 0x7fffffffffffffff) goto LAB_00188a30;
if (lVar1 < 1) {
uVar3 = 0;
}
else {
if (*(int *)(param_2 + 8) != 0) {
uVar3 = 0;
goto LAB_00188a30;
}
if (0x40 < lVar1) goto LAB_00188a30;
uVar3 = *(ulong *)(*(long *)(param_2 + 0x20) + -8 + *(long *)(param_2 + 0x18) * 8) >>
(-(char)lVar1 & 0x3fU);
}
uVar2 = 0;
LAB_00188a30:
*param_1 = uVar3;
return uVar2;
}
| |
52,275 | compile_mul_expr | fabiosvm[P]rak/src/compiler.c | static inline void compile_mul_expr(RakCompiler *comp, RakError *err)
{
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
for (;;)
{
if (match(comp, RAK_TOKEN_KIND_STAR))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_mul_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
if (match(comp, RAK_TOKEN_KIND_SLASH))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_div_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
if (match(comp, RAK_TOKEN_KIND_PERCENT))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_mod_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
break;
}
} | O2 | c | compile_mul_expr:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x46ca
cmpb $0x1, (%rbx)
jne 0x46bb
leaq 0x27f8(%r14), %r15
pushq $0x17
popq %rbp
pushq $0x16
popq %r12
pushq $0x15
popq %r13
movl 0x2810(%r14), %eax
cmpl $0x20, %eax
je 0x4685
cmpl $0x1e, %eax
je 0x465d
cmpl $0x1c, %eax
jne 0x46bb
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5512
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46ca
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movl %r13d, %esi
jmp 0x46aa
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5512
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46ca
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movl %r12d, %esi
jmp 0x46aa
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5512
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46ca
cmpb $0x1, (%rbx)
jne 0x46bb
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x3306
cmpb $0x0, (%rbx)
jne 0x461b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| compile_mul_expr:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
mov r14, rdi
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz loc_46BB
lea r15, [r14+27F8h]
push 17h
pop rbp
push 16h
pop r12
push 15h
pop r13
loc_461B:
mov eax, [r14+2810h]
cmp eax, 20h ; ' '
jz short loc_4685
cmp eax, 1Eh
jz short loc_465D
cmp eax, 1Ch
jnz loc_46BB
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov esi, r13d
jmp short loc_46AA
loc_465D:
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov esi, r12d
jmp short loc_46AA
loc_4685:
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_46BB
mov rdi, r14
mov esi, ebp
loc_46AA:
mov rdx, rbx
call rak_chunk_append_instr
cmp byte ptr [rbx], 0
jnz loc_461B
loc_46BB:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long compile_mul_expr(long long a1, char *a2)
{
long long result; // rax
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rdi
int v9; // esi
result = compile_unary_expr(a1);
if ( *a2 == 1 )
{
do
{
result = *(unsigned int *)(a1 + 10256);
switch ( (_DWORD)result )
{
case 0x20:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 23;
break;
case 0x1E:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 22;
break;
case 0x1C:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 21;
break;
default:
return result;
}
result = rak_chunk_append_instr(v8, v9, a2, v5, v6, v7);
}
while ( *a2 );
}
return result;
}
| compile_mul_expr:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
MOV R14,RDI
CALL 0x001046ca
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
LEA R15,[R14 + 0x27f8]
PUSH 0x17
POP RBP
PUSH 0x16
POP R12
PUSH 0x15
POP R13
LAB_0010461b:
MOV EAX,dword ptr [R14 + 0x2810]
CMP EAX,0x20
JZ 0x00104685
CMP EAX,0x1e
JZ 0x0010465d
CMP EAX,0x1c
JNZ 0x001046bb
MOV RDI,R15
MOV RSI,RBX
CALL 0x00105512
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV RSI,RBX
CALL 0x001046ca
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV ESI,R13D
JMP 0x001046aa
LAB_0010465d:
MOV RDI,R15
MOV RSI,RBX
CALL 0x00105512
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV RSI,RBX
CALL 0x001046ca
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV ESI,R12D
JMP 0x001046aa
LAB_00104685:
MOV RDI,R15
MOV RSI,RBX
CALL 0x00105512
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV RSI,RBX
CALL 0x001046ca
CMP byte ptr [RBX],0x1
JNZ 0x001046bb
MOV RDI,R14
MOV ESI,EBP
LAB_001046aa:
MOV RDX,RBX
CALL 0x00103306
CMP byte ptr [RBX],0x0
JNZ 0x0010461b
LAB_001046bb:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void compile_mul_expr(long param_1,char *param_2)
{
long lVar1;
int iVar2;
int8 uVar3;
compile_unary_expr();
if (*param_2 == '\x01') {
lVar1 = param_1 + 0x27f8;
do {
iVar2 = *(int *)(param_1 + 0x2810);
if (iVar2 == 0x20) {
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x17;
}
else if (iVar2 == 0x1e) {
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x16;
}
else {
if (iVar2 != 0x1c) {
return;
}
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x15;
}
rak_chunk_append_instr(param_1,uVar3,param_2);
} while (*param_2 != '\0');
}
return;
}
| |
52,276 | compile_mul_expr | fabiosvm[P]rak/src/compiler.c | static inline void compile_mul_expr(RakCompiler *comp, RakError *err)
{
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
for (;;)
{
if (match(comp, RAK_TOKEN_KIND_STAR))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_mul_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
if (match(comp, RAK_TOKEN_KIND_SLASH))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_div_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
if (match(comp, RAK_TOKEN_KIND_PERCENT))
{
next(comp, err);
compile_unary_expr(comp, err);
if (!rak_is_ok(err)) return;
emit_instr(comp, rak_mod_instr(), err);
if (!rak_is_ok(err)) return;
continue;
}
break;
}
} | O3 | c | compile_mul_expr:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x538f
cmpb $0x1, (%rbx)
jne 0x5389
leaq 0x27f8(%r14), %r15
movl 0x2810(%r14), %eax
cmpl $0x20, %eax
je 0x5350
cmpl $0x1e, %eax
je 0x5326
cmpl $0x1c, %eax
jne 0x5389
movq %r15, %rdi
movq %rbx, %rsi
callq 0x679a
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movq %rbx, %rsi
callq 0x538f
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movl $0x15, %esi
jmp 0x5378
movq %r15, %rdi
movq %rbx, %rsi
callq 0x679a
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movq %rbx, %rsi
callq 0x538f
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movl $0x16, %esi
jmp 0x5378
movq %r15, %rdi
movq %rbx, %rsi
callq 0x679a
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movq %rbx, %rsi
callq 0x538f
cmpb $0x1, (%rbx)
jne 0x5389
movq %r14, %rdi
movl $0x17, %esi
movq %rbx, %rdx
callq 0x392d
cmpb $0x0, (%rbx)
jne 0x52e2
popq %rbx
popq %r14
popq %r15
retq
| compile_mul_expr:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz loc_5389
lea r15, [r14+27F8h]
loc_52E2:
mov eax, [r14+2810h]
cmp eax, 20h ; ' '
jz short loc_5350
cmp eax, 1Eh
jz short loc_5326
cmp eax, 1Ch
jnz loc_5389
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov esi, 15h
jmp short loc_5378
loc_5326:
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov esi, 16h
jmp short loc_5378
loc_5350:
mov rdi, r15
mov rsi, rbx
call rak_lexer_next
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov rsi, rbx
call compile_unary_expr
cmp byte ptr [rbx], 1
jnz short loc_5389
mov rdi, r14
mov esi, 17h
loc_5378:
mov rdx, rbx
call rak_chunk_append_instr
cmp byte ptr [rbx], 0
jnz loc_52E2
loc_5389:
pop rbx
pop r14
pop r15
retn
| long long compile_mul_expr(long long a1, char *a2)
{
long long result; // rax
int v5; // ecx
int v6; // r8d
int v7; // r9d
long long v8; // rdi
int v9; // esi
result = ((long long (*)(void))compile_unary_expr)();
if ( *a2 == 1 )
{
do
{
result = *(unsigned int *)(a1 + 10256);
switch ( (_DWORD)result )
{
case 0x20:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1, a2);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 23;
break;
case 0x1E:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1, a2);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 22;
break;
case 0x1C:
result = rak_lexer_next(a1 + 10232, a2);
if ( *a2 != 1 )
return result;
result = compile_unary_expr(a1, a2);
if ( *a2 != 1 )
return result;
v8 = a1;
v9 = 21;
break;
default:
return result;
}
result = rak_chunk_append_instr(v8, v9, a2, v5, v6, v7);
}
while ( *a2 );
}
return result;
}
| compile_mul_expr:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
CALL 0x0010538f
CMP byte ptr [RBX],0x1
JNZ 0x00105389
LEA R15,[R14 + 0x27f8]
LAB_001052e2:
MOV EAX,dword ptr [R14 + 0x2810]
CMP EAX,0x20
JZ 0x00105350
CMP EAX,0x1e
JZ 0x00105326
CMP EAX,0x1c
JNZ 0x00105389
MOV RDI,R15
MOV RSI,RBX
CALL 0x0010679a
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV RSI,RBX
CALL 0x0010538f
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV ESI,0x15
JMP 0x00105378
LAB_00105326:
MOV RDI,R15
MOV RSI,RBX
CALL 0x0010679a
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV RSI,RBX
CALL 0x0010538f
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV ESI,0x16
JMP 0x00105378
LAB_00105350:
MOV RDI,R15
MOV RSI,RBX
CALL 0x0010679a
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV RSI,RBX
CALL 0x0010538f
CMP byte ptr [RBX],0x1
JNZ 0x00105389
MOV RDI,R14
MOV ESI,0x17
LAB_00105378:
MOV RDX,RBX
CALL 0x0010392d
CMP byte ptr [RBX],0x0
JNZ 0x001052e2
LAB_00105389:
POP RBX
POP R14
POP R15
RET
|
void compile_mul_expr(long param_1,char *param_2)
{
long lVar1;
int iVar2;
int8 uVar3;
compile_unary_expr();
if (*param_2 == '\x01') {
lVar1 = param_1 + 0x27f8;
do {
iVar2 = *(int *)(param_1 + 0x2810);
if (iVar2 == 0x20) {
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x17;
}
else if (iVar2 == 0x1e) {
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x16;
}
else {
if (iVar2 != 0x1c) {
return;
}
rak_lexer_next(lVar1,param_2);
if (*param_2 != '\x01') {
return;
}
compile_unary_expr(param_1,param_2);
if (*param_2 != '\x01') {
return;
}
uVar3 = 0x15;
}
rak_chunk_append_instr(param_1,uVar3,param_2);
} while (*param_2 != '\0');
}
return;
}
| |
52,277 | on_glfw_framebuffer_size(GLFWwindow*, int, int) | untodesu[P]voxelius/game/client/main.cc | static void on_glfw_framebuffer_size(GLFWwindow *window, int width, int height)
{
if(glfwGetWindowAttrib(window, GLFW_ICONIFIED)) {
// Don't do anything if the window was just
// iconified (minimized); as it turns out minimized
// windows on WIN32 seem to be forced into 0x0
return;
}
globals::width = width;
globals::height = height;
globals::aspect = static_cast<float>(width) / static_cast<float>(height);
GlfwFramebufferSizeEvent fb_event;
fb_event.size.x = globals::width;
fb_event.size.y = globals::height;
fb_event.aspect = globals::aspect;
globals::dispatcher.trigger(fb_event);
} | O3 | cpp | on_glfw_framebuffer_size(GLFWwindow*, int, int):
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movl %esi, %ebp
movl $0x20002, %esi # imm = 0x20002
callq 0x9f060
testl %eax, %eax
jne 0x5744c
leaq 0x202be2(%rip), %rax # 0x259fd0
cvtsi2ss %ebp, %xmm1
movl %ebp, (%rax)
cvtsi2ss %ebx, %xmm0
leaq 0x202bd5(%rip), %rax # 0x259fd4
movl %ebx, (%rax)
divss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
leaq 0x202bc6(%rip), %rax # 0x259fd8
movss %xmm1, (%rax)
movl %ebp, %eax
shlq $0x20, %rbx
orq %rax, %rbx
leaq 0x2053fa(%rip), %rdi # 0x25c820
movl $0x81bd48a3, %esi # imm = 0x81BD48A3
callq 0x4b0c0
leaq 0x8(%rsp), %rsi
movq %rbx, (%rsi)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x8(%rsi)
leaq 0x8(%rax), %rdi
callq 0x4b304
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
| _ZL24on_glfw_framebuffer_sizeP10GLFWwindowii:
push rbp
push rbx
sub rsp, 18h
mov ebx, edx
mov ebp, esi
mov esi, 20002h
call glfwGetWindowAttrib
test eax, eax
jnz short loc_5744C
lea rax, _ZN7globals5widthE; globals::width
cvtsi2ss xmm1, ebp
mov [rax], ebp
cvtsi2ss xmm0, ebx
lea rax, _ZN7globals6heightE; globals::height
mov [rax], ebx
divss xmm1, xmm0
movss [rsp+28h+var_24], xmm1
lea rax, _ZN7globals6aspectE; globals::aspect
movss dword ptr [rax], xmm1
mov eax, ebp
shl rbx, 20h
or rbx, rax
lea rdi, _ZN7globals10dispatcherE; globals::dispatcher
mov esi, 81BD48A3h
call _ZN4entt16basic_dispatcherISaIvEE6assureI24GlfwFramebufferSizeEventEERNS_8internal18dispatcher_handlerIT_S1_EEj; entt::basic_dispatcher<std::allocator<void>>::assure<GlfwFramebufferSizeEvent>(uint)
lea rsi, [rsp+28h+var_20]
mov [rsi], rbx
movss xmm0, [rsp+28h+var_24]
movss dword ptr [rsi+8], xmm0
lea rdi, [rax+8]
call _ZNK4entt4sighIFvR24GlfwFramebufferSizeEventESaIvEE7publishES2_; entt::sigh<void ()(GlfwFramebufferSizeEvent &),std::allocator<void>>::publish(GlfwFramebufferSizeEvent &)
loc_5744C:
add rsp, 18h
pop rbx
pop rbp
retn
| long long on_glfw_framebuffer_size(long long a1, int a2, unsigned int a3)
{
long long v3; // rbx
long long result; // rax
long long v5; // rax
unsigned long long v6; // [rsp+8h] [rbp-20h] BYREF
float v7; // [rsp+10h] [rbp-18h]
v3 = a3;
result = glfwGetWindowAttrib(a1, 131074LL);
if ( !(_DWORD)result )
{
globals::width = a2;
globals::height = v3;
*(float *)&globals::aspect = (float)a2 / (float)(int)v3;
v5 = entt::basic_dispatcher<std::allocator<void>>::assure<GlfwFramebufferSizeEvent>(
globals::dispatcher,
-2118301533);
v6 = (unsigned int)a2 | (unsigned long long)(v3 << 32);
v7 = (float)a2 / (float)(int)v3;
return entt::sigh<void ()(GlfwFramebufferSizeEvent &),std::allocator<void>>::publish(
(_QWORD *)(v5 + 8),
(long long)&v6);
}
return result;
}
| on_glfw_framebuffer_size:
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV EBX,EDX
MOV EBP,ESI
MOV ESI,0x20002
CALL 0x0019f060
TEST EAX,EAX
JNZ 0x0015744c
LEA RAX,[0x359fd0]
CVTSI2SS XMM1,EBP
MOV dword ptr [RAX],EBP
CVTSI2SS XMM0,EBX
LEA RAX,[0x359fd4]
MOV dword ptr [RAX],EBX
DIVSS XMM1,XMM0
MOVSS dword ptr [RSP + 0x4],XMM1
LEA RAX,[0x359fd8]
MOVSS dword ptr [RAX],XMM1
MOV EAX,EBP
SHL RBX,0x20
OR RBX,RAX
LEA RDI,[0x35c820]
MOV ESI,0x81bd48a3
CALL 0x0014b0c0
LEA RSI,[RSP + 0x8]
MOV qword ptr [RSI],RBX
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RSI + 0x8],XMM0
LEA RDI,[RAX + 0x8]
CALL 0x0014b304
LAB_0015744c:
ADD RSP,0x18
POP RBX
POP RBP
RET
|
/* on_glfw_framebuffer_size(GLFWwindow*, int, int) */
void on_glfw_framebuffer_size(GLFWwindow *param_1,int param_2,int param_3)
{
int iVar1;
dispatcher_handler *pdVar2;
int8 local_20;
float local_18;
iVar1 = glfwGetWindowAttrib(param_1,0x20002);
if (iVar1 == 0) {
globals::width = param_2;
globals::height = param_3;
globals::aspect = (float)param_2 / (float)param_3;
pdVar2 = entt::basic_dispatcher<std::allocator<void>>::assure<GlfwFramebufferSizeEvent>
((basic_dispatcher<std::allocator<void>> *)globals::dispatcher,0x81bd48a3);
local_20 = CONCAT44(param_3,param_2);
local_18 = (float)param_2 / (float)param_3;
entt::sigh<void(GlfwFramebufferSizeEvent&),std::allocator<void>>::publish
((sigh<void(GlfwFramebufferSizeEvent&),std::allocator<void>> *)(pdVar2 + 8),
(GlfwFramebufferSizeEvent *)&local_20);
}
return;
}
| |
52,278 | MNN::TensorArray::UnPackTo(MNN::TensorArrayT*, std::__1::function<void (void**, unsigned long)> const*) const | mnn-tts/MNN/schema/current/TensorflowOp_generated.h | inline void TensorArray::UnPackTo(TensorArrayT *_o, const flatbuffers::resolver_function_t *_resolver) const {
(void)_o;
(void)_resolver;
{ auto _e = dynamic_size(); _o->dynamic_size = _e; };
{ auto _e = identical_element_shapes(); _o->identical_element_shapes = _e; };
{ auto _e = element_shape(); if (_e) { _o->element_shape.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->element_shape[_i] = _e->Get(_i); } } };
{ auto _e = T(); _o->T = _e; };
{ auto _e = axis(); _o->axis = _e; };
{ auto _e = keepdims(); _o->keepdims = _e; };
{ auto _e = new_axis(); _o->new_axis = _e; };
} | O0 | c | MNN::TensorArray::UnPackTo(MNN::TensorArrayT*, std::__1::function<void (void**, unsigned long)> const*) const:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x2a720
movq 0x18(%rsp), %rdi
andb $0x1, %al
movb %al, 0x3f(%rsp)
movb 0x3f(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
callq 0x2a750
movq 0x18(%rsp), %rdi
andb $0x1, %al
movb %al, 0x3e(%rsp)
movb 0x3e(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x1(%rax)
callq 0x2a780
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x2a6a5
movq 0x48(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb480
movq 0x10(%rsp), %rdi
movl %eax, %eax
movl %eax, %esi
callq 0xb410
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0xc(%rsp)
movq 0x30(%rsp), %rdi
callq 0xb480
movl %eax, %ecx
movl 0xc(%rsp), %eax
cmpl %ecx, %eax
jae 0x2a6a3
movq 0x30(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0xb4a0
movl %eax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
addq $0x8, %rdi
movl 0x2c(%rsp), %eax
movl %eax, %esi
callq 0xb510
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x2a64e
jmp 0x2a6a5
movq 0x18(%rsp), %rdi
callq 0x2a7a0
movq 0x18(%rsp), %rdi
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %ecx
movq 0x48(%rsp), %rax
movl %ecx, 0x20(%rax)
callq 0x2a7c0
movq 0x18(%rsp), %rdi
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %ecx
movq 0x48(%rsp), %rax
movl %ecx, 0x24(%rax)
callq 0x2a7e0
movq 0x18(%rsp), %rdi
andb $0x1, %al
movb %al, 0x23(%rsp)
movb 0x23(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x28(%rax)
callq 0x2a810
andb $0x1, %al
movb %al, 0x22(%rsp)
movb 0x22(%rsp), %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x29(%rax)
addq $0x58, %rsp
retq
nopl (%rax)
| _ZNK3MNN11TensorArray8UnPackToEPNS_12TensorArrayTEPKNSt3__18functionIFvPPvmEEE:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov [rsp+58h+var_18], rdx
mov rdi, [rsp+58h+var_8]; this
mov [rsp+58h+var_40], rdi
call _ZNK3MNN11TensorArray12dynamic_sizeEv; MNN::TensorArray::dynamic_size(void)
mov rdi, [rsp+58h+var_40]; this
and al, 1
mov [rsp+58h+var_19], al
mov cl, [rsp+58h+var_19]
mov rax, [rsp+58h+var_10]
and cl, 1
mov [rax], cl
call _ZNK3MNN11TensorArray24identical_element_shapesEv; MNN::TensorArray::identical_element_shapes(void)
mov rdi, [rsp+58h+var_40]; this
and al, 1
mov [rsp+58h+var_1A], al
mov cl, [rsp+58h+var_1A]
mov rax, [rsp+58h+var_10]
and cl, 1
mov [rax+1], cl
call _ZNK3MNN11TensorArray13element_shapeEv; MNN::TensorArray::element_shape(void)
mov [rsp+58h+var_28], rax
cmp [rsp+58h+var_28], 0
jz loc_2A6A5
mov rax, [rsp+58h+var_10]
add rax, 8
mov [rsp+58h+var_48], rax
mov rdi, [rsp+58h+var_28]
call _ZNK11flatbuffers6VectorIiE4sizeEv; flatbuffers::Vector<int>::size(void)
mov rdi, [rsp+58h+var_48]
mov eax, eax
mov esi, eax
call _ZNSt3__16vectorIiNS_9allocatorIiEEE6resizeEm; std::vector<int>::resize(ulong)
mov [rsp+58h+var_2C], 0
loc_2A64E:
mov eax, [rsp+58h+var_2C]
mov [rsp+58h+var_4C], eax
mov rdi, [rsp+58h+var_28]
call _ZNK11flatbuffers6VectorIiE4sizeEv; flatbuffers::Vector<int>::size(void)
mov ecx, eax
mov eax, [rsp+58h+var_4C]
cmp eax, ecx
jnb short loc_2A6A3
mov rdi, [rsp+58h+var_28]
mov esi, [rsp+58h+var_2C]
call _ZNK11flatbuffers6VectorIiE3GetEj; flatbuffers::Vector<int>::Get(uint)
mov [rsp+58h+var_50], eax
mov rdi, [rsp+58h+var_10]
add rdi, 8
mov eax, [rsp+58h+var_2C]
mov esi, eax
call _ZNSt3__16vectorIiNS_9allocatorIiEEEixB8nn200100Em; std::vector<int>::operator[](ulong)
mov ecx, [rsp+58h+var_50]
mov [rax], ecx
mov eax, [rsp+58h+var_2C]
add eax, 1
mov [rsp+58h+var_2C], eax
jmp short loc_2A64E
loc_2A6A3:
jmp short $+2
loc_2A6A5:
mov rdi, [rsp+58h+var_40]; this
call _ZNK3MNN11TensorArray1TEv; MNN::TensorArray::T(void)
mov rdi, [rsp+58h+var_40]; this
mov [rsp+58h+var_30], eax
mov ecx, [rsp+58h+var_30]
mov rax, [rsp+58h+var_10]
mov [rax+20h], ecx
call _ZNK3MNN11TensorArray4axisEv; MNN::TensorArray::axis(void)
mov rdi, [rsp+58h+var_40]; this
mov [rsp+58h+var_34], eax
mov ecx, [rsp+58h+var_34]
mov rax, [rsp+58h+var_10]
mov [rax+24h], ecx
call _ZNK3MNN11TensorArray8keepdimsEv; MNN::TensorArray::keepdims(void)
mov rdi, [rsp+58h+var_40]; this
and al, 1
mov [rsp+58h+var_35], al
mov cl, [rsp+58h+var_35]
mov rax, [rsp+58h+var_10]
and cl, 1
mov [rax+28h], cl
call _ZNK3MNN11TensorArray8new_axisEv; MNN::TensorArray::new_axis(void)
and al, 1
mov [rsp+58h+var_36], al
mov cl, [rsp+58h+var_36]
mov rax, [rsp+58h+var_10]
and cl, 1
mov [rax+29h], cl
add rsp, 58h
retn
| long long MNN::TensorArray::UnPackTo(MNN::TensorArray *a1, long long a2)
{
unsigned int v2; // eax
char v3; // cl
long long result; // rax
int v5; // [rsp+8h] [rbp-50h]
unsigned int i; // [rsp+2Ch] [rbp-2Ch]
unsigned int *v7; // [rsp+30h] [rbp-28h]
*(_BYTE *)a2 = MNN::TensorArray::dynamic_size(a1) & 1;
*(_BYTE *)(a2 + 1) = MNN::TensorArray::identical_element_shapes(a1) & 1;
v7 = (unsigned int *)MNN::TensorArray::element_shape(a1);
if ( v7 )
{
v2 = flatbuffers::Vector<int>::size(v7);
std::vector<int>::resize((_QWORD *)(a2 + 8), v2);
for ( i = 0; i < (unsigned int)flatbuffers::Vector<int>::size(v7); ++i )
{
v5 = flatbuffers::Vector<int>::Get(v7, i);
*(_DWORD *)std::vector<int>::operator[][abi:nn200100]((_QWORD *)(a2 + 8), i) = v5;
}
}
*(_DWORD *)(a2 + 32) = MNN::TensorArray::T(a1);
*(_DWORD *)(a2 + 36) = MNN::TensorArray::axis(a1);
*(_BYTE *)(a2 + 40) = MNN::TensorArray::keepdims(a1) & 1;
v3 = MNN::TensorArray::new_axis(a1) & 1;
result = a2;
*(_BYTE *)(a2 + 41) = v3 & 1;
return result;
}
| UnPackTo:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV qword ptr [RSP + 0x40],RDX
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0012a720
MOV RDI,qword ptr [RSP + 0x18]
AND AL,0x1
MOV byte ptr [RSP + 0x3f],AL
MOV CL,byte ptr [RSP + 0x3f]
MOV RAX,qword ptr [RSP + 0x48]
AND CL,0x1
MOV byte ptr [RAX],CL
CALL 0x0012a750
MOV RDI,qword ptr [RSP + 0x18]
AND AL,0x1
MOV byte ptr [RSP + 0x3e],AL
MOV CL,byte ptr [RSP + 0x3e]
MOV RAX,qword ptr [RSP + 0x48]
AND CL,0x1
MOV byte ptr [RAX + 0x1],CL
CALL 0x0012a780
MOV qword ptr [RSP + 0x30],RAX
CMP qword ptr [RSP + 0x30],0x0
JZ 0x0012a6a5
MOV RAX,qword ptr [RSP + 0x48]
ADD RAX,0x8
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0010b480
MOV RDI,qword ptr [RSP + 0x10]
MOV EAX,EAX
MOV ESI,EAX
CALL 0x0010b410
MOV dword ptr [RSP + 0x2c],0x0
LAB_0012a64e:
MOV EAX,dword ptr [RSP + 0x2c]
MOV dword ptr [RSP + 0xc],EAX
MOV RDI,qword ptr [RSP + 0x30]
CALL 0x0010b480
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,ECX
JNC 0x0012a6a3
MOV RDI,qword ptr [RSP + 0x30]
MOV ESI,dword ptr [RSP + 0x2c]
CALL 0x0010b4a0
MOV dword ptr [RSP + 0x8],EAX
MOV RDI,qword ptr [RSP + 0x48]
ADD RDI,0x8
MOV EAX,dword ptr [RSP + 0x2c]
MOV ESI,EAX
CALL 0x0010b510
MOV ECX,dword ptr [RSP + 0x8]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RSP + 0x2c]
ADD EAX,0x1
MOV dword ptr [RSP + 0x2c],EAX
JMP 0x0012a64e
LAB_0012a6a3:
JMP 0x0012a6a5
LAB_0012a6a5:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x0012a7a0
MOV RDI,qword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x28],EAX
MOV ECX,dword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x48]
MOV dword ptr [RAX + 0x20],ECX
CALL 0x0012a7c0
MOV RDI,qword ptr [RSP + 0x18]
MOV dword ptr [RSP + 0x24],EAX
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x48]
MOV dword ptr [RAX + 0x24],ECX
CALL 0x0012a7e0
MOV RDI,qword ptr [RSP + 0x18]
AND AL,0x1
MOV byte ptr [RSP + 0x23],AL
MOV CL,byte ptr [RSP + 0x23]
MOV RAX,qword ptr [RSP + 0x48]
AND CL,0x1
MOV byte ptr [RAX + 0x28],CL
CALL 0x0012a810
AND AL,0x1
MOV byte ptr [RSP + 0x22],AL
MOV CL,byte ptr [RSP + 0x22]
MOV RAX,qword ptr [RSP + 0x48]
AND CL,0x1
MOV byte ptr [RAX + 0x29],CL
ADD RSP,0x58
RET
|
/* MNN::TensorArray::UnPackTo(MNN::TensorArrayT*, std::function<void (void**, unsigned long)>
const*) const */
void MNN::TensorArray::UnPackTo(TensorArrayT *param_1,function *param_2)
{
byte bVar1;
uint uVar2;
int4 uVar3;
Vector<int> *this;
int4 *puVar4;
uint local_2c;
bVar1 = dynamic_size((TensorArray *)param_1);
*param_2 = (function)(bVar1 & 1);
bVar1 = identical_element_shapes((TensorArray *)param_1);
param_2[1] = (function)(bVar1 & 1);
this = (Vector<int> *)element_shape((TensorArray *)param_1);
if (this != (Vector<int> *)0x0) {
uVar2 = flatbuffers::Vector<int>::size(this);
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)(param_2 + 8),(ulong)uVar2);
for (local_2c = 0; uVar2 = flatbuffers::Vector<int>::size(this), local_2c < uVar2;
local_2c = local_2c + 1) {
uVar3 = flatbuffers::Vector<int>::Get(this,local_2c);
puVar4 = (int4 *)
std::vector<int,std::allocator<int>>::operator[][abi_nn200100_
((vector<int,std::allocator<int>> *)(param_2 + 8),(ulong)local_2c);
*puVar4 = uVar3;
}
}
uVar3 = T((TensorArray *)param_1);
*(int4 *)(param_2 + 0x20) = uVar3;
uVar3 = axis((TensorArray *)param_1);
*(int4 *)(param_2 + 0x24) = uVar3;
bVar1 = keepdims((TensorArray *)param_1);
param_2[0x28] = (function)(bVar1 & 1);
bVar1 = new_axis((TensorArray *)param_1);
param_2[0x29] = (function)(bVar1 & 1);
return;
}
| |
52,279 | ma_write_undo_key_delete | eloqsql/storage/maria/ma_delete.c | my_bool _ma_write_undo_key_delete(MARIA_HA *info, const MARIA_KEY *key,
my_off_t new_root, LSN *res_lsn)
{
MARIA_SHARE *share= info->s;
uchar log_data[LSN_STORE_SIZE + FILEID_STORE_SIZE +
KEY_NR_STORE_SIZE + PAGE_STORE_SIZE], *log_pos;
LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2];
struct st_msg_to_write_hook_for_undo_key msg;
enum translog_record_type log_type= LOGREC_UNDO_KEY_DELETE;
uint keynr= key->keyinfo->key_nr;
lsn_store(log_data, info->trn->undo_lsn);
key_nr_store(log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE, keynr);
log_pos= log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE + KEY_NR_STORE_SIZE;
/**
@todo BUG if we had concurrent insert/deletes, reading state's key_root
like this would be unsafe.
*/
if (new_root != share->state.key_root[keynr])
{
my_off_t page;
page= ((new_root == HA_OFFSET_ERROR) ? IMPOSSIBLE_PAGE_NO :
new_root / share->block_size);
page_store(log_pos, page);
log_pos+= PAGE_STORE_SIZE;
log_type= LOGREC_UNDO_KEY_DELETE_WITH_ROOT;
}
log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data;
log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos - log_data);
log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key->data;
log_array[TRANSLOG_INTERNAL_PARTS + 1].length= (key->data_length +
key->ref_length);
msg.root= &share->state.key_root[keynr];
msg.value= new_root;
/*
set autoincrement to 1 if this is an auto_increment key
This is only used if we are now in a rollback of a duplicate key
*/
msg.auto_increment= share->base.auto_key == keynr + 1;
return translog_write_record(res_lsn, log_type,
info->trn, info,
(translog_size_t)
(log_array[TRANSLOG_INTERNAL_PARTS + 0].length +
log_array[TRANSLOG_INTERNAL_PARTS + 1].length),
TRANSLOG_INTERNAL_PARTS + 2, log_array,
log_data + LSN_STORE_SIZE, &msg) ? -1 : 0;
} | O0 | c | ma_write_undo_key_delete:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x17, -0xb4(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movzbl 0xa5(%rax), %eax
movl %eax, -0xb8(%rbp)
jmp 0x87474
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x98(%rax), %rax
sarq $0x20, %rax
movb %al, -0x17(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x98(%rax), %rax
sarq $0x20, %rax
shrl $0x8, %eax
movb %al, -0x16(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x98(%rax), %rax
sarq $0x20, %rax
shrl $0x10, %eax
movb %al, -0x15(%rbp)
jmp 0x874be
leaq -0x17(%rbp), %rax
addq $0x3, %rax
movq %rax, -0xc0(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF
andq 0x98(%rcx), %rax
movl %eax, %ecx
movq -0xc0(%rbp), %rax
movl %ecx, (%rax)
jmp 0x874f3
movl -0xb8(%rbp), %eax
movb %al, -0xe(%rbp)
leaq -0x17(%rbp), %rax
addq $0x7, %rax
addq $0x2, %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movq 0x118(%rcx), %rcx
movl -0xb8(%rbp), %edx
cmpq (%rcx,%rdx,8), %rax
je 0x875bb
cmpq $-0x1, -0x30(%rbp)
jne 0x87549
movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF
movq %rax, -0xd8(%rbp)
jmp 0x87563
movq -0x30(%rbp), %rax
movq -0x40(%rbp), %rcx
movl 0x7bc(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movl %eax, %ecx
movq -0xd0(%rbp), %rax
movl %ecx, (%rax)
movq -0xc8(%rbp), %rax
shrq $0x20, %rax
movb %al, %cl
movq -0xd0(%rbp), %rax
movb %cl, 0x4(%rax)
movq -0x48(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x48(%rbp)
movl $0x18, -0xb4(%rbp)
leaq -0x17(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movl -0x48(%rbp), %eax
subl %ecx, %eax
movq %rax, -0x68(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rcx
movl 0x10(%rcx), %eax
movl 0x14(%rcx), %ecx
addl %ecx, %eax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq 0x118(%rax), %rax
movl -0xb8(%rbp), %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, -0xb0(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x40(%rbp), %rax
movl 0x3ec(%rax), %eax
movl -0xb8(%rbp), %ecx
incl %ecx
subl %ecx, %eax
sete %al
movzbl %al, %eax
movq %rax, -0x98(%rbp)
movq -0x38(%rbp), %rdi
movl -0xb4(%rbp), %esi
movq -0x20(%rbp), %rcx
movq 0x8(%rcx), %rdx
movl -0x68(%rbp), %r8d
movl -0x58(%rbp), %eax
addl %eax, %r8d
leaq -0x10(%rbp), %r9
movq %rsp, %rax
leaq -0xb0(%rbp), %r10
movq %r10, 0x10(%rax)
movq %r9, 0x8(%rax)
leaq -0x90(%rbp), %r9
movq %r9, (%rax)
movl $0x4, %r9d
callq 0x4d7f0
movb %al, %cl
xorl %eax, %eax
negb %cl
sbbl %eax, %eax
movb %al, -0xd9(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x876a5
movb -0xd9(%rbp), %al
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
callq 0x2a260
nopw (%rax,%rax)
| _ma_write_undo_key_delete:
push rbp
mov rbp, rsp
sub rsp, 100h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov [rbp+var_30], rdx
mov [rbp+var_38], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rbp+var_40], rax
mov [rbp+var_B4], 17h
mov rax, [rbp+var_28]
mov rax, [rax+8]
movzx eax, byte ptr [rax+0A5h]
mov [rbp+var_B8], eax
jmp short $+2
loc_87474:
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+98h]
sar rax, 20h
mov [rbp+var_17], al
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+98h]
sar rax, 20h
shr eax, 8
mov [rbp+var_16], al
mov rax, [rbp+var_20]
mov rax, [rax+8]
mov rax, [rax+98h]
sar rax, 20h
shr eax, 10h
mov [rbp+var_15], al
jmp short $+2
loc_874BE:
lea rax, [rbp+var_17]
add rax, 3
mov [rbp+var_C0], rax
mov rax, [rbp+var_20]
mov rcx, [rax+8]
mov rax, 0FFFFFFFFh
and rax, [rcx+98h]
mov ecx, eax
mov rax, [rbp+var_C0]
mov [rax], ecx
jmp short $+2
loc_874F3:
mov eax, [rbp+var_B8]
mov [rbp+var_E], al
lea rax, [rbp+var_17]
add rax, 7
add rax, 2
add rax, 1
mov [rbp+var_48], rax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_40]
mov rcx, [rcx+118h]
mov edx, [rbp+var_B8]
cmp rax, [rcx+rdx*8]
jz loc_875BB
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jnz short loc_87549
mov rax, 0FFFFFFFFFFh
mov [rbp+var_D8], rax
jmp short loc_87563
loc_87549:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_40]
mov ecx, [rcx+7BCh]
xor edx, edx
div rcx
mov [rbp+var_D8], rax
loc_87563:
mov rax, [rbp+var_D8]
mov [rbp+var_C8], rax
mov rax, [rbp+var_48]
mov [rbp+var_D0], rax
mov rax, [rbp+var_C8]
mov ecx, eax
mov rax, [rbp+var_D0]
mov [rax], ecx
mov rax, [rbp+var_C8]
shr rax, 20h
mov cl, al
mov rax, [rbp+var_D0]
mov [rax+4], cl
mov rax, [rbp+var_48]
add rax, 5
mov [rbp+var_48], rax
mov [rbp+var_B4], 18h
loc_875BB:
lea rcx, [rbp+var_17]
mov [rbp+var_70], rcx
mov eax, dword ptr [rbp+var_48]
sub eax, ecx
mov [rbp+var_68], rax
mov rax, [rbp+var_28]
mov rax, [rax]
mov [rbp+var_60], rax
mov rcx, [rbp+var_28]
mov eax, [rcx+10h]
mov ecx, [rcx+14h]
add eax, ecx
mov [rbp+var_58], rax
mov rax, [rbp+var_40]
mov rax, [rax+118h]
mov ecx, [rbp+var_B8]
lea rax, [rax+rcx*8]
mov [rbp+var_B0], rax
mov rax, [rbp+var_30]
mov [rbp+var_A8], rax
mov rax, [rbp+var_40]
mov eax, [rax+3ECh]
mov ecx, [rbp+var_B8]
inc ecx
sub eax, ecx
setz al
movzx eax, al
mov [rbp+var_98], rax
mov rdi, [rbp+var_38]
mov esi, [rbp+var_B4]
mov rcx, [rbp+var_20]
mov rdx, [rcx+8]
mov r8d, dword ptr [rbp+var_68]
mov eax, dword ptr [rbp+var_58]
add r8d, eax
lea r9, [rbp+var_10]
mov rax, rsp
lea r10, [rbp+var_B0]
mov [rax+10h], r10
mov [rax+8], r9
lea r9, [rbp+var_90]
mov [rax], r9
mov r9d, 4
call translog_write_record
mov cl, al
xor eax, eax
neg cl
sbb eax, eax
mov [rbp+var_D9], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_876A5
mov al, [rbp+var_D9]
add rsp, 100h
pop rbp
retn
loc_876A5:
call ___stack_chk_fail
| char ma_write_undo_key_delete(long long *a1, long long a2, unsigned long long a3, long long a4)
{
unsigned long long v5; // [rsp+28h] [rbp-D8h]
_DWORD *v6; // [rsp+30h] [rbp-D0h]
unsigned int v7; // [rsp+48h] [rbp-B8h]
unsigned int v8; // [rsp+4Ch] [rbp-B4h]
_QWORD v9[4]; // [rsp+50h] [rbp-B0h] BYREF
_QWORD v10[7]; // [rsp+70h] [rbp-90h] BYREF
long long v11; // [rsp+A8h] [rbp-58h]
_DWORD *v12; // [rsp+B8h] [rbp-48h]
long long v13; // [rsp+C0h] [rbp-40h]
long long v14; // [rsp+C8h] [rbp-38h]
unsigned long long v15; // [rsp+D0h] [rbp-30h]
long long v16; // [rsp+D8h] [rbp-28h]
long long *v17; // [rsp+E0h] [rbp-20h]
_BYTE v18[3]; // [rsp+E9h] [rbp-17h] BYREF
int v19; // [rsp+ECh] [rbp-14h]
__int16 v20; // [rsp+F0h] [rbp-10h] BYREF
char v21; // [rsp+F2h] [rbp-Eh]
_BYTE v22[13]; // [rsp+F3h] [rbp-Dh] BYREF
*(_QWORD *)&v22[5] = __readfsqword(0x28u);
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = *a1;
v8 = 23;
v7 = *(unsigned __int8 *)(*(_QWORD *)(a2 + 8) + 165LL);
v18[0] = BYTE4(*(_QWORD *)(a1[1] + 152));
v18[1] = (unsigned __int16)WORD2(*(_QWORD *)(a1[1] + 152)) >> 8;
v18[2] = BYTE6(*(_QWORD *)(a1[1] + 152));
v19 = *(_QWORD *)(a1[1] + 152);
v21 = v7;
v12 = v22;
if ( a3 != *(_QWORD *)(*(_QWORD *)(v13 + 280) + 8LL * v7) )
{
if ( v15 == -1LL )
v5 = 0xFFFFFFFFFFLL;
else
v5 = v15 / *(unsigned int *)(v13 + 1980);
v6 = v12;
*v12 = v5;
*((_BYTE *)v6 + 4) = BYTE4(v5);
v12 = (_DWORD *)((char *)v12 + 5);
v8 = 24;
}
v10[4] = v18;
v10[5] = (unsigned int)v12 - (unsigned int)v18;
v10[6] = *(_QWORD *)v16;
v11 = (unsigned int)(*(_DWORD *)(v16 + 20) + *(_DWORD *)(v16 + 16));
v9[0] = *(_QWORD *)(v13 + 280) + 8LL * v7;
v9[1] = v15;
v9[3] = *(_DWORD *)(v13 + 1004) == v7 + 1;
return -(translog_write_record(
v14,
v8,
v17[1],
v17,
v11 + (_DWORD)v12 - (unsigned int)v18,
4u,
v10,
&v20,
(long long)v9) != 0);
}
| _ma_write_undo_key_delete:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV qword ptr [RBP + -0x30],RDX
MOV qword ptr [RBP + -0x38],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV dword ptr [RBP + -0xb4],0x17
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOVZX EAX,byte ptr [RAX + 0xa5]
MOV dword ptr [RBP + -0xb8],EAX
JMP 0x00187474
LAB_00187474:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x98]
SAR RAX,0x20
MOV byte ptr [RBP + -0x17],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x98]
SAR RAX,0x20
SHR EAX,0x8
MOV byte ptr [RBP + -0x16],AL
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x98]
SAR RAX,0x20
SHR EAX,0x10
MOV byte ptr [RBP + -0x15],AL
JMP 0x001874be
LAB_001874be:
LEA RAX,[RBP + -0x17]
ADD RAX,0x3
MOV qword ptr [RBP + -0xc0],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,0xffffffff
AND RAX,qword ptr [RCX + 0x98]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xc0]
MOV dword ptr [RAX],ECX
JMP 0x001874f3
LAB_001874f3:
MOV EAX,dword ptr [RBP + -0xb8]
MOV byte ptr [RBP + -0xe],AL
LEA RAX,[RBP + -0x17]
ADD RAX,0x7
ADD RAX,0x2
ADD RAX,0x1
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RCX + 0x118]
MOV EDX,dword ptr [RBP + -0xb8]
CMP RAX,qword ptr [RCX + RDX*0x8]
JZ 0x001875bb
CMP qword ptr [RBP + -0x30],-0x1
JNZ 0x00187549
MOV RAX,0xffffffffff
MOV qword ptr [RBP + -0xd8],RAX
JMP 0x00187563
LAB_00187549:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RCX + 0x7bc]
XOR EDX,EDX
DIV RCX
MOV qword ptr [RBP + -0xd8],RAX
LAB_00187563:
MOV RAX,qword ptr [RBP + -0xd8]
MOV qword ptr [RBP + -0xc8],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV qword ptr [RBP + -0xd0],RAX
MOV RAX,qword ptr [RBP + -0xc8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0xd0]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0xc8]
SHR RAX,0x20
MOV CL,AL
MOV RAX,qword ptr [RBP + -0xd0]
MOV byte ptr [RAX + 0x4],CL
MOV RAX,qword ptr [RBP + -0x48]
ADD RAX,0x5
MOV qword ptr [RBP + -0x48],RAX
MOV dword ptr [RBP + -0xb4],0x18
LAB_001875bb:
LEA RCX,[RBP + -0x17]
MOV qword ptr [RBP + -0x70],RCX
MOV EAX,dword ptr [RBP + -0x48]
SUB EAX,ECX
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RCX,qword ptr [RBP + -0x28]
MOV EAX,dword ptr [RCX + 0x10]
MOV ECX,dword ptr [RCX + 0x14]
ADD EAX,ECX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x118]
MOV ECX,dword ptr [RBP + -0xb8]
LEA RAX,[RAX + RCX*0x8]
MOV qword ptr [RBP + -0xb0],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0xa8],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RAX + 0x3ec]
MOV ECX,dword ptr [RBP + -0xb8]
INC ECX
SUB EAX,ECX
SETZ AL
MOVZX EAX,AL
MOV qword ptr [RBP + -0x98],RAX
MOV RDI,qword ptr [RBP + -0x38]
MOV ESI,dword ptr [RBP + -0xb4]
MOV RCX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RCX + 0x8]
MOV R8D,dword ptr [RBP + -0x68]
MOV EAX,dword ptr [RBP + -0x58]
ADD R8D,EAX
LEA R9,[RBP + -0x10]
MOV RAX,RSP
LEA R10,[RBP + -0xb0]
MOV qword ptr [RAX + 0x10],R10
MOV qword ptr [RAX + 0x8],R9
LEA R9,[RBP + -0x90]
MOV qword ptr [RAX],R9
MOV R9D,0x4
CALL 0x0014d7f0
MOV CL,AL
XOR EAX,EAX
NEG CL
SBB EAX,EAX
MOV byte ptr [RBP + -0xd9],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001876a5
MOV AL,byte ptr [RBP + -0xd9]
ADD RSP,0x100
POP RBP
RET
LAB_001876a5:
CALL 0x0012a260
|
int8
_ma_write_undo_key_delete(long *param_1,int8 *param_2,ulong param_3,int8 param_4)
{
char cVar1;
uint uVar2;
uint uVar3;
uint uVar4;
long in_FS_OFFSET;
ulong local_e0;
int4 local_bc;
long local_b8;
ulong local_b0;
ulong local_a0;
int1 local_98 [32];
int1 *local_78;
ulong local_70;
int8 local_68;
ulong local_60;
long *local_50;
long local_48;
int8 local_40;
ulong local_38;
int8 *local_30;
long *local_28;
int1 local_1f;
int1 local_1e;
int1 local_1d;
int4 local_1c;
int1 local_18 [2];
byte local_16;
int4 local_15;
int1 local_11;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_48 = *param_1;
local_bc = 0x17;
local_16 = *(byte *)(param_2[1] + 0xa5);
uVar2 = (uint)local_16;
local_1f = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x20);
local_1e = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x28);
local_1d = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x30);
local_1c = (int4)*(int8 *)(param_1[1] + 0x98);
local_50 = (long *)&local_15;
if (param_3 != *(ulong *)(*(long *)(local_48 + 0x118) + (ulong)uVar2 * 8)) {
if (param_3 == 0xffffffffffffffff) {
local_e0 = 0xffffffffff;
}
else {
local_e0 = param_3 / *(uint *)(local_48 + 0x7bc);
}
local_15 = (int4)local_e0;
local_11 = (int1)(local_e0 >> 0x20);
local_50 = &local_10;
local_bc = 0x18;
}
local_78 = &local_1f;
uVar3 = (int)local_50 - (int)local_78;
local_70 = (ulong)uVar3;
local_68 = *param_2;
uVar4 = *(int *)(param_2 + 2) + *(int *)((long)param_2 + 0x14);
local_60 = (ulong)uVar4;
local_b8 = *(long *)(local_48 + 0x118) + (ulong)uVar2 * 8;
local_a0 = (ulong)(*(int *)(local_48 + 0x3ec) == uVar2 + 1);
local_b0 = param_3;
local_40 = param_4;
local_38 = param_3;
local_30 = param_2;
local_28 = param_1;
cVar1 = translog_write_record
(param_4,local_bc,param_1[1],param_1,uVar3 + uVar4,4,local_98,local_18,&local_b8
);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),-(cVar1 != '\0'));
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
52,280 | do_mkdir(st_command*) | eloqsql/client/mysqltest.cc | void do_mkdir(struct st_command *command)
{
int error;
static DYNAMIC_STRING ds_dirname;
const struct command_arg mkdir_args[] = {
{"dirname", ARG_STRING, TRUE, &ds_dirname, "Directory to create"}
};
DBUG_ENTER("do_mkdir");
check_command_args(command, command->first_argument,
mkdir_args, sizeof(mkdir_args)/sizeof(struct command_arg),
' ');
if (bad_path(ds_dirname.str))
DBUG_VOID_RETURN;
DBUG_PRINT("info", ("creating directory: %s", ds_dirname.str));
error= my_mkdir(ds_dirname.str, 0777, MYF(MY_WME)) != 0;
handle_command_error(command, error, my_errno);
dynstr_free(&ds_dirname);
DBUG_VOID_RETURN;
} | O0 | cpp | do_mkdir(st_command*):
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq 0x27e89d(%rip), %rax # 0x2e6500
movq %rax, -0x30(%rbp)
movq 0x27e89a(%rip), %rax # 0x2e6508
movq %rax, -0x28(%rbp)
movq 0x27e897(%rip), %rax # 0x2e6510
movq %rax, -0x20(%rbp)
movq 0x27e894(%rip), %rax # 0x2e6518
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq -0x30(%rbp), %rdx
movl $0x1, %ecx
movl $0x20, %r8d
callq 0x62810
movq 0x452941(%rip), %rdi # 0x4ba5f0
callq 0x673f0
testb $0x1, %al
jne 0x67cba
jmp 0x67cbe
jmp 0x67cbc
jmp 0x67d15
jmp 0x67cc0
jmp 0x67cc2
movq 0x452927(%rip), %rdi # 0x4ba5f0
movl $0x1ff, %esi # imm = 0x1FF
movl $0x10, %edx
callq 0xc2990
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x34(%rbp)
callq 0xc46c0
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
movl (%rax), %edx
callq 0x62c40
leaq 0x4528e2(%rip), %rdi # 0x4ba5f0
callq 0xc6410
jmp 0x67d15
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _Z8do_mkdirP10st_command:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov rax, cs:off_2E6500; "dirname"
mov [rbp+var_30], rax
mov rax, cs:qword_2E6508
mov [rbp+var_28], rax
mov rax, cs:off_2E6510
mov [rbp+var_20], rax
mov rax, cs:off_2E6518; "Directory to create"
mov [rbp+var_18], rax
mov rdi, [rbp+var_8]
mov rax, [rbp+var_8]
mov rsi, [rax+10h]
lea rdx, [rbp+var_30]
mov ecx, 1
mov r8d, 20h ; ' '
call _Z18check_command_argsP10st_commandPKcPK11command_argic; check_command_args(st_command *,char const*,command_arg const*,int,char)
mov rdi, cs:_ZZ8do_mkdirP10st_commandE10ds_dirname; char *
call _Z8bad_pathPKc; bad_path(char const*)
test al, 1
jnz short loc_67CBA
jmp short loc_67CBE
loc_67CBA:
jmp short $+2
loc_67CBC:
jmp short loc_67D15
loc_67CBE:
jmp short $+2
loc_67CC0:
jmp short $+2
loc_67CC2:
mov rdi, cs:_ZZ8do_mkdirP10st_commandE10ds_dirname; do_mkdir(st_command *)::ds_dirname
mov esi, 1FFh
mov edx, 10h
call my_mkdir
cmp eax, 0
setnz al
and al, 1
movzx eax, al
mov [rbp+var_C], eax
mov rax, [rbp+var_8]
mov [rbp+var_40], rax
mov eax, [rbp+var_C]
mov [rbp+var_34], eax
call _my_thread_var
mov rdi, [rbp+var_40]
mov esi, [rbp+var_34]
mov edx, [rax]
call _Z20handle_command_errorP10st_commandji; handle_command_error(st_command *,uint,int)
lea rdi, _ZZ8do_mkdirP10st_commandE10ds_dirname; do_mkdir(st_command *)::ds_dirname
call dynstr_free
jmp short $+2
loc_67D15:
add rsp, 40h
pop rbp
retn
| char do_mkdir(long long a1)
{
char result; // al
unsigned int *v2; // rax
long long *v3; // [rsp+0h] [rbp-40h]
unsigned int v4; // [rsp+Ch] [rbp-34h]
_QWORD v5[4]; // [rsp+10h] [rbp-30h] BYREF
BOOL v6; // [rsp+34h] [rbp-Ch]
long long *v7; // [rsp+38h] [rbp-8h]
v7 = (long long *)a1;
v5[0] = "dirname";
v5[1] = qword_2E6508;
v5[2] = &do_mkdir(st_command *)::ds_dirname;
v5[3] = "Directory to create";
check_command_args((_QWORD *)a1, *(char **)(a1 + 16), (long long)v5, 1, 32);
result = bad_path(do_mkdir(st_command *)::ds_dirname);
if ( (result & 1) == 0 )
{
v6 = my_mkdir(do_mkdir(st_command *)::ds_dirname, 511LL, 16LL) != 0;
v3 = v7;
v4 = v6;
v2 = (unsigned int *)my_thread_var();
handle_command_error(v3, v4, *v2);
return dynstr_free(&do_mkdir(st_command *)::ds_dirname);
}
return result;
}
| do_mkdir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [0x003e6500]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [0x003e6508]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [0x003e6510]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [0x003e6518]
MOV qword ptr [RBP + -0x18],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x10]
LEA RDX,[RBP + -0x30]
MOV ECX,0x1
MOV R8D,0x20
CALL 0x00162810
MOV RDI,qword ptr [0x005ba5f0]
CALL 0x001673f0
TEST AL,0x1
JNZ 0x00167cba
JMP 0x00167cbe
LAB_00167cba:
JMP 0x00167cbc
LAB_00167cbc:
JMP 0x00167d15
LAB_00167cbe:
JMP 0x00167cc0
LAB_00167cc0:
JMP 0x00167cc2
LAB_00167cc2:
MOV RDI,qword ptr [0x005ba5f0]
MOV ESI,0x1ff
MOV EDX,0x10
CALL 0x001c2990
CMP EAX,0x0
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0xc],EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0xc]
MOV dword ptr [RBP + -0x34],EAX
CALL 0x001c46c0
MOV RDI,qword ptr [RBP + -0x40]
MOV ESI,dword ptr [RBP + -0x34]
MOV EDX,dword ptr [RAX]
CALL 0x00162c40
LEA RDI,[0x5ba5f0]
CALL 0x001c6410
JMP 0x00167d15
LAB_00167d15:
ADD RSP,0x40
POP RBP
RET
|
/* do_mkdir(st_command*) */
void do_mkdir(st_command *param_1)
{
st_command *psVar1;
int iVar2;
ulong uVar3;
int *piVar4;
int *local_38;
int8 local_30;
int *local_28;
int *local_20;
uint local_14;
st_command *local_10;
local_38 = PTR_s_dirname_003e6500;
local_30 = DAT_003e6508;
local_28 = PTR_ds_dirname_003e6510;
local_20 = PTR_s_Directory_to_create_003e6518;
local_10 = param_1;
check_command_args(param_1,*(char **)(param_1 + 0x10),(command_arg *)&local_38,1,' ');
uVar3 = bad_path(do_mkdir(st_command*)::ds_dirname);
if ((uVar3 & 1) == 0) {
iVar2 = my_mkdir(do_mkdir(st_command*)::ds_dirname,0x1ff,0x10);
psVar1 = local_10;
local_14 = (uint)(iVar2 != 0);
piVar4 = (int *)_my_thread_var();
handle_command_error(psVar1,(uint)(iVar2 != 0),*piVar4);
dynstr_free(&do_mkdir(st_command*)::ds_dirname);
}
return;
}
| |
52,281 | google::protobuf::GeneratedCodeInfo::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | uint8_t* GeneratedCodeInfo::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_annotation_size()); i < n; i++) {
const auto& repfield = this->_internal_annotation(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
return target;
} | O0 | cpp | google::protobuf::GeneratedCodeInfo::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const:
subq $0x88, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x48(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movl $0x0, 0x34(%rsp)
movl $0x0, 0x30(%rsp)
callq 0x2e5f60
movl %eax, 0x2c(%rsp)
movl 0x30(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jae 0x2d96c7
movq 0x18(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x2e5f80
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
callq 0x2e5fb0
movq 0x10(%rsp), %rsi
movl %eax, %edx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
movl $0x1, %edi
callq 0x1aaae0
movq %rax, 0x40(%rsp)
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x2d9669
movq 0x18(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2d9773
movq 0x18(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x60(%rsp)
leaq -0xf326c(%rip), %rax # 0x1e64a0
movq %rax, 0x58(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
movq (%rax), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x2d9751
movq 0x8(%rsp), %rdi
callq 0x155370
addq $0x8, %rax
movq %rax, 0x68(%rsp)
jmp 0x2d975a
callq *0x58(%rsp)
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x1f1090
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x88, %rsp
retq
| _ZNK6google8protobuf17GeneratedCodeInfo18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
sub rsp, 88h
mov [rsp+88h+var_40], rdi
mov [rsp+88h+var_48], rsi
mov [rsp+88h+var_50], rdx
mov rdi, [rsp+88h+var_40]; this
mov [rsp+88h+var_70], rdi
mov [rsp+88h+var_54], 0
mov [rsp+88h+var_58], 0
call _ZNK6google8protobuf17GeneratedCodeInfo25_internal_annotation_sizeEv; google::protobuf::GeneratedCodeInfo::_internal_annotation_size(void)
mov [rsp+88h+var_5C], eax
loc_2D9669:
mov eax, [rsp+88h+var_58]
cmp eax, [rsp+88h+var_5C]
jnb short loc_2D96C7
mov rdi, [rsp+88h+var_70]; this
mov esi, [rsp+88h+var_58]; int
call _ZNK6google8protobuf17GeneratedCodeInfo20_internal_annotationEi; google::protobuf::GeneratedCodeInfo::_internal_annotation(int)
mov [rsp+88h+var_68], rax
mov rax, [rsp+88h+var_68]
mov qword ptr [rsp+88h+var_78], rax
mov rdi, [rsp+88h+var_68]; this
call _ZNK6google8protobuf28GeneratedCodeInfo_Annotation13GetCachedSizeEv; google::protobuf::GeneratedCodeInfo_Annotation::GetCachedSize(void)
mov rsi, qword ptr [rsp+88h+var_78]; int
mov edx, eax; google::protobuf::MessageLite *
mov rcx, [rsp+88h+var_48]; int
mov r8, [rsp+88h+var_50]; unsigned __int8 *
mov edi, (offset dword_0+1); this
call _ZN6google8protobuf8internal14WireFormatLite20InternalWriteMessageEiRKNS0_11MessageLiteEiPhPNS0_2io19EpsCopyOutputStreamE; google::protobuf::internal::WireFormatLite::InternalWriteMessage(int,google::protobuf::MessageLite const&,int,uchar *,google::protobuf::io::EpsCopyOutputStream *)
mov [rsp+88h+var_48], rax
mov eax, [rsp+88h+var_58]
add eax, 1
mov [rsp+88h+var_58], eax
jmp short loc_2D9669
loc_2D96C7:
mov rax, [rsp+88h+var_70]
add rax, 8
mov [rsp+88h+var_38], rax
mov rax, [rsp+88h+var_38]
mov [rsp+88h+var_8], rax
mov rax, [rsp+88h+var_8]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_2D9773
mov rax, [rsp+88h+var_70]
add rax, 8
mov [rsp+88h+var_28], rax
lea rax, _ZN6google8protobuf15UnknownFieldSet16default_instanceEv; google::protobuf::UnknownFieldSet::default_instance(void)
mov [rsp+88h+var_30], rax
mov rax, [rsp+88h+var_28]
mov [rsp+88h+var_80], rax
mov [rsp+88h+var_18], rax
mov rax, [rsp+88h+var_18]
mov [rsp+88h+var_10], rax
mov rax, [rsp+88h+var_10]
mov rax, [rax]
and rax, 1
cmp rax, 0
jz short loc_2D9751
mov rdi, [rsp+88h+var_80]
call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void)
add rax, 8
mov [rsp+88h+var_20], rax
jmp short loc_2D975A
loc_2D9751:
call [rsp+88h+var_30]
mov [rsp+88h+var_20], rax
loc_2D975A:
mov rdi, [rsp+88h+var_20]; this
mov rsi, [rsp+88h+var_48]; google::protobuf::UnknownFieldSet *
mov rdx, [rsp+88h+var_50]; unsigned __int8 *
call _ZN6google8protobuf8internal10WireFormat37InternalSerializeUnknownFieldsToArrayERKNS0_15UnknownFieldSetEPhPNS0_2io19EpsCopyOutputStreamE; google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&,uchar *,google::protobuf::io::EpsCopyOutputStream *)
mov [rsp+88h+var_48], rax
loc_2D9773:
mov rax, [rsp+88h+var_48]
add rsp, 88h
retn
| const google::protobuf::UnknownFieldSet * google::protobuf::GeneratedCodeInfo::_InternalSerialize(
google::protobuf::GeneratedCodeInfo *this,
unsigned __int8 *a2,
google::protobuf::io::EpsCopyOutputStream *a3)
{
unsigned int CachedSize; // eax
google::protobuf::io::EpsCopyOutputStream *v4; // r9
google::protobuf::io::EpsCopyOutputStream *v5; // rcx
google::protobuf::GeneratedCodeInfo_Annotation *v7; // [rsp+10h] [rbp-78h]
unsigned int v8; // [rsp+2Ch] [rbp-5Ch]
unsigned int v9; // [rsp+30h] [rbp-58h]
google::protobuf::internal::WireFormat *v12; // [rsp+68h] [rbp-20h]
v9 = 0;
v8 = google::protobuf::GeneratedCodeInfo::_internal_annotation_size(this);
while ( v9 < v8 )
{
v7 = (google::protobuf::GeneratedCodeInfo_Annotation *)google::protobuf::GeneratedCodeInfo::_internal_annotation(
this,
v9);
CachedSize = google::protobuf::GeneratedCodeInfo_Annotation::GetCachedSize(v7);
a2 = (unsigned __int8 *)google::protobuf::internal::WireFormatLite::InternalWriteMessage(
(google::protobuf::internal::WireFormatLite *)((char *)&dword_0 + 1),
(long long)v7,
(const google::protobuf::MessageLite *)CachedSize,
a2,
a3,
v4);
++v9;
}
if ( (*((_QWORD *)this + 1) & 1LL) != 0 )
{
v12 = (google::protobuf::internal::WireFormat *)(google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>((_QWORD *)this + 1)
+ 8);
return google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
v12,
(const google::protobuf::UnknownFieldSet *)a2,
a3,
v5);
}
return (const google::protobuf::UnknownFieldSet *)a2;
}
| |||
52,282 | google::protobuf::GeneratedCodeInfo::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc | uint8_t* GeneratedCodeInfo::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_annotation_size()); i < n; i++) {
const auto& repfield = this->_internal_annotation(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:google.protobuf.GeneratedCodeInfo)
return target;
} | O3 | cpp | google::protobuf::GeneratedCodeInfo::_InternalSerialize(unsigned char*, google::protobuf::io::EpsCopyOutputStream*) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r14
movl 0x18(%rdi), %ebp
testl %ebp, %ebp
je 0xf9fc7
xorl %r15d, %r15d
movq 0x20(%r14), %rcx
movslq %r15d, %r15
movq 0x8(%rcx,%r15,8), %rsi
movl 0x14(%rsi), %edx
movl $0x1, %edi
movq %rax, %rcx
movq %rbx, %r8
callq 0x8cace
incl %r15d
cmpl %r15d, %ebp
jne 0xf9fa0
movq 0x8(%r14), %rdi
testb $0x1, %dil
jne 0xf9fdc
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
andq $-0x4, %rdi
addq $0x8, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xa6e1e
nop
| _ZNK6google8protobuf17GeneratedCodeInfo18_InternalSerializeEPhPNS0_2io19EpsCopyOutputStreamE:
push rbp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov rax, rsi
mov r14, rdi
mov ebp, [rdi+18h]
test ebp, ebp
jz short loc_F9FC7
xor r15d, r15d
loc_F9FA0:
mov rcx, [r14+20h]
movsxd r15, r15d
mov rsi, [rcx+r15*8+8]; int
mov edx, [rsi+14h]; google::protobuf::MessageLite *
mov edi, (offset dword_0+1); this
mov rcx, rax; int
mov r8, rbx; unsigned __int8 *
call _ZN6google8protobuf8internal14WireFormatLite20InternalWriteMessageEiRKNS0_11MessageLiteEiPhPNS0_2io19EpsCopyOutputStreamE; google::protobuf::internal::WireFormatLite::InternalWriteMessage(int,google::protobuf::MessageLite const&,int,uchar *,google::protobuf::io::EpsCopyOutputStream *)
inc r15d
cmp ebp, r15d
jnz short loc_F9FA0
loc_F9FC7:
mov rdi, [r14+8]
test dil, 1
jnz short loc_F9FDC
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_F9FDC:
and rdi, 0FFFFFFFFFFFFFFFCh
add rdi, 8; this
mov rsi, rax; google::protobuf::UnknownFieldSet *
mov rdx, rbx; unsigned __int8 *
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN6google8protobuf8internal10WireFormat37InternalSerializeUnknownFieldsToArrayERKNS0_15UnknownFieldSetEPhPNS0_2io19EpsCopyOutputStreamE; google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(google::protobuf::UnknownFieldSet const&,uchar *,google::protobuf::io::EpsCopyOutputStream *)
| unsigned __int8 * google::protobuf::GeneratedCodeInfo::_InternalSerialize(
google::protobuf::GeneratedCodeInfo *this,
unsigned __int8 *a2,
google::protobuf::io::EpsCopyOutputStream *a3,
google::protobuf::io::EpsCopyOutputStream *a4,
long long a5,
google::protobuf::io::EpsCopyOutputStream *a6)
{
unsigned __int8 *result; // rax
int v8; // ebp
int i; // r15d
long long v10; // rsi
long long v11; // rdi
result = a2;
v8 = *((_DWORD *)this + 6);
if ( v8 )
{
for ( i = 0; i != v8; ++i )
{
v10 = *(_QWORD *)(*((_QWORD *)this + 4) + 8LL * i + 8);
result = (unsigned __int8 *)google::protobuf::internal::WireFormatLite::InternalWriteMessage(
(google::protobuf::internal::WireFormatLite *)((char *)&dword_0 + 1),
v10,
(const google::protobuf::MessageLite *)*(unsigned int *)(v10 + 20),
(unsigned long long)result,
a3,
a6);
}
}
v11 = *((_QWORD *)this + 1);
if ( (v11 & 1) != 0 )
return google::protobuf::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
(google::protobuf::internal::WireFormat *)((v11 & 0xFFFFFFFFFFFFFFFCLL) + 8),
(const google::protobuf::UnknownFieldSet *)result,
a3,
a4);
return result;
}
| _InternalSerialize:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV RAX,RSI
MOV R14,RDI
MOV EBP,dword ptr [RDI + 0x18]
TEST EBP,EBP
JZ 0x001f9fc7
XOR R15D,R15D
LAB_001f9fa0:
MOV RCX,qword ptr [R14 + 0x20]
MOVSXD R15,R15D
MOV RSI,qword ptr [RCX + R15*0x8 + 0x8]
MOV EDX,dword ptr [RSI + 0x14]
MOV EDI,0x1
MOV RCX,RAX
MOV R8,RBX
CALL 0x0018cace
INC R15D
CMP EBP,R15D
JNZ 0x001f9fa0
LAB_001f9fc7:
MOV RDI,qword ptr [R14 + 0x8]
TEST DIL,0x1
JNZ 0x001f9fdc
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001f9fdc:
AND RDI,-0x4
ADD RDI,0x8
MOV RSI,RAX
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x001a6e1e
|
/* google::protobuf::GeneratedCodeInfo::_InternalSerialize(unsigned char*,
google::protobuf::io::EpsCopyOutputStream*) const */
void __thiscall
google::protobuf::GeneratedCodeInfo::_InternalSerialize
(GeneratedCodeInfo *this,uchar *param_1,EpsCopyOutputStream *param_2)
{
int iVar1;
MessageLite *pMVar2;
int iVar3;
iVar1 = *(int *)(this + 0x18);
if (iVar1 != 0) {
iVar3 = 0;
do {
pMVar2 = *(MessageLite **)(*(long *)(this + 0x20) + 8 + (long)iVar3 * 8);
param_1 = (uchar *)internal::WireFormatLite::InternalWriteMessage
(1,pMVar2,*(int *)(pMVar2 + 0x14),param_1,param_2);
iVar3 = iVar3 + 1;
} while (iVar1 != iVar3);
}
if ((*(ulong *)(this + 8) & 1) == 0) {
return;
}
internal::WireFormat::InternalSerializeUnknownFieldsToArray
((UnknownFieldSet *)((*(ulong *)(this + 8) & 0xfffffffffffffffc) + 8),param_1,param_2);
return;
}
| |
52,283 | pfs_start_table_lock_wait_v1 | eloqsql/storage/perfschema/pfs.cc | PSI_table_locker*
pfs_start_table_lock_wait_v1(PSI_table_locker_state *state,
PSI_table *table,
PSI_table_lock_operation op,
ulong op_flags,
const char *src_file, uint src_line)
{
assert(state != NULL);
assert((op == PSI_TABLE_LOCK) || (op == PSI_TABLE_EXTERNAL_LOCK));
PFS_table *pfs_table= reinterpret_cast<PFS_table*> (table);
assert(pfs_table != NULL);
assert(pfs_table->m_share != NULL);
if (! pfs_table->m_lock_enabled)
return NULL;
PFS_thread *pfs_thread= my_thread_get_THR_PFS();
PFS_TL_LOCK_TYPE lock_type;
switch (op)
{
case PSI_TABLE_LOCK:
lock_type= lock_flags_to_lock_type(op_flags);
pfs_table->m_internal_lock= lock_type;
break;
case PSI_TABLE_EXTERNAL_LOCK:
/*
See the handler::external_lock() API design,
there is no handler::external_unlock().
*/
if (op_flags == F_UNLCK)
{
pfs_table->m_external_lock= PFS_TL_NONE;
return NULL;
}
lock_type= external_lock_flags_to_lock_type(op_flags);
pfs_table->m_external_lock= lock_type;
break;
default:
lock_type= PFS_TL_READ;
assert(false);
}
assert((uint) lock_type < array_elements(table_lock_operation_map));
uint flags;
ulonglong timer_start= 0;
if (flag_thread_instrumentation)
{
if (pfs_thread == NULL)
return NULL;
if (! pfs_thread->m_enabled)
return NULL;
state->m_thread= reinterpret_cast<PSI_thread *> (pfs_thread);
flags= STATE_FLAG_THREAD;
if (pfs_table->m_lock_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags|= STATE_FLAG_TIMED;
}
if (flag_events_waits_current)
{
if (unlikely(pfs_thread->m_events_waits_current >=
& pfs_thread->m_events_waits_stack[WAIT_STACK_SIZE]))
{
locker_lost++;
return NULL;
}
PFS_events_waits *wait= pfs_thread->m_events_waits_current;
state->m_wait= wait;
flags|= STATE_FLAG_EVENT;
PFS_events_waits *parent_event= wait - 1;
wait->m_event_type= EVENT_TYPE_WAIT;
wait->m_nesting_event_id= parent_event->m_event_id;
wait->m_nesting_event_type= parent_event->m_event_type;
PFS_table_share *share= pfs_table->m_share;
wait->m_thread_internal_id= pfs_thread->m_thread_internal_id;
wait->m_class= &global_table_lock_class;
wait->m_timer_start= timer_start;
wait->m_timer_end= 0;
wait->m_object_instance_addr= pfs_table->m_identity;
wait->m_event_id= pfs_thread->m_event_id++;
wait->m_end_event_id= 0;
wait->m_operation= table_lock_operation_map[lock_type];
wait->m_flags= 0;
wait->m_object_type= share->get_object_type();
wait->m_weak_table_share= share;
wait->m_weak_version= share->get_version();
wait->m_index= 0;
wait->m_source_file= src_file;
wait->m_source_line= src_line;
wait->m_wait_class= WAIT_CLASS_TABLE;
pfs_thread->m_events_waits_current++;
}
}
else
{
if (pfs_table->m_lock_timed)
{
timer_start= get_timer_raw_value_and_function(wait_timer, & state->m_timer);
state->m_timer_start= timer_start;
flags= STATE_FLAG_TIMED;
}
else
{
/* TODO: consider a shortcut here */
flags= 0;
}
}
state->m_flags= flags;
state->m_table= table;
state->m_index= lock_type;
return reinterpret_cast<PSI_table_locker*> (state);
} | O0 | cpp | pfs_start_table_lock_wait_v1:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x1(%rax)
jne 0x4f601
movq $0x0, -0x8(%rbp)
jmp 0x4f965
callq 0x4d760
movq %rax, -0x48(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x74(%rbp)
testl %eax, %eax
je 0x4f620
jmp 0x4f616
movl -0x74(%rbp), %eax
subl $0x1, %eax
je 0x4f63d
jmp 0x4f67c
movq -0x28(%rbp), %rax
movl %eax, %edi
callq 0x4f980
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x2418(%rax)
jmp 0x4f683
cmpq $0x2, -0x28(%rbp)
jne 0x4f65f
movq -0x40(%rbp), %rax
movl $0x63, 0x241c(%rax)
movq $0x0, -0x8(%rbp)
jmp 0x4f965
movq -0x28(%rbp), %rax
movl %eax, %edi
callq 0x4fa20
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %ecx, 0x241c(%rax)
jmp 0x4f683
movl $0x0, -0x4c(%rbp)
movq $0x0, -0x58(%rbp)
leaq 0x3bc9ae(%rip), %rax # 0x40c040
testb $0x1, (%rax)
je 0x4f8fc
cmpq $0x0, -0x48(%rbp)
jne 0x4f6af
movq $0x0, -0x8(%rbp)
jmp 0x4f965
movq -0x48(%rbp), %rax
testb $0x1, 0x7e0(%rax)
jne 0x4f6c9
movq $0x0, -0x8(%rbp)
jmp 0x4f965
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x2, -0x50(%rbp)
movq -0x40(%rbp), %rax
testb $0x1, 0x3(%rax)
je 0x4f715
leaq 0x1c3ccf(%rip), %rax # 0x2133bc
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x4ada0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl -0x50(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x50(%rbp)
leaq 0x3bc824(%rip), %rax # 0x40bf40
testb $0x1, (%rax)
je 0x4f8fa
movq -0x48(%rbp), %rax
movq 0x7f0(%rax), %rax
movq -0x48(%rbp), %rcx
addq $0x878, %rcx # imm = 0x878
addq $0x420, %rcx # imm = 0x420
cmpq %rcx, %rax
setae %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
je 0x4f777
leaq 0x3bcc2f(%rip), %rax # 0x40c388
movq (%rax), %rcx
addq $0x1, %rcx
leaq 0x3bcc21(%rip), %rax # 0x40c388
movq %rcx, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0x4f965
movq -0x48(%rbp), %rax
movq 0x7f0(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movl -0x50(%rbp), %eax
orl $0x4, %eax
movl %eax, -0x50(%rbp)
movq -0x60(%rbp), %rax
addq $-0xb0, %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movl $0x4, 0x18(%rax)
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x68(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x48(%rbp), %rax
movq 0x850(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rax
leaq 0x3bd245(%rip), %rcx # 0x40ca40
movq %rcx, 0x30(%rax)
movq -0x58(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x88(%rax)
movq -0x48(%rbp), %rax
movq 0x7f8(%rax), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0x7f8(%rax)
movq -0x60(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0x10(%rax)
movl -0x4c(%rbp), %eax
movl %eax, %ecx
leaq 0x1c3bbd(%rip), %rax # 0x213420
movl (%rax,%rcx,4), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x90(%rax)
movq -0x60(%rbp), %rax
movq $0x0, 0xa8(%rax)
movq -0x70(%rbp), %rdi
callq 0x56440
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x5c(%rax)
movq -0x70(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x70(%rbp), %rdi
callq 0x56460
movl %eax, %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x60(%rbp), %rax
movl $0x0, 0xa0(%rax)
movq -0x30(%rbp), %rcx
movq -0x60(%rbp), %rax
movq %rcx, 0x48(%rax)
movl -0x34(%rbp), %ecx
movq -0x60(%rbp), %rax
movl %ecx, 0x50(%rax)
movq -0x60(%rbp), %rax
movl $0x4, 0x58(%rax)
movq -0x48(%rbp), %rax
movq 0x7f0(%rax), %rcx
addq $0xb0, %rcx
movq %rcx, 0x7f0(%rax)
jmp 0x4f93e
movq -0x40(%rbp), %rax
testb $0x1, 0x3(%rax)
je 0x4f935
leaq 0x1c3aaf(%rip), %rax # 0x2133bc
movl (%rax), %edi
movq -0x10(%rbp), %rsi
addq $0x28, %rsi
callq 0x4ada0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movl $0x1, -0x50(%rbp)
jmp 0x4f93c
movl $0x0, -0x50(%rbp)
jmp 0x4f93e
movl -0x50(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movl -0x4c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| pfs_start_table_lock_wait_v1:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov qword ptr [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_34], r9d
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_40]
test byte ptr [rax+1], 1
jnz short loc_4F601
mov [rbp+var_8], 0
jmp loc_4F965
loc_4F601:
call _ZL21my_thread_get_THR_PFSv; my_thread_get_THR_PFS(void)
mov [rbp+var_48], rax
mov eax, [rbp+var_1C]
mov [rbp+var_74], eax
test eax, eax
jz short loc_4F620
jmp short $+2
loc_4F616:
mov eax, [rbp+var_74]
sub eax, 1
jz short loc_4F63D
jmp short loc_4F67C
loc_4F620:
mov rax, qword ptr [rbp+var_28]
mov edi, eax; unsigned int
call _ZL23lock_flags_to_lock_typej; lock_flags_to_lock_type(uint)
mov [rbp+var_4C], eax
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_40]
mov [rax+2418h], ecx
jmp short loc_4F683
loc_4F63D:
cmp qword ptr [rbp+var_28], 2
jnz short loc_4F65F
mov rax, [rbp+var_40]
mov dword ptr [rax+241Ch], 63h ; 'c'
mov [rbp+var_8], 0
jmp loc_4F965
loc_4F65F:
mov rax, qword ptr [rbp+var_28]
mov edi, eax; unsigned int
call _ZL32external_lock_flags_to_lock_typej; external_lock_flags_to_lock_type(uint)
mov [rbp+var_4C], eax
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_40]
mov [rax+241Ch], ecx
jmp short loc_4F683
loc_4F67C:
mov [rbp+var_4C], 0
loc_4F683:
mov [rbp+var_58], 0
lea rax, flag_thread_instrumentation
test byte ptr [rax], 1
jz loc_4F8FC
cmp [rbp+var_48], 0
jnz short loc_4F6AF
mov [rbp+var_8], 0
jmp loc_4F965
loc_4F6AF:
mov rax, [rbp+var_48]
test byte ptr [rax+7E0h], 1
jnz short loc_4F6C9
mov [rbp+var_8], 0
jmp loc_4F965
loc_4F6C9:
mov rcx, [rbp+var_48]
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov [rbp+var_50], 2
mov rax, [rbp+var_40]
test byte ptr [rax+3], 1
jz short loc_4F715
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_58], rax
mov rcx, [rbp+var_58]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov eax, [rbp+var_50]
or eax, 1
mov [rbp+var_50], eax
loc_4F715:
lea rax, flag_events_waits_current
test byte ptr [rax], 1
jz loc_4F8FA
mov rax, [rbp+var_48]
mov rax, [rax+7F0h]
mov rcx, [rbp+var_48]
add rcx, 878h
add rcx, 420h
cmp rax, rcx
setnb al
and al, 1
movzx eax, al
cmp eax, 0
jz short loc_4F777
lea rax, locker_lost
mov rcx, [rax]
add rcx, 1
lea rax, locker_lost
mov [rax], rcx
mov [rbp+var_8], 0
jmp loc_4F965
loc_4F777:
mov rax, [rbp+var_48]
mov rax, [rax+7F0h]
mov [rbp+var_60], rax
mov rcx, [rbp+var_60]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov eax, [rbp+var_50]
or eax, 4
mov [rbp+var_50], eax
mov rax, [rbp+var_60]
add rax, 0FFFFFFFFFFFFFF50h
mov [rbp+var_68], rax
mov rax, [rbp+var_60]
mov dword ptr [rax+18h], 4
mov rax, [rbp+var_68]
mov rcx, [rax+8]
mov rax, [rbp+var_60]
mov [rax+20h], rcx
mov rax, [rbp+var_68]
mov ecx, [rax+18h]
mov rax, [rbp+var_60]
mov [rax+28h], ecx
mov rax, [rbp+var_40]
mov rax, [rax+20h]
mov [rbp+var_70], rax
mov rax, [rbp+var_48]
mov rcx, [rax+850h]
mov rax, [rbp+var_60]
mov [rax], rcx
mov rax, [rbp+var_60]
lea rcx, global_table_lock_class
mov [rax+30h], rcx
mov rcx, [rbp+var_58]
mov rax, [rbp+var_60]
mov [rax+38h], rcx
mov rax, [rbp+var_60]
mov qword ptr [rax+40h], 0
mov rax, [rbp+var_40]
mov rcx, [rax+28h]
mov rax, [rbp+var_60]
mov [rax+88h], rcx
mov rax, [rbp+var_48]
mov rcx, [rax+7F8h]
mov rdx, rcx
add rdx, 1
mov [rax+7F8h], rdx
mov rax, [rbp+var_60]
mov [rax+8], rcx
mov rax, [rbp+var_60]
mov qword ptr [rax+10h], 0
mov eax, [rbp+var_4C]
mov ecx, eax
lea rax, _ZL24table_lock_operation_map; table_lock_operation_map
mov ecx, [rax+rcx*4]
mov rax, [rbp+var_60]
mov [rax+90h], ecx
mov rax, [rbp+var_60]
mov qword ptr [rax+0A8h], 0
mov rdi, [rbp+var_70]; this
call _ZN15PFS_table_share15get_object_typeEv; PFS_table_share::get_object_type(void)
mov ecx, eax
mov rax, [rbp+var_60]
mov [rax+5Ch], ecx
mov rcx, [rbp+var_70]
mov rax, [rbp+var_60]
mov [rax+60h], rcx
mov rdi, [rbp+var_70]; this
call _ZN15PFS_table_share11get_versionEv; PFS_table_share::get_version(void)
mov ecx, eax
mov rax, [rbp+var_60]
mov [rax+80h], ecx
mov rax, [rbp+var_60]
mov dword ptr [rax+0A0h], 0
mov rcx, [rbp+var_30]
mov rax, [rbp+var_60]
mov [rax+48h], rcx
mov ecx, [rbp+var_34]
mov rax, [rbp+var_60]
mov [rax+50h], ecx
mov rax, [rbp+var_60]
mov dword ptr [rax+58h], 4
mov rax, [rbp+var_48]
mov rcx, [rax+7F0h]
add rcx, 0B0h
mov [rax+7F0h], rcx
loc_4F8FA:
jmp short loc_4F93E
loc_4F8FC:
mov rax, [rbp+var_40]
test byte ptr [rax+3], 1
jz short loc_4F935
lea rax, wait_timer
mov edi, [rax]
mov rsi, [rbp+var_10]
add rsi, 28h ; '('
call _Z32get_timer_raw_value_and_function15enum_timer_namePPFyvE; get_timer_raw_value_and_function(enum_timer_name,ulong long (**)(void))
mov [rbp+var_58], rax
mov rcx, [rbp+var_58]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov [rbp+var_50], 1
jmp short loc_4F93C
loc_4F935:
mov [rbp+var_50], 0
loc_4F93C:
jmp short $+2
loc_4F93E:
mov ecx, [rbp+var_50]
mov rax, [rbp+var_10]
mov [rax], ecx
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov ecx, [rbp+var_4C]
mov rax, [rbp+var_10]
mov [rax+38h], ecx
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_4F965:
mov rax, [rbp+var_8]
add rsp, 80h
pop rbp
retn
| long long pfs_start_table_lock_wait_v1(long long a1, long long a2, int a3, long long a4, long long a5, int a6)
{
long long v6; // rcx
PFS_table_share *v8; // [rsp+10h] [rbp-70h]
long long v9; // [rsp+20h] [rbp-60h]
unsigned long long timer_raw_value_and_function; // [rsp+28h] [rbp-58h]
int v11; // [rsp+30h] [rbp-50h]
int v12; // [rsp+34h] [rbp-4Ch]
long long THR_PFS; // [rsp+38h] [rbp-48h]
if ( (*(_BYTE *)(a2 + 1) & 1) != 0 )
{
THR_PFS = my_thread_get_THR_PFS();
if ( a3 )
{
if ( a3 == 1 )
{
if ( a4 == 2 )
{
*(_DWORD *)(a2 + 9244) = 99;
return 0LL;
}
v12 = external_lock_flags_to_lock_type(a4);
*(_DWORD *)(a2 + 9244) = v12;
}
else
{
v12 = 0;
}
}
else
{
v12 = lock_flags_to_lock_type(a4);
*(_DWORD *)(a2 + 9240) = v12;
}
timer_raw_value_and_function = 0LL;
if ( (flag_thread_instrumentation & 1) != 0 )
{
if ( !THR_PFS )
return 0LL;
if ( (*(_BYTE *)(THR_PFS + 2016) & 1) == 0 )
return 0LL;
*(_QWORD *)(a1 + 24) = THR_PFS;
v11 = 2;
if ( (*(_BYTE *)(a2 + 3) & 1) != 0 )
{
timer_raw_value_and_function = get_timer_raw_value_and_function(
(unsigned int)wait_timer,
(unsigned long long (**)(void))(a1 + 40));
*(_QWORD *)(a1 + 32) = timer_raw_value_and_function;
v11 = 3;
}
if ( (flag_events_waits_current & 1) != 0 )
{
if ( *(_QWORD *)(THR_PFS + 2032) >= (unsigned long long)(THR_PFS + 3224) )
{
++locker_lost;
return 0LL;
}
v9 = *(_QWORD *)(THR_PFS + 2032);
*(_QWORD *)(a1 + 48) = v9;
v11 |= 4u;
*(_DWORD *)(v9 + 24) = 4;
*(_QWORD *)(v9 + 32) = *(_QWORD *)(v9 - 176 + 8);
*(_DWORD *)(v9 + 40) = *(_DWORD *)(v9 - 176 + 24);
v8 = *(PFS_table_share **)(a2 + 32);
*(_QWORD *)v9 = *(_QWORD *)(THR_PFS + 2128);
*(_QWORD *)(v9 + 48) = global_table_lock_class;
*(_QWORD *)(v9 + 56) = timer_raw_value_and_function;
*(_QWORD *)(v9 + 64) = 0LL;
*(_QWORD *)(v9 + 136) = *(_QWORD *)(a2 + 40);
v6 = *(_QWORD *)(THR_PFS + 2040);
*(_QWORD *)(THR_PFS + 2040) = v6 + 1;
*(_QWORD *)(v9 + 8) = v6;
*(_QWORD *)(v9 + 16) = 0LL;
*(_DWORD *)(v9 + 144) = table_lock_operation_map[v12];
*(_QWORD *)(v9 + 168) = 0LL;
*(_DWORD *)(v9 + 92) = PFS_table_share::get_object_type(v8);
*(_QWORD *)(v9 + 96) = v8;
*(_DWORD *)(v9 + 128) = PFS_table_share::get_version(v8);
*(_DWORD *)(v9 + 160) = 0;
*(_QWORD *)(v9 + 72) = a5;
*(_DWORD *)(v9 + 80) = a6;
*(_DWORD *)(v9 + 88) = 4;
*(_QWORD *)(THR_PFS + 2032) += 176LL;
}
}
else if ( (*(_BYTE *)(a2 + 3) & 1) != 0 )
{
*(_QWORD *)(a1 + 32) = get_timer_raw_value_and_function(
(unsigned int)wait_timer,
(unsigned long long (**)(void))(a1 + 40));
v11 = 1;
}
else
{
v11 = 0;
}
*(_DWORD *)a1 = v11;
*(_QWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 56) = v12;
return a1;
}
return 0LL;
}
| pfs_start_table_lock_wait_v1:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV dword ptr [RBP + -0x34],R9D
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x1],0x1
JNZ 0x0014f601
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014f965
LAB_0014f601:
CALL 0x0014d760
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x74],EAX
TEST EAX,EAX
JZ 0x0014f620
JMP 0x0014f616
LAB_0014f616:
MOV EAX,dword ptr [RBP + -0x74]
SUB EAX,0x1
JZ 0x0014f63d
JMP 0x0014f67c
LAB_0014f620:
MOV RAX,qword ptr [RBP + -0x28]
MOV EDI,EAX
CALL 0x0014f980
MOV dword ptr [RBP + -0x4c],EAX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX + 0x2418],ECX
JMP 0x0014f683
LAB_0014f63d:
CMP qword ptr [RBP + -0x28],0x2
JNZ 0x0014f65f
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX + 0x241c],0x63
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014f965
LAB_0014f65f:
MOV RAX,qword ptr [RBP + -0x28]
MOV EDI,EAX
CALL 0x0014fa20
MOV dword ptr [RBP + -0x4c],EAX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x40]
MOV dword ptr [RAX + 0x241c],ECX
JMP 0x0014f683
LAB_0014f67c:
MOV dword ptr [RBP + -0x4c],0x0
LAB_0014f683:
MOV qword ptr [RBP + -0x58],0x0
LEA RAX,[0x50c040]
TEST byte ptr [RAX],0x1
JZ 0x0014f8fc
CMP qword ptr [RBP + -0x48],0x0
JNZ 0x0014f6af
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014f965
LAB_0014f6af:
MOV RAX,qword ptr [RBP + -0x48]
TEST byte ptr [RAX + 0x7e0],0x1
JNZ 0x0014f6c9
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014f965
LAB_0014f6c9:
MOV RCX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV dword ptr [RBP + -0x50],0x2
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x3],0x1
JZ 0x0014f715
LEA RAX,[0x3133bc]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x0014ada0
MOV qword ptr [RBP + -0x58],RAX
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV EAX,dword ptr [RBP + -0x50]
OR EAX,0x1
MOV dword ptr [RBP + -0x50],EAX
LAB_0014f715:
LEA RAX,[0x50bf40]
TEST byte ptr [RAX],0x1
JZ 0x0014f8fa
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV RCX,qword ptr [RBP + -0x48]
ADD RCX,0x878
ADD RCX,0x420
CMP RAX,RCX
SETNC AL
AND AL,0x1
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0014f777
LEA RAX,[0x50c388]
MOV RCX,qword ptr [RAX]
ADD RCX,0x1
LEA RAX,[0x50c388]
MOV qword ptr [RAX],RCX
MOV qword ptr [RBP + -0x8],0x0
JMP 0x0014f965
LAB_0014f777:
MOV RAX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RAX + 0x7f0]
MOV qword ptr [RBP + -0x60],RAX
MOV RCX,qword ptr [RBP + -0x60]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV EAX,dword ptr [RBP + -0x50]
OR EAX,0x4
MOV dword ptr [RBP + -0x50],EAX
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,-0xb0
MOV qword ptr [RBP + -0x68],RAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x18],0x4
MOV RAX,qword ptr [RBP + -0x68]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x68]
MOV ECX,dword ptr [RAX + 0x18]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x20]
MOV qword ptr [RBP + -0x70],RAX
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RAX + 0x850]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x60]
LEA RCX,[0x50ca40]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x38],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x40],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RAX + 0x28]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x88],RCX
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RAX + 0x7f8]
MOV RDX,RCX
ADD RDX,0x1
MOV qword ptr [RAX + 0x7f8],RDX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x10],0x0
MOV EAX,dword ptr [RBP + -0x4c]
MOV ECX,EAX
LEA RAX,[0x313420]
MOV ECX,dword ptr [RAX + RCX*0x4]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x90],ECX
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0xa8],0x0
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x00156440
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x5c],ECX
MOV RCX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x60],RCX
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x00156460
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x80],ECX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0xa0],0x0
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RAX + 0x48],RCX
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x50],ECX
MOV RAX,qword ptr [RBP + -0x60]
MOV dword ptr [RAX + 0x58],0x4
MOV RAX,qword ptr [RBP + -0x48]
MOV RCX,qword ptr [RAX + 0x7f0]
ADD RCX,0xb0
MOV qword ptr [RAX + 0x7f0],RCX
LAB_0014f8fa:
JMP 0x0014f93e
LAB_0014f8fc:
MOV RAX,qword ptr [RBP + -0x40]
TEST byte ptr [RAX + 0x3],0x1
JZ 0x0014f935
LEA RAX,[0x3133bc]
MOV EDI,dword ptr [RAX]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x28
CALL 0x0014ada0
MOV qword ptr [RBP + -0x58],RAX
MOV RCX,qword ptr [RBP + -0x58]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV dword ptr [RBP + -0x50],0x1
JMP 0x0014f93c
LAB_0014f935:
MOV dword ptr [RBP + -0x50],0x0
LAB_0014f93c:
JMP 0x0014f93e
LAB_0014f93e:
MOV ECX,dword ptr [RBP + -0x50]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV ECX,dword ptr [RBP + -0x4c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_0014f965:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x80
POP RBP
RET
|
uint * pfs_start_table_lock_wait_v1
(uint *param_1,long param_2,int param_3,long param_4,int8 param_5,
int4 param_6)
{
int8 *puVar1;
PFS_table_share *this;
long lVar2;
int4 uVar3;
long lVar4;
int8 uVar5;
bool bVar6;
int8 local_60;
uint local_58;
uint local_54;
if ((*(byte *)(param_2 + 1) & 1) == 0) {
return (uint *)0x0;
}
lVar4 = my_thread_get_THR_PFS();
if (param_3 == 0) {
local_54 = lock_flags_to_lock_type((uint)param_4);
*(uint *)(param_2 + 0x2418) = local_54;
}
else if (param_3 == 1) {
if (param_4 == 2) {
*(int4 *)(param_2 + 0x241c) = 99;
return (uint *)0x0;
}
local_54 = external_lock_flags_to_lock_type((uint)param_4);
*(uint *)(param_2 + 0x241c) = local_54;
}
else {
local_54 = 0;
}
local_60 = 0;
if ((flag_thread_instrumentation & 1) == 0) {
bVar6 = (*(byte *)(param_2 + 3) & 1) != 0;
if (bVar6) {
uVar5 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = uVar5;
}
local_58 = (uint)bVar6;
}
else {
if (lVar4 == 0) {
return (uint *)0x0;
}
if ((*(byte *)(lVar4 + 0x7e0) & 1) == 0) {
return (uint *)0x0;
}
*(long *)(param_1 + 6) = lVar4;
local_58 = 2;
if ((*(byte *)(param_2 + 3) & 1) != 0) {
local_60 = get_timer_raw_value_and_function(wait_timer,param_1 + 10);
*(int8 *)(param_1 + 8) = local_60;
local_58 = 3;
}
if ((flag_events_waits_current & 1) != 0) {
if (lVar4 + 0xc98U <= *(ulong *)(lVar4 + 0x7f0)) {
locker_lost = locker_lost + 1;
return (uint *)0x0;
}
puVar1 = *(int8 **)(lVar4 + 0x7f0);
*(int8 **)(param_1 + 0xc) = puVar1;
local_58 = local_58 | 4;
*(int4 *)(puVar1 + 3) = 4;
puVar1[4] = puVar1[-0x15];
*(int4 *)(puVar1 + 5) = *(int4 *)(puVar1 + -0x13);
this = *(PFS_table_share **)(param_2 + 0x20);
*puVar1 = *(int8 *)(lVar4 + 0x850);
puVar1[6] = global_table_lock_class;
puVar1[7] = local_60;
puVar1[8] = 0;
puVar1[0x11] = *(int8 *)(param_2 + 0x28);
lVar2 = *(long *)(lVar4 + 0x7f8);
*(long *)(lVar4 + 0x7f8) = lVar2 + 1;
puVar1[1] = lVar2;
puVar1[2] = 0;
*(int4 *)(puVar1 + 0x12) =
*(int4 *)(table_lock_operation_map + (ulong)local_54 * 4);
puVar1[0x15] = 0;
uVar3 = PFS_table_share::get_object_type(this);
*(int4 *)((long)puVar1 + 0x5c) = uVar3;
puVar1[0xc] = this;
uVar3 = PFS_table_share::get_version(this);
*(int4 *)(puVar1 + 0x10) = uVar3;
*(int4 *)(puVar1 + 0x14) = 0;
puVar1[9] = param_5;
*(int4 *)(puVar1 + 10) = param_6;
*(int4 *)(puVar1 + 0xb) = 4;
*(long *)(lVar4 + 0x7f0) = *(long *)(lVar4 + 0x7f0) + 0xb0;
}
}
*param_1 = local_58;
*(long *)(param_1 + 2) = param_2;
param_1[0xe] = local_54;
return param_1;
}
| |
52,284 | thr_multi_unlock | eloqsql/mysys/thr_lock.c | void thr_multi_unlock(THR_LOCK_DATA **data,uint count, uint unlock_flags)
{
THR_LOCK_DATA **pos,**end;
DBUG_ENTER("thr_multi_unlock");
DBUG_PRINT("lock",("data: %p count: %d flags: %u", data, count,
unlock_flags));
for (pos=data,end=data+count; pos < end ; pos++)
{
#ifdef MAIN
printf("Thread: %s Rel lock: %p type: %d\n",
my_thread_name(), pos[0]->lock, pos[0]->type);
fflush(stdout);
#endif
if ((*pos)->type != TL_UNLOCK)
thr_unlock(*pos, unlock_flags);
else
{
DBUG_PRINT("lock",("Free lock: data: %p thread:%lu lock: %p",
*pos, (ulong) (*pos)->owner->thread_id,
(*pos)->lock));
}
}
DBUG_VOID_RETURN;
} | O0 | c | thr_multi_unlock:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
jmp 0xf8a64
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x20(%rbp), %rax
jae 0xf8abc
movq -0x18(%rbp), %rax
movq (%rax), %rax
cmpl $0x0, 0x40(%rax)
je 0xf8aa6
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0x10(%rbp), %esi
callq 0xf7b20
jmp 0xf8aac
jmp 0xf8aa8
jmp 0xf8aaa
jmp 0xf8aac
jmp 0xf8aae
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
jmp 0xf8a7e
jmp 0xf8abe
jmp 0xf8ac0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| thr_multi_unlock:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
jmp short $+2
loc_F8A64:
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_20], rax
loc_F8A7E:
mov rax, [rbp+var_18]
cmp rax, [rbp+var_20]
jnb short loc_F8ABC
mov rax, [rbp+var_18]
mov rax, [rax]
cmp dword ptr [rax+40h], 0
jz short loc_F8AA6
mov rax, [rbp+var_18]
mov rdi, [rax]
mov esi, [rbp+var_10]
call thr_unlock
jmp short loc_F8AAC
loc_F8AA6:
jmp short $+2
loc_F8AA8:
jmp short $+2
loc_F8AAA:
jmp short $+2
loc_F8AAC:
jmp short $+2
loc_F8AAE:
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
jmp short loc_F8A7E
loc_F8ABC:
jmp short $+2
loc_F8ABE:
jmp short $+2
loc_F8AC0:
add rsp, 20h
pop rbp
retn
| long long * thr_multi_unlock(long long *a1, int a2, char a3)
{
long long *result; // rax
long long *i; // [rsp+8h] [rbp-18h]
for ( i = a1; ; ++i )
{
result = i;
if ( i >= &a1[a2] )
break;
if ( *(_DWORD *)(*i + 64) )
thr_unlock(*i, a3);
}
return result;
}
| thr_multi_unlock:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
JMP 0x001f8a64
LAB_001f8a64:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
LAB_001f8a7e:
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x20]
JNC 0x001f8abc
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
CMP dword ptr [RAX + 0x40],0x0
JZ 0x001f8aa6
MOV RAX,qword ptr [RBP + -0x18]
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x001f7b20
JMP 0x001f8aac
LAB_001f8aa6:
JMP 0x001f8aa8
LAB_001f8aa8:
JMP 0x001f8aaa
LAB_001f8aaa:
JMP 0x001f8aac
LAB_001f8aac:
JMP 0x001f8aae
LAB_001f8aae:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001f8a7e
LAB_001f8abc:
JMP 0x001f8abe
LAB_001f8abe:
JMP 0x001f8ac0
LAB_001f8ac0:
ADD RSP,0x20
POP RBP
RET
|
void thr_multi_unlock(long *param_1,uint param_2,int4 param_3)
{
long *local_20;
for (local_20 = param_1; local_20 < param_1 + param_2; local_20 = local_20 + 1) {
if (*(int *)(*local_20 + 0x40) != 0) {
thr_unlock(*local_20,param_3);
}
}
return;
}
| |
52,285 | my_open_parent_dir_nosymlinks | eloqsql/mysys/my_symlink.c | const char *my_open_parent_dir_nosymlinks(const char *pathname, int *pdfd)
{
char buf[FN_REFLEN + 1];
char *s= buf, *e= buf+1, *end= strnmov(buf, pathname, sizeof(buf));
int fd, dfd= -1;
if (*end)
{
errno= ENAMETOOLONG;
return NULL;
}
if (*s != '/') /* not an absolute path */
{
errno= ENOENT;
return NULL;
}
for (;;)
{
if (*e == '/') /* '//' in the path */
{
errno= ENOENT;
goto err;
}
while (*e && *e != '/')
e++;
*e= 0;
if (!memcmp(s, ".", 2) || !memcmp(s, "..", 3))
{
errno= ENOENT;
goto err;
}
if (++e >= end)
{
*pdfd= dfd;
return pathname + (s - buf);
}
fd = openat(dfd, s, O_NOFOLLOW | O_PATH | O_CLOEXEC);
if (fd < 0)
goto err;
if (dfd >= 0)
close(dfd);
dfd= fd;
s= e;
}
err:
if (dfd >= 0)
close(dfd);
return NULL;
} | O3 | c | my_open_parent_dir_nosymlinks:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp # imm = 0x228
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq -0x240(%rbp), %r15
movl $0x201, %edx # imm = 0x201
movq %r15, %rdi
movq %rbx, %rsi
callq 0xd8134
cmpb $0x0, (%rax)
je 0xa1e67
callq 0x297b0
movl $0x24, (%rax)
jmp 0xa1f3e
cmpb $0x2f, -0x240(%rbp)
jne 0xa1f13
movq %rax, %r12
movq %r14, -0x248(%rbp)
movb -0x23f(%rbp), %al
movl $0xffffffff, %r13d # imm = 0xFFFFFFFF
cmpb $0x2f, %al
je 0xa1f23
leaq -0x23f(%rbp), %rcx
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq %r15, %rsi
incq %rcx
movq %rcx, %r15
testb %al, %al
je 0xa1ebc
movzbl %al, %eax
cmpl $0x2f, %eax
je 0xa1ebc
movb (%r15), %al
incq %r15
jmp 0xa1ea8
movb $0x0, -0x1(%r15)
cmpw $0x2e, (%rsi)
je 0xa1f20
movzwl (%rsi), %eax
xorl $0x2e2e, %eax # imm = 0x2E2E
movzbl 0x2(%rsi), %ecx
orw %ax, %cx
je 0xa1f20
cmpq %r12, %r15
jae 0xa1f64
movl %r14d, %edi
movl $0x2a0000, %edx # imm = 0x2A0000
xorl %eax, %eax
callq 0x29570
testl %eax, %eax
js 0xa1f31
movl %eax, %r13d
testl %r14d, %r14d
js 0xa1f04
movl %r14d, %edi
callq 0x291b0
movb (%r15), %al
movl %r13d, %r14d
movq %r15, %rcx
cmpb $0x2f, %al
jne 0xa1e9f
jmp 0xa1f23
callq 0x297b0
movl $0x2, (%rax)
jmp 0xa1f3e
movl %r14d, %r13d
callq 0x297b0
movl $0x2, (%rax)
movl %r13d, %r14d
testl %r14d, %r14d
js 0xa1f3e
movl %r14d, %edi
callq 0x291b0
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0xa1f7d
movq %rbx, %rax
addq $0x228, %rsp # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x248(%rbp), %rax
movl %r14d, (%rax)
leaq -0x240(%rbp), %rax
subq %rax, %rsi
addq %rsi, %rbx
jmp 0xa1f40
callq 0x29270
nop
| my_open_parent_dir_nosymlinks:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 228h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
lea r15, [rbp+var_240]
mov edx, 201h
mov rdi, r15
mov rsi, rbx
call strnmov
cmp byte ptr [rax], 0
jz short loc_A1E67
call ___errno_location
mov dword ptr [rax], 24h ; '$'
jmp loc_A1F3E
loc_A1E67:
cmp [rbp+var_240], 2Fh ; '/'
jnz loc_A1F13
mov r12, rax
mov [rbp+var_248], r14
mov al, [rbp+var_23F]
mov r13d, 0FFFFFFFFh
cmp al, 2Fh ; '/'
jz loc_A1F23
lea rcx, [rbp+var_23F]
mov r14d, 0FFFFFFFFh
loc_A1E9F:
mov rsi, r15
inc rcx
mov r15, rcx
loc_A1EA8:
test al, al
jz short loc_A1EBC
movzx eax, al
cmp eax, 2Fh ; '/'
jz short loc_A1EBC
mov al, [r15]
inc r15
jmp short loc_A1EA8
loc_A1EBC:
mov byte ptr [r15-1], 0
cmp word ptr [rsi], 2Eh ; '.'
jz short loc_A1F20
movzx eax, word ptr [rsi]
xor eax, 2E2Eh
movzx ecx, byte ptr [rsi+2]
or cx, ax
jz short loc_A1F20
cmp r15, r12
jnb loc_A1F64
mov edi, r14d
mov edx, offset unk_2A0000
xor eax, eax
call _openat64
test eax, eax
js short loc_A1F31
mov r13d, eax
test r14d, r14d
js short loc_A1F04
mov edi, r14d
call _close
loc_A1F04:
mov al, [r15]
mov r14d, r13d
mov rcx, r15
cmp al, 2Fh ; '/'
jnz short loc_A1E9F
jmp short loc_A1F23
loc_A1F13:
call ___errno_location
mov dword ptr [rax], 2
jmp short loc_A1F3E
loc_A1F20:
mov r13d, r14d
loc_A1F23:
call ___errno_location
mov dword ptr [rax], 2
mov r14d, r13d
loc_A1F31:
test r14d, r14d
js short loc_A1F3E
mov edi, r14d
call _close
loc_A1F3E:
xor ebx, ebx
loc_A1F40:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_A1F7D
mov rax, rbx
add rsp, 228h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A1F64:
mov rax, [rbp+var_248]
mov [rax], r14d
lea rax, [rbp+var_240]
sub rsi, rax
add rbx, rsi
jmp short loc_A1F40
loc_A1F7D:
call ___stack_chk_fail
| long long my_open_parent_dir_nosymlinks(long long a1, unsigned int *a2)
{
char *v3; // r15
char *v4; // rdi
char *v5; // rax
char *v6; // r12
char v7; // al
int v8; // r13d
char *v9; // rcx
unsigned int v10; // r14d
char *v11; // rsi
long long v12; // rcx
int v13; // eax
unsigned int *v16; // [rsp+8h] [rbp-248h]
char v17; // [rsp+10h] [rbp-240h] BYREF
char v18; // [rsp+11h] [rbp-23Fh] BYREF
unsigned long long v19; // [rsp+220h] [rbp-30h]
v19 = __readfsqword(0x28u);
v3 = &v17;
v4 = &v17;
v5 = (char *)strnmov(&v17, a1, 513LL);
if ( *v5 )
{
*(_DWORD *)__errno_location(&v17) = 36;
return 0LL;
}
if ( v17 != 47 )
{
*(_DWORD *)__errno_location(&v17) = 2;
return 0LL;
}
v6 = v5;
v16 = a2;
v7 = v18;
v8 = -1;
if ( v18 == 47 )
{
LABEL_20:
*(_DWORD *)__errno_location(v4) = 2;
v10 = v8;
LABEL_21:
if ( (v10 & 0x80000000) == 0 )
close(v10);
return 0LL;
}
v9 = &v18;
v10 = -1;
while ( 1 )
{
v11 = v3;
v3 = v9 + 1;
while ( v7 && v7 != 47 )
v7 = *v3++;
*(v3 - 1) = 0;
if ( *(_WORD *)v11 == 46 || (v12 = (unsigned __int8)v11[2], LOWORD(v12) = *(_WORD *)v11 ^ 0x2E2E | v12, !(_WORD)v12) )
{
v8 = v10;
goto LABEL_20;
}
if ( v3 >= v6 )
break;
v4 = (char *)v10;
v13 = openat64(v10, v11, &unk_2A0000, v12);
if ( v13 < 0 )
goto LABEL_21;
v8 = v13;
if ( (v10 & 0x80000000) == 0 )
{
v4 = (char *)v10;
close(v10);
}
v7 = *v3;
v10 = v8;
v9 = v3;
if ( *v3 == 47 )
goto LABEL_20;
}
*v16 = v10;
return v11 - &v17 + a1;
}
| my_open_parent_dir_nosymlinks:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x228
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA R15,[RBP + -0x240]
MOV EDX,0x201
MOV RDI,R15
MOV RSI,RBX
CALL 0x001d8134
CMP byte ptr [RAX],0x0
JZ 0x001a1e67
CALL 0x001297b0
MOV dword ptr [RAX],0x24
JMP 0x001a1f3e
LAB_001a1e67:
CMP byte ptr [RBP + -0x240],0x2f
JNZ 0x001a1f13
MOV R12,RAX
MOV qword ptr [RBP + -0x248],R14
MOV AL,byte ptr [RBP + -0x23f]
MOV R13D,0xffffffff
CMP AL,0x2f
JZ 0x001a1f23
LEA RCX,[RBP + -0x23f]
MOV R14D,0xffffffff
LAB_001a1e9f:
MOV RSI,R15
INC RCX
MOV R15,RCX
LAB_001a1ea8:
TEST AL,AL
JZ 0x001a1ebc
MOVZX EAX,AL
CMP EAX,0x2f
JZ 0x001a1ebc
MOV AL,byte ptr [R15]
INC R15
JMP 0x001a1ea8
LAB_001a1ebc:
MOV byte ptr [R15 + -0x1],0x0
CMP word ptr [RSI],0x2e
JZ 0x001a1f20
MOVZX EAX,word ptr [RSI]
XOR EAX,0x2e2e
MOVZX ECX,byte ptr [RSI + 0x2]
OR CX,AX
JZ 0x001a1f20
CMP R15,R12
JNC 0x001a1f64
MOV EDI,R14D
MOV EDX,0x2a0000
XOR EAX,EAX
CALL 0x00129570
TEST EAX,EAX
JS 0x001a1f31
MOV R13D,EAX
TEST R14D,R14D
JS 0x001a1f04
MOV EDI,R14D
CALL 0x001291b0
LAB_001a1f04:
MOV AL,byte ptr [R15]
MOV R14D,R13D
MOV RCX,R15
CMP AL,0x2f
JNZ 0x001a1e9f
JMP 0x001a1f23
LAB_001a1f13:
CALL 0x001297b0
MOV dword ptr [RAX],0x2
JMP 0x001a1f3e
LAB_001a1f20:
MOV R13D,R14D
LAB_001a1f23:
CALL 0x001297b0
MOV dword ptr [RAX],0x2
MOV R14D,R13D
LAB_001a1f31:
TEST R14D,R14D
JS 0x001a1f3e
MOV EDI,R14D
CALL 0x001291b0
LAB_001a1f3e:
XOR EBX,EBX
LAB_001a1f40:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001a1f7d
MOV RAX,RBX
ADD RSP,0x228
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a1f64:
MOV RAX,qword ptr [RBP + -0x248]
MOV dword ptr [RAX],R14D
LEA RAX,[RBP + -0x240]
SUB RSI,RAX
ADD RBX,RSI
JMP 0x001a1f40
LAB_001a1f7d:
CALL 0x00129270
|
long my_open_parent_dir_nosymlinks(long param_1,int *param_2)
{
short *psVar1;
int iVar2;
short *psVar3;
int *piVar4;
long lVar5;
int __fd;
short *psVar6;
short *__file;
long in_FS_OFFSET;
int1 local_248 [2];
int1 local_246 [526];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
psVar3 = (short *)strnmov(local_248,param_1,0x201);
if ((char)*psVar3 == '\0') {
if (local_248[0] == '/') {
__fd = -1;
if (local_248[1] != '/') {
psVar1 = (short *)(local_248 + 1);
__file = (short *)local_248;
__fd = -1;
do {
while ((psVar6 = (short *)((long)psVar1 + 1), local_248[1] != '\0' &&
(local_248[1] != '/'))) {
psVar1 = psVar6;
local_248[1] = *(char *)psVar6;
}
*(char *)psVar1 = '\0';
if ((*__file == 0x2e) || ((char)__file[1] == '\0' && *__file == 0x2e2e)) break;
if (psVar3 <= psVar6) {
*param_2 = __fd;
lVar5 = (long)__file + (param_1 - (long)local_248);
goto LAB_001a1f40;
}
iVar2 = openat64(__fd,(char *)__file,0x2a0000);
if (iVar2 < 0) goto LAB_001a1f31;
if (-1 < __fd) {
close(__fd);
}
local_248[1] = *(char *)psVar6;
__fd = iVar2;
psVar1 = psVar6;
__file = psVar6;
} while (local_248[1] != '/');
}
piVar4 = __errno_location();
*piVar4 = 2;
LAB_001a1f31:
if (-1 < __fd) {
close(__fd);
}
}
else {
piVar4 = __errno_location();
*piVar4 = 2;
}
}
else {
piVar4 = __errno_location();
*piVar4 = 0x24;
}
lVar5 = 0;
LAB_001a1f40:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return lVar5;
}
| |
52,286 | escape_quotes_for_mysql | eloqsql/mysys/charset.c | size_t escape_quotes_for_mysql(CHARSET_INFO *charset_info,
char *to, size_t to_length,
const char *from, size_t length,
my_bool *overflow)
{
const char *to_start= to;
const char *end, *to_end=to_start + (to_length ? to_length-1 : 2*length);
#ifdef USE_MB
my_bool use_mb_flag= my_ci_use_mb(charset_info);
#endif
*overflow= FALSE;
for (end= from + length; from < end; from++)
{
#ifdef USE_MB
int tmp_length;
if (use_mb_flag && (tmp_length= my_ismbchar(charset_info, from, end)))
{
if (to + tmp_length > to_end)
{
*overflow= TRUE;
break;
}
while (tmp_length--)
*to++= *from++;
from--;
continue;
}
/*
We don't have the same issue here with a non-multi-byte character being
turned into a multi-byte character by the addition of an escaping
character, because we are only escaping the ' character with itself.
*/
#endif
if (*from == '\'')
{
if (to + 2 > to_end)
{
*overflow= TRUE;
break;
}
*to++= '\'';
*to++= '\'';
}
else
{
if (to + 1 > to_end)
{
*overflow= TRUE;
break;
}
*to++= *from;
}
}
*to= 0;
return (size_t) (to - to_start);
} | O0 | c | escape_quotes_for_mysql:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x2bac5
movq -0x18(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x2bad0
movq -0x28(%rbp), %rax
shlq %rax
movq %rax, -0x60(%rbp)
movq -0x58(%rbp), %rax
movq -0x60(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
callq 0x2bc40
movb %al, -0x49(%rbp)
movq -0x30(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rax
addq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x2bc19
movsbl -0x49(%rbp), %eax
cmpl $0x0, %eax
je 0x2bb8f
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq 0x2bc70
movl %eax, -0x50(%rbp)
cmpl $0x0, %eax
je 0x2bb8f
movq -0x10(%rbp), %rax
movslq -0x50(%rbp), %rcx
addq %rcx, %rax
cmpq -0x48(%rbp), %rax
jbe 0x2bb4b
movq -0x30(%rbp), %rax
movb $0x1, (%rax)
jmp 0x2bc19
jmp 0x2bb4d
movl -0x50(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x50(%rbp)
cmpl $0x0, %eax
je 0x2bb81
movq -0x20(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x20(%rbp)
movb (%rax), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x2bb4d
movq -0x20(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x2bc08
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x27, %eax
jne 0x2bbd8
movq -0x10(%rbp), %rax
addq $0x2, %rax
cmpq -0x48(%rbp), %rax
jbe 0x2bbb2
movq -0x30(%rbp), %rax
movb $0x1, (%rax)
jmp 0x2bc19
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $0x27, (%rax)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x10(%rbp)
movb $0x27, (%rax)
jmp 0x2bc06
movq -0x10(%rbp), %rax
addq $0x1, %rax
cmpq -0x48(%rbp), %rax
jbe 0x2bbef
movq -0x30(%rbp), %rax
movb $0x1, (%rax)
jmp 0x2bc19
movq -0x20(%rbp), %rax
movb (%rax), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
jmp 0x2bc08
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x2bafe
movq -0x10(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq -0x38(%rbp), %rcx
subq %rcx, %rax
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| escape_quotes_for_mysql:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov [rbp+var_38], rax
mov rax, [rbp+var_38]
mov [rbp+var_58], rax
cmp [rbp+var_18], 0
jz short loc_2BAC5
mov rax, [rbp+var_18]
sub rax, 1
mov [rbp+var_60], rax
jmp short loc_2BAD0
loc_2BAC5:
mov rax, [rbp+var_28]
shl rax, 1
mov [rbp+var_60], rax
loc_2BAD0:
mov rax, [rbp+var_58]
mov rcx, [rbp+var_60]
add rax, rcx
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]
call my_ci_use_mb
mov [rbp+var_49], al
mov rax, [rbp+var_30]
mov byte ptr [rax], 0
mov rax, [rbp+var_20]
add rax, [rbp+var_28]
mov [rbp+var_40], rax
loc_2BAFE:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_40]
jnb loc_2BC19
movsx eax, [rbp+var_49]
cmp eax, 0
jz short loc_2BB8F
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_20]
mov rdx, [rbp+var_40]
call my_ismbchar
mov [rbp+var_50], eax
cmp eax, 0
jz short loc_2BB8F
mov rax, [rbp+var_10]
movsxd rcx, [rbp+var_50]
add rax, rcx
cmp rax, [rbp+var_48]
jbe short loc_2BB4B
mov rax, [rbp+var_30]
mov byte ptr [rax], 1
jmp loc_2BC19
loc_2BB4B:
jmp short $+2
loc_2BB4D:
mov eax, [rbp+var_50]
mov ecx, eax
add ecx, 0FFFFFFFFh
mov [rbp+var_50], ecx
cmp eax, 0
jz short loc_2BB81
mov rax, [rbp+var_20]
mov rcx, rax
add rcx, 1
mov [rbp+var_20], rcx
mov cl, [rax]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
jmp short loc_2BB4D
loc_2BB81:
mov rax, [rbp+var_20]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_20], rax
jmp short loc_2BC08
loc_2BB8F:
mov rax, [rbp+var_20]
movsx eax, byte ptr [rax]
cmp eax, 27h ; '''
jnz short loc_2BBD8
mov rax, [rbp+var_10]
add rax, 2
cmp rax, [rbp+var_48]
jbe short loc_2BBB2
mov rax, [rbp+var_30]
mov byte ptr [rax], 1
jmp short loc_2BC19
loc_2BBB2:
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov byte ptr [rax], 27h ; '''
mov rax, [rbp+var_10]
mov rcx, rax
add rcx, 1
mov [rbp+var_10], rcx
mov byte ptr [rax], 27h ; '''
jmp short loc_2BC06
loc_2BBD8:
mov rax, [rbp+var_10]
add rax, 1
cmp rax, [rbp+var_48]
jbe short loc_2BBEF
mov rax, [rbp+var_30]
mov byte ptr [rax], 1
jmp short loc_2BC19
loc_2BBEF:
mov rax, [rbp+var_20]
mov cl, [rax]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
loc_2BC06:
jmp short $+2
loc_2BC08:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp loc_2BAFE
loc_2BC19:
mov rax, [rbp+var_10]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov rcx, [rbp+var_38]
sub rax, rcx
add rsp, 60h
pop rbp
retn
| _BYTE * escape_quotes_for_mysql(long long a1, char *a2, long long a3, char *a4, long long a5, _BYTE *a6)
{
char *v7; // rax
char v8; // cl
char *v9; // rax
_BYTE *v10; // rax
char *v11; // rax
long long v13; // [rsp+0h] [rbp-60h]
int v14; // [rsp+10h] [rbp-50h]
char v15; // [rsp+17h] [rbp-49h]
unsigned long long v16; // [rsp+18h] [rbp-48h]
char *v17; // [rsp+20h] [rbp-40h]
char *v21; // [rsp+50h] [rbp-10h]
v21 = a2;
if ( a3 )
v13 = a3 - 1;
else
v13 = 2 * a5;
v16 = (unsigned long long)&a2[v13];
v15 = my_ci_use_mb(a1);
*a6 = 0;
v17 = &a4[a5];
while ( a4 < v17 )
{
if ( v15 && (v14 = my_ismbchar(a1, a4, v17)) != 0 )
{
if ( (unsigned long long)&v21[v14] > v16 )
{
*a6 = 1;
break;
}
while ( v14-- )
{
v7 = a4++;
v8 = *v7;
v9 = v21++;
*v9 = v8;
}
--a4;
}
else if ( *a4 == 39 )
{
if ( (unsigned long long)(v21 + 2) > v16 )
{
*a6 = 1;
break;
}
*v21 = 39;
v10 = v21 + 1;
v21 += 2;
*v10 = 39;
}
else
{
if ( (unsigned long long)(v21 + 1) > v16 )
{
*a6 = 1;
break;
}
v11 = v21++;
*v11 = *a4;
}
++a4;
}
*v21 = 0;
return (_BYTE *)(v21 - a2);
}
| escape_quotes_for_mysql:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x58],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x0012bac5
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0012bad0
LAB_0012bac5:
MOV RAX,qword ptr [RBP + -0x28]
SHL RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
LAB_0012bad0:
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RBP + -0x60]
ADD RAX,RCX
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0012bc40
MOV byte ptr [RBP + -0x49],AL
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
LAB_0012bafe:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x0012bc19
MOVSX EAX,byte ptr [RBP + -0x49]
CMP EAX,0x0
JZ 0x0012bb8f
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x40]
CALL 0x0012bc70
MOV dword ptr [RBP + -0x50],EAX
CMP EAX,0x0
JZ 0x0012bb8f
MOV RAX,qword ptr [RBP + -0x10]
MOVSXD RCX,dword ptr [RBP + -0x50]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x48]
JBE 0x0012bb4b
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0x1
JMP 0x0012bc19
LAB_0012bb4b:
JMP 0x0012bb4d
LAB_0012bb4d:
MOV EAX,dword ptr [RBP + -0x50]
MOV ECX,EAX
ADD ECX,-0x1
MOV dword ptr [RBP + -0x50],ECX
CMP EAX,0x0
JZ 0x0012bb81
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x20],RCX
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
JMP 0x0012bb4d
LAB_0012bb81:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0012bc08
LAB_0012bb8f:
MOV RAX,qword ptr [RBP + -0x20]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x27
JNZ 0x0012bbd8
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x48]
JBE 0x0012bbb2
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0x1
JMP 0x0012bc19
LAB_0012bbb2:
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV byte ptr [RAX],0x27
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,RAX
ADD RCX,0x1
MOV qword ptr [RBP + -0x10],RCX
MOV byte ptr [RAX],0x27
JMP 0x0012bc06
LAB_0012bbd8:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
CMP RAX,qword ptr [RBP + -0x48]
JBE 0x0012bbef
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX],0x1
JMP 0x0012bc19
LAB_0012bbef:
MOV RAX,qword ptr [RBP + -0x20]
MOV CL,byte ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
LAB_0012bc06:
JMP 0x0012bc08
LAB_0012bc08:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0012bafe
LAB_0012bc19:
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
SUB RAX,RCX
ADD RSP,0x60
POP RBP
RET
|
long escape_quotes_for_mysql
(int8 param_1,char *param_2,long param_3,char *param_4,long param_5,
int1 *param_6)
{
char cVar1;
char *pcVar2;
long local_68;
int local_58;
char *local_28;
char *local_18;
if (param_3 == 0) {
local_68 = param_5 << 1;
}
else {
local_68 = param_3 + -1;
}
pcVar2 = param_2 + local_68;
cVar1 = my_ci_use_mb(param_1);
*param_6 = 0;
local_28 = param_4;
local_18 = param_2;
do {
if (param_4 + param_5 <= local_28) {
LAB_0012bc19:
*local_18 = '\0';
return (long)local_18 - (long)param_2;
}
if ((cVar1 == '\0') ||
(local_58 = my_ismbchar(param_1,local_28,param_4 + param_5), local_58 == 0)) {
if (*local_28 == '\'') {
if (pcVar2 < local_18 + 2) {
*param_6 = 1;
goto LAB_0012bc19;
}
*local_18 = '\'';
local_18[1] = '\'';
local_18 = local_18 + 2;
}
else {
if (pcVar2 < local_18 + 1) {
*param_6 = 1;
goto LAB_0012bc19;
}
*local_18 = *local_28;
local_18 = local_18 + 1;
}
}
else {
if (pcVar2 < local_18 + local_58) {
*param_6 = 1;
goto LAB_0012bc19;
}
while (local_58 != 0) {
*local_18 = *local_28;
local_58 = local_58 + -1;
local_28 = local_28 + 1;
local_18 = local_18 + 1;
}
local_28 = local_28 + -1;
}
local_28 = local_28 + 1;
} while( true );
}
| |
52,287 | ma_write_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_write_static_record(MARIA_HA *info, const uchar *record)
{
uchar temp[8]; /* max pointer length */
if (info->s->state.dellink != HA_OFFSET_ERROR &&
!info->append_insert_at_end)
{
my_off_t filepos=info->s->state.dellink;
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, &temp[0],info->s->base.rec_reflength,
info->s->state.dellink+1,
MYF(MY_NABP)))
goto err;
info->s->state.dellink= _ma_rec_pos(info->s, temp);
info->state->del--;
info->state->empty-=info->s->base.pack_reclength;
if (info->s->file_write(info, record, info->s->base.reclength,
filepos, MYF(MY_NABP)))
goto err;
}
else
{
if (info->state->data_file_length > info->s->base.max_data_file_length-
info->s->base.pack_reclength)
{
my_errno=HA_ERR_RECORD_FILE_FULL;
return(2);
}
if (info->opt_flag & WRITE_CACHE_USED)
{ /* Cash in use */
if (my_b_write(&info->rec_cache, record,
info->s->base.reclength))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (my_b_write(&info->rec_cache, temp,length))
goto err;
}
}
else
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_write(info, record, info->s->base.reclength,
info->state->data_file_length,
info->s->write_flag))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (info->s->file_write(info, temp,length,
info->state->data_file_length+
info->s->base.reclength,
info->s->write_flag))
goto err;
}
}
info->state->data_file_length+=info->s->base.pack_reclength;
info->s->state.split++;
}
return 0;
err:
return 1;
} | O0 | c | ma_write_static_record:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
cmpq $-0x1, 0xc8(%rax)
je 0x9b083
movq -0x20(%rbp), %rax
cmpb $0x0, 0x681(%rax)
jne 0x9b083
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xc8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e0(%rax), %rax
movq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movl 0x3e0(%rcx), %ecx
movl %ecx, %edx
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0xc8(%rcx), %rcx
addq $0x1, %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x9afed
jmp 0x9b2b1
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq -0x10(%rbp), %rsi
callq 0x95b60
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0xc8(%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rcx
subq %rdx, %rcx
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x30(%rbp), %rcx
movl $0x4, %r8d
callq *%rax
cmpq $0x0, %rax
je 0x9b07e
jmp 0x9b2b1
jmp 0x9b2ab
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x368(%rcx), %rcx
movq -0x20(%rbp), %rdx
movq (%rdx), %rdx
subq 0x3a0(%rdx), %rcx
cmpq %rcx, %rax
jbe 0x9b0c4
callq 0xf6080
movl $0x87, (%rax)
movb $0x2, -0x11(%rbp)
jmp 0x9b2b5
movq -0x20(%rbp), %rax
movl 0x61c(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x9b17d
movq -0x20(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x398(%rax), %rdx
callq 0x9b2e0
cmpl $0x0, %eax
je 0x9b106
jmp 0x9b2b1
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x398(%rcx), %rax
je 0x9b178
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
subq 0x398(%rcx), %rax
movl %eax, -0x34(%rbp)
leaq -0x10(%rbp), %rdi
movl -0x34(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2a0
movq -0x20(%rbp), %rdi
addq $0x4b8, %rdi # imm = 0x4B8
leaq -0x10(%rbp), %rsi
movl -0x34(%rbp), %eax
movl %eax, %edx
callq 0x9b2e0
cmpl $0x0, %eax
je 0x9b176
jmp 0x9b2b1
jmp 0x9b178
jmp 0x9b274
movq -0x20(%rbp), %rax
movl $0x1, 0x598(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
movq 0x398(%rcx), %rdx
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
movq 0x7c8(%r8), %r8
callq *%rax
cmpq $0x0, %rax
je 0x9b1d6
jmp 0x9b2b1
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
cmpq 0x398(%rcx), %rax
je 0x9b272
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rcx), %rcx
subq 0x398(%rcx), %rax
movl %eax, -0x38(%rbp)
leaq -0x10(%rbp), %rdi
movl -0x38(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2a0
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x6e8(%rax), %rax
movq -0x20(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movl -0x38(%rbp), %ecx
movl %ecx, %edx
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
addq 0x398(%r8), %rcx
movq -0x20(%rbp), %r8
movq (%r8), %r8
movq 0x7c8(%r8), %r8
callq *%rax
cmpq $0x0, %rax
je 0x9b270
jmp 0x9b2b1
jmp 0x9b272
jmp 0x9b274
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0x3a0(%rax), %rcx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
addq 0x28(%rax), %rcx
movq %rcx, 0x28(%rax)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq 0xc0(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xc0(%rax)
movb $0x0, -0x11(%rbp)
jmp 0x9b2b5
movb $0x1, -0x11(%rbp)
movb -0x11(%rbp), %al
movb %al, -0x39(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x9b2d6
movb -0x39(%rbp), %al
addq $0x40, %rsp
popq %rbp
retq
callq 0x2a250
nopl (%rax,%rax)
| _ma_write_static_record:
push rbp
mov rbp, rsp
sub rsp, 40h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_20], rdi
mov [rbp+var_28], rsi
mov rax, [rbp+var_20]
mov rax, [rax]
cmp qword ptr [rax+0C8h], 0FFFFFFFFFFFFFFFFh
jz loc_9B083
mov rax, [rbp+var_20]
cmp byte ptr [rax+681h], 0
jnz loc_9B083
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+0C8h]
mov [rbp+var_30], rax
mov rax, [rbp+var_20]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E0h]
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_10]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov ecx, [rcx+3E0h]
mov edx, ecx
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rcx, [rcx+0C8h]
add rcx, 1
mov r8d, 4
call rax
cmp rax, 0
jz short loc_9AFED
jmp loc_9B2B1
loc_9AFED:
mov rax, [rbp+var_20]
mov rdi, [rax]
lea rsi, [rbp+var_10]
call _ma_rec_pos
mov rcx, rax
mov rax, [rbp+var_20]
mov rax, [rax]
mov [rax+0C8h], rcx
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rcx, [rax+8]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+8], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdx, [rax+3A0h]
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rcx, [rax+10h]
sub rcx, rdx
mov [rax+10h], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_30]
mov r8d, 4
call rax
cmp rax, 0
jz short loc_9B07E
jmp loc_9B2B1
loc_9B07E:
jmp loc_9B2AB
loc_9B083:
mov rax, [rbp+var_20]
mov rax, [rax+20h]
mov rax, [rax+28h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rcx, [rcx+368h]
mov rdx, [rbp+var_20]
mov rdx, [rdx]
sub rcx, [rdx+3A0h]
cmp rax, rcx
jbe short loc_9B0C4
call _my_thread_var
mov dword ptr [rax], 87h
mov [rbp+var_11], 2
jmp loc_9B2B5
loc_9B0C4:
mov rax, [rbp+var_20]
mov eax, [rax+61Ch]
and eax, 10h
cmp eax, 0
jz loc_9B17D
mov rdi, [rbp+var_20]
add rdi, 4B8h
mov rsi, [rbp+var_28]
mov rax, [rbp+var_20]
mov rax, [rax]
mov rdx, [rax+398h]
call my_b_write_0
cmp eax, 0
jz short loc_9B106
jmp loc_9B2B1
loc_9B106:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
cmp rax, [rcx+398h]
jz short loc_9B178
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
sub rax, [rcx+398h]
mov [rbp+var_34], eax
lea rdi, [rbp+var_10]
mov eax, [rbp+var_34]
mov edx, eax
xor esi, esi
call _memset
mov rdi, [rbp+var_20]
add rdi, 4B8h
lea rsi, [rbp+var_10]
mov eax, [rbp+var_34]
mov edx, eax
call my_b_write_0
cmp eax, 0
jz short loc_9B176
jmp loc_9B2B1
loc_9B176:
jmp short $+2
loc_9B178:
jmp loc_9B274
loc_9B17D:
mov rax, [rbp+var_20]
mov dword ptr [rax+598h], 1
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
mov rsi, [rbp+var_28]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
mov rdx, [rcx+398h]
mov rcx, [rbp+var_20]
mov rcx, [rcx+20h]
mov rcx, [rcx+28h]
mov r8, [rbp+var_20]
mov r8, [r8]
mov r8, [r8+7C8h]
call rax
cmp rax, 0
jz short loc_9B1D6
jmp loc_9B2B1
loc_9B1D6:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
cmp rax, [rcx+398h]
jz short loc_9B272
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+3A0h]
mov rcx, [rbp+var_20]
mov rcx, [rcx]
sub rax, [rcx+398h]
mov [rbp+var_38], eax
lea rdi, [rbp+var_10]
mov eax, [rbp+var_38]
mov edx, eax
xor esi, esi
call _memset
mov rax, [rbp+var_20]
mov rax, [rax]
mov rax, [rax+6E8h]
mov rdi, [rbp+var_20]
lea rsi, [rbp+var_10]
mov ecx, [rbp+var_38]
mov edx, ecx
mov rcx, [rbp+var_20]
mov rcx, [rcx+20h]
mov rcx, [rcx+28h]
mov r8, [rbp+var_20]
mov r8, [r8]
add rcx, [r8+398h]
mov r8, [rbp+var_20]
mov r8, [r8]
mov r8, [r8+7C8h]
call rax
cmp rax, 0
jz short loc_9B270
jmp short loc_9B2B1
loc_9B270:
jmp short $+2
loc_9B272:
jmp short $+2
loc_9B274:
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rax+3A0h]
mov rax, [rbp+var_20]
mov rax, [rax+20h]
add rcx, [rax+28h]
mov [rax+28h], rcx
mov rax, [rbp+var_20]
mov rax, [rax]
mov rcx, [rax+0C0h]
add rcx, 1
mov [rax+0C0h], rcx
loc_9B2AB:
mov [rbp+var_11], 0
jmp short loc_9B2B5
loc_9B2B1:
mov [rbp+var_11], 1
loc_9B2B5:
mov al, [rbp+var_11]
mov [rbp+var_39], al
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_9B2D6
mov al, [rbp+var_39]
add rsp, 40h
pop rbp
retn
loc_9B2D6:
call ___stack_chk_fail
| char ma_write_static_record(_DWORD *a1, const char *a2)
{
long long v2; // rdx
unsigned int v4; // [rsp+8h] [rbp-38h]
unsigned int v5; // [rsp+Ch] [rbp-34h]
long long v6; // [rsp+10h] [rbp-30h]
unsigned int v8; // [rsp+30h] [rbp-10h] BYREF
unsigned long long v9; // [rsp+38h] [rbp-8h]
v9 = __readfsqword(0x28u);
if ( *(_QWORD *)(*(_QWORD *)a1 + 200LL) != -1LL && !*((_BYTE *)a1 + 1665) )
{
v6 = *(_QWORD *)(*(_QWORD *)a1 + 200LL);
a1[358] = 1;
if ( !(*(long long ( **)(_DWORD *, unsigned int *, _QWORD, long long, long long))(*(_QWORD *)a1 + 1760LL))(
a1,
&v8,
*(unsigned int *)(*(_QWORD *)a1 + 992LL),
*(_QWORD *)(*(_QWORD *)a1 + 200LL) + 1LL,
4LL) )
{
*(_QWORD *)(*(_QWORD *)a1 + 200LL) = ma_rec_pos(*(_QWORD *)a1, &v8, v2);
--*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL);
*(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) -= *(_QWORD *)(*(_QWORD *)a1 + 928LL);
if ( !(*(long long ( **)(_DWORD *, const char *, _QWORD, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
a2,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
v6,
4LL) )
return 0;
}
return 1;
}
if ( *(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) <= *(_QWORD *)(*(_QWORD *)a1 + 872LL)
- *(_QWORD *)(*(_QWORD *)a1 + 928LL) )
{
if ( (a1[391] & 0x10) != 0 )
{
if ( (unsigned int)my_b_write_0(a1 + 302, a2, *(_QWORD *)(*(_QWORD *)a1 + 920LL)) )
return 1;
if ( *(_QWORD *)(*(_QWORD *)a1 + 928LL) != *(_QWORD *)(*(_QWORD *)a1 + 920LL) )
{
v5 = *(_DWORD *)(*(_QWORD *)a1 + 928LL) - *(_DWORD *)(*(_QWORD *)a1 + 920LL);
memset(&v8, 0LL, v5);
if ( (unsigned int)my_b_write_0(a1 + 302, &v8, v5) )
return 1;
}
}
else
{
a1[358] = 1;
if ( (*(long long ( **)(_DWORD *, const char *, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a1 + 1768LL))(
a1,
a2,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL),
*(_QWORD *)(*(_QWORD *)a1 + 1992LL)) )
{
return 1;
}
if ( *(_QWORD *)(*(_QWORD *)a1 + 928LL) != *(_QWORD *)(*(_QWORD *)a1 + 920LL) )
{
v4 = *(_DWORD *)(*(_QWORD *)a1 + 928LL) - *(_DWORD *)(*(_QWORD *)a1 + 920LL);
memset(&v8, 0LL, v4);
if ( (*(long long ( **)(_DWORD *, unsigned int *, _QWORD, _QWORD, _QWORD))(*(_QWORD *)a1 + 1768LL))(
a1,
&v8,
v4,
*(_QWORD *)(*(_QWORD *)a1 + 920LL) + *(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL),
*(_QWORD *)(*(_QWORD *)a1 + 1992LL)) )
{
return 1;
}
}
}
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) += *(_QWORD *)(*(_QWORD *)a1 + 928LL);
++*(_QWORD *)(*(_QWORD *)a1 + 192LL);
return 0;
}
*(_DWORD *)my_thread_var(a1, a2) = 135;
return 2;
}
| _ma_write_static_record:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x20],RDI
MOV qword ptr [RBP + -0x28],RSI
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
CMP qword ptr [RAX + 0xc8],-0x1
JZ 0x0019b083
MOV RAX,qword ptr [RBP + -0x20]
CMP byte ptr [RAX + 0x681],0x0
JNZ 0x0019b083
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xc8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e0]
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV ECX,dword ptr [RCX + 0x3e0]
MOV EDX,ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0xc8]
ADD RCX,0x1
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x0019afed
JMP 0x0019b2b1
LAB_0019afed:
MOV RAX,qword ptr [RBP + -0x20]
MOV RDI,qword ptr [RAX]
LEA RSI,[RBP + -0x10]
CALL 0x00195b60
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0xc8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x8]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x3a0]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,RDX
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x30]
MOV R8D,0x4
CALL RAX
CMP RAX,0x0
JZ 0x0019b07e
JMP 0x0019b2b1
LAB_0019b07e:
JMP 0x0019b2ab
LAB_0019b083:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
MOV RAX,qword ptr [RAX + 0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RCX,qword ptr [RCX + 0x368]
MOV RDX,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RDX]
SUB RCX,qword ptr [RDX + 0x3a0]
CMP RAX,RCX
JBE 0x0019b0c4
CALL 0x001f6080
MOV dword ptr [RAX],0x87
MOV byte ptr [RBP + -0x11],0x2
JMP 0x0019b2b5
LAB_0019b0c4:
MOV RAX,qword ptr [RBP + -0x20]
MOV EAX,dword ptr [RAX + 0x61c]
AND EAX,0x10
CMP EAX,0x0
JZ 0x0019b17d
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x4b8
MOV RSI,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x398]
CALL 0x0019b2e0
CMP EAX,0x0
JZ 0x0019b106
JMP 0x0019b2b1
LAB_0019b106:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x398]
JZ 0x0019b178
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
SUB RAX,qword ptr [RCX + 0x398]
MOV dword ptr [RBP + -0x34],EAX
LEA RDI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x34]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2a0
MOV RDI,qword ptr [RBP + -0x20]
ADD RDI,0x4b8
LEA RSI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x34]
MOV EDX,EAX
CALL 0x0019b2e0
CMP EAX,0x0
JZ 0x0019b176
JMP 0x0019b2b1
LAB_0019b176:
JMP 0x0019b178
LAB_0019b178:
JMP 0x0019b274
LAB_0019b17d:
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x598],0x1
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
MOV RSI,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
MOV RDX,qword ptr [RCX + 0x398]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RCX + 0x28]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x7c8]
CALL RAX
CMP RAX,0x0
JZ 0x0019b1d6
JMP 0x0019b2b1
LAB_0019b1d6:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
CMP RAX,qword ptr [RCX + 0x398]
JZ 0x0019b272
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x3a0]
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX]
SUB RAX,qword ptr [RCX + 0x398]
MOV dword ptr [RBP + -0x38],EAX
LEA RDI,[RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x38]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2a0
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x6e8]
MOV RDI,qword ptr [RBP + -0x20]
LEA RSI,[RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x38]
MOV EDX,ECX
MOV RCX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RCX + 0x20]
MOV RCX,qword ptr [RCX + 0x28]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
ADD RCX,qword ptr [R8 + 0x398]
MOV R8,qword ptr [RBP + -0x20]
MOV R8,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x7c8]
CALL RAX
CMP RAX,0x0
JZ 0x0019b270
JMP 0x0019b2b1
LAB_0019b270:
JMP 0x0019b272
LAB_0019b272:
JMP 0x0019b274
LAB_0019b274:
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0x3a0]
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + 0x20]
ADD RCX,qword ptr [RAX + 0x28]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV RCX,qword ptr [RAX + 0xc0]
ADD RCX,0x1
MOV qword ptr [RAX + 0xc0],RCX
LAB_0019b2ab:
MOV byte ptr [RBP + -0x11],0x0
JMP 0x0019b2b5
LAB_0019b2b1:
MOV byte ptr [RBP + -0x11],0x1
LAB_0019b2b5:
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x39],AL
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x0019b2d6
MOV AL,byte ptr [RBP + -0x39]
ADD RSP,0x40
POP RBP
RET
LAB_0019b2d6:
CALL 0x0012a250
|
int8 _ma_write_static_record(long *param_1,int8 param_2)
{
int8 uVar1;
int iVar2;
uint uVar3;
long lVar4;
int8 uVar5;
int4 *puVar6;
long in_FS_OFFSET;
int1 local_19;
int1 local_18 [8];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) {
if ((ulong)(*(long *)(*param_1 + 0x368) - *(long *)(*param_1 + 0x3a0)) <
*(ulong *)(param_1[4] + 0x28)) {
puVar6 = (int4 *)_my_thread_var();
*puVar6 = 0x87;
local_19 = 2;
goto LAB_0019b2b5;
}
if ((*(uint *)((long)param_1 + 0x61c) & 0x10) == 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),
*(int8 *)(param_1[4] + 0x28),*(int8 *)(*param_1 + 0x7c8));
if (lVar4 == 0) {
if (*(long *)(*param_1 + 0x3a0) != *(long *)(*param_1 + 0x398)) {
uVar3 = (int)*(int8 *)(*param_1 + 0x3a0) - (int)*(int8 *)(*param_1 + 0x398);
memset(local_18,0,(ulong)uVar3);
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,local_18,uVar3,
*(long *)(param_1[4] + 0x28) + *(long *)(*param_1 + 0x398),
*(int8 *)(*param_1 + 0x7c8));
if (lVar4 != 0) goto LAB_0019b2b1;
}
goto LAB_0019b274;
}
}
else {
iVar2 = my_b_write(param_1 + 0x97,param_2,*(int8 *)(*param_1 + 0x398));
if (iVar2 == 0) {
if (*(long *)(*param_1 + 0x3a0) != *(long *)(*param_1 + 0x398)) {
uVar3 = (int)*(int8 *)(*param_1 + 0x3a0) - (int)*(int8 *)(*param_1 + 0x398);
memset(local_18,0,(ulong)uVar3);
iVar2 = my_b_write(param_1 + 0x97,local_18,uVar3);
if (iVar2 != 0) goto LAB_0019b2b1;
}
LAB_0019b274:
*(long *)(param_1[4] + 0x28) = *(long *)(*param_1 + 0x3a0) + *(long *)(param_1[4] + 0x28);
*(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1;
goto LAB_0019b2ab;
}
}
}
else {
uVar1 = *(int8 *)(*param_1 + 200);
*(int4 *)(param_1 + 0xb3) = 1;
lVar4 = (**(code **)(*param_1 + 0x6e0))
(param_1,local_18,*(int4 *)(*param_1 + 0x3e0),
*(long *)(*param_1 + 200) + 1,4);
if (lVar4 == 0) {
uVar5 = _ma_rec_pos(*param_1,local_18);
*(int8 *)(*param_1 + 200) = uVar5;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - *(long *)(*param_1 + 0x3a0);
lVar4 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),uVar1,4);
if (lVar4 == 0) {
LAB_0019b2ab:
local_19 = 0;
goto LAB_0019b2b5;
}
}
}
LAB_0019b2b1:
local_19 = 1;
LAB_0019b2b5:
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),local_19);
}
| |
52,288 | ma_write_static_record | eloqsql/storage/maria/ma_statrec.c | my_bool _ma_write_static_record(MARIA_HA *info, const uchar *record)
{
uchar temp[8]; /* max pointer length */
if (info->s->state.dellink != HA_OFFSET_ERROR &&
!info->append_insert_at_end)
{
my_off_t filepos=info->s->state.dellink;
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_read(info, &temp[0],info->s->base.rec_reflength,
info->s->state.dellink+1,
MYF(MY_NABP)))
goto err;
info->s->state.dellink= _ma_rec_pos(info->s, temp);
info->state->del--;
info->state->empty-=info->s->base.pack_reclength;
if (info->s->file_write(info, record, info->s->base.reclength,
filepos, MYF(MY_NABP)))
goto err;
}
else
{
if (info->state->data_file_length > info->s->base.max_data_file_length-
info->s->base.pack_reclength)
{
my_errno=HA_ERR_RECORD_FILE_FULL;
return(2);
}
if (info->opt_flag & WRITE_CACHE_USED)
{ /* Cash in use */
if (my_b_write(&info->rec_cache, record,
info->s->base.reclength))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (my_b_write(&info->rec_cache, temp,length))
goto err;
}
}
else
{
info->rec_cache.seek_not_done=1; /* We have done a seek */
if (info->s->file_write(info, record, info->s->base.reclength,
info->state->data_file_length,
info->s->write_flag))
goto err;
if (info->s->base.pack_reclength != info->s->base.reclength)
{
uint length=info->s->base.pack_reclength - info->s->base.reclength;
bzero(temp,length);
if (info->s->file_write(info, temp,length,
info->state->data_file_length+
info->s->base.reclength,
info->s->write_flag))
goto err;
}
}
info->state->data_file_length+=info->s->base.pack_reclength;
info->s->state.split++;
}
return 0;
err:
return 1;
} | O3 | c | ma_write_static_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq (%rdi), %rax
movq 0xc8(%rax), %r15
cmpq $-0x1, %r15
je 0x6feed
cmpb $0x0, 0x681(%rbx)
je 0x6ffc0
movq 0x20(%rbx), %rcx
movq 0x368(%rax), %rdx
subq 0x3a0(%rax), %rdx
cmpq %rdx, 0x28(%rcx)
jbe 0x6ff18
callq 0xa1b26
movl $0x87, (%rax)
movb $0x2, %r14b
jmp 0x70135
testb $0x10, 0x61c(%rbx)
jne 0x70052
movl $0x1, 0x598(%rbx)
movq 0x398(%rax), %rdx
movq 0x28(%rcx), %rcx
movq 0x7c8(%rax), %r8
movq %rbx, %rdi
movq %r14, %rsi
callq *0x6e8(%rax)
movb $0x1, %r14b
testq %rax, %rax
jne 0x70135
movq (%rbx), %r13
movq 0x398(%r13), %rax
movq 0x3a0(%r13), %r15
cmpq %rax, %r15
je 0x70116
subl %eax, %r15d
leaq -0x38(%rbp), %r12
movl $0x8, %ecx
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x297d0
movq 0x20(%rbx), %rax
movq 0x398(%r13), %rcx
addq 0x28(%rax), %rcx
movq 0x7c8(%r13), %r8
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0x6e8(%r13)
testq %rax, %rax
jne 0x70135
jmp 0x70116
movl $0x1, 0x598(%rbx)
movl 0x3e0(%rax), %edx
movq 0xc8(%rax), %rcx
incq %rcx
leaq -0x38(%rbp), %rsi
movl $0x4, %r8d
movq %rbx, %rdi
callq *0x6e0(%rax)
testq %rax, %rax
jne 0x7004a
movq (%rbx), %rdi
leaq -0x38(%rbp), %rsi
callq 0x6d41d
movq (%rbx), %rcx
movq %rax, 0xc8(%rcx)
movq 0x20(%rbx), %rax
decq 0x8(%rax)
movq (%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x3a0(%rax), %rax
subq %rax, 0x10(%rcx)
movq (%rbx), %rax
movq 0x398(%rax), %rdx
movl $0x4, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq *0x6e8(%rax)
testq %rax, %rax
je 0x70132
movb $0x1, %r14b
jmp 0x70135
leaq 0x4b8(%rbx), %r15
movq 0x398(%rax), %r12
movq 0x4f8(%rbx), %rdi
leaq (%rdi,%r12), %rax
cmpq 0x500(%rbx), %rax
jbe 0x7008f
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x95683
movb $0x1, %r14b
testl %eax, %eax
jne 0x70135
jmp 0x700a6
testq %r12, %r12
je 0x700a6
movq %r14, %rsi
movq %r12, %rdx
callq 0x29080
addq %r12, 0x4f8(%rbx)
movq (%rbx), %rcx
movq 0x398(%rcx), %rax
movq 0x3a0(%rcx), %r14
cmpq %rax, %r14
je 0x70116
subl %eax, %r14d
leaq -0x38(%rbp), %rdi
movl $0x8, %ecx
xorl %esi, %esi
movq %r14, %rdx
callq 0x297d0
movq 0x4f8(%rbx), %rdi
leaq (%rdi,%r14), %rax
cmpq 0x500(%rbx), %rax
jbe 0x700fe
leaq -0x38(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x95683
movb $0x1, %r14b
testl %eax, %eax
jne 0x70135
jmp 0x70116
testq %r14, %r14
je 0x70116
leaq -0x38(%rbp), %rsi
movq %r14, %rdx
callq 0x29080
addq %r14, 0x4f8(%rbx)
movq (%rbx), %rax
movq 0x20(%rbx), %rcx
movq 0x3a0(%rax), %rax
addq %rax, 0x28(%rcx)
movq (%rbx), %rax
incq 0xc0(%rax)
xorl %r14d, %r14d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x70156
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x29250
| _ma_write_static_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi]
mov r15, [rax+0C8h]
cmp r15, 0FFFFFFFFFFFFFFFFh
jz short loc_6FEED
cmp byte ptr [rbx+681h], 0
jz loc_6FFC0
loc_6FEED:
mov rcx, [rbx+20h]
mov rdx, [rax+368h]
sub rdx, [rax+3A0h]
cmp [rcx+28h], rdx
jbe short loc_6FF18
call _my_thread_var
mov dword ptr [rax], 87h
mov r14b, 2
jmp loc_70135
loc_6FF18:
test byte ptr [rbx+61Ch], 10h
jnz loc_70052
mov dword ptr [rbx+598h], 1
mov rdx, [rax+398h]
mov rcx, [rcx+28h]
mov r8, [rax+7C8h]
mov rdi, rbx
mov rsi, r14
call qword ptr [rax+6E8h]
mov r14b, 1
test rax, rax
jnz loc_70135
mov r13, [rbx]
mov rax, [r13+398h]
mov r15, [r13+3A0h]
cmp r15, rax
jz loc_70116
sub r15d, eax
lea r12, [rbp+var_38]
mov ecx, 8
mov rdi, r12
xor esi, esi
mov rdx, r15
call ___memset_chk
mov rax, [rbx+20h]
mov rcx, [r13+398h]
add rcx, [rax+28h]
mov r8, [r13+7C8h]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call qword ptr [r13+6E8h]
test rax, rax
jnz loc_70135
jmp loc_70116
loc_6FFC0:
mov dword ptr [rbx+598h], 1
mov edx, [rax+3E0h]
mov rcx, [rax+0C8h]
inc rcx
lea rsi, [rbp+var_38]
mov r8d, 4
mov rdi, rbx
call qword ptr [rax+6E0h]
test rax, rax
jnz short loc_7004A
mov rdi, [rbx]
lea rsi, [rbp+var_38]
call _ma_rec_pos
mov rcx, [rbx]
mov [rcx+0C8h], rax
mov rax, [rbx+20h]
dec qword ptr [rax+8]
mov rax, [rbx]
mov rcx, [rbx+20h]
mov rax, [rax+3A0h]
sub [rcx+10h], rax
mov rax, [rbx]
mov rdx, [rax+398h]
mov r8d, 4
mov rdi, rbx
mov rsi, r14
mov rcx, r15
call qword ptr [rax+6E8h]
test rax, rax
jz loc_70132
loc_7004A:
mov r14b, 1
jmp loc_70135
loc_70052:
lea r15, [rbx+4B8h]
mov r12, [rax+398h]
mov rdi, [rbx+4F8h]
lea rax, [rdi+r12]
cmp rax, [rbx+500h]
jbe short loc_7008F
mov rdi, r15
mov rsi, r14
mov rdx, r12
call _my_b_write
mov r14b, 1
test eax, eax
jnz loc_70135
jmp short loc_700A6
loc_7008F:
test r12, r12
jz short loc_700A6
mov rsi, r14
mov rdx, r12
call _memcpy
add [rbx+4F8h], r12
loc_700A6:
mov rcx, [rbx]
mov rax, [rcx+398h]
mov r14, [rcx+3A0h]
cmp r14, rax
jz short loc_70116
sub r14d, eax
lea rdi, [rbp+var_38]
mov ecx, 8
xor esi, esi
mov rdx, r14
call ___memset_chk
mov rdi, [rbx+4F8h]
lea rax, [rdi+r14]
cmp rax, [rbx+500h]
jbe short loc_700FE
lea rsi, [rbp+var_38]
mov rdi, r15
mov rdx, r14
call _my_b_write
mov r14b, 1
test eax, eax
jnz short loc_70135
jmp short loc_70116
loc_700FE:
test r14, r14
jz short loc_70116
lea rsi, [rbp+var_38]
mov rdx, r14
call _memcpy
add [rbx+4F8h], r14
loc_70116:
mov rax, [rbx]
mov rcx, [rbx+20h]
mov rax, [rax+3A0h]
add [rcx+28h], rax
mov rax, [rbx]
inc qword ptr [rax+0C0h]
loc_70132:
xor r14d, r14d
loc_70135:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_70156
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_70156:
call ___stack_chk_fail
| long long ma_write_static_record(_DWORD *a1, long long a2)
{
long long v2; // r14
long long v4; // rax
long long v5; // r15
long long v6; // rcx
long long v7; // r13
long long v8; // rax
long long v9; // r15
long long v10; // r15
long long v11; // rdx
long long v12; // r12
long long v13; // rdi
long long v14; // rax
long long v15; // r14
long long v16; // rdi
int v17; // eax
__int16 v19; // [rsp+8h] [rbp-38h] BYREF
unsigned long long v20; // [rsp+10h] [rbp-30h]
LODWORD(v2) = a2;
v20 = __readfsqword(0x28u);
v4 = *(_QWORD *)a1;
v5 = *(_QWORD *)(*(_QWORD *)a1 + 200LL);
if ( v5 != -1 && !*((_BYTE *)a1 + 1665) )
{
a1[358] = 1;
if ( (*(long long ( **)(_DWORD *, __int16 *, _QWORD, long long, long long))(v4 + 1760))(
a1,
&v19,
*(unsigned int *)(v4 + 992),
*(_QWORD *)(v4 + 200) + 1LL,
4LL)
|| (*(_QWORD *)(*(_QWORD *)a1 + 200LL) = ma_rec_pos(*(_QWORD *)a1, &v19, v11),
--*(_QWORD *)(*((_QWORD *)a1 + 4) + 8LL),
*(_QWORD *)(*((_QWORD *)a1 + 4) + 16LL) -= *(_QWORD *)(*(_QWORD *)a1 + 928LL),
(*(long long ( **)(_DWORD *, long long, _QWORD, long long, long long))(*(_QWORD *)a1 + 1768LL))(
a1,
a2,
*(_QWORD *)(*(_QWORD *)a1 + 920LL),
v5,
4LL)) )
{
LOBYTE(v2) = 1;
return (unsigned int)v2;
}
LABEL_25:
LODWORD(v2) = 0;
return (unsigned int)v2;
}
v6 = *((_QWORD *)a1 + 4);
if ( *(_QWORD *)(v6 + 40) > *(_QWORD *)(v4 + 872) - *(_QWORD *)(v4 + 928) )
{
*(_DWORD *)my_thread_var(a1) = 135;
LOBYTE(v2) = 2;
return (unsigned int)v2;
}
if ( (a1[391] & 0x10) != 0 )
{
v12 = *(_QWORD *)(v4 + 920);
v13 = *((_QWORD *)a1 + 159);
if ( (unsigned long long)(v13 + v12) <= *((_QWORD *)a1 + 160) )
{
if ( v12 )
{
memcpy(v13, a2, v12);
*((_QWORD *)a1 + 159) += v12;
}
}
else
{
LOBYTE(v2) = 1;
if ( (unsigned int)my_b_write(a1 + 302, a2, v12) )
return (unsigned int)v2;
}
v14 = *(_QWORD *)(*(_QWORD *)a1 + 920LL);
v15 = *(_QWORD *)(*(_QWORD *)a1 + 928LL);
if ( v15 != v14 )
{
v2 = (unsigned int)(v15 - v14);
__memset_chk(&v19, 0LL, v2, 8LL);
v16 = *((_QWORD *)a1 + 159);
if ( (unsigned long long)(v16 + v2) <= *((_QWORD *)a1 + 160) )
{
if ( v2 )
{
memcpy(v16, &v19, v2);
*((_QWORD *)a1 + 159) += v2;
}
}
else
{
v17 = my_b_write(a1 + 302, &v19, v2);
LOBYTE(v2) = 1;
if ( v17 )
return (unsigned int)v2;
}
}
goto LABEL_24;
}
a1[358] = 1;
LOBYTE(v2) = 1;
if ( !(*(long long ( **)(_DWORD *, long long, _QWORD, _QWORD, _QWORD))(v4 + 1768))(
a1,
a2,
*(_QWORD *)(v4 + 920),
*(_QWORD *)(v6 + 40),
*(_QWORD *)(v4 + 1992)) )
{
v7 = *(_QWORD *)a1;
v8 = *(_QWORD *)(*(_QWORD *)a1 + 920LL);
v9 = *(_QWORD *)(*(_QWORD *)a1 + 928LL);
if ( v9 == v8
|| (v10 = (unsigned int)(v9 - v8),
__memset_chk(&v19, 0LL, v10, 8LL),
!(*(long long ( **)(_DWORD *, __int16 *, long long, _QWORD, _QWORD))(v7 + 1768))(
a1,
&v19,
v10,
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) + *(_QWORD *)(v7 + 920),
*(_QWORD *)(v7 + 1992))) )
{
LABEL_24:
*(_QWORD *)(*((_QWORD *)a1 + 4) + 40LL) += *(_QWORD *)(*(_QWORD *)a1 + 928LL);
++*(_QWORD *)(*(_QWORD *)a1 + 192LL);
goto LABEL_25;
}
}
return (unsigned int)v2;
}
| _ma_write_static_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI]
MOV R15,qword ptr [RAX + 0xc8]
CMP R15,-0x1
JZ 0x0016feed
CMP byte ptr [RBX + 0x681],0x0
JZ 0x0016ffc0
LAB_0016feed:
MOV RCX,qword ptr [RBX + 0x20]
MOV RDX,qword ptr [RAX + 0x368]
SUB RDX,qword ptr [RAX + 0x3a0]
CMP qword ptr [RCX + 0x28],RDX
JBE 0x0016ff18
CALL 0x001a1b26
MOV dword ptr [RAX],0x87
MOV R14B,0x2
JMP 0x00170135
LAB_0016ff18:
TEST byte ptr [RBX + 0x61c],0x10
JNZ 0x00170052
MOV dword ptr [RBX + 0x598],0x1
MOV RDX,qword ptr [RAX + 0x398]
MOV RCX,qword ptr [RCX + 0x28]
MOV R8,qword ptr [RAX + 0x7c8]
MOV RDI,RBX
MOV RSI,R14
CALL qword ptr [RAX + 0x6e8]
MOV R14B,0x1
TEST RAX,RAX
JNZ 0x00170135
MOV R13,qword ptr [RBX]
MOV RAX,qword ptr [R13 + 0x398]
MOV R15,qword ptr [R13 + 0x3a0]
CMP R15,RAX
JZ 0x00170116
SUB R15D,EAX
LEA R12,[RBP + -0x38]
MOV ECX,0x8
MOV RDI,R12
XOR ESI,ESI
MOV RDX,R15
CALL 0x001297d0
MOV RAX,qword ptr [RBX + 0x20]
MOV RCX,qword ptr [R13 + 0x398]
ADD RCX,qword ptr [RAX + 0x28]
MOV R8,qword ptr [R13 + 0x7c8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL qword ptr [R13 + 0x6e8]
TEST RAX,RAX
JNZ 0x00170135
JMP 0x00170116
LAB_0016ffc0:
MOV dword ptr [RBX + 0x598],0x1
MOV EDX,dword ptr [RAX + 0x3e0]
MOV RCX,qword ptr [RAX + 0xc8]
INC RCX
LEA RSI,[RBP + -0x38]
MOV R8D,0x4
MOV RDI,RBX
CALL qword ptr [RAX + 0x6e0]
TEST RAX,RAX
JNZ 0x0017004a
MOV RDI,qword ptr [RBX]
LEA RSI,[RBP + -0x38]
CALL 0x0016d41d
MOV RCX,qword ptr [RBX]
MOV qword ptr [RCX + 0xc8],RAX
MOV RAX,qword ptr [RBX + 0x20]
DEC qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RAX + 0x3a0]
SUB qword ptr [RCX + 0x10],RAX
MOV RAX,qword ptr [RBX]
MOV RDX,qword ptr [RAX + 0x398]
MOV R8D,0x4
MOV RDI,RBX
MOV RSI,R14
MOV RCX,R15
CALL qword ptr [RAX + 0x6e8]
TEST RAX,RAX
JZ 0x00170132
LAB_0017004a:
MOV R14B,0x1
JMP 0x00170135
LAB_00170052:
LEA R15,[RBX + 0x4b8]
MOV R12,qword ptr [RAX + 0x398]
MOV RDI,qword ptr [RBX + 0x4f8]
LEA RAX,[RDI + R12*0x1]
CMP RAX,qword ptr [RBX + 0x500]
JBE 0x0017008f
MOV RDI,R15
MOV RSI,R14
MOV RDX,R12
CALL 0x00195683
MOV R14B,0x1
TEST EAX,EAX
JNZ 0x00170135
JMP 0x001700a6
LAB_0017008f:
TEST R12,R12
JZ 0x001700a6
MOV RSI,R14
MOV RDX,R12
CALL 0x00129080
ADD qword ptr [RBX + 0x4f8],R12
LAB_001700a6:
MOV RCX,qword ptr [RBX]
MOV RAX,qword ptr [RCX + 0x398]
MOV R14,qword ptr [RCX + 0x3a0]
CMP R14,RAX
JZ 0x00170116
SUB R14D,EAX
LEA RDI,[RBP + -0x38]
MOV ECX,0x8
XOR ESI,ESI
MOV RDX,R14
CALL 0x001297d0
MOV RDI,qword ptr [RBX + 0x4f8]
LEA RAX,[RDI + R14*0x1]
CMP RAX,qword ptr [RBX + 0x500]
JBE 0x001700fe
LEA RSI,[RBP + -0x38]
MOV RDI,R15
MOV RDX,R14
CALL 0x00195683
MOV R14B,0x1
TEST EAX,EAX
JNZ 0x00170135
JMP 0x00170116
LAB_001700fe:
TEST R14,R14
JZ 0x00170116
LEA RSI,[RBP + -0x38]
MOV RDX,R14
CALL 0x00129080
ADD qword ptr [RBX + 0x4f8],R14
LAB_00170116:
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RBX + 0x20]
MOV RAX,qword ptr [RAX + 0x3a0]
ADD qword ptr [RCX + 0x28],RAX
MOV RAX,qword ptr [RBX]
INC qword ptr [RAX + 0xc0]
LAB_00170132:
XOR R14D,R14D
LAB_00170135:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00170156
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00170156:
CALL 0x00129250
|
ulong _ma_write_static_record(long *param_1,void *param_2)
{
long lVar1;
size_t __n;
int4 *puVar2;
long lVar3;
int8 uVar4;
uint uVar5;
int7 uVar7;
ulong uVar6;
int iVar8;
long in_FS_OFFSET;
int1 local_40 [8];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar3 = *param_1;
lVar1 = *(long *)(lVar3 + 200);
uVar7 = (int7)((ulong)param_2 >> 8);
if ((lVar1 == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) {
if ((ulong)(*(long *)(lVar3 + 0x368) - *(long *)(lVar3 + 0x3a0)) < *(ulong *)(param_1[4] + 0x28)
) {
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x87;
uVar6 = CONCAT71(uVar7,2);
goto LAB_00170135;
}
if ((*(byte *)((long)param_1 + 0x61c) & 0x10) == 0) {
*(int4 *)(param_1 + 0xb3) = 1;
lVar3 = (**(code **)(lVar3 + 0x6e8))
(param_1,param_2,*(int8 *)(lVar3 + 0x398),
*(int8 *)(param_1[4] + 0x28),*(int8 *)(lVar3 + 0x7c8));
uVar6 = CONCAT71(uVar7,1);
if (lVar3 != 0) goto LAB_00170135;
lVar3 = *param_1;
if (*(long *)(lVar3 + 0x3a0) != *(long *)(lVar3 + 0x398)) {
iVar8 = (int)*(long *)(lVar3 + 0x3a0) - (int)*(long *)(lVar3 + 0x398);
__memset_chk(local_40,0,iVar8,8);
lVar3 = (**(code **)(lVar3 + 0x6e8))
(param_1,local_40,iVar8,
*(long *)(lVar3 + 0x398) + *(long *)(param_1[4] + 0x28),
*(int8 *)(lVar3 + 0x7c8));
if (lVar3 != 0) goto LAB_00170135;
}
}
else {
__n = *(size_t *)(lVar3 + 0x398);
if ((ulong)param_1[0xa0] < param_1[0x9f] + __n) {
iVar8 = _my_b_write(param_1 + 0x97,param_2,__n);
uVar6 = CONCAT71(uVar7,1);
if (iVar8 != 0) goto LAB_00170135;
}
else if (__n != 0) {
memcpy((void *)param_1[0x9f],param_2,__n);
param_1[0x9f] = param_1[0x9f] + __n;
}
lVar3 = *(long *)(*param_1 + 0x398);
lVar1 = *(long *)(*param_1 + 0x3a0);
if (lVar1 != lVar3) {
uVar5 = (int)lVar1 - (int)lVar3;
uVar6 = (ulong)uVar5;
__memset_chk(local_40,0,uVar6,8);
if ((ulong)param_1[0xa0] < param_1[0x9f] + uVar6) {
iVar8 = _my_b_write(param_1 + 0x97,local_40,uVar6);
uVar6 = CONCAT71((uint7)(uint3)(uVar5 >> 8),1);
if (iVar8 != 0) goto LAB_00170135;
}
else if (uVar6 != 0) {
memcpy((void *)param_1[0x9f],local_40,uVar6);
param_1[0x9f] = param_1[0x9f] + uVar6;
}
}
}
*(long *)(param_1[4] + 0x28) = *(long *)(param_1[4] + 0x28) + *(long *)(*param_1 + 0x3a0);
*(long *)(*param_1 + 0xc0) = *(long *)(*param_1 + 0xc0) + 1;
LAB_00170132:
uVar6 = 0;
}
else {
*(int4 *)(param_1 + 0xb3) = 1;
lVar3 = (**(code **)(lVar3 + 0x6e0))
(param_1,local_40,*(int4 *)(lVar3 + 0x3e0),*(long *)(lVar3 + 200) + 1,4)
;
if (lVar3 == 0) {
uVar4 = _ma_rec_pos(*param_1,local_40);
*(int8 *)(*param_1 + 200) = uVar4;
*(long *)(param_1[4] + 8) = *(long *)(param_1[4] + 8) + -1;
*(long *)(param_1[4] + 0x10) = *(long *)(param_1[4] + 0x10) - *(long *)(*param_1 + 0x3a0);
lVar3 = (**(code **)(*param_1 + 0x6e8))
(param_1,param_2,*(int8 *)(*param_1 + 0x398),lVar1,4);
if (lVar3 == 0) goto LAB_00170132;
}
uVar6 = CONCAT71(uVar7,1);
}
LAB_00170135:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar6 & 0xffffffff;
}
| |
52,289 | nglog::tools::GetHex(char const*, char const*, unsigned long*) | ng-log[P]ng-log/src/symbolize.cc | static char* GetHex(const char* start, const char* end, uint64_t* hex) {
*hex = 0;
const char* p;
for (p = start; p < end; ++p) {
int ch = *p;
if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'F') ||
(ch >= 'a' && ch <= 'f')) {
*hex = (*hex << 4U) |
(ch < 'A' ? static_cast<uint64_t>(ch - '0') : (ch & 0xF) + 9U);
} else { // Encountered the first non-hex character.
break;
}
}
NGLOG_SAFE_ASSERT(p <= end);
return const_cast<char*>(p);
} | O2 | cpp | nglog::tools::GetHex(char const*, char const*, unsigned long*):
pushq %rax
andq $0x0, (%rdx)
xorl %eax, %eax
movabsq $0x3f0000003f, %rcx # imm = 0x3F0000003F
cmpq %rsi, %rdi
jae 0x1e092
movb (%rdi), %r8b
leal -0x30(%r8), %r9d
cmpb $0xa, %r9b
jb 0x1e068
movzbl %r8b, %r9d
addl $-0x41, %r9d
cmpl $0x25, %r9d
ja 0x1e092
btq %r9, %rcx
jae 0x1e092
movsbl %r8b, %r9d
shlq $0x4, %rax
leal -0x30(%r9), %r10d
andl $0xf, %r9d
addl $0x9, %r9d
cmpb $0x41, %r8b
movslq %r10d, %r8
cmovbq %r8, %r9
orq %r9, %rax
movq %rax, (%rdx)
incq %rdi
jmp 0x1e042
cmpq %rsi, %rdi
ja 0x1e09c
movq %rdi, %rax
popq %rcx
retq
callq 0x7300
nop
| _ZN5nglog5toolsL6GetHexEPKcS2_Pm:
push rax
and qword ptr [rdx], 0
xor eax, eax
mov rcx, 3F0000003Fh
loc_1E042:
cmp rdi, rsi
jnb short loc_1E092
mov r8b, [rdi]
lea r9d, [r8-30h]
cmp r9b, 0Ah
jb short loc_1E068
movzx r9d, r8b
add r9d, 0FFFFFFBFh
cmp r9d, 25h ; '%'
ja short loc_1E092
bt rcx, r9
jnb short loc_1E092
loc_1E068:
movsx r9d, r8b
shl rax, 4
lea r10d, [r9-30h]
and r9d, 0Fh
add r9d, 9
cmp r8b, 41h ; 'A'
movsxd r8, r10d
cmovb r9, r8
or rax, r9
mov [rdx], rax
inc rdi
jmp short loc_1E042
loc_1E092:
cmp rdi, rsi
ja short loc_1E09C
mov rax, rdi
pop rcx
retn
loc_1E09C:
call _abort
| nglog::tools * nglog::tools::GetHex(nglog::tools *this, nglog::tools *a2, char *a3, unsigned long long *a4)
{
long long v4; // rax
long long v5; // rcx
unsigned __int8 v6; // r8
unsigned long long v7; // r9
long long v8; // rax
long long v9; // r9
*(_QWORD *)a3 = 0LL;
v4 = 0LL;
v5 = 0x3F0000003FLL;
while ( this < a2 )
{
v6 = *(_BYTE *)this;
if ( (unsigned __int8)(*(_BYTE *)this - 48) >= 0xAu )
{
v7 = (unsigned int)v6 - 65;
if ( (unsigned int)v7 > 0x25 || !_bittest64(&v5, v7) )
break;
}
v8 = 16 * v4;
v9 = ((char)v6 & 0xFu) + 9;
if ( v6 < 0x41u )
v9 = (char)v6 - 48;
v4 = v9 | v8;
*(_QWORD *)a3 = v4;
this = (nglog::tools *)((char *)this + 1);
}
if ( this > a2 )
abort(this);
return this;
}
| GetHex:
PUSH RAX
AND qword ptr [RDX],0x0
XOR EAX,EAX
MOV RCX,0x3f0000003f
LAB_0011e042:
CMP RDI,RSI
JNC 0x0011e092
MOV R8B,byte ptr [RDI]
LEA R9D,[R8 + -0x30]
CMP R9B,0xa
JC 0x0011e068
MOVZX R9D,R8B
ADD R9D,-0x41
CMP R9D,0x25
JA 0x0011e092
BT RCX,R9
JNC 0x0011e092
LAB_0011e068:
MOVSX R9D,R8B
SHL RAX,0x4
LEA R10D,[R9 + -0x30]
AND R9D,0xf
ADD R9D,0x9
CMP R8B,0x41
MOVSXD R8,R10D
CMOVC R9,R8
OR RAX,R9
MOV qword ptr [RDX],RAX
INC RDI
JMP 0x0011e042
LAB_0011e092:
CMP RDI,RSI
JA 0x0011e09c
MOV RAX,RDI
POP RCX
RET
LAB_0011e09c:
CALL 0x00107300
|
/* nglog::tools::GetHex(char const*, char const*, unsigned long*) */
byte * nglog::tools::GetHex(char *param_1,char *param_2,ulong *param_3)
{
byte bVar1;
ulong uVar2;
ulong uVar3;
*param_3 = 0;
uVar2 = 0;
while ((param_1 < param_2 &&
((bVar1 = *param_1, (byte)(bVar1 - 0x30) < 10 ||
((bVar1 - 0x41 < 0x26 && ((0x3f0000003fU >> ((ulong)(bVar1 - 0x41) & 0x3f) & 1) != 0))))))
) {
uVar3 = (ulong)(((int)(char)bVar1 & 0xfU) + 9);
if (bVar1 < 0x41) {
uVar3 = (long)(int)((int)(char)bVar1 - 0x30);
}
uVar2 = uVar2 << 4 | uVar3;
*param_3 = uVar2;
param_1 = (char *)((byte *)param_1 + 1);
}
if (param_1 <= param_2) {
return (byte *)param_1;
}
/* WARNING: Subroutine does not return */
abort();
}
| |
52,290 | bfdec_normalize_and_round | bluesky950520[P]quickjs/libbf.c | int bfdec_normalize_and_round(bfdec_t *r, limb_t prec1, bf_flags_t flags)
{
limb_t l, v;
int shift, ret;
// bfdec_print_str("bf_renorm", r);
l = r->len;
while (l > 0 && r->tab[l - 1] == 0)
l--;
if (l == 0) {
/* zero */
r->expn = BF_EXP_ZERO;
bfdec_resize(r, 0); /* cannot fail */
ret = 0;
} else {
r->expn -= (r->len - l) * LIMB_DIGITS;
/* shift to have the MSB set to '1' */
v = r->tab[l - 1];
shift = clz_dec(v);
if (shift != 0) {
mp_shl_dec(r->tab, r->tab, l, shift, 0);
r->expn -= shift;
}
ret = __bfdec_round(r, prec1, flags, l);
}
// bf_print_str("r_final", r);
return ret;
} | O2 | c | bfdec_normalize_and_round:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x18(%rdi), %rcx
xorl %eax, %eax
movq %rcx, %r8
subq $0x1, %r8
jb 0x770ec
movq 0x20(%rdi), %r14
cmpq $0x0, (%r14,%r8,8)
jne 0x77112
addq $0x13, %rax
movq %r8, %rcx
jmp 0x770d2
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%rdi)
xorl %esi, %esi
callq 0x6f50f
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
subq %rax, 0x10(%rdi)
movq (%r14,%r8,8), %rax
pushq $0x13
popq %r15
movq %r15, 0x10(%rsp)
testq %rax, %rax
je 0x7725c
bsrq %rax, %r9
xorl $0x3f, %r9d
addl $-0x4, %r9d
cmpl $0x3b, %r9d
ja 0x772e1
leaq 0x126cb(%rip), %r8 # 0x89814
movslq (%r8,%r9,4), %r9
addq %r8, %r9
jmpq *%r9
pushq $0x3
jmp 0x7725a
pushq $0xc
jmp 0x7725a
pushq $0xf
jmp 0x7725a
pushq $0x9
jmp 0x7725a
pushq $0x6
jmp 0x7725a
pushq $0x12
jmp 0x7725a
pushq $0x11
jmp 0x7725a
pushq $0x10
jmp 0x7725a
pushq $0x7
jmp 0x7725a
pushq $0x8
jmp 0x7725a
pushq $0x4
jmp 0x7725a
pushq $0x2
jmp 0x7725a
pushq $0x5
jmp 0x7725a
pushq $0xb
jmp 0x7725a
pushq $0xa
jmp 0x7725a
pushq $0xe
jmp 0x7725a
pushq $0xd
jmp 0x7725a
xorl %r15d, %r15d
cmpq $0x3e8, %rax # imm = 0x3E8
adcq $0xf, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x186a0, %rax # imm = 0x186A0
adcq $0xd, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0xa, %rax
adcq $0x11, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x64, %rax
adcq $0x10, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x989680, %rax # imm = 0x989680
adcq $0xb, %r15
jmp 0x7725c
shrq $0xd, %rax
xorl %r15d, %r15d
cmpq $0x48c27395, %rax # imm = 0x48C27395
adcq $0x5, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x5f5e100, %rax # imm = 0x5F5E100
adcq $0xa, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0xf4240, %rax # imm = 0xF4240
adcq $0xc, %r15
jmp 0x7725c
movabsq $0xde0b6b3a763ffff, %r8 # imm = 0xDE0B6B3A763FFFF
cmpq %r8, %rax
ja 0x772e1
pushq $0x1
popq %r15
movq %rsi, 0x20(%rsp)
movl %edx, 0xc(%rsp)
movq %rdi, 0x28(%rsp)
subq %r15, 0x10(%rsp)
xorl %ebx, %ebx
testq %rcx, %rcx
movl $0x0, %eax
movq %rcx, 0x18(%rsp)
cmovgq %rcx, %rax
movq %rax, 0x30(%rsp)
xorl %r12d, %r12d
movq 0x10(%rsp), %rbp
cmpq %r12, 0x30(%rsp)
je 0x772ca
movq (%r14,%r12,8), %r13
movq %r13, %rdi
movl %ebp, %esi
callq 0x781dc
movq %rax, %rcx
leaq 0x12942(%rip), %rdx # 0x89bf0
imulq (%rdx,%rbp,8), %rcx
subq %rcx, %r13
imulq (%rdx,%r15,8), %r13
addq %rbx, %r13
movq %r13, (%r14,%r12,8)
incq %r12
movq %rax, %rbx
jmp 0x7728f
movq 0x28(%rsp), %rdi
subq %r15, 0x10(%rdi)
movl 0xc(%rsp), %edx
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rcx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x76cd8
xorl %r15d, %r15d
movabsq $0x16345785d8a0000, %r8 # imm = 0x16345785D8A0000
cmpq %r8, %rax
adcq $0x1, %r15
jmp 0x7725c
xorl %r15d, %r15d
movabsq $0x2386f26fc10000, %r8 # imm = 0x2386F26FC10000
cmpq %r8, %rax
adcq $0x2, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x3b9aca00, %rax # imm = 0x3B9ACA00
adcq $0x9, %r15
jmp 0x7725c
shrq $0xc, %rax
xorl %r15d, %r15d
cmpq $0xe8d4a51, %rax # imm = 0xE8D4A51
adcq $0x6, %r15
jmp 0x7725c
xorl %r15d, %r15d
movabsq $0x5af3107a4000, %r8 # imm = 0x5AF3107A4000
cmpq %r8, %rax
adcq $0x4, %r15
jmp 0x7725c
xorl %r15d, %r15d
movabsq $0x38d7ea4c68000, %r8 # imm = 0x38D7EA4C68000
cmpq %r8, %rax
adcq $0x3, %r15
jmp 0x7725c
shrq $0xb, %rax
xorl %r15d, %r15d
cmpq $0x2e90edd, %rax # imm = 0x2E90EDD
adcq $0x7, %r15
jmp 0x7725c
shrq $0xa, %rax
xorl %r15d, %r15d
cmpq $0x9502f9, %rax # imm = 0x9502F9
adcq $0x8, %r15
jmp 0x7725c
xorl %r15d, %r15d
cmpq $0x2710, %rax # imm = 0x2710
adcq $0xe, %r15
jmp 0x7725c
| bfdec_normalize_and_round:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rcx, [rdi+18h]
xor eax, eax
mov r8, rcx
loc_770D2:
sub r8, 1
jb short loc_770EC
mov r14, [rdi+20h]
cmp qword ptr [r14+r8*8], 0
jnz short loc_77112
add rax, 13h
mov rcx, r8
jmp short loc_770D2
loc_770EC:
mov rax, 8000000000000000h
mov [rdi+10h], rax
xor esi, esi
call bf_resize
xor eax, eax
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_77112:
sub [rdi+10h], rax
mov rax, [r14+r8*8]
push 13h
pop r15
mov [rsp+68h+var_58], r15
test rax, rax
jz loc_7725C
bsr r9, rax
xor r9d, 3Fh
add r9d, 0FFFFFFFCh; switch 60 cases
cmp r9d, 3Bh
ja def_77150; jumptable 0000000000077150 default case
lea r8, jpt_77150
movsxd r9, ds:(jpt_77150 - 89814h)[r8+r9*4]
add r9, r8
jmp r9; switch jump
loc_77153:
push 3; jumptable 0000000000077150 cases 11-13
jmp loc_7725A
loc_7715A:
push 0Ch; jumptable 0000000000077150 cases 41-43
jmp loc_7725A
loc_77161:
push 0Fh; jumptable 0000000000077150 cases 51-53
jmp loc_7725A
loc_77168:
push 9; jumptable 0000000000077150 cases 31-33
jmp loc_7725A
loc_7716F:
push 6; jumptable 0000000000077150 cases 21-23
jmp loc_7725A
loc_77176:
push 12h; jumptable 0000000000077150 cases 61-63
jmp loc_7725A
loc_7717D:
push 11h; jumptable 0000000000077150 cases 58,59
jmp loc_7725A
loc_77184:
push 10h; jumptable 0000000000077150 cases 55,56
jmp loc_7725A
loc_7718B:
push 7; jumptable 0000000000077150 cases 25,26
jmp loc_7725A
loc_77192:
push 8; jumptable 0000000000077150 cases 28,29
jmp loc_7725A
loc_77199:
push 4; jumptable 0000000000077150 cases 15,16
jmp loc_7725A
loc_771A0:
push 2; jumptable 0000000000077150 cases 8,9
jmp loc_7725A
loc_771A7:
push 5; jumptable 0000000000077150 cases 18,19
jmp loc_7725A
loc_771AE:
push 0Bh; jumptable 0000000000077150 cases 38,39
jmp loc_7725A
loc_771B5:
push 0Ah; jumptable 0000000000077150 cases 35,36
jmp loc_7725A
loc_771BC:
push 0Eh; jumptable 0000000000077150 cases 48,49
jmp loc_7725A
loc_771C3:
push 0Dh; jumptable 0000000000077150 cases 45,46
jmp loc_7725A
loc_771CA:
xor r15d, r15d; jumptable 0000000000077150 case 54
cmp rax, 3E8h
adc r15, 0Fh
jmp loc_7725C
loc_771DC:
xor r15d, r15d; jumptable 0000000000077150 case 47
cmp rax, offset loc_186A0
adc r15, 0Dh
jmp short loc_7725C
loc_771EB:
xor r15d, r15d; jumptable 0000000000077150 case 60
cmp rax, 0Ah
adc r15, 11h
jmp short loc_7725C
loc_771F8:
xor r15d, r15d; jumptable 0000000000077150 case 57
cmp rax, 64h ; 'd'
adc r15, 10h
jmp short loc_7725C
loc_77205:
xor r15d, r15d; jumptable 0000000000077150 case 40
cmp rax, 989680h
adc r15, 0Bh
jmp short loc_7725C
loc_77214:
shr rax, 0Dh; jumptable 0000000000077150 case 20
xor r15d, r15d
cmp rax, 48C27395h
adc r15, 5
jmp short loc_7725C
loc_77227:
xor r15d, r15d; jumptable 0000000000077150 case 37
cmp rax, 5F5E100h
adc r15, 0Ah
jmp short loc_7725C
loc_77236:
xor r15d, r15d; jumptable 0000000000077150 case 44
cmp rax, 0F4240h
adc r15, 0Ch
jmp short loc_7725C
loc_77245:
mov r8, 0DE0B6B3A763FFFFh; jumptable 0000000000077150 case 4
cmp rax, r8
ja def_77150; jumptable 0000000000077150 default case
loc_77258:
push 1; jumptable 0000000000077150 cases 5,6
loc_7725A:
pop r15
loc_7725C:
mov [rsp+68h+var_48], rsi
mov [rsp+68h+var_5C], edx
mov [rsp+68h+var_40], rdi
sub [rsp+68h+var_58], r15
xor ebx, ebx
test rcx, rcx
mov eax, 0
mov [rsp+68h+var_50], rcx
cmovg rax, rcx
mov [rsp+68h+var_38], rax
xor r12d, r12d
mov rbp, [rsp+68h+var_58]
loc_7728F:
cmp [rsp+68h+var_38], r12
jz short loc_772CA
mov r13, [r14+r12*8]
mov rdi, r13
mov esi, ebp
call fast_shr_dec
mov rcx, rax
lea rdx, mp_pow_dec
imul rcx, [rdx+rbp*8]
sub r13, rcx
imul r13, [rdx+r15*8]
add r13, rbx
mov [r14+r12*8], r13
inc r12
mov rbx, rax
jmp short loc_7728F
loc_772CA:
mov rdi, [rsp+68h+var_40]
sub [rdi+10h], r15
mov edx, [rsp+68h+var_5C]
mov rsi, [rsp+68h+var_48]
mov rcx, [rsp+68h+var_50]
def_77150:
add rsp, 38h; jumptable 0000000000077150 default case
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __bfdec_round
loc_772F4:
xor r15d, r15d; jumptable 0000000000077150 case 7
mov r8, 16345785D8A0000h
cmp rax, r8
adc r15, 1
jmp loc_7725C
loc_7730D:
xor r15d, r15d; jumptable 0000000000077150 case 10
mov r8, 2386F26FC10000h
cmp rax, r8
adc r15, 2
jmp loc_7725C
loc_77326:
xor r15d, r15d; jumptable 0000000000077150 case 34
cmp rax, 3B9ACA00h
adc r15, 9
jmp loc_7725C
loc_77338:
shr rax, 0Ch; jumptable 0000000000077150 case 24
xor r15d, r15d
cmp rax, 0E8D4A51h
adc r15, 6
jmp loc_7725C
loc_7734E:
xor r15d, r15d; jumptable 0000000000077150 case 17
mov r8, 5AF3107A4000h
cmp rax, r8
adc r15, 4
jmp loc_7725C
loc_77367:
xor r15d, r15d; jumptable 0000000000077150 case 14
mov r8, 38D7EA4C68000h
cmp rax, r8
adc r15, 3
jmp loc_7725C
loc_77380:
shr rax, 0Bh; jumptable 0000000000077150 case 27
xor r15d, r15d
cmp rax, 2E90EDDh
adc r15, 7
jmp loc_7725C
loc_77396:
shr rax, 0Ah; jumptable 0000000000077150 case 30
xor r15d, r15d
cmp rax, 9502F9h
adc r15, 8
jmp loc_7725C
loc_773AC:
xor r15d, r15d; jumptable 0000000000077150 case 50
cmp rax, 2710h
adc r15, 0Eh
jmp loc_7725C
| long long bfdec_normalize_and_round(_QWORD *a1, long long a2, unsigned int a3)
{
long long v3; // rcx
long long v4; // rax
long long i; // r8
long long v7; // r14
unsigned long long v9; // rax
long long v10; // r15
unsigned long long v11; // r9
long long v12; // rbx
long long v13; // rax
long long j; // r12
long long v15; // r13
long long v16; // rax
long long v17; // [rsp-8h] [rbp-70h]
unsigned int v18; // [rsp+Ch] [rbp-5Ch]
long long v19; // [rsp+10h] [rbp-58h]
long long v20; // [rsp+18h] [rbp-50h]
long long v21; // [rsp+30h] [rbp-38h]
v3 = a1[3];
v4 = 0LL;
for ( i = v3; ; v3 = i )
{
if ( i-- == 0 )
{
a1[2] = 0x8000000000000000LL;
bf_resize((long long)a1, 0LL);
return 0LL;
}
v7 = a1[4];
if ( *(_QWORD *)(v7 + 8 * i) )
break;
v4 += 19LL;
}
a1[2] -= v4;
v9 = *(_QWORD *)(v7 + 8 * i);
v10 = 19LL;
if ( v9 )
{
_BitScanReverse64(&v11, v9);
switch ( (unsigned int)v11 ^ 0x3F )
{
case 4u:
if ( v9 <= 0xDE0B6B3A763FFFFLL )
goto LABEL_34;
return _bfdec_round((long long)a1, a2, a3, v3);
case 5u:
case 6u:
LABEL_34:
v17 = 1LL;
goto LABEL_35;
case 7u:
v10 = (v9 < 0x16345785D8A0000LL) + 1LL;
break;
case 8u:
case 9u:
v17 = 2LL;
goto LABEL_35;
case 0xAu:
v10 = (v9 < 0x2386F26FC10000LL) + 2LL;
break;
case 0xBu:
case 0xCu:
case 0xDu:
v17 = 3LL;
goto LABEL_35;
case 0xEu:
v10 = (v9 < 0x38D7EA4C68000LL) + 3LL;
break;
case 0xFu:
case 0x10u:
v17 = 4LL;
goto LABEL_35;
case 0x11u:
v10 = (v9 < 0x5AF3107A4000LL) + 4LL;
break;
case 0x12u:
case 0x13u:
v17 = 5LL;
goto LABEL_35;
case 0x14u:
v10 = (v9 >> 13 < 0x48C27395) + 5LL;
break;
case 0x15u:
case 0x16u:
case 0x17u:
v17 = 6LL;
goto LABEL_35;
case 0x18u:
v10 = (v9 >> 12 < 0xE8D4A51) + 6LL;
break;
case 0x19u:
case 0x1Au:
v17 = 7LL;
goto LABEL_35;
case 0x1Bu:
v10 = (v9 >> 11 < 0x2E90EDD) + 7LL;
break;
case 0x1Cu:
case 0x1Du:
v17 = 8LL;
goto LABEL_35;
case 0x1Eu:
v10 = (v9 >> 10 < 0x9502F9) + 8LL;
break;
case 0x1Fu:
case 0x20u:
case 0x21u:
v17 = 9LL;
goto LABEL_35;
case 0x22u:
v10 = (v9 < 0x3B9ACA00) + 9LL;
break;
case 0x23u:
case 0x24u:
v17 = 10LL;
goto LABEL_35;
case 0x25u:
v10 = (v9 < 0x5F5E100) + 10LL;
break;
case 0x26u:
case 0x27u:
v17 = 11LL;
goto LABEL_35;
case 0x28u:
v10 = (v9 < 0x989680) + 11LL;
break;
case 0x29u:
case 0x2Au:
case 0x2Bu:
v17 = 12LL;
goto LABEL_35;
case 0x2Cu:
v10 = (v9 < 0xF4240) + 12LL;
break;
case 0x2Du:
case 0x2Eu:
v17 = 13LL;
goto LABEL_35;
case 0x2Fu:
v10 = (v9 < (unsigned long long)&loc_186A0) + 13LL;
break;
case 0x30u:
case 0x31u:
v17 = 14LL;
goto LABEL_35;
case 0x32u:
v10 = (v9 < 0x2710) + 14LL;
break;
case 0x33u:
case 0x34u:
case 0x35u:
v17 = 15LL;
goto LABEL_35;
case 0x36u:
v10 = (v9 < 0x3E8) + 15LL;
break;
case 0x37u:
case 0x38u:
v17 = 16LL;
goto LABEL_35;
case 0x39u:
v10 = (v9 < 0x64) + 16LL;
break;
case 0x3Au:
case 0x3Bu:
v17 = 17LL;
goto LABEL_35;
case 0x3Cu:
v10 = (v9 < 0xA) + 17LL;
break;
case 0x3Du:
case 0x3Eu:
case 0x3Fu:
v17 = 18LL;
LABEL_35:
v10 = v17;
break;
default:
return _bfdec_round((long long)a1, a2, a3, v3);
}
}
v18 = a3;
v19 = 19 - v10;
v12 = 0LL;
v13 = 0LL;
v20 = v3;
if ( v3 > 0 )
v13 = v3;
v21 = v13;
for ( j = 0LL; v21 != j; ++j )
{
v15 = *(_QWORD *)(v7 + 8 * j);
v16 = fast_shr_dec(v15, (unsigned int)v19);
*(_QWORD *)(v7 + 8 * j) = v12 + mp_pow_dec[v10] * (v15 - mp_pow_dec[v19] * v16);
v12 = v16;
}
a1[2] -= v10;
a3 = v18;
v3 = v20;
return _bfdec_round((long long)a1, a2, a3, v3);
}
| bfdec_normalize_and_round:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RCX,qword ptr [RDI + 0x18]
XOR EAX,EAX
MOV R8,RCX
LAB_001770d2:
SUB R8,0x1
JC 0x001770ec
MOV R14,qword ptr [RDI + 0x20]
CMP qword ptr [R14 + R8*0x8],0x0
JNZ 0x00177112
ADD RAX,0x13
MOV RCX,R8
JMP 0x001770d2
LAB_001770ec:
MOV RAX,-0x8000000000000000
MOV qword ptr [RDI + 0x10],RAX
XOR ESI,ESI
CALL 0x0016f50f
XOR EAX,EAX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00177112:
SUB qword ptr [RDI + 0x10],RAX
MOV RAX,qword ptr [R14 + R8*0x8]
PUSH 0x13
POP R15
MOV qword ptr [RSP + 0x10],R15
TEST RAX,RAX
JZ 0x0017725c
BSR R9,RAX
XOR R9D,0x3f
ADD R9D,-0x4
CMP R9D,0x3b
JA 0x001772e1
LEA R8,[0x189814]
MOVSXD R9,dword ptr [R8 + R9*0x4]
ADD R9,R8
switchD:
JMP R9
caseD_b:
PUSH 0x3
JMP 0x0017725a
caseD_29:
PUSH 0xc
JMP 0x0017725a
caseD_33:
PUSH 0xf
JMP 0x0017725a
caseD_1f:
PUSH 0x9
JMP 0x0017725a
caseD_15:
PUSH 0x6
JMP 0x0017725a
caseD_3d:
PUSH 0x12
JMP 0x0017725a
caseD_3a:
PUSH 0x11
JMP 0x0017725a
caseD_37:
PUSH 0x10
JMP 0x0017725a
caseD_19:
PUSH 0x7
JMP 0x0017725a
caseD_1c:
PUSH 0x8
JMP 0x0017725a
caseD_f:
PUSH 0x4
JMP 0x0017725a
caseD_8:
PUSH 0x2
JMP 0x0017725a
caseD_12:
PUSH 0x5
JMP 0x0017725a
caseD_26:
PUSH 0xb
JMP 0x0017725a
caseD_23:
PUSH 0xa
JMP 0x0017725a
caseD_30:
PUSH 0xe
JMP 0x0017725a
caseD_2d:
PUSH 0xd
JMP 0x0017725a
caseD_36:
XOR R15D,R15D
CMP RAX,0x3e8
ADC R15,0xf
JMP 0x0017725c
caseD_2f:
XOR R15D,R15D
CMP RAX,0x186a0
ADC R15,0xd
JMP 0x0017725c
caseD_3c:
XOR R15D,R15D
CMP RAX,0xa
ADC R15,0x11
JMP 0x0017725c
caseD_39:
XOR R15D,R15D
CMP RAX,0x64
ADC R15,0x10
JMP 0x0017725c
caseD_28:
XOR R15D,R15D
CMP RAX,0x989680
ADC R15,0xb
JMP 0x0017725c
caseD_14:
SHR RAX,0xd
XOR R15D,R15D
CMP RAX,0x48c27395
ADC R15,0x5
JMP 0x0017725c
caseD_25:
XOR R15D,R15D
CMP RAX,0x5f5e100
ADC R15,0xa
JMP 0x0017725c
caseD_2c:
XOR R15D,R15D
CMP RAX,0xf4240
ADC R15,0xc
JMP 0x0017725c
caseD_4:
MOV R8,0xde0b6b3a763ffff
CMP RAX,R8
JA 0x001772e1
caseD_5:
PUSH 0x1
LAB_0017725a:
POP R15
LAB_0017725c:
MOV qword ptr [RSP + 0x20],RSI
MOV dword ptr [RSP + 0xc],EDX
MOV qword ptr [RSP + 0x28],RDI
SUB qword ptr [RSP + 0x10],R15
XOR EBX,EBX
TEST RCX,RCX
MOV EAX,0x0
MOV qword ptr [RSP + 0x18],RCX
CMOVG RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
XOR R12D,R12D
MOV RBP,qword ptr [RSP + 0x10]
LAB_0017728f:
CMP qword ptr [RSP + 0x30],R12
JZ 0x001772ca
MOV R13,qword ptr [R14 + R12*0x8]
MOV RDI,R13
MOV ESI,EBP
CALL 0x001781dc
MOV RCX,RAX
LEA RDX,[0x189bf0]
IMUL RCX,qword ptr [RDX + RBP*0x8]
SUB R13,RCX
IMUL R13,qword ptr [RDX + R15*0x8]
ADD R13,RBX
MOV qword ptr [R14 + R12*0x8],R13
INC R12
MOV RBX,RAX
JMP 0x0017728f
LAB_001772ca:
MOV RDI,qword ptr [RSP + 0x28]
SUB qword ptr [RDI + 0x10],R15
MOV EDX,dword ptr [RSP + 0xc]
MOV RSI,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x18]
default:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00176cd8
caseD_7:
XOR R15D,R15D
MOV R8,0x16345785d8a0000
CMP RAX,R8
ADC R15,0x1
JMP 0x0017725c
caseD_a:
XOR R15D,R15D
MOV R8,0x2386f26fc10000
CMP RAX,R8
ADC R15,0x2
JMP 0x0017725c
caseD_22:
XOR R15D,R15D
CMP RAX,0x3b9aca00
ADC R15,0x9
JMP 0x0017725c
caseD_18:
SHR RAX,0xc
XOR R15D,R15D
CMP RAX,0xe8d4a51
ADC R15,0x6
JMP 0x0017725c
caseD_11:
XOR R15D,R15D
MOV R8,0x5af3107a4000
CMP RAX,R8
ADC R15,0x4
JMP 0x0017725c
caseD_e:
XOR R15D,R15D
MOV R8,0x38d7ea4c68000
CMP RAX,R8
ADC R15,0x3
JMP 0x0017725c
caseD_1b:
SHR RAX,0xb
XOR R15D,R15D
CMP RAX,0x2e90edd
ADC R15,0x7
JMP 0x0017725c
caseD_1e:
SHR RAX,0xa
XOR R15D,R15D
CMP RAX,0x9502f9
ADC R15,0x8
JMP 0x0017725c
caseD_32:
XOR R15D,R15D
CMP RAX,0x2710
ADC R15,0xe
JMP 0x0017725c
|
int8 bfdec_normalize_and_round(long param_1,int8 param_2,ulong param_3)
{
long lVar1;
ulong uVar2;
long lVar3;
long lVar4;
long lVar5;
int8 uVar6;
long lVar7;
long lVar9;
long lStack_70;
long lVar8;
lVar4 = 0;
lVar8 = *(long *)(param_1 + 0x18);
while( true ) {
lVar7 = lVar8 + -1;
if (lVar8 == 0) {
*(int8 *)(param_1 + 0x10) = 0x8000000000000000;
bf_resize(param_1,0);
return 0;
}
lVar1 = *(long *)(param_1 + 0x20);
if (*(long *)(lVar1 + lVar7 * 8) != 0) break;
lVar4 = lVar4 + 0x13;
lVar8 = lVar7;
}
*(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) - lVar4;
uVar2 = *(ulong *)(lVar1 + lVar7 * 8);
lStack_70 = 0x13;
if (uVar2 != 0) {
lVar4 = 0x3f;
if (uVar2 != 0) {
for (; uVar2 >> lVar4 == 0; lVar4 = lVar4 + -1) {
}
}
switch((uint)lVar4 ^ 0x3f) {
case 4:
if (999999999999999999 < uVar2) goto switchD_00177150_default;
case 5:
case 6:
lStack_70 = 1;
break;
case 7:
lStack_70 = (ulong)(uVar2 < 100000000000000000) + 1;
break;
case 8:
case 9:
lStack_70 = 2;
break;
case 10:
lStack_70 = (ulong)(uVar2 < 10000000000000000) + 2;
break;
case 0xb:
case 0xc:
case 0xd:
lStack_70 = 3;
break;
case 0xe:
lStack_70 = (ulong)(uVar2 < 1000000000000000) + 3;
break;
case 0xf:
case 0x10:
lStack_70 = 4;
break;
case 0x11:
lStack_70 = (ulong)(uVar2 < 100000000000000) + 4;
break;
case 0x12:
case 0x13:
lStack_70 = 5;
break;
case 0x14:
lStack_70 = (ulong)(uVar2 >> 0xd < 0x48c27395) + 5;
break;
case 0x15:
case 0x16:
case 0x17:
lStack_70 = 6;
break;
case 0x18:
lStack_70 = (ulong)(uVar2 >> 0xc < 0xe8d4a51) + 6;
break;
case 0x19:
case 0x1a:
lStack_70 = 7;
break;
case 0x1b:
lStack_70 = (ulong)(uVar2 >> 0xb < 0x2e90edd) + 7;
break;
case 0x1c:
case 0x1d:
lStack_70 = 8;
break;
case 0x1e:
lStack_70 = (ulong)(uVar2 >> 10 < 0x9502f9) + 8;
break;
case 0x1f:
case 0x20:
case 0x21:
lStack_70 = 9;
break;
case 0x22:
lStack_70 = (ulong)(uVar2 < 1000000000) + 9;
break;
case 0x23:
case 0x24:
lStack_70 = 10;
break;
case 0x25:
lStack_70 = (ulong)(uVar2 < 100000000) + 10;
break;
case 0x26:
case 0x27:
lStack_70 = 0xb;
break;
case 0x28:
lStack_70 = (ulong)(uVar2 < 10000000) + 0xb;
break;
case 0x29:
case 0x2a:
case 0x2b:
lStack_70 = 0xc;
break;
case 0x2c:
lStack_70 = (ulong)(uVar2 < 1000000) + 0xc;
break;
case 0x2d:
case 0x2e:
lStack_70 = 0xd;
break;
case 0x2f:
lStack_70 = (ulong)(uVar2 < 100000) + 0xd;
break;
case 0x30:
case 0x31:
lStack_70 = 0xe;
break;
case 0x32:
lStack_70 = (ulong)(uVar2 < 10000) + 0xe;
break;
case 0x33:
case 0x34:
case 0x35:
lStack_70 = 0xf;
break;
case 0x36:
lStack_70 = (ulong)(uVar2 < 1000) + 0xf;
break;
case 0x37:
case 0x38:
lStack_70 = 0x10;
break;
case 0x39:
lStack_70 = (ulong)(uVar2 < 100) + 0x10;
break;
case 0x3a:
case 0x3b:
lStack_70 = 0x11;
break;
case 0x3c:
lStack_70 = (ulong)(uVar2 < 10) + 0x11;
break;
case 0x3d:
case 0x3e:
case 0x3f:
lStack_70 = 0x12;
break;
default:
goto switchD_00177150_default;
}
}
lVar4 = 0;
if (0 < lVar8) {
lVar4 = lVar8;
}
lVar7 = 0;
for (lVar9 = 0; lVar4 != lVar9; lVar9 = lVar9 + 1) {
lVar3 = *(long *)(lVar1 + lVar9 * 8);
lVar5 = fast_shr_dec(lVar3,0x13U - lStack_70 & 0xffffffff);
*(long *)(lVar1 + lVar9 * 8) =
(lVar3 - lVar5 * *(long *)(mp_pow_dec + (0x13U - lStack_70) * 8)) *
*(long *)(mp_pow_dec + lStack_70 * 8) + lVar7;
lVar7 = lVar5;
}
*(long *)(param_1 + 0x10) = *(long *)(param_1 + 0x10) - lStack_70;
param_3 = param_3 & 0xffffffff;
switchD_00177150_default:
uVar6 = __bfdec_round(param_1,param_2,param_3,lVar8);
return uVar6;
}
| |
52,291 | plutovg_rasterize | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-rasterize.c | void plutovg_rasterize(plutovg_span_buffer_t* span_buffer, const plutovg_path_t* path, const plutovg_matrix_t* matrix, const plutovg_rect_t* clip_rect, const plutovg_stroke_data_t* stroke_data, plutovg_fill_rule_t winding)
{
PVG_FT_Outline* outline = ft_outline_convert(path, matrix, stroke_data);
if(stroke_data) {
outline->flags = PVG_FT_OUTLINE_NONE;
} else {
switch(winding) {
case PLUTOVG_FILL_RULE_EVEN_ODD:
outline->flags = PVG_FT_OUTLINE_EVEN_ODD_FILL;
break;
default:
outline->flags = PVG_FT_OUTLINE_NONE;
break;
}
}
PVG_FT_Raster_Params params;
params.flags = PVG_FT_RASTER_FLAG_DIRECT | PVG_FT_RASTER_FLAG_AA;
params.gray_spans = spans_generation_callback;
params.user = span_buffer;
params.source = outline;
if(clip_rect) {
params.flags |= PVG_FT_RASTER_FLAG_CLIP;
params.clip_box.xMin = (PVG_FT_Pos)clip_rect->x;
params.clip_box.yMin = (PVG_FT_Pos)clip_rect->y;
params.clip_box.xMax = (PVG_FT_Pos)(clip_rect->x + clip_rect->w);
params.clip_box.yMax = (PVG_FT_Pos)(clip_rect->y + clip_rect->h);
}
plutovg_span_buffer_reset(span_buffer);
PVG_FT_Raster_Render(¶ms);
ft_outline_destroy(outline);
} | O1 | c | plutovg_rasterize:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %r9d, %ebp
movq %r8, %r12
movq %rcx, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %rdx, %rsi
movq %r8, %rdx
callq 0x2d14a
movq %rax, %rbx
testq %r12, %r12
jne 0x2d0a9
cmpl $0x1, %ebp
jne 0x2d0a9
movl $0x2, 0x28(%rbx)
jmp 0x2d0b0
movl $0x0, 0x28(%rbx)
movl $0x3, 0x8(%rsp)
leaq 0x4ff(%rip), %rax # 0x2d5be
movq %rax, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, (%rsp)
testq %r15, %r15
je 0x2d119
movl $0x7, 0x8(%rsp)
movss (%r15), %xmm0
cvttss2si %xmm0, %rax
movq %rax, 0x20(%rsp)
movss 0x4(%r15), %xmm1
cvttss2si %xmm1, %rax
movq %rax, 0x28(%rsp)
addss 0x8(%r15), %xmm0
cvttss2si %xmm0, %rax
movq %rax, 0x30(%rsp)
addss 0xc(%r15), %xmm1
cvttss2si %xmm1, %rax
movq %rax, 0x38(%rsp)
movl $0x0, 0x8(%r14)
movaps 0x186f8(%rip), %xmm0 # 0x45820
movups %xmm0, 0x10(%r14)
movq %rsp, %rdi
callq 0x3b512
movq %rbx, %rdi
callq 0xa648
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| plutovg_rasterize:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov ebp, r9d
mov r12, r8
mov r15, rcx
mov r14, rdi
mov rdi, rsi
mov rsi, rdx
mov rdx, r8
call ft_outline_convert
mov rbx, rax
test r12, r12
jnz short loc_2D0A9
cmp ebp, 1
jnz short loc_2D0A9
mov dword ptr [rbx+28h], 2
jmp short loc_2D0B0
loc_2D0A9:
mov dword ptr [rbx+28h], 0
loc_2D0B0:
mov [rsp+68h+var_60], 3
lea rax, spans_generation_callback
mov [rsp+68h+var_58], rax
mov [rsp+68h+var_50], r14
mov [rsp+68h+var_68], rbx
test r15, r15
jz short loc_2D119
mov [rsp+68h+var_60], 7
movss xmm0, dword ptr [r15]
cvttss2si rax, xmm0
mov [rsp+68h+var_48], rax
movss xmm1, dword ptr [r15+4]
cvttss2si rax, xmm1
mov [rsp+68h+var_40], rax
addss xmm0, dword ptr [r15+8]
cvttss2si rax, xmm0
mov [rsp+68h+var_38], rax
addss xmm1, dword ptr [r15+0Ch]
cvttss2si rax, xmm1
mov [rsp+68h+var_30], rax
loc_2D119:
mov dword ptr [r14+8], 0
movaps xmm0, cs:xmmword_45820
movups xmmword ptr [r14+10h], xmm0
mov rdi, rsp
call PVG_FT_Raster_Render
mov rdi, rbx
call free
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long plutovg_rasterize(long long a1, long long a2, long long a3, float *a4, long long a5, int a6)
{
long long v9; // rax
long long v10; // rbx
float v11; // xmm0_4
float v12; // xmm1_4
long long v14; // [rsp+0h] [rbp-68h] BYREF
int v15; // [rsp+8h] [rbp-60h]
long long ( *v16)(); // [rsp+10h] [rbp-58h]
long long v17; // [rsp+18h] [rbp-50h]
long long v18; // [rsp+20h] [rbp-48h]
long long v19; // [rsp+28h] [rbp-40h]
long long v20; // [rsp+30h] [rbp-38h]
long long v21; // [rsp+38h] [rbp-30h]
v9 = ft_outline_convert(a2, a3, a5);
v10 = v9;
if ( a5 || a6 != 1 )
*(_DWORD *)(v9 + 40) = 0;
else
*(_DWORD *)(v9 + 40) = 2;
v15 = 3;
v16 = spans_generation_callback;
v17 = a1;
v14 = v9;
if ( a4 )
{
v15 = 7;
v11 = *a4;
v18 = (unsigned int)(int)*a4;
v12 = a4[1];
v19 = (unsigned int)(int)v12;
v20 = (unsigned int)(int)(float)(v11 + a4[2]);
v21 = (unsigned int)(int)(float)(v12 + a4[3]);
}
*(_DWORD *)(a1 + 8) = 0;
*(_OWORD *)(a1 + 16) = xmmword_45820;
((void ( *)(long long *))PVG_FT_Raster_Render)(&v14);
return free(v10);
}
| plutovg_rasterize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV EBP,R9D
MOV R12,R8
MOV R15,RCX
MOV R14,RDI
MOV RDI,RSI
MOV RSI,RDX
MOV RDX,R8
CALL 0x0012d14a
MOV RBX,RAX
TEST R12,R12
JNZ 0x0012d0a9
CMP EBP,0x1
JNZ 0x0012d0a9
MOV dword ptr [RBX + 0x28],0x2
JMP 0x0012d0b0
LAB_0012d0a9:
MOV dword ptr [RBX + 0x28],0x0
LAB_0012d0b0:
MOV dword ptr [RSP + 0x8],0x3
LEA RAX,[0x12d5be]
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],R14
MOV qword ptr [RSP],RBX
TEST R15,R15
JZ 0x0012d119
MOV dword ptr [RSP + 0x8],0x7
MOVSS XMM0,dword ptr [R15]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RSP + 0x20],RAX
MOVSS XMM1,dword ptr [R15 + 0x4]
CVTTSS2SI RAX,XMM1
MOV qword ptr [RSP + 0x28],RAX
ADDSS XMM0,dword ptr [R15 + 0x8]
CVTTSS2SI RAX,XMM0
MOV qword ptr [RSP + 0x30],RAX
ADDSS XMM1,dword ptr [R15 + 0xc]
CVTTSS2SI RAX,XMM1
MOV qword ptr [RSP + 0x38],RAX
LAB_0012d119:
MOV dword ptr [R14 + 0x8],0x0
MOVAPS XMM0,xmmword ptr [0x00145820]
MOVUPS xmmword ptr [R14 + 0x10],XMM0
MOV RDI,RSP
CALL 0x0013b512
MOV RDI,RBX
CALL 0x0010a648
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void plutovg_rasterize(long param_1,int8 param_2,int8 param_3,float *param_4,
long param_5,int param_6)
{
int4 uVar1;
int4 uVar2;
int4 uVar3;
void *__ptr;
void *local_68;
int4 local_60;
code *local_58;
long local_50;
long local_48;
long local_40;
long local_38;
long local_30;
__ptr = (void *)ft_outline_convert(param_2,param_3,param_5);
if ((param_5 == 0) && (param_6 == 1)) {
*(int4 *)((long)__ptr + 0x28) = 2;
}
else {
*(int4 *)((long)__ptr + 0x28) = 0;
}
local_60 = 3;
local_58 = spans_generation_callback;
if (param_4 != (float *)0x0) {
local_60 = 7;
local_48 = (long)*param_4;
local_40 = (long)param_4[1];
local_38 = (long)(*param_4 + param_4[2]);
local_30 = (long)(param_4[1] + param_4[3]);
}
*(int4 *)(param_1 + 8) = 0;
uVar3 = _UNK_0014582c;
uVar2 = _UNK_00145828;
uVar1 = _UNK_00145824;
*(int4 *)(param_1 + 0x10) = _DAT_00145820;
*(int4 *)(param_1 + 0x14) = uVar1;
*(int4 *)(param_1 + 0x18) = uVar2;
*(int4 *)(param_1 + 0x1c) = uVar3;
local_68 = __ptr;
local_50 = param_1;
PVG_FT_Raster_Render(&local_68);
free(__ptr);
return;
}
| |
52,292 | my_strnxfrm_tis620 | eloqsql/strings/ctype-tis620.c | static size_t
my_strnxfrm_tis620(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
size_t len, dstlen0= dstlen;
len= MY_MIN(dstlen, srclen);
memcpy(dst, src, len);
len= thai2sortable(dst, len);
set_if_smaller(dstlen, nweights);
set_if_smaller(len, dstlen);
len= my_strxfrm_pad_desc_and_reverse(cs, dst, dst + len, dst + dstlen,
(uint)(dstlen - len), flags, 0);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len < dstlen0)
{
size_t fill_length= dstlen0 - len;
my_ci_fill(cs, (char*) dst + len, fill_length, cs->pad_char);
len= dstlen0;
}
return len;
} | O0 | c | my_strnxfrm_tis620:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x30(%rbp), %rax
jae 0x9987e
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x99886
movq -0x30(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x360b0
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x99970
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movl -0x1c(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x998c3
movl -0x1c(%rbp), %eax
movq %rax, -0x18(%rbp)
jmp 0x998c5
jmp 0x998c7
movq -0x38(%rbp), %rax
cmpq -0x18(%rbp), %rax
jbe 0x998d9
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x998db
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq -0x38(%rbp), %rdx
movq -0x10(%rbp), %rcx
addq -0x18(%rbp), %rcx
movq -0x18(%rbp), %rax
subq -0x38(%rbp), %rax
movl %eax, %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x93f30
movq %rax, -0x38(%rbp)
movl 0x10(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x9995f
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
jae 0x9995f
movq -0x40(%rbp), %rax
subq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq -0x8(%rbp), %rax
movzbl 0xb0(%rax), %ecx
callq 0x99b10
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_tis620:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_18]
mov [rbp+var_40], rax
mov rax, [rbp+var_18]
cmp rax, [rbp+var_30]
jnb short loc_9987E
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
jmp short loc_99886
loc_9987E:
mov rax, [rbp+var_30]
mov [rbp+var_50], rax
loc_99886:
mov rax, [rbp+var_50]
mov [rbp+var_38], rax
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
mov rdx, [rbp+var_38]
call _memcpy
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
call thai2sortable
mov [rbp+var_38], rax
mov rax, [rbp+var_18]
mov ecx, [rbp+var_1C]
cmp rax, rcx
jbe short loc_998C3
mov eax, [rbp+var_1C]
mov [rbp+var_18], rax
loc_998C3:
jmp short $+2
loc_998C5:
jmp short $+2
loc_998C7:
mov rax, [rbp+var_38]
cmp rax, [rbp+var_18]
jbe short loc_998D9
mov rax, [rbp+var_18]
mov [rbp+var_38], rax
loc_998D9:
jmp short $+2
loc_998DB:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_10]
add rdx, [rbp+var_38]
mov rcx, [rbp+var_10]
add rcx, [rbp+var_18]
mov rax, [rbp+var_18]
sub rax, [rbp+var_38]
mov r8d, eax
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+60h+var_60], 0
call my_strxfrm_pad_desc_and_reverse
mov [rbp+var_38], rax
mov eax, [rbp+arg_0]
and eax, 80h
cmp eax, 0
jz short loc_9995F
mov rax, [rbp+var_38]
cmp rax, [rbp+var_40]
jnb short loc_9995F
mov rax, [rbp+var_40]
sub rax, [rbp+var_38]
mov [rbp+var_48], rax
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
add rsi, [rbp+var_38]
mov rdx, [rbp+var_48]
mov rax, [rbp+var_8]
movzx ecx, byte ptr [rax+0B0h]
call my_ci_fill_1
mov rax, [rbp+var_40]
mov [rbp+var_38], rax
loc_9995F:
mov rax, [rbp+var_38]
add rsp, 60h
pop rbp
retn
| unsigned long long my_strnxfrm_tis620(
long long a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
unsigned int a7)
{
unsigned long long v8; // [rsp+10h] [rbp-50h]
unsigned long long v10; // [rsp+28h] [rbp-38h]
unsigned long long v11; // [rsp+28h] [rbp-38h]
unsigned long long v13; // [rsp+48h] [rbp-18h]
v13 = a3;
if ( a3 >= a6 )
v8 = a6;
else
v8 = a3;
memcpy(a2, a5, v8);
v10 = thai2sortable(a2, v8);
if ( v13 > a4 )
v13 = a4;
if ( v10 > v13 )
v10 = v13;
v11 = my_strxfrm_pad_desc_and_reverse(a1, a2, v10 + a2, v13 + a2, (int)v13 - (int)v10, a7, 0);
if ( (a7 & 0x80) != 0 && v11 < a3 )
{
my_ci_fill_1(a1, v11 + a2, a3 - v11, *(unsigned __int8 *)(a1 + 176));
return a3;
}
return v11;
}
| my_strnxfrm_tis620:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x0019987e
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
JMP 0x00199886
LAB_0019987e:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x50],RAX
LAB_00199886:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
MOV RDX,qword ptr [RBP + -0x38]
CALL 0x001360b0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00199970
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
CMP RAX,RCX
JBE 0x001998c3
MOV EAX,dword ptr [RBP + -0x1c]
MOV qword ptr [RBP + -0x18],RAX
LAB_001998c3:
JMP 0x001998c5
LAB_001998c5:
JMP 0x001998c7
LAB_001998c7:
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x18]
JBE 0x001998d9
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
LAB_001998d9:
JMP 0x001998db
LAB_001998db:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x10]
ADD RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RBP + -0x38]
MOV R8D,EAX
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00193f30
MOV qword ptr [RBP + -0x38],RAX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x80
CMP EAX,0x0
JZ 0x0019995f
MOV RAX,qword ptr [RBP + -0x38]
CMP RAX,qword ptr [RBP + -0x40]
JNC 0x0019995f
MOV RAX,qword ptr [RBP + -0x40]
SUB RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x48],RAX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x48]
MOV RAX,qword ptr [RBP + -0x8]
MOVZX ECX,byte ptr [RAX + 0xb0]
CALL 0x00199b10
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
LAB_0019995f:
MOV RAX,qword ptr [RBP + -0x38]
ADD RSP,0x60
POP RBP
RET
|
ulong my_strnxfrm_tis620(long param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,uint param_7)
{
size_t local_58;
ulong local_40;
ulong local_20;
local_58 = param_6;
if (param_3 < param_6) {
local_58 = param_3;
}
memcpy(param_2,param_5,local_58);
local_40 = thai2sortable(param_2,local_58);
local_20 = param_3;
if (param_4 < param_3) {
local_20 = (ulong)param_4;
}
if (local_20 < local_40) {
local_40 = local_20;
}
local_40 = my_strxfrm_pad_desc_and_reverse
(param_1,param_2,(long)param_2 + local_40,(long)param_2 + local_20,
(int)local_20 - (int)local_40,param_7,0);
if (((param_7 & 0x80) != 0) && (local_40 < param_3)) {
my_ci_fill(param_1,(long)param_2 + local_40,param_3 - local_40,*(int1 *)(param_1 + 0xb0));
local_40 = param_3;
}
return local_40;
}
| |
52,293 | LefDefParser::lefiPinAntennaModel::addAntennaMaxCutCar(double, char const*) | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp | void
lefiPinAntennaModel::addAntennaMaxCutCar(double val,
const char *layer)
{
int len;
if (numAntennaMaxCutCar_ == antennaMaxCutCarAllocated_) {
int i;
int max;
int lim = numAntennaMaxCutCar_;
double *nd;
char **nl;
if (antennaMaxCutCarAllocated_ == 0)
max = antennaMaxCutCarAllocated_ = 2;
else
max = antennaMaxCutCarAllocated_ *= 2;
nd = (double*) lefMalloc(sizeof(double) * max);
nl = (char**) lefMalloc(sizeof(double) * max);
for (i = 0; i < lim; i++) {
nl[i] = antennaMaxCutCarLayer_[i];
nd[i] = antennaMaxCutCar_[i];
}
lefFree((char*) (antennaMaxCutCarLayer_));
lefFree((char*) (antennaMaxCutCar_));
antennaMaxCutCarLayer_ = nl;
antennaMaxCutCar_ = nd;
}
antennaMaxCutCar_[numAntennaMaxCutCar_] = val;
if (layer) { // layer can be null, since it is optional
len = strlen(layer) + 1;
antennaMaxCutCarLayer_[numAntennaMaxCutCar_] =
(char*) lefMalloc(len);
strcpy(antennaMaxCutCarLayer_[numAntennaMaxCutCar_],
layer);
} else
antennaMaxCutCarLayer_[numAntennaMaxCutCar_] = NULL;
numAntennaMaxCutCar_ += 1;
} | O3 | cpp | LefDefParser::lefiPinAntennaModel::addAntennaMaxCutCar(double, char const*):
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x58(%rdi), %r13d
cmpl 0x5c(%rdi), %r13d
jne 0x28822
movsd %xmm0, 0x8(%rsp)
leal (,%r13,2), %eax
testl %r13d, %r13d
movl $0x2, %ecx
cmovnel %eax, %ecx
movl %ecx, 0x5c(%rbx)
movslq %ecx, %r12
shlq $0x3, %r12
movq %r12, %rdi
callq 0x24985
movq %rax, %r15
movq %r12, %rdi
callq 0x24985
movq %rax, %r12
testl %r13d, %r13d
jle 0x287fc
xorl %eax, %eax
movq 0x68(%rbx), %rcx
movq (%rcx,%rax,8), %rcx
movq %rcx, (%r12,%rax,8)
movq 0x60(%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
movsd %xmm0, (%r15,%rax,8)
incq %rax
cmpq %rax, %r13
jne 0x287d9
movq 0x68(%rbx), %rdi
callq 0x26040
movq 0x60(%rbx), %rdi
callq 0x26040
movq %r12, 0x68(%rbx)
movq %r15, 0x60(%rbx)
movl 0x58(%rbx), %r13d
movsd 0x8(%rsp), %xmm0
jmp 0x28826
movq 0x60(%rbx), %r15
movslq %r13d, %rax
movsd %xmm0, (%r15,%rax,8)
testq %r14, %r14
je 0x28868
movq %r14, %rdi
callq 0x20d0
incl %eax
movslq %eax, %rdi
callq 0x24985
movq 0x68(%rbx), %rcx
movslq 0x58(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
movq 0x68(%rbx), %rax
movq (%rax,%rdx,8), %rdi
movq %r14, %rsi
callq 0x21b0
movl 0x58(%rbx), %r13d
jmp 0x28874
movq 0x68(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incl %r13d
movl %r13d, 0x58(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
| _ZN12LefDefParser19lefiPinAntennaModel19addAntennaMaxCutCarEdPKc:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 10h
mov r14, rsi
mov rbx, rdi
mov r13d, [rdi+58h]
cmp r13d, [rdi+5Ch]
jnz loc_28822
movsd [rsp+38h+var_30], xmm0
lea eax, ds:0[r13*2]
test r13d, r13d
mov ecx, 2
cmovnz ecx, eax
mov [rbx+5Ch], ecx
movsxd r12, ecx
shl r12, 3
mov rdi, r12; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r15, rax
mov rdi, r12; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov r12, rax
test r13d, r13d
jle short loc_287FC
xor eax, eax
loc_287D9:
mov rcx, [rbx+68h]
mov rcx, [rcx+rax*8]
mov [r12+rax*8], rcx
mov rcx, [rbx+60h]
movsd xmm0, qword ptr [rcx+rax*8]
movsd qword ptr [r15+rax*8], xmm0
inc rax
cmp r13, rax
jnz short loc_287D9
loc_287FC:
mov rdi, [rbx+68h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rdi, [rbx+60h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov [rbx+68h], r12
mov [rbx+60h], r15
mov r13d, [rbx+58h]
movsd xmm0, [rsp+38h+var_30]
jmp short loc_28826
loc_28822:
mov r15, [rbx+60h]
loc_28826:
movsxd rax, r13d
movsd qword ptr [r15+rax*8], xmm0
test r14, r14
jz short loc_28868
mov rdi, r14
call _strlen
inc eax
movsxd rdi, eax; this
call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong)
mov rcx, [rbx+68h]
movsxd rdx, dword ptr [rbx+58h]
mov [rcx+rdx*8], rax
mov rax, [rbx+68h]
mov rdi, [rax+rdx*8]
mov rsi, r14
call _strcpy
mov r13d, [rbx+58h]
jmp short loc_28874
loc_28868:
mov rcx, [rbx+68h]
mov qword ptr [rcx+rax*8], 0
loc_28874:
inc r13d
mov [rbx+58h], r13d
add rsp, 10h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long LefDefParser::lefiPinAntennaModel::addAntennaMaxCutCar(
LefDefParser::lefiPinAntennaModel *this,
double a2,
char *a3)
{
long long v3; // r13
int v4; // ecx
LefDefParser *v5; // r12
long long v6; // r15
long long v7; // r12
long long i; // rax
long long result; // rax
int v10; // eax
long long v11; // rax
long long v12; // rdx
v3 = *((unsigned int *)this + 22);
if ( (_DWORD)v3 == *((_DWORD *)this + 23) )
{
v4 = 2;
if ( (_DWORD)v3 )
v4 = 2 * v3;
*((_DWORD *)this + 23) = v4;
v5 = (LefDefParser *)(8LL * v4);
v6 = LefDefParser::lefMalloc(v5);
v7 = LefDefParser::lefMalloc(v5);
if ( (int)v3 > 0 )
{
for ( i = 0LL; i != v3; ++i )
{
*(_QWORD *)(v7 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 13) + 8 * i);
*(_QWORD *)(v6 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 12) + 8 * i);
}
}
LefDefParser::lefFree(*((LefDefParser **)this + 13), a3);
LefDefParser::lefFree(*((LefDefParser **)this + 12), a3);
*((_QWORD *)this + 13) = v7;
*((_QWORD *)this + 12) = v6;
LODWORD(v3) = *((_DWORD *)this + 22);
}
else
{
v6 = *((_QWORD *)this + 12);
}
result = (int)v3;
*(double *)(v6 + 8LL * (int)v3) = a2;
if ( a3 )
{
v10 = strlen(a3);
v11 = LefDefParser::lefMalloc((LefDefParser *)(v10 + 1));
v12 = *((int *)this + 22);
*(_QWORD *)(*((_QWORD *)this + 13) + 8 * v12) = v11;
result = strcpy(*(_QWORD *)(*((_QWORD *)this + 13) + 8 * v12), a3);
LODWORD(v3) = *((_DWORD *)this + 22);
}
else
{
*(_QWORD *)(*((_QWORD *)this + 13) + 8LL * (int)v3) = 0LL;
}
*((_DWORD *)this + 22) = v3 + 1;
return result;
}
| addAntennaMaxCutCar:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14,RSI
MOV RBX,RDI
MOV R13D,dword ptr [RDI + 0x58]
CMP R13D,dword ptr [RDI + 0x5c]
JNZ 0x00128822
MOVSD qword ptr [RSP + 0x8],XMM0
LEA EAX,[R13*0x2]
TEST R13D,R13D
MOV ECX,0x2
CMOVNZ ECX,EAX
MOV dword ptr [RBX + 0x5c],ECX
MOVSXD R12,ECX
SHL R12,0x3
MOV RDI,R12
CALL 0x00124985
MOV R15,RAX
MOV RDI,R12
CALL 0x00124985
MOV R12,RAX
TEST R13D,R13D
JLE 0x001287fc
XOR EAX,EAX
LAB_001287d9:
MOV RCX,qword ptr [RBX + 0x68]
MOV RCX,qword ptr [RCX + RAX*0x8]
MOV qword ptr [R12 + RAX*0x8],RCX
MOV RCX,qword ptr [RBX + 0x60]
MOVSD XMM0,qword ptr [RCX + RAX*0x8]
MOVSD qword ptr [R15 + RAX*0x8],XMM0
INC RAX
CMP R13,RAX
JNZ 0x001287d9
LAB_001287fc:
MOV RDI,qword ptr [RBX + 0x68]
CALL 0x00126040
MOV RDI,qword ptr [RBX + 0x60]
CALL 0x00126040
MOV qword ptr [RBX + 0x68],R12
MOV qword ptr [RBX + 0x60],R15
MOV R13D,dword ptr [RBX + 0x58]
MOVSD XMM0,qword ptr [RSP + 0x8]
JMP 0x00128826
LAB_00128822:
MOV R15,qword ptr [RBX + 0x60]
LAB_00128826:
MOVSXD RAX,R13D
MOVSD qword ptr [R15 + RAX*0x8],XMM0
TEST R14,R14
JZ 0x00128868
MOV RDI,R14
CALL 0x001020d0
INC EAX
MOVSXD RDI,EAX
CALL 0x00124985
MOV RCX,qword ptr [RBX + 0x68]
MOVSXD RDX,dword ptr [RBX + 0x58]
MOV qword ptr [RCX + RDX*0x8],RAX
MOV RAX,qword ptr [RBX + 0x68]
MOV RDI,qword ptr [RAX + RDX*0x8]
MOV RSI,R14
CALL 0x001021b0
MOV R13D,dword ptr [RBX + 0x58]
JMP 0x00128874
LAB_00128868:
MOV RCX,qword ptr [RBX + 0x68]
MOV qword ptr [RCX + RAX*0x8],0x0
LAB_00128874:
INC R13D
MOV dword ptr [RBX + 0x58],R13D
ADD RSP,0x10
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* LefDefParser::lefiPinAntennaModel::addAntennaMaxCutCar(double, char const*) */
void __thiscall
LefDefParser::lefiPinAntennaModel::addAntennaMaxCutCar
(lefiPinAntennaModel *this,double param_1,char *param_2)
{
long lVar1;
long lVar2;
ulong uVar3;
size_t sVar4;
int8 uVar5;
int iVar6;
char *pcVar7;
uint uVar8;
uVar8 = *(uint *)(this + 0x58);
pcVar7 = param_2;
if (uVar8 == *(uint *)(this + 0x5c)) {
iVar6 = 2;
if (uVar8 != 0) {
iVar6 = uVar8 * 2;
}
*(int *)(this + 0x5c) = iVar6;
lVar1 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)param_2);
lVar2 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)pcVar7);
if (0 < (int)uVar8) {
uVar3 = 0;
do {
*(int8 *)(lVar2 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x68) + uVar3 * 8);
*(int8 *)(lVar1 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x60) + uVar3 * 8);
uVar3 = uVar3 + 1;
} while (uVar8 != uVar3);
}
lefFree(*(void **)(this + 0x68));
lefFree(*(void **)(this + 0x60));
*(long *)(this + 0x68) = lVar2;
*(long *)(this + 0x60) = lVar1;
uVar8 = *(uint *)(this + 0x58);
}
else {
lVar1 = *(long *)(this + 0x60);
}
*(double *)(lVar1 + (long)(int)uVar8 * 8) = param_1;
if (param_2 == (char *)0x0) {
*(int8 *)(*(long *)(this + 0x68) + (long)(int)uVar8 * 8) = 0;
}
else {
sVar4 = strlen(param_2);
uVar5 = lefMalloc((LefDefParser *)(long)((int)sVar4 + 1),(ulong)pcVar7);
iVar6 = *(int *)(this + 0x58);
*(int8 *)(*(long *)(this + 0x68) + (long)iVar6 * 8) = uVar5;
strcpy(*(char **)(*(long *)(this + 0x68) + (long)iVar6 * 8),param_2);
uVar8 = *(uint *)(this + 0x58);
}
*(uint *)(this + 0x58) = uVar8 + 1;
return;
}
| |
52,294 | js_load_module_fulfilled | bluesky950520[P]quickjs/quickjs.c | static JSValue js_load_module_fulfilled(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv, int magic, JSValue *func_data)
{
JSValueConst *resolving_funcs = (JSValueConst *)func_data;
JSModuleDef *m = JS_VALUE_GET_PTR(func_data[2]);
JSValue ret, ns;
/* return the module namespace */
ns = JS_GetModuleNamespace(ctx, m);
if (JS_IsException(ns)) {
JSValue err = JS_GetException(ctx);
js_load_module_rejected(ctx, JS_UNDEFINED, 1, (JSValueConst *)&err, 0, func_data);
return JS_UNDEFINED;
}
ret = JS_Call(ctx, resolving_funcs[0], JS_UNDEFINED,
1, (JSValueConst *)&ns);
JS_FreeValue(ctx, ret);
JS_FreeValue(ctx, ns);
return JS_UNDEFINED;
} | O2 | c | js_load_module_fulfilled:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x50(%rsp), %r14
movq 0x20(%r14), %rsi
callq 0x29153
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
cmpl $0x6, %edx
jne 0x3b8e0
movq 0x18(%rbx), %rax
movups 0xf0(%rax), %xmm0
andl $0x0, 0xf0(%rax)
movq $0x4, 0xf8(%rax)
leaq 0x20(%rsp), %r8
movaps %xmm0, (%r8)
movq %r14, (%rsp)
pushq $0x1
popq %rcx
movq %rbx, %rdi
callq 0x3b929
jmp 0x3b91c
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0x10(%rsp), %r14
movq %r14, (%rsp)
pushq $0x3
popq %r8
pushq $0x1
popq %r9
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x21eb6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1801e
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x1801e
pushq $0x3
popq %rdx
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
| js_load_module_fulfilled:
push r14
push rbx
sub rsp, 38h
mov rbx, rdi
mov r14, [rsp+48h+arg_0]
mov rsi, [r14+20h]
call JS_GetModuleNamespace
mov [rsp+48h+var_38], rax
mov [rsp+48h+var_30], rdx
cmp edx, 6
jnz short loc_3B8E0
mov rax, [rbx+18h]
movups xmm0, xmmword ptr [rax+0F0h]
and dword ptr [rax+0F0h], 0
mov qword ptr [rax+0F8h], 4
lea r8, [rsp+48h+var_28]
movaps xmmword ptr [r8], xmm0
mov [rsp+48h+var_48], r14
push 1
pop rcx
mov rdi, rbx
call js_load_module_rejected
jmp short loc_3B91C
loc_3B8E0:
mov rsi, [r14]
mov rdx, [r14+8]
lea r14, [rsp+48h+var_38]
mov [rsp+48h+var_48], r14
push 3
pop r8
push 1
pop r9
mov rdi, rbx
xor ecx, ecx
call JS_Call
mov rdi, rbx
mov rsi, rax
call JS_FreeValue
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, rbx
call JS_FreeValue
loc_3B91C:
push 3
pop rdx
xor eax, eax
add rsp, 38h
pop rbx
pop r14
retn
| long long js_load_module_fulfilled(
long long a1,
double a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14,
_QWORD *a15)
{
long long v15; // rsi
int v16; // r9d
long long v17; // rdx
long long v18; // rax
__int128 v19; // xmm0
long long v20; // rax
long long v21; // rdx
long long ModuleNamespace; // [rsp+10h] [rbp-38h] BYREF
long long v24; // [rsp+18h] [rbp-30h]
__int128 v25; // [rsp+20h] [rbp-28h] BYREF
v15 = a15[4];
ModuleNamespace = JS_GetModuleNamespace(a1, v15, a2, a3, a4, a5, a6, a7, a8, a9);
v24 = v17;
if ( (_DWORD)v17 == 6 )
{
v18 = *(_QWORD *)(a1 + 24);
v19 = *(_OWORD *)(v18 + 240);
*(_DWORD *)(v18 + 240) = 0;
*(_QWORD *)(v18 + 248) = 4LL;
v25 = v19;
js_load_module_rejected(a1, v15, 6, 1, (int)&v25, v16, (long long)a15);
}
else
{
v20 = JS_Call(a1, *a15, a15[1], 0, 3, 1, (long long)&ModuleNamespace);
JS_FreeValue(a1, v20, v21);
JS_FreeValue(a1, ModuleNamespace, v24);
}
return 0LL;
}
| js_load_module_fulfilled:
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV R14,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [R14 + 0x20]
CALL 0x00129153
MOV qword ptr [RSP + 0x10],RAX
MOV qword ptr [RSP + 0x18],RDX
CMP EDX,0x6
JNZ 0x0013b8e0
MOV RAX,qword ptr [RBX + 0x18]
MOVUPS XMM0,xmmword ptr [RAX + 0xf0]
AND dword ptr [RAX + 0xf0],0x0
MOV qword ptr [RAX + 0xf8],0x4
LEA R8,[RSP + 0x20]
MOVAPS xmmword ptr [R8],XMM0
MOV qword ptr [RSP],R14
PUSH 0x1
POP RCX
MOV RDI,RBX
CALL 0x0013b929
JMP 0x0013b91c
LAB_0013b8e0:
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LEA R14,[RSP + 0x10]
MOV qword ptr [RSP],R14
PUSH 0x3
POP R8
PUSH 0x1
POP R9
MOV RDI,RBX
XOR ECX,ECX
CALL 0x00121eb6
MOV RDI,RBX
MOV RSI,RAX
CALL 0x0011801e
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
MOV RDI,RBX
CALL 0x0011801e
LAB_0013b91c:
PUSH 0x3
POP RDX
XOR EAX,EAX
ADD RSP,0x38
POP RBX
POP R14
RET
|
int1 [16] js_load_module_fulfilled(long param_1)
{
long lVar1;
int8 uVar2;
int8 *in_stack_00000008;
int1 local_38 [16];
int4 local_28;
int4 uStack_24;
int4 uStack_20;
int4 uStack_1c;
local_38 = JS_GetModuleNamespace(param_1,in_stack_00000008[4]);
if (local_38._8_4_ == 6) {
lVar1 = *(long *)(param_1 + 0x18);
local_28 = *(int4 *)(lVar1 + 0xf0);
uStack_24 = *(int4 *)(lVar1 + 0xf4);
uStack_20 = *(int4 *)(lVar1 + 0xf8);
uStack_1c = *(int4 *)(lVar1 + 0xfc);
*(int4 *)(lVar1 + 0xf0) = 0;
*(int8 *)(lVar1 + 0xf8) = 4;
js_load_module_rejected(param_1);
}
else {
uVar2 = JS_Call(param_1,*in_stack_00000008,in_stack_00000008[1],0,3,1,local_38);
JS_FreeValue(param_1,uVar2);
JS_FreeValue(param_1,local_38._0_8_,local_38._8_8_);
}
return ZEXT816(3) << 0x40;
}
| |
52,295 | init_alloc_root | eloqsql/mysys/my_alloc.c | void init_alloc_root(PSI_memory_key key, MEM_ROOT *mem_root, size_t block_size,
size_t pre_alloc_size __attribute__((unused)),
myf my_flags)
{
DBUG_ENTER("init_alloc_root");
DBUG_PRINT("enter",("root: %p prealloc: %zu", mem_root, pre_alloc_size));
mem_root->free= mem_root->used= mem_root->pre_alloc= 0;
mem_root->min_malloc= 32;
mem_root->block_size= (block_size - ALLOC_ROOT_MIN_BLOCK_SIZE) & ~1;
if (my_flags & MY_THREAD_SPECIFIC)
mem_root->block_size|= 1;
mem_root->error_handler= 0;
mem_root->block_num= 4; /* We shift this with >>2 */
mem_root->first_block_usage= 0;
mem_root->m_psi_key= key;
#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->free= mem_root->pre_alloc=
(USED_MEM*) my_malloc(key, size, MYF(my_flags))))
{
mem_root->free->size= size;
mem_root->free->left= pre_alloc_size;
mem_root->free->next= 0;
TRASH_MEM(mem_root->free);
}
}
#endif
DBUG_VOID_RETURN;
} | O0 | c | init_alloc_root:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
jmp 0x6915d
movq -0x10(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x10(%rbp), %rax
movq $0x20, 0x18(%rax)
movq -0x18(%rbp), %rcx
subq $0x28, %rcx
andq $-0x2, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x28(%rbp), %rax
andq $0x10000, %rax # imm = 0x10000
cmpq $0x0, %rax
je 0x691c0
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rcx
orq $0x1, %rcx
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movl $0x4, 0x28(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x2c(%rax)
movl -0x4(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x38(%rax)
cmpq $0x0, -0x20(%rbp)
je 0x6925a
movq -0x20(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x30(%rbp)
movl -0x4(%rbp), %edi
movq -0x30(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x59ed0
movq -0x10(%rbp), %rcx
movq %rax, 0x10(%rcx)
movq -0x10(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
je 0x69258
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
jmp 0x69252
jmp 0x69254
jmp 0x69256
jmp 0x69258
jmp 0x6925a
jmp 0x6925c
jmp 0x6925e
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| init_alloc_root:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
jmp short $+2
loc_6915D:
mov rax, [rbp+var_10]
mov qword ptr [rax+10h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_10]
mov qword ptr [rax], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 20h ; ' '
mov rcx, [rbp+var_18]
sub rcx, 28h ; '('
and rcx, 0FFFFFFFFFFFFFFFEh
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_28]
and rax, 10000h
cmp rax, 0
jz short loc_691C0
mov rax, [rbp+var_10]
mov rcx, [rax+20h]
or rcx, 1
mov [rax+20h], rcx
loc_691C0:
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 4
mov rax, [rbp+var_10]
mov dword ptr [rax+2Ch], 0
mov ecx, [rbp+var_4]
mov rax, [rbp+var_10]
mov [rax+38h], ecx
cmp [rbp+var_20], 0
jz short loc_6925A
mov rax, [rbp+var_20]
add rax, 18h
mov [rbp+var_30], rax
mov edi, [rbp+var_4]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_28]
call my_malloc
mov rcx, [rbp+var_10]
mov [rcx+10h], rax
mov rcx, [rbp+var_10]
mov [rcx], rax
cmp rax, 0
jz short loc_69258
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+10h], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax], 0
jmp short $+2
loc_69252:
jmp short $+2
loc_69254:
jmp short $+2
loc_69256:
jmp short $+2
loc_69258:
jmp short $+2
loc_6925A:
jmp short $+2
loc_6925C:
jmp short $+2
loc_6925E:
add rsp, 30h
pop rbp
retn
| long long init_alloc_root(unsigned int a1, long long *a2, long long a3, long long a4, int a5)
{
long long result; // rax
a2[2] = 0LL;
a2[1] = 0LL;
*a2 = 0LL;
a2[3] = 32LL;
a2[4] = (a3 - 40) & 0xFFFFFFFFFFFFFFFELL;
if ( (a5 & 0x10000) != 0 )
a2[4] |= 1uLL;
a2[6] = 0LL;
*((_DWORD *)a2 + 10) = 4;
*((_DWORD *)a2 + 11) = 0;
result = (long long)a2;
*((_DWORD *)a2 + 14) = a1;
if ( a4 )
{
result = my_malloc(a1, a4 + 24, a5);
a2[2] = result;
*a2 = result;
if ( result )
{
*(_QWORD *)(*a2 + 16) = a4 + 24;
*(_QWORD *)(*a2 + 8) = a4;
result = *a2;
*(_QWORD *)*a2 = 0LL;
}
}
return result;
}
| init_alloc_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
JMP 0x0016915d
LAB_0016915d:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x20
MOV RCX,qword ptr [RBP + -0x18]
SUB RCX,0x28
AND RCX,-0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x10000
CMP RAX,0x0
JZ 0x001691c0
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RAX + 0x20]
OR RCX,0x1
MOV qword ptr [RAX + 0x20],RCX
LAB_001691c0:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x4
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],0x0
MOV ECX,dword ptr [RBP + -0x4]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x38],ECX
CMP qword ptr [RBP + -0x20],0x0
JZ 0x0016925a
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x18
MOV qword ptr [RBP + -0x30],RAX
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x28]
CALL 0x00159ed0
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x10],RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JZ 0x00169258
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x10],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],0x0
JMP 0x00169252
LAB_00169252:
JMP 0x00169254
LAB_00169254:
JMP 0x00169256
LAB_00169256:
JMP 0x00169258
LAB_00169258:
JMP 0x0016925a
LAB_0016925a:
JMP 0x0016925c
LAB_0016925c:
JMP 0x0016925e
LAB_0016925e:
ADD RSP,0x30
POP RBP
RET
|
void init_alloc_root(int4 param_1,long *param_2,long param_3,long param_4,ulong param_5)
{
long lVar1;
param_2[2] = 0;
param_2[1] = 0;
*param_2 = 0;
param_2[3] = 0x20;
param_2[4] = param_3 - 0x28U & 0xfffffffffffffffe;
if ((param_5 & 0x10000) != 0) {
param_2[4] = param_2[4] | 1;
}
param_2[6] = 0;
*(int4 *)(param_2 + 5) = 4;
*(int4 *)((long)param_2 + 0x2c) = 0;
*(int4 *)(param_2 + 7) = param_1;
if (param_4 != 0) {
lVar1 = my_malloc(param_1,param_4 + 0x18,param_5);
param_2[2] = lVar1;
*param_2 = lVar1;
if (lVar1 != 0) {
*(long *)(*param_2 + 0x10) = param_4 + 0x18;
*(long *)(*param_2 + 8) = param_4;
*(int8 *)*param_2 = 0;
}
}
return;
}
| |
52,296 | cr_realloc | bluesky950520[P]quickjs/libunicode.c | int cr_realloc(CharRange *cr, int size)
{
int new_size;
uint32_t *new_buf;
if (size > cr->size) {
new_size = max_int(size, cr->size * 3 / 2);
new_buf = cr->realloc_func(cr->mem_opaque, cr->points,
new_size * sizeof(cr->points[0]));
if (!new_buf)
return -1;
cr->points = new_buf;
cr->size = new_size;
}
return 0;
} | O2 | c | cr_realloc:
pushq %rbp
pushq %r14
pushq %rbx
movl 0x4(%rdi), %eax
xorl %ebx, %ebx
cmpl %esi, %eax
jge 0x7f471
movq %rdi, %r14
leal (%rax,%rax,2), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %ebp
cmpl %eax, %esi
cmovgl %esi, %ebp
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rdi
movslq %ebp, %rdx
shlq $0x2, %rdx
callq *0x18(%r14)
testq %rax, %rax
je 0x7f46e
movq %rax, 0x8(%r14)
movl %ebp, 0x4(%r14)
jmp 0x7f471
pushq $-0x1
popq %rbx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
| cr_realloc:
push rbp
push r14
push rbx
mov eax, [rdi+4]
xor ebx, ebx
cmp eax, esi
jge short loc_7F471
mov r14, rdi
lea eax, [rax+rax*2]
push 2
pop rcx
cdq
idiv ecx
mov ebp, eax
cmp esi, eax
cmovg ebp, esi
mov rsi, [rdi+8]
mov rdi, [rdi+10h]
movsxd rdx, ebp
shl rdx, 2
call qword ptr [r14+18h]
test rax, rax
jz short loc_7F46E
mov [r14+8], rax
mov [r14+4], ebp
jmp short loc_7F471
loc_7F46E:
push 0FFFFFFFFFFFFFFFFh
pop rbx
loc_7F471:
mov eax, ebx
pop rbx
pop r14
pop rbp
retn
| long long cr_realloc(long long a1, int a2)
{
int v2; // eax
unsigned int v3; // ebx
int v4; // ebp
long long v5; // rax
v2 = *(_DWORD *)(a1 + 4);
v3 = 0;
if ( v2 < a2 )
{
v4 = 3 * v2 / 2;
if ( a2 > v4 )
v4 = a2;
v5 = (*(long long ( **)(_QWORD, _QWORD, long long))(a1 + 24))(
*(_QWORD *)(a1 + 16),
*(_QWORD *)(a1 + 8),
4LL * v4);
if ( v5 )
{
*(_QWORD *)(a1 + 8) = v5;
*(_DWORD *)(a1 + 4) = v4;
}
else
{
return (unsigned int)-1;
}
}
return v3;
}
| cr_realloc:
PUSH RBP
PUSH R14
PUSH RBX
MOV EAX,dword ptr [RDI + 0x4]
XOR EBX,EBX
CMP EAX,ESI
JGE 0x0017f471
MOV R14,RDI
LEA EAX,[RAX + RAX*0x2]
PUSH 0x2
POP RCX
CDQ
IDIV ECX
MOV EBP,EAX
CMP ESI,EAX
CMOVG EBP,ESI
MOV RSI,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RDI + 0x10]
MOVSXD RDX,EBP
SHL RDX,0x2
CALL qword ptr [R14 + 0x18]
TEST RAX,RAX
JZ 0x0017f46e
MOV qword ptr [R14 + 0x8],RAX
MOV dword ptr [R14 + 0x4],EBP
JMP 0x0017f471
LAB_0017f46e:
PUSH -0x1
POP RBX
LAB_0017f471:
MOV EAX,EBX
POP RBX
POP R14
POP RBP
RET
|
int4 cr_realloc(long param_1,int param_2)
{
int iVar1;
long lVar2;
int4 uVar3;
uVar3 = 0;
if (*(int *)(param_1 + 4) < param_2) {
iVar1 = (*(int *)(param_1 + 4) * 3) / 2;
if (iVar1 < param_2) {
iVar1 = param_2;
}
lVar2 = (**(code **)(param_1 + 0x18))
(*(int8 *)(param_1 + 0x10),*(int8 *)(param_1 + 8),(long)iVar1 << 2
);
if (lVar2 == 0) {
uVar3 = 0xffffffff;
}
else {
*(long *)(param_1 + 8) = lVar2;
*(int *)(param_1 + 4) = iVar1;
}
}
return uVar3;
}
| |
52,297 | aimrt::rpc::ContextRef::GetMetaKeys() const | aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/rpc/rpc_context.h | std::vector<std::string_view> GetMetaKeys() const {
AIMRT_ASSERT(base_ptr_ && base_ptr_->ops, "Reference is null.");
auto [str_array, len] = base_ptr_->ops->get_meta_keys(base_ptr_->impl);
std::vector<std::string_view> result;
result.reserve(len);
for (size_t ii = 0; ii < len; ++ii)
result.emplace_back(aimrt::util::ToStdStringView(str_array[ii]));
return result;
} | O0 | c | aimrt::rpc::ContextRef::GetMetaKeys() const:
subq $0x158, %rsp # imm = 0x158
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0xb8(%rsp)
movq %rsi, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2f55ae
movq 0x28(%rsp), %rax
movq (%rax), %rax
cmpq $0x0, (%rax)
jne 0x2f579c
movb $0x1, 0x73(%rsp)
movl $0x28, %edi
callq 0x192f50
movq %rax, (%rsp)
leaq 0x2e8bf2(%rip), %rax # 0x5de1ba
movq %rax, 0x80(%rsp)
movq $0x12, 0x88(%rsp)
movq 0x80(%rsp), %rcx
movq 0x88(%rsp), %rax
leaq 0x90(%rsp), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, 0xf0(%rsp)
movq %rax, 0xf8(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
movups (%rax), %xmm0
movaps %xmm0, 0x110(%rsp)
movq 0x110(%rsp), %rcx
movq 0x118(%rsp), %rax
movq %rcx, 0xe0(%rsp)
movq %rax, 0xe8(%rsp)
callq 0x1e2570
movq %rdx, 0x8(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x2f5660
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movq %rax, 0xc8(%rsp)
leaq 0xd0(%rsp), %rax
movq %rax, 0x130(%rsp)
leaq 0xc0(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x130(%rsp), %rcx
movq 0x128(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x138(%rsp), %rax
movq %rcx, 0x150(%rsp)
movq $0x0, 0x148(%rsp)
movq %rax, 0x140(%rsp)
movq 0x150(%rsp), %rax
movq 0x148(%rsp), %rcx
movq %rcx, (%rax)
movq 0x140(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0xd0(%rsp), %rcx
movq 0xd8(%rsp), %r8
leaq 0x90(%rsp), %rdi
callq 0x1a94c0
jmp 0x2f5724
jmp 0x2f5726
movq (%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x1ddce0
jmp 0x2f5739
movq (%rsp), %rdi
movb $0x0, 0x73(%rsp)
leaq 0x44adc7(%rip), %rsi # 0x740510
leaq -0x117a20(%rip), %rdx # 0x1ddd30
callq 0x198050
jmp 0x2f588c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x2f5785
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x90(%rsp), %rdi
callq 0x1a7610
testb $0x1, 0x73(%rsp)
jne 0x2f578e
jmp 0x2f5797
movq (%rsp), %rdi
callq 0x19ea50
jmp 0x2f5882
jmp 0x2f579e
movq 0x28(%rsp), %rax
movq (%rax), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdi
movq 0x38(%rax), %rax
callq *%rax
movq 0x18(%rsp), %rdi
movq %rax, 0x60(%rsp)
movq %rdx, 0x68(%rsp)
movb $0x0, 0x5f(%rsp)
callq 0x199fc0
movq 0x18(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x195910
jmp 0x2f57dd
movq $0x0, 0x50(%rsp)
movq 0x50(%rsp), %rax
cmpq 0x68(%rsp), %rax
jae 0x2f585f
movq 0x60(%rsp), %rax
movq 0x50(%rsp), %rcx
shlq $0x4, %rcx
movups (%rax,%rcx), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x216710
movq 0x18(%rsp), %rdi
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
leaq 0x40(%rsp), %rsi
callq 0x1a7180
jmp 0x2f5833
jmp 0x2f5835
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x2f57e6
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
callq 0x1a5450
jmp 0x2f5882
movb $0x1, 0x5f(%rsp)
testb $0x1, 0x5f(%rsp)
jne 0x2f5875
movq 0x18(%rsp), %rdi
callq 0x1a5450
movq 0x20(%rsp), %rax
addq $0x158, %rsp # imm = 0x158
retq
movq 0x78(%rsp), %rdi
callq 0x198ce0
nopl (%rax)
| _ZNK5aimrt3rpc10ContextRef11GetMetaKeysEv:
sub rsp, 158h
mov [rsp+158h+var_140], rdi
mov rax, rdi
mov [rsp+158h+var_138], rax
mov [rsp+158h+var_A0], rdi
mov [rsp+158h+var_A8], rsi
mov rax, [rsp+158h+var_A8]
mov [rsp+158h+var_130], rax
mov rax, [rsp+158h+var_130]
cmp qword ptr [rax], 0
jz short loc_2F55AE
mov rax, [rsp+158h+var_130]
mov rax, [rax]
cmp qword ptr [rax], 0
jnz loc_2F579C
loc_2F55AE:
mov [rsp+158h+var_E5], 1
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov [rsp+158h+var_158], rax
lea rax, aReferenceIsNul; "Reference is null."
mov [rsp+158h+var_D8], rax
mov [rsp+158h+var_D0], 12h
mov rcx, [rsp+158h+var_D8]
mov rax, [rsp+158h+var_D0]
lea rdx, [rsp+158h+var_C8]
mov [rsp+158h+var_58], rdx
mov [rsp+158h+var_68], rcx
mov [rsp+158h+var_60], rax
lea rax, [rsp+158h+var_68]
mov [rsp+158h+var_50], rax
mov rax, [rsp+158h+var_50]
movups xmm0, xmmword ptr [rax]
movaps [rsp+158h+var_48], xmm0
mov rcx, qword ptr [rsp+158h+var_48]
mov rax, qword ptr [rsp+158h+var_48+8]
mov [rsp+158h+var_78], rcx
mov [rsp+158h+var_70], rax
call _ZN3fmt3v1016make_format_argsINS0_20basic_format_contextINS0_8appenderEcEEJEEENS0_16format_arg_storeIT_JDpNSt9remove_cvINSt16remove_referenceIT0_E4typeEE4typeEEEEDpRS9_
mov [rsp+158h+var_150], rdx
mov [rsp+158h+var_148], rax
jmp short $+2
loc_2F5660:
mov rax, [rsp+158h+var_150]
mov rcx, [rsp+158h+var_148]
mov [rsp+158h+var_98], rcx
mov [rsp+158h+var_90], rax
lea rax, [rsp+158h+var_88]
mov [rsp+158h+var_28], rax
lea rax, [rsp+158h+var_98]
mov [rsp+158h+var_30], rax
mov rcx, [rsp+158h+var_28]
mov rax, [rsp+158h+var_30]
mov [rsp+158h+var_20], rax
mov rax, [rsp+158h+var_20]
mov [rsp+158h+var_8], rcx
mov [rsp+158h+var_10], 0
mov [rsp+158h+var_18], rax
mov rax, [rsp+158h+var_8]
mov rcx, [rsp+158h+var_10]
mov [rax], rcx
mov rcx, [rsp+158h+var_18]
mov [rax+8], rcx
mov rsi, [rsp+158h+var_78]
mov rdx, [rsp+158h+var_70]
mov rcx, [rsp+158h+var_88]
mov r8, [rsp+158h+var_80]
lea rdi, [rsp+158h+var_C8]
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
jmp short $+2
loc_2F5724:
jmp short $+2
loc_2F5726:
mov rdi, [rsp+158h+var_158]
lea rsi, [rsp+158h+var_C8]
call _ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_
jmp short $+2
loc_2F5739:
mov rdi, [rsp+158h+var_158]; void *
mov [rsp+158h+var_E5], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_2F588C
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_2F5785
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_88]; void *
call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_2F5785:
test [rsp+arg_6B], 1
jnz short loc_2F578E
jmp short loc_2F5797
loc_2F578E:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_2F5797:
jmp loc_2F5882
loc_2F579C:
jmp short $+2
loc_2F579E:
mov rax, [rsp+158h+var_130]
mov rcx, [rax]
mov rax, [rcx]
mov rdi, [rcx+8]
mov rax, [rax+38h]
call rax
mov rdi, [rsp+158h+var_140]
mov [rsp+158h+var_F8], rax
mov [rsp+158h+var_F0], rdx
mov [rsp+158h+var_F9], 0
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EEC2Ev; std::vector<std::string_view>::vector(void)
mov rdi, [rsp+158h+var_140]
mov rsi, [rsp+158h+var_F0]
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE7reserveEm; std::vector<std::string_view>::reserve(ulong)
jmp short $+2
loc_2F57DD:
mov [rsp+158h+var_108], 0
loc_2F57E6:
mov rax, [rsp+158h+var_108]
cmp rax, [rsp+158h+var_F0]
jnb short loc_2F585F
mov rax, [rsp+158h+var_F8]
mov rcx, [rsp+158h+var_108]
shl rcx, 4
movups xmm0, xmmword ptr [rax+rcx]
movaps [rsp+158h+var_128], xmm0
mov rdi, qword ptr [rsp+158h+var_128]
mov rsi, qword ptr [rsp+158h+var_128+8]
call _ZN5aimrt4util15ToStdStringViewE19aimrt_string_view_t; aimrt::util::ToStdStringView(aimrt_string_view_t)
mov rdi, [rsp+158h+var_140]
mov [rsp+158h+var_118], rax
mov [rsp+158h+var_110], rdx
lea rsi, [rsp+158h+var_118]
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE12emplace_backIJS3_EEERS3_DpOT_; std::vector<std::string_view>::emplace_back<std::string_view>(std::string_view &&)
jmp short $+2
loc_2F5833:
jmp short $+2
loc_2F5835:
mov rax, [rsp+158h+var_108]
add rax, 1
mov [rsp+158h+var_108], rax
jmp short loc_2F57E6
mov rdi, [rsp+arg_10]
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EED2Ev; std::vector<std::string_view>::~vector()
jmp short loc_2F5882
loc_2F585F:
mov [rsp+158h+var_F9], 1
test [rsp+158h+var_F9], 1
jnz short loc_2F5875
mov rdi, [rsp+158h+var_140]
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EED2Ev; std::vector<std::string_view>::~vector()
loc_2F5875:
mov rax, [rsp+158h+var_138]
add rsp, 158h
retn
loc_2F5882:
mov rdi, [rsp+arg_70]
call __Unwind_Resume
loc_2F588C:
nop dword ptr [rax+00h]
| aimrt::rpc::ContextRef * aimrt::rpc::ContextRef::GetMetaKeys(aimrt::rpc::ContextRef *this, long long a2)
{
long long v2; // rdx
unsigned long long v3; // rdx
long long v4; // rdx
std::exception *exception; // [rsp+0h] [rbp-158h]
_QWORD v7[2]; // [rsp+40h] [rbp-118h] BYREF
unsigned long long i; // [rsp+50h] [rbp-108h]
char v9; // [rsp+5Fh] [rbp-F9h]
long long v10; // [rsp+60h] [rbp-F8h]
unsigned long long v11; // [rsp+68h] [rbp-F0h]
char v12; // [rsp+73h] [rbp-E5h]
const char *v13; // [rsp+80h] [rbp-D8h]
long long v14; // [rsp+88h] [rbp-D0h]
_BYTE v15[32]; // [rsp+90h] [rbp-C8h] BYREF
long long v16; // [rsp+B0h] [rbp-A8h]
aimrt::rpc::ContextRef *v17; // [rsp+B8h] [rbp-A0h]
_QWORD v18[2]; // [rsp+C0h] [rbp-98h] BYREF
_QWORD v19[2]; // [rsp+D0h] [rbp-88h] BYREF
__int128 v20; // [rsp+E0h] [rbp-78h]
__int128 v21; // [rsp+F0h] [rbp-68h] BYREF
_BYTE *v22; // [rsp+100h] [rbp-58h]
__int128 *v23; // [rsp+108h] [rbp-50h]
__int128 v24; // [rsp+110h] [rbp-48h]
_QWORD *v25; // [rsp+128h] [rbp-30h]
_QWORD *v26; // [rsp+130h] [rbp-28h]
_QWORD *v27; // [rsp+138h] [rbp-20h]
_QWORD *v28; // [rsp+140h] [rbp-18h]
long long v29; // [rsp+148h] [rbp-10h]
_QWORD *v30; // [rsp+150h] [rbp-8h]
v17 = this;
v16 = a2;
if ( !*(_QWORD *)a2 || !**(_QWORD **)a2 )
{
exception = (std::exception *)__cxa_allocate_exception(0x28uLL);
v13 = "Reference is null.";
v14 = 18LL;
v22 = v15;
*(_QWORD *)&v21 = "Reference is null.";
*((_QWORD *)&v21 + 1) = 18LL;
v23 = &v21;
v24 = v21;
v20 = v21;
v18[0] = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>();
v18[1] = v2;
v26 = v19;
v25 = v18;
v27 = v18;
v30 = v19;
v29 = 0LL;
v28 = v18;
v19[0] = 0LL;
v19[1] = v18;
fmt::v10::vformat[abi:cxx11]((long long)v15, v20, *((long long *)&v20 + 1), 0LL, (long long)v18);
ZN5aimrt6common4util14AimRTExceptionC2IJNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEQsr3stdE18constructible_fromIS9_DpT_EEEDpOSA_(
exception,
(long long)v15);
v12 = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
v10 = (*(long long ( **)(_QWORD))(**(_QWORD **)a2 + 56LL))(*(_QWORD *)(*(_QWORD *)a2 + 8LL));
v11 = v3;
v9 = 0;
std::vector<std::string_view>::vector(this);
std::vector<std::string_view>::reserve(this, v11);
for ( i = 0LL; i < v11; ++i )
{
v7[0] = aimrt::util::ToStdStringView(*(_QWORD *)(v10 + 16 * i), *(_QWORD *)(v10 + 16 * i + 8));
v7[1] = v4;
std::vector<std::string_view>::emplace_back<std::string_view>(this, v7);
}
return this;
}
| |||
52,298 | aimrt::rpc::ContextRef::GetMetaKeys() const | aimrt_mujoco_sim/_deps/aimrt-src/src/interface/aimrt_module_cpp_interface/../aimrt_module_cpp_interface/rpc/rpc_context.h | std::vector<std::string_view> GetMetaKeys() const {
AIMRT_ASSERT(base_ptr_ && base_ptr_->ops, "Reference is null.");
auto [str_array, len] = base_ptr_->ops->get_meta_keys(base_ptr_->impl);
std::vector<std::string_view> result;
result.reserve(len);
for (size_t ii = 0; ii < len; ++ii)
result.emplace_back(aimrt::util::ToStdStringView(str_array[ii]));
return result;
} | O3 | c | aimrt::rpc::ContextRef::GetMetaKeys() const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq (%rsi), %rax
testq %rax, %rax
je 0xfed51
movq (%rax), %rcx
testq %rcx, %rcx
je 0xfed51
movq %rdi, %rbx
movq 0x8(%rax), %rdi
callq *0x38(%rcx)
movq %rax, %r14
movq %rdx, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x84060
testq %r15, %r15
je 0xfed42
addq $0x8, %r14
movq %rsp, %r12
movq -0x8(%r14), %rax
movq (%r14), %rcx
movq %rcx, (%rsp)
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xfed2e
movups (%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0xfed39
movq %rbx, %rdi
movq %r12, %rdx
callq 0x83ad0
addq $0x10, %r14
decq %r15
jne 0xfed06
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x28, %edi
callq 0x80f20
movq %rax, %rbx
leaq 0xf1d42(%rip), %rsi # 0x1f0aa7
movq %rsp, %rdi
leaq 0x20(%rsp), %r8
movl $0x12, %edx
xorl %ecx, %ecx
callq 0x9b9c8
leaq 0x1981a8(%rip), %rax # 0x296f28
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rcx
cmpq %r15, %rcx
jne 0xfeda5
movups (%r15), %xmm0
movups %xmm0, (%rax)
jmp 0xfedb2
movq %rcx, 0x8(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, (%rsp)
movq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x19806c(%rip), %rsi # 0x296e40
leaq -0x64279(%rip), %rdx # 0x9ab62
movq %rbx, %rdi
callq 0x83970
jmp 0xfede5
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xfee1f
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
jmp 0xfee0d
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0xfee1f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x82190
jmp 0xfee1f
movq %rax, %r14
movq %rbx, %rdi
callq 0x816f0
movq %r14, %rdi
callq 0x83b70
nop
| _ZNK5aimrt3rpc10ContextRef11GetMetaKeysEv:
push r15
push r14
push r12
push rbx
sub rsp, 38h
mov rax, [rsi]
test rax, rax
jz loc_FED51
mov rcx, [rax]
test rcx, rcx
jz loc_FED51
mov rbx, rdi
mov rdi, [rax+8]
call qword ptr [rcx+38h]
mov r14, rax
mov r15, rdx
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
mov qword ptr [rbx+10h], 0
mov rdi, rbx
mov rsi, rdx
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE7reserveEm; std::vector<std::string_view>::reserve(ulong)
test r15, r15
jz short loc_FED42
add r14, 8
mov r12, rsp
loc_FED06:
mov rax, [r14-8]
mov rcx, [r14]
mov [rsp+58h+var_58], rcx
mov [rsp+58h+var_58+8], rax
mov rsi, [rbx+8]
cmp rsi, [rbx+10h]
jz short loc_FED2E
movups xmm0, xmmword ptr [rsp+58h+var_58]
movups xmmword ptr [rsi], xmm0
add qword ptr [rbx+8], 10h
jmp short loc_FED39
loc_FED2E:
mov rdi, rbx
mov rdx, r12
call __ZNSt6vectorISt17basic_string_viewIcSt11char_traitsIcEESaIS3_EE17_M_realloc_insertIJS3_EEEvN9__gnu_cxx17__normal_iteratorIPS3_S5_EEDpOT_; std::vector<std::string_view>::_M_realloc_insert<std::string_view>(__gnu_cxx::__normal_iterator<std::string_view*,std::vector<std::string_view>>,std::string_view &&)
loc_FED39:
add r14, 10h
dec r15
jnz short loc_FED06
loc_FED42:
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r14
pop r15
retn
loc_FED51:
mov edi, 28h ; '('; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rsi, aReferenceIsNul; "Reference is null."
mov rdi, rsp; int
lea r8, [rsp+58h+var_38]; int
mov edx, 12h; int
xor ecx, ecx; int
call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>)
lea rax, off_296F28
mov [rbx], rax
mov rax, rbx
add rax, 18h
mov [rbx+8], rax
lea r15, [rsp+58h+var_48]
mov rcx, [r15-10h]
cmp rcx, r15
jnz short loc_FEDA5
movups xmm0, xmmword ptr [r15]
movups xmmword ptr [rax], xmm0
jmp short loc_FEDB2
loc_FEDA5:
mov [rbx+8], rcx
mov rax, [rsp+58h+var_48]
mov [rbx+18h], rax
loc_FEDB2:
mov rax, [rsp+58h+var_58+8]
mov [rbx+10h], rax
mov [rsp+58h+var_58], r15
mov [rsp+58h+var_58+8], 0
mov byte ptr [rsp+58h+var_48], 0
lea rsi, _ZTIN5aimrt6common4util14AimRTExceptionE; lptinfo
lea rdx, _ZN5aimrt6common4util14AimRTExceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short $+2
loc_FEDE5:
mov r14, rax
mov rdi, [rbx]
test rdi, rdi
jz short loc_FEE1F
mov rsi, [rbx+10h]
sub rsi, rdi
jmp short loc_FEE0D
mov r14, rax
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r15
jz short loc_FEE1F
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
loc_FEE0D:
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_FEE1F
mov r14, rax
mov rdi, rbx; void *
call ___cxa_free_exception
loc_FEE1F:
mov rdi, r14
call __Unwind_Resume
| aimrt::rpc::ContextRef * aimrt::rpc::ContextRef::GetMetaKeys(aimrt::rpc::ContextRef *this, _QWORD **a2)
{
_QWORD *v2; // rax
long long v3; // r14
long long v4; // rdx
long long v5; // r15
void **v6; // r14
void *v7; // rax
_OWORD *v8; // rsi
char *exception; // rbx
void *v11[2]; // [rsp+0h] [rbp-58h] BYREF
__int128 v12; // [rsp+10h] [rbp-48h] BYREF
int v13[14]; // [rsp+20h] [rbp-38h] BYREF
v2 = *a2;
if ( !*a2 || !*v2 )
{
exception = (char *)__cxa_allocate_exception(0x28uLL);
fmt::v10::vformat[abi:cxx11](v11, "Reference is null.", 18LL, 0LL, (long long)v13);
*(_QWORD *)exception = off_296F28;
*((_QWORD *)exception + 1) = exception + 24;
if ( v11[0] == &v12 )
{
*(_OWORD *)(exception + 24) = v12;
}
else
{
*((void **)exception + 1) = v11[0];
*((_QWORD *)exception + 3) = v12;
}
*((void **)exception + 2) = v11[1];
v11[0] = &v12;
v11[1] = 0LL;
LOBYTE(v12) = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'aimrt::common::util::AimRTException,
(void (*)(void *))aimrt::common::util::AimRTException::~AimRTException);
}
v3 = (*(long long ( **)(_QWORD))(*v2 + 56LL))(v2[1]);
v5 = v4;
*(_OWORD *)this = 0LL;
*((_QWORD *)this + 2) = 0LL;
std::vector<std::string_view>::reserve(this, v4);
if ( v5 )
{
v6 = (void **)(v3 + 8);
do
{
v7 = *(v6 - 1);
v11[0] = *v6;
v11[1] = v7;
v8 = (_OWORD *)*((_QWORD *)this + 1);
if ( v8 == *((_OWORD **)this + 2) )
{
std::vector<std::string_view>::_M_realloc_insert<std::string_view>(this, v8, v11);
}
else
{
*v8 = *(_OWORD *)v11;
*((_QWORD *)this + 1) += 16LL;
}
v6 += 2;
--v5;
}
while ( v5 );
}
return this;
}
| GetMetaKeys:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RAX,qword ptr [RSI]
TEST RAX,RAX
JZ 0x001fed51
MOV RCX,qword ptr [RAX]
TEST RCX,RCX
JZ 0x001fed51
MOV RBX,RDI
MOV RDI,qword ptr [RAX + 0x8]
CALL qword ptr [RCX + 0x38]
MOV R14,RAX
MOV R15,RDX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [RBX + 0x10],0x0
LAB_001fecef:
MOV RDI,RBX
MOV RSI,RDX
CALL 0x00184060
TEST R15,R15
JZ 0x001fed42
ADD R14,0x8
MOV R12,RSP
LAB_001fed06:
MOV RAX,qword ptr [R14 + -0x8]
MOV RCX,qword ptr [R14]
MOV qword ptr [RSP],RCX
MOV qword ptr [RSP + 0x8],RAX
MOV RSI,qword ptr [RBX + 0x8]
CMP RSI,qword ptr [RBX + 0x10]
JZ 0x001fed2e
MOVUPS XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RSI],XMM0
ADD qword ptr [RBX + 0x8],0x10
JMP 0x001fed39
LAB_001fed2e:
MOV RDI,RBX
MOV RDX,R12
CALL 0x00183ad0
LAB_001fed39:
ADD R14,0x10
DEC R15
JNZ 0x001fed06
LAB_001fed42:
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001fed51:
MOV EDI,0x28
CALL 0x00180f20
MOV RBX,RAX
LAB_001fed5e:
LEA RSI,[0x2f0aa7]
MOV RDI,RSP
LEA R8,[RSP + 0x20]
MOV EDX,0x12
XOR ECX,ECX
CALL 0x0019b9c8
LEA RAX,[0x396f28]
MOV qword ptr [RBX],RAX
MOV RAX,RBX
ADD RAX,0x18
MOV qword ptr [RBX + 0x8],RAX
LEA R15,[RSP + 0x10]
MOV RCX,qword ptr [R15 + -0x10]
CMP RCX,R15
JNZ 0x001feda5
MOVUPS XMM0,xmmword ptr [R15]
MOVUPS xmmword ptr [RAX],XMM0
JMP 0x001fedb2
LAB_001feda5:
MOV qword ptr [RBX + 0x8],RCX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x18],RAX
LAB_001fedb2:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],0x0
MOV byte ptr [RSP + 0x10],0x0
LAB_001fedcd:
LEA RSI,[0x396e40]
LEA RDX,[0x19ab62]
MOV RDI,RBX
CALL 0x00183970
|
/* aimrt::rpc::ContextRef::GetMetaKeys() const */
void aimrt::rpc::ContextRef::GetMetaKeys(void)
{
long *plVar1;
int8 *puVar2;
long *in_RSI;
vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
*in_RDI;
int8 *puVar3;
ulong uVar4;
int1 auVar5 [16];
uint *local_58;
int8 uStack_50;
uint local_48;
int4 uStack_44;
int4 uStack_40;
int4 uStack_3c;
int1 local_38 [24];
plVar1 = (long *)*in_RSI;
if ((plVar1 != (long *)0x0) && (*plVar1 != 0)) {
auVar5 = (**(code **)(*plVar1 + 0x38))(plVar1[1]);
uVar4 = auVar5._8_8_;
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
*(int8 *)(in_RDI + 0x10) = 0;
/* try { // try from 001fecef to 001fecf9 has its CatchHandler @ 001fede3 */
std::
vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
::reserve(in_RDI,uVar4);
if (uVar4 != 0) {
puVar3 = (int8 *)(auVar5._0_8_ + 8);
do {
uStack_50 = puVar3[-1];
local_58 = (uint *)*puVar3;
puVar2 = *(int8 **)(in_RDI + 8);
if (puVar2 == *(int8 **)(in_RDI + 0x10)) {
/* try { // try from 001fed2e to 001fed38 has its CatchHandler @ 001fede5 */
std::
vector<std::basic_string_view<char,std::char_traits<char>>,std::allocator<std::basic_string_view<char,std::char_traits<char>>>>
::_M_realloc_insert<std::basic_string_view<char,std::char_traits<char>>>();
}
else {
*puVar2 = local_58;
puVar2[1] = uStack_50;
*(long *)(in_RDI + 8) = *(long *)(in_RDI + 8) + 0x10;
}
puVar3 = puVar3 + 2;
uVar4 = uVar4 - 1;
} while (uVar4 != 0);
}
return;
}
puVar3 = (int8 *)__cxa_allocate_exception(0x28);
/* try { // try from 001fed5e to 001fed78 has its CatchHandler @ 001fee14 */
fmt::v10::vformat_abi_cxx11_(&local_58,"Reference is null.",0x12,0,local_38);
*puVar3 = &PTR__AimRTException_00396f28;
puVar3[1] = puVar3 + 3;
if (local_58 == &local_48) {
*(uint *)(puVar3 + 3) = local_48;
*(int4 *)((long)puVar3 + 0x1c) = uStack_44;
*(int4 *)(puVar3 + 4) = uStack_40;
*(int4 *)((long)puVar3 + 0x24) = uStack_3c;
}
else {
puVar3[1] = local_58;
puVar3[3] = CONCAT44(uStack_44,local_48);
}
puVar3[2] = uStack_50;
uStack_50 = 0;
local_48 = local_48 & 0xffffff00;
local_58 = &local_48;
/* try { // try from 001fedcd to 001fede2 has its CatchHandler @ 001fedf9 */
/* WARNING: Subroutine does not return */
__cxa_throw(puVar3,&common::util::AimRTException::typeinfo,
common::util::AimRTException::~AimRTException);
}
| |
52,299 | ggml_are_same_shape | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | bool ggml_are_same_shape(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
return
(t0->ne[0] == t1->ne[0] ) &&
(t0->ne[1] == t1->ne[1] ) &&
(t0->ne[2] == t1->ne[2] ) &&
(t0->ne[3] == t1->ne[3] );
} | O0 | c | ggml_are_same_shape:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rsp), %rdx
xorl %eax, %eax
cmpq 0x10(%rdx), %rcx
movb %al, -0x11(%rsp)
jne 0x11b671
movq -0x8(%rsp), %rax
movq 0x18(%rax), %rcx
movq -0x10(%rsp), %rdx
xorl %eax, %eax
cmpq 0x18(%rdx), %rcx
movb %al, -0x11(%rsp)
jne 0x11b671
movq -0x8(%rsp), %rax
movq 0x20(%rax), %rcx
movq -0x10(%rsp), %rdx
xorl %eax, %eax
cmpq 0x20(%rdx), %rcx
movb %al, -0x11(%rsp)
jne 0x11b671
movq -0x8(%rsp), %rax
movq 0x28(%rax), %rax
movq -0x10(%rsp), %rcx
cmpq 0x28(%rcx), %rax
sete %al
movb %al, -0x11(%rsp)
movb -0x11(%rsp), %al
andb $0x1, %al
retq
nopl (%rax,%rax)
| ggml_are_same_shape:
mov [rsp+var_8], rdi
mov [rsp+var_10], rsi
mov rax, [rsp+var_8]
mov rcx, [rax+10h]
mov rdx, [rsp+var_10]
xor eax, eax
cmp rcx, [rdx+10h]
mov [rsp+var_11], al
jnz short loc_11B671
mov rax, [rsp+var_8]
mov rcx, [rax+18h]
mov rdx, [rsp+var_10]
xor eax, eax
cmp rcx, [rdx+18h]
mov [rsp+var_11], al
jnz short loc_11B671
mov rax, [rsp+var_8]
mov rcx, [rax+20h]
mov rdx, [rsp+var_10]
xor eax, eax
cmp rcx, [rdx+20h]
mov [rsp+var_11], al
jnz short loc_11B671
mov rax, [rsp+var_8]
mov rax, [rax+28h]
mov rcx, [rsp+var_10]
cmp rax, [rcx+28h]
setz al
mov [rsp+var_11], al
loc_11B671:
mov al, [rsp+var_11]
and al, 1
retn
| bool ggml_are_same_shape(_QWORD *a1, _QWORD *a2)
{
bool v3; // [rsp+1h] [rbp-11h]
v3 = 0;
if ( a1[2] == a2[2] )
{
v3 = 0;
if ( a1[3] == a2[3] )
{
v3 = 0;
if ( a1[4] == a2[4] )
return a1[5] == a2[5];
}
}
return v3;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.